Files
server-configs/node_modules/playwright/lib/transform/babelBundleImpl.js

462 lines
1.3 MiB
JavaScript
Raw Normal View History

2026-02-13 22:24:27 +08:00
"use strict";var SB=Object.create;var iu=Object.defineProperty;var vB=Object.getOwnPropertyDescriptor;var PB=Object.getOwnPropertyNames;var AB=Object.getPrototypeOf,CB=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bT=(e,t)=>{for(var r in t)iu(e,r,{get:t[r],enumerable:!0})},ET=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of PB(t))!CB.call(e,s)&&s!==r&&iu(e,s,{get:()=>t[s],enumerable:!(n=vB(t,s))||n.enumerable});return e};var pi=(e,t,r)=>(r=e!=null?SB(AB(e)):{},ET(t||!e||!e.__esModule?iu(r,"default",{value:e,enumerable:!0}):r,e)),DB=e=>ET(iu({},"__esModule",{value:!0}),e);var au=x(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.default=wB;function wB(e,t){let r=Object.keys(t);for(let n of r)if(e[n]!==t[n])return!1;return!0}});var sa=x(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.default=IB;var TT=new Set;function IB(e,t,r="",n=e){if(TT.has(n))return;TT.add(n);let{internal:s,trace:i}=_B(1,2);s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
${i}`)}function _B(e,t){let{stackTraceLimit:r,prepareStackTrace:n}=Error,s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!s)return{internal:!1,trace:""};let i=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(i[1].getFileName()),trace:i.map(a=>` at ${a}`).join(`
`)}}});var Wt=x(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.isAccessor=XL;S.isAnyTypeAnnotation=fF;S.isArgumentPlaceholder=U4;S.isArrayExpression=NB;S.isArrayPattern=Ik;S.isArrayTypeAnnotation=dF;S.isArrowFunctionExpression=_k;S.isAssignmentExpression=OB;S.isAssignmentPattern=wk;S.isAwaitExpression=Zk;S.isBigIntLiteral=tF;S.isBinary=yL;S.isBinaryExpression=BB;S.isBindExpression=V4;S.isBlock=EL;S.isBlockParent=bL;S.isBlockStatement=jB;S.isBooleanLiteral=sk;S.isBooleanLiteralTypeAnnotation=mF;S.isBooleanTypeAnnotation=hF;S.isBreakStatement=MB;S.isCallExpression=RB;S.isCatchClause=qB;S.isClass=KL;S.isClassAccessorProperty=aF;S.isClassBody=Nk;S.isClassDeclaration=Bk;S.isClassExpression=Ok;S.isClassImplements=gF;S.isClassMethod=Kk;S.isClassPrivateMethod=lF;S.isClassPrivateProperty=oF;S.isClassProperty=iF;S.isCompletionStatement=SL;S.isConditional=vL;S.isConditionalExpression=UB;S.isContinueStatement=VB;S.isDebuggerStatement=$B;S.isDecimalLiteral=X4;S.isDeclaration=OL;S.isDeclareClass=bF;S.isDeclareExportAllDeclaration=DF;S.isDeclareExportDeclaration=CF;S.isDeclareFunction=EF;S.isDeclareInterface=TF;S.isDeclareModule=xF;S.isDeclareModuleExports=SF;S.isDeclareOpaqueType=PF;S.isDeclareTypeAlias=vF;S.isDeclareVariable=AF;S.isDeclaredPredicate=wF;S.isDecorator=$4;S.isDirective=FB;S.isDirectiveLiteral=LB;S.isDoExpression=W4;S.isDoWhileStatement=WB;S.isEmptyStatement=KB;S.isEmptyTypeAnnotation=RF;S.isEnumBody=t6;S.isEnumBooleanBody=d4;S.isEnumBooleanMember=g4;S.isEnumDeclaration=f4;S.isEnumDefaultedMember=T4;S.isEnumMember=r6;S.isEnumNumberBody=h4;S.isEnumNumberMember=b4;S.isEnumStringBody=m4;S.isEnumStringMember=E4;S.isEnumSymbolBody=y4;S.isExistsTypeAnnotation=IF;S.isExportAllDeclaration=kk;S.isExportDeclaration=HL;S.isExportDefaultDeclaration=Fk;S.isExportDefaultSpecifier=K4;S.isExportNamedDeclaration=Lk;S.isExportNamespaceSpecifier=rF;S.isExportSpecifier=jk;S.isExpression=mL;S.isExpressionStatement=HB;S.isExpressionWrapper=CL;S.isFile=GB;S.isFlow=JL;S.isFlowBaseAnnotation=QL;S.isFlowDeclaration=ZL;S.isFlowPredicate=e6;S.isFlowType=zL;S.isFor=DL;S.isForInStatement=XB;S.isForOfStatement=Mk;S.isForStatement=YB;S.isForXStatement=wL;S.isFunction=IL;S.isFunctionDeclaration=JB;S.isFunctionExpression=zB;S.isFunctionParameter=BL;S.isFunctionParent=_L;S.isFunctionTypeAnnotation=_F;S.isFunctionTypeParam=NF;S.isGenericTypeAnnotation=OF;S.isIdentifier=QB;S.isIfStatement=ZB;S.isImmutable=ML;S.isImport=eF;S.isImportAttribute=pF;S.isImportDeclaration=Rk;S.isImportDefaultSpecifier=qk;S.isImportExpression=$k;S.isImportNamespaceSpecifier=Uk;S.isImportOrExportDeclaration=xT;S.isImportSpecifier=Vk;S.isIndexedAccessType=x4;S.isInferredPredicate=BF;S.isInterfaceDeclaration=FF;S.isInterfaceExtends=kF;S.isInterfaceTypeAnnotation=LF;S.isInterpreterDirective=kB;S.isIntersectionTypeAnnotation=jF;S.isJSX=n6;S.isJSXAttribute=v4;S.isJSXClosingElement=P4;S.isJSXClosingFragment=j4;S.isJSXElement=A4;S.isJSXEmptyExpression=C4;S.isJSXExpressionContainer=D4;S.isJSXFragment=F4;S.isJSXIdentifier=I4;S.isJSXMemberExpression=_4;S.isJSXNamespacedName=N4;S.isJSXOpeningElement=O4;S.isJSXOpeningFragment=L4;S.isJSXSpreadAttribute=B4;S.isJSXSpreadChild=w4;S.isJSXText=k4;S.isLVal=FL;S.isLabeledStatement=ek;S.isLiteral=jL;S.isLogicalExpression=ak;S.isLoop=PL;S.isMemberExpression=ok;S.isMetaProperty=Wk;S.isMethod=qL;S.isMiscellaneous=s6;S.isMixedTypeAnnotation=MF;S.isModuleDeclaration=d6;S.isModuleExpression=Y4;S.isModuleSpecifier=GL;S.isNewExpression=lk;S.isNoop=M4;S.isNullLiteral=nk;S.isNullLiteralTypeAnnotation=yF;S.isNullableTypeAnnotation=qF;S.isNumberLiteral=u6;S.isNumberLiteralTypeAnnotation=UF;S.isNumberTypeAnnotation=VF;S.isNumericLiteral=rk;S.isObjectExpression=ck;S.isObjectMember=UL;S.isObjectMethod=pk;S.isObjectPattern=Hk;S.isObjectProperty=fk;S.isObjectTypeAnnotation=$F;S.isObjectTypeCallProperty=KF;S.isObjectTypeIndexer=HF;S.isObjectTypeInternalSlot=WF;S.isObjectTypeProperty=GF;S.isObjectTypeSpreadProperty=XF;S.isOpaqueType=YF;S.isOptionalCallExpression=sF;S.isOptionalIndexedAccessType=S4;S.isOptionalMemberExpression=nF;S.isParenthesizedExp
`,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,p=n=r):i.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function q6(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function U6(e,t,r,n,s,i){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Bd(e,t,r,n,2,!1,a,i),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=jT(e,t,r,n,a,i),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);i.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let u=t-1,p=/^[0-7]+/.exec(e.slice(u,t+2))[0],d=parseInt(p,8);d>255&&(p=p.slice(0,-1),d=parseInt(p,8)),t+=p.length-1;let m=e.charCodeAt(t);if(p!=="0"||m===56||m===57){if(s)return o(null);i.strictNumericEscape(u,r,n)}return o(String.fromCharCode(d))}return o(String.fromCharCode(l))}}function Bd(e,t,r,n,s,i,a,o){let l=t,u;return{n:u,pos:t}=LT(e,t,r,n,16,s,i,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:u,pos:t}}function LT(e,t,r,n,s,i,a,o,l,u){let c=t,p=s===16?FT.hex:FT.decBinOct,d=s===16?uu.hex:s===10?uu.dec:s===8?uu.oct:uu.bin,m=!1,g=0;for(let f=0,b=i==null?1/0:i;f<b;++f){let T=e.charCodeAt(t),w;if(T===95&&o!=="bail"){let I=e.charCodeAt(t-1),N=e.charCodeAt(t+1);if(o){if(Number.isNaN(N)||!d(N)||p.has(I)||p.has(N)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(T>=97?w=T-97+10:T>=65?w=T-65+10:M6(T)?w=T-48:w=1/0,w>=s){if(w<=9&&u)return{n:null,pos:t};if(w<=9&&l.invalidDigit(t,r,n,s))w=0;else if(a)w=0,m=!0;else break}++t,g=g*s+w}return t===c||i!=null&&t-c!==i||m?{n:null,pos:t}:{n:g,pos:t}}function jT(e,t,r,n,s,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Bd(e,t,r,n,e.indexOf("}",t)-t,!0,s,i),++t,o!==null&&o>1114111)if(s)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=Bd(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}});var la=x(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.UPDATE_OPERATORS=He.UNARY_OPERATORS=He.STRING_UNARY_OPERATORS=He.STATEMENT_OR_BLOCK_KEYS=He.NUMBER_UNARY_OPERATORS=He.NUMBER_BINARY_OPERATORS=He.LOGICAL_OPERATORS=He.INHERIT_KEYS=He.FOR_INIT_KEYS=He.FLATTENABLE_KEYS=He.EQUALITY_BINARY_OPERATORS=He.COMPARISON_BINARY_OPERATORS=He.COMMENT_KEYS=He.BOOLEAN_UNARY_OPERATORS=He.BOOLEAN_NUMBER_BINARY_OPERATORS=He.BOOLEAN_BINARY_OPERATORS=He.BINARY_OPERATORS=He.ASSIGNMENT_OPERATORS=void 0;var dve=He.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],hve=He.FLATTENABLE_KEYS=["body","expressions"],mve=He.FOR_INIT_KEYS=["left","init"],yve=He.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],V6=He.LOGICAL_OPERATORS=["||","&&","??"],gve=He.UPDATE_OPERATORS=["++","--"],$6=He.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],W6=He.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],K6=He.COMPARISON_BINARY_OPERATORS=[...W6,"in","instanceof"],H6=He.BOOLEAN_BINARY_OPERATORS=[...K6,...$6],RT=He.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],bve=He.BINARY_OPERATORS=["+",...RT,...H6,"|>"],Eve=He.ASSIGNMENT_OPERATORS=["=","+=",...RT.map(e=>e+"="),...V6.map(e=>e+"=")],G6=He.BOOLEAN_UNARY_OPERATORS=["delete","!"],X6=He.NUMBER_UNARY_OPERATORS=["+","-","~"],Y6=He.STRING_UNARY_OPERATORS=["typeof"],Tve=He.UNARY_OPERATORS=["void","throw",...G6,...X6,...Y6],xve=He.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};He.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),He.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var Un=x(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.allExpandedTypes=at.VISITOR_KEYS=at.NODE_PARENT_VALIDATIONS=at.NODE_FIELDS=at.FLIPPED_ALIAS_KEYS=at.DEPRECATED_KEYS=at.BUILDER_KEYS=at.ALIAS_KEYS=void 0;at.arrayOf=UT;at.arrayOfType=VT;at.assertEach=$T;at.assertNodeOrValueType=lj;at.assertNodeType=pu;at.assertOneOf=aj;at.assertOptionalChainStart=cj;at.assertShape=uj;at.assertValueType=jd;at.chain=WT;at.default=KT;at.defineAliasedType=dj;at.validate=Ld;at.validateArrayOfType=ij;at.validateOptional=
${a.join(`
`)}`)}return r.shapeOf=e,r}function cj(){function e(t){var r;let n=t;for(;t;){let{type:s}=n;if(s==="OptionalCallExpression"){if(n.optional)return;n=n.callee;continue}if(s==="OptionalMemberExpression"){if(n.optional)return;n=n.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=n)==null?void 0:r.type}`)}return e}function WT(...e){function t(...r){for(let n of e)n(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var pj=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),fj=new Set(["default","optional","deprecated","validate"]),Fd={};function dj(...e){return(t,r={})=>{let n=r.aliases;if(!n){var s;r.inherits&&(n=(s=Fd[r.inherits].aliases)==null?void 0:s.slice()),n!=null||(n=[]),r.aliases=n}let i=e.filter(a=>!n.includes(a));n.unshift(...i),KT(t,r)}}function KT(e,t={}){let r=t.inherits&&Fd[t.inherits]||{},n=t.fields;if(!n&&(n={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],c=u.default;if(Array.isArray(c)?c.length>0:c&&typeof c=="object")throw new Error("field defaults can only be primitives or empty arrays currently");n[l]={default:Array.isArray(c)?[]:c,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let s=t.visitor||r.visitor||[],i=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!pj.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(ej[t.deprecatedAlias]=e);for(let o of s.concat(a))n[o]=n[o]||{};for(let o of Object.keys(n)){let l=n[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=jd(cu(l.default)));for(let u of Object.keys(l))if(!fj.has(u))throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}J6[e]=t.visitor=s,Z6[e]=t.builder=a,Q6[e]=t.fields=n,z6[e]=t.aliases=i,i.forEach(o=>{kd[o]=kd[o]||[],kd[o].push(e)}),t.validate&&(tj[e]=t.validate),Fd[e]=t}});var So=x(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.patternLikeCommon=Pr.importAttributes=Pr.functionTypeAnnotationCommon=Pr.functionDeclarationCommon=Pr.functionCommon=Pr.classMethodOrPropertyCommon=Pr.classMethodOrDeclareMethodCommon=void 0;var Or=ia(),hj=oa(),HT=aa(),mj=MT(),ua=la(),D=Un(),oe=(0,D.defineAliasedType)("Standardized");oe("ArrayExpression",{fields:{elements:{validate:(0,D.arrayOf)((0,D.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});oe("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign((function(){let e=(0,D.assertOneOf)(...ua.ASSIGNMENT_OPERATORS),t=(0,D.assertOneOf)("=");return function(r,n,s){((0,Or.default)("Pattern",r.left)?t:e)(r,n,s)}})(),{oneOf:ua.ASSIGNMENT_OPERATORS}):(0,D.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,D.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,D.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});oe("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,D.assertOneOf)(...ua.BINARY_OPERATORS)},left:{validate:(function(){let e=(0,D.assertNodeType)("Expression"),t=(0,D.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,s,i){(n.operator==="in"?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","PrivateName"]})})()},right:{validate:(0,D.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});oe("InterpreterDirective",{builder:["valu
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});oe("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,D.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,D.assertNodeType)("Expression")}}});oe("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,D.assertNodeType)("Expression")}}});oe("Import",{aliases:["Expression"]});oe("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,D.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});oe("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,D.assertNodeType)("Identifier")}}});oe("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,D.assertNodeType)("Expression")},property:{validate:(function(){let e=(0,D.assertNodeType)("Identifier"),t=(0,D.assertNodeType)("Expression");return Object.assign(function(n,s,i){(n.computed?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","Identifier"]})})()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),(0,D.assertOptionalChainStart)()):(0,D.assertValueType)("boolean")}}});oe("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,D.assertNodeType)("Expression")},arguments:(0,D.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),(0,D.assertOptionalChainStart)()):(0,D.assertValueType)("boolean")},typeArguments:{validate:(0,D.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,D.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});oe("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},du(),{value:{validate:(0,D.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,D.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,D.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,D.assertValueType)("boolean"),optional:!0},declare:{validate:(0,D.assertValueType)("boolean"),optional:!0},variance:{validate:(0,D.assertNodeType)("Variance"),optional:!0}})});oe("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},du(),{key:{validate:(0,D.chain)((function(){let e=(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,D.assertNodeType)("Expression");return function(r,n,s){(r.computed?t:e)(r,n,s)}})(),(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,D.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,D.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,D.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,D.assertValueType)("boolean"),optional:!0},declare:{validate:(0,D.assertValueType)("boolean"),optional:!0},variance:{validate:(0,D.assertNodeType)("V
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Oe("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:(function(){let e=(0,Y.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,Y.assertOneOf)("-"),r=(0,Y.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function n(s,i,a){(0,Tj.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):r(s,i,a)}return n.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],n})()}}});Oe("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,Y.validateType)("TSEntityName"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation")}});Oe("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,Y.validateOptional)(Wr),id:(0,Y.validateType)("Identifier"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,Y.validateOptional)((0,Y.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,Y.validateType)("TSInterfaceBody")}});Oe("TSInterfaceBody",{visitor:["body"],fields:{body:(0,Y.validateArrayOfType)("TSTypeElement")}});Oe("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,Y.validateOptional)(Wr),id:(0,Y.validateType)("Identifier"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,Y.validateType)("TSType")}});Oe("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,Y.validateType)("Expression"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation")}});var ix={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,Y.validateType)("Expression"),typeAnnotation:(0,Y.validateType)("TSType")}};Oe("TSAsExpression",ix);Oe("TSSatisfiesExpression",ix);Oe("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,Y.validateType)("TSType"),expression:(0,Y.validateType)("Expression")}});Oe("TSEnumBody",{visitor:["members"],fields:{members:(0,Y.validateArrayOfType)("TSEnumMember")}});Oe("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,Y.validateOptional)(Wr),const:(0,Y.validateOptional)(Wr),id:(0,Y.validateType)("Identifier"),members:(0,Y.validateArrayOfType)("TSEnumMember"),initializer:(0,Y.validateOptionalType)("Expression"),body:(0,Y.validateOptionalType)("TSEnumBody")}});Oe("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,Y.validateType)("Identifier","StringLiteral"),initializer:(0,Y.validateOptionalType)("Expression")}});Oe("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,Y.assertOneOf)("global","module","namespace")},declare:(0,Y.validateOptional)(Wr)},{global:(0,Y.validateOptional)(Wr)},{id:(0,Y.validateType)("Identifier","StringLiteral"),body:(0,Y.validateType)("TSModuleBlock","TSModuleDeclaration")})});Oe("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,Y.validateArrayOfType)("Statement")}});Oe("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,Y.validateType)("StringLiteral"),qualifier:(0,Y.validateOptionalType)("TSEntityName"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,Y.assertNodeType)("ObjectExpression"),optional:!0}}});Oe("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,Y.validate)(Wr)},{id:(0,Y.validateType)("Identifier"),moduleReference:(0,Y.validateType)("TSEntity
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var MIe=un.smart=Sm(e=>e.length>1?e:e[0]),RIe=un.statements=Sm(e=>e),qIe=un.statement=Sm(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}),eX=un.expression={code:e=>`(
${e}
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(eX.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return ZG(t),t.expression}},UIe=un.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var Iu=x(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.merge=nX;_o.normalizeReplacements=iX;_o.validate=sX;var tX=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function rX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function nX(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:i=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:i}}function sX(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:i}=t,a=rX(t,tX);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(n!=null&&!(n instanceof RegExp)&&n!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(i!=null&&typeof i!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(i===!0&&(r!=null||n!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:n==null?void 0:n,preserveComments:s==null?void 0:s,syntacticPlaceholders:i==null?void 0:i}}function iX(e){if(Array.isArray(e))return e.reduce((t,r,n)=>(t["$"+n]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var Uo=x(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});function aX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Kn=class{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n}},ba=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function Lr(e,t){let{line:r,column:n,index:s}=e;return new Kn(r,n+t,s+t)}var vS="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",oX={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:vS},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:vS}},PS={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"},Ou=e=>e.type==="UpdateExpression"?PS.UpdateExpression[`${e.prefix}`]:PS[e.type],lX={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSin
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Ou(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Ou(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Ou(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifi
`:`\r
`):s=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let n="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(O.UnterminatedString,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);if(i===r)break;i===38?(n+=this.input.slice(s,this.state.pos),n+=this.jsxReadEntity(),s=this.state.pos):ya(i)?(n+=this.input.slice(s,this.state.pos),n+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}n+=this.input.slice(s,this.state.pos++),this.finishToken(134,n)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let n=10;this.codePointAtPos(this.state.pos)===120&&(n=16,++this.state.pos);let s=this.readInt(n,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let n=0,s=!1;for(;n++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let i=this.input.slice(r,this.state.pos),a=GX[i];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,n=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(ma(r)||r===45);this.finishToken(141,this.input.slice(n,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(141)?r.name=this.state.value:ey(this.state.type)?r.name=Rs(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,n=this.jsxParseIdentifier();if(!this.eat(14))return n;let s=this.startNodeAt(r);return s.namespace=n,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,n=this.jsxParseNamespacedName();if(n.type==="JSXNamespacedName")return n;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=n,s.property=this.jsxParseIdentifier(),n=this.finishNode(s,"JSXMemberExpression")}return n}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(dt.brace),this.next(),r=this.jsxParseExpressionContainer(r,dt.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(bi.AttributeIsEmpty,r),r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(bi.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(dt.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,n){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(n),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(dt.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(dt.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let n=this.startNodeAt(r);return this.eat(144)?this.finishNode(n,"JSXOpeningFragment"):(n.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(n))}jsxParseOpeningElementAfterName(r){let n=[];for(;!this.match(56)&&!this.match(144);)n.push(this.jsxParseAttribute());return r.attributes=n,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let n=this.startNodeAt(r);return this.eat(144)?this.finishNode(n,"JSXClosingFragment"):(n.name=this.jsxParseElementName(),this.expect(144),this.finishNode(n,"JSXClosingElement"))}jsxParseElementAt(r){let n=this.startNodeAt(r),s=[],i=this.jsxParseOpeningElementAt(r),a=null;if(!i.selfClosing){e:for(;;)switch(this.state.type){case
`,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,p=n=r):i.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function ZX(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function eY(e,t,r,n,s,i){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=jm(e,t,r,n,2,!1,a,i),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=GS(e,t,r,n,a,i),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);i.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let u=t-1,p=/^[0-7]+/.exec(e.slice(u,t+2))[0],d=parseInt(p,8);d>255&&(p=p.slice(0,-1),d=parseInt(p,8)),t+=p.length-1;let m=e.charCodeAt(t);if(p!=="0"||m===56||m===57){if(s)return o(null);i.strictNumericEscape(u,r,n)}return o(String.fromCharCode(d))}return o(String.fromCharCode(l))}}function jm(e,t,r,n,s,i,a,o){let l=t,u;return{n:u,pos:t}=HS(e,t,r,n,16,s,i,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:u,pos:t}}function HS(e,t,r,n,s,i,a,o,l,u){let c=t,p=s===16?_S.hex:_S.decBinOct,d=s===16?Nu.hex:s===10?Nu.dec:s===8?Nu.oct:Nu.bin,m=!1,g=0;for(let f=0,b=i==null?1/0:i;f<b;++f){let T=e.charCodeAt(t),w;if(T===95&&o!=="bail"){let I=e.charCodeAt(t-1),N=e.charCodeAt(t+1);if(o){if(Number.isNaN(N)||!d(N)||p.has(I)||p.has(N)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,n)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(T>=97?w=T-97+10:T>=65?w=T-65+10:QX(T)?w=T-48:w=1/0,w>=s){if(w<=9&&u)return{n:null,pos:t};if(w<=9&&l.invalidDigit(t,r,n,s))w=0;else if(a)w=0,m=!0;else break}++t,g=g*s+w}return t===c||i!=null&&t-c!==i||m?{n:null,pos:t}:{n:g,pos:t}}function GS(e,t,r,n,s,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=jm(e,t,r,n,e.indexOf("}",t)-t,!0,s,i),++t,o!==null&&o>1114111)if(s)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=jm(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}function Bo(e,t,r){return new Kn(r,e-t,e)}var tY=new Set([103,109,115,105,121,117,100,118]),$n=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new ba(t.startLoc,t.endLoc)}},Mm=class extends Fm{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,s,i,a)=>this.optionFlags&2048?(this.raise(O.InvalidDigit,Bo(n,s,i),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(O.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(O.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(O.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(O.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,s,i)=>{this.recordStrictModeErrors(O.StrictNumericEscape,Bo(n,s,i))},unterminated:(n,s,i)=>{throw this.raise(O.UnterminatedString,Bo(n-1,s,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(O.StrictNumericEscape),unterminated:(n,s,i)=>{throw this.raise(O.UnterminatedTemplate,Bo(n,s,i))}}),this.state=new Lm,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new $n(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;ret
`),cooked:i===null?null:i.slice(1,u)},o.tail=l,this.next();let p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,Lr(this.state.lastTokEndLoc,u)),p}parseTemplate(t){let r=this.startNode(),n=this.parseTemplateElement(t),s=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(n=this.parseTemplateElement(t));return r.expressions=i,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,s){n&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(s),a=this.checkProto(c,n,a,s)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(O.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),l.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=i;let u="ObjectExpression";return r?u="ObjectPattern":n&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(O.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),s=!1,i=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let l=this.state.containsEsc;if(this.parsePropertyName(n,t),!o&&!l&&this.maybeAsyncOrAccessorProp(n)){let{key:u}=n,c=u.name;c==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(u),n.kind=c,this.match(55)&&(o=!0,this.raise(O.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,s,!1,i,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let n=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==n&&this.raise(t.kind==="get"?O.BadGetterArity:O.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(O.BadSetterRestParameter,t)}parseObjectMethod(t,r,n,s,i){if(i){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,s){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let i=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=i):this.raise(O.InvalidCoverInitializedName,i),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,n,s,i,a,o){let l=this.parseObjectMethod(t,n,s,i,a)||this.parseObjectProperty(t,r,i,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.ke
`):r+=s;return r}var iv=!1,av=/\r\n|[\n\r\u2028\u2029]/;function BY(e,t,r){let n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},o=n.line,l=n.column,u=s.line,c=s.column,p=Math.max(o-(i+1),0),d=Math.min(t.length,u+a);o===-1&&(p=0),u===-1&&(d=t.length);let m=u-o,g={};if(m)for(let f=0;f<=m;f++){let b=f+o;if(!l)g[b]=!0;else if(f===0){let T=t[b-1].length;g[b]=[l,T-l+1]}else if(f===m)g[b]=[0,c];else{let T=t[b-f].length;g[b]=[0,T]}}else l===c?l?g[o]=[l,0]:g[o]=!0:g[o]=[l,c-l];return{start:p,end:d,markerLines:g}}function pv(e,t,r={}){let n=r.forceColor||DY()&&r.highlightCode,s=lv(n),i=e.split(av),{start:a,end:o,markerLines:l}=BY(t,i,r),u=t.start&&typeof t.start.column=="number",c=String(o).length,d=(n?cv(e):e).split(av,o).slice(a,o).map((m,g)=>{let f=a+1+g,T=` ${` ${f}`.slice(-c)} |`,w=l[f],I=!l[f+1];if(w){let N="";if(Array.isArray(w)){let L=m.slice(0,Math.max(w[0]-1,0)).replace(/[^\t]/g," "),W=w[1]||1;N=[`
`,s.gutter(T.replace(/\d/g," "))," ",L,s.marker("^").repeat(W)].join(""),I&&r.message&&(N+=" "+s.message(r.message))}return[s.marker(">"),s.gutter(T),m.length>0?` ${m}`:"",N].join("")}else return` ${s.gutter(T)}${m.length>0?` ${m}`:""}`}).join(`
`);return r.message&&!u&&(d=`${" ".repeat(c+1)}${r.message}
${d}`),n?s.reset(d):d}function kY(e,t,r,n={}){if(!iv){iv=!0;let i="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(i,"DeprecationWarning");else{let a=new Error(i);a.name="DeprecationWarning",console.warn(new Error(i))}}return r=Math.max(r,0),pv(e,{start:{column:r,line:t}},n)}Vo.codeFrameColumns=pv;Vo.default=kY;Vo.highlight=cv});var ay=x(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.default=XY;var FY=Fe(),LY=Uo(),jY=xa(),{isCallExpression:MY,isExpressionStatement:RY,isFunction:qY,isIdentifier:UY,isJSXIdentifier:VY,isNewExpression:$Y,isPlaceholder:$u,isStatement:WY,isStringLiteral:fv,removePropertiesDeep:KY,traverse:HY}=FY,GY=/^[_$A-Z0-9]+$/;function XY(e,t,r){let{placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:a}=r,o=zY(t,r.parser,a);KY(o,{preserveComments:i}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:n,placeholderPattern:s,syntacticPlaceholders:a};return HY(o,YY,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function YY(e,t,r){var n;let s,i=r.syntactic.placeholders.length>0;if($u(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,i=!0}else{if(i||r.syntacticPlaceholders)return;if(UY(e)||VY(e))s=e.name;else if(fv(e))s=e.value;else return}if(i&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!i&&(r.placeholderPattern===!1||!(r.placeholderPattern||GY).test(s))&&!((n=r.placeholderWhitelist)!=null&&n.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;fv(e)||$u(e,{expectedNode:"StringLiteral"})?l="string":$Y(a)&&o==="arguments"||MY(a)&&o==="arguments"||qY(a)&&o==="params"?l="param":RY(a)&&!$u(e)?(l="statement",t=t.slice(0,-1)):WY(e)&&$u(e)?l="statement":l="other";let{placeholders:u,placeholderNames:c}=i?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:p=>JY(p,t),isDuplicate:c.has(s)}),c.add(s)}function JY(e,t){let r=e;for(let i=0;i<t.length-1;i++){let{key:a,index:o}=t[i];o===void 0?r=r[a]:r=r[a][o]}let{key:n,index:s}=t[t.length-1];return{parent:r,key:n,index:s}}function zY(e,t,r){let n=(t.plugins||[]).slice();r!==!1&&n.push("placeholders"),t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:n});try{return(0,LY.parse)(e,t)}catch(s){let i=s.loc;throw i&&(s.message+=`
`+(0,jY.codeFrameColumns)(e,{start:i}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var cy=x(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});uy.default=nJ;var QY=Fe(),{blockStatement:ZY,cloneNode:ly,emptyStatement:eJ,expressionStatement:oy,identifier:Wu,isStatement:dv,isStringLiteral:tJ,stringLiteral:rJ,validate:hv}=QY;function nJ(e,t){let r=ly(e.ast);return t&&(e.placeholders.forEach(n=>{if(!hasOwnProperty.call(t,n.name)){let s=n.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
placeholder you may want to consider passing one of the following options to @babel/template:
- { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
- { placeholderPattern: /^${s}$/ }`)}}),Object.keys(t).forEach(n=>{if(!e.placeholderNames.has(n))throw new Error(`Unknown substitution "${n}" given`)})),e.placeholders.slice().reverse().forEach(n=>{try{var s;sJ(n,r,(s=t&&t[n.name])!=null?s:null)}catch(i){throw i.message=`@babel/template placeholder "${n.name}": ${i.message}`,i}}),r}function sJ(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>ly(o)):typeof r=="object"&&(r=ly(r)));let{parent:n,key:s,index:i}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=rJ(r)),!r||!tJ(r))throw new Error("Expected string substitution")}else if(e.type==="statement")i===void 0?r?Array.isArray(r)?r=ZY(r):typeof r=="string"?r=oy(Wu(r)):dv(r)||(r=oy(r)):r=eJ():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=Wu(r)),dv(r)||(r=oy(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=Wu(r)),i===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=Wu(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,l,u){let c=o[l];o[l]=u,(c.type==="Identifier"||c.type==="Placeholder")&&(c.typeAnnotation&&(u.typeAnnotation=c.typeAnnotation),c.optional&&(u.optional=c.optional),c.decorators&&(u.decorators=c.decorators))}if(i===void 0)hv(n,s,r),a(n,s,r);else{let o=n[s].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(i,1):Array.isArray(r)?o.splice(i,1,...r):a(o,i,r):a(o,i,r),hv(n,s,o),n[s]=o}}});var mv=x(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.default=lJ;var iJ=Iu(),aJ=ay(),oJ=cy();function lJ(e,t,r){t=e.code(t);let n;return s=>{let i=(0,iJ.normalizeReplacements)(s);return n||(n=(0,aJ.default)(e,t,r)),e.unwrap((0,oJ.default)(n,i))}}});var yv=x(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.default=fJ;var uJ=Iu(),cJ=ay(),pJ=cy();function fJ(e,t,r){let{metadata:n,names:s}=dJ(e,t,r);return i=>{let a={};return i.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,uJ.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,pJ.default)(n,l?Object.assign(l,a):a))}}}function dJ(e,t,r){let n="BABEL_TPL$",s=t.join("");do n="$$"+n;while(s.includes(n));let{names:i,code:a}=hJ(t,n);return{metadata:(0,cJ.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(i.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:i}}function hJ(e,t){let r=[],n=e[0];for(let s=1;s<e.length;s++){let i=`${t}${s-1}`;r.push(i),n+=i+e[s]}return{names:r,code:n}}});var Sv=x(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.default=xv;var Hn=Iu(),gv=mv(),bv=yv(),Ev=(0,Hn.validate)({placeholderPattern:!1});function xv(e,t){let r=new WeakMap,n=new WeakMap,s=t||(0,Hn.validate)(null);return Object.assign((i,...a)=>{if(typeof i=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return Tv((0,gv.default)(e,i,(0,Hn.merge)(s,(0,Hn.validate)(a[0]))))}else if(Array.isArray(i)){let o=r.get(i);return o||(o=(0,bv.default)(e,i,s),r.set(i,o)),Tv(o(a))}else if(typeof i=="object"&&i){if(a.length>0)throw new Error("Unexpected extra params.");return xv(e,(0,Hn.merge)(s,(0,Hn.validate)(i)))}throw new Error(`Unexpected template param ${typeof i}`)},{ast:(i,...a)=>{if(typeof i=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,gv.default)(e,i,(0,Hn.merge)((0,Hn.merge)(s,(0,Hn.validate)(a[0])),Ev))()}else if(Array.isArray(i)){let o=n.get(i);return o||(o=(0,bv.default)(e,i,(0,Hn.merge)(s,Ev)),n.set(i,o)),o(a)()}throw new Error(`Unexpected template param ${typeof i}`)}})}function Tv(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
`).slice(3).join(`
`))}return r=>{try{return e(r)}catch(n){throw n.stack+=`
=============
${t}`,n}}}});var Ko=x(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.statements=Gr.statement=Gr.smart=Gr.program=Gr.expression=Gr.default=void 0;var $o=SS(),Wo=Sv(),hy=Gr.smart=(0,Wo.default)($o.smart),mJ=Gr.statement=(0,Wo.default)($o.statement),yJ=Gr.statements=(0,Wo.default)($o.statements),gJ=Gr.expression=(0,Wo.default)($o.expression),bJ=Gr.program=(0,Wo.default)($o.program),i_e=Gr.default=Object.assign(hy.bind(void 0),{smart:hy,statement:mJ,statements:yJ,expression:gJ,program:bJ,ast:hy.ast})});var vv=x(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.default=void 0;var EJ=Ko();function X(e,t,r){return Object.freeze({minVersion:e,ast:()=>EJ.default.program.ast(t,{preserveComments:!0}),metadata:r})}var TJ=Ku.default={__proto__:null,OverloadYield:X("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{},internal:!1}),applyDecoratedDescriptor:X("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{},internal:!1}),applyDecs2311:X("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a<t.length;a++)i=t[a].apply(o,r?[i]:[]);return r?i:o}}function b(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||"be")+" a function"+(r?"":" or undefined"));return e}function applyDec(e,t,n,r,o,i,u,s,f,l,p){function d(e){if(!p(e))throw new TypeError("Attempted to access private element on non-instance")}var h=[].concat(t[0]),v=t[3],w=!u,D=1===o,S=3===o,j=4===o,E=2===o;function I(t,n,r){return function(o,i){return n&&(i=o,o=e),r&&r(o),P[t].call(o,i)}}if(!w){var P={},k=[],F=S?"get":j||D?"set":"value";if(f?(l||D?P={get:setFunctionName((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:P[F]=v,l||setFunctionName(P[F],r,E?"":F)):l||(P=Object.getOwnPropertyDescriptor(e,r)),!l&&!f){if((c=y[+s][r])&&7!=(c^o))throw Error("Decorating two elements with the same name ("+P[F].name+") is not supported yet");y[+s][r]=o<3?1:o}}for(var N=e,O=h.length-1;O>=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(nu
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return define(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,c=0,u=e,G.n=r,a}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(define(t={},n,(function(){return this})),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(u,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",define(GeneratorFunctionPrototype,o,"GeneratorFunction"),define(u),define(u,o,"Generator"),define(u,n,(function(){return this})),define(u,"toString",(function(){return"[object Generator]"})),(_regenerator=function(){return{w:i,m:f}})()}`,{globals:["Symbol","Object","TypeError"],locals:{_regenerator:["body.0.id","body.0.body.body.9.argument.expressions.9.callee.left"]},exportBindingAssignments:["body.0.body.body.9.argument.expressions.9.callee"],exportName:"_regenerator",dependencies:{regeneratorDefine:["body.0.body.body.1.body.body.1.argument.expressions.0.callee","body.0.body.body.7.declarations.0.init.alternate.expressions.0.callee","body.0.body.body.8.body.body.0.argument.expressions.0.alternate.expressions.1.callee","body.0.body.body.9.argument.expressions.1.callee","body.0.body.body.9.argument.expressions.2.callee","body.0.body.body.9.argument.expressions.4.callee","body.0.body.body.9.argument.expressions.5.callee","body.0.body.body.9.argument.expressions.6.callee","body.0.body.body.9.argument.expressions.7.callee","body.0.body.body.9.argument.expressions.8.callee"]},internal:!1}),regeneratorAsync:X("7.27.0","function _regeneratorAsync(n,e,r,t,o){var a=asyncGen(n,e,r,t,o);return a.next().then((function(n){return n.done?n.value:a.next()}))}",{globals:[],locals:{_regeneratorAsync:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsync",dependencies:{regeneratorAsyncGen:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),regeneratorAsyncGen:X("7.27.0","function _regeneratorAsyncGen(r,e,t,o,n){return new regeneratorAsyncIterator(regenerator().w(r,e,t,o),n||Promise)}",{globals:["Promise"],locals:{_regeneratorAsyncGen:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsyncGen",dependencies:{regenerator:["body.0.body.body.0.argument.arguments.0.callee.object.callee"],regeneratorAsyncIterator:["body.0.body.body.0.argument.callee"]},internal:!1}),regeneratorAsyncIterator:X("7.27.0",'function AsyncIterator(t,e){function n(r,o,i,f){try{var c=t[r](o),u=c.value;return u instanceof OverloadYield?e.resolve(u.v).then((function(t){n("next",t,i,f)}),(function(t){n("throw",t,i,f)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){
`).join(`
`+i),e.push(s+"m+"+Qu.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=HJ()+t+" "+e[0]}function HJ(){return ur.inspectOpts.hideDate?"":new Date().toISOString()+" "}function GJ(...e){return process.stderr.write(zu.formatWithOptions(ur.inspectOpts,...e)+`
`)}function XJ(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function YJ(){return process.env.DEBUG}function JJ(e){e.inspectOpts={};let t=Object.keys(ur.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=ur.inspectOpts[t[r]]}Qu.exports=Ey()(ur);var{formatters:Fv}=Qu.exports;Fv.o=function(e){return this.inspectOpts.colors=this.useColors,zu.inspect(e,this.inspectOpts).split(`
`).map(t=>t.trim()).join(" ")};Fv.O=function(e){return this.inspectOpts.colors=this.useColors,zu.inspect(e,this.inspectOpts)}});var xi=x((k_e,xy)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?xy.exports=Iv():xy.exports=Lv()});var vy=x(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.isBindingIdentifier=Ez;nr.isBlockScoped=Pz;nr.isExpression=xz;nr.isFlow=Iz;nr.isForAwaitStatement=Oz;nr.isGenerated=Dz;nr.isPure=wz;nr.isReferenced=vz;nr.isReferencedIdentifier=gz;nr.isReferencedMemberExpression=bz;nr.isRestProperty=_z;nr.isScope=Sz;nr.isSpreadProperty=Nz;nr.isStatement=Tz;nr.isUser=Cz;nr.isVar=Az;var zJ=Fe(),{isBinding:QJ,isBlockScoped:ZJ,isExportDeclaration:ez,isExpression:tz,isFlow:rz,isForStatement:nz,isForXStatement:sz,isIdentifier:jv,isImportDeclaration:iz,isImportSpecifier:az,isJSXIdentifier:oz,isJSXMemberExpression:lz,isMemberExpression:uz,isRestElement:Mv,isReferenced:Sy,isScope:cz,isStatement:pz,isVar:fz,isVariableDeclaration:dz,react:hz,isForOfStatement:mz}=zJ,{isCompatTag:yz}=hz;function gz(e){let{node:t,parent:r}=this;if(!jv(t,e)&&!lz(r,e))if(oz(t,e)){if(yz(t.name))return!1}else return!1;return Sy(t,r,this.parentPath.parent)}function bz(){let{node:e,parent:t}=this;return uz(e)&&Sy(e,t)}function Ez(){let{node:e,parent:t}=this,r=this.parentPath.parent;return jv(e)&&QJ(e,t,r)}function Tz(){let{node:e,parent:t}=this;return pz(e)?!(dz(e)&&(sz(t,{left:e})||nz(t,{init:e}))):!1}function xz(){return this.isIdentifier()?this.isReferencedIdentifier():tz(this.node)}function Sz(){return cz(this.node,this.parent)}function vz(){return Sy(this.node,this.parent)}function Pz(){return ZJ(this.node)}function Az(){return fz(this.node)}function Cz(){return this.node&&!!this.node.loc}function Dz(){return!this.isUser()}function wz(e){return this.scope.isPure(this.node,e)}function Iz(){let{node:e}=this;return rz(e)?!0:iz(e)?e.importKind==="type"||e.importKind==="typeof":ez(e)?e.exportKind==="type":az(e)?e.importKind==="type"||e.importKind==="typeof":!1}function _z(){var e;return Mv(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function Nz(){var e;return Mv(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function Oz(){return mz(this.node,{await:!0})}nr.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},nr.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var Zu=x(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.environmentVisitor=qz;vi.explode=Yv;vi.isExplodedVisitor=Xv;vi.merge=zv;vi.verify=Jv;var Gv=by(),Bz=vy(),kz=Fe(),Rv=An(),{DEPRECATED_KEYS:qv,DEPRECATED_ALIASES:Uv,FLIPPED_ALIAS_KEYS:Vv,TYPES:Fz,__internal__deprecationWarning:$v}=kz;function Lz(e){return e in Gv}function Xv(e){return e==null?void 0:e._exploded}function Yv(e){if(Xv(e))return e;e._exploded=!0;for(let t of Object.keys(e)){if(Si(t))continue;let r=t.split("|");if(r.length===1)continue;let n=e[t];delete e[t];for(let s of r)e[s]=n}Jv(e),delete e.__esModule,jz(e),Hv(e);for(let t of Object.keys(e)){if(Si(t)||!Lz(t))continue;let r=e[t];for(let s of Object.keys(r))r[s]=Mz(t,r[s]);delete e[t];let n=Gv[t];if(n!==null)for(let s of n)e[s]?Ho(e[s],r):e[s]=r;else Ho(e,r)}for(let t of Object.keys(e)){if(Si(t))continue;let r=Vv[t];if(t in qv){let s=qv[t];$v(t,s,"Visitor "),r=[s]}else if(t in Uv){let s=Uv[t];$v(t,s,"Visitor "),r=Vv[s]}if(!r)continue;let n=e[t];delete e[t];for(let s of r){let i=e[s];i?Ho(i,n):e[s]=Object.assign({},n)}}for(let t of Object.keys(e))Si(t)||Hv(e[t]);return e}function Jv(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&Wv(t,e[t]),Si(t))continue;if(!Fz.includes(t))throw new Error(`You gave us a visitor for the node t
`),d=0;for(p!==0&&this._mark(c,a,o,l,u);p!==-1;)i.line++,i.column=0,d=p+1,d<s&&c!==void 0&&this._mark(++c,0,null,null,u),p=t.indexOf(`
`,d);i.column+=s-d}_mark(t,r,n,s,i){var a;(a=this._map)==null||a.mark(this._position,t,r,n,s,i)}removeTrailingNewline(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===10&&this._queueCursor--}removeLastSemicolon(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===59&&this._queueCursor--}getLastChar(){let t=this._queueCursor;return t!==0?this._queue[t-1].char:this._last}getNewlineCount(){let t=this._queueCursor,r=0;if(t===0)return this._last===10?1:0;for(let n=t-1;n>=0&&this._queue[n].char===10;n--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){let t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let n=t.identifierName,s=this._sourcePosition;n&&(this._canMarkIdName=!1,s.identifierName=n),r(),n&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,n){this._map&&this._normalizePosition(t,r,n)}_normalizePosition(t,r,n){let s=r[t],i=this._sourcePosition;s&&(i.line=s.line,i.column=Math.max(s.column+n,0),i.filename=r.filename)}getCurrentColumn(){let t=this._queue,r=this._queueCursor,n=-1,s=0;for(let i=0;i<r;i++){let a=t[i];a.char===10&&(n=s),s+=a.repeat}return n===-1?this._position.column+s:s-1-n}getCurrentLine(){let t=0,r=this._queue;for(let n=0;n<this._queueCursor;n++)r[n].char===10&&t++;return this._position.line+t}};lc.default=$y});var CP=x(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.nodes=void 0;var RQ=Fe(),{FLIPPED_ALIAS_KEYS:qQ,isArrayExpression:UQ,isAssignmentExpression:vP,isBinary:PP,isBlockStatement:VQ,isCallExpression:AP,isFunction:Xo,isIdentifier:uc,isLiteral:$Q,isMemberExpression:Wy,isObjectExpression:WQ,isOptionalCallExpression:KQ,isOptionalMemberExpression:HQ,isStringLiteral:GQ}=RQ;function Aa(e,t){return e&&(Wy(e)||HQ(e)?(Aa(e.object,t),e.computed&&Aa(e.property,t)):PP(e)||vP(e)?(Aa(e.left,t),Aa(e.right,t)):AP(e)||KQ(e)?(t.hasCall=!0,Aa(e.callee,t)):Xo(e)?t.hasFunction=!0:uc(e)&&(t.hasHelper=t.hasHelper||e.callee&&ss(e.callee))),t}function SP(e){return Aa(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function ss(e){return e?Wy(e)?ss(e.object)||ss(e.property):uc(e)?e.name==="require"||e.name.charCodeAt(0)===95:AP(e)?ss(e.callee):PP(e)||vP(e)?uc(e.left)&&ss(e.left)||ss(e.right):!1:!1}function XQ(e){return $Q(e)||WQ(e)||UQ(e)||uc(e)||Wy(e)}var Di=cc.nodes={AssignmentExpression(e){let t=SP(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase(e,t){return(e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(Xo(e.left)||Xo(e.right))return 2},Literal(e){if(GQ(e)&&e.value==="use strict")return 2},CallExpression(e){if(Xo(e.callee)||ss(e))return 3},OptionalCallExpression(e){if(Xo(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){let r=e.declarations[t],n=ss(r.id)&&!XQ(r.init);if(!n&&r.init){let s=SP(r.init);n=ss(r.init)&&s.hasCall||s.hasFunction}if(n)return 3}},IfStatement(e){if(VQ(e.consequent))return 3}};Di.ObjectProperty=Di.ObjectTypeProperty=Di.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1};Di.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length))return 1};Di.ObjectTypeIndexer=function(e,t){var r,n;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length))return 1};Di.ObjectTypeInternalSlot=function(e,t){var r,n,s;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((n=t.callProperties)!=null&&n.length)&&!((s=t.indexers)!=null&&s.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(qQ[e]||[]).forEach(function(r){let n=t?3:0;Di[r]=()=>n})})});var kP=x(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0
`,m,g=!0,f=t.numbers=="binary",b=t.numbers=="octal",T=t.numbers=="decimal",w=t.numbers=="hexadecimal";if(s&&e&&Qte(e.toJSON)&&(e=e.toJSON()),!Jte(e)){if(Zte(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Us(Array.from(e),t)+")");if(ere(e))return e.size==0?"new Set()":"new Set("+Us(Array.from(e),t)+")";if(Xte(e))return e.length==0?"Buffer.from([])":"Buffer.from("+Us(Array.from(e),t)+")";if(Gte(e))return m=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),p||r(),Hte(e,N=>{g=!1,p&&(t.__inline2__=!1),m.push((a||p?"":l)+Us(N,t))}),g?"[]":p?"["+m.join(", ")+"]":"["+d+m.join(","+d)+d+(a?"":u)+"]";if(zte(e)||zy(e)){if(s)return JSON.stringify(Number(e));let N;if(T)N=String(e);else if(w){let L=e.toString(16);o||(L=L.toUpperCase()),N="0x"+L}else f?N="0b"+e.toString(2):b&&(N="0o"+e.toString(8));return zy(e)?N+"n":N}else return zy(e)?s?JSON.stringify(Number(e)):e+"n":Yte(e)?(m=[],t.wrap=!0,r(),QP(e,(N,L)=>{g=!1,m.push((a?"":l)+Us(N,t)+":"+(a?"":" ")+Us(L,t))}),g?"{}":"{"+d+m.join(","+d)+d+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let I=t.escapeEverything?ire:are;return m=e.replace(I,(N,L,W,U,H,pe)=>{if(L){if(t.minimal)return L;let ce=L.charCodeAt(0),qe=L.charCodeAt(1);if(t.es6){let ze=(ce-55296)*1024+qe-56320+65536;return"\\u{"+Yo(ze,o)+"}"}return mc(Yo(ce,o))+mc(Yo(qe,o))}if(W)return mc(Yo(W.charCodeAt(0),o));if(N=="\0"&&!s&&!nre.test(pe.charAt(H+1)))return"\\0";if(U)return U==i||t.escapeEverything?"\\"+U:U;if(rre.test(N))return tre[N];if(t.minimal&&!sre.test(N))return N;let Ee=Yo(N.charCodeAt(0),o);return s||Ee.length>2?mc(Ee):"\\x"+("00"+Ee).slice(-2)}),i=="`"&&(m=m.replace(/\$\{/g,"\\${")),t.isScriptContext&&(m=m.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--")),t.wrap&&(m=i+m+i),m};Us.version="3.0.2";ZP.exports=Us});var Zy=x(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.ArgumentPlaceholder=pre;Nt.ArrayPattern=Nt.ArrayExpression=yre;Nt.BigIntLiteral=Pre;Nt.BooleanLiteral=Tre;Nt.Identifier=cre;Nt.NullLiteral=xre;Nt.NumericLiteral=Sre;Nt.ObjectPattern=Nt.ObjectExpression=dre;Nt.ObjectMethod=hre;Nt.ObjectProperty=mre;Nt.PipelineBareFunction=Dre;Nt.PipelinePrimaryTopicReference=wre;Nt.PipelineTopicExpression=Cre;Nt.RecordExpression=gre;Nt.RegExpLiteral=Ere;Nt.SpreadElement=Nt.RestElement=fre;Nt.StringLiteral=vre;Nt.TopicReference=Are;Nt.TupleExpression=bre;Nt.VoidPattern=Ire;Nt._getRawIdentifier=ure;var ore=Fe(),nA=eA(),{isAssignmentPattern:lre,isIdentifier:Qy}=ore,tA=null,yc="";function ure(e){if(e===tA)return yc;tA=e;let{name:t}=e,r=this.tokenMap.find(e,n=>n.value===t);return r?(yc=this._originalCode.slice(r.start,r.end),yc):yc=e.name}function cre(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)}function pre(){this.tokenChar(63)}function fre(e){this.token("..."),this.print(e.argument)}function dre(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),r()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}function hre(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)}function mre(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(lre(e.value)&&Qy(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&Qy(e.key)&&Qy(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function yre(e){let t=e.elements,r=t.length;this.tokenChar(91);let n=this.enterDelimited();for(let s=0;s<t.length;s++){let i=t[s];i?(s>0&&this.space(),this.print(i),(s<r-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,s)):this.token(",",!1,s)}n(),this.tokenChar(93)}function gre(e){let t=e.properties,r,n;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",n="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw
`)}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
`);else{let c=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(c+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
${" ".repeat(c)}`)}}}else n?o=`/*${t.value}*/`:o=`//${t.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){let{_printSemicolonBeforeNextToken:u,_printSemicolonBeforeNextNode:c}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",t.loc),this._append(o,s),this._printSemicolonBeforeNextNode=c,this._printSemicolonBeforeNextToken=u}else this.source("start",t.loc),this._append(o,s);!s&&!n&&this.newline(1,!0),i&&r!==3&&this.newline(1)}_printComments(t,r,n,s,i=0,a){let o=n.loc,l=r.length,u=!!o,c=u?o.start.line:0,p=u?o.end.line:0,d=0,m=0,g=this._noLineTerminator?function(){}:this.newline.bind(this);for(let f=0;f<l;f++){let b=r[f],T=this._shouldPrintComment(b,a);if(T===2){u=!1;break}if(u&&b.loc&&T===1){let w=b.loc.start.line,I=b.loc.end.line;if(t===0){let N=0;f===0?this._buf.hasContent()&&(b.type==="CommentLine"||w!==I)&&(N=m=1):N=w-d,d=I,g(N),this._printComment(b,1),f+1===l&&(g(Math.max(c-d,m)),d=c)}else if(t===1){let N=w-(f===0?c:d);d=I,g(N),this._printComment(b,1),f+1===l&&(g(Math.min(1,p-d)),d=p)}else{let N=w-(f===0?p-i:d);d=I,g(N),this._printComment(b,1)}}else{if(u=!1,T!==1)continue;if(l===1){let w=b.loc?b.loc.start.line===b.loc.end.line:!gA.test(b.value),I=w&&!Mie(n)&&!Rie(s)&&!qie(s)&&!Uie(n);t===0?this._printComment(b,I&&n.type!=="ObjectExpression"||w&&jie(s,{body:n})?1:0):I&&t===2?this._printComment(b,1):this._printComment(b,0)}else t===1&&!(n.type==="ObjectExpression"&&n.properties.length>1)&&n.type!=="ClassBody"&&n.type!=="TSInterfaceBody"?this._printComment(b,f===0?2:f===l-1?3:0):this._printComment(b,0)}}t===2&&u&&d&&(this._lastCommentLine=d)}};Object.assign(Qo.prototype,kie);(0,Fie.addDeprecatedGenerators)(Qo);var gNe=xc.default=Qo;function Hie(e,t){this.token(",",!1,e),t||this.space()}});var Sc=x(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.default=void 0;Da.generate=SA;var EA=TP(),TA=bA();function xA(e,t,r){if(t.experimental_preserveFormat){if(typeof e!="string")throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&t.compact!=="auto")throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable the `tokens: true` parser option.")}let n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var s;n.decoratorsBeforeExport=t.decoratorsBeforeExport,n.jsescOption.json=t.jsonCompatibleStrings,n.recordAndTupleSyntaxType=(s=t.recordAndTupleSyntaxType)!=null?s:"hash"}n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(l=>n.comments||l.includes("@license")||l.includes("@preserve")),n.compact==="auto"&&(n.compact=typeof e=="string"&&e.length>5e5,n.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(n.compact||n.preserveFormat)&&(n.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:i,auxiliaryCommentAfter:a,shouldPrintComment:o}=n;return i&&!o(i)&&(n.auxiliaryCommentBefore=void 0),a&&!o(a)&&(n.auxilia
`+(0,sle.codeFrameColumns)(e,{start:{line:s.line,column:s.column+1}}),n.code="BABEL_REPLACE_SOURCE_ERROR"),n}let r=t.program.body[0].expression;return _0.default.removeProperties(r),this.replaceWith(r)}function _le(e){if(Ia.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof ile.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!Sle(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&cC(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=dle(t),r="expression"),this.isNodeType("Expression")&&vle(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let n=this.node;return n&&(ble(t,n),Ale(n)),pC.call(this,t),this.type=t.type,Ia.setScope.call(this),this.requeue(),[r?this.get(r):this]}function pC(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?oC(this.parent,this.key,[e]):oC(this.parent,this.key,e),this.debug(`Replace with ${e==null?void 0:e.type}`),(t=(0,lC.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e}function Nle(e){Ia.resync.call(this);let t=[],r=_c(e,t);if(r){for(let d of t)this.scope.push({id:d});return this.replaceWith(r)[0].get("expressions")}let n=this.getFunctionParent(),s=n==null?void 0:n.node.async,i=n==null?void 0:n.node.generator,a=lle([],cle(e));this.replaceWith(ple(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(d=>this.scope.push({id:d}));let l=o.getCompletionRecords();for(let d of l){if(!d.isExpressionStatement())continue;let m=d.findParent(g=>g.isLoop());if(m){let g=m.getData("expressionReplacementReturnUid");g?g=mle(g.name):(g=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",aC(O0(g))),m.setData("expressionReplacementReturnUid",g)),d.get("expression").replaceWith(uC("=",O0(g),d.node.expression))}else d.replaceWith(aC(d.node.expression))}o.arrowFunctionToExpression();let u=o,c=s&&_0.default.hasType(this.get("callee.body").node,"AwaitExpression",sC),p=i&&_0.default.hasType(this.get("callee.body").node,"YieldExpression",sC);return c&&(u.set("async",!0),p||this.replaceWith(ule(this.node))),p&&(u.set("generator",!0),this.replaceWith(Dle(this.node,!0))),u.get("body.body")}function _c(e,t){let r=[],n=!0;for(let s of e)if(iC(s)||(n=!1),cC(s))r.push(s);else if(Tle(s))r.push(s.expression);else if(Ple(s)){if(s.kind!=="var")return;for(let i of s.declarations){let a=hle(i);for(let o of Object.keys(a))t.push(O0(a[o]));i.init&&r.push(uC("=",i.id,i.init))}n=!0}else if(xle(s)){let i=s.consequent?_c([s.consequent],t):I0(),a=s.alternate?_c([s.alternate],t):I0();if(!i||!a)return;r.push(fle(s.test,i,a))}else if(Ele(s)){let i=_c(s.body,t);if(!i)return;r.push(i)}else if(iC(s))e.indexOf(s)===0&&(n=!0);else return;return n&&r.push(I0()),r.length===1?r[0]:Cle(r)}function Ole(e){if(Ia.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=N0._verifyNodeList.call(this,e);let t=N0._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var mC=x(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.evaluate=qle;Nc.evaluateTruthy=Mle;var Ble=["Number","String","Math"],kle=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],Fle=["random"];function fC(e){return Ble.includes(e)}function Lle(e){return kle.includes(e)}funct
(function (${o}) {
function ${n}(${l}) {
return ${Oi(o)}.apply(this, arguments);
}
${Oi(n)}.toString = function () {
return ${Oi(o)}.toString();
}
return ${Oi(n)};
})(${TC(this.node)})
`;return this.replaceWith(u)[0].get("arguments.0")}function Iue(e){let t=e.params.findIndex(r=>aue(r)||oue(r));return t===-1?e.params.length:t}});var IC=x(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt._guessExecutionStatusRelativeTo=Jue;Kt._resolve=wC;Kt.canHaveVariableDeclarationOrExpression=Vue;Kt.canSwapBetweenExpressionAndStatement=$ue;Kt.getSource=Gue;Kt.isCompletionRecord=Wue;Kt.isConstantExpression=ece;Kt.isInStrictMode=tce;Kt.isNodeType=Uue;Kt.isStatementOrBlock=Kue;Kt.isStatic=que;Kt.matchesPattern=Rue;Kt.referencesImport=Hue;Kt.resolve=Zue;Kt.willIMaybeExecuteBefore=Xue;var _ue=Fe(),{STATEMENT_OR_BLOCK_KEYS:Nue,VISITOR_KEYS:Oue,isBlockStatement:DC,isExpression:Bue,isIdentifier:kue,isLiteral:Fue,isStringLiteral:Lue,isType:jue,matchesPattern:Mue}=_ue;function Rue(e,t){return Mue(this.node,e,t)}Kt.has=function(t){var r;let n=(r=this.node)==null?void 0:r[t];return n&&Array.isArray(n)?!!n.length:!!n};function que(){return this.scope.isStatic(this.node)}Kt.is=Kt.has,Kt.isnt=function(t){return!this.has(t)},Kt.equals=function(t,r){return this.node[t]===r};function Uue(e){return jue(this.type,e)}function Vue(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function $ue(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?DC(e):this.isBlockStatement()?Bue(e):!1}function Wue(e){let t=this,r=!0;do{let{type:n,container:s}=t;if(!r&&(t.isFunction()||n==="StaticBlock"))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function Kue(){return this.parentPath.isLabeledStatement()||DC(this.container)?!1:Nue.includes(this.key)}function Hue(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?Lue(this.node.property,{value:t}):this.node.property.name===t)){let i=this.get("object");return i.isReferencedIdentifier()&&i.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;let n=r.path,s=n.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===e){if(!t)return!0}else return!1;return!!(n.isImportDefaultSpecifier()&&t==="default"||n.isImportNamespaceSpecifier()&&t==="*"||n.isImportSpecifier()&&kue(n.node.imported,{name:t}))}function Gue(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function Xue(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function PC(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function Yue(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function AC(e,t){for(let r=0;r<t;r++){let n=e[r];if(Yue(n.parent.type,n.parentKey))return!0}return!1}var CC=Symbol();function Jue(e){return j0(this,e,new Map)}function j0(e,t,r){let n={this:PC(e),target:PC(t)};if(n.target.node!==n.this.node)return Que(e,n.target,r);let s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let i,a={target:0,this:0};for(;!i&&a.this<s.this.length;){let c=s.this[a.this];a.target=s.target.indexOf(c),a.target>=0?i=c:a.this++}if(!i)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(AC(s.this,a.this-1)||AC(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.t
(function() {
throw new Error('"' + '${e}' + '" is read-only.');
})()
`,Sfe={ReferencedIdentifier(e){let{seen:t,buildImportReference:r,scope:n,imported:s,requeueInParent:i}=this;if(t.has(e.node))return;t.add(e.node);let a=e.node.name,o=s.get(a);if(o){if(Efe(e))throw e.buildCodeFrameError(`Cannot transform the imported binding "${a}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);let l=e.scope.getBinding(a);if(n.getBinding(a)!==l)return;let c=r(o,e.node);if(c.loc=e.node.loc,(e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&ke.types.isMemberExpression(c))e.replaceWith(ke.types.sequenceExpression([ke.types.numericLiteral(0),c]));else if(e.isJSXIdentifier()&&ke.types.isMemberExpression(c)){let{object:p,property:d}=c;e.replaceWith(ke.types.jsxMemberExpression(ke.types.jsxIdentifier(p.name),ke.types.jsxIdentifier(d.name)))}else e.replaceWith(c);i(e),e.skip()}},UpdateExpression(e){let{scope:t,seen:r,imported:n,exported:s,requeueInParent:i,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);let o=e.get("argument");if(o.isMemberExpression())return;let l=e.node;if(o.isIdentifier()){let u=o.node.name;if(t.getBinding(u)!==e.scope.getBinding(u))return;let c=s.get(u),p=n.get(u);if((c==null?void 0:c.length)>0||p)if(p)e.replaceWith(ke.types.assignmentExpression(l.operator[0]+"=",a(p,o.node),Kc(u)));else if(l.prefix)e.replaceWith(Li(this.metadata,c,ke.types.cloneNode(l),e.scope));else{let d=t.generateDeclaredUidIdentifier(u);e.replaceWith(ke.types.sequenceExpression([ke.types.assignmentExpression("=",ke.types.cloneNode(d),ke.types.cloneNode(l)),Li(this.metadata,c,ke.types.identifier(u),e.scope),ke.types.cloneNode(d)]))}}i(e),e.skip()},AssignmentExpression:{exit(e){let{scope:t,seen:r,imported:n,exported:s,requeueInParent:i,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);let o=e.get("left");if(!o.isMemberExpression())if(o.isIdentifier()){let l=o.node.name;if(t.getBinding(l)!==e.scope.getBinding(l))return;let u=s.get(l),c=n.get(l);if((u==null?void 0:u.length)>0||c){let p=e.node;c&&(p.left=a(c,o.node),p.right=ke.types.sequenceExpression([p.right,Kc(l)]));let{operator:d}=p,m;d==="="?m=p:d==="&&="||d==="||="||d==="??="?m=ke.types.assignmentExpression("=",p.left,ke.types.logicalExpression(d.slice(0,-1),ke.types.cloneNode(p.left),p.right)):m=ke.types.assignmentExpression("=",p.left,ke.types.binaryExpression(d.slice(0,-1),ke.types.cloneNode(p.left),p.right)),e.replaceWith(Li(this.metadata,u,m,e.scope)),i(e),e.skip()}}else{let l=o.getOuterBindingIdentifiers(),u=Object.keys(l).filter(d=>t.getBinding(d)===e.scope.getBinding(d)),c=u.find(d=>n.has(d));c&&(e.node.right=ke.types.sequenceExpression([e.node.right,Kc(c)]));let p=[];if(u.forEach(d=>{let m=s.get(d)||[];m.length>0&&p.push(Li(this.metadata,m,ke.types.identifier(d),e.scope))}),p.length>0){let d=ke.types.sequenceExpression(p);e.parentPath.isExpressionStatement()&&(d=ke.types.expressionStatement(d),d._blockHoist=e.parentPath.node._blockHoist);let m=e.insertAfter(d)[0];i(m)}}}},ForXStatement(e){let{scope:t,node:r}=e,{left:n}=r,{exported:s,imported:i,scope:a}=this;if(!ke.types.isVariableDeclaration(n)){let o=!1,l,u=e.get("body").scope;for(let d of Object.keys(ke.types.getOuterBindingIdentifiers(n)))a.getBinding(d)===t.getBinding(d)&&(s.has(d)&&(o=!0,u.hasOwnBinding(d)&&u.rename(d)),i.has(d)&&!l&&(l=d));if(!o&&!l)return;e.ensureBlock();let c=e.get("body"),p=t.generateUidIdentifierBasedOnNode(n);e.get("left").replaceWith(ke.types.variableDeclaration("let",[ke.types.variableDeclarator(ke.types.cloneNode(p))])),t.registerDeclaration(e.get("left")),o&&c.unshiftContainer("body",ke.types.expressionStatement(ke.types.assignmentExpression("=",n,p))),l&&c.unshiftContainer("body",ke.types.expressionStatement(Kc(l)))}}}});var cg=x(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.default=Dfe;Ma.hasExports=Pfe;Ma.isSideEffectImport=Afe;Ma.validateImportInteropOption=g2;var y2=require("path"),vfe=aa();function Pfe(e){return e.hasExpor
Promise.resolve().then(() => ${n(s)})
`:n(s);let i=gr.types.isTemplateLiteral(s)?gr.types.identifier("specifier"):gr.types.templateLiteral([gr.types.templateElement({raw:""}),gr.types.templateElement({raw:""})],[gr.types.identifier("specifier")]);return t?gr.template.expression.ast`
(specifier =>
new Promise(r => r(${i}))
.then(s => ${n(gr.types.identifier("s"))})
)(${s})
`:r?gr.template.expression.ast`
(specifier =>
new Promise(r => r(${n(i)}))
)(${s})
`:gr.template.expression.ast`
(specifier => ${n(i)})(${s})
`}});var T2=x(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.default=fg;{let e=fg;Yc.default=fg=function(r,n){var s,i,a,o;return e(r,{moduleId:(s=n.moduleId)!=null?s:r.moduleId,moduleIds:(i=n.moduleIds)!=null?i:r.moduleIds,getModuleId:(a=n.getModuleId)!=null?a:r.getModuleId,moduleRoot:(o=n.moduleRoot)!=null?o:r.moduleRoot})}}function fg(e,t){let{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e,{moduleId:i,moduleIds:a=!!i,getModuleId:o,moduleRoot:l=s}=t;if(!a)return null;if(i!=null&&!o)return i;let u=l!=null?l+"/":"";if(n){let c=s!=null?new RegExp("^"+s+"/?"):"";u+=n.replace(c,"").replace(/\.\w*$/,"")}return u=u.replace(/\\/g,"/"),o&&o(u)||u}});var fl=x(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Object.defineProperty(Zr,"buildDynamicImport",{enumerable:!0,get:function(){return Rfe.buildDynamicImport}});Zr.buildNamespaceInitStatements=Wfe;Zr.ensureStatementsHoisted=Vfe;Object.defineProperty(Zr,"getModuleName",{enumerable:!0,get:function(){return qfe.default}});Object.defineProperty(Zr,"hasExports",{enumerable:!0,get:function(){return pl.hasExports}});Object.defineProperty(Zr,"isModule",{enumerable:!0,get:function(){return x2.isModule}});Object.defineProperty(Zr,"isSideEffectImport",{enumerable:!0,get:function(){return pl.isSideEffectImport}});Zr.rewriteModuleStatementsAndPrepareHeader=Ufe;Object.defineProperty(Zr,"rewriteThis",{enumerable:!0,get:function(){return S2.default}});Zr.wrapInterop=$fe;var jfe=require("assert"),nt=vt(),x2=og(),S2=h2(),Mfe=m2(),pl=cg(),yg=E2(),Rfe=pg(),qfe=T2();Zr.getDynamicImportSource=pg().getDynamicImportSource;function Ufe(e,{exportName:t,strict:r,allowTopLevelThis:n,strictMode:s,noInterop:i,importInterop:a=i?"none":"babel",lazy:o,getWrapperPayload:l=yg.toGetWrapperPayload(o!=null?o:!1),wrapReference:u=yg.wrapReference,esNamespaceOnly:c,filename:p,constantReexports:d=arguments[1].loose,enumerableModuleMeta:m=arguments[1].loose,noIncompleteNsImportDetection:g}){(0,pl.validateImportInteropOption)(a),jfe((0,x2.isModule)(e),"Cannot process module statements in a script"),e.node.sourceType="script";let f=(0,pl.default)(e,t,{importInterop:a,initializeReexports:d,getWrapperPayload:l,esNamespaceOnly:c,filename:p});n||(0,S2.default)(e),(0,Mfe.default)(e,f,u),s!==!1&&(e.node.directives.some(I=>I.value.value==="use strict")||e.unshiftContainer("directives",nt.types.directive(nt.types.directiveLiteral("use strict"))));let b=[];(0,pl.hasExports)(f)&&!r&&b.push(Kfe(f,m));let T=Gfe(e,f);return T&&(f.exportNameListName=T.name,b.push(T.statement)),b.push(...Xfe(e,f,u,d,g)),{meta:f,headers:b}}function Vfe(e){e.forEach(t=>{t._blockHoist=3})}function $fe(e,t,r){if(r==="none")return null;if(r==="node-namespace")return nt.types.callExpression(e.hub.addHelper("interopRequireWildcard"),[t,nt.types.booleanLiteral(!0)]);if(r==="node-default")return null;let n;if(r==="default")n="interopRequireDefault";else if(r==="namespace")n="interopRequireWildcard";else throw new Error(`Unknown interop: ${r}`);return nt.types.callExpression(e.hub.addHelper(n),[t])}function Wfe(e,t,r=!1,n=yg.wrapReference){var s;let i=[],a=nt.types.identifier(t.name);for(let l of t.importsNamespace)l!==t.name&&i.push(nt.template.statement`var NAME = SOURCE;`({NAME:l,SOURCE:nt.types.cloneNode(a)}));let o=(s=n(a,t.wrap))!=null?s:a;r&&i.push(...v2(e,t,!0,n));for(let l of t.reexportNamespace)i.push((nt.types.isIdentifier(o)?nt.template.statement`EXPORTS.NAME = NAMESPACE;`:nt.template.statement`
Object.defineProperty(EXPORTS, "NAME", {
enumerable: true,
get: function() {
return NAMESPACE;
}
});
`)({EXPORTS:e.exportName,NAME:l,NAMESPACE:nt.types.cloneNode(o)}));if(t.reexportAll){let l=Hfe(e,nt.types.cloneNode(o),r);l.loc=t.reexportAll.loc,i.push(l)}return i}var dg={constant:({exports:e,exportName:t,namespaceImport:r})=>nt.template.statement.ast`
${e}.${t} = ${r};
`,constantComputed:({exports:e,exportName:t,namespaceImport:r})=>nt.template.statement.ast`
${e}["${t}"] = ${r};
`,spec:({exports:e,exportName:t,namespaceImport:r})=>nt.template.statement.ast`
Object.defineProperty(${e}, "${t}", {
enumerable: true,
get: function() {
return ${r};
},
});
`};function v2(e,t,r,n){var s;let i=nt.types.identifier(t.name);i=(s=n(i,t.wrap))!=null?s:i;let{stringSpecifiers:a}=e;return Array.from(t.reexports,([o,l])=>{let u=nt.types.cloneNode(i);l==="default"&&t.interop==="node-default"||(a.has(l)?u=nt.types.memberExpression(u,nt.types.stringLiteral(l),!0):u=nt.types.memberExpression(u,nt.types.identifier(l)));let c={exports:e.exportName,exportName:o,namespaceImport:u};return r||nt.types.isIdentifier(u)?a.has(o)?dg.constantComputed(c):dg.constant(c):dg.spec(c)})}function Kfe(e,t=!1){return(t?nt.template.statement`
EXPORTS.__esModule = true;
`:nt.template.statement`
Object.defineProperty(EXPORTS, "__esModule", {
value: true,
});
`)({EXPORTS:e.exportName})}function Hfe(e,t,r){return(r?nt.template.statement`
Object.keys(NAMESPACE).forEach(function(key) {
if (key === "default" || key === "__esModule") return;
VERIFY_NAME_LIST;
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
EXPORTS[key] = NAMESPACE[key];
});
`:nt.template.statement`
Object.keys(NAMESPACE).forEach(function(key) {
if (key === "default" || key === "__esModule") return;
VERIFY_NAME_LIST;
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
Object.defineProperty(EXPORTS, key, {
enumerable: true,
get: function() {
return NAMESPACE[key];
},
});
});
`)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?(0,nt.template)`
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
`({EXPORTS_LIST:e.exportNameListName}):null})}function Gfe(e,t){let r=Object.create(null);for(let i of t.local.values())for(let a of i.names)r[a]=!0;let n=!1;for(let i of t.source.values()){for(let a of i.reexports.keys())r[a]=!0;for(let a of i.reexportNamespace)r[a]=!0;n=n||!!i.reexportAll}if(!n||Object.keys(r).length===0)return null;let s=e.scope.generateUidIdentifier("exportNames");return delete r.default,{name:s.name,statement:nt.types.variableDeclaration("var",[nt.types.variableDeclarator(s,nt.types.valueToNode(r))])}}function Xfe(e,t,r,n=!1,s=!1){let i=[];for(let[o,l]of t.local)if(l.kind!=="import"){if(l.kind==="hoisted")i.push([l.names[0],mg(t,l.names,nt.types.identifier(o))]);else if(!s)for(let u of l.names)i.push([u,null])}for(let o of t.source.values()){if(!n){let l=v2(t,o,!1,r),u=[...o.reexports.keys()];for(let c=0;c<l.length;c++)i.push([u[c],l[c]])}if(!s)for(let l of o.reexportNamespace)i.push([l,null])}i.sort(([o],[l])=>o<l?-1:l<o?1:0);let a=[];if(s)for(let[,o]of i)a.push(o);else for(let l=0;l<i.length;l+=100){let u=[];for(let c=0;c<100&&l+c<i.length;c++){let[p,d]=i[l+c];d!==null?(u.length>0&&(a.push(mg(t,u,e.scope.buildUndefinedNode())),u=[]),a.push(d)):u.push(p)}u.length>0&&a.push(mg(t,u,e.scope.buildUndefinedNode()))}return a}var hg={computed:({exports:e,name:t,value:r})=>nt.template.expression.ast`${e}["${t}"] = ${r}`,default:({exports:e,name:t,value:r})=>nt.template.expression.ast`${e}.${t} = ${r}`,define:({exports:e,name:t,value:r})=>nt.template.expression.ast`
Object.defineProperty(${e}, "${t}", {
enumerable: true,
value: void 0,
writable: true
})["${t}"] = ${r}`};function mg(e,t,r){let{stringSpecifiers:n,exportName:s}=e;return nt.types.expressionStatement(t.reduce((i,a)=>{let o={exports:s,name:a,value:i};return a==="__proto__"?hg.define(o):n.has(a)?hg.computed(o):hg.default(o)},r))}});var A2=x(P2=>{P2.getModuleName=()=>fl().getModuleName});var bg=x(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.default=void 0;function ji(){let e=gy();return ji=function(){return e},e}function gg(){let e=zt();return gg=function(){return e},e}function C2(){let e=xa();return C2=function(){return e},e}function D2(){let e=Fe();return D2=function(){return e},e}function Jc(){let e=fs();return Jc=function(){return e},e}var Yfe=A2(),{cloneNode:Jfe,interpreterDirective:zfe}=D2(),Qfe={enter(e,t){let r=e.node.loc;r&&(t.loc=r,e.stop())}},Ra=class{constructor(t,{code:r,ast:n,inputMap:s}){this._map=new Map,this.opts=void 0,this.declarations={},this.path=void 0,this.ast=void 0,this.scope=void 0,this.metadata={},this.code="",this.inputMap=void 0,this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)},this.opts=t,this.code=r,this.ast=n,this.inputMap=s,this.path=gg().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext(),this.scope=this.path.scope}get shebang(){let{interpreter:t}=this.path.node;return t?t.value:""}set shebang(t){t?this.path.get("interpreter").replaceWith(zfe(t)):this.path.get("interpreter").remove()}set(t,r){if(t==="helpersNamespace")throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.If you are using @babel/plugin-external-helpers you will need to use a newer version than the one you currently have installed. If you have your own implementation, you'll want to explore using 'helperGenerator' alongside 'file.availableHelper()'.");this._map.set(t,r)}get(t){return this._map.get(t)}has(t){return this._map.has(t)}availableHelper(t,r){if(ji().isInternal(t))return!1;let n;try{n=ji().minVersion(t)}catch(s){if(s.code!=="BABEL_HELPER_UNKNOWN")throw s;return!1}return typeof r!="string"?!0:(Jc().valid(r)&&(r=`^${r}`),!Jc().intersects(`<${n}`,r)&&!Jc().intersects(">=8.0.0",r))}addHelper(t){if(ji().isInternal(t))throw new Error("Cannot use internal helper "+t);return this._addHelper(t)}_addHelper(t){let r=this.declarations[t];if(r)return Jfe(r);let n=this.get("helperGenerator");if(n){let u=n(t);if(u)return u}ji().minVersion(t);let s=this.declarations[t]=this.scope.generateUidIdentifier(t),i={};for(let u of ji().getDependencies(t))i[u]=this._addHelper(u);let{nodes:a,globals:o}=ji().get(t,u=>i[u],s.name,Object.keys(this.scope.getAllBindings()));o.forEach(u=>{this.path.scope.hasBinding(u,!0)&&this.path.scope.rename(u)}),a.forEach(u=>{u._compact=!0});let l=this.path.unshiftContainer("body",a);for(let u of l)u.isVariableDeclaration()&&this.scope.registerDeclaration(u);return s}buildCodeFrameError(t,r,n=SyntaxError){let s=t==null?void 0:t.loc;if(!s&&t){let i={loc:null};(0,gg().default)(t,Qfe,this.scope,i),s=i.loc;let a="This is an error on an internal node. Probably an internal error.";s&&(a+=" Location has been estimated."),r+=` (${a})`}if(s){let{highlightCode:i=!0}=this.opts;r+=`
`+(0,C2().codeFrameColumns)(this.code,{start:{line:s.start.line,column:s.start.column+1},end:s.end&&s.start.line===s.end.line?{line:s.end.line,column:s.end.column+1}:void 0},{highlightCode:i})}return new n(r)}};zc.default=Ra;Ra.prototype.addImport=function(){throw new Error("This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'.")},Ra.prototype.addTemplateObject=function(){throw new Error("This function has been moved into the template literal transform itself.")},Ra.prototype.getModuleName=function(){return Yfe.getModuleName()(this.opts,this.opts)}});var O2=x(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.default=hde;function Eg(){let e=gy();return Eg=function(){return e},e}function w2(){let e=Sc();return w2=function(){return e},e}function I2(){let e=Ko();return I2=function(){return e},e}function _2(){let e=Fe();return _2=function(){return e},e}var{arrayExpression:Zfe,assignmentExpression:Qc,binaryExpression:ede,blockStatement:tde,callExpression:rde,cloneNode:nde,conditionalExpression:sde,exportNamedDeclaration:ide,exportSpecifier:ade,expressionStatement:Tg,functionExpression:ode,identifier:br,memberExpression:xg,objectExpression:Sg,program:Zc,stringLiteral:N2,unaryExpression:lde,variableDeclaration:vg,variableDeclarator:Pg}=_2(),ude=e=>I2().default.statement`
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define(AMD_ARGUMENTS, factory);
} else if (typeof exports === "object") {
factory(COMMON_ARGUMENTS);
} else {
factory(BROWSER_ARGUMENTS);
}
})(UMD_ROOT, function (FACTORY_PARAMETERS) {
FACTORY_BODY
});
`(e);function cde(e){let t=br("babelHelpers"),r=[],n=ode(null,[br("global")],tde(r)),s=Zc([Tg(rde(n,[sde(ede("===",lde("typeof",br("global")),N2("undefined")),br("self"),br("global"))]))]);return r.push(vg("var",[Pg(t,Qc("=",xg(br("global"),t),Sg([])))])),ep(r,t,e),s}function pde(e){let t=[],r=ep(t,null,e);return t.unshift(ide(null,Object.keys(r).map(n=>ade(nde(r[n]),br(n))))),Zc(t,[],"module")}function fde(e){let t=br("babelHelpers"),r=[];return r.push(vg("var",[Pg(t,br("global"))])),ep(r,t,e),Zc([ude({FACTORY_PARAMETERS:br("global"),BROWSER_ARGUMENTS:Qc("=",xg(br("root"),t),Sg([])),COMMON_ARGUMENTS:br("exports"),AMD_ARGUMENTS:Zfe([N2("exports")]),FACTORY_BODY:r,UMD_ROOT:br("this")})])}function dde(e){let t=br("babelHelpers"),r=[];r.push(vg("var",[Pg(t,Sg([]))]));let n=Zc(r);return ep(r,t,e),r.push(Tg(t)),n}function ep(e,t,r){let n=i=>t?xg(t,br(i)):br(`_${i}`),s={};return Eg().list.forEach(function(i){if(r&&!r.includes(i))return;let a=s[i]=n(i),{nodes:o}=Eg().get(i,n,t?null:`_${i}`,[],t?(l,u,c)=>{c(p=>Qc("=",a,p)),l.body.push(Tg(Qc("=",a,br(u))))}:null);e.push(...o)}),s}function hde(e,t="global"){let r,n={global:cde,module:pde,umd:fde,var:dde}[t];if(n)r=n(e);else throw new Error(`Unsupported output type ${t}`);return(0,w2().default)(r).code}});var en=x((cOe,q2)=>{"use strict";var k2=Symbol.for("gensync:v1:start"),F2=Symbol.for("gensync:v1:suspend"),mde="GENSYNC_EXPECTED_START",yde="GENSYNC_EXPECTED_SUSPEND",L2="GENSYNC_OPTIONS_ERROR",B2="GENSYNC_RACE_NONEMPTY",gde="GENSYNC_ERRBACK_NO_CALLBACK";q2.exports=Object.assign(function(t){let r=t;return typeof t!="function"?r=Ede(t):r=Tde(t),Object.assign(r,bde(r))},{all:Cg({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map(r=>Dg(r))},async:function(e,t,r){let n=Array.from(e[0]);if(n.length===0){Promise.resolve().then(()=>t([]));return}let s=0,i=n.map(()=>{});n.forEach((a,o)=>{tp(a,l=>{i[o]=l,s+=1,s===i.length&&t(i)},r)})}}),race:Cg({name:"race",arity:1,sync:function(e){let t=Array.from(e[0]);if(t.length===0)throw Mi("Must race at least 1 item",B2);return Dg(t[0])},async:function(e,t,r){let n=Array.from(e[0]);if(n.length===0)throw Mi("Must race at least 1 item",B2);for(let s of n)tp(s,t,r)}})});function bde(e){return{sync:function(...r){return Dg(e.apply(this,r))},async:function(...r){return new Promise((n,s)=>{tp(e.apply(this,r),n,s)})},errback:function(...r){let n=r.pop();if(typeof n!="function")throw Mi("Asynchronous function called without callback",gde);let s;try{s=e.apply(this,r)}catch(i){n(i);return}tp(s,i=>n(void 0,i),i=>n(i))}}}function dl(e,t,r,n){if(typeof r===e||n&&typeof r=="undefined")return;let s;throw n?s=`Expected opts.${t} to be either a ${e}, or undefined.`:s=`Expected opts.${t} to be a ${e}.`,Mi(s,L2)}function Mi(e,t){return Object.assign(new Error(e),{code:t})}function Ede({name:e,arity:t,sync:r,async:n,errback:s}){if(dl("string","name",e,!0),dl("number","arity",t,!0),dl("function","sync",r),dl("function","async",n,!0),dl("function","errback",s,!0),n&&s)throw Mi("Expected one of either opts.async or opts.errback, but got _both_.",L2);if(typeof e!="string"){let i;s&&s.name&&s.name!=="errback"&&(i=s.name),n&&n.name&&n.name!=="async"&&(i=n.name.replace(/Async$/,"")),r&&r.name&&r.name!=="sync"&&(i=r.name.replace(/Sync$/,"")),typeof i=="string"&&(e=i)}return typeof t!="number"&&(t=r.length),Cg({name:e,arity:t,sync:function(i){return r.apply(this,i)},async:function(i,a,o){n?n.apply(this,i).then(a,o):s?s.call(this,...i,(l,u)=>{l==null?a(u):o(l)}):a(r.apply(this,i))}})}function Tde(e){return R2(e.name,e.length,function(...t){return e.apply(this,t)})}function Cg({name:e,arity:t,sync:r,async:n}){return R2(e,t,function*(...s){let i=yield k2;if(!i)return r.call(this,s);let a;try{n.call(this,s,o=>{a||(a={value:o},i())},o=>{a||(a={err:o},i())})}catch(o){a={err:o},i()}if(yield F2,a.hasOwnProperty("err"))throw a.err;return a.value})}function Dg(e){let t;for(;!({value:t}=e.next()).done;)j2(t,e);return t}function tp(e,t,r){(function n(){try{let s;for(;!({value:s}=e.next()).done;){j2(s,e);let i=!0,a=!1,o=e.next(()=>{i?a=!0:n()});if(i=!1,xde(o,e),!a)return}retu
at ${t.join(`
at `)}`}});var Ui=x(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.default=void 0;var sD=ds(),kg=class extends Error{constructor(t,r){super(t),(0,sD.expectedError)(this),r&&(0,sD.injectVirtualStackFrame)(this,r)}};lp.default=kg});var iD=x(Lg=>{"use strict";Object.defineProperty(Lg,"__esModule",{value:!0});Lg.findPackageData=Xde;function $a(){let e=require("path");return $a=function(){return e},e}var Kde=Bg(),Fg=Ui(),Hde="package.json",Gde=(0,Kde.makeStaticFileCache)((e,t)=>{let r;try{r=JSON.parse(t)}catch(n){throw new Fg.default(`Error while parsing JSON - ${n.message}`,e)}if(!r)throw new Error(`${e}: No config detected`);if(typeof r!="object")throw new Fg.default(`Config returned typeof ${typeof r}`,e);if(Array.isArray(r))throw new Fg.default("Expected config object but found array",e);return{filepath:e,dirname:$a().dirname(e),options:r}});function*Xde(e){let t=null,r=[],n=!0,s=$a().dirname(e);for(;!t&&$a().basename(s)!=="node_modules";){r.push(s),t=yield*Gde($a().join(s,Hde));let i=$a().dirname(s);if(s===i){n=!1;break}s=i}return{filepath:e,directories:r,pkg:t,isPackage:n}}});var aD=x((POe,up)=>{up.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;up.exports.ID_Start=/[\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\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\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\u09FC\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\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\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-\u1884\u1887-\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\u1C80-\u1C88\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\u2119-\u21
`?(Ys++,On=0):e?On+=e.length:On++,e&&(pp+=e.length),e}var uD={default(){switch(st){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
`:case"\r":case"\u2028":case"\u2029":Z();return;case"/":Z(),Ye="comment";return;case void 0:return Z(),Bt("eof")}if(cr.isSpaceSeparator(st)){Z();return}return uD[Ur]()},comment(){switch(st){case"*":Z(),Ye="multiLineComment";return;case"/":Z(),Ye="singleLineComment";return}throw kt(Z())},multiLineComment(){switch(st){case"*":Z(),Ye="multiLineCommentAsterisk";return;case void 0:throw kt(Z())}Z()},multiLineCommentAsterisk(){switch(st){case"*":Z();return;case"/":Z(),Ye="default";return;case void 0:throw kt(Z())}Z(),Ye="multiLineComment"},singleLineComment(){switch(st){case`
`:case"\r":case"\u2028":case"\u2029":Z(),Ye="default";return;case void 0:return Z(),Bt("eof")}Z()},value(){switch(st){case"{":case"[":return Bt("punctuator",Z());case"n":return Z(),Vi("ull"),Bt("null",null);case"t":return Z(),Vi("rue"),Bt("boolean",!0);case"f":return Z(),Vi("alse"),Bt("boolean",!1);case"-":case"+":Z()==="-"&&(hs=-1),Ye="sign";return;case".":$e=Z(),Ye="decimalPointLeading";return;case"0":$e=Z(),Ye="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":$e=Z(),Ye="decimalInteger";return;case"I":return Z(),Vi("nfinity"),Bt("numeric",1/0);case"N":return Z(),Vi("aN"),Bt("numeric",NaN);case'"':case"'":ml=Z()==='"',$e="",Ye="string";return}throw kt(Z())},identifierNameStartEscape(){if(st!=="u")throw kt(Z());Z();let e=Vg();switch(e){case"$":case"_":break;default:if(!cr.isIdStartChar(e))throw lD();break}$e+=e,Ye="identifierName"},identifierName(){switch(st){case"$":case"_":case"\u200C":case"\u200D":$e+=Z();return;case"\\":Z(),Ye="identifierNameEscape";return}if(cr.isIdContinueChar(st)){$e+=Z();return}return Bt("identifier",$e)},identifierNameEscape(){if(st!=="u")throw kt(Z());Z();let e=Vg();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!cr.isIdContinueChar(e))throw lD();break}$e+=e,Ye="identifierName"},sign(){switch(st){case".":$e=Z(),Ye="decimalPointLeading";return;case"0":$e=Z(),Ye="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":$e=Z(),Ye="decimalInteger";return;case"I":return Z(),Vi("nfinity"),Bt("numeric",hs*(1/0));case"N":return Z(),Vi("aN"),Bt("numeric",NaN)}throw kt(Z())},zero(){switch(st){case".":$e+=Z(),Ye="decimalPoint";return;case"e":case"E":$e+=Z(),Ye="decimalExponent";return;case"x":case"X":$e+=Z(),Ye="hexadecimal";return}return Bt("numeric",hs*0)},decimalInteger(){switch(st){case".":$e+=Z(),Ye="decimalPoint";return;case"e":case"E":$e+=Z(),Ye="decimalExponent";return}if(cr.isDigit(st)){$e+=Z();return}return Bt("numeric",hs*Number($e))},decimalPointLeading(){if(cr.isDigit(st)){$e+=Z(),Ye="decimalFraction";return}throw kt(Z())},decimalPoint(){switch(st){case"e":case"E":$e+=Z(),Ye="decimalExponent";return}if(cr.isDigit(st)){$e+=Z(),Ye="decimalFraction";return}return Bt("numeric",hs*Number($e))},decimalFraction(){switch(st){case"e":case"E":$e+=Z(),Ye="decimalExponent";return}if(cr.isDigit(st)){$e+=Z();return}return Bt("numeric",hs*Number($e))},decimalExponent(){switch(st){case"+":case"-":$e+=Z(),Ye="decimalExponentSign";return}if(cr.isDigit(st)){$e+=Z(),Ye="decimalExponentInteger";return}throw kt(Z())},decimalExponentSign(){if(cr.isDigit(st)){$e+=Z(),Ye="decimalExponentInteger";return}throw kt(Z())},decimalExponentInteger(){if(cr.isDigit(st)){$e+=Z();return}return Bt("numeric",hs*Number($e))},hexadecimal(){if(cr.isHexDigit(st)){$e+=Z(),Ye="hexadecimalInteger";return}throw kt(Z())},hexadecimalInteger(){if(cr.isHexDigit(st)){$e+=Z();return}return Bt("numeric",hs*Number($e))},string(){switch(st){case"\\":Z(),$e+=Jde();return;case'"':if(ml)return Z(),Bt("string",$e);$e+=Z();return;case"'":if(!ml)return Z(),Bt("string",$e);$e+=Z();return;case`
`:case"\r":throw kt(Z());case"\u2028":case"\u2029":Zde(st);break;case void 0:throw kt(Z())}$e+=Z()},start(){switch(st){case"{":case"[":return Bt("punctuator",Z())}Ye="value"},beforePropertyName(){switch(st){case"$":case"_":$e=Z(),Ye="identifierName";return;case"\\":Z(),Ye="identifierNameStartEscape";return;case"}":return Bt("punctuator",Z());case'"':case"'":ml=Z()==='"',Ye="string";return}if(cr.isIdStartChar(st)){$e+=Z(),Ye="identifierName";return}throw kt(Z())},afterPropertyName(){if(st===":")return Bt("punctuator",Z());throw kt(Z())},beforePropertyValue(){Ye="value"},afterPropertyValue(){switch(st){case",":case"}":return Bt("punctuator",Z())}throw kt(Z())},beforeArrayValue(){if(st==="]")return Bt("punctuator",Z());Ye="value"},afterArrayValue(){switch(st){case",":case"]":return Bt("punctuator",Z())}throw kt(Z())},end(){throw kt(Z())}};function Bt(e,t){return{type:e,value:t,line:Ys,column:On}}function Vi(e){for(let t of e){if(ys()!==t)throw kt(Z());Z()}}function Jde(){switch(ys()){case"b":return Z(),"\b";case"f":return Z(),"\f";case"n":return Z(),`
`;case"r":return Z(),"\r";case"t":return Z()," ";case"v":return Z(),"\v";case"0":if(Z(),cr.isDigit(ys()))throw kt(Z());return"\0";case"x":return Z(),zde();case"u":return Z(),Vg();case`
`:case"\u2028":case"\u2029":return Z(),"";case"\r":return Z(),ys()===`
`&&Z(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw kt(Z());case void 0:throw kt(Z())}return Z()}function zde(){let e="",t=ys();if(!cr.isHexDigit(t)||(e+=Z(),t=ys(),!cr.isHexDigit(t)))throw kt(Z());return e+=Z(),String.fromCodePoint(parseInt(e,16))}function Vg(){let e="",t=4;for(;t-- >0;){let r=ys();if(!cr.isHexDigit(r))throw kt(Z());e+=Z()}return String.fromCodePoint(parseInt(e,16))}var Qde={start(){if(pr.type==="eof")throw $i();Rg()},beforePropertyName(){switch(pr.type){case"identifier":case"string":$g=pr.value,Ur="afterPropertyName";return;case"punctuator":cp();return;case"eof":throw $i()}},afterPropertyName(){if(pr.type==="eof")throw $i();Ur="beforePropertyValue"},beforePropertyValue(){if(pr.type==="eof")throw $i();Rg()},beforeArrayValue(){if(pr.type==="eof")throw $i();if(pr.type==="punctuator"&&pr.value==="]"){cp();return}Rg()},afterPropertyValue(){if(pr.type==="eof")throw $i();switch(pr.value){case",":Ur="beforePropertyName";return;case"}":cp()}},afterArrayValue(){if(pr.type==="eof")throw $i();switch(pr.value){case",":Ur="beforeArrayValue";return;case"]":cp()}},end(){}};function Rg(){let e;switch(pr.type){case"punctuator":switch(pr.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=pr.value;break}if(yl===void 0)yl=e;else{let t=ms[ms.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,$g,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")ms.push(e),Array.isArray(e)?Ur="beforeArrayValue":Ur="beforePropertyName";else{let t=ms[ms.length-1];t==null?Ur="end":Array.isArray(t)?Ur="afterArrayValue":Ur="afterPropertyValue"}}function cp(){ms.pop();let e=ms[ms.length-1];e==null?Ur="end":Array.isArray(e)?Ur="afterArrayValue":Ur="afterPropertyValue"}function kt(e){return fp(e===void 0?`JSON5: invalid end of input at ${Ys}:${On}`:`JSON5: invalid character '${cD(e)}' at ${Ys}:${On}`)}function $i(){return fp(`JSON5: invalid end of input at ${Ys}:${On}`)}function lD(){return On-=5,fp(`JSON5: invalid identifier character at ${Ys}:${On}`)}function Zde(e){console.warn(`JSON5: '${cD(e)}' in strings is not valid ECMAScript; consider escaping`)}function cD(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function fp(e){let t=new SyntaxError(e);return t.lineNumber=Ys,t.columnNumber=On,t}});var hD=x((DOe,dD)=>{var Wg=Mg();dD.exports=function(t,r,n){let s=[],i="",a,o,l="",u;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,u=r.quote,r=r.replacer),typeof r=="function")o=r;else if(Array.isArray(r)){a=[];for(let f of r){let b;typeof f=="string"?b=f:(typeof f=="number"||f instanceof String||f instanceof Number)&&(b=String(f)),b!==void 0&&a.indexOf(b)<0&&a.push(b)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),l=" ".substr(0,n)):typeof n=="string"&&(l=n.substr(0,10)),c("",{"":t});function c(f,b){let T=b[f];switch(T!=null&&(typeof T.toJSON5=="function"?T=T.toJSON5(f):typeof T.toJSON=="function"&&(T=T.toJSON(f))),o&&(T=o.call(b,f,T)),T instanceof Number?T=Number(T):T instanceof String?T=String(T):T instanceof Boolean&&(T=T.valueOf()),T){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof T=="string")return p(T,!1);if(typeof T=="number")return String(T);if(typeof T=="object")return Array.isArray(T)?g(T):d(T)}function p(f){let b={"'":.1,'"':.2},T={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},w="";for(let N=0;N<f.length;N++){let L=f[N];switch(L){case"'":case'"':b[L]++,w+=L;continue;case"\0":if(Wg.isDigit(f[N+1])){w+="\\x00";continue}}if(T[L]){w+=T[L];continue}if(L<" "){let W=L.charCodeAt(0).toString(16);w+="\\x"+("00"+W).substring(W.length);continue}w+=L}let I=u||Object.keys(b).
`+i;N=w.join(L),I=`{
`+i+N+`,
`+b+"}"}}return s.pop(),i=b,I}function m(f){if(f.length===0)return p(f,!0);let b=String.fromCodePoint(f.codePointAt(0));if(!Wg.isIdStartChar(b))return p(f,!0);for(let T=b.length;T<f.length;T++)if(!Wg.isIdContinueChar(String.fromCodePoint(f.codePointAt(T))))return p(f,!0);return f}function g(f){if(s.indexOf(f)>=0)throw TypeError("Converting circular structure to JSON5");s.push(f);let b=i;i=i+l;let T=[];for(let I=0;I<f.length;I++){let N=c(String(I),f);T.push(N!==void 0?N:"null")}let w;if(T.length===0)w="[]";else if(l==="")w="["+T.join(",")+"]";else{let I=`,
`+i,N=T.join(I);w=`[
`+i+N+`,
`+b+"]"}return s.pop(),i=b,w}}});var yD=x((wOe,mD)=>{var ehe=fD(),the=hD(),rhe={parse:ehe,stringify:the};mD.exports=rhe});var Kg=x(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.makeConfigAPI=ED;gl.makePluginAPI=nhe;gl.makePresetAPI=TD;function bD(){let e=fs();return bD=function(){return e},e}var dp=vt(),gD=qi();function ED(e){let t=n=>e.using(s=>n===void 0?s.envName:typeof n=="function"?(0,gD.assertSimpleType)(n(s.envName)):(Array.isArray(n)?n:[n]).some(i=>{if(typeof i!="string")throw new Error("Unexpected non-string value");return i===s.envName})),r=n=>e.using(s=>(0,gD.assertSimpleType)(n(s.caller)));return{version:dp.version,cache:e.simple(),env:t,async:()=>!1,caller:r,assertVersion:she}}function TD(e,t){let r=()=>JSON.parse(e.using(s=>JSON.stringify(s.targets))),n=s=>{t.push(s)};return Object.assign({},ED(e),{targets:r,addExternalDependency:n})}function nhe(e,t){let r=n=>e.using(s=>s.assumptions[n]);return Object.assign({},TD(e,t),{assumption:r})}function she(e){if(typeof e=="number"){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if(typeof e!="string")throw new Error("Expected string or integer value.");if(e==="*"||bD().satisfies(dp.version,e))return;let t=Error.stackTraceLimit;typeof t=="number"&&t<25&&(Error.stackTraceLimit=25);let r=new Error(`Requires Babel "${e}", but was loaded with "${dp.version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);throw typeof t=="number"&&(Error.stackTraceLimit=t),Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:dp.version,range:e})}});var mp=x(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.finalize=ihe;hp.flattenToSet=ahe;function ihe(e){return Object.freeze(e)}function ahe(e){let t=new Set,r=[e];for(;r.length>0;)for(let n of r.pop())Array.isArray(n)?r.push(n):t.add(n);return t}});var gp=x(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.default=void 0;var ohe=mp(),Hg=class{constructor(t,r,n,s=(0,ohe.finalize)([])){this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.externalDependencies=void 0,this.key=t.name||n,this.manipulateOptions=t.manipulateOptions,this.post=t.post,this.pre=t.pre,this.visitor=t.visitor||{},this.parserOverride=t.parserOverride,this.generatorOverride=t.generatorOverride,this.options=r,this.externalDependencies=s}};yp.default=Hg});var SD=x(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});Gg.once=lhe;var xD=Xs();function lhe(e){let t,r,n=!1;return function*(){if(!t){if(r)return n=!0,yield*(0,xD.waitFor)(r);if(yield*(0,xD.isAsync)()){let s,i;r=new Promise((a,o)=>{s=a,i=o});try{t={ok:!0,value:yield*e()},r=null,n&&s(t.value)}catch(a){t={ok:!1,value:a},r=null,n&&i(a)}}else try{t={ok:!0,value:yield*e()}}catch(s){t={ok:!1,value:s}}}if(t.ok)return t.value;throw t.value}}});var vD=x((BOe,uhe)=>{uhe.exports=[{name:"nodejs",version:"0.2.0",date:"2011-08-26",lts:!1,security:!1,v8:"2.3.8.0"},{name:"nodejs",version:"0.3.0",date:"2011-08-26",lts:!1,security:!1,v8:"2.5.1.0"},{name:"nodejs",version:"0.4.0",date:"2011-08-26",lts:!1,security:!1,v8:"3.1.2.0"},{name:"nodejs",version:"0.5.0",date:"2011-08-26",lts:!1,security:!1,v8:"3.1.8.25"},{name:"nodejs",version:"0.6.0",date:"2011-11-04",lts:!1,security:!1,v8:"3.6.6.6"},{name:"nodejs",version:"0.7.0",date:"2012-01-17",lts:!1,security:!1,v8:"3.8.6.0"},{name:"nodejs",version:"0.8.0",date:"2012-06-22",lts:!1,security:!1,v8:"3.11.10.10"},{name:"nodejs",version:"0.9.0",date:"2012-07-20",lts:!1,security:!1,v8:"3.11.10.15"},{name:"nodejs",version:"0.10.0",date:"2013-03-11",lts:!1,security:!1,v8:"3.14.5.8"},{name:"nodejs",version:"0.11.0",date:"2013-03-28",lts:!1,security:!1,v8:"3.17.13.0"},{name:"nodejs",version:"0.12.0",dat
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme`)}}},currentNode:function(){return"node "+process.versions.node},env:process.env}});var uw=x((XOe,lw)=>{var iw=/^\s+and\s+(.*)/i,aw=/^(?:,\s*|\s+or\s+)(.*)/i;function ow(e){return Array.isArray(e)?e.reduce(function(t,r){return t.concat(ow(r))},[]):[e]}function whe(e,t){for(var r=e.length,n=1;n<=r;n++){var s=e.substr(-n,n);if(t(s,n,r))return e.slice(0,-n)}return""}function rb(e,t){var r={query:t};t.indexOf("not ")===0&&(r.not=!0,t=t.slice(4));for(var n in e){var s=e[n],i=t.match(s.regexp);if(i){r.type=n;for(var a=0;a<s.matches.length;a++)r[s.matches[a]]=i[a+1];return r}}return r.type="unknown",r}function Ihe(e,t,r){var n;return whe(t,function(s,i,a){return iw.test(s)?(n=rb(e,s.match(iw)[1]),n.compose="and",r.unshift(n),!0):aw.test(s)?(n=rb(e,s.match(aw)[1]),n.compose="or",r.unshift(n),!0):i===a?(n=rb(e,s.trim()),n.compose="or",r.unshift(n),!0):!1})}lw.exports=function(t,r){return Array.isArray(r)||(r=[r]),ow(r.map(function(n){var s=[];do n=Ihe(t,n,s);while(n);return s}))}});var Cw=x((YOe,Aw)=>{var _he=vD(),bs=FD().agents,kn=jD(),nb=MD(),Ap=require("path"),Xr=zg(),fr=sw(),Nhe=uw(),Ohe=365.259641*24*60*60*1e3,gw="37",Bhe=14;function bw(e,t){return(e+".").indexOf(t+".")===0}function khe(e){var t=e.slice(1);return Ce.nodeVersions.some(function(r){return bw(r,t)})}function cw(e){return e.filter(function(t){return typeof t=="string"})}function Tp(e){var t=e;return e.split(".").length===3&&(t=e.split(".").slice(0,-1).join(".")),t}function zs(e){return function(r){return e+" "+r}}function ub(e){return parseInt(e.split(".")[0])}function xp(e,t){if(e.length===0)return[];var r=Ew(e.map(ub)),n=r[r.length-t];if(!n)return e;for(var s=[],i=e.length-1;i>=0&&!(n>ub(e[i]));i--)s.unshift(e[i]);return s}function Ew(e){for(var t=[],r=0;r<e.length;r++)t.indexOf(e[r])===-1&&t.push(e[r]);return t}function Cp(e,t,r){for(var n in r)e[t+" "+n]=r[n]}function pw(e,t){if(t=parseFloat(t),e===">")return function(n){return r(n)>t};return e===">="?function(n){return r(n)>=t}:e==="<"?function(n){return parseFloat(n)<t}:function(n){return parseFloat(n)<=t};function r(n){return parseFloat(n.split("-")[1]||n)}}function Fhe(e,t){return t=t.split(".").map(Qs),t[1]=t[1]||0,t[2]=t[2]||0,e===">"?function(r){return r=r.split(".").map(Qs),El(r,t)>0}:e===">="?function(r){return r=r.split(".").map(Qs),El(r,t)>=0}:e==="<"?function(r){return r=r.split(".").map(Qs),El(t,r)>0}:function(r){return r=r.split(".").map(Qs),El(t,r)>=0}}function Qs(e){return parseInt(e)}function Pp(e,t){return e<t?-1:e>t?1:0}function El(e,t){return Pp(parseInt(e[0]),parseInt(t[0]))||Pp(parseInt(e[1]||"0"),parseInt(t[1]||"0"))||Pp(parseInt(e[2]||"0"),parseInt(t[2]||"0"))}function fw(e,t){switch(t=t.split(".").map(Qs),typeof t[1]=="undefined"&&(t[1]="x"),e){case"<=":return function(r){return r=r.split(".").map(Qs),dw(r,t)<=0};case">=":default:return function(r){return r=r.split(".").map(Qs),dw(r,t)>=0}}}function dw(e,t){return e[0]!==t[0]?e[0]<t[0]?-1:1:t[1]==="x"?0:e[1]!==t[1]?e[1]<t[1]?-1:1:0}function Lhe(e,t){return e.versions.indexOf(t)!==-1?t:Ce.versionAliases[e.name][t]?Ce.versionAliases[e.name][t]:!1}function Sp(e,t){var r=Lhe(e,t);return r||(e.versions.length===1?e.versions[0]:!1)}function Tw(e,t){return e=e/1e3,Object.keys(bs).reduce(function(r,n){var s=Zs(n,t);if(!s)return r;var i=Object.keys(s.releaseDate).filter(function(a){var o=s.releaseDate[a];return o!==null&&o>=e});return r.concat(i.map(zs(s.name)))},[])}function hw(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function Zs(e,t){if(e=e.toLowerCase(),e=Ce.aliases[e]||e,t.mobileToDesktop&&Ce.desktopNames[e]){var r=Ce.data[Ce.desktopNames[e]];if(e==="android")return Mhe(hw(Ce.data[e]),r);var n=hw(r);return n.name=e,n}return Ce.data[e]}function mw(e,t){var r=t.indexOf(gw);return e.filter(function(n){return/^(?:[2-4]\.|[34]$)/.test(n)}).concat(t.slice(r))}function jhe(e){var t={};for(var r in e)t[r]=e[r];return t}function Mhe(e,t){return e.released=mw(e.released,t.released),e.versions=mw(e.versions,t.versions),e
- Did you mean '${(0,Vhe.findSuggestion)(s,n)}'?`))}validateBooleanOption(t,r,n){return r===void 0?n:(this.invariant(typeof r=="boolean",`'${t}' option must be a boolean.`),r)}validateStringOption(t,r,n){return r===void 0?n:(this.invariant(typeof r=="string",`'${t}' option must be a string.`),r)}invariant(t,r){if(!t)throw new Error(this.formatMessage(r))}formatMessage(t){return`${this.descriptor}: ${t}`}};Dp.OptionValidator=hb});var Ip=x(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});Object.defineProperty(wp,"OptionValidator",{enumerable:!0,get:function(){return $he.OptionValidator}});Object.defineProperty(wp,"findSuggestion",{enumerable:!0,get:function(){return Whe.findSuggestion}});var $he=ww(),Whe=db()});var _w=x((ZOe,Iw)=>{"use strict";Iw.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var Ow=x((e3e,Nw)=>{"use strict";Nw.exports=mt;mt.Node=Wi;mt.create=mt;function mt(e){var t=this;if(t instanceof mt||(t=new mt),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(s){t.push(s)});else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)t.push(arguments[r]);return t}mt.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};mt.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};mt.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};mt.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Hhe(this,arguments[e]);return this.length};mt.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)Ghe(this,arguments[e]);return this.length};mt.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};mt.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};mt.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++)e.call(t,r.value,n,this),r=r.next};mt.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--)e.call(t,r.value,n,this),r=r.prev};mt.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};mt.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};mt.prototype.map=function(e,t){t=t||this;for(var r=new mt,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};mt.prototype.mapReverse=function(e,t){t=t||this;for(var r=new mt,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};mt.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)r=e(r,n.value,s),n=n.next;return r};mt.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)r=e(r,n.value,s),n=n.prev;return r};mt.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};mt.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};mt.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new mt;if
- Did you mean '${(0,nI.findSuggestion)(r,t)}'?`));return e}function aI(e){return typeof e=="string"||Array.isArray(e)&&e.every(t=>typeof t=="string")}function yme(e){return Pb.invariant(e===void 0||aI(e),`'${String(e)}' is not a valid browserslist query`),e}function gme(e){return e.reduce((t,r)=>{let[n,s]=r.split(" "),i=sI.browserNameMap[n];if(!i)return t;try{let a=s.split("-")[0].toLowerCase(),o=(0,Ln.isUnreleasedVersion)(a,i);if(!t[i])return t[i]=o?a:(0,Ln.semverify)(a),t;let l=t[i],u=(0,Ln.isUnreleasedVersion)(l,i);if(u&&o)t[i]=(0,Ln.getLowestUnreleased)(l,a,i);else if(u)t[i]=(0,Ln.semverify)(a);else if(!u&&!o){let c=(0,Ln.semverify)(a);t[i]=(0,Ln.semverMin)(l,c)}}catch{}return t},{})}function bme(e){e.length&&(console.warn(`Warning, the following targets are using a decimal version:
`),e.forEach(({target:t,value:r})=>console.warn(` ${t}: ${r}`)),console.warn(`
We recommend using a string for minor/patch versions to avoid numbers like 6.10
getting parsed as 6.1, which can lead to unexpected behavior.
`))}function oI(e,t){try{return(0,Ln.semverify)(t)}catch{throw new Error(Pb.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`))}}function Eme(e){return["node",e===!0||e==="current"?process.versions.node.split("-")[0]:oI("node",e)]}function Tme(e,t){let r=(0,Ln.isUnreleasedVersion)(t,e)?t.toLowerCase():oI(e,t);return[e,r]}function xme(e){let t=Object.assign({},e);return delete t.esmodules,delete t.browsers,t}function Sme(e,t){let r=Sb(e,{mobileToDesktop:!0,env:t});return gme(r)}var rI=new pme({max:64});function vme(e,t){let r=typeof e=="string"?e:e.join()+t,n=rI.get(r);return n||(n=Sme(e,t),rI.set(r,n)),Object.assign({},n)}function Pme(e={},t={}){var r,n;let{browsers:s,esmodules:i}=e,{configPath:a=".",onBrowserslistConfigFound:o}=t;yme(s);let l=xme(e),u=mme(l),p=!!s||Object.keys(u).length>0,d=!t.ignoreBrowserslistConfig&&!p;if(!s&&d){if(s=process.env.BROWSERSLIST,!s){let f=t.configFile||process.env.BROWSERSLIST_CONFIG||Sb.findConfigFile(a);f!=null&&(o==null||o(f),s=Sb.loadConfig({config:f,env:t.browserslistEnv}))}s==null&&(s=[])}if(i&&(i!=="intersect"||!((r=s)!=null&&r.length))&&(s=Object.keys(xb).map(f=>`${f} >= ${xb[f]}`).join(", "),i=!1),(n=s)!=null&&n.length){let f=vme(s,t.browserslistEnv);if(i==="intersect")for(let b of Object.keys(f))if(b!=="deno"&&b!=="ie"){let T=xb[b==="opera_mobile"?"op_mob":b];if(T){let w=f[b];f[b]=(0,Ln.getHighestUnreleased)(w,(0,Ln.semverify)(T),b)}else delete f[b]}else delete f[b];u=Object.assign(f,u)}let m={},g=[];for(let f of Object.keys(u).sort()){let b=u[f];typeof b=="number"&&b%1!==0&&g.push({target:f,value:b});let[T,w]=f==="node"?Eme(b):Tme(f,b);w&&(m[T]=w)}return bme(g),m}});var Cb=x(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.resolveBrowserslistConfigFile=Ame;jp.resolveTargets=Cme;function lI(){let e=require("path");return lI=function(){return e},e}function uI(){let e=Ab();return uI=function(){return e},e}function Ame(e,t){return lI().resolve(t,e)}function Cme(e,t){let r=e.targets,n;typeof r=="string"||Array.isArray(r)?n={browsers:r}:r&&("esmodules"in r?n=Object.assign({},r,{esmodules:"intersect"}):n=r);let{browserslistConfigFile:s}=e,i,a=!1;return typeof s=="string"?i=s:a=s===!1,(0,uI().default)(n,{ignoreBrowserslistConfig:a,configFile:i,configPath:t,browserslistEnv:e.browserslistEnv})}});var Db=x(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.createCachedDescriptors=_me;Pl.createDescriptor=EI;Pl.createUncachedDescriptors=Nme;function dI(){let e=en();return dI=function(){return e},e}var cI=SD(),pI=Cl(),Dme=Al(),vl=qi(),wme=Cb();function Ime(e,t){var r,n,s,i;return e.name===t.name&&e.value===t.value&&e.options===t.options&&e.dirname===t.dirname&&e.alias===t.alias&&e.ownPass===t.ownPass&&((r=e.file)==null?void 0:r.request)===((n=t.file)==null?void 0:n.request)&&((s=e.file)==null?void 0:s.resolved)===((i=t.file)==null?void 0:i.resolved)}function*fI(e){return e}function hI(e,t){return typeof e.browserslistConfigFile=="string"&&(e.browserslistConfigFile=(0,wme.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)),e}function _me(e,t,r){let{plugins:n,presets:s,passPerPreset:i}=t;return{options:hI(t,e),plugins:n?()=>Fme(n,e)(r):()=>fI([]),presets:s?()=>Bme(s,e)(r)(!!i):()=>fI([])}}function Nme(e,t,r){return{options:hI(t,e),plugins:(0,cI.once)(()=>gI(t.plugins||[],e,r)),presets:(0,cI.once)(()=>yI(t.presets||[],e,r,!!t.passPerPreset))}}var Ome=new WeakMap,Bme=(0,vl.makeWeakCacheSync)((e,t)=>{let r=t.using(n=>n);return(0,vl.makeStrongCacheSync)(n=>(0,vl.makeStrongCache)(function*(s){return(yield*yI(e,r,n,s)).map(a=>mI(Ome,a))}))}),kme=new WeakMap,Fme=(0,vl.makeWeakCacheSync)((e,t)=>{let r=t.using(n=>n);return(0,vl.makeStrongCache)(function*(n){return(yield*gI(e,r,n)).map(i=>mI(kme,i))})}),Lme={};function mI(e,t){let{value:r,options:n=Lme}=t;if(n===!1)return t;let s=e.get(r);s||(s=new WeakMap,e.set(r,s));let i=s.get(n);if(i||(i=[],s.set(n,i)),!i.includes(t)){let a=i.filter(o=>Ime(o,t));if(a.length>0)return a[0];i.push(t)}return t}function*yI(e,t,r,n){return yield*bI("preset",e,t,r,n)}function*gI(e,t,r){return yield*bI("plugi
`))}n.add(r.name)}}});var Al=x(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.createConfigItem=Rme;Dl.createItemFromDescriptor=xI;Dl.getItemDescriptor=qme;function TI(){let e=require("path");return TI=function(){return e},e}var Mme=Db();function xI(e){return new Mp(e)}function*Rme(e,{dirname:t=".",type:r}={}){let n=yield*(0,Mme.createDescriptor)(e,TI().resolve(t),{type:r,alias:"programmatic item"});return xI(n)}var wb=Symbol.for("@babel/core@7 - ConfigItem");function qme(e){if(e!=null&&e[wb])return e._descriptor}var Mp=class{constructor(t){this._descriptor=void 0,this[wb]=!0,this.value=void 0,this.options=void 0,this.dirname=void 0,this.name=void 0,this.file=void 0,this._descriptor=t,Object.defineProperty(this,"_descriptor",{enumerable:!1}),Object.defineProperty(this,wb,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:void 0,Object.freeze(this)}};Object.freeze(Mp.prototype)});var SI=x(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=void 0;var E3e=Rp.default={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."}}});var Nb=x(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.access=tn;Gt.assertArray=_b;Gt.assertAssumptions=iye;Gt.assertBabelrcSearch=eye;Gt.assertBoolean=Ib;Gt.assertCallerMetadata=Hme;Gt.assertCompact=Wme;Gt.assertConfigApplicableTest=Qme;Gt.assertConfigFileSearch=Zme;Gt.assertFunction=Yme;Gt.assertIgnoreList=Jme;Gt.assertInputSourceMap=Gme;Gt.assertObject=AI;Gt.assertPluginList=tye;Gt.assertRootMode=Vme;Gt.assertSourceMaps=$me;Gt.assertSourceType=Kme;Gt.assertString=Xme;Gt.assertTargets=nye;Gt.msg=it;function wl(){let e=Ab();return wl=function(){return e},e}var Ume=Il();function it(e){switch(e.type){case"root":return"";case"env":return`${it(e.parent)}.env["${e.name}"]`;case"overrides":return`${it(e.parent)}.overrides[${e.index}]`;case"option":return`${it(e.parent)}.${e.name}`;case"access":return`${it(e.parent)}[${JSON.stringify(e.name)}]`;default:throw new Error(`Assert
- Maybe you meant to use
"${r}s": [
["${s.file.request}", ${JSON.stringify(i.value,void 0,2)}]
]
To be a valid ${r}, its name and options should be wrapped in a pair of brackets`)}});var jb=x(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});Lb.default=yye;function Up(){let e=require("path");return Up=function(){return e},e}var _l=`\\${Up().sep}`,Bb=`(?:${_l}|$)`,kb=`[^${_l}]+`,Fb=`(?:${kb}${_l})`,BI=`(?:${kb}${Bb})`,hye=`${Fb}*?`,mye=`${Fb}*?${BI}?`;function OI(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function yye(e,t){let r=Up().resolve(t,e).split(Up().sep);return new RegExp(["^",...r.map((n,s)=>{let i=s===r.length-1;return n==="**"?i?mye:hye:n==="*"?i?BI:Fb:n.indexOf("*.")===0?kb+OI(n.slice(1))+(i?Bb:_l):OI(n)+(i?Bb:_l)})].join(""))}});var LI=x(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.ConfigPrinter=Ja.ChainFormatter=void 0;function FI(){let e=en();return FI=function(){return e},e}var gye=Ja.ChainFormatter={Programmatic:0,Config:1},Mb={title(e,t,r){let n="";return e===gye.Programmatic?(n="programmatic options",t&&(n+=" from "+t)):n="config "+r,n},loc(e,t){let r="";return e!=null&&(r+=`.overrides[${e}]`),t!=null&&(r+=`.env["${t}"]`),r},*optionsAndDescriptors(e){let t=Object.assign({},e.options);delete t.overrides,delete t.env;let r=[...yield*e.plugins()];r.length&&(t.plugins=r.map(s=>kI(s)));let n=[...yield*e.presets()];return n.length&&(t.presets=[...n].map(s=>kI(s))),JSON.stringify(t,void 0,2)}};function kI(e){var t;let r=(t=e.file)==null?void 0:t.request;return r==null&&(typeof e.value=="object"?r=e.value:typeof e.value=="function"&&(r=`[Function: ${e.value.toString().slice(0,50)} ... ]`)),r==null&&(r="[Unknown]"),e.options===void 0?r:e.name==null?[r,e.options]:[r,e.options,e.name]}var Rb=class e{constructor(){this._stack=[]}configure(t,r,{callerName:n,filepath:s}){return t?(i,a,o)=>{this._stack.push({type:r,callerName:n,filepath:s,content:i,index:a,envName:o})}:()=>{}}static*format(t){let r=Mb.title(t.type,t.callerName,t.filepath),n=Mb.loc(t.index,t.envName);n&&(r+=` ${n}`);let s=yield*Mb.optionsAndDescriptors(t.content);return`${r}
${s}`}*output(){return this._stack.length===0?"":(yield*FI().all(this._stack.map(r=>e.format(r)))).join(`
`)}};Ja.ConfigPrinter=Rb});var Yb=x(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.buildPresetChain=Tye;Qa.buildPresetChainWalker=void 0;Qa.buildRootChain=Cye;function RI(){let e=require("path");return RI=function(){return e},e}function qI(){let e=xi();return qI=function(){return e},e}var $b=Il(),UI=jb(),Ol=LI(),bye=ds(),Eye=Ui(),Nl=Cl(),ar=qi(),yn=Db(),jI=qI()("babel:config:config-chain");function*Tye(e,t){let r=yield*xye(e,t);return r?{plugins:Wp(r.plugins),presets:Wp(r.presets),options:r.options.map(n=>VI(n)),files:new Set}:null}var xye=Qa.buildPresetChainWalker=Xb({root:e=>Sye(e),env:(e,t)=>vye(e)(t),overrides:(e,t)=>Pye(e)(t),overridesEnv:(e,t,r)=>Aye(e)(t)(r),createLogger:()=>()=>{}}),Sye=(0,ar.makeWeakCacheSync)(e=>Wb(e,e.alias,yn.createUncachedDescriptors)),vye=(0,ar.makeWeakCacheSync)(e=>(0,ar.makeStrongCacheSync)(t=>Kb(e,e.alias,yn.createUncachedDescriptors,t))),Pye=(0,ar.makeWeakCacheSync)(e=>(0,ar.makeStrongCacheSync)(t=>Hb(e,e.alias,yn.createUncachedDescriptors,t))),Aye=(0,ar.makeWeakCacheSync)(e=>(0,ar.makeStrongCacheSync)(t=>(0,ar.makeStrongCacheSync)(r=>Gb(e,e.alias,yn.createUncachedDescriptors,t,r))));function*Cye(e,t){let r,n,s=new Ol.ConfigPrinter,i=yield*Nye({options:e,dirname:t.cwd},t,void 0,s);if(!i)return null;let a=yield*s.output(),o;typeof e.configFile=="string"?o=yield*(0,Nl.loadConfig)(e.configFile,t.cwd,t.envName,t.caller):e.configFile!==!1&&(o=yield*(0,Nl.findRootConfig)(t.root,t.envName,t.caller));let{babelrc:l,babelrcRoots:u}=e,c=t.cwd,p=$p(),d=new Ol.ConfigPrinter;if(o){let w=wye(o),I=yield*Ub(w,t,void 0,d);if(!I)return null;r=yield*d.output(),l===void 0&&(l=w.options.babelrc),u===void 0&&(c=w.dirname,u=w.options.babelrcRoots),za(p,I)}let m,g,f=!1,b=$p();if((l===!0||l===void 0)&&typeof t.filename=="string"){let w=yield*(0,Nl.findPackageData)(t.filename);if(w&&Dye(t,w,u,c)){if({ignore:m,config:g}=yield*(0,Nl.findRelativeConfig)(w,t.envName,t.caller),m&&b.files.add(m.filepath),m&&$I(t,m.ignore,null,m.dirname)&&(f=!0),g&&!f){let I=Iye(g),N=new Ol.ConfigPrinter,L=yield*Ub(I,t,void 0,N);L?(n=yield*N.output(),za(b,L)):f=!0}g&&f&&b.files.add(g.filepath)}}t.showConfig&&console.log(`Babel configs on "${t.filename}" (ascending priority):
`+[r,n,a].filter(w=>!!w).join(`
`)+`
-----End Babel configs-----`);let T=za(za(za($p(),p),b),i);return{plugins:f?[]:Wp(T.plugins),presets:f?[]:Wp(T.presets),options:f?[]:T.options.map(w=>VI(w)),fileHandling:f?"ignored":"transpile",ignore:m||void 0,babelrc:g||void 0,config:o||void 0,files:T.files}}function Dye(e,t,r,n){if(typeof r=="boolean")return r;let s=e.root;if(r===void 0)return t.directories.includes(s);let i=r;return Array.isArray(i)||(i=[i]),i=i.map(a=>typeof a=="string"?RI().resolve(n,a):a),i.length===1&&i[0]===s?t.directories.includes(s):i.some(a=>(typeof a=="string"&&(a=(0,UI.default)(a,n)),t.directories.some(o=>WI(a,n,o,e))))}var wye=(0,ar.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,$b.validate)("configfile",e.options,e.filepath)})),Iye=(0,ar.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,$b.validate)("babelrcfile",e.options,e.filepath)})),_ye=(0,ar.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,$b.validate)("extendsfile",e.options,e.filepath)})),Nye=Xb({root:e=>Wb(e,"base",yn.createCachedDescriptors),env:(e,t)=>Kb(e,"base",yn.createCachedDescriptors,t),overrides:(e,t)=>Hb(e,"base",yn.createCachedDescriptors,t),overridesEnv:(e,t,r)=>Gb(e,"base",yn.createCachedDescriptors,t,r),createLogger:(e,t,r)=>Mye(e,t,r)}),Oye=Xb({root:e=>Bye(e),env:(e,t)=>kye(e)(t),overrides:(e,t)=>Fye(e)(t),overridesEnv:(e,t,r)=>Lye(e)(t)(r),createLogger:(e,t,r)=>jye(e.filepath,t,r)});function*Ub(e,t,r,n){let s=yield*Oye(e,t,r,n);return s==null||s.files.add(e.filepath),s}var Bye=(0,ar.makeWeakCacheSync)(e=>Wb(e,e.filepath,yn.createUncachedDescriptors)),kye=(0,ar.makeWeakCacheSync)(e=>(0,ar.makeStrongCacheSync)(t=>Kb(e,e.filepath,yn.createUncachedDescriptors,t))),Fye=(0,ar.makeWeakCacheSync)(e=>(0,ar.makeStrongCacheSync)(t=>Hb(e,e.filepath,yn.createUncachedDescriptors,t))),Lye=(0,ar.makeWeakCacheSync)(e=>(0,ar.makeStrongCacheSync)(t=>(0,ar.makeStrongCacheSync)(r=>Gb(e,e.filepath,yn.createUncachedDescriptors,t,r))));function jye(e,t,r){return r?r.configure(t.showConfig,Ol.ChainFormatter.Config,{filepath:e}):()=>{}}function Wb({dirname:e,options:t},r,n){return n(e,t,r)}function Mye(e,t,r){var n;return r?r.configure(t.showConfig,Ol.ChainFormatter.Programmatic,{callerName:(n=t.caller)==null?void 0:n.name}):()=>{}}function Kb({dirname:e,options:t},r,n,s){var i;let a=(i=t.env)==null?void 0:i[s];return a?n(e,a,`${r}.env["${s}"]`):null}function Hb({dirname:e,options:t},r,n,s){var i;let a=(i=t.overrides)==null?void 0:i[s];if(!a)throw new Error("Assertion failure - missing override");return n(e,a,`${r}.overrides[${s}]`)}function Gb({dirname:e,options:t},r,n,s,i){var a,o;let l=(a=t.overrides)==null?void 0:a[s];if(!l)throw new Error("Assertion failure - missing override");let u=(o=l.env)==null?void 0:o[i];return u?n(e,u,`${r}.overrides[${s}].env["${i}"]`):null}function Xb({root:e,env:t,overrides:r,overridesEnv:n,createLogger:s}){return function*(a,o,l=new Set,u){let{dirname:c}=a,p=[],d=e(a);if(Vp(d,c,o,a.filepath)){p.push({config:d,envName:void 0,index:void 0});let f=t(a,o.envName);f&&Vp(f,c,o,a.filepath)&&p.push({config:f,envName:o.envName,index:void 0}),(d.options.overrides||[]).forEach((b,T)=>{let w=r(a,T);if(Vp(w,c,o,a.filepath)){p.push({config:w,index:T,envName:void 0});let I=n(a,T,o.envName);I&&Vp(I,c,o,a.filepath)&&p.push({config:I,index:T,envName:o.envName})}})}if(p.some(({config:{options:{ignore:f,only:b}}})=>$I(o,f,b,c)))return null;let m=$p(),g=s(a,o,u);for(let{config:f,index:b,envName:T}of p){if(!(yield*Rye(m,f.options,c,o,l,u)))return null;g(f,b,T),yield*qye(m,f)}return m}}function*Rye(e,t,r,n,s,i){if(t.extends===void 0)return!0;let a=yield*(0,Nl.loadConfig)(t.extends,r,n.envName,n.caller);if(s.has(a))throw new Error(`Configuration cycle detected loading ${a.filepath}.
File already loaded following the config chain:
`+Array.from(s,l=>` - ${l.filepath}`).join(`
`));s.add(a);let o=yield*Ub(_ye(a),n,s,i);return s.delete(a),o?(za(e,o),!0):!1}function za(e,t){e.options.push(...t.options),e.plugins.push(...t.plugins),e.presets.push(...t.presets);for(let r of t.files)e.files.add(r);return e}function*qye(e,{options:t,plugins:r,presets:n}){return e.options.push(t),e.plugins.push(...yield*r()),e.presets.push(...yield*n()),e}function $p(){return{options:[],presets:[],plugins:[],files:new Set}}function VI(e){let t=Object.assign({},e);return delete t.extends,delete t.env,delete t.overrides,delete t.plugins,delete t.presets,delete t.passPerPreset,delete t.ignore,delete t.only,delete t.test,delete t.include,delete t.exclude,hasOwnProperty.call(t,"sourceMap")&&(t.sourceMaps=t.sourceMap,delete t.sourceMap),t}function Wp(e){let t=new Map,r=[];for(let n of e)if(typeof n.value=="function"){let s=n.value,i=t.get(s);i||(i=new Map,t.set(s,i));let a=i.get(n.name);a?a.value=n:(a={value:n},r.push(a),n.ownPass||i.set(n.name,a))}else r.push({value:n});return r.reduce((n,s)=>(n.push(s.value),n),[])}function Vp({options:e},t,r,n){return(e.test===void 0||qb(r,e.test,t,n))&&(e.include===void 0||qb(r,e.include,t,n))&&(e.exclude===void 0||!qb(r,e.exclude,t,n))}function qb(e,t,r,n){let s=Array.isArray(t)?t:[t];return Vb(e,s,r,n)}function MI(e,t){return t instanceof RegExp?String(t):t}function $I(e,t,r,n){if(t&&Vb(e,t,n)){var s;let a=`No config is applied to "${(s=e.filename)!=null?s:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t,MI)}\` from "${n}"`;return jI(a),e.showConfig&&console.log(a),!0}if(r&&!Vb(e,r,n)){var i;let a=`No config is applied to "${(i=e.filename)!=null?i:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r,MI)}\` from "${n}"`;return jI(a),e.showConfig&&console.log(a),!0}return!1}function Vb(e,t,r,n){return t.some(s=>WI(s,r,e.filename,e,n))}function WI(e,t,r,n,s){if(typeof e=="function")return!!(0,bye.endHiddenCallStack)(e)(r,{dirname:t,envName:n.envName,caller:n.caller});if(typeof r!="string")throw new Eye.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel",s);return typeof e=="string"&&(e=(0,UI.default)(e,t)),e.test(r)}});var KI=x(Jb=>{"use strict";Object.defineProperty(Jb,"__esModule",{value:!0});Jb.validatePluginObject=Wye;var xs=Nb(),Uye={name:xs.assertString,manipulateOptions:xs.assertFunction,pre:xs.assertFunction,post:xs.assertFunction,inherits:xs.assertFunction,visitor:Vye,parserOverride:xs.assertFunction,generatorOverride:xs.assertFunction};function Vye(e,t){let r=(0,xs.assertObject)(e,t);if(r&&(Object.keys(r).forEach(n=>{n!=="_exploded"&&n!=="_verified"&&$ye(n,r[n])}),r.enter||r.exit))throw new Error(`${(0,xs.msg)(e)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);return r}function $ye(e,t){if(t&&typeof t=="object")Object.keys(t).forEach(r=>{if(r!=="enter"&&r!=="exit")throw new Error(`.visitor["${e}"] may only have .enter and/or .exit handlers.`)});else if(typeof t!="function")throw new Error(`.visitor["${e}"] must be a function`)}function Wye(e){let t={type:"root",source:"plugin"};return Object.keys(e).forEach(r=>{let n=Uye[r];if(n)n({type:"option",name:r,parent:t},e[r]);else{let s=new Error(`.${r} is not a valid Plugin property`);throw s.code="BABEL_UNKNOWN_PLUGIN_PROPERTY",s}}),e}});var Qb=x(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0});zb.getEnv=Kye;function Kye(e="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||e}});var Zb=x(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.default=GI;Xp.loadPartialConfig=t0e;function Kp(){let e=require("path");return Kp=function(){return e},e}var Hye=gp(),Gye=np(),HI=Al(),Xye=Yb(),Yye=Qb(),Jye=Il(),Hp=Cl(),zye=Cb(),Qye=["showIgnoredFiles"];function Zye(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function e0e(e,t){switch(t){case"root":return e;case"upward-optional":{let r=(0,Hp.findConfigUpwards)(e);return r===null?e:r}case"upward":{let r=(0,Hp.findConfigUpwards)(e);if(r!==null)r
One of the following config files must be in the directory tree: "${Hp.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:e})}default:throw new Error("Assertion failure - unknown rootMode value.")}}function*GI(e){if(e!=null&&(typeof e!="object"||Array.isArray(e)))throw new Error("Babel options must be an object, null, or undefined");let t=e?(0,Jye.validate)("arguments",e):{},{envName:r=(0,Yye.getEnv)(),cwd:n=".",root:s=".",rootMode:i="root",caller:a,cloneInputAst:o=!0}=t,l=Kp().resolve(n),u=e0e(Kp().resolve(l,s),i),c=typeof t.filename=="string"?Kp().resolve(n,t.filename):void 0,p=yield*(0,Hp.resolveShowConfigPath)(l),d={filename:c,cwd:l,root:u,envName:r,caller:a,showConfig:p===c},m=yield*(0,Xye.buildRootChain)(t,d);if(!m)return null;let g={assumptions:{}};return m.options.forEach(b=>{(0,Gye.mergeOptions)(g,b)}),{options:Object.assign({},g,{targets:(0,zye.resolveTargets)(g,u),cloneInputAst:o,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:d.envName,cwd:d.cwd,root:d.root,rootMode:"root",filename:typeof d.filename=="string"?d.filename:void 0,plugins:m.plugins.map(b=>(0,HI.createItemFromDescriptor)(b)),presets:m.presets.map(b=>(0,HI.createItemFromDescriptor)(b))}),context:d,fileHandling:m.fileHandling,ignore:m.ignore,babelrc:m.babelrc,config:m.config,files:m.files}}function*t0e(e){let t=!1;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){var r=e;({showIgnoredFiles:t}=r),e=Zye(r,Qye)}let n=yield*GI(e);if(!n)return null;let{options:s,babelrc:i,ignore:a,config:o,fileHandling:l,files:u}=n;return l==="ignored"&&!t?null:((s.plugins||[]).forEach(c=>{if(c.value instanceof Hye.default)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")}),new Gp(s,i?i.filepath:void 0,a?a.filepath:void 0,o?o.filepath:void 0,l,u))}var Gp=class{constructor(t,r,n,s,i,a){this.options=void 0,this.babelrc=void 0,this.babelignore=void 0,this.config=void 0,this.fileHandling=void 0,this.files=void 0,this.options=t,this.babelignore=n,this.babelrc=r,this.config=s,this.fileHandling=i,this.files=a,Object.freeze(this)}hasFilesystemConfig(){return this.babelrc!==void 0||this.config!==void 0}};Object.freeze(Gp.prototype)});var r_=x(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.default=void 0;function zI(){let e=en();return zI=function(){return e},e}var r1=Xs(),XI=np(),r0e=vt(),QI=gp(),n0e=Al(),s0e=Yb(),i1=mp();function n1(){let e=zt();return n1=function(){return e},e}var a1=qi(),s1=Il(),i0e=KI(),ZI=Kg(),a0e=Zb(),o0e=Ui(),_3e=Yp.default=zI()(function*(t){var r;let n=yield*(0,a0e.default)(t);if(!n)return null;let{options:s,context:i,fileHandling:a}=n;if(a==="ignored")return null;let o={},{plugins:l,presets:u}=s;if(!l||!u)throw new Error("Assertion failure - plugins and presets exist");let c=Object.assign({},i,{targets:s.targets}),p=N=>{let L=(0,n0e.getItemDescriptor)(N);if(!L)throw new Error("Assertion failure - must be config item");return L},d=u.map(p),m=l.map(p),g=[[]],f=[],b=[];if(yield*YI(i,function*N(L,W){let U=[];for(let pe=0;pe<L.length;pe++){let Ee=L[pe];if(Ee.options!==!1){try{var H=yield*d0e(Ee,c)}catch(ce){throw ce.code==="BABEL_UNKNOWN_OPTION"&&(0,s1.checkNoUnwrappedItemOptionPairs)(L,pe,"preset",ce),ce}b.push(H.externalDependencies),Ee.ownPass?U.push({preset:H.chain,pass:[]}):U.unshift({preset:H.chain,pass:W})}}if(U.length>0){g.splice(1,0,...U.map(pe=>pe.pass).filter(pe=>pe!==W));for(let{preset:pe,pass:Ee}of U){if(!pe||(Ee.push(...pe.plugins),yield*N(pe.presets,Ee)))return!0;pe.options.forEach(qe=>{(0,XI.mergeOptions)(o,qe)})}}})(d,g[0]))return null;let w=o;(0,XI.mergeOptions)(w,s);let I=Object.assign({},c,{assumptions:(r=w.assumptions)!=null?r:{}});return yield*YI(i,function*(){g[0].unshift(...m);for(let W of g){let U=[];f.push(U);for(let H=0;H<W.length;H++){let pe=W[H];if(pe.options!==!1){try{var L=yield*t_(pe,I)}catch(Ee){throw Ee.code==="BABEL_UNKNOWN_PLUGIN_PROPERTY"&&(0,s1.checkNoUnwrappedItemOptionPairs)(W,H,"plugin",Ee),Ee}U.push(L),b.push(L.externalDependencies)}}}})(),w.plugins=f[0],w.presets=f.slice(1).filter(N=>N.length>
(While processing: ${JSON.stringify(s)})`,new Error(l)}return{value:o,options:r,dirname:n,alias:s,externalDependencies:(0,i1.finalize)(a)}}),l0e=e_(ZI.makePluginAPI),u0e=e_(ZI.makePresetAPI),c0e=(0,a1.makeWeakCache)(function*({value:e,options:t,dirname:r,alias:n,externalDependencies:s},i){let a=(0,i0e.validatePluginObject)(e),o=Object.assign({},a);if(o.visitor&&(o.visitor=n1().default.explode(Object.assign({},o.visitor))),o.inherits){let l={name:void 0,alias:`${n}$inherits`,value:o.inherits,options:t,dirname:r},u=yield*(0,r1.forwardAsync)(t_,c=>i.invalidate(p=>c(l,p)));o.pre=t1(u.pre,o.pre),o.post=t1(u.post,o.post),o.manipulateOptions=t1(u.manipulateOptions,o.manipulateOptions),o.visitor=n1().default.visitors.merge([u.visitor||{},o.visitor||{}]),u.externalDependencies.length>0&&(s.length===0?s=u.externalDependencies:s=(0,i1.finalize)([s,u.externalDependencies]))}return new QI.default(o,t,n,s)});function*t_(e,t){if(e.value instanceof QI.default){if(e.options)throw new Error("Passed options to an existing Plugin instance will not work.");return e.value}return yield*c0e(yield*l0e(e,t),t)}var e1=e=>e&&typeof e!="function",JI=(e,t)=>{if(e1(e.test)||e1(e.include)||e1(e.exclude)){let r=t.name?`"${t.name}"`:"/* your preset */";throw new o0e.default([`Preset ${r} requires a filename to be set when babel is called directly,`,"```",`babel.transformSync(code, { filename: 'file.ts', presets: [${r}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join(`
`))}},p0e=(e,t,r)=>{if(!t.filename){var n;let{options:s}=e;JI(s,r),(n=s.overrides)==null||n.forEach(i=>JI(i,r))}},f0e=(0,a1.makeWeakCacheSync)(({value:e,dirname:t,alias:r,externalDependencies:n})=>({options:(0,s1.validate)("preset",e),alias:r,dirname:t,externalDependencies:n}));function*d0e(e,t){let r=f0e(yield*u0e(e,t));return p0e(r,t,e),{chain:yield*(0,s0e.buildPresetChain)(r,t),externalDependencies:r.externalDependencies}}function t1(e,t){return e?t?function(...r){let n=e.apply(this,r);return n&&typeof n.then=="function"?n.then(()=>t.apply(this,r)):t.apply(this,r)}:e:t}});var Za=x(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});bn.createConfigItem=S0e;bn.createConfigItemAsync=x0e;bn.createConfigItemSync=a_;Object.defineProperty(bn,"default",{enumerable:!0,get:function(){return n_.default}});bn.loadOptions=T0e;bn.loadOptionsAsync=E0e;bn.loadOptionsSync=i_;bn.loadPartialConfig=g0e;bn.loadPartialConfigAsync=y0e;bn.loadPartialConfigSync=s_;function Zp(){let e=en();return Zp=function(){return e},e}var n_=r_(),h0e=Zb(),m0e=Al(),gn=ds(),Jp=Zp()(h0e.loadPartialConfig);function y0e(...e){return(0,gn.beginHiddenCallStack)(Jp.async)(...e)}function s_(...e){return(0,gn.beginHiddenCallStack)(Jp.sync)(...e)}function g0e(e,t){if(t!==void 0)(0,gn.beginHiddenCallStack)(Jp.errback)(e,t);else if(typeof e=="function")(0,gn.beginHiddenCallStack)(Jp.errback)(void 0,e);else return s_(e)}function*b0e(e){var t;let r=yield*(0,n_.default)(e);return(t=r==null?void 0:r.options)!=null?t:null}var zp=Zp()(b0e);function E0e(...e){return(0,gn.beginHiddenCallStack)(zp.async)(...e)}function i_(...e){return(0,gn.beginHiddenCallStack)(zp.sync)(...e)}function T0e(e,t){if(t!==void 0)(0,gn.beginHiddenCallStack)(zp.errback)(e,t);else if(typeof e=="function")(0,gn.beginHiddenCallStack)(zp.errback)(void 0,e);else return i_(e)}var Qp=Zp()(m0e.createConfigItem);function x0e(...e){return(0,gn.beginHiddenCallStack)(Qp.async)(...e)}function a_(...e){return(0,gn.beginHiddenCallStack)(Qp.sync)(...e)}function S0e(e,t,r){if(r!==void 0)(0,gn.beginHiddenCallStack)(Qp.errback)(e,t,r);else if(typeof t=="function")(0,gn.beginHiddenCallStack)(Qp.errback)(e,void 0,r);else return a_(e,t)}});var o_=x(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.default=void 0;var Bl=class{constructor(t,r,n,s){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.isAsync=void 0,this.key=r,this.file=t,this.opts=n||{},this.cwd=t.opts.cwd,this.filename=t.opts.filename,this.isAsync=s}set(t,r){this._map.set(t,r)}get(t){return this._map.get(t)}availableHelper(t,r){return this.file.availableHelper(t,r)}addHelper(t){return this.file.addHelper(t)}buildCodeFrameError(t,r,n){return this.file.buildCodeFrameError(t,r,n)}};ef.default=Bl;Bl.prototype.getModuleName=function(){return this.file.getModuleName()},Bl.prototype.addImport=function(){this.file.addImport()}});var f_=x(l1=>{"use strict";Object.defineProperty(l1,"__esModule",{value:!0});l1.default=P0e;function c_(){let e=zt();return c_=function(){return e},e}var v0e=gp(),o1,l_={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){e.body=u_(e.body)}},SwitchCase:{exit({node:e}){e.consequent=u_(e.consequent)}}}};function u_(e){let t=Math.pow(2,30)-1,r=!1;for(let n=0;n<e.length;n++){let s=e[n],i=p_(s);if(i>t){r=!0;break}t=i}return r?A0e(e.slice()):e}function P0e(){return o1||(o1=new v0e.default(Object.assign({},l_,{visitor:c_().default.explode(l_.visitor)}),{})),o1}function p_(e){let t=e==null?void 0:e._blockHoist;return t==null?1:t===!0?2:t}function A0e(e){let t=Object.create(null);for(let s=0;s<e.length;s++){let i=e[s],a=p_(i);(t[a]||(t[a]=[])).push(i)}let r=Object.keys(t).map(s=>+s).sort((s,i)=>i-s),n=0;for(let s of r){let i=t[s];for(let a of i)e[n++]=a}return e}});var c1=x(u1=>{"use strict";Object.defineProperty(u1,"__esModule",{value:!0});u1.default=C0e;function tf(){let e=require("path");return tf=function(){return e},e}function C0e(e){let{filename:t,cwd:r,filenameRelative:n=typeof t=="string"?tf().relative(r,t):"unknown",sourceType:s="module",inpu
`+i.stack)}}function Dr(e,t){t=t||{},t.hasComment&&(e=_0e(e)),t.encoding==="base64"?e=rf(e):t.encoding==="uri"&&(e=decodeURIComponent(e)),(t.isJSON||t.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}Dr.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)};typeof Buffer!="undefined"?typeof Buffer.from=="function"?Dr.prototype.toBase64=O0e:Dr.prototype.toBase64=B0e:Dr.prototype.toBase64=k0e;function O0e(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}function B0e(){var e=this.toJSON();if(typeof e=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(e,"utf8").toString("base64")}function k0e(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))}Dr.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)};Dr.prototype.toComment=function(e){var t,r,n;return e!=null&&e.encoding==="uri"?(t="",r=this.toURI()):(t=";base64",r=this.toBase64()),n="sourceMappingURL=data:application/json;charset=utf-8"+t+","+r,e!=null&&e.multiline?"/*# "+n+" */":"//# "+n};Dr.prototype.toObject=function(){return JSON.parse(this.toJSON())};Dr.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)};Dr.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this};Dr.prototype.getProperty=function(e){return this.sourcemap[e]};Xt.fromObject=function(e){return new Dr(e)};Xt.fromJSON=function(e){return new Dr(e,{isJSON:!0})};Xt.fromURI=function(e){return new Dr(e,{encoding:"uri"})};Xt.fromBase64=function(e){return new Dr(e,{encoding:"base64"})};Xt.fromComment=function(e){var t,r;return e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),t=Xt.commentRegex.exec(e),r=t&&t[4]||"uri",new Dr(e,{encoding:r,hasComment:!0})};function d_(e){return new Dr(e,{isJSON:!0})}Xt.fromMapFileComment=function(e,t){if(typeof t=="string")throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var r=N0e(e,t);return r!=null&&typeof r.then=="function"?r.then(d_):d_(r)};Xt.fromSource=function(e){var t=e.match(Xt.commentRegex);return t?Xt.fromComment(t.pop()):null};Xt.fromMapFileSource=function(e,t){if(typeof t=="string")throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var r=e.match(Xt.mapFileCommentRegex);return r?Xt.fromMapFileComment(r.pop(),t):null};Xt.removeComments=function(e){return e.replace(Xt.commentRegex,"")};Xt.removeMapFileComments=function(e){return e.replace(Xt.mapFileCommentRegex,"")};Xt.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}});var y_=x(f1=>{"use strict";Object.defineProperty(f1,"__esModule",{value:!0});f1.default=F0e;var m_={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-s
`+r,i=m_[e];if(i){let{syntax:o,transform:l}=i;if(o){let u=h_(o);if(l){let c=h_(l),p=l.name.startsWith("@babel/plugin")?"plugins":"presets";s+=`
Add ${c} to the '${p}' section of your Babel config to enable transformation.
If you want to leave it as-is, add ${u} to the 'plugins' section to enable parsing.`}else s+=`
Add ${u} to the 'plugins' section of your Babel config to enable parsing.`}}return s+=`
If you already added the plugin for this syntax to your config, it's possible that your config isn't being loaded.
You can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:
npx cross-env BABEL_SHOW_CONFIG_FOR=${n==="unknown"?"<name of the input file>":n} <your build command>
See https://babeljs.io/docs/configuration#print-effective-configs for more info.
`,s}});var m1=x(h1=>{"use strict";Object.defineProperty(h1,"__esModule",{value:!0});h1.default=j0e;function d1(){let e=Uo();return d1=function(){return e},e}function g_(){let e=xa();return g_=function(){return e},e}var L0e=y_();function*j0e(e,{parserOpts:t,highlightCode:r=!0,filename:n="unknown"},s){try{let i=[];for(let a of e)for(let o of a){let{parserOverride:l}=o;if(l){let u=l(s,t,d1().parse);u!==void 0&&i.push(u)}}if(i.length===0)return(0,d1().parse)(s,t);if(i.length===1){if(yield*[],typeof i[0].then=="function")throw new Error("You appear to be using an async parser plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");return i[0]}throw new Error("More than one plugin attempted to override parsing.")}catch(i){i.code==="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"&&(i.message+=`
Consider renaming the file to '.mjs', or setting sourceType:module or sourceType:unambiguous in your Babel config for this file.`);let{loc:a,missingPlugin:o}=i;if(a){let l=(0,g_().codeFrameColumns)(s,{start:{line:a.line,column:a.column+1}},{highlightCode:r});o?i.message=`${n}: `+(0,L0e.default)(o[0],a,l,n):i.message=`${n}: ${i.message}
`+l,i.code="BABEL_PARSE_ERROR"}throw i}}});var b_=x(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.default=M0e;var nf=new Set,y1=0;function g1(e,t,r){if(e!==null){if(r){if(t.has(e))return t.get(e)}else if(++y1>250){if(nf.has(e))throw y1=0,nf.clear(),new Error("Babel-deepClone: Cycles are not allowed in AST");nf.add(e)}let n;if(Array.isArray(e)){n=new Array(e.length),r&&t.set(e,n);for(let s=0;s<e.length;s++)n[s]=typeof e[s]!="object"?e[s]:g1(e[s],t,r)}else{n={},r&&t.set(e,n);let s=Object.keys(e);for(let i=0;i<s.length;i++){let a=s[i];n[a]=typeof e[a]!="object"?e[a]:g1(e[a],t,r||a==="leadingComments"||a==="innerComments"||a==="trailingComments"||a==="extra")}}return r||y1-- >250&&nf.delete(e),n}return e}function M0e(e){if(typeof e!="object")return e;try{return g1(e,new Map,!0)}catch{return structuredClone(e)}}});var P_=x(S1=>{"use strict";Object.defineProperty(S1,"__esModule",{value:!0});S1.default=K0e;function x_(){let e=require("fs");return x_=function(){return e},e}function x1(){let e=require("path");return x1=function(){return e},e}function S_(){let e=xi();return S_=function(){return e},e}function v_(){let e=Fe();return v_=function(){return e},e}function sf(){let e=p1();return sf=function(){return e},e}var R0e=bg(),q0e=m1(),U0e=b_(),{file:V0e,traverseFast:$0e}=v_(),E1=S_()("babel:transform:file"),W0e=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,.*$/,E_=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function*K0e(e,t,r,n){if(r=`${r||""}`,n){if(n.type==="Program")n=V0e(n,[],[]);else if(n.type!=="File")throw new Error("AST root must be a Program or File node");t.cloneInputAst&&(n=(0,U0e.default)(n))}else n=yield*(0,q0e.default)(e,t,r);let s=null;if(t.inputSourceMap!==!1){if(typeof t.inputSourceMap=="object"&&(s=sf().fromObject(t.inputSourceMap)),!s){let i=T_(W0e,n);if(i)try{s=sf().fromComment("//"+i)}catch{E1("discarding unknown inline input sourcemap")}}if(!s){let i=T_(E_,n);if(typeof t.filename=="string"&&i)try{let a=E_.exec(i),o=x_().readFileSync(x1().resolve(x1().dirname(t.filename),a[1]),"utf8");s=sf().fromJSON(o)}catch(a){E1("discarding unknown file input sourcemap",a)}else i&&E1("discarding un-loadable file input sourcemap")}}return new R0e.default(t,{code:r,ast:n,inputMap:s})}function T1(e,t,r){return t&&(t=t.filter(({value:n})=>e.test(n)?(r=n,!1):!0)),[t,r]}function T_(e,t){let r=null;return $0e(t,n=>{[n.leadingComments,r]=T1(e,n.leadingComments,r),[n.innerComments,r]=T1(e,n.innerComments,r),[n.trailingComments,r]=T1(e,n.trailingComments,r)}),r}});var A_=x((v1,P1)=>{(function(e,t){typeof v1=="object"&&typeof P1!="undefined"?P1.exports=t(ac(),qy()):typeof define=="function"&&define.amd?define(["@jridgewell/trace-mapping","@jridgewell/gen-mapping"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.remapping=t(e.traceMapping,e.genMapping))})(v1,(function(e,t){"use strict";let r=s("",-1,-1,"",null),n=[];function s(f,b,T,w,I){return{source:f,line:b,column:T,name:w,content:I}}function i(f,b,T,w){return{map:f,sources:b,source:T,content:w}}function a(f,b){return i(f,b,"",null)}function o(f,b){return i(null,n,f,b)}function l(f){let b=new t.GenMapping({file:f.map.file}),{sources:T,map:w}=f,I=w.names,N=e.decodedMappings(w);for(let L=0;L<N.length;L++){let W=N[L];for(let U=0;U<W.length;U++){let H=W[U],pe=H[0],Ee=r;if(H.length!==1){let se=T[H[1]];if(Ee=u(se,H[2],H[3],H.length===5?I[H[4]]:""),Ee==null)continue}let{column:ce,line:qe,name:ze,content:Ot,source:J}=Ee;t.maybeAddSegment(b,L,pe,J,qe,ce,ze),J&&Ot!=null&&t.setSourceContent(b,J,Ot)}}return b}function u(f,b,T,w){if(!f.map)return s(f.source,b,T,w,f.content);let I=e.traceSegment(f.map,b,T);return I==null?null:I.length===1?r:u(f.sources[I[1]],I[2],I[3],I.length===5?f.map.names[I[4]]:w)}function c(f){return Array.isArray(f)?f:[f]}function p(f,b){let T=c(f).map(N=>new e.TraceMap(N,"")),w=T.pop();for(let N=0;N<T.length;N++)if(T[N].sources.length>1)throw new Error(`Transformation map ${N} must have exactly one source file.
Did you specify these with the most recent transformation maps first?`);let I=d(w,b,"",0);for(let N=T.length-1;N>=0;N--)I=a(T[N],[I]);return I}function d(f,b,T,w){let{resolvedSources:I,sourcesContent:N}=f,L=w+1,W=I.map((U,H)=>{let pe={importer:T,depth:L,source:U||"",content:void 0},Ee=b(pe.source,pe),{source:ce,content:qe}=pe;if(Ee)return d(new e.TraceMap(Ee,ce),b,ce,L);let ze=qe!==void 0?qe:N?N[H]:null;return o(ce,ze)});return a(f,W)}class m{constructor(b,T){let w=T.decodedMappings?t.toDecodedMap(b):t.toEncodedMap(b);this.version=w.version,this.file=w.file,this.mappings=w.mappings,this.names=w.names,this.sourceRoot=w.sourceRoot,this.sources=w.sources,T.excludeContent||(this.sourcesContent=w.sourcesContent)}toString(){return JSON.stringify(this)}}function g(f,b,T){let w=typeof T=="object"?T:{excludeContent:!!T,decodedMappings:!1},I=p(f,b);return new m(l(I),w)}return g}))});var w_=x(A1=>{"use strict";Object.defineProperty(A1,"__esModule",{value:!0});A1.default=H0e;function D_(){let e=A_();return D_=function(){return e},e}function H0e(e,t,r){let n=r.replace(/\\/g,"/"),s=!1,i=D_()(C_(t),(a,o)=>a===n&&!s?(s=!0,o.source="",C_(e)):null);return typeof e.sourceRoot=="string"&&(i.sourceRoot=e.sourceRoot),Object.assign({},i)}function C_(e){return Object.assign({},e,{sourceRoot:null})}});var __=x(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0});D1.default=X0e;function I_(){let e=p1();return I_=function(){return e},e}function C1(){let e=Sc();return C1=function(){return e},e}var G0e=w_();function X0e(e,t){let{opts:r,ast:n,code:s,inputMap:i}=t,{generatorOpts:a}=r;a.inputSourceMap=i==null?void 0:i.toObject();let o=[];for(let p of e)for(let d of p){let{generatorOverride:m}=d;if(m){let g=m(n,a,s,C1().default);g!==void 0&&o.push(g)}}let l;if(o.length===0)l=(0,C1().default)(n,a,s);else if(o.length===1){if(l=o[0],typeof l.then=="function")throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}else throw new Error("More than one plugin attempted to override codegen.");let{code:u,decodedMap:c=l.map}=l;return l.__mergedMap?c=Object.assign({},l.map):c&&(i?c=(0,G0e.default)(i.toObject(),c,a.sourceFileName):c=l.map),(r.sourceMaps==="inline"||r.sourceMaps==="both")&&(u+=`
`+I_().fromObject(c).toComment()),r.sourceMaps==="inline"&&(c=null),{outputCode:u,outputMap:c}}});var af=x(_1=>{"use strict";Object.defineProperty(_1,"__esModule",{value:!0});_1.run=tge;function I1(){let e=zt();return I1=function(){return e},e}var Y0e=o_(),J0e=f_(),z0e=c1(),Q0e=P_(),Z0e=__(),ege=mp(),w1=Xs();function*tge(e,t,r){let n=yield*(0,Q0e.default)(e.passes,(0,z0e.default)(e),t,r),s=n.opts;try{yield*rge(n,e.passes)}catch(u){var i;throw u.message=`${(i=s.filename)!=null?i:"unknown file"}: ${u.message}`,u.code||(u.code="BABEL_TRANSFORM_ERROR"),u}let a,o;try{s.code!==!1&&({outputCode:a,outputMap:o}=(0,Z0e.default)(e.passes,n))}catch(u){var l;throw u.message=`${(l=s.filename)!=null?l:"unknown file"}: ${u.message}`,u.code||(u.code="BABEL_GENERATE_ERROR"),u}return{metadata:n.metadata,options:s,ast:s.ast===!0?n.ast:null,code:a===void 0?null:a,map:o===void 0?null:o,sourceType:n.ast.program.sourceType,externalDependencies:(0,ege.flattenToSet)(e.externalDependencies)}}function*rge(e,t){let r=yield*(0,w1.isAsync)();for(let n of t){let s=[],i=[],a=[];for(let l of n.concat([(0,J0e.default)()])){let u=new Y0e.default(e,l.key,l.options,r);s.push([l,u]),i.push(u),a.push(l.visitor)}for(let[l,u]of s)l.pre&&(yield*(0,w1.maybeAsync)(l.pre,"You appear to be using an async plugin/preset, but Babel has been called synchronously").call(u,e));let o=I1().default.visitors.merge(a,i,e.opts.wrapPluginVisitorMethod);(0,I1().default)(e.ast,o,e.scope);for(let[l,u]of s)l.post&&(yield*(0,w1.maybeAsync)(l.post,"You appear to be using an async plugin/preset, but Babel has been called synchronously").call(u,e))}}});var O1=x(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.transformFile=age;kl.transformFileAsync=lge;kl.transformFileSync=oge;function N_(){let e=en();return N_=function(){return e},e}var nge=Za(),sge=af(),ige=ip(),N1=N_()(function*(e,t){let r=Object.assign({},t,{filename:e}),n=yield*(0,nge.default)(r);if(n===null)return null;let s=yield*ige.readFile(e,"utf8");return yield*(0,sge.run)(n,s)});function age(...e){N1.errback(...e)}function oge(...e){return N1.sync(...e)}function lge(...e){return N1.async(...e)}});var B_=x((K3e,O_)=>{O_.exports=function(t){return import(t)}});var k_=x((H3e,uge)=>{uge.exports={name:"@babel/preset-typescript",version:"7.27.1",description:"Babel preset for TypeScript.",repository:{type:"git",url:"https://github.com/babel/babel.git",directory:"packages/babel-preset-typescript"},license:"MIT",publishConfig:{access:"public"},main:"./lib/index.js",keywords:["babel-preset","typescript"],dependencies:{"@babel/helper-plugin-utils":"^7.27.1","@babel/helper-validator-option":"^7.27.1","@babel/plugin-syntax-jsx":"^7.27.1","@babel/plugin-transform-modules-commonjs":"^7.27.1","@babel/plugin-transform-typescript":"^7.27.1"},peerDependencies:{"@babel/core":"^7.0.0-0"},devDependencies:{"@babel/core":"^7.27.1","@babel/helper-plugin-test-runner":"^7.27.1"},homepage:"https://babel.dev/docs/en/next/babel-preset-typescript",bugs:"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen",engines:{node:">=6.9.0"},author:"The Babel Team (https://babel.dev/team)",type:"commonjs"}});var Ft=x(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.declare=F_;Fl.declarePreset=void 0;var B1={assertVersion:e=>t=>{pge(t,e.version)}};Object.assign(B1,{targets:()=>()=>({}),assumption:()=>()=>{},addExternalDependency:()=>()=>{}});function F_(e){return(t,r,n)=>{let s;for(let i of Object.keys(B1))t[i]||(s!=null||(s=cge(t)),s[i]=B1[i](s));return e(s!=null?s:t,r||{},n)}}var G3e=Fl.declarePreset=F_;function cge(e){let t=null;return typeof e.version=="string"&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),t&&(!hasOwnProperty.call(t,"version")||!hasOwnProperty.call(t,"transform")||!hasOwnProperty.call(t,"template")||!hasOwnProperty.call(t,"types"))&&(t=null)),Object.assign({},t,e)}function pge(e,t){if(typeof e=="number"){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if(typeof e!="string")throw new Error("Expec
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
`]):wr.template.expression.ast`
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
`}},kge={memoise(e,t){let{scope:r,node:n}=e,{computed:s,property:i}=n;if(!s)return;let a=r.maybeGenerateMemoised(i);a&&this.memoiser.set(i,a,t)},prop(e){let{computed:t,property:r}=e.node;return this.memoiser.has(r)?Er(this.memoiser.get(r)):t?Er(r):Y_(r.name)},_getPrototypeOfExpression(){let e=Er(this.getObjectRef()),t=this.isStatic||this.isPrivateMethod?e:Xi(e,to("prototype"));return Ss(this.file.addHelper("getPrototypeOf"),[t])},get(e){return this._get(e)},_get(e){let t=this._getPrototypeOfExpression();return Ss(this.file.addHelper("get"),[this.isDerivedConstructor?Yi([Ir(),t]):t,this.prop(e),Ir()])},set(e,t){let r=this._getPrototypeOfExpression();return Ss(this.file.addHelper("set"),[this.isDerivedConstructor?Yi([Ir(),r]):r,this.prop(e),t,Ir(),wr.types.booleanLiteral(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(e,t){return(0,ff.default)(this._get(e),Ir(),t,!1)},optionalCall(e,t){return(0,ff.default)(this._get(e),Er(Ir()),t,!0)},delete(e){return e.node.computed?Yi([Ss(this.file.addHelper("toPropertyKey"),[Er(e.node.property)]),wr.template.expression.ast`
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
`]):wr.template.expression.ast`
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
`}},Fge=Object.assign({},J_,{prop(e){let{property:t}=e.node;return this.memoiser.has(t)?Er(this.memoiser.get(t)):Er(t)},get(e){let{isStatic:t,getSuperRef:r}=this,{computed:n}=e.node,s=this.prop(e),i;if(t){var a;i=(a=r())!=null?a:Xi(to("Function"),to("prototype"))}else{var o;i=Xi((o=r())!=null?o:to("Object"),to("prototype"))}return Xi(i,s,n)},set(e,t){let{computed:r}=e.node,n=this.prop(e);return Oge("=",Xi(Ir(),n,r),t)},destructureSet(e){let{computed:t}=e.node,r=this.prop(e);return Xi(Ir(),r,t)},call(e,t){return(0,ff.default)(this.get(e),Ir(),t,!1)},optionalCall(e,t){return(0,ff.default)(this.get(e),Ir(),t,!0)}}),V1=class{constructor(t){var r;let n=t.methodPath;this.methodPath=n,this.isDerivedConstructor=n.isClassMethod({kind:"constructor"})&&!!t.superRef,this.isStatic=n.isObjectMethod()||n.node.static||(n.isStaticBlock==null?void 0:n.isStaticBlock()),this.isPrivateMethod=n.isPrivate()&&n.isMethod(),this.file=t.file,this.constantSuper=(r=t.constantSuper)!=null?r:t.isLoose,this.opts=t}getObjectRef(){return Er(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return Er(this.opts.superRef);if(this.opts.getSuperRef)return Er(this.opts.getSuperRef())}replace(){let{methodPath:t}=this;this.opts.refToPreserve&&t.traverse(Bge,{refName:this.opts.refToPreserve.name});let r=this.constantSuper?Fge:this.file.availableHelper("superPropSet")?J_:kge;X_.shouldSkip=n=>{if(n.parentPath===t&&(n.parentKey==="decorators"||n.parentKey==="key"))return!0},(0,Nge.default)(t,X_,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:r.get},r))}};ro.default=V1});var hf=x(W1=>{"use strict";Object.defineProperty(W1,"__esModule",{value:!0});W1.default=qge;var Lge=Fe(),{addComment:jge}=Lge,Mge="#__PURE__",Rge=({leadingComments:e})=>!!e&&e.some(t=>/[@#]__PURE__/.test(t.value));function qge(e){let t=e.node||e;Rge(t)||jge(t,"leading",Mge)}});var jl=x(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.isTransparentExprWrapper=K1;Ll.skipTransparentExprWrapperNodes=Yge;Ll.skipTransparentExprWrappers=Xge;var Uge=Fe(),{isParenthesizedExpression:Vge,isTSAsExpression:$ge,isTSNonNullExpression:Wge,isTSSatisfiesExpression:Kge,isTSTypeAssertion:Hge,isTypeCastExpression:Gge}=Uge;function K1(e){return $ge(e)||Kge(e)||Hge(e)||Wge(e)||Gge(e)||Vge(e)}function Xge(e){for(;K1(e.node);)e=e.get("expression");return e}function Yge(e){for(;K1(e);)e=e.expression;return e}});var G1=x(H1=>{"use strict";Object.defineProperty(H1,"__esModule",{value:!0});H1.assertFieldTransformed=Jge;function Jge(e){if(e.node.declare)throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.
If you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features:
- @babel/plugin-transform-class-properties
- @babel/plugin-transform-private-methods
- @babel/plugin-proposal-decorators`)}});var Q1=x(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.buildCheckInRHS=gf;ti.buildFieldsInitNodes=Tbe;ti.buildPrivateNamesMap=rbe;ti.buildPrivateNamesNodes=nbe;ti.privateNameVisitorFactory=z1;ti.transformPrivateNamesUsage=ube;var k=vt(),rN=zt(),zge=df(),Qge=R1(),z_=U1(),Zge=hf(),ebe=jl(),tbe=G1();_r=e=>e.availableHelper("classPrivateFieldGet2");var _r;function rbe(e,t,r,n){let s=new Map,i;for(let a of r)if(a.isPrivate()){let{name:o}=a.node.key.id,l=s.get(o);if(!l){let u=!a.isProperty(),c=a.node.static,p=!1,d;!t&&_r(n)&&u&&!c?(p=!!i,i!=null||(i=a.scope.generateUidIdentifier(`${e}_brand`)),d=i):d=a.scope.generateUidIdentifier(o),l={id:d,static:c,method:u,initAdded:p},s.set(o,l)}if(a.isClassPrivateMethod())if(a.node.kind==="get"){let{body:u}=a.node.body,c;u.length===1&&k.types.isReturnStatement(c=u[0])&&k.types.isCallExpression(c=c.argument)&&c.arguments.length===1&&k.types.isThisExpression(c.arguments[0])&&k.types.isIdentifier(c=c.callee)?(l.getId=k.types.cloneNode(c),l.getterDeclared=!0):l.getId=a.scope.generateUidIdentifier(`get_${o}`)}else if(a.node.kind==="set"){let{params:u}=a.node,{body:c}=a.node.body,p;c.length===1&&k.types.isExpressionStatement(p=c[0])&&k.types.isCallExpression(p=p.expression)&&p.arguments.length===2&&k.types.isThisExpression(p.arguments[0])&&k.types.isIdentifier(p.arguments[1],{name:u[0].name})&&k.types.isIdentifier(p=p.callee)?(l.setId=k.types.cloneNode(p),l.setterDeclared=!0):l.setId=a.scope.generateUidIdentifier(`set_${o}`)}else a.node.kind==="method"&&(l.methodId=a.scope.generateUidIdentifier(o));s.set(o,l)}return s}function nbe(e,t,r,n){let s=[],i=new Set;for(let[a,o]of e){let{static:l,method:u,getId:c,setId:p}=o,d=c||p,m=k.types.cloneNode(o.id),g;if(t)g=k.types.callExpression(n.addHelper("classPrivateFieldLooseKey"),[k.types.stringLiteral(a)]);else if(r)g=k.types.callExpression(k.types.identifier("Symbol"),[k.types.stringLiteral(a)]);else if(!l){if(i.has(m.name))continue;i.add(m.name),g=k.types.newExpression(k.types.identifier(u&&(!d||_r(n))?"WeakSet":"WeakMap"),[])}g&&(r||(0,Zge.default)(g),s.push(k.template.statement.ast`var ${m} = ${g}`))}return s}function z1(e){let t=rN.visitors.environmentVisitor(Object.assign({},e)),r=Object.assign({},e,{Class(n){let{privateNamesMap:s}=this,i=n.get("body.body"),a=new Map(s),o=[];for(let l of i){if(!l.isPrivate())continue;let{name:u}=l.node.key.id;a.delete(u),o.push(u)}o.length&&(n.get("body").traverse(t,Object.assign({},this,{redeclared:o})),n.traverse(r,Object.assign({},this,{privateNamesMap:a})),n.skipKey("body"))}});return r}var sbe=z1({PrivateName(e,{noDocumentAll:t}){let{privateNamesMap:r,redeclared:n}=this,{node:s,parentPath:i}=e;if(!i.isMemberExpression({property:s})&&!i.isOptionalMemberExpression({property:s}))return;let{name:a}=s.id;r.has(a)&&(n!=null&&n.includes(a)||this.handle(i,t))}});function nN(e,t,r){for(;(n=t)!=null&&n.hasBinding(e)&&!t.bindingIdentifierEquals(e,r);){var n;t.rename(e),t=t.parent}}function gf(e,t,r){return r||!(t.availableHelper!=null&&t.availableHelper("checkInRHS"))?e:k.types.callExpression(t.addHelper("checkInRHS"),[e])}var ibe=z1({BinaryExpression(e,{file:t}){let{operator:r,left:n,right:s}=e.node;if(r!=="in"||!k.types.isPrivateName(n))return;let{privateFieldsAsProperties:i,privateNamesMap:a,redeclared:o}=this,{name:l}=n.id;if(!a.has(l)||o!=null&&o.includes(l))return;if(nN(this.classRef.name,e.scope,this.innerBinding),i){let{id:p}=a.get(l);e.replaceWith(k.template.expression.ast`
Object.prototype.hasOwnProperty.call(${gf(s,t)}, ${k.types.cloneNode(p)})
`);return}let{id:u,static:c}=a.get(l);if(c){e.replaceWith(k.template.expression.ast`${gf(s,t)} === ${k.types.cloneNode(this.classRef)}`);return}e.replaceWith(k.template.expression.ast`${k.types.cloneNode(u)}.has(${gf(s,t)})`)}});function mf(e,t){return k.types.callExpression(e.addHelper("readOnlyError"),[k.types.stringLiteral(`#${t}`)])}function abe(e,t){return e.availableHelper("writeOnlyError")?k.types.callExpression(e.addHelper("writeOnlyError"),[k.types.stringLiteral(`#${t}`)]):(console.warn("@babel/helpers is outdated, update it to silence this warning."),k.types.buildUndefinedNode())}function X1(e,t){return t?e:k.types.memberExpression(e,k.types.identifier("_"))}function Q_(e){return function(t){return k.types.inherits(e.apply(this,arguments),t.node)}}var obe={memoise(e,t){let{scope:r}=e,{object:n}=e.node,s=r.maybeGenerateMemoised(n);s&&this.memoiser.set(n,s,t)},receiver(e){let{object:t}=e.node;return this.memoiser.has(t)?k.types.cloneNode(this.memoiser.get(t)):k.types.cloneNode(t)},get:Q_(function(e){let{classRef:t,privateNamesMap:r,file:n,innerBinding:s,noUninitializedPrivateFieldAccess:i}=this,a=e.node.property,{name:o}=a.id,{id:l,static:u,method:c,methodId:p,getId:d,setId:m}=r.get(o),g=d||m,f=b=>k.types.inherits(k.types.cloneNode(b),a);if(u){if(nN(t.name,e.scope,s),!_r(n)){let w=c&&!g?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return k.types.callExpression(n.addHelper(w),[this.receiver(e),k.types.cloneNode(t),f(l)])}let b=this.receiver(e),T=k.types.isIdentifier(b)&&b.name===t.name;if(!c)return X1(T?f(l):k.types.callExpression(n.addHelper("assertClassBrand"),[k.types.cloneNode(t),b,f(l)]),i);if(d)return T?k.types.callExpression(f(d),[b]):k.types.callExpression(n.addHelper("classPrivateGetter"),[k.types.cloneNode(t),b,f(d)]);if(m){let w=k.types.buildUndefinedNode();return T?w:k.types.sequenceExpression([k.types.callExpression(n.addHelper("assertClassBrand"),[k.types.cloneNode(t),b]),w])}return T?f(l):k.types.callExpression(n.addHelper("assertClassBrand"),[k.types.cloneNode(t),b,f(l)])}return c?g?d?_r(n)?k.types.callExpression(n.addHelper("classPrivateGetter"),[k.types.cloneNode(l),this.receiver(e),f(d)]):k.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),f(l)]):k.types.sequenceExpression([this.receiver(e),abe(n,o)]):_r(n)?k.types.callExpression(n.addHelper("assertClassBrand"),[k.types.cloneNode(l),this.receiver(e),f(p)]):k.types.callExpression(n.addHelper("classPrivateMethodGet"),[this.receiver(e),k.types.cloneNode(l),f(p)]):_r(n)?k.types.callExpression(n.addHelper("classPrivateFieldGet2"),[f(l),this.receiver(e)]):k.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),f(l)])}),boundGet(e){return this.memoise(e,1),k.types.callExpression(k.types.memberExpression(this.get(e),k.types.identifier("bind")),[this.receiver(e)])},set:Q_(function(e,t){let{classRef:r,privateNamesMap:n,file:s,noUninitializedPrivateFieldAccess:i}=this,a=e.node.property,{name:o}=a.id,{id:l,static:u,method:c,setId:p,getId:d}=n.get(o),m=d||p,g=f=>k.types.inherits(k.types.cloneNode(f),a);if(u){if(!_r(s)){let T=c&&!m?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return k.types.callExpression(s.addHelper(T),[this.receiver(e),k.types.cloneNode(r),g(l),t])}let f=this.receiver(e),b=k.types.isIdentifier(f)&&f.name===r.name;if(c&&!p){let T=mf(s,o);return b?k.types.sequenceExpression([t,T]):k.types.sequenceExpression([t,k.types.callExpression(s.addHelper("assertClassBrand"),[k.types.cloneNode(r),f]),mf(s,o)])}return p?b?k.types.callExpression(k.types.cloneNode(p),[f,t]):k.types.callExpression(s.addHelper("classPrivateSetter"),[k.types.cloneNode(r),g(p),f,t]):k.types.assignmentExpression("=",X1(g(l),i),b?t:k.types.callExpression(s.addHelper("assertClassBrand"),[k.types.cloneNode(r),f,t]))}return c?p?_r(s)?k.types.callExpression(s.addHelper("classPrivateSetter"),[k.types.cloneNode(l),g(p),this.receiver(e),t]):k.types.callExpression(s.addHelper("classPrivateFieldSet"),[this.receiver(e),g(l),t]):k.types.sequenceExpression([this.receiver(e),t,mf(s,o)]):_r(s)?k.types.cal
Object.defineProperty(${e}, ${k.types.cloneNode(n)}, {
// configurable is false by default
// enumerable is false by default
writable: true,
value: ${s}
});
`,t)}function cbe(e,t,r,n){let{id:s}=r.get(t.node.key.id.name),i=t.node.value||t.scope.buildUndefinedNode();if(!n.availableHelper("classPrivateFieldInitSpec"))return hr(k.template.statement.ast`${k.types.cloneNode(s)}.set(${e}, {
// configurable is always false for private elements
// enumerable is always false for private elements
writable: true,
value: ${i},
})`,t);let a=n.addHelper("classPrivateFieldInitSpec");return J1(hr(k.types.expressionStatement(k.types.callExpression(a,[k.types.thisExpression(),J1(k.types.cloneNode(s),t.node.key),_r(n)?i:k.template.expression.ast`{ writable: true, value: ${i} }`])),t),t.node)}function pbe(e,t,r){let n=t.get(e.node.key.id.name),s=r?e.node.value:k.template.expression.ast`{
_: ${e.node.value||k.types.buildUndefinedNode()}
}`;return hr(k.types.variableDeclaration("var",[k.types.variableDeclarator(k.types.cloneNode(n.id),s)]),e)}Y1=function(e,t){let r=t.get(e.node.key.id.name),{id:n,getId:s,setId:i,initAdded:a}=r,o=s||i;if(!e.isProperty()&&(a||!o))return;if(o)return t.set(e.node.key.id.name,Object.assign({},r,{initAdded:!0})),hr(k.template.statement.ast`
var ${k.types.cloneNode(n)} = {
// configurable is false by default
// enumerable is false by default
// writable is false by default
get: ${s?s.name:e.scope.buildUndefinedNode()},
set: ${i?i.name:e.scope.buildUndefinedNode()}
}
`,e);let l=e.node.value||e.scope.buildUndefinedNode();return hr(k.template.statement.ast`
var ${k.types.cloneNode(n)} = {
// configurable is false by default
// enumerable is false by default
writable: true,
value: ${l}
};
`,e)};var Y1;function fbe(e,t,r){let n=r.get(t.node.key.id.name),{methodId:s,id:i,getId:a,setId:o,initAdded:l}=n;if(l)return;if(s)return hr(k.template.statement.ast`
Object.defineProperty(${e}, ${i}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
value: ${s.name}
});
`,t);if(a||o)return r.set(t.node.key.id.name,Object.assign({},n,{initAdded:!0})),hr(k.template.statement.ast`
Object.defineProperty(${e}, ${i}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
get: ${a?a.name:t.scope.buildUndefinedNode()},
set: ${o?o.name:t.scope.buildUndefinedNode()}
});
`,t)}function dbe(e,t,r,n){let s=r.get(t.node.key.id.name);if(!s.initAdded)return!_r(n)&&(s.getId||s.setId)?hbe(e,t,r,n):mbe(e,t,r,n)}function hbe(e,t,r,n){let s=r.get(t.node.key.id.name),{id:i,getId:a,setId:o}=s;if(r.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),!n.availableHelper("classPrivateFieldInitSpec"))return hr(k.template.statement.ast`
${i}.set(${e}, {
get: ${a?a.name:t.scope.buildUndefinedNode()},
set: ${o?o.name:t.scope.buildUndefinedNode()}
});
`,t);let l=n.addHelper("classPrivateFieldInitSpec");return J1(hr(k.template.statement.ast`${l}(
${k.types.thisExpression()},
${k.types.cloneNode(i)},
{
get: ${a?a.name:t.scope.buildUndefinedNode()},
set: ${o?o.name:t.scope.buildUndefinedNode()}
},
)`,t),t.node)}function mbe(e,t,r,n){let s=r.get(t.node.key.id.name),{id:i}=s;if(!n.availableHelper("classPrivateMethodInitSpec"))return hr(k.template.statement.ast`${i}.add(${e})`,t);let a=n.addHelper("classPrivateMethodInitSpec");return hr(k.template.statement.ast`${a}(
${k.types.thisExpression()},
${k.types.cloneNode(i)}
)`,t)}function eN(e,t){let{key:r,computed:n}=t.node,s=t.node.value||t.scope.buildUndefinedNode();return hr(k.types.expressionStatement(k.types.assignmentExpression("=",k.types.memberExpression(e,r,n||k.types.isLiteral(r)),s)),t)}function tN(e,t,r){let{key:n,computed:s}=t.node,i=t.node.value||t.scope.buildUndefinedNode();return hr(k.types.expressionStatement(k.types.callExpression(r.addHelper("defineProperty"),[e,s||k.types.isLiteral(n)?n:k.types.stringLiteral(n.name),i])),t)}function ybe(e,t,r,n){let s=n.get(t.node.key.id.name),{id:i,methodId:a,getId:o,setId:l,initAdded:u}=s;return u?void 0:o||l?(n.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),hr(k.template.statement.ast`
Object.defineProperty(${e}, ${i}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
get: ${o?o.name:t.scope.buildUndefinedNode()},
set: ${l?l.name:t.scope.buildUndefinedNode()}
})
`,t)):hr(k.template.statement.ast`
Object.defineProperty(${e}, ${i}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
value: ${a.name}
});
`,t)}function yf(e,t,r,n=!1){let s=r.get(t.node.key.id.name),{id:i,methodId:a,getId:o,setId:l,getterDeclared:u,setterDeclared:c,static:p}=s,{params:d,body:m,generator:g,async:f}=t.node,b=o&&d.length===0,T=l&&d.length>0;if(b&&u||T&&c)return r.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),null;if(_r(e)&&(b||T)&&!n){let I=t.get("body").scope,N=I.generateUidIdentifier("this"),L={thisRef:N,argumentsPath:[]};if(t.traverse(sN,L),L.argumentsPath.length){let W=I.generateUidIdentifier("arguments");I.push({id:W,init:k.template.expression.ast`[].slice.call(arguments, 1)`});for(let U of L.argumentsPath)U.replaceWith(k.types.cloneNode(W))}d.unshift(k.types.cloneNode(N))}let w=a;return b?(r.set(t.node.key.id.name,Object.assign({},s,{getterDeclared:!0,initAdded:!0})),w=o):T?(r.set(t.node.key.id.name,Object.assign({},s,{setterDeclared:!0,initAdded:!0})),w=l):p&&!n&&(w=i),hr(k.types.functionDeclaration(k.types.cloneNode(w),d,m,g,f),t)}var sN=rN.visitors.environmentVisitor({Identifier(e,t){t.argumentsPath&&e.node.name==="arguments"&&t.argumentsPath.push(e)},UnaryExpression(e){let{node:t}=e;if(t.operator==="delete"){let r=(0,ebe.skipTransparentExprWrapperNodes)(t.argument);k.types.isThisExpression(r)&&e.replaceWith(k.types.booleanLiteral(!0))}},ThisExpression(e,t){t.needsClassRef=!0,e.replaceWith(k.types.cloneNode(t.thisRef))},MetaProperty(e){let{node:t,scope:r}=e;t.meta.name==="new"&&t.property.name==="target"&&e.replaceWith(r.buildUndefinedNode())}}),gbe={ReferencedIdentifier(e,t){e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)&&(t.needsClassRef=!0,e.node.name=t.thisRef.name)}};function bbe(e,t,r){var n;let s={thisRef:t,needsClassRef:!1,innerBinding:r};return e.isMethod()||e.traverse(sN,s),r!=null&&(n=s.thisRef)!=null&&n.name&&s.thisRef.name!==r.name&&e.traverse(gbe,s),s.needsClassRef}function Ebe({key:e,computed:t}){return e.type==="Identifier"?!t&&(e.name==="name"||e.name==="length"):e.type==="StringLiteral"?e.value==="name"||e.value==="length":!1}function hr(e,t){return k.types.inheritLeadingComments(e,t.node),k.types.inheritInnerComments(e,t.node),e}function J1(e,t){return e.start=t.start,e.end=t.end,e.loc=t.loc,e}function Tbe(e,t,r,n,s,i,a,o,l,u){let c=0,p,d=[],m=[],g=!1,f=[],b=null,T=k.types.isIdentifier(t)?()=>t:()=>(p!=null||(p=r[0].scope.generateUidIdentifierBasedOnNode(t)),p),w=e!=null?e:r[0].scope.generateUidIdentifier((u==null?void 0:u.name)||"Class");e!=null||(e=k.types.cloneNode(u));for(let I of r){I.isClassProperty()&&tbe.assertFieldTransformed(I);let N=!(k.types.isStaticBlock!=null&&k.types.isStaticBlock(I.node))&&I.node.static,L=!N,W=I.isPrivate(),U=!W,H=I.isProperty(),pe=!H,Ee=I.isStaticBlock==null?void 0:I.isStaticBlock();switch(N&&(c|=1),(N||pe&&W||Ee)&&(new zge.default({methodPath:I,constantSuper:l,file:s,refToPreserve:u,getSuperRef:T,getObjectRef(){return c|=2,N||Ee?w:k.types.memberExpression(w,k.types.identifier("prototype"))}}).replace(),bbe(I,w,u)&&(c|=2)),g=!1,!0){case Ee:{let ce=I.node.body;ce.length===1&&k.types.isExpressionStatement(ce[0])?d.push(hr(ce[0],I)):d.push(k.types.inheritsComments(k.template.statement.ast`(() => { ${ce} })()`,I.node));break}case(N&&W&&H&&a):d.push(Z_(k.types.cloneNode(e),I,n));break;case(N&&W&&H&&!a):_r(s)?d.push(pbe(I,n,o)):d.push(Y1(I,n));break;case(N&&U&&H&&i):if(!Ebe(I.node)){d.push(eN(k.types.cloneNode(e),I));break}case(N&&U&&H&&!i):d.push(tN(k.types.cloneNode(e),I,s));break;case(L&&W&&H&&a):m.push(Z_(k.types.thisExpression(),I,n));break;case(L&&W&&H&&!a):m.push(cbe(k.types.thisExpression(),I,n,s));break;case(L&&W&&pe&&a):m.unshift(fbe(k.types.thisExpression(),I,n)),f.push(yf(s,I,n,a));break;case(L&&W&&pe&&!a):m.unshift(dbe(k.types.thisExpression(),I,n,s)),f.push(yf(s,I,n,a));break;case(N&&W&&pe&&!a):_r(s)||d.unshift(Y1(I,n)),f.push(yf(s,I,n,a));break;case(N&&W&&pe&&a):d.unshift(ybe(k.types.cloneNode(e),I,s,n)),f.push(yf(s,I,n,a));break;case(L&&U&&H&&i):m.push(eN(k.types.thisExpression(),I));break;case(L&&U&&H&&!i):g=!0,m.push(tN(k.types.thisExpression(),I,s));break;default:throw new Error("Unreachable.")}}return c&2&&u!=null&&(b=k.types.expressionS
function () {
return this.${C.types.cloneNode(e)};
}
`,C.template.expression.ast`
function (value) {
this.${C.types.cloneNode(e)} = value;
}
`]:[C.template.expression.ast`
o => o.${C.types.cloneNode(e)}
`,C.template.expression.ast`
(o, v) => o.${C.types.cloneNode(e)} = v
`]}function aE(e){if(e=(0,ri.skipTransparentExprWrappers)(e),e.isSequenceExpression()){let t=e.get("expressions");return aE(t[t.length-1])}return e}function Nbe(e){let t=aE(e);if(t.isConstantExpression())return C.types.cloneNode(e.node);if(t.isIdentifier()&&e.scope.hasUid(t.node.name))return C.types.cloneNode(e.node);if(t.isAssignmentExpression()&&t.get("left").isIdentifier())return C.types.cloneNode(t.node.left);throw new Error(`Internal Error: the computed key ${e.toString()} has not yet been memoised.`)}function Rl(e,t){let r=t.get("key");r.isSequenceExpression()?e.push(...r.node.expressions):e.push(r.node),r.replaceWith(si(e))}function Obe(e,t){let r=t.get("key"),n=aE(r);if(n.isConstantExpression())Rl(e,t);else{let s=r.scope.parent,i=(0,bf.memoiseComputedKey)(n.node,s,s.generateUid("computedKey"));if(!i)Rl(e,t);else{let a=[...e,C.types.cloneNode(i.left)],o=n.parentPath;o.isSequenceExpression()?o.pushContainer("expressions",a):n.replaceWith(si([C.types.cloneNode(i),...a]))}}}function tE(e,t){let r=t.get("value");r.node?e.push(r.node):e.length>0&&(e[e.length-1]=C.types.unaryExpression("void",e[e.length-1])),r.replaceWith(si(e))}function Bbe(e,t){t.unshiftContainer("body",C.types.expressionStatement(si(e)))}function kbe(e,t){t.node.body.body.unshift(C.types.expressionStatement(si(e)))}function pN(e,t){return C.types.isCallExpression(e)&&C.types.isIdentifier(e.callee,{name:t.name})}function Fbe(e,t){if(t){if(e.length>=2&&pN(e[1],t)){let r=C.types.callExpression(C.types.cloneNode(t),[e[0]]);e.splice(0,2,r)}e.length>=2&&C.types.isThisExpression(e[e.length-1])&&pN(e[e.length-2],t)&&e.splice(e.length-1,1)}return si(e)}function Lbe(e,t,r){t.traverse({CallExpression:{exit(n){if(!n.get("callee").isSuper())return;let s=[n.node,...e.map(i=>C.types.cloneNode(i))];n.isCompletionRecord()&&s.push(C.types.thisExpression()),n.replaceWith(Fbe(s,r)),n.skip()}},ClassMethod(n){n.node.kind==="constructor"&&n.skip()}})}function fN(e,t){let r=[C.types.expressionStatement(si(e))];return t&&r.unshift(C.types.expressionStatement(C.types.callExpression(C.types.super(),[C.types.spreadElement(C.types.identifier("args"))]))),C.types.classMethod("constructor",C.types.identifier("constructor"),t?[C.types.restElement(C.types.identifier("args"))]:[],C.types.blockStatement(r))}function dN(e){return C.types.staticBlock([C.types.expressionStatement(si(e))])}var Ji=0,ni=1,jbe=2,EN=3,Ef=4,Mbe=5,Rbe=8,qbe=16;function Ube(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return Ji;case"ClassAccessorProperty":return ni;case"ClassMethod":case"ClassPrivateMethod":return e.node.kind==="get"?EN:e.node.kind==="set"?Ef:jbe}}function Vbe(e){return[...e.filter(t=>t.isStatic&&t.kind>=ni&&t.kind<=Ef),...e.filter(t=>!t.isStatic&&t.kind>=ni&&t.kind<=Ef),...e.filter(t=>t.isStatic&&t.kind===Ji),...e.filter(t=>!t.isStatic&&t.kind===Ji)]}function hN(e,t,r){let n=e.length,s=t.some(Boolean),i=[];for(let a=0;a<n;a++)(r==="2023-11"||r==="2023-05")&&s&&i.push(t[a]||C.types.unaryExpression("void",C.types.numericLiteral(0))),i.push(e[a].expression);return{haveThis:s,decs:i}}function $be(e,t){return C.types.arrayExpression(e.map(r=>{let n=r.kind;return r.isStatic&&(n+=t==="2023-11"||t==="2023-05"?Rbe:Mbe),r.decoratorsHaveThis&&(n+=qbe),C.types.arrayExpression([r.decoratorsArray,C.types.numericLiteral(n),r.name,...r.privateMethods||[]])}))}function Wbe(e){let t=[];for(let r of e){let{locals:n}=r;Array.isArray(n)?t.push(...n):n!==void 0&&t.push(n)}return t}function Kbe(e,t,r,n,s,i){t.insertAfter(C.types.classPrivateMethod("get",C.types.cloneNode(r),[],C.types.blockStatement([C.types.returnStatement(C.types.callExpression(C.types.cloneNode(n),e==="2023-11"&&i?[]:[C.types.thisExpression()]))]),i)),t.insertAfter(C.types.classPrivateMethod("set",C.types.cloneNode(r),[C.types.identifier("v")],C.types.blockStatement([C.types.expressionStatement(C.types.callExpression(C.types.cloneNode(s),e==="2023-11"&&i?[C.types.identifier("v")]:[C.types.thisExpression(),C.types.identifier("v")]))]),i))}function Hbe(e,t,r,n){let s,i;e.node.kind==="set"?(s=[C.types.identifier("v")],i=
class extends ${t.addHelper("identity")} {}
`;F.body.body=[C.types.classProperty(C.types.toExpression(gt),void 0,void 0,void 0,!0,!0),...R];let Q=[],ie=C.types.newExpression(F,[]);Te.length>0&&Q.push(...Te),ut&&(pt=!0,Q.push(ut)),Q.length>0?(Q.unshift(C.types.callExpression(C.types.super(),[C.types.cloneNode(ce)])),F.body.body.push(fN(Q,!1))):ie.arguments.push(C.types.cloneNode(ce));let[ve]=e.replaceWith(ie);Ke=ve.get("callee").get("body").get("body.0.key")}}!pt&&ut&&e.node.body.body.push(C.types.staticBlock([C.types.expressionStatement(ut)]));let{superClass:Nr}=gt;if(Nr&&(a==="2023-11"||a==="2023-05")){let R=e.scope.maybeGenerateMemoised(Nr);R&&(gt.superClass=C.types.assignmentExpression("=",R,Nr),Nr=R)}let Sr=C.types.staticBlock([]);gt.body.body.unshift(Sr);let sr=Sr.body;if(j.length>0){let R=Ke.get("body.body"),F;for(let Q of R)if((Q.isClassProperty()||Q.isClassMethod())&&Q.node.kind!=="constructor"){F=Q;break}F!=null?(zbe(F),Rl(j,F)):(gt.body.body.unshift(C.types.classProperty(C.types.sequenceExpression([...j,C.types.stringLiteral("_")]),void 0,void 0,void 0,!0,!0)),sr.push(C.types.expressionStatement(C.types.unaryExpression("delete",C.types.memberExpression(C.types.thisExpression(),C.types.identifier("_")))))),j=[]}if(sr.push(C.types.expressionStatement(e1e(we,Ve,De,G!=null?G:C.types.arrayExpression(V),C.types.numericLiteral(se),de?re:null,N,C.types.cloneNode(Nr),t,a))),w&&sr.push(C.types.expressionStatement(C.types.callExpression(C.types.cloneNode(w),[C.types.thisExpression()]))),Dt.length>0&&sr.push(...Dt.map(R=>C.types.expressionStatement(R))),e.insertBefore(g.map(R=>C.types.expressionStatement(R))),J)if(!f.getBinding(ce.name).constantViolations.length)e.insertBefore(C.types.variableDeclaration("let",[C.types.variableDeclarator(C.types.cloneNode(ce))]));else{let F=f.generateUidIdentifier("t"+ce.name),Q=ce;e.replaceWithMultiple([C.types.variableDeclaration("let",[C.types.variableDeclarator(C.types.cloneNode(Q)),C.types.variableDeclarator(F)]),C.types.blockStatement([C.types.variableDeclaration("let",[C.types.variableDeclarator(C.types.cloneNode(ce))]),e.node,C.types.expressionStatement(C.types.assignmentExpression("=",C.types.cloneNode(F),C.types.cloneNode(ce)))]),C.types.expressionStatement(C.types.assignmentExpression("=",C.types.cloneNode(Q),C.types.cloneNode(F)))])}return pe.size>0&&Qbe(e,pe),e.scope.crawl(),e}function e1e(e,t,r,n,s,i,a,o,l,u){let c,p,d=[a?TN(l,a):C.types.thisExpression(),n,r];{if(u!=="2023-11"&&d.splice(1,2,r,n),u==="2021-12"||u==="2022-03"&&!l.availableHelper("applyDecs2203R"))return c=C.types.arrayPattern([...e,...t]),p=C.types.callExpression(l.addHelper(u==="2021-12"?"applyDecs":"applyDecs2203"),d),C.types.assignmentExpression("=",c,p);u==="2022-03"?p=C.types.callExpression(l.addHelper("applyDecs2203R"),d):u==="2023-01"?(i&&d.push(rE(i)),p=C.types.callExpression(l.addHelper("applyDecs2301"),d)):u==="2023-05"&&((i||o||s.value!==0)&&d.push(s),i?d.push(rE(i)):o&&d.push(C.types.unaryExpression("void",C.types.numericLiteral(0))),o&&d.push(o),p=C.types.callExpression(l.addHelper("applyDecs2305"),d))}return u==="2023-11"&&((i||o||s.value!==0)&&d.push(s),i?d.push(rE(i)):o&&d.push(C.types.unaryExpression("void",C.types.numericLiteral(0))),o&&d.push(o),p=C.types.callExpression(l.addHelper("applyDecs2311"),d)),e.length>0?t.length>0?c=C.types.objectPattern([C.types.objectProperty(C.types.identifier("e"),C.types.arrayPattern(e)),C.types.objectProperty(C.types.identifier("c"),C.types.arrayPattern(t))]):(c=C.types.arrayPattern(e),p=C.types.memberExpression(p,C.types.identifier("e"),!1,!1)):(c=C.types.arrayPattern(t),p=C.types.memberExpression(p,C.types.identifier("c"),!1,!1)),C.types.assignmentExpression("=",c,p)}function t1e(e){return e.type==="Identifier"?e.name==="__proto__":e.value==="__proto__"}function ql(e){return e.decorators&&e.decorators.length>0}function r1e(e){switch(e.type){case"ClassAccessorProperty":return!0;case"ClassMethod":case"ClassProperty":case"ClassPrivateMethod":case"ClassPrivateProperty":return ql(e);default:return!1}}function n1e(e){return ql(e)||e.body.body.some(r1e)}function s1e(e,t){function r(n,s,i){switch(s.typ
${p1e(n)}(
${p||Ct.types.nullLiteral()},
function (${a}, ${u?Ct.types.cloneNode(c):null}) {
${s}
return { F: ${Ct.types.cloneNode(s.id)}, d: ${d} };
},
${u}
)
`;l||m.arguments[1].body.directives.push(Ct.types.directive(Ct.types.directiveLiteral("use strict")));let g=m,f="arguments.1.body.body.0";return o&&(g=Ct.template.statement.ast`let ${e} = ${m}`,f="declarations.0.init."+f),{instanceNodes:[Ct.template.statement.ast`
${Ct.types.cloneNode(a)}(this)
`],wrapClass(b){return b.replaceWith(g),b.get(f)}}}});var CN=x(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.FEATURES=void 0;zi.enableFeature=d1e;zi.isLoose=pE;zi.shouldTransform=h1e;var vN=oE(),vs=zi.FEATURES=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32}),PN=new Map([[vs.fields,"@babel/plugin-transform-class-properties"],[vs.privateMethods,"@babel/plugin-transform-private-methods"],[vs.privateIn,"@babel/plugin-transform-private-property-in-object"]]),uE="@babel/plugin-class-features/featuresKey",Vl="@babel/plugin-class-features/looseKey";ii="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";var ii;cE=function(e,t){return!!(e.get(ii)&t)};var cE;function d1e(e,t,r){(!Ps(e,t)||cE(e,t))&&(e.set(uE,e.get(uE)|t),r==="#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"?(Tf(e,t,!0),e.set(ii,e.get(ii)|t)):r==="#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"?(Tf(e,t,!1),e.set(ii,e.get(ii)|t)):Tf(e,t,r));let n;for(let[i,a]of PN){if(!Ps(e,i)||cE(e,i))continue;let o=pE(e,i);if(n===!o)throw new Error(`'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled).
`+AN(e));n=o;var s=a}if(n!==void 0)for(let[i,a]of PN)Ps(e,i)&&pE(e,i)!==n&&(Tf(e,i,n),console.warn(`Though the "loose" option was set to "${!n}" in your @babel/preset-env config, it will not be used for ${a} since the "loose" mode option was set to "${n}" for ${s}.
The "loose" option must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
["${a}", { "loose": ${n} }]
to the "plugins" section of your Babel config.
`+AN(e)))}function AN(e){let{filename:t}=e.opts;return(!t||t==="unknown")&&(t="[name of the input file]"),`If you already set the same 'loose' mode for these plugins in your config, it's possible that they are enabled multiple times with different options.
You can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:
npx cross-env BABEL_SHOW_CONFIG_FOR=${t} <your build command>
See https://babeljs.io/docs/configuration#print-effective-configs for more info.`}function Ps(e,t){return!!(e.get(uE)&t)}function pE(e,t){return!!(e.get(Vl)&t)}function Tf(e,t,r){r?e.set(Vl,e.get(Vl)|t):e.set(Vl,e.get(Vl)&~t),e.set(ii,e.get(ii)&~t)}function h1e(e,t){let r=null,n=null,s=null,i=null,a=null;(0,vN.hasOwnDecorators)(e.node)&&(r=e.get("decorators.0"));for(let o of e.get("body.body"))!r&&(0,vN.hasOwnDecorators)(o.node)&&(r=o.get("decorators.0")),!n&&o.isClassProperty()&&(n=o),!s&&o.isClassPrivateProperty()&&(s=o),!i&&o.isClassPrivateMethod!=null&&o.isClassPrivateMethod()&&(i=o),!a&&o.isStaticBlock!=null&&o.isStaticBlock()&&(a=o);if(r&&s)throw s.buildCodeFrameError("Private fields in decorated classes are not supported yet.");if(r&&i)throw i.buildCodeFrameError("Private methods in decorated classes are not supported yet.");if(r&&!Ps(t,vs.decorators))throw e.buildCodeFrameError(`Decorators are not enabled.
If you are using ["@babel/plugin-proposal-decorators", { "version": "legacy" }], make sure it comes *before* "@babel/plugin-transform-class-properties" and enable loose mode, like so:
["@babel/plugin-proposal-decorators", { "version": "legacy" }]
["@babel/plugin-transform-class-properties", { "loose": true }]`);if(i&&!Ps(t,vs.privateMethods))throw i.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-transform-private-methods` to your configuration.");if((n||s)&&!Ps(t,vs.fields)&&!Ps(t,vs.privateMethods))throw e.buildCodeFrameError("Class fields are not enabled. Please add `@babel/plugin-transform-class-properties` to your configuration.");if(a&&!Ps(t,vs.staticBlocks))throw e.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your configuration.");return!!(r||i||a||(n||s)&&Ps(t,vs.fields))}});var io=x(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Object.defineProperty(Zi,"FEATURES",{enumerable:!0,get:function(){return so.FEATURES}});Object.defineProperty(Zi,"buildCheckInRHS",{enumerable:!0,get:function(){return $l.buildCheckInRHS}});Zi.createClassFeaturePlugin=b1e;Object.defineProperty(Zi,"enableFeature",{enumerable:!0,get:function(){return so.enableFeature}});Object.defineProperty(Zi,"injectInitialization",{enumerable:!0,get:function(){return hE.injectInitialization}});var fE=vt(),m1e=fs(),$l=Q1(),dE=oE(),y1e=SN(),hE=Z1(),so=CN(),g1e=G1(),Qi="@babel/plugin-class-features/version";function b1e({name:e,feature:t,loose:r,manipulateOptions:n,api:s,inherits:i,decoratorVersion:a}){var o;if(t&so.FEATURES.decorators&&(a==="2023-11"||a==="2023-05"||a==="2023-01"||a==="2022-03"||a==="2021-12"))return(0,dE.default)(s,{loose:r},a,i);s!=null||(s={assumption:()=>{}});let l=s.assumption("setPublicClassFields"),u=s.assumption("privateFieldsAsSymbols"),c=s.assumption("privateFieldsAsProperties"),p=(o=s.assumption("noUninitializedPrivateFieldAccess"))!=null?o:!1,d=s.assumption("constantSuper"),m=s.assumption("noDocumentAll");if(c&&u)throw new Error('Cannot enable both the "privateFieldsAsProperties" and "privateFieldsAsSymbols" assumptions as the same time.');let g=c||u;if(r===!0){let f=[];l!==void 0&&f.push('"setPublicClassFields"'),c!==void 0&&f.push('"privateFieldsAsProperties"'),u!==void 0&&f.push('"privateFieldsAsSymbols"'),f.length!==0&&console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value for the ${f.join(" and ")} assumption${f.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option:
"assumptions": {
"setPublicClassFields": true,
"privateFieldsAsSymbols": true
}`)}return{name:e,manipulateOptions:n,inherits:i,pre(f){if((0,so.enableFeature)(f,t,r),typeof f.get(Qi)=="number"){f.set(Qi,"7.27.1");return}(!f.get(Qi)||m1e.lt(f.get(Qi),"7.27.1"))&&f.set(Qi,"7.27.1")},visitor:{Class(f,{file:b}){if(b.get(Qi)!=="7.27.1"||!(0,so.shouldTransform)(f,b))return;let T=f.isClassDeclaration();T&&(0,g1e.assertFieldTransformed)(f);let w=(0,so.isLoose)(b,t),I,N=(0,dE.hasDecorators)(f.node),L=[],W=[],U=[],H=new Set,pe=f.get("body");for(let he of pe.get("body")){if((he.isClassProperty()||he.isClassMethod())&&he.node.computed&&U.push(he),he.isPrivate()){let{name:De}=he.node.key.id,we=`get ${De}`,Ve=`set ${De}`;if(he.isClassPrivateMethod()){if(he.node.kind==="get"){if(H.has(we)||H.has(De)&&!H.has(Ve))throw he.buildCodeFrameError("Duplicate private field");H.add(we).add(De)}else if(he.node.kind==="set"){if(H.has(Ve)||H.has(De)&&!H.has(we))throw he.buildCodeFrameError("Duplicate private field");H.add(Ve).add(De)}}else{if(H.has(De)&&!H.has(we)&&!H.has(Ve)||H.has(De)&&(H.has(we)||H.has(Ve)))throw he.buildCodeFrameError("Duplicate private field");H.add(De)}}he.isClassMethod({kind:"constructor"})?I=he:(W.push(he),(he.isProperty()||he.isPrivate()||he.isStaticBlock!=null&&he.isStaticBlock())&&L.push(he))}if(!L.length&&!N)return;let Ee=f.node.id,ce;if(!Ee||!T){{var qe;(qe=f.ensureFunctionName)!=null||(f.ensureFunctionName=zt().NodePath.prototype.ensureFunctionName)}f.ensureFunctionName(!1),ce=f.scope.generateUidIdentifier((Ee==null?void 0:Ee.name)||"Class")}let ze=ce!=null?ce:fE.types.cloneNode(Ee),Ot=(0,$l.buildPrivateNamesMap)(ze.name,g!=null?g:w,L,b),J=(0,$l.buildPrivateNamesNodes)(Ot,c!=null?c:w,u!=null?u:!1,b);(0,$l.transformPrivateNamesUsage)(ze,f,Ot,{privateFieldsAsProperties:g!=null?g:w,noUninitializedPrivateFieldAccess:p,noDocumentAll:m,innerBinding:Ee},b);let se,V,G,j,re,de,ye;N?(V=re=se=[],{instanceNodes:G,wrapClass:ye}=(0,y1e.buildDecoratedClass)(ze,f,W,b)):(se=(0,hE.extractComputedKeys)(f,U,b),{staticNodes:V,pureStaticNodes:re,instanceNodes:G,lastInstanceNodeReturnsThis:j,classBindingNode:de,wrapClass:ye}=(0,$l.buildFieldsInitNodes)(ce,f.node.superClass,L,Ot,b,l!=null?l:w,g!=null?g:w,p,d!=null?d:w,Ee)),G.length>0&&(0,hE.injectInitialization)(f,I,G,(he,De)=>{if(!N)for(let we of L)fE.types.isStaticBlock!=null&&fE.types.isStaticBlock(we.node)||we.node.static||we.traverse(he,De)},j);let Te=ye(f);Te.insertBefore([...J,...se]),V.length>0&&Te.insertAfter(V),re.length>0&&Te.find(he=>he.isStatement()||he.isDeclaration()).insertAfter(re),de!=null&&T&&Te.insertAfter(de)},ExportDefaultDeclaration(f,{file:b}){{if(b.get(Qi)!=="7.27.1")return;let w=f.get("declaration");if(w.isClassDeclaration()&&(0,dE.hasDecorators)(w.node))if(w.node.id){{var T;(T=f.splitExportDeclaration)!=null||(f.splitExportDeclaration=zt().NodePath.prototype.splitExportDeclaration)}f.splitExportDeclaration()}else w.node.type="ClassExpression"}}}}}});var yE=x(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.default=v1e;Wl.isSyntacticallyString=xf;Wl.translateEnumValues=wN;var ao=vt(),E1e=require("assert"),T1e=hf(),x1e=jl(),mE=new WeakMap,S1e=ao.template.expression(`
(function (ID) {
ASSIGNMENTS;
return ID;
})(INIT)
`);function v1e(e,t){let{node:r,parentPath:n}=e;if(r.declare){e.remove();return}let s=r.id.name,{fill:i,data:a,isPure:o}=D1e(e,t,r.id);switch(n.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":{let u=t.isProgram(e.parent),c=l(n),p=t.objectExpression([]);(c||u)&&(p=t.logicalExpression("||",t.cloneNode(i.ID),p));let d=S1e(Object.assign({},i,{INIT:p}));o&&(0,T1e.default)(d),c?(n.isExportDeclaration()?n:e).replaceWith(t.expressionStatement(t.assignmentExpression("=",t.cloneNode(r.id),d))):e.scope.registerDeclaration(e.replaceWith(t.variableDeclaration(u?"var":"let",[t.variableDeclarator(r.id,d)]))[0]),mE.set(e.scope.getBindingIdentifier(s),a);break}default:throw new Error(`Unexpected enum parent '${e.parent.type}`)}function l(u){return u.isExportDeclaration()?l(u.parentPath):u.getData(s)?!0:(u.setData(s,!0),!1)}}var P1e=ao.template.statement(`
ENUM["NAME"] = VALUE;
`),A1e=ao.template.statement(`
ENUM[ENUM["NAME"] = VALUE] = "NAME";
`),C1e=(e,t)=>(e?P1e:A1e)(t);function D1e(e,t,r){let{enumValues:n,data:s,isPure:i}=wN(e,t),a=e.get("members"),o=[];for(let l=0;l<a.length;l++){let[u,c]=n[l];o.push(t.inheritsComments(C1e(xf(c),{ENUM:t.cloneNode(r),NAME:u,VALUE:c}),a[l].node))}return{fill:{ID:t.cloneNode(r),ASSIGNMENTS:o},data:s,isPure:i}}function xf(e){switch(e=(0,x1e.skipTransparentExprWrapperNodes)(e),e.type){case"BinaryExpression":{let t=e.left,r=e.right;return e.operator==="+"&&(xf(t)||xf(r))}case"TemplateLiteral":case"StringLiteral":return!0}return!1}function DN(e,t){let{seen:r,path:n,t:s}=t,i=e.node.name;if(r.has(i)){for(let a=e.scope;a!==n.scope;a=a.parent)if(a.hasOwnBinding(i))return;e.replaceWith(s.memberExpression(s.cloneNode(n.node.id),s.cloneNode(e.node))),e.skip()}}var w1e={ReferencedIdentifier:DN};function wN(e,t){var r;let n=e.scope.getBindingIdentifier(e.node.id.name),s=(r=mE.get(n))!=null?r:new Map,i=-1,a,o=!0,u=e.get("members").map(c=>{let p=c.node,d=t.isIdentifier(p.id)?p.id.name:p.id.value,m=c.get("initializer"),g=p.initializer,f;if(g)i=IN(m,s),i!==void 0?(s.set(d,i),E1e(typeof i=="number"||typeof i=="string"),i===1/0||Number.isNaN(i)?f=t.identifier(String(i)):i===-1/0?f=t.unaryExpression("-",t.identifier("Infinity")):f=t.valueToNode(i)):(o&&(o=m.isPure()),m.isReferencedIdentifier()?DN(m,{t,seen:s,path:e}):m.traverse(w1e,{t,seen:s,path:e}),f=m.node,s.set(d,void 0));else if(typeof i=="number")i+=1,f=t.numericLiteral(i),s.set(d,i);else{if(typeof i=="string")throw e.buildCodeFrameError("Enum member must have initializer.");{let b=t.memberExpression(t.cloneNode(e.node.id),t.stringLiteral(a),!0);f=t.binaryExpression("+",t.numericLiteral(1),b),s.set(d,void 0)}}return a=d,[d,f]});return{isPure:o,data:s,enumValues:u}}function IN(e,t,r=new Set){return n(e);function n(o){let l=o.node;switch(l.type){case"MemberExpression":return s(o,t,r);case"StringLiteral":return l.value;case"UnaryExpression":return i(o);case"BinaryExpression":return a(o);case"NumericLiteral":return l.value;case"ParenthesizedExpression":return n(o.get("expression"));case"Identifier":return s(o,t,r);case"TemplateLiteral":{if(l.quasis.length===1)return l.quasis[0].value.cooked;let u=o.get("expressions"),c=l.quasis,p="";for(let d=0;d<c.length;d++)if(p+=c[d].value.cooked,d+1<c.length){let m=s(u[d],t,r);if(m===void 0)return;p+=m}return p}default:return}}function s(o,l,u){if(o.isMemberExpression()){let c=o.node,p=c.object,d=c.property;if(!ao.types.isIdentifier(p)||(c.computed?!ao.types.isStringLiteral(d):!ao.types.isIdentifier(d)))return;let m=o.scope.getBindingIdentifier(p.name),g=mE.get(m);return g?g.get(d.computed?d.value:d.name):void 0}else if(o.isIdentifier()){let c=o.node.name;if(["Infinity","NaN"].includes(c))return Number(c);let p=l==null?void 0:l.get(c);return p!==void 0?p:l!=null&&l.has(c)||u.has(o.node)?void 0:(u.add(o.node),p=IN(o.resolve(),l,u),p)}}function i(o){let l=n(o.get("argument"));if(l!==void 0)switch(o.node.operator){case"+":return l;case"-":return-l;case"~":return~l;default:return}}function a(o){let l=n(o.get("left"));if(l===void 0)return;let u=n(o.get("right"));if(u!==void 0)switch(o.node.operator){case"|":return l|u;case"&":return l&u;case">>":return l>>u;case">>>":return l>>>u;case"<<":return l<<u;case"^":return l^u;case"*":return l*u;case"/":return l/u;case"+":return l+u;case"-":return l-u;case"%":return l%u;case"**":return Math.pow(l,u);default:return}}}});var gE=x(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.EXPORTED_CONST_ENUMS_IN_NAMESPACE=void 0;Kl.default=N1e;var I1e=yE(),_1e=Kl.EXPORTED_CONST_ENUMS_IN_NAMESPACE=new WeakSet;function N1e(e,t){let{name:r}=e.node.id,n=e.parentPath.isExportNamedDeclaration(),s=n;!s&&t.isProgram(e.parent)&&(s=e.parent.body.some(o=>t.isExportNamedDeclaration(o)&&o.exportKind!=="type"&&!o.source&&o.specifiers.some(l=>t.isExportSpecifier(l)&&l.exportKind!=="type"&&l.local.name===r)));let{enumValues:i}=(0,I1e.translateEnumValues)(e,t);if(s||_1e.has(e.node)){let o=t.objectExpression(i.map(([l,u])=>t.objectProperty(t.isValidIdentifier(l)?t.identifier(l):t.stringLiteral(l),u)));e.scope.hasOwnBinding(r)?
as a JavaScript value binding, and "@babel/plugin-transform-typescript"
never encountered it as a TypeScript type declaration.
It will be treated as a JavaScript value.
This problem is likely caused by another plugin injecting
"${t}" without registering it in the scope tracker. If you are the author
of that plugin, please use "scope.registerDeclaration(declarationPath)".`),!1)}function B1e(e,t){_N.get(e).add(t)}});var ON=x(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.default=L1e;Sf.getFirstIdentifier=SE;var yt=vt(),k1e=bE(),F1e=gE();function SE(e){return yt.types.isIdentifier(e)?e:SE(e.left)}function L1e(e,t){if(e.node.declare||e.node.id.type==="StringLiteral"){e.remove();return}if(!t)throw e.get("id").buildCodeFrameError("Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");let r=SE(e.node.id).name,n=xE(e,e.node);if(n===null){let s=e.findParent(i=>i.isProgram());(0,k1e.registerGlobalType)(s.scope,r),e.remove()}else e.scope.hasOwnBinding(r)?e.replaceWith(n):e.scope.registerDeclaration(e.replaceWithMultiple([EE(r),n])[0])}function EE(e){return yt.types.variableDeclaration("let",[yt.types.variableDeclarator(yt.types.identifier(e))])}function TE(e,t){return yt.types.memberExpression(yt.types.identifier(e),yt.types.identifier(t))}function j1e(e,t,r){if(e.kind!=="const")throw r.file.buildCodeFrameError(e,"Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");let{declarations:n}=e;if(n.every(a=>yt.types.isIdentifier(a.id))){for(let a of n)a.init=yt.types.assignmentExpression("=",TE(t,a.id.name),a.init);return[e]}let s=yt.types.getBindingIdentifiers(e),i=[];for(let a in s)i.push(yt.types.assignmentExpression("=",TE(t,a),yt.types.cloneNode(s[a])));return[e,yt.types.expressionStatement(yt.types.sequenceExpression(i))]}function NN(e,t){return e.hub.buildError(t,"Ambient modules cannot be nested in other modules or namespaces.",Error)}function xE(e,t,r){let n=new Set,s=t.id,i=e.scope.generateUid(s.name),a=t.body,o=t.id,l;l=yt.types.isTSModuleBlock(a)?a.body:[yt.types.exportNamedDeclaration(a)];let u=!0;for(let p=0;p<l.length;p++){let d=l[p];switch(d.type){case"TSModuleDeclaration":{if(!yt.types.isIdentifier(d.id))throw NN(e,d);let m=xE(e,d);if(m!==null){u=!1;let g=d.id.name;n.has(g)?l[p]=m:(n.add(g),l.splice(p++,1,EE(g),m))}continue}case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":u=!1,n.add(d.id.name);continue;case"VariableDeclaration":{u=!1;for(let m in yt.types.getBindingIdentifiers(d))n.add(m);continue}default:u&&(u=yt.types.isTypeScript(d));continue;case"ExportNamedDeclaration":}if(!("declare"in d.declaration&&d.declaration.declare))switch(d.declaration.type){case"TSEnumDeclaration":F1e.EXPORTED_CONST_ENUMS_IN_NAMESPACE.add(d.declaration);case"FunctionDeclaration":case"ClassDeclaration":{u=!1;let m=d.declaration.id.name;n.add(m),l.splice(p++,1,d.declaration,yt.types.expressionStatement(yt.types.assignmentExpression("=",TE(i,m),yt.types.identifier(m))));break}case"VariableDeclaration":{u=!1;let m=j1e(d.declaration,i,e.hub);l.splice(p,m.length,...m),p+=m.length-1;break}case"TSModuleDeclaration":{if(!yt.types.isIdentifier(d.declaration.id))throw NN(e,d.declaration);let m=xE(e,d.declaration,yt.types.identifier(i));if(m!==null){u=!1;let g=d.declaration.id.name;n.has(g)?l[p]=m:(n.add(g),l.splice(p++,1,EE(g),m))}else l.splice(p,1),p--}}}if(u)return null;let c=yt.types.objectExpression([]);if(r){let p=yt.types.memberExpression(r,s);c=yt.template.expression.ast`
${yt.types.cloneNode(p)} ||
(${yt.types.cloneNode(p)} = ${c})
`}return yt.template.statement.ast`
(function (${yt.types.identifier(i)}) {
${l}
})(${s} || (${yt.types.cloneNode(s)} = ${c}));
`}});var LN=x(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.default=void 0;var M1e=Ft(),R1e=L_(),q1e=io(),U1e=gE(),V1e=yE(),As=bE(),BN=ON();function $1e(e){switch(e.parent.type){case"TSTypeReference":case"TSExpressionWithTypeArguments":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;case"TSQualifiedName":return e.parentPath.findParent(t=>t.type!=="TSQualifiedName").type!=="TSImportEqualsDeclaration";case"ExportSpecifier":return e.parent.exportKind==="type"||e.parentPath.parent.exportKind==="type";default:return!1}}var Tn=new WeakMap,kN=new WeakSet;function vf(e){let t=e.getBindingIdentifiers();for(let r of Object.keys(t)){let n=e.scope.getBinding(r);n&&n.identifier===t[r]&&n.scope.removeBinding(r)}e.opts.noScope=!0,e.remove(),e.opts.noScope=!1}function FN(e,t,r,n,s=""){if(t.file.get("@babel/plugin-transform-modules-*")!=="commonjs")throw e.buildCodeFrameError(`\`${r}\` is only supported when compiling modules to CommonJS.
Please consider using \`${n}\`${s}, or add @babel/plugin-transform-modules-commonjs to your Babel config.`)}var dBe=Pf.default=(0,M1e.declare)((e,t)=>{let{types:r,template:n}=e;e.assertVersion(7);let s=/\*?\s*@jsx((?:Frag)?)\s+(\S+)/,{allowNamespaces:i=!0,jsxPragma:a="React.createElement",jsxPragmaFrag:o="React.Fragment",onlyRemoveTypeImports:l=!1,optimizeConstEnums:u=!1}=t;var{allowDeclareFields:c=!1}=t;let p={field(f){let{node:b}=f;if(!c&&b.declare)throw f.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(b.declare){if(b.value)throw f.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");b.decorators||f.remove()}else if(b.definite){if(b.value)throw f.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");!c&&!b.decorators&&!r.isClassPrivateProperty(b)&&f.remove()}else(b.abstract||!c&&!b.value&&!b.decorators&&!r.isClassPrivateProperty(b))&&f.remove();b.accessibility&&(b.accessibility=null),b.abstract&&(b.abstract=null),b.readonly&&(b.readonly=null),b.optional&&(b.optional=null),b.typeAnnotation&&(b.typeAnnotation=null),b.definite&&(b.definite=null),b.declare&&(b.declare=null),b.override&&(b.override=null)},method({node:f}){f.accessibility&&(f.accessibility=null),f.abstract&&(f.abstract=null),f.optional&&(f.optional=null),f.override&&(f.override=null)},constructor(f,b){f.node.accessibility&&(f.node.accessibility=null);let T=[],{scope:w}=f;for(let I of f.get("params")){let N=I.node;if(N.type==="TSParameterProperty"){let L=N.parameter;if(kN.has(L))continue;kN.add(L);let W;if(r.isIdentifier(L))W=L;else if(r.isAssignmentPattern(L)&&r.isIdentifier(L.left))W=L.left;else throw I.buildCodeFrameError("Parameter properties can not be destructuring patterns.");T.push(n.statement.ast`
this.${r.cloneNode(W)} = ${r.cloneNode(W)}
`),I.replaceWith(I.get("parameter")),w.registerBinding("param",I)}}(0,q1e.injectInitialization)(b,f,T)}};return{name:"transform-typescript",inherits:R1e.default,visitor:{Pattern:m,Identifier:m,RestElement:m,Program:{enter(f,b){let{file:T}=b,w=null,I=null,N=f.scope;if(As.GLOBAL_TYPES.has(N)||As.GLOBAL_TYPES.set(N,new Set),T.ast.comments)for(let U of T.ast.comments){let H=s.exec(U.value);H&&(H[1]?I=H[2]:w=H[2])}let L=w||a;L&&([L]=L.split("."));let W=I||o;W&&([W]=W.split("."));for(let U of f.get("body")){if(U.isImportDeclaration()){if(Tn.has(b.file.ast.program)||Tn.set(b.file.ast.program,!0),U.node.importKind==="type"){for(let ce of U.node.specifiers)(0,As.registerGlobalType)(N,ce.local.name);U.remove();continue}let H=new Set,pe=U.node.specifiers.length,Ee=()=>pe>0&&pe===H.size;for(let ce of U.node.specifiers)if(ce.type==="ImportSpecifier"&&ce.importKind==="type"){(0,As.registerGlobalType)(N,ce.local.name);let qe=U.scope.getBinding(ce.local.name);qe&&H.add(qe.path)}if(l)Tn.set(f.node,!1);else{if(U.node.specifiers.length===0){Tn.set(f.node,!1);continue}for(let ce of U.node.specifiers){let qe=U.scope.getBinding(ce.local.name);qe&&!H.has(qe.path)&&(g({binding:qe,programPath:f,pragmaImportName:L,pragmaFragImportName:W})?H.add(qe.path):Tn.set(f.node,!1))}}if(Ee()&&!l)U.remove();else for(let ce of H)ce.remove();continue}if(!l&&U.isTSImportEqualsDeclaration()){let{id:H}=U.node,pe=U.scope.getBinding(H.name);if(pe&&!U.node.isExport&&g({binding:pe,programPath:f,pragmaImportName:L,pragmaFragImportName:W})){U.remove();continue}}if(U.isExportDeclaration()&&(U=U.get("declaration")),U.isVariableDeclaration({declare:!0}))for(let H of Object.keys(U.getBindingIdentifiers()))(0,As.registerGlobalType)(N,H);else(U.isTSTypeAliasDeclaration()||U.isTSDeclareFunction()&&U.get("id").isIdentifier()||U.isTSInterfaceDeclaration()||U.isClassDeclaration({declare:!0})||U.isTSEnumDeclaration({declare:!0})||U.isTSModuleDeclaration({declare:!0})&&U.get("id").isIdentifier())&&(0,As.registerGlobalType)(N,U.node.id.name)}},exit(f){f.node.sourceType==="module"&&Tn.get(f.node)&&f.pushContainer("body",r.exportNamedDeclaration())}},ExportNamedDeclaration(f,b){if(Tn.has(b.file.ast.program)||Tn.set(b.file.ast.program,!0),f.node.exportKind==="type"){f.remove();return}if(f.node.source&&f.node.specifiers.length>0&&f.node.specifiers.every(T=>T.type==="ExportSpecifier"&&T.exportKind==="type")){f.remove();return}if(!f.node.source&&f.node.specifiers.length>0&&f.node.specifiers.every(T=>r.isExportSpecifier(T)&&(0,As.isGlobalType)(f,T.local.name))){f.remove();return}if(r.isTSModuleDeclaration(f.node.declaration)){let T=f.node.declaration;if(!r.isStringLiteral(T.id)){let w=(0,BN.getFirstIdentifier)(T.id);if(f.scope.hasOwnBinding(w.name))f.replaceWith(T);else{let[I]=f.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let",[r.variableDeclarator(r.cloneNode(w))])),T]);f.scope.registerDeclaration(I)}}}Tn.set(b.file.ast.program,!1)},ExportAllDeclaration(f){f.node.exportKind==="type"&&f.remove()},ExportSpecifier(f){(!f.parent.source&&(0,As.isGlobalType)(f,f.node.local.name)||f.node.exportKind==="type")&&f.remove()},ExportDefaultDeclaration(f,b){if(Tn.has(b.file.ast.program)||Tn.set(b.file.ast.program,!0),r.isIdentifier(f.node.declaration)&&(0,As.isGlobalType)(f,f.node.declaration.name)){f.remove();return}Tn.set(b.file.ast.program,!1)},TSDeclareFunction(f){vf(f)},TSDeclareMethod(f){vf(f)},VariableDeclaration(f){f.node.declare&&vf(f)},VariableDeclarator({node:f}){f.definite&&(f.definite=null)},TSIndexSignature(f){f.remove()},ClassDeclaration(f){let{node:b}=f;b.declare&&vf(f)},Class(f){let{node:b}=f;b.typeParameters&&(b.typeParameters=null),b.superTypeParameters&&(b.superTypeParameters=null),b.implements&&(b.implements=null),b.abstract&&(b.abstract=null),f.get("body.body").forEach(T=>{T.isClassMethod()||T.isClassPrivateMethod()?T.node.kind==="constructor"?p.constructor(T,f):p.method(T):(T.isClassProperty()||T.isClassPrivateProperty()||T.isClassAccessorProperty())&&p.field(T)})},Function(f){let{node:b}=f;b.typeParameters&&(b.typeParameters=null),b.returnT
function ${t}() {
const data = ${r};
${t} = function(){ return data; };
return data;
}
`:!1},wrapReference(t,r){if(r==="lazy/function")return qN.types.callExpression(t,[])}});Cf.lazyImportsHook=Y1e});var VN=x(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.defineCommonJSHook=J1e;Df.makeInvokers=z1e;var CE="@babel/plugin-transform-modules-commonjs/customWrapperPlugin";function J1e(e,t){let r=e.get(CE);r||e.set(CE,r=[]),r.push(t)}function AE(e,t){if(e)for(let r of e){let n=t(r);if(n!=null)return n}}function z1e(e){let t=e.get(CE);return{getWrapperPayload(...r){return AE(t,n=>n.getWrapperPayload==null?void 0:n.getWrapperPayload(...r))},wrapReference(...r){return AE(t,n=>n.wrapReference==null?void 0:n.wrapReference(...r))},buildRequireWrapper(...r){return AE(t,n=>n.buildRequireWrapper==null?void 0:n.buildRequireWrapper(...r))}}}});var wE=x(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.default=void 0;Object.defineProperty(Hl,"defineCommonJSHook",{enumerable:!0,get:function(){return DE.defineCommonJSHook}});var Q1e=Ft(),ea=fl(),jn=vt(),Z1e=RN(),eEe=UN(),DE=VN(),TBe=Hl.default=(0,Q1e.declare)((e,t)=>{var r,n,s;e.assertVersion(7);let{strictNamespace:i=!1,mjsStrictNamespace:a=i,allowTopLevelThis:o,strict:l,strictMode:u,noInterop:c,importInterop:p,lazy:d=!1,allowCommonJSExports:m=!0,loose:g=!1}=t,f=(r=e.assumption("constantReexports"))!=null?r:g,b=(n=e.assumption("enumerableModuleMeta"))!=null?n:g,T=(s=e.assumption("noIncompleteNsImportDetection"))!=null?s:!1;if(typeof d!="boolean"&&typeof d!="function"&&(!Array.isArray(d)||!d.every(N=>typeof N=="string")))throw new Error(".lazy must be a boolean, array of strings, or a function");if(typeof i!="boolean")throw new Error(".strictNamespace must be a boolean, or undefined");if(typeof a!="boolean")throw new Error(".mjsStrictNamespace must be a boolean, or undefined");let w=N=>jn.template.expression.ast`
(function(){
throw new Error(
"The CommonJS '" + "${N}" + "' variable is not available in ES6 modules." +
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
"Babel config for this file.");
})()
`,I={ReferencedIdentifier(N){let L=N.node.name;if(L!=="module"&&L!=="exports")return;let W=N.scope.getBinding(L);this.scope.getBinding(L)!==W||N.parentPath.isObjectProperty({value:N.node})&&N.parentPath.parentPath.isObjectPattern()||N.parentPath.isAssignmentExpression({left:N.node})||N.isAssignmentExpression({left:N.node})||N.replaceWith(w(L))},UpdateExpression(N){let L=N.get("argument");if(!L.isIdentifier())return;let W=L.node.name;if(W!=="module"&&W!=="exports")return;let U=N.scope.getBinding(W);this.scope.getBinding(W)===U&&N.replaceWith(jn.types.assignmentExpression(N.node.operator[0]+"=",L.node,w(W)))},AssignmentExpression(N){let L=N.get("left");if(L.isIdentifier()){let W=L.node.name;if(W!=="module"&&W!=="exports")return;let U=N.scope.getBinding(W);if(this.scope.getBinding(W)!==U)return;let pe=N.get("right");pe.replaceWith(jn.types.sequenceExpression([pe.node,w(W)]))}else if(L.isPattern()){let W=L.getOuterBindingIdentifiers(),U=Object.keys(W).find(H=>H!=="module"&&H!=="exports"?!1:this.scope.getBinding(H)===N.scope.getBinding(H));if(U){let H=N.get("right");H.replaceWith(jn.types.sequenceExpression([H.node,w(U)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),d&&(0,DE.defineCommonJSHook)(this.file,(0,eEe.lazyImportsHook)(d))},visitor:{["CallExpression"+(e.types.importExpression?"|ImportExpression":"")](N){if(!this.file.has("@babel/plugin-proposal-dynamic-import")||N.isCallExpression()&&!jn.types.isImport(N.node.callee))return;let{scope:L}=N;do L.rename("require");while(L=L.parent);(0,Z1e.transformDynamicImport)(N,c,this.file)},Program:{exit(N,L){if(!(0,ea.isModule)(N))return;N.scope.rename("exports"),N.scope.rename("module"),N.scope.rename("require"),N.scope.rename("__filename"),N.scope.rename("__dirname"),m||N.traverse(I,{scope:N.scope});let W=(0,ea.getModuleName)(this.file.opts,t);W&&(W=jn.types.stringLiteral(W));let U=(0,DE.makeInvokers)(this.file),{meta:H,headers:pe}=(0,ea.rewriteModuleStatementsAndPrepareHeader)(N,{exportName:"exports",constantReexports:f,enumerableModuleMeta:b,strict:l,strictMode:u,allowTopLevelThis:o,noInterop:c,importInterop:p,wrapReference:U.wrapReference,getWrapperPayload:U.getWrapperPayload,esNamespaceOnly:typeof L.filename=="string"&&/\.mjs$/.test(L.filename)?a:i,noIncompleteNsImportDetection:T,filename:this.file.opts.filename});for(let[Ee,ce]of H.source){let qe=jn.types.callExpression(jn.types.identifier("require"),[jn.types.stringLiteral(Ee)]),ze;if((0,ea.isSideEffectImport)(ce)){if(d&&ce.wrap==="function")throw new Error("Assertion failure");ze=jn.types.expressionStatement(qe)}else{let Ot=(0,ea.wrapInterop)(N,qe,ce.interop)||qe;if(ce.wrap){let J=U.buildRequireWrapper(ce.name,Ot,ce.wrap,ce.referenced);if(J===!1)continue;ze=J}ze!=null||(ze=jn.template.statement.ast`
var ${ce.name} = ${Ot};
`)}ze.loc=ce.loc,pe.push(ze),pe.push(...(0,ea.buildNamespaceInitStatements)(H,ce,f,U.wrapReference))}(0,ea.ensureStatementsHoisted)(pe),N.unshiftContainer("body",pe),N.get("body").forEach(Ee=>{pe.includes(Ee.node)&&Ee.isVariableDeclaration()&&Ee.scope.registerDeclaration(Ee)})}}}}})});var _E=x(IE=>{"use strict";Object.defineProperty(IE,"__esModule",{value:!0});var WN=Ft(),tEe=LN();vE();var rEe=wE(),nEe=Ip();function KN(e){return e&&e.__esModule?e:{default:e}}var $N=KN(tEe),sEe=KN(rEe),Cs=new nEe.OptionValidator("@babel/preset-typescript");function iEe(e={}){let{allowNamespaces:t=!0,jsxPragma:r,onlyRemoveTypeImports:n}=e,s={ignoreExtensions:"ignoreExtensions",allowNamespaces:"allowNamespaces",disallowAmbiguousJSXLike:"disallowAmbiguousJSXLike",jsxPragma:"jsxPragma",jsxPragmaFrag:"jsxPragmaFrag",onlyRemoveTypeImports:"onlyRemoveTypeImports",optimizeConstEnums:"optimizeConstEnums",rewriteImportExtensions:"rewriteImportExtensions",allExtensions:"allExtensions",isTSX:"isTSX"},i=Cs.validateStringOption(s.jsxPragmaFrag,e.jsxPragmaFrag,"React.Fragment");{var a=Cs.validateBooleanOption(s.allExtensions,e.allExtensions,!1),o=Cs.validateBooleanOption(s.isTSX,e.isTSX,!1);o&&Cs.invariant(a,"isTSX:true requires allExtensions:true")}let l=Cs.validateBooleanOption(s.ignoreExtensions,e.ignoreExtensions,!1),u=Cs.validateBooleanOption(s.disallowAmbiguousJSXLike,e.disallowAmbiguousJSXLike,!1);u&&Cs.invariant(a,"disallowAmbiguousJSXLike:true requires allExtensions:true");let c=Cs.validateBooleanOption(s.optimizeConstEnums,e.optimizeConstEnums,!1),p=Cs.validateBooleanOption(s.rewriteImportExtensions,e.rewriteImportExtensions,!1),d={ignoreExtensions:l,allowNamespaces:t,disallowAmbiguousJSXLike:u,jsxPragma:r,jsxPragmaFrag:i,onlyRemoveTypeImports:n,optimizeConstEnums:c,rewriteImportExtensions:p};return d.allExtensions=a,d.isTSX=o,d}var aEe=WN.declare(function({types:e,template:t}){function r(n,s,i){if(n){if(e.isStringLiteral(n)){/^\.\.?\//.test(n.value)&&(n.value=n.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i,function(a,o,l,u,c){return o?".js":l&&(!u||!c)?a:l+u+"."+c.toLowerCase()+"js"}));return}i.availableHelper("tsRewriteRelativeImportExtensions")?s.replaceWith(e.callExpression(i.addHelper("tsRewriteRelativeImportExtensions"),[n])):s.replaceWith(t.expression.ast`(${n} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`)}}return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(n,s){let i=n.node;(e.isImportDeclaration(i)?i.importKind:i.exportKind)==="value"&&r(i.source,n.get("source"),s)},CallExpression(n,s){e.isImport(n.node.callee)&&r(n.node.arguments[0],n.get("arguments.0"),s)},ImportExpression(n,s){r(n.node.source,n.get("source"),s)}}}}),oEe=WN.declarePreset((e,t)=>{e.assertVersion(7);let{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:i,isTSX:a,jsxPragma:o,jsxPragmaFrag:l,onlyRemoveTypeImports:u,optimizeConstEnums:c,rewriteImportExtensions:p}=iEe(t),d=f=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:f,jsxPragma:o,jsxPragmaFrag:l,onlyRemoveTypeImports:u,optimizeConstEnums:c}),m=(f,b)=>[[$N.default,Object.assign({isTSX:f},d(b))]];return{plugins:p?[aEe]:[],overrides:r||n?[{plugins:m(a,i)}]:[{test:/\.ts$/,plugins:m(!1,!1)},{test:/\.mts$/,sourceType:"module",plugins:m(!1,!0)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[sEe.default,{allowTopLevelThis:!0}],[$N.default,d(!0)]]},{test:/\.tsx$/,plugins:m(!0,!1)}]}});IE.default=oEe});var jE=x(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.default=pEe;Gl.supportsESM=void 0;var NE=Xs();function FE(){let e=require("path");return FE=function(){return e},e}function JN(){let e=require("url");return JN=function(){return e},e}require("module");function LE(){let e=fs();return LE=function(){return e},e}function zN(){let e=xi();return zN=function(){return e},e}var QN=ds(),lo=Ui(),lEe=O1();function HN(e,t,r,n,s,i,a){try{var o=e[i](a),l=o.value}catch(u){return void r(u)}o.done?t(l):Promise.resolve(l).then(n,s)}func
`,r);return yield kE(n)}});function t(r){return e.apply(this,arguments)}return t})()),ZN=e=>`You are using a ${e} config file, but Babel only supports transpiling .cts configs. Either:
- Use a .cts config file
- Update to Node.js 23.6.0, which has native TypeScript support
- Install tsx to transpile ${e} files on the fly`,XN={".js":"unknown",".mjs":"esm",".cjs":"cjs",".ts":"unknown",".mts":"esm",".cts":"cjs"},YN=new Set;function*pEe(e,t,r,n){let s,i=FE().extname(e),a=i===".ts"||i===".cts"||i===".mts",o=XN[hasOwnProperty.call(XN,i)?i:".js"];switch(`${t} ${o}`){case"require cjs":case"auto cjs":return a?BE(e,i,()=>wf(e)):wf(e,arguments[2]);case"auto unknown":case"require unknown":case"require esm":try{return a?BE(e,i,()=>wf(e)):wf(e,arguments[2])}catch(u){if(u.code==="ERR_REQUIRE_ASYNC_MODULE"||u.code==="ERR_REQUIRE_CYCLE_MODULE"&&YN.has(e)){if(YN.add(e),!(s!=null?s:s=yield*(0,NE.isAsync)()))throw new lo.default(n,e)}else if(!(u.code==="ERR_REQUIRE_ESM"||o==="esm"))throw u}case"auto esm":if(s!=null?s:s=yield*(0,NE.isAsync)()){let u=a?BE(e,i,()=>GN(e)):GN(e);return(yield*(0,NE.waitFor)(u)).default}throw a?new lo.default(ZN(i),e):new lo.default(r,e);default:throw new Error("Internal Babel error: unreachable code.")}}function BE(e,t,r){if(process.features.typescript||require.extensions[".ts"]||require.extensions[".cts"]||require.extensions[".mts"])return r();if(t!==".cts")throw new lo.default(ZN(t),e);let n={babelrc:!1,configFile:!1,sourceType:"unambiguous",sourceMaps:"inline",sourceFileName:FE().basename(e),presets:[[fEe(e),Object.assign({onlyRemoveTypeImports:!0,optimizeConstEnums:!0},{allowDeclareFields:!0})]]},s=function(i,a){if(s&&a.endsWith(".cts"))try{return i._compile((0,lEe.transformFileSync)(a,Object.assign({},n,{filename:a})).code,a)}catch(o){let l=k_();throw LE().lt(l.version,"7.21.4")&&console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`."),o}return require.extensions[".js"](i,a)};require.extensions[t]=s;try{return r()}finally{require.extensions[t]===s&&delete require.extensions[t],s=void 0}}function fEe(e){try{return _E()}catch(t){if(t.code!=="MODULE_NOT_FOUND")throw t;let r="You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";throw process.versions.pnp&&(r+=`
If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:
packageExtensions:
"@babel/core@*":
peerDependencies:
"@babel/preset-typescript": "*"
`),new lo.default(r,e)}}});var uO=x(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.ROOT_CONFIG_FILENAMES=void 0;Ds.findConfigUpwards=DEe;Ds.findRelativeConfig=wEe;Ds.findRootConfig=IEe;Ds.loadConfig=_Ee;Ds.resolveShowConfigPath=NEe;function tO(){let e=xi();return tO=function(){return e},e}function ME(){let e=require("fs");return ME=function(){return e},e}function nn(){let e=require("path");return nn=function(){return e},e}function rO(){let e=yD();return rO=function(){return e},e}function nO(){let e=en();return nO=function(){return e},e}var sO=qi(),dEe=Kg(),iO=Bg(),hEe=jE(),mEe=jb(),Mn=Ui(),yEe=ip();require("module");var gEe=ds(),bEe=Xs(),RE=tO()("babel:config:loading:files:configuration"),aO=Ds.ROOT_CONFIG_FILENAMES=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json","babel.config.cts","babel.config.ts","babel.config.mts"],EEe=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json",".babelrc.cts"],TEe=".babelignore",xEe=(0,sO.makeWeakCache)(function*(t,r){return yield*[],{options:(0,gEe.endHiddenCallStack)(t)((0,dEe.makeConfigAPI)(r)),cacheNeedsConfiguration:!r.configured()}});function*SEe(e,t){if(!ME().existsSync(e))return null;let r=yield*(0,hEe.default)(e,(yield*(0,bEe.isAsync)())?"auto":"require","You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously or when using the Node.js `--experimental-require-module` flag.","You appear to be using a configuration file that contains top-level await, which is only supported when running Babel asynchronously."),n=!1;if(typeof r=="function"&&({options:r,cacheNeedsConfiguration:n}=yield*xEe(r,t)),!r||typeof r!="object"||Array.isArray(r))throw new Mn.default("Configuration should be an exported JavaScript object.",e);if(typeof r.then=="function")throw r.catch==null||r.catch(()=>{}),new Mn.default("You appear to be using an async configuration, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously return your config.",e);return n&&OEe(e),vEe(r,e)}var eO=new WeakMap;function vEe(e,t){let r=eO.get(e);r||eO.set(e,r=new Map);let n=r.get(t);return n||(n={filepath:t,dirname:nn().dirname(t),options:e},r.set(t,n)),n}var PEe=(0,sO.makeWeakCacheSync)(e=>{let t=e.options.babel;if(t===void 0)return null;if(typeof t!="object"||Array.isArray(t)||t===null)throw new Mn.default(".babel property must be an object",e.filepath);return{filepath:e.filepath,dirname:e.dirname,options:t}}),AEe=(0,iO.makeStaticFileCache)((e,t)=>{let r;try{r=rO().parse(t)}catch(n){throw new Mn.default(`Error while parsing config - ${n.message}`,e)}if(!r)throw new Mn.default("No config detected",e);if(typeof r!="object")throw new Mn.default(`Config returned typeof ${typeof r}`,e);if(Array.isArray(r))throw new Mn.default("Expected config object but found array",e);return delete r.$schema,{filepath:e,dirname:nn().dirname(e),options:r}}),CEe=(0,iO.makeStaticFileCache)((e,t)=>{let r=nn().dirname(e),n=t.split(`
`).map(s=>s.replace(/#.*$/,"").trim()).filter(Boolean);for(let s of n)if(s[0]==="!")throw new Mn.default("Negation of file paths is not supported.",e);return{filepath:e,dirname:nn().dirname(e),ignore:n.map(s=>(0,mEe.default)(s,r))}});function DEe(e){let t=e;for(;;){for(let n of aO)if(ME().existsSync(nn().join(t,n)))return t;let r=nn().dirname(t);if(t===r)break;t=r}return null}function*wEe(e,t,r){let n=null,s=null,i=nn().dirname(e.filepath);for(let o of e.directories){if(!n){var a;n=yield*oO(EEe,o,t,r,((a=e.pkg)==null?void 0:a.dirname)===o?PEe(e.pkg):null)}if(!s){let l=nn().join(o,TEe);s=yield*CEe(l),s&&RE("Found ignore %o from %o.",s.filepath,i)}}return{config:n,ignore:s}}function IEe(e,t,r){return oO(aO,e,t,r)}function*oO(e,t,r,n,s=null){let a=(yield*nO().all(e.map(o=>lO(nn().join(t,o),r,n)))).reduce((o,l)=>{if(l&&o)throw new Mn.default(`Multiple configuration files found. Please remove one:
- ${nn().basename(o.filepath)}
- ${l.filepath}
from ${t}`);return l||o},s);return a&&RE("Found configuration %o from %o.",a.filepath,t),a}function*_Ee(e,t,r,n){let s=(((a,o)=>(a=a.split("."),o=o.split("."),+a[0]>+o[0]||a[0]==o[0]&&+a[1]>=+o[1]))(process.versions.node,"8.9")?require.resolve:(a,{paths:[o]},l=require("module"))=>{let u=l._findPath(a,l._nodeModulePaths(o).concat(o));if(u)return u;throw u=new Error(`Cannot resolve module '${a}'`),u.code="MODULE_NOT_FOUND",u})(e,{paths:[t]}),i=yield*lO(s,r,n);if(!i)throw new Mn.default("Config file contains no configuration data",s);return RE("Loaded config %o from %o.",e,t),i}function lO(e,t,r){switch(nn().extname(e)){case".js":case".cjs":case".mjs":case".ts":case".cts":case".mts":return SEe(e,{envName:t,caller:r});default:return AEe(e)}}function*NEe(e){let t=process.env.BABEL_SHOW_CONFIG_FOR;if(t!=null){let r=nn().resolve(e,t);if(!(yield*yEe.stat(r)).isFile())throw new Error(`${r}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);return r}return null}function OEe(e){throw new Mn.default(`Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured
for various types of caching, using the first param of their handler functions:
module.exports = function(api) {
// The API exposes the following:
// Cache the returned value forever and don't call this function again.
api.cache(true);
// Don't cache at all. Not recommended because it will be very slow.
api.cache(false);
// Cached based on the value of some function. If this function returns a value different from
// a previously-encountered value, the plugins will re-evaluate.
var env = api.cache(() => process.env.NODE_ENV);
// If testing for a specific env, we recommend specifics to avoid instantiating a plugin for
// any possible NODE_ENV value that might come up during plugin execution.
var isProd = api.cache(() => process.env.NODE_ENV === "production");
// .cache(fn) will perform a linear search though instances to find the matching plugin based
// based on previous instantiated plugins. If you want to recreate the plugin and discard the
// previous instance whenever something changes, you may use:
var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");
// Note, we also expose the following more-verbose versions of the above examples:
api.cache.forever(); // api.cache(true)
api.cache.never(); // api.cache(false)
api.cache.using(fn); // api.cache(fn)
// Return the value that will be cached.
return { };
};`,e)}});var kO=x(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.moduleResolve=BO;kf.resolve=vTe;function Qn(){let e=require("assert");return Qn=function(){return e},e}function zl(){let e=vO(require("fs"),!0);return zl=function(){return e},e}function ai(){let e=require("process");return ai=function(){return e},e}function Ie(){let e=require("url");return Ie=function(){return e},e}function Nf(){let e=require("path");return Nf=function(){return e},e}function Of(){let e=require("module");return Of=function(){return e},e}function SO(){let e=require("v8");return SO=function(){return e},e}function Jl(){let e=require("util");return Jl=function(){return e},e}function vO(e,t){if(typeof WeakMap=="function")var r=new WeakMap,n=new WeakMap;return(vO=function(s,i){if(!i&&s&&s.__esModule)return s;var a,o,l={__proto__:null,default:s};if(s===null||typeof s!="object"&&typeof s!="function")return l;if(a=i?n:r){if(a.has(s))return a.get(s);a.set(s,l)}for(let u in s)u!=="default"&&{}.hasOwnProperty.call(s,u)&&((o=(a=Object.defineProperty)&&Object.getOwnPropertyDescriptor(s,u))&&(o.get||o.set)?a(l,u,o):l[u]=s[u]);return l})(e,t)}var BEe={}.hasOwnProperty,kEe=/^([A-Z][a-z\d]*)+$/,FEe=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),Tr={};function qE(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var PO=new Map,LEe="__node_internal_",cO;Tr.ERR_INVALID_ARG_TYPE=xn("ERR_INVALID_ARG_TYPE",(e,t,r)=>{Qn()(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{let o=e.includes(".")?"property":"argument";n+=`"${e}" ${o} `}n+="must be ";let s=[],i=[],a=[];for(let o of t)Qn()(typeof o=="string","All expected entries have to be of type string"),FEe.has(o)?s.push(o.toLowerCase()):kEe.exec(o)===null?(Qn()(o!=="object",'The value "object" should be written as "Object"'),a.push(o)):i.push(o);if(i.length>0){let o=s.indexOf("object");o!==-1&&(s.slice(o,1),i.push("Object"))}return s.length>0&&(n+=`${s.length>1?"one of type":"of type"} ${qE(s,"or")}`,(i.length>0||a.length>0)&&(n+=" or ")),i.length>0&&(n+=`an instance of ${qE(i,"or")}`,a.length>0&&(n+=" or ")),a.length>0&&(a.length>1?n+=`one of ${qE(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`)),n+=`. Received ${UEe(r)}`,n},TypeError);Tr.ERR_INVALID_MODULE_SPECIFIER=xn("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);Tr.ERR_INVALID_PACKAGE_CONFIG=xn("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);Tr.ERR_INVALID_PACKAGE_TARGET=xn("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,s=void 0)=>{let i=typeof r=="string"&&!n&&r.length>0&&!r.startsWith("./");return t==="."?(Qn()(n===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`):`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`},Error);Tr.ERR_MODULE_NOT_FOUND=xn("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);Tr.ERR_NETWORK_IMPORT_DISALLOWED=xn("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);Tr.ERR_PACKAGE_IMPORT_NOT_DEFINED=xn("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);Tr.ERR_PACKAGE_PATH_NOT_EXPORTED=xn("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);Tr.ERR_UNSUPPORTED_DIR_IMPORT=xn("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES module
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):ai().emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${i.slice(a.length)}", imported from ${o}.
Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function _O(e){try{return(0,zl().statSync)(e)}catch{}}function VE(e){let t=(0,zl().statSync)(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r==null?!1:r}function lTe(e,t,r){let n;if(t.main!==void 0){if(n=new(Ie()).URL(t.main,e),VE(n))return n;let a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],o=-1;for(;++o<a.length&&(n=new(Ie()).URL(a[o],e),!VE(n));)n=void 0;if(n)return TO(n,e,r,t.main),n}let s=["./index.js","./index.json","./index.node"],i=-1;for(;++i<s.length&&(n=new(Ie()).URL(s[i],e),!VE(n));)n=void 0;if(n)return TO(n,e,r,t.main),n;throw new HE((0,Ie().fileURLToPath)(new(Ie()).URL(".",e)),(0,Ie().fileURLToPath)(r))}function uTe(e,t,r){if(aTe.exec(e.pathname)!==null)throw new Bf(e.pathname,'must not include encoded "/" or "\\" characters',(0,Ie().fileURLToPath)(t));let n;try{n=(0,Ie().fileURLToPath)(e)}catch(i){let a=i;throw Object.defineProperty(a,"input",{value:String(e)}),Object.defineProperty(a,"module",{value:String(t)}),a}let s=_O(n.endsWith("/")?n.slice(-1):n);if(s&&s.isDirectory()){let i=new sTe(n,(0,Ie().fileURLToPath)(t));throw i.url=String(e),i}if(!s||!s.isFile()){let i=new HE(n||e.pathname,t&&(0,Ie().fileURLToPath)(t),!0);throw i.url=String(e),i}if(!r){let i=(0,zl().realpathSync)(n),{search:a,hash:o}=e;e=(0,Ie().pathToFileURL)(i+(n.endsWith(Nf().sep)?"/":"")),e.search=a,e.hash=o}return e}function cTe(e,t,r){return new rTe(e,t&&(0,Ie().fileURLToPath)(new(Ie()).URL(".",t)),(0,Ie().fileURLToPath)(r))}function $E(e,t,r){return new nTe((0,Ie().fileURLToPath)(new(Ie()).URL(".",t)),e,r&&(0,Ie().fileURLToPath)(r))}function pTe(e,t,r,n,s){let i=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${(0,Ie().fileURLToPath)(r)}`;throw new Bf(e,i,s&&(0,Ie().fileURLToPath)(s))}function Yl(e,t,r,n,s){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new tTe((0,Ie().fileURLToPath)(new(Ie()).URL(".",r)),e,t,n,s&&(0,Ie().fileURLToPath)(s))}function fTe(e,t,r,n,s,i,a,o,l){if(t!==""&&!i&&e[e.length-1]!=="/")throw Yl(r,e,n,a,s);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let d=!1;try{new(Ie()).URL(e),d=!0}catch{}if(!d){let m=i?If.call(_f,e,()=>t):e+t;return OO(m,n,l)}}throw Yl(r,e,n,a,s)}if(yO.exec(e.slice(2))!==null)if(gO.exec(e.slice(2))===null){if(!o){let d=i?r.replace("*",()=>t):r+t,m=i?If.call(_f,e,()=>t):e;EO(m,d,r,n,a,s,!0)}}else throw Yl(r,e,n,a,s);let u=new(Ie()).URL(e,n),c=u.pathname,p=new(Ie()).URL(".",n).pathname;if(!c.startsWith(p))throw Yl(r,e,n,a,s);if(t==="")return u;if(yO.exec(t)!==null){let d=i?r.replace("*",()=>t):r+t;if(gO.exec(t)===null){if(!o){let m=i?If.call(_f,e,()=>t):e;EO(m,d,r,n,a,s,!1)}}else pTe(d,r,n,a,s)}return i?new(Ie()).URL(If.call(_f,u.href,()=>t)):new(Ie()).URL(t,u)}function dTe(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function uo(e,t,r,n,s,i,a,o,l){if(typeof t=="string")return fTe(t,r,n,e,s,i,a,o,l);if(Array.isArray(t)){let u=t;if(u.length===0)return null;let c,p=-1;for(;++p<u.length;){let d=u[p],m;try{m=uo(e,d,r,n,s,i,a,o,l)}catch(g){let f=g;if(c=f,f.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw g}if(m!==void 0){if(m===null){c=null;continue}return m}}if(c==null)return null;throw c}if(typeof t=="object"&&t!==null){let u=Object.getOwnPropertyNames(t),c=-1;for(;++c<u.length;){let p=u[c];if(dTe(p))throw new wO((0,Ie().fileURLToPath)(e),s,'"exports" cannot contain numeric property keys.')}for(c=-1;++c<u.length;){let p=u[c];if(p==="default"||l&&l.has(p)){let d=t[p],m=uo(e,d,r,n,s,i,a,o,l);if(m===void 0)continue;return m}}return null}if(t===null)return null;throw Yl(n,t,e,a,s)}function hTe(e,t,r){if(typeof e=="string"||Array.isArray(e))return!0;if(typeof e!="object"||e===null)return!1;let n=Object.getOwnPropertyNames(e),s=!1,i=0,a=-1;for(;++a<n.length;){let o=n[a],l=o===""||o[0]!==".";if(i++===0)s=l;else if(s!==l)throw new wO((0,Ie().fileURLToPath)(t),r,`"exports" cannot contain some keys starting
- If you want to resolve "${t}", use "module:${t}"`),(yield XE(e,"@babel/"+t)).error||(n.message+=`
- Did you mean "@babel/${t}"?`);let i=e==="preset"?"plugin":"preset";if((yield XE(i,t)).error||(n.message+=`
- Did you accidentally pass a ${i} as a ${e}?`),e==="plugin"){let a=r.replace("-proposal-","-transform-");a!==r&&!(yield a).error&&(n.message+=`
- Did you mean "${a}"?`)}throw n.message+=`
Make sure that all the Babel plugins and presets you are using
are defined as dependencies or devDependencies in your package.json
file. It's possible that the missing plugin is loaded by a preset
you are using that forgot to add the plugin to its dependencies: you
can workaround this problem by explicitly adding the missing package
to your top-level package.json.
`,n}function jTe(e,t){try{return t?{error:null,value:(((r,n)=>(r=r.split("."),n=n.split("."),+r[0]>+n[0]||r[0]==n[0]&&+r[1]>=+n[1]))(process.versions.node,"8.9")?require.resolve:(r,{paths:[n]},s=require("module"))=>{let i=s._findPath(r,s._nodeModulePaths(n).concat(n));if(i)return i;throw i=new Error(`Cannot resolve module '${r}'`),i.code="MODULE_NOT_FOUND",i})(e,{paths:[t]})}:{error:null,value:require.resolve(e)}}catch(r){return{error:r,value:null}}}function MTe(e,t){try{return{error:null,value:(0,PTe.resolve)(e,t)}}catch(r){return{error:r,value:null}}}function FO(e,t,r){let n=qO(e,t),s=n.next();for(;!s.done;)s=n.next(jTe(s.value,r));return{loader:"require",filepath:s.value}}function RTe(e,t,r){let n=(0,YE().pathToFileURL)(JE().join(r,"./babel-virtual-resolve-base.js")).href,s=qO(e,t),i=s.next();for(;!i.done;)i=s.next(MTe(i.value,n));return{loader:"auto",filepath:(0,YE().fileURLToPath)(i.value)}}function UO(e,t,r,n){if(!jO.supportsESM||!n)return FO(e,t,r);try{let s=RTe(e,t,r);if(!(0,MO().existsSync)(s.filepath))throw Object.assign(new Error(`Could not resolve "${t}" in file ${r}.`),{type:"MODULE_NOT_FOUND"});return s}catch(s){try{return FO(e,t,r)}catch(i){throw s.type==="MODULE_NOT_FOUND"?s:i.type==="MODULE_NOT_FOUND"?i:s}}}Ff=new Set;var Ff;function*VO(e,t,r){if(!(yield*(0,zE.isAsync)())&&Ff.has(r))throw new Error(`Reentrant ${e} detected trying to load "${r}". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle. We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.`);try{return Ff.add(r),yield*(0,jO.default)(r,t,`You appear to be using a native ECMAScript module ${e}, which is only supported when running Babel asynchronously or when using the Node.js \`--experimental-require-module\` flag.`,`You appear to be using a ${e} that contains top-level await, which is only supported when running Babel asynchronously.`,!0)}catch(n){throw n.message=`[BABEL]: ${n.message} (While processing: ${r})`,n}finally{Ff.delete(r)}}});var Cl=x(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});Object.defineProperty(sn,"ROOT_CONFIG_FILENAMES",{enumerable:!0,get:function(){return co.ROOT_CONFIG_FILENAMES}});Object.defineProperty(sn,"findConfigUpwards",{enumerable:!0,get:function(){return co.findConfigUpwards}});Object.defineProperty(sn,"findPackageData",{enumerable:!0,get:function(){return qTe.findPackageData}});Object.defineProperty(sn,"findRelativeConfig",{enumerable:!0,get:function(){return co.findRelativeConfig}});Object.defineProperty(sn,"findRootConfig",{enumerable:!0,get:function(){return co.findRootConfig}});Object.defineProperty(sn,"loadConfig",{enumerable:!0,get:function(){return co.loadConfig}});Object.defineProperty(sn,"loadPlugin",{enumerable:!0,get:function(){return Lf.loadPlugin}});Object.defineProperty(sn,"loadPreset",{enumerable:!0,get:function(){return Lf.loadPreset}});Object.defineProperty(sn,"resolvePlugin",{enumerable:!0,get:function(){return Lf.resolvePlugin}});Object.defineProperty(sn,"resolvePreset",{enumerable:!0,get:function(){return Lf.resolvePreset}});Object.defineProperty(sn,"resolveShowConfigPath",{enumerable:!0,get:function(){return co.resolveShowConfigPath}});var qTe=iD(),co=uO(),Lf=$O()});var KO=x(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.transform=void 0;po.transformAsync=WTe;po.transformSync=$Te;function WO(){let e=en();return WO=function(){return e},e}var UTe=Za(),VTe=af(),jf=ds(),Mf=WO()(function*(t,r){let n=yield*(0,UTe.default)(r);return n===null?null:yield*(0,VTe.run)(n,t)}),IBe=po.transform=function(t,r,n){let s,i;if(typeof r=="function"?(i=r,s=void 0):(s=r,i=n),i===void 0)return(0,jf.beginHiddenCallStack)(Mf.sync)(t,s);(0,jf.beginHiddenCallStack)(Mf.errback)(t,s,i)};function $Te(...e){return(0,jf.beginHiddenCallStack)(Mf.sync)(...e)}function WTe(...e){return(0,jf.beginHiddenCallStack)(Mf.async)(...e)}});var GO=x(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.transformFromAst=void 0;fo.transformFromAstAsync=XTe;fo.transformFromAstSync=GTe;functio
DECORATOR(CLASS_REF = INNER) || CLASS_REF;
`),Kxe=(0,ge.template)(`
CLASS_REF.prototype;
`),Hxe=(0,ge.template)(`
Object.getOwnPropertyDescriptor(TARGET, PROPERTY);
`),Gxe=(0,ge.template)(`
(TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {
enumerable: true,
configurable: true,
writable: true,
initializer: function(){
return TEMP;
}
})
`),iT=new WeakSet;function N3(e){let r=(e.isClass()?[e,...e.get("body.body")]:e.get("properties")).reduce((n,s)=>n.concat(s.node.decorators||[]),[]).filter(n=>!ge.types.isIdentifier(n.expression));if(r.length!==0)return ge.types.sequenceExpression(r.map(n=>{let s=n.expression,i=n.expression=e.scope.generateDeclaredUidIdentifier("dec");return ge.types.assignmentExpression("=",i,s)}).concat([e.node]))}function Xxe(e){if(!B3(e.node))return;let t=e.node.decorators||[];e.node.decorators=null;let r=e.scope.generateDeclaredUidIdentifier("class");return t.map(n=>n.expression).reverse().reduce(function(n,s){return Wxe({CLASS_REF:ge.types.cloneNode(r),DECORATOR:ge.types.cloneNode(s),INNER:n}).expression},e.node)}function B3(e){var t;return!!((t=e.decorators)!=null&&t.length)}function Yxe(e,t){if(aT(e.node.body.body))return k3(e,t,e.node.body.body)}function aT(e){return e.some(t=>{var r;return(r=t.decorators)==null?void 0:r.length})}function Jxe(e,t){if(aT(e.node.properties))return k3(e,t,e.node.properties.filter(r=>r.type!=="SpreadElement"))}function k3(e,t,r){let n=e.scope.generateDeclaredUidIdentifier(e.isClass()?"class":"obj"),s=r.reduce(function(i,a){let o=[];if(a.decorators!=null&&(o=a.decorators,a.decorators=null),o.length===0)return i;if(a.computed)throw e.buildCodeFrameError("Computed method/property decorators are not yet supported.");let l=ge.types.isLiteral(a.key)?a.key:ge.types.stringLiteral(a.key.name),u=e.isClass()&&!a.static?Kxe({CLASS_REF:n}).expression:n;if(ge.types.isClassProperty(a,{static:!1})){let c=e.scope.generateDeclaredUidIdentifier("descriptor"),p=a.value?ge.types.functionExpression(null,[],ge.types.blockStatement([ge.types.returnStatement(a.value)])):ge.types.nullLiteral();a.value=ge.types.callExpression(t.addHelper("initializerWarningHelper"),[c,ge.types.thisExpression()]),iT.add(a.value),i.push(ge.types.assignmentExpression("=",ge.types.cloneNode(c),ge.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[ge.types.cloneNode(u),ge.types.cloneNode(l),ge.types.arrayExpression(o.map(d=>ge.types.cloneNode(d.expression))),ge.types.objectExpression([ge.types.objectProperty(ge.types.identifier("configurable"),ge.types.booleanLiteral(!0)),ge.types.objectProperty(ge.types.identifier("enumerable"),ge.types.booleanLiteral(!0)),ge.types.objectProperty(ge.types.identifier("writable"),ge.types.booleanLiteral(!0)),ge.types.objectProperty(ge.types.identifier("initializer"),p)])])))}else i.push(ge.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[ge.types.cloneNode(u),ge.types.cloneNode(l),ge.types.arrayExpression(o.map(c=>ge.types.cloneNode(c.expression))),ge.types.isObjectProperty(a)||ge.types.isClassProperty(a,{static:!0})?Gxe({TEMP:e.scope.generateDeclaredUidIdentifier("init"),TARGET:ge.types.cloneNode(u),PROPERTY:ge.types.cloneNode(l)}).expression:Hxe({TARGET:ge.types.cloneNode(u),PROPERTY:ge.types.cloneNode(l)}).expression,ge.types.cloneNode(u)]));return i},[]);return ge.types.sequenceExpression([ge.types.assignmentExpression("=",ge.types.cloneNode(n),e.node),ge.types.sequenceExpression(s),ge.types.cloneNode(n)])}function O3({node:e,scope:t}){if(!B3(e)&&!aT(e.body.body))return;let r=e.id?ge.types.cloneNode(e.id):t.generateUidIdentifier("class");return ge.types.variableDeclaration("let",[ge.types.variableDeclarator(r,ge.types.toExpression(e))])}var zxe={ExportDefaultDeclaration(e){let t=e.get("declaration");if(!t.isClassDeclaration())return;let r=O3(t);if(r){let[n]=e.replaceWithMultiple([r,ge.types.exportNamedDeclaration(null,[ge.types.exportSpecifier(ge.types.cloneNode(r.declarations[0].id),ge.types.identifier("default"))])]);t.node.id||e.scope.registerDeclaration(n)}},ClassDeclaration(e){let t=O3(e);if(t){let[r]=e.replaceWith(t),n=r.get("declarations.0"),s=n.node.id,i=e.scope.getOwnBinding(s.name);i.identifier=s,i.path=n}},ClassExpression(e,t){let r=N3(e)||Xxe(e)||Yxe(e,t);r&&e.replaceWith(r)},ObjectExpression(e,t){let r=N3(e)||Jxe(e,t);r&&e.replaceWith(r)},AssignmentExpression(e,t){iT.has(e.node.right)&&e.replaceWith(ge.types.callExpression(t.addHelper("initializerDefineProperty"),[ge.types.
Array.prototype.slice.call(${t})
`;let i,a=[t];return typeof r=="number"?(a.push(K.types.numericLiteral(r)),i="slicedToArray"):i="toArray",s&&(a.unshift(n.path.hub.addHelper(i)),i="maybeArrayLike"),K.types.callExpression(n.path.hub.addHelper(i),a)}}pushAssignmentPattern({left:t,right:r},n){if(R3(n)){this.push(t,r);return}let s=this.scope.generateUidIdentifierBasedOnNode(n);this.nodes.push(this.buildVariableDeclaration(s,n));let i=K.types.conditionalExpression(K.types.binaryExpression("===",K.types.cloneNode(s),this.scope.buildUndefinedNode()),r,K.types.cloneNode(s));if(K.types.isPattern(t)){let a,o;this.kind==="const"||this.kind==="let"?(a=this.scope.generateUidIdentifier(s.name),o=this.buildVariableDeclaration(a,i)):(a=s,o=K.types.expressionStatement(K.types.assignmentExpression("=",K.types.cloneNode(s),i))),this.nodes.push(o),this.push(t,a)}else this.nodes.push(this.buildVariableAssignment(t,i))}pushObjectRest(t,r,n,s){let i=$3(t.properties.slice(0,s),r,this.scope,a=>this.addHelper(a),this.objectRestNoSymbols,this.useBuiltIns);this.nodes.push(this.buildVariableAssignment(n.argument,i))}pushObjectProperty(t,r){K.types.isLiteral(t.key)&&(t.computed=!0);let n=t.value,s=K.types.memberExpression(K.types.cloneNode(r),t.key,t.computed);K.types.isPattern(n)?this.push(n,s):this.nodes.push(this.buildVariableAssignment(n,s))}pushObjectPattern(t,r){if(!t.properties.length){this.nodes.push(K.types.expressionStatement(K.types.callExpression(this.addHelper("objectDestructuringEmpty"),R3(r)?[]:[r])));return}if(t.properties.length>1&&!this.scope.isStatic(r)){let n=this.scope.generateUidIdentifierBasedOnNode(r);this.nodes.push(this.buildVariableDeclaration(n,r)),r=n}if(tSe(t)){let n;for(let s=0;s<t.properties.length;s++){let i=t.properties[s];if(K.types.isRestElement(i))break;let a=i.key;if(i.computed&&!this.scope.isPure(a)){let o=this.scope.generateUidIdentifierBasedOnNode(a);this.nodes.push(this.buildVariableDeclaration(o,a)),n||(n=t=Object.assign({},t,{properties:t.properties.slice()})),n.properties[s]=Object.assign({},i,{key:o})}}}for(let n=0;n<t.properties.length;n++){let s=t.properties[n];K.types.isRestElement(s)?this.pushObjectRest(t,r,s,n):this.pushObjectProperty(s,r)}}canUnpackArrayPattern(t,r){if(!K.types.isArrayExpression(r))return!1;if(t.elements.length>r.elements.length)return;if(t.elements.length<r.elements.length&&!q3(t))return!1;for(let i of t.elements)if(!i||K.types.isMemberExpression(i))return!1;for(let i of r.elements)if(K.types.isSpreadElement(i)||K.types.isCallExpression(i)||K.types.isMemberExpression(i))return!1;let s={deopt:!1,bindings:K.types.getBindingIdentifiers(t)};try{K.types.traverse(r,rSe,s)}catch(i){if(i!==V3)throw i}return!s.deopt}pushUnpackedArrayPattern(t,r){let n=s=>s!=null?s:this.scope.buildUndefinedNode();for(let s=0;s<t.elements.length;s++){let i=t.elements[s];K.types.isRestElement(i)?this.push(i.argument,K.types.arrayExpression(r.elements.slice(s).map(n))):this.push(i,n(r.elements[s]))}}pushArrayPattern(t,r){if(r===null){this.nodes.push(K.types.expressionStatement(K.types.callExpression(this.addHelper("objectDestructuringEmpty"),[])));return}if(!t.elements)return;if(this.canUnpackArrayPattern(t,r)){this.pushUnpackedArrayPattern(t,r);return}let n=!q3(t)&&t.elements.length,s=this.toArray(r,n);K.types.isIdentifier(s)?r=s:(r=this.scope.generateUidIdentifierBasedOnNode(r),this.arrayRefSet.add(r.name),this.nodes.push(this.buildVariableDeclaration(r,s)));for(let i=0;i<t.elements.length;i++){let a=t.elements[i];if(!a)continue;let o;K.types.isRestElement(a)?(o=this.toArray(r),o=K.types.callExpression(K.types.memberExpression(o,K.types.identifier("slice")),[K.types.numericLiteral(i)]),this.push(a.argument,o)):(o=K.types.memberExpression(r,K.types.numericLiteral(i),!0),this.push(a,o))}}init(t,r){if(!K.types.isArrayExpression(r)&&!K.types.isMemberExpression(r)){let n=this.scope.maybeGenerateMemoised(r,!0);n&&(this.nodes.push(this.buildVariableDeclaration(n,K.types.cloneNode(r))),r=n)}return this.push(t,r),this.nodes}};function $3(e,t,r,n,s,i){let a=[],o=!0,l=!1;for(let c=0;c<e.length;c++){let p=e[c],d=p.key;K.types.isIdentifier(d)&&!
try {
var ${Re.types.cloneNode(o)} = ${a.addHelper("usingCtx")}();
${i.node.body}
} catch (_) {
${Re.types.cloneNode(o)}.e = _;
} finally {
${l?Re.types.awaitExpression(c):c}
}
`;Re.types.inherits(p,i.node);let{parentPath:d}=i;d.isFunction()||d.isTryStatement()||d.isCatchClause()?i.replaceWith(Re.types.blockStatement([p])):i.isStaticBlock()?i.node.body=[p]:i.replaceWith(p)}},s=Re.traverse.visitors.merge([n,{Function(i){i.skip()}}]);return{name:"transform-explicit-resource-management",manipulateOptions:(i,a)=>a.plugins.push("explicitResourceManagement"),visitor:Re.traverse.visitors.merge([n,{Program(i){if(t.clear(),i.node.sourceType!=="module"||!i.node.body.some(r))return;let a=[];for(let o of i.get("body")){if(o.isFunctionDeclaration()||o.isImportDeclaration())continue;let l=o.node,u=!0;if(o.isExportDefaultDeclaration()){let{declaration:c}=o.node,p;if(Re.types.isClassDeclaration(c))p=c.id,c.id=Re.types.cloneNode(p),c=Re.types.toExpression(c);else if(!Re.types.isExpression(c))continue;p!=null||(p=i.scope.generateUidIdentifier("_default")),a.push(Re.types.variableDeclaration("var",[Re.types.variableDeclarator(p,c)])),o.replaceWith(Re.types.exportNamedDeclaration(null,[Re.types.exportSpecifier(Re.types.cloneNode(p),Re.types.identifier("default"))]));continue}if(o.isExportNamedDeclaration()){if(l=o.node.declaration,!l||Re.types.isFunction(l))continue;o.replaceWith(Re.types.exportNamedDeclaration(null,Object.keys(Re.types.getOuterBindingIdentifiers(l,!1)).map(c=>Re.types.exportSpecifier(Re.types.identifier(c),Re.types.identifier(c))))),u=!1}else if(o.isExportDeclaration())continue;if(Re.types.isClassDeclaration(l)){let{id:c}=l;l.id=Re.types.cloneNode(c),a.push(Re.types.variableDeclaration("var",[Re.types.variableDeclarator(c,Re.types.toExpression(l))]))}else Re.types.isVariableDeclaration(l)?(l.kind==="using"?t.set(o.node,0):l.kind==="await using"&&t.set(o.node,1),l.kind="var",a.push(l)):a.push(o.node);u&&o.remove()}i.pushContainer("body",Re.types.blockStatement(a))},Function(i,a){i.node.async&&i.traverse(s,a)}}])}})});var G3=x(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.default=void 0;var cSe=Ft(),H3=io(),lke=Qf.default=(0,cSe.declare)((e,t)=>(e.assertVersion(7),(0,H3.createClassFeaturePlugin)({name:"transform-class-properties",api:e,feature:H3.FEATURES.fields,loose:t.loose,manipulateOptions(r,n){n.plugins.push("classProperties","classPrivateProperties")}})))});var Y3=x(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.default=void 0;var pSe=Ft(),X3=io();function fSe(e,t){let n,s=1;do n="_",s>1&&(n+=s),s++;while(t.has(n));return n}var cke=Zf.default=(0,pSe.declare)(({types:e,template:t,assertVersion:r})=>(r("^7.12.0 || >8.0.0-alpha <8.0.0-beta"),{name:"transform-class-static-block",manipulateOptions:(n,s)=>s.plugins.push("classStaticBlock"),pre(){(0,X3.enableFeature)(this.file,X3.FEATURES.staticBlocks,!1)},visitor:{ClassBody(n){let{scope:s}=n,i=new Set,a=n.get("body");for(let o of a)o.isPrivate()&&i.add(o.get("key.id").node.name);for(let o of a){if(!o.isStaticBlock())continue;let l=fSe(s,i);i.add(l);let u=e.privateName(e.identifier(l)),c,p=o.node.body;p.length===1&&e.isExpressionStatement(p[0])?c=e.inheritsComments(p[0].expression,p[0]):c=t.expression.ast`(() => { ${p} })()`,o.replaceWith(e.classPrivateProperty(u,c,[],!0))}}}}))});var z3=x(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.default=void 0;var dSe=Ft();function J3({node:e}){var t;let{extra:r}=e;r!=null&&(t=r.raw)!=null&&t.includes("_")&&(r.raw=r.raw.replace(/_/g,""))}var fke=ed.default=(0,dSe.declare)(e=>(e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta"),{name:"transform-numeric-separator",manipulateOptions:(t,r)=>r.plugins.push("numericSeparator"),visitor:{NumericLiteral:J3,BigIntLiteral:J3}}))});var Q3=x(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.default=void 0;var hSe=Ft(),ws=vt(),hke=td.default=(0,hSe.declare)(e=>(e.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta"),{name:"transform-logical-assignment-operators",manipulateOptions:(t,r)=>r.plugins.push("logicalAssignment"),visitor:{AssignmentExpression(t){let{node:r,scope:n}=t,{operator:s,left:i,right:a}=r,o=s.slice(0,-1);if(!ws.types.LOGICAL_OPERATORS.includes(o))return
fileName: ${e},
lineNumber: ${n},
columnNumber: ${s},
}`}function pB(e,t){let r=`transform-react-jsx-${t.slice(2)}`;return e.buildCodeFrameError(`Duplicate ${t} prop found. You are most likely using the deprecated ${r} Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.`)}});var dB=x(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.default=void 0;var KSe=fB(),wke=cd.default=(0,KSe.default)({name:"transform-react-jsx",development:!1})});var YSe={};bT(YSe,{babelParse:()=>XSe,babelTransform:()=>GSe,codeFrameColumns:()=>bB.codeFrameColumns,declare:()=>EB.declare,genMapping:()=>Hf,traverse:()=>HSe,types:()=>TB.types});module.exports=DB(YSe);var hB=pi(require("path")),pd=pi(vt()),mB=pi(zt()),bB=pi(xa()),EB=pi(Ft()),TB=pi(vt());var Hf={};bT(Hf,{GenMapping:()=>C3,addMapping:()=>Ixe,addSegment:()=>wxe,allMappings:()=>Lxe,fromMap:()=>Fxe,maybeAddMapping:()=>Nxe,maybeAddSegment:()=>_xe,setIgnore:()=>Bxe,setSourceContent:()=>Oxe,toDecodedMap:()=>D3,toEncodedMap:()=>kxe});var i3=44,ixe=59,t3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a3=new Uint8Array(64),o3=new Uint8Array(128);for(let e=0;e<t3.length;e++){let t=t3.charCodeAt(e);a3[e]=t,o3[t]=e}function Ql(e,t){let r=0,n=0,s=0;do{let a=e.next();s=o3[a],r|=(s&31)<<n,n+=5}while(s&32);let i=r&1;return r>>>=1,i&&(r=-2147483648|-r),t+r}function Zl(e,t,r){let n=t-r;n=n<0?-n<<1|1:n<<1;do{let s=n&31;n>>>=5,n>0&&(s|=32),e.write(a3[s])}while(n>0);return t}function r3(e,t){return e.pos>=t?!1:e.peek()!==i3}var n3=1024*16,s3=typeof TextDecoder!="undefined"?new TextDecoder:typeof Buffer!="undefined"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}},axe=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(n3)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===n3&&(this.out+=s3.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:r}=this;return r>0?t+s3.decode(e.subarray(0,r)):t}},oxe=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:r}=this,n=t.indexOf(e,r);return n===-1?t.length:n}};function l3(e){let{length:t}=e,r=new oxe(e),n=[],s=0,i=0,a=0,o=0,l=0;do{let u=r.indexOf(";"),c=[],p=!0,d=0;for(s=0;r.pos<u;){let m;s=Ql(r,s),s<d&&(p=!1),d=s,r3(r,u)?(i=Ql(r,i),a=Ql(r,a),o=Ql(r,o),r3(r,u)?(l=Ql(r,l),m=[s,i,a,o,l]):m=[s,i,a,o]):m=[s],c.push(m),r.pos++}p||lxe(c),n.push(c),r.pos=u+1}while(r.pos<=t);return n}function lxe(e){e.sort(uxe)}function uxe(e,t){return e[0]-t[0]}function rT(e){let t=new axe,r=0,n=0,s=0,i=0;for(let a=0;a<e.length;a++){let o=e[a];if(a>0&&t.write(ixe),o.length===0)continue;let l=0;for(let u=0;u<o.length;u++){let c=o[u];u>0&&t.write(i3),l=Zl(t,c[0],l),c.length!==1&&(r=Zl(t,c[1],r),n=Zl(t,c[2],n),s=Zl(t,c[3],s),c.length!==4&&(i=Zl(t,c[4],i)))}}return t.flush()}var cxe=/^[\w+.-]+:\/\//,pxe=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,fxe=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i,Zt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Zt||(Zt={}));function dxe(e){return cxe.test(e)}function hxe(e){return e.startsWith("//")}function p3(e){return e.startsWith("/")}function mxe(e){return e.startsWith("file:")}function u3(e){return/^[.?#]/.test(e)}function $f(e){let t=pxe.exec(e);return f3(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function yxe(e){let t=fxe.exec(e),r=t[2];return f3("file:","",t[1]||"","",p3(r)?r:"/"+r,t[3]||"",t[4]||"")}function f3(e,t,r,n,s,i,a){return{scheme:e,user:t,host:r,port:n,path:s,query:i,hash:a,type:Zt.Absolute}}function c3(e){if(hxe(e)){let r=$f("http:"+e);return r.scheme="",r.type=Zt.SchemeRelative,r}if(p3(e)){let r=$f("http://foo.com"+e);return r.scheme="",r.h