@modern-js/module-tools-v2
Version:
The meta-framework suite designed from scratch for frontend-focused modern web development.
1 lines • 98.7 kB
JavaScript
(()=>{var t={90:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e["default"]=void 0;function SourcePos(){return{identifierName:undefined,line:undefined,column:undefined,filename:undefined}}const n=/^[ \t]+$/;class Buffer{constructor(t){this._map=null;this._buf="";this._last=0;this._queue=[];this._position={line:1,column:0};this._sourcePosition=SourcePos();this._disallowedPop=null;this._map=t}get(){this._flush();const t=this._map;const e={code:this._buf.trimRight(),decodedMap:t==null?void 0:t.getDecoded(),get map(){return e.map=t?t.get():null},set map(t){Object.defineProperty(e,"map",{value:t,writable:true})},get rawMappings(){return e.rawMappings=t==null?void 0:t.getRawMappings()},set rawMappings(t){Object.defineProperty(e,"rawMappings",{value:t,writable:true})}};return e}append(t){this._flush();const{line:e,column:n,filename:i,identifierName:s}=this._sourcePosition;this._append(t,e,n,s,i)}queue(t){if(t==="\n"){while(this._queue.length>0&&n.test(this._queue[0][0])){this._queue.shift()}}const{line:e,column:i,filename:s,identifierName:r}=this._sourcePosition;this._queue.unshift([t,e,i,r,s])}queueIndentation(t){this._queue.unshift([t,undefined,undefined,undefined,undefined])}_flush(){let t;while(t=this._queue.pop()){this._append(...t)}}_append(t,e,n,i,s){this._buf+=t;this._last=t.charCodeAt(t.length-1);let r=t.indexOf("\n");let o=0;if(r!==0){this._mark(e,n,i,s)}while(r!==-1){this._position.line++;this._position.column=0;o=r+1;if(o<t.length){this._mark(++e,0,i,s)}r=t.indexOf("\n",o)}this._position.column+=t.length-o}_mark(t,e,n,i){var s;(s=this._map)==null?void 0:s.mark(this._position,t,e,n,i)}removeTrailingNewline(){if(this._queue.length>0&&this._queue[0][0]==="\n"){this._queue.shift()}}removeLastSemicolon(){if(this._queue.length>0&&this._queue[0][0]===";"){this._queue.shift()}}getLastChar(){let t;if(this._queue.length>0){const e=this._queue[0][0];t=e.charCodeAt(0)}else{t=this._last}return t}endsWithCharAndNewline(){const t=this._queue;if(t.length>0){const e=t[0][0];const n=e.charCodeAt(0);if(n!==10)return;if(t.length>1){const e=t[1][0];return e.charCodeAt(0)}else{return this._last}}}hasContent(){return this._queue.length>0||!!this._last}exactSource(t,e){this.source("start",t);e();this.source("end",t);this._disallowPop("start",t)}source(t,e){if(t&&!e)return;this._normalizePosition(t,e,this._sourcePosition)}withSource(t,e,n){if(!this._map)return n();const i=this._sourcePosition.line;const s=this._sourcePosition.column;const r=this._sourcePosition.filename;const o=this._sourcePosition.identifierName;this.source(t,e);n();if(!this._disallowedPop||this._disallowedPop.line!==i||this._disallowedPop.column!==s||this._disallowedPop.filename!==r){this._sourcePosition.line=i;this._sourcePosition.column=s;this._sourcePosition.filename=r;this._sourcePosition.identifierName=o;this._disallowedPop=null}}_disallowPop(t,e){if(t&&!e)return;this._disallowedPop=this._normalizePosition(t,e,SourcePos())}_normalizePosition(t,e,n){const i=e?e[t]:null;n.identifierName=t==="start"&&(e==null?void 0:e.identifierName)||undefined;n.line=i==null?void 0:i.line;n.column=i==null?void 0:i.column;n.filename=e==null?void 0:e.filename;return n}getCurrentColumn(){const t=this._queue.reduce(((t,e)=>e[0]+t),"");const e=t.lastIndexOf("\n");return e===-1?this._position.column+t.length:t.length-1-e}getCurrentLine(){const t=this._queue.reduce(((t,e)=>e[0]+t),"");let e=0;for(let n=0;n<t.length;n++){if(t[n]==="\n")e++}return this._position.line+e}}e["default"]=Buffer},712:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.BlockStatement=BlockStatement;e.Directive=Directive;e.DirectiveLiteral=DirectiveLiteral;e.File=File;e.InterpreterDirective=InterpreterDirective;e.Placeholder=Placeholder;e.Program=Program;function File(t){if(t.program){this.print(t.program.interpreter,t)}this.print(t.program,t)}function Program(t){this.printInnerComments(t,false);this.printSequence(t.directives,t);if(t.directives&&t.directives.length)this.newline();this.printSequence(t.body,t)}function BlockStatement(t){var e;this.token("{");this.printInnerComments(t);const n=(e=t.directives)==null?void 0:e.length;if(t.body.length||n){this.newline();this.printSequence(t.directives,t,{indent:true});if(n)this.newline();this.printSequence(t.body,t,{indent:true});this.removeTrailingNewline();this.source("end",t.loc);if(!this.endsWith(10))this.newline();this.rightBrace()}else{this.source("end",t.loc);this.token("}")}}function Directive(t){this.print(t.value,t);this.semicolon()}const n=/(?:^|[^\\])(?:\\\\)*'/;const i=/(?:^|[^\\])(?:\\\\)*"/;function DirectiveLiteral(t){const e=this.getPossibleRaw(t);if(!this.format.minified&&e!=null){this.token(e);return}const{value:s}=t;if(!i.test(s)){this.token(`"${s}"`)}else if(!n.test(s)){this.token(`'${s}'`)}else{throw new Error("Malformed AST: it is not possible to print a directive containing"+" both unescaped single and double quotes.")}}function InterpreterDirective(t){this.token(`#!${t.value}\n`)}function Placeholder(t){this.token("%%");this.print(t.name);this.token("%%");if(t.expectedNode==="Statement"){this.semicolon()}}},640:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.ClassAccessorProperty=ClassAccessorProperty;e.ClassBody=ClassBody;e.ClassExpression=e.ClassDeclaration=ClassDeclaration;e.ClassMethod=ClassMethod;e.ClassPrivateMethod=ClassPrivateMethod;e.ClassPrivateProperty=ClassPrivateProperty;e.ClassProperty=ClassProperty;e.StaticBlock=StaticBlock;e._classMethodHead=_classMethodHead;var i=n(740);const{isExportDefaultDeclaration:s,isExportNamedDeclaration:r}=i;function ClassDeclaration(t,e){if(!this.format.decoratorsBeforeExport||!s(e)&&!r(e)){this.printJoin(t.decorators,t)}if(t.declare){this.word("declare");this.space()}if(t.abstract){this.word("abstract");this.space()}this.word("class");this.printInnerComments(t);if(t.id){this.space();this.print(t.id,t)}this.print(t.typeParameters,t);if(t.superClass){this.space();this.word("extends");this.space();this.print(t.superClass,t);this.print(t.superTypeParameters,t)}if(t.implements){this.space();this.word("implements");this.space();this.printList(t.implements,t)}this.space();this.print(t.body,t)}function ClassBody(t){this.token("{");this.printInnerComments(t);if(t.body.length===0){this.token("}")}else{this.newline();this.indent();this.printSequence(t.body,t);this.dedent();if(!this.endsWith(10))this.newline();this.rightBrace()}}function ClassProperty(t){this.printJoin(t.decorators,t);this.source("end",t.key.loc);this.tsPrintClassMemberModifiers(t,true);if(t.computed){this.token("[");this.print(t.key,t);this.token("]")}else{this._variance(t);this.print(t.key,t)}if(t.optional){this.token("?")}if(t.definite){this.token("!")}this.print(t.typeAnnotation,t);if(t.value){this.space();this.token("=");this.space();this.print(t.value,t)}this.semicolon()}function ClassAccessorProperty(t){this.printJoin(t.decorators,t);this.source("end",t.key.loc);this.tsPrintClassMemberModifiers(t,true);this.word("accessor");this.printInnerComments(t);this.space();if(t.computed){this.token("[");this.print(t.key,t);this.token("]")}else{this._variance(t);this.print(t.key,t)}if(t.optional){this.token("?")}if(t.definite){this.token("!")}this.print(t.typeAnnotation,t);if(t.value){this.space();this.token("=");this.space();this.print(t.value,t)}this.semicolon()}function ClassPrivateProperty(t){this.printJoin(t.decorators,t);if(t.static){this.word("static");this.space()}this.print(t.key,t);this.print(t.typeAnnotation,t);if(t.value){this.space();this.token("=");this.space();this.print(t.value,t)}this.semicolon()}function ClassMethod(t){this._classMethodHead(t);this.space();this.print(t.body,t)}function ClassPrivateMethod(t){this._classMethodHead(t);this.space();this.print(t.body,t)}function _classMethodHead(t){this.printJoin(t.decorators,t);this.source("end",t.key.loc);this.tsPrintClassMemberModifiers(t,false);this._methodHead(t)}function StaticBlock(t){this.word("static");this.space();this.token("{");if(t.body.length===0){this.token("}")}else{this.newline();this.printSequence(t.body,t,{indent:true});this.rightBrace()}}},774:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.LogicalExpression=e.BinaryExpression=e.AssignmentExpression=AssignmentExpression;e.AssignmentPattern=AssignmentPattern;e.AwaitExpression=void 0;e.BindExpression=BindExpression;e.CallExpression=CallExpression;e.ConditionalExpression=ConditionalExpression;e.Decorator=Decorator;e.DoExpression=DoExpression;e.EmptyStatement=EmptyStatement;e.ExpressionStatement=ExpressionStatement;e.Import=Import;e.MemberExpression=MemberExpression;e.MetaProperty=MetaProperty;e.ModuleExpression=ModuleExpression;e.NewExpression=NewExpression;e.OptionalCallExpression=OptionalCallExpression;e.OptionalMemberExpression=OptionalMemberExpression;e.ParenthesizedExpression=ParenthesizedExpression;e.PrivateName=PrivateName;e.SequenceExpression=SequenceExpression;e.Super=Super;e.ThisExpression=ThisExpression;e.UnaryExpression=UnaryExpression;e.UpdateExpression=UpdateExpression;e.V8IntrinsicIdentifier=V8IntrinsicIdentifier;e.YieldExpression=void 0;var i=n(740);var s=n(458);const{isCallExpression:r,isLiteral:o,isMemberExpression:a,isNewExpression:c}=i;function UnaryExpression(t){if(t.operator==="void"||t.operator==="delete"||t.operator==="typeof"||t.operator==="throw"){this.word(t.operator);this.space()}else{this.token(t.operator)}this.print(t.argument,t)}function DoExpression(t){if(t.async){this.word("async");this.space()}this.word("do");this.space();this.print(t.body,t)}function ParenthesizedExpression(t){this.token("(");this.print(t.expression,t);this.token(")")}function UpdateExpression(t){if(t.prefix){this.token(t.operator);this.print(t.argument,t)}else{this.startTerminatorless(true);this.print(t.argument,t);this.endTerminatorless();this.token(t.operator)}}function ConditionalExpression(t){this.print(t.test,t);this.space();this.token("?");this.space();this.print(t.consequent,t);this.space();this.token(":");this.space();this.print(t.alternate,t)}function NewExpression(t,e){this.word("new");this.space();this.print(t.callee,t);if(this.format.minified&&t.arguments.length===0&&!t.optional&&!r(e,{callee:t})&&!a(e)&&!c(e)){return}this.print(t.typeArguments,t);this.print(t.typeParameters,t);if(t.optional){this.token("?.")}this.token("(");this.printList(t.arguments,t);this.token(")")}function SequenceExpression(t){this.printList(t.expressions,t)}function ThisExpression(){this.word("this")}function Super(){this.word("super")}function isDecoratorMemberExpression(t){switch(t.type){case"Identifier":return true;case"MemberExpression":return!t.computed&&t.property.type==="Identifier"&&isDecoratorMemberExpression(t.object);default:return false}}function shouldParenthesizeDecoratorExpression(t){if(t.type==="CallExpression"){t=t.callee}if(t.type==="ParenthesizedExpression"){return false}return!isDecoratorMemberExpression(t)}function Decorator(t){this.token("@");const{expression:e}=t;if(shouldParenthesizeDecoratorExpression(e)){this.token("(");this.print(e,t);this.token(")")}else{this.print(e,t)}this.newline()}function OptionalMemberExpression(t){this.print(t.object,t);if(!t.computed&&a(t.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}let e=t.computed;if(o(t.property)&&typeof t.property.value==="number"){e=true}if(t.optional){this.token("?.")}if(e){this.token("[");this.print(t.property,t);this.token("]")}else{if(!t.optional){this.token(".")}this.print(t.property,t)}}function OptionalCallExpression(t){this.print(t.callee,t);this.print(t.typeArguments,t);this.print(t.typeParameters,t);if(t.optional){this.token("?.")}this.token("(");this.printList(t.arguments,t);this.token(")")}function CallExpression(t){this.print(t.callee,t);this.print(t.typeArguments,t);this.print(t.typeParameters,t);this.token("(");this.printList(t.arguments,t);this.token(")")}function Import(){this.word("import")}function buildYieldAwait(t){return function(e){this.word(t);if(e.delegate){this.token("*")}if(e.argument){this.space();const t=this.startTerminatorless();this.print(e.argument,e);this.endTerminatorless(t)}}}const p=buildYieldAwait("yield");e.YieldExpression=p;const l=buildYieldAwait("await");e.AwaitExpression=l;function EmptyStatement(){this.semicolon(true)}function ExpressionStatement(t){this.print(t.expression,t);this.semicolon()}function AssignmentPattern(t){this.print(t.left,t);if(t.left.optional)this.token("?");this.print(t.left.typeAnnotation,t);this.space();this.token("=");this.space();this.print(t.right,t)}function AssignmentExpression(t,e){const n=this.inForStatementInitCounter&&t.operator==="in"&&!s.needsParens(t,e);if(n){this.token("(")}this.print(t.left,t);this.space();if(t.operator==="in"||t.operator==="instanceof"){this.word(t.operator)}else{this.token(t.operator)}this.space();this.print(t.right,t);if(n){this.token(")")}}function BindExpression(t){this.print(t.object,t);this.token("::");this.print(t.callee,t)}function MemberExpression(t){this.print(t.object,t);if(!t.computed&&a(t.property)){throw new TypeError("Got a MemberExpression for MemberExpression property")}let e=t.computed;if(o(t.property)&&typeof t.property.value==="number"){e=true}if(e){this.token("[");this.print(t.property,t);this.token("]")}else{this.token(".");this.print(t.property,t)}}function MetaProperty(t){this.print(t.meta,t);this.token(".");this.print(t.property,t)}function PrivateName(t){this.token("#");this.print(t.id,t)}function V8IntrinsicIdentifier(t){this.token("%");this.word(t.name)}function ModuleExpression(t){this.word("module");this.space();this.token("{");if(t.body.body.length===0){this.token("}")}else{this.newline();this.printSequence(t.body.body,t,{indent:true});this.rightBrace()}}},818:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.AnyTypeAnnotation=AnyTypeAnnotation;e.ArrayTypeAnnotation=ArrayTypeAnnotation;e.BooleanLiteralTypeAnnotation=BooleanLiteralTypeAnnotation;e.BooleanTypeAnnotation=BooleanTypeAnnotation;e.DeclareClass=DeclareClass;e.DeclareExportAllDeclaration=DeclareExportAllDeclaration;e.DeclareExportDeclaration=DeclareExportDeclaration;e.DeclareFunction=DeclareFunction;e.DeclareInterface=DeclareInterface;e.DeclareModule=DeclareModule;e.DeclareModuleExports=DeclareModuleExports;e.DeclareOpaqueType=DeclareOpaqueType;e.DeclareTypeAlias=DeclareTypeAlias;e.DeclareVariable=DeclareVariable;e.DeclaredPredicate=DeclaredPredicate;e.EmptyTypeAnnotation=EmptyTypeAnnotation;e.EnumBooleanBody=EnumBooleanBody;e.EnumBooleanMember=EnumBooleanMember;e.EnumDeclaration=EnumDeclaration;e.EnumDefaultedMember=EnumDefaultedMember;e.EnumNumberBody=EnumNumberBody;e.EnumNumberMember=EnumNumberMember;e.EnumStringBody=EnumStringBody;e.EnumStringMember=EnumStringMember;e.EnumSymbolBody=EnumSymbolBody;e.ExistsTypeAnnotation=ExistsTypeAnnotation;e.FunctionTypeAnnotation=FunctionTypeAnnotation;e.FunctionTypeParam=FunctionTypeParam;e.IndexedAccessType=IndexedAccessType;e.InferredPredicate=InferredPredicate;e.InterfaceDeclaration=InterfaceDeclaration;e.GenericTypeAnnotation=e.ClassImplements=e.InterfaceExtends=InterfaceExtends;e.InterfaceTypeAnnotation=InterfaceTypeAnnotation;e.IntersectionTypeAnnotation=IntersectionTypeAnnotation;e.MixedTypeAnnotation=MixedTypeAnnotation;e.NullLiteralTypeAnnotation=NullLiteralTypeAnnotation;e.NullableTypeAnnotation=NullableTypeAnnotation;Object.defineProperty(e,"NumberLiteralTypeAnnotation",{enumerable:true,get:function(){return r.NumericLiteral}});e.NumberTypeAnnotation=NumberTypeAnnotation;e.ObjectTypeAnnotation=ObjectTypeAnnotation;e.ObjectTypeCallProperty=ObjectTypeCallProperty;e.ObjectTypeIndexer=ObjectTypeIndexer;e.ObjectTypeInternalSlot=ObjectTypeInternalSlot;e.ObjectTypeProperty=ObjectTypeProperty;e.ObjectTypeSpreadProperty=ObjectTypeSpreadProperty;e.OpaqueType=OpaqueType;e.OptionalIndexedAccessType=OptionalIndexedAccessType;e.QualifiedTypeIdentifier=QualifiedTypeIdentifier;Object.defineProperty(e,"StringLiteralTypeAnnotation",{enumerable:true,get:function(){return r.StringLiteral}});e.StringTypeAnnotation=StringTypeAnnotation;e.SymbolTypeAnnotation=SymbolTypeAnnotation;e.ThisTypeAnnotation=ThisTypeAnnotation;e.TupleTypeAnnotation=TupleTypeAnnotation;e.TypeAlias=TypeAlias;e.TypeAnnotation=TypeAnnotation;e.TypeCastExpression=TypeCastExpression;e.TypeParameter=TypeParameter;e.TypeParameterDeclaration=e.TypeParameterInstantiation=TypeParameterInstantiation;e.TypeofTypeAnnotation=TypeofTypeAnnotation;e.UnionTypeAnnotation=UnionTypeAnnotation;e.Variance=Variance;e.VoidTypeAnnotation=VoidTypeAnnotation;e._interfaceish=_interfaceish;e._variance=_variance;var i=n(740);var s=n(330);var r=n(446);const{isDeclareExportDeclaration:o,isStatement:a}=i;function AnyTypeAnnotation(){this.word("any")}function ArrayTypeAnnotation(t){this.print(t.elementType,t);this.token("[");this.token("]")}function BooleanTypeAnnotation(){this.word("boolean")}function BooleanLiteralTypeAnnotation(t){this.word(t.value?"true":"false")}function NullLiteralTypeAnnotation(){this.word("null")}function DeclareClass(t,e){if(!o(e)){this.word("declare");this.space()}this.word("class");this.space();this._interfaceish(t)}function DeclareFunction(t,e){if(!o(e)){this.word("declare");this.space()}this.word("function");this.space();this.print(t.id,t);this.print(t.id.typeAnnotation.typeAnnotation,t);if(t.predicate){this.space();this.print(t.predicate,t)}this.semicolon()}function InferredPredicate(){this.token("%");this.word("checks")}function DeclaredPredicate(t){this.token("%");this.word("checks");this.token("(");this.print(t.value,t);this.token(")")}function DeclareInterface(t){this.word("declare");this.space();this.InterfaceDeclaration(t)}function DeclareModule(t){this.word("declare");this.space();this.word("module");this.space();this.print(t.id,t);this.space();this.print(t.body,t)}function DeclareModuleExports(t){this.word("declare");this.space();this.word("module");this.token(".");this.word("exports");this.print(t.typeAnnotation,t)}function DeclareTypeAlias(t){this.word("declare");this.space();this.TypeAlias(t)}function DeclareOpaqueType(t,e){if(!o(e)){this.word("declare");this.space()}this.OpaqueType(t)}function DeclareVariable(t,e){if(!o(e)){this.word("declare");this.space()}this.word("var");this.space();this.print(t.id,t);this.print(t.id.typeAnnotation,t);this.semicolon()}function DeclareExportDeclaration(t){this.word("declare");this.space();this.word("export");this.space();if(t.default){this.word("default");this.space()}FlowExportDeclaration.apply(this,arguments)}function DeclareExportAllDeclaration(){this.word("declare");this.space();s.ExportAllDeclaration.apply(this,arguments)}function EnumDeclaration(t){const{id:e,body:n}=t;this.word("enum");this.space();this.print(e,t);this.print(n,t)}function enumExplicitType(t,e,n){if(n){t.space();t.word("of");t.space();t.word(e)}t.space()}function enumBody(t,e){const{members:n}=e;t.token("{");t.indent();t.newline();for(const i of n){t.print(i,e);t.newline()}if(e.hasUnknownMembers){t.token("...");t.newline()}t.dedent();t.token("}")}function EnumBooleanBody(t){const{explicitType:e}=t;enumExplicitType(this,"boolean",e);enumBody(this,t)}function EnumNumberBody(t){const{explicitType:e}=t;enumExplicitType(this,"number",e);enumBody(this,t)}function EnumStringBody(t){const{explicitType:e}=t;enumExplicitType(this,"string",e);enumBody(this,t)}function EnumSymbolBody(t){enumExplicitType(this,"symbol",true);enumBody(this,t)}function EnumDefaultedMember(t){const{id:e}=t;this.print(e,t);this.token(",")}function enumInitializedMember(t,e){const{id:n,init:i}=e;t.print(n,e);t.space();t.token("=");t.space();t.print(i,e);t.token(",")}function EnumBooleanMember(t){enumInitializedMember(this,t)}function EnumNumberMember(t){enumInitializedMember(this,t)}function EnumStringMember(t){enumInitializedMember(this,t)}function FlowExportDeclaration(t){if(t.declaration){const e=t.declaration;this.print(e,t);if(!a(e))this.semicolon()}else{this.token("{");if(t.specifiers.length){this.space();this.printList(t.specifiers,t);this.space()}this.token("}");if(t.source){this.space();this.word("from");this.space();this.print(t.source,t)}this.semicolon()}}function ExistsTypeAnnotation(){this.token("*")}function FunctionTypeAnnotation(t,e){this.print(t.typeParameters,t);this.token("(");if(t.this){this.word("this");this.token(":");this.space();this.print(t.this.typeAnnotation,t);if(t.params.length||t.rest){this.token(",");this.space()}}this.printList(t.params,t);if(t.rest){if(t.params.length){this.token(",");this.space()}this.token("...");this.print(t.rest,t)}this.token(")");if(e&&(e.type==="ObjectTypeCallProperty"||e.type==="DeclareFunction"||e.type==="ObjectTypeProperty"&&e.method)){this.token(":")}else{this.space();this.token("=>")}this.space();this.print(t.returnType,t)}function FunctionTypeParam(t){this.print(t.name,t);if(t.optional)this.token("?");if(t.name){this.token(":");this.space()}this.print(t.typeAnnotation,t)}function InterfaceExtends(t){this.print(t.id,t);this.print(t.typeParameters,t)}function _interfaceish(t){var e;this.print(t.id,t);this.print(t.typeParameters,t);if((e=t.extends)!=null&&e.length){this.space();this.word("extends");this.space();this.printList(t.extends,t)}if(t.mixins&&t.mixins.length){this.space();this.word("mixins");this.space();this.printList(t.mixins,t)}if(t.implements&&t.implements.length){this.space();this.word("implements");this.space();this.printList(t.implements,t)}this.space();this.print(t.body,t)}function _variance(t){if(t.variance){if(t.variance.kind==="plus"){this.token("+")}else if(t.variance.kind==="minus"){this.token("-")}}}function InterfaceDeclaration(t){this.word("interface");this.space();this._interfaceish(t)}function andSeparator(){this.space();this.token("&");this.space()}function InterfaceTypeAnnotation(t){this.word("interface");if(t.extends&&t.extends.length){this.space();this.word("extends");this.space();this.printList(t.extends,t)}this.space();this.print(t.body,t)}function IntersectionTypeAnnotation(t){this.printJoin(t.types,t,{separator:andSeparator})}function MixedTypeAnnotation(){this.word("mixed")}function EmptyTypeAnnotation(){this.word("empty")}function NullableTypeAnnotation(t){this.token("?");this.print(t.typeAnnotation,t)}function NumberTypeAnnotation(){this.word("number")}function StringTypeAnnotation(){this.word("string")}function ThisTypeAnnotation(){this.word("this")}function TupleTypeAnnotation(t){this.token("[");this.printList(t.types,t);this.token("]")}function TypeofTypeAnnotation(t){this.word("typeof");this.space();this.print(t.argument,t)}function TypeAlias(t){this.word("type");this.space();this.print(t.id,t);this.print(t.typeParameters,t);this.space();this.token("=");this.space();this.print(t.right,t);this.semicolon()}function TypeAnnotation(t){this.token(":");this.space();if(t.optional)this.token("?");this.print(t.typeAnnotation,t)}function TypeParameterInstantiation(t){this.token("<");this.printList(t.params,t,{});this.token(">")}function TypeParameter(t){this._variance(t);this.word(t.name);if(t.bound){this.print(t.bound,t)}if(t.default){this.space();this.token("=");this.space();this.print(t.default,t)}}function OpaqueType(t){this.word("opaque");this.space();this.word("type");this.space();this.print(t.id,t);this.print(t.typeParameters,t);if(t.supertype){this.token(":");this.space();this.print(t.supertype,t)}if(t.impltype){this.space();this.token("=");this.space();this.print(t.impltype,t)}this.semicolon()}function ObjectTypeAnnotation(t){if(t.exact){this.token("{|")}else{this.token("{")}const e=[...t.properties,...t.callProperties||[],...t.indexers||[],...t.internalSlots||[]];if(e.length){this.space();this.printJoin(e,t,{addNewlines(t){if(t&&!e[0])return 1},indent:true,statement:true,iterator:()=>{if(e.length!==1||t.inexact){this.token(",");this.space()}}});this.space()}if(t.inexact){this.indent();this.token("...");if(e.length){this.newline()}this.dedent()}if(t.exact){this.token("|}")}else{this.token("}")}}function ObjectTypeInternalSlot(t){if(t.static){this.word("static");this.space()}this.token("[");this.token("[");this.print(t.id,t);this.token("]");this.token("]");if(t.optional)this.token("?");if(!t.method){this.token(":");this.space()}this.print(t.value,t)}function ObjectTypeCallProperty(t){if(t.static){this.word("static");this.space()}this.print(t.value,t)}function ObjectTypeIndexer(t){if(t.static){this.word("static");this.space()}this._variance(t);this.token("[");if(t.id){this.print(t.id,t);this.token(":");this.space()}this.print(t.key,t);this.token("]");this.token(":");this.space();this.print(t.value,t)}function ObjectTypeProperty(t){if(t.proto){this.word("proto");this.space()}if(t.static){this.word("static");this.space()}if(t.kind==="get"||t.kind==="set"){this.word(t.kind);this.space()}this._variance(t);this.print(t.key,t);if(t.optional)this.token("?");if(!t.method){this.token(":");this.space()}this.print(t.value,t)}function ObjectTypeSpreadProperty(t){this.token("...");this.print(t.argument,t)}function QualifiedTypeIdentifier(t){this.print(t.qualification,t);this.token(".");this.print(t.id,t)}function SymbolTypeAnnotation(){this.word("symbol")}function orSeparator(){this.space();this.token("|");this.space()}function UnionTypeAnnotation(t){this.printJoin(t.types,t,{separator:orSeparator})}function TypeCastExpression(t){this.token("(");this.print(t.expression,t);this.print(t.typeAnnotation,t);this.token(")")}function Variance(t){if(t.kind==="plus"){this.token("+")}else{this.token("-")}}function VoidTypeAnnotation(){this.word("void")}function IndexedAccessType(t){this.print(t.objectType,t);this.token("[");this.print(t.indexType,t);this.token("]")}function OptionalIndexedAccessType(t){this.print(t.objectType,t);if(t.optional){this.token("?.")}this.token("[");this.print(t.indexType,t);this.token("]")}},561:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});var i=n(117);Object.keys(i).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===i[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return i[t]}})}));var s=n(774);Object.keys(s).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===s[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return s[t]}})}));var r=n(996);Object.keys(r).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===r[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return r[t]}})}));var o=n(640);Object.keys(o).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===o[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return o[t]}})}));var a=n(872);Object.keys(a).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===a[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return a[t]}})}));var c=n(330);Object.keys(c).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===c[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return c[t]}})}));var p=n(446);Object.keys(p).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===p[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return p[t]}})}));var l=n(818);Object.keys(l).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===l[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return l[t]}})}));var h=n(712);Object.keys(h).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===h[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return h[t]}})}));var u=n(206);Object.keys(u).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===u[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return u[t]}})}));var f=n(816);Object.keys(f).forEach((function(t){if(t==="default"||t==="__esModule")return;if(t in e&&e[t]===f[t])return;Object.defineProperty(e,t,{enumerable:true,get:function(){return f[t]}})}))},206:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.JSXAttribute=JSXAttribute;e.JSXClosingElement=JSXClosingElement;e.JSXClosingFragment=JSXClosingFragment;e.JSXElement=JSXElement;e.JSXEmptyExpression=JSXEmptyExpression;e.JSXExpressionContainer=JSXExpressionContainer;e.JSXFragment=JSXFragment;e.JSXIdentifier=JSXIdentifier;e.JSXMemberExpression=JSXMemberExpression;e.JSXNamespacedName=JSXNamespacedName;e.JSXOpeningElement=JSXOpeningElement;e.JSXOpeningFragment=JSXOpeningFragment;e.JSXSpreadAttribute=JSXSpreadAttribute;e.JSXSpreadChild=JSXSpreadChild;e.JSXText=JSXText;function JSXAttribute(t){this.print(t.name,t);if(t.value){this.token("=");this.print(t.value,t)}}function JSXIdentifier(t){this.word(t.name)}function JSXNamespacedName(t){this.print(t.namespace,t);this.token(":");this.print(t.name,t)}function JSXMemberExpression(t){this.print(t.object,t);this.token(".");this.print(t.property,t)}function JSXSpreadAttribute(t){this.token("{");this.token("...");this.print(t.argument,t);this.token("}")}function JSXExpressionContainer(t){this.token("{");this.print(t.expression,t);this.token("}")}function JSXSpreadChild(t){this.token("{");this.token("...");this.print(t.expression,t);this.token("}")}function JSXText(t){const e=this.getPossibleRaw(t);if(e!=null){this.token(e)}else{this.token(t.value)}}function JSXElement(t){const e=t.openingElement;this.print(e,t);if(e.selfClosing)return;this.indent();for(const e of t.children){this.print(e,t)}this.dedent();this.print(t.closingElement,t)}function spaceSeparator(){this.space()}function JSXOpeningElement(t){this.token("<");this.print(t.name,t);this.print(t.typeParameters,t);if(t.attributes.length>0){this.space();this.printJoin(t.attributes,t,{separator:spaceSeparator})}if(t.selfClosing){this.space();this.token("/>")}else{this.token(">")}}function JSXClosingElement(t){this.token("</");this.print(t.name,t);this.token(">")}function JSXEmptyExpression(t){this.printInnerComments(t)}function JSXFragment(t){this.print(t.openingFragment,t);this.indent();for(const e of t.children){this.print(e,t)}this.dedent();this.print(t.closingFragment,t)}function JSXOpeningFragment(){this.token("<");this.token(">")}function JSXClosingFragment(){this.token("</");this.token(">")}},872:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.ArrowFunctionExpression=ArrowFunctionExpression;e.FunctionDeclaration=e.FunctionExpression=FunctionExpression;e._functionHead=_functionHead;e._methodHead=_methodHead;e._param=_param;e._parameters=_parameters;e._params=_params;e._predicate=_predicate;var i=n(740);const{isIdentifier:s}=i;function _params(t){this.print(t.typeParameters,t);this.token("(");this._parameters(t.params,t);this.token(")");this.print(t.returnType,t)}function _parameters(t,e){for(let n=0;n<t.length;n++){this._param(t[n],e);if(n<t.length-1){this.token(",");this.space()}}}function _param(t,e){this.printJoin(t.decorators,t);this.print(t,e);if(t.optional)this.token("?");this.print(t.typeAnnotation,t)}function _methodHead(t){const e=t.kind;const n=t.key;if(e==="get"||e==="set"){this.word(e);this.space()}if(t.async){this._catchUp("start",n.loc);this.word("async");this.space()}if(e==="method"||e==="init"){if(t.generator){this.token("*")}}if(t.computed){this.token("[");this.print(n,t);this.token("]")}else{this.print(n,t)}if(t.optional){this.token("?")}this._params(t)}function _predicate(t){if(t.predicate){if(!t.returnType){this.token(":")}this.space();this.print(t.predicate,t)}}function _functionHead(t){if(t.async){this.word("async");this.space()}this.word("function");if(t.generator)this.token("*");this.printInnerComments(t);this.space();if(t.id){this.print(t.id,t)}this._params(t);this._predicate(t)}function FunctionExpression(t){this._functionHead(t);this.space();this.print(t.body,t)}function ArrowFunctionExpression(t){if(t.async){this.word("async");this.space()}const e=t.params[0];if(!this.format.retainLines&&!this.format.auxiliaryCommentBefore&&!this.format.auxiliaryCommentAfter&&t.params.length===1&&s(e)&&!hasTypesOrComments(t,e)){this.print(e,t)}else{this._params(t)}this._predicate(t);this.space();this.token("=>");this.space();this.print(t.body,t)}function hasTypesOrComments(t,e){var n,i;return!!(t.typeParameters||t.returnType||t.predicate||e.typeAnnotation||e.optional||(n=e.leadingComments)!=null&&n.length||(i=e.trailingComments)!=null&&i.length)}},330:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.ExportAllDeclaration=ExportAllDeclaration;e.ExportDefaultDeclaration=ExportDefaultDeclaration;e.ExportDefaultSpecifier=ExportDefaultSpecifier;e.ExportNamedDeclaration=ExportNamedDeclaration;e.ExportNamespaceSpecifier=ExportNamespaceSpecifier;e.ExportSpecifier=ExportSpecifier;e.ImportAttribute=ImportAttribute;e.ImportDeclaration=ImportDeclaration;e.ImportDefaultSpecifier=ImportDefaultSpecifier;e.ImportNamespaceSpecifier=ImportNamespaceSpecifier;e.ImportSpecifier=ImportSpecifier;var i=n(740);const{isClassDeclaration:s,isExportDefaultSpecifier:r,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:a,isImportNamespaceSpecifier:c,isStatement:p}=i;function ImportSpecifier(t){if(t.importKind==="type"||t.importKind==="typeof"){this.word(t.importKind);this.space()}this.print(t.imported,t);if(t.local&&t.local.name!==t.imported.name){this.space();this.word("as");this.space();this.print(t.local,t)}}function ImportDefaultSpecifier(t){this.print(t.local,t)}function ExportDefaultSpecifier(t){this.print(t.exported,t)}function ExportSpecifier(t){if(t.exportKind==="type"){this.word("type");this.space()}this.print(t.local,t);if(t.exported&&t.local.name!==t.exported.name){this.space();this.word("as");this.space();this.print(t.exported,t)}}function ExportNamespaceSpecifier(t){this.token("*");this.space();this.word("as");this.space();this.print(t.exported,t)}function ExportAllDeclaration(t){this.word("export");this.space();if(t.exportKind==="type"){this.word("type");this.space()}this.token("*");this.space();this.word("from");this.space();this.print(t.source,t);this.printAssertions(t);this.semicolon()}function ExportNamedDeclaration(t){if(this.format.decoratorsBeforeExport&&s(t.declaration)){this.printJoin(t.declaration.decorators,t)}this.word("export");this.space();ExportDeclaration.apply(this,arguments)}function ExportDefaultDeclaration(t){if(this.format.decoratorsBeforeExport&&s(t.declaration)){this.printJoin(t.declaration.decorators,t)}this.word("export");this.space();this.word("default");this.space();ExportDeclaration.apply(this,arguments)}function ExportDeclaration(t){if(t.declaration){const e=t.declaration;this.print(e,t);if(!p(e))this.semicolon()}else{if(t.exportKind==="type"){this.word("type");this.space()}const e=t.specifiers.slice(0);let n=false;for(;;){const i=e[0];if(r(i)||o(i)){n=true;this.print(e.shift(),t);if(e.length){this.token(",");this.space()}}else{break}}if(e.length||!e.length&&!n){this.token("{");if(e.length){this.space();this.printList(e,t);this.space()}this.token("}")}if(t.source){this.space();this.word("from");this.space();this.print(t.source,t);this.printAssertions(t)}this.semicolon()}}function ImportDeclaration(t){this.word("import");this.space();const e=t.importKind==="type"||t.importKind==="typeof";if(e){this.word(t.importKind);this.space()}const n=t.specifiers.slice(0);const i=!!n.length;while(i){const e=n[0];if(a(e)||c(e)){this.print(n.shift(),t);if(n.length){this.token(",");this.space()}}else{break}}if(n.length){this.token("{");this.space();this.printList(n,t);this.space();this.token("}")}else if(e&&!i){this.token("{");this.token("}")}if(i||e){this.space();this.word("from");this.space()}this.print(t.source,t);this.printAssertions(t);{var s;if((s=t.attributes)!=null&&s.length){this.space();this.word("with");this.space();this.printList(t.attributes,t)}}this.semicolon()}function ImportAttribute(t){this.print(t.key);this.token(":");this.space();this.print(t.value)}function ImportNamespaceSpecifier(t){this.token("*");this.space();this.word("as");this.space();this.print(t.local,t)}},996:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.BreakStatement=void 0;e.CatchClause=CatchClause;e.ContinueStatement=void 0;e.DebuggerStatement=DebuggerStatement;e.DoWhileStatement=DoWhileStatement;e.ForOfStatement=e.ForInStatement=void 0;e.ForStatement=ForStatement;e.IfStatement=IfStatement;e.LabeledStatement=LabeledStatement;e.ReturnStatement=void 0;e.SwitchCase=SwitchCase;e.SwitchStatement=SwitchStatement;e.ThrowStatement=void 0;e.TryStatement=TryStatement;e.VariableDeclaration=VariableDeclaration;e.VariableDeclarator=VariableDeclarator;e.WhileStatement=WhileStatement;e.WithStatement=WithStatement;var i=n(740);const{isFor:s,isForStatement:r,isIfStatement:o,isStatement:a}=i;function WithStatement(t){this.word("with");this.space();this.token("(");this.print(t.object,t);this.token(")");this.printBlock(t)}function IfStatement(t){this.word("if");this.space();this.token("(");this.print(t.test,t);this.token(")");this.space();const e=t.alternate&&o(getLastStatement(t.consequent));if(e){this.token("{");this.newline();this.indent()}this.printAndIndentOnComments(t.consequent,t);if(e){this.dedent();this.newline();this.token("}")}if(t.alternate){if(this.endsWith(125))this.space();this.word("else");this.space();this.printAndIndentOnComments(t.alternate,t)}}function getLastStatement(t){if(!a(t.body))return t;return getLastStatement(t.body)}function ForStatement(t){this.word("for");this.space();this.token("(");this.inForStatementInitCounter++;this.print(t.init,t);this.inForStatementInitCounter--;this.token(";");if(t.test){this.space();this.print(t.test,t)}this.token(";");if(t.update){this.space();this.print(t.update,t)}this.token(")");this.printBlock(t)}function WhileStatement(t){this.word("while");this.space();this.token("(");this.print(t.test,t);this.token(")");this.printBlock(t)}const buildForXStatement=function(t){return function(e){this.word("for");this.space();if(t==="of"&&e.await){this.word("await");this.space()}this.token("(");this.print(e.left,e);this.space();this.word(t);this.space();this.print(e.right,e);this.token(")");this.printBlock(e)}};const c=buildForXStatement("in");e.ForInStatement=c;const p=buildForXStatement("of");e.ForOfStatement=p;function DoWhileStatement(t){this.word("do");this.space();this.print(t.body,t);this.space();this.word("while");this.space();this.token("(");this.print(t.test,t);this.token(")");this.semicolon()}function buildLabelStatement(t,e="label"){return function(n){this.word(t);const i=n[e];if(i){this.space();const t=e=="label";const s=this.startTerminatorless(t);this.print(i,n);this.endTerminatorless(s)}this.semicolon()}}const l=buildLabelStatement("continue");e.ContinueStatement=l;const h=buildLabelStatement("return","argument");e.ReturnStatement=h;const u=buildLabelStatement("break");e.BreakStatement=u;const f=buildLabelStatement("throw","argument");e.ThrowStatement=f;function LabeledStatement(t){this.print(t.label,t);this.token(":");this.space();this.print(t.body,t)}function TryStatement(t){this.word("try");this.space();this.print(t.block,t);this.space();if(t.handlers){this.print(t.handlers[0],t)}else{this.print(t.handler,t)}if(t.finalizer){this.space();this.word("finally");this.space();this.print(t.finalizer,t)}}function CatchClause(t){this.word("catch");this.space();if(t.param){this.token("(");this.print(t.param,t);this.print(t.param.typeAnnotation,t);this.token(")");this.space()}this.print(t.body,t)}function SwitchStatement(t){this.word("switch");this.space();this.token("(");this.print(t.discriminant,t);this.token(")");this.space();this.token("{");this.printSequence(t.cases,t,{indent:true,addNewlines(e,n){if(!e&&t.cases[t.cases.length-1]===n)return-1}});this.token("}")}function SwitchCase(t){if(t.test){this.word("case");this.space();this.print(t.test,t);this.token(":")}else{this.word("default");this.token(":")}if(t.consequent.length){this.newline();this.printSequence(t.consequent,t,{indent:true})}}function DebuggerStatement(){this.word("debugger");this.semicolon()}function variableDeclarationIndent(){this.token(",");this.newline();if(this.endsWith(10)){for(let t=0;t<4;t++)this.space(true)}}function constDeclarationIndent(){this.token(",");this.newline();if(this.endsWith(10)){for(let t=0;t<6;t++)this.space(true)}}function VariableDeclaration(t,e){if(t.declare){this.word("declare");this.space()}this.word(t.kind);this.space();let n=false;if(!s(e)){for(const e of t.declarations){if(e.init){n=true}}}let i;if(n){i=t.kind==="const"?constDeclarationIndent:variableDeclarationIndent}this.printList(t.declarations,t,{separator:i});if(s(e)){if(r(e)){if(e.init===t)return}else{if(e.left===t)return}}this.semicolon()}function VariableDeclarator(t){this.print(t.id,t);if(t.definite)this.token("!");this.print(t.id.typeAnnotation,t);if(t.init){this.space();this.token("=");this.space();this.print(t.init,t)}}},117:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.TaggedTemplateExpression=TaggedTemplateExpression;e.TemplateElement=TemplateElement;e.TemplateLiteral=TemplateLiteral;function TaggedTemplateExpression(t){this.print(t.tag,t);this.print(t.typeParameters,t);this.print(t.quasi,t)}function TemplateElement(t,e){const n=e.quasis[0]===t;const i=e.quasis[e.quasis.length-1]===t;const s=(n?"`":"}")+t.value.raw+(i?"`":"${");this.token(s)}function TemplateLiteral(t){const e=t.quasis;for(let n=0;n<e.length;n++){this.print(e[n],t);if(n+1<e.length){this.print(t.expressions[n],t)}}}},446:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.ArgumentPlaceholder=ArgumentPlaceholder;e.ArrayPattern=e.ArrayExpression=ArrayExpression;e.BigIntLiteral=BigIntLiteral;e.BooleanLiteral=BooleanLiteral;e.DecimalLiteral=DecimalLiteral;e.Identifier=Identifier;e.NullLiteral=NullLiteral;e.NumericLiteral=NumericLiteral;e.ObjectPattern=e.ObjectExpression=ObjectExpression;e.ObjectMethod=ObjectMethod;e.ObjectProperty=ObjectProperty;e.PipelineBareFunction=PipelineBareFunction;e.PipelinePrimaryTopicReference=PipelinePrimaryTopicReference;e.PipelineTopicExpression=PipelineTopicExpression;e.RecordExpression=RecordExpression;e.RegExpLiteral=RegExpLiteral;e.SpreadElement=e.RestElement=RestElement;e.StringLiteral=StringLiteral;e.TopicReference=TopicReference;e.TupleExpression=TupleExpression;var i=n(740);var s=n(95);const{isAssignmentPattern:r,isIdentifier:o}=i;function Identifier(t){this.exactSource(t.loc,(()=>{this.word(t.name)}))}function ArgumentPlaceholder(){this.token("?")}function RestElement(t){this.token("...");this.print(t.argument,t)}function ObjectExpression(t){const e=t.properties;this.token("{");this.printInnerComments(t);if(e.length){this.space();this.printList(e,t,{indent:true,statement:true});this.space()}this.token("}")}function ObjectMethod(t){this.printJoin(t.decorators,t);this._methodHead(t);this.space();this.print(t.body,t)}function ObjectProperty(t){this.printJoin(t.decorators,t);if(t.computed){this.token("[");this.print(t.key,t);this.token("]")}else{if(r(t.value)&&o(t.key)&&t.key.name===t.value.left.name){this.print(t.value,t);return}this.print(t.key,t);if(t.shorthand&&o(t.key)&&o(t.value)&&t.key.name===t.value.name){return}}this.token(":");this.space();this.print(t.value,t)}function ArrayExpression(t){const e=t.elements;const n=e.length;this.token("[");this.printInnerComments(t);for(let i=0;i<e.length;i++){const s=e[i];if(s){if(i>0)this.space();this.print(s,t);if(i<n-1)this.token(",")}else{this.token(",")}}this.token("]")}function RecordExpression(t){const e=t.properties;let n;let i;if(this.format.recordAndTupleSyntaxType==="bar"){n="{|";i="|}"}else if(this.format.recordAndTupleSyntaxType==="hash"){n="#{";i="}"}else{throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`)}this.token(n);this.printInnerComments(t);if(e.length){this.space();this.printList(e,t,{indent:true,statement:true});this.space()}this.token(i)}function TupleExpression(t){const e=t.elements;const n=e.length;let i;let s;if(this.format.recordAndTupleSyntaxType==="bar"){i="[|";s="|]"}else if(this.format.recordAndTupleSyntaxType==="hash"){i="#[";s="]"}else{throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`)}this.token(i);this.printInnerComments(t);for(let i=0;i<e.length;i++){const s=e[i];if(s){if(i>0)this.space();this.print(s,t);if(i<n-1)this.token(",")}}this.token(s)}function RegExpLiteral(t){this.word(`/${t.pattern}/${t.flags}`)}function BooleanLiteral(t){this.word(t.value?"true":"false")}function NullLiteral(){this.word("null")}function NumericLiteral(t){const e=this.getPossibleRaw(t);const n=this.format.jsescOption;const i=t.value+"";if(n.numbers){this.number(s(t.value,n))}else if(e==null){this.number(i)}else if(this.format.minified){this.number(e.length<i.length?e:i)}else{this.number(e)}}function StringLiteral(t){const e=this.getPossibleRaw(t);if(!this.format.minified&&e!=null){this.token(e);return}const n=s(t.value,Object.assign(this.format.jsescOption,this.format.jsonCompatibleStrings&&{json:true}));return this.token(n)}function BigIntLiteral(t){const e=this.getPossibleRaw(t);if(!this.format.minified&&e!=null){this.word(e);return}this.word(t.value+"n")}function DecimalLiteral(t){const e=this.getPossibleRaw(t);if(!this.format.minified&&e!=null){this.word(e);return}this.word(t.value+"m")}const a=new Set(["^^","@@","^","%","#"]);function TopicReference(){const{topicToken:t}=this.format;if(a.has(t)){this.token(t)}else{const e=JSON.stringify(t);const n=Array.from(a,(t=>JSON.stringify(t)));throw new Error(`The "topicToken" generator option must be one of `+`${n.join(", ")} (${e} received instead).`)}}function PipelineTopicExpression(t){this.print(t.expression,t)}function PipelineBareFunction(t){this.print(t.callee,t)}function PipelinePrimaryTopicReference(){this.token("#")}},816:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.TSAnyKeyword=TSAnyKeyword;e.TSArrayType=TSArrayType;e.TSAsExpression=TSAsExpression;e.TSBigIntKeyword=TSBigIntKeyword;e.TSBooleanKeyword=TSBooleanKeyword;e.TSCallSignatureDeclaration=TSCallSignatureDeclaration;e.TSConditionalType=TSConditionalType;e.TSConstructSignatureDeclaration=TSConstructSignatureDeclaration;e.TSConstructorType=TSConstructorType;e.TSDeclareFunction=TSDeclareFunction;e.TSDeclareMethod=TSDeclareMethod;e.TSEnumDeclaration=TSEnumDeclaration;e.TSEnumMember=TSEnumMember;e.TSExportAssignment=TSExportAssignment;e.TSExpressionWithTypeArguments=TSExpressionWithTypeArguments;e.TSExternalModuleReference=TSExternalModuleReference;e.TSFunctionType=TSFunctionType;e.TSImportEqualsDeclaration=TSImportEqualsDeclaration;e.TSImportType=TSImportType;e.TSIndexSignature=TSIndexSignature;e.TSIndexedAccessType=TSIndexedAccessType;e.TSInferType=TSInferType;e.TSInstantiationExpression=TSInstantiationExpression;e.TSInterfaceBody=TSInterfaceBody;e.TSInterfaceDeclaration=TSInterfaceDeclaration;e.TSIntersectionType=TSIntersectionType;e.TSIntrinsicKeyword=TSIntrinsicKeyword;e.TSLiteralType=TSLiteralType;e.TSMappedType=TSMappedType;e.TSMethodSignature=TSMethodSignature;e.TSModuleBlock=TSModuleBlock;e.TSModuleDeclaration=TSModuleDeclaration;e.TSNamedTupleMember=TSNamedTupleMember;e.TSNamespaceExportDeclaration=TSNamespaceExportDeclaration;e.TSNeverKeyword=TSNeverKeyword;e.TSNonNullExpression=TSNonNullExpression;e.TSNullKeyword=TSNullKeyword;e.TSNumberKeyword=TSNumberKeyword;e.TSObjectKeyword=TSObjectKeyword;e.TSOptionalType=TSOptionalType;e.TSParameterProperty=TSParameterProperty;e.TSParenthesizedType=TSParenthesizedType;e.TSPropertySignature=TSPropertySignature;e.TSQualifiedName=TSQualifiedName;e.TSRestType=TSRestType;e.TSStringKeyword=TSStringKeyword;e.TSSymbolKeyword=TSSymbolKeyword;e.TSThisType=TSThisType;e.TSTupleType=TSTupleType;e.TSTypeAliasDeclaration=TSTypeAliasDeclaration;e.TSTypeAnnotation=TSTypeAnnotation;e.TSTypeAssertion=TSTypeAssertion;e.TSTypeLiteral=TSTypeLiteral;e.TSTypeOperator=TSTypeOperator;e.TSTypeParameter=TSTypeParameter;e.TSTypeParameterDeclaration=e.TSTypeParameterInstantiation=TSTypeParameterInstantiation;e.TSTypePredicate=TSTypePredicate;e.TSTypeQuery=TSTypeQuery;e.TSTypeReference=TSTypeReference;e.TSUndefinedKeyword=TSUndefinedKeyword;e.TSUnionType=TSUnionType;e.TSUnknownKeyword=TSUnknownKeyword;e.TSVoidKeyword=TSVoidKeyword;e.tsPrintBraced=tsPrintBraced;e.tsPrintClassMemberModifiers=tsPrintClassMemberModifiers;e.tsPrintFunctionOrConstructorType=tsPrintFunctionOrConstructorType;e.tsPrintPropertyOrMethodName=tsPrintPropertyOrMethodName;e.tsPrintSignatureDeclarationBase=tsPrintSignatureDeclarationBase;e.tsPrintTypeLiteralOrInterfaceBody=tsPrintTypeLiteralOrInterfaceBody;e.tsPrintUnionOrIntersectionType=tsPrintUnionOrIntersectionType;function TSTypeAnnotation(t){this.token(":");this.space();if(t.optional)this.token("?");this.print(t.typeAnnotation,t)}function TSTypeParameterInstantiation(t,e){this.token("<");this.printList(t.params,t,{});if(e.type==="ArrowFunctionExpression"&&t.params.length===1){this.token(",")}this.token(">")}function TSTypeParameter(t){if(t.in){this.word("in");this.space()}if(t.out){this.word("out");this.space()}this.word(t.name);if(t.constraint){this.space();this.word("extends");this.space();this.print(t.constraint,t)}if(t.default){this.space();this.token("=");this.space();this.print(t.default,t)}}function TSParameterProperty(t){if(t.accessibility){this.word(t.accessibility);this.space()}if(t.readonly){this.word("readonly");this.space()}this._param(t.parameter)}function TSDeclareFunction(t){if(t.declare){this.word("declare");this.space()}this._functionHead(t);this.token(";")}function TSDeclareMethod(t){this._classMethodHead(t);this.token(";")}function TSQualifiedName(t){this.print(t.left,t);this.token(".");this.print(t.right,t)}function TSCallSignatureDeclaration(t){this.tsPrintSignatureDeclarationBase(t);this.token(";")}function TSConstructSignatureDeclaration(t){this.word("new");this.space();this.tsPr