dwinzo-sdet/node_modules/playwright/lib/transform/babelBundleImpl.js

2033 lines
1.3 MiB
JavaScript
Raw Normal View History

2025-03-27 11:21:02 +00:00
"use strict";var D3=Object.create;var kl=Object.defineProperty;var I3=Object.getOwnPropertyDescriptor;var O3=Object.getOwnPropertyNames;var _3=Object.getPrototypeOf,N3=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),k3=(e,t)=>{for(var r in t)kl(e,r,{get:t[r],enumerable:!0})},U1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of O3(t))!N3.call(e,s)&&s!==r&&kl(e,s,{get:()=>t[s],enumerable:!(n=I3(t,s))||n.enumerable});return e};var Vs=(e,t,r)=>(r=e!=null?D3(_3(e)):{},U1(t||!e||!e.__esModule?kl(r,"default",{value:e,enumerable:!0}):r,e)),B3=e=>U1(kl({},"__esModule",{value:!0}),e);var Jp=E(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Var=He.User=He.Statement=He.SpreadProperty=He.Scope=He.RestProperty=He.ReferencedMemberExpression=He.ReferencedIdentifier=He.Referenced=He.Pure=He.NumericLiteralTypeAnnotation=He.Generated=He.ForAwaitStatement=He.Flow=He.Expression=He.ExistentialTypeParam=He.BlockScoped=He.BindingIdentifier=void 0;var HSe=He.ReferencedIdentifier=["Identifier","JSXIdentifier"],YSe=He.ReferencedMemberExpression=["MemberExpression"],XSe=He.BindingIdentifier=["Identifier"],JSe=He.Statement=["Statement"],zSe=He.Expression=["Expression"],QSe=He.Scope=["Scopable","Pattern"],ZSe=He.Referenced=null,exe=He.BlockScoped=null,txe=He.Var=["VariableDeclaration"],rxe=He.User=null,nxe=He.Generated=null,sxe=He.Pure=null,ixe=He.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],axe=He.RestProperty=["RestElement"],oxe=He.SpreadProperty=["RestElement"],lxe=He.ExistentialTypeParam=["ExistsTypeAnnotation"],uxe=He.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],cxe=He.ForAwaitStatement=["ForOfStatement"]});var Bl=E(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.default=F3;function F3(e,t){let r=Object.keys(t);for(let n of r)if(e[n]!==t[n])return!1;return!0}});var Ma=E(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.default=j3;var V1=new Set;function j3(e,t,r=""){if(V1.has(e))return;V1.add(e);let{internal:n,trace:s}=L3(1,2);n||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
${s}`)}function L3(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 Mt=E(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.isAccessor=zj;T.isAnyTypeAnnotation=bB;T.isArgumentPlaceholder=HF;T.isArrayExpression=M3;T.isArrayPattern=jk;T.isArrayTypeAnnotation=EB;T.isArrowFunctionExpression=Lk;T.isAssignmentExpression=R3;T.isAssignmentPattern=Fk;T.isAwaitExpression=aB;T.isBigIntLiteral=lB;T.isBinary=vj;T.isBinaryExpression=q3;T.isBindExpression=YF;T.isBlock=xj;T.isBlockParent=Sj;T.isBlockStatement=W3;T.isBooleanLiteral=fk;T.isBooleanLiteralTypeAnnotation=TB;T.isBooleanTypeAnnotation=vB;T.isBreakStatement=K3;T.isCallExpression=G3;T.isCatchClause=H3;T.isClass=Yj;T.isClassAccessorProperty=dB;T.isClassBody=Mk;T.isClassDeclaration=qk;T.isClassExpression=Rk;T.isClassImplements=xB;T.isClassMethod=Qk;T.isClassPrivateMethod=mB;T.isClassPrivateProperty=hB;T.isClassProperty=pB;T.isCompletionStatement=Cj;T.isConditional=wj;T.isConditionalExpression=Y3;T.isContinueStatement=X3;T.isDebuggerStatement=J3;T.isDecimalLiteral=t8;T.isDeclaration=jj;T.isDeclareClass=PB;T.isDeclareExportAllDeclaration=kB;T.isDeclareExportDeclaration=NB;T.isDeclareFunction=AB;T.isDeclareInterface=CB;T.isDeclareModule=wB;T.isDeclareModuleExports=DB;T.isDeclareOpaqueType=OB;T.isDeclareTypeAlias=IB;T.isDeclareVariable=_B;T.isDeclaredPredicate=BB;T.isDecorator=JF;T.isDirective=V3;T.isDirectiveLiteral=$3;T.isDoExpression=zF;T.isDoWhileStatement=z3;T.isEmptyStatement=Q3;T.isEmptyTypeAnnotation=KB;T.isEnumBody=sL;T.isEnumBooleanBody=EF;T.isEnumBooleanMember=xF;T.isEnumDeclaration=bF;T.isEnumDefaultedMember=CF;T.isEnumMember=iL;T.isEnumNumberBody=vF;T.isEnumNumberMember=PF;T.isEnumStringBody=TF;T.isEnumStringMember=AF;T.isEnumSymbolBody=SF;T.isExistsTypeAnnotation=FB;T.isExportAllDeclaration=Uk;T.isExportDeclaration=Xj;T.isExportDefaultDeclaration=Vk;T.isExportDefaultSpecifier=QF;T.isExportNamedDeclaration=$k;T.isExportNamespaceSpecifier=uB;T.isExportSpecifier=Wk;T.isExpression=Ej;T.isExpressionStatement=Z3;T.isExpressionWrapper=Oj;T.isFile=ek;T.isFlow=Zj;T.isFlowBaseAnnotation=tL;T.isFlowDeclaration=rL;T.isFlowPredicate=nL;T.isFlowType=eL;T.isFor=_j;T.isForInStatement=tk;T.isForOfStatement=Kk;T.isForStatement=rk;T.isForXStatement=Nj;T.isFunction=kj;T.isFunctionDeclaration=nk;T.isFunctionExpression=sk;T.isFunctionParent=Bj;T.isFunctionTypeAnnotation=jB;T.isFunctionTypeParam=LB;T.isGenericTypeAnnotation=MB;T.isIdentifier=ik;T.isIfStatement=ak;T.isImmutable=Uj;T.isImport=oB;T.isImportAttribute=XF;T.isImportDeclaration=Gk;T.isImportDefaultSpecifier=Hk;T.isImportExpression=Jk;T.isImportNamespaceSpecifier=Yk;T.isImportOrExportDeclaration=$1;T.isImportSpecifier=Xk;T.isIndexedAccessType=wF;T.isInferredPredicate=RB;T.isInterfaceDeclaration=UB;T.isInterfaceExtends=qB;T.isInterfaceTypeAnnotation=VB;T.isInterpreterDirective=U3;T.isIntersectionTypeAnnotation=$B;T.isJSX=aL;T.isJSXAttribute=IF;T.isJSXClosingElement=OF;T.isJSXClosingFragment=$F;T.isJSXElement=_F;T.isJSXEmptyExpression=NF;T.isJSXExpressionContainer=kF;T.isJSXFragment=UF;T.isJSXIdentifier=FF;T.isJSXMemberExpression=jF;T.isJSXNamespacedName=LF;T.isJSXOpeningElement=MF;T.isJSXOpeningFragment=VF;T.isJSXSpreadAttribute=RF;T.isJSXSpreadChild=BF;T.isJSXText=qF;T.isLVal=Mj;T.isLabeledStatement=ok;T.isLiteral=qj;T.isLogicalExpression=dk;T.isLoop=Dj;T.isMemberExpression=hk;T.isMetaProperty=zk;T.isMethod=$j;T.isMiscellaneous=oL;T.isMixedTypeAnnotation=WB;T.isModuleDeclaration=yL;T.isModuleExpression=r8;T.isModuleSpecifier=Jj;T.isNewExpression=mk;T.isNoop=WF;T.isNullLiteral=ck;T.isNullLiteralTypeAnnotation=SB;T.isNullableTypeAnnotation=GB;T.isNumberLiteral=pL;T.isNumberLiteralTypeAnnotation=HB;T.isNumberTypeAnnotation=YB;T.isNumericLiteral=uk;T.isObjectExpression=gk;T.isObjectMember=Wj;T.isObjectMethod=bk;T.isObjectPattern=Zk;T.isObjectProperty=Ek;T.isObjectTypeAnnotation=XB;T.isObjectTypeCallProperty=zB;T.isObjectTypeIndexer=QB;T.isObjectTypeInternalSlot=JB;T.isObjectTypeProperty=ZB;T.isObjectTypeSpreadProperty=eF;T.isOpaqueType=tF;T.isOptionalCallExpression=fB;T.isOptionalIndexedAccessType=DF;T.isOptionalMemberExpression=cB;T.isParenthesizedExpression=xk;T.isPattern=Hj
`,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,f=n=r):i.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function $L(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function WL(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}=hd(e,t,r,n,2,!1,a,i),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=av(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,f=e.slice(u,t+2).match(/^[0-7]+/)[0],p=parseInt(f,8);p>255&&(f=f.slice(0,-1),p=parseInt(f,8)),t+=f.length-1;let m=e.charCodeAt(t);if(f!=="0"||m===56||m===57){if(s)return o(null);i.strictNumericEscape(u,r,n)}return o(String.fromCharCode(p))}return o(String.fromCharCode(l))}}function hd(e,t,r,n,s,i,a,o){let l=t,u;return{n:u,pos:t}=iv(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 iv(e,t,r,n,s,i,a,o,l,u){let c=t,f=s===16?sv.hex:sv.decBinOct,p=s===16?Ll.hex:s===10?Ll.dec:s===8?Ll.oct:Ll.bin,m=!1,b=0;for(let d=0,y=i==null?1/0:i;d<y;++d){let v=e.charCodeAt(t),I;if(v===95&&o!=="bail"){let D=e.charCodeAt(t-1),O=e.charCodeAt(t+1);if(o){if(Number.isNaN(O)||!p(O)||f.has(D)||f.has(O)){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(v>=97?I=v-97+10:v>=65?I=v-65+10:UL(v)?I=v-48:I=1/0,I>=s){if(I<=9&&u)return{n:null,pos:t};if(I<=9&&l.invalidDigit(t,r,n,s))I=0;else if(a)I=0,m=!0;else break}++t,b=b*s+I}return t===c||i!=null&&t-c!==i||m?{n:null,pos:t}:{n:b,pos:t}}function av(e,t,r,n,s,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=hd(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}=hd(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}});var ss=E(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.UPDATE_OPERATORS=Me.UNARY_OPERATORS=Me.STRING_UNARY_OPERATORS=Me.STATEMENT_OR_BLOCK_KEYS=Me.NUMBER_UNARY_OPERATORS=Me.NUMBER_BINARY_OPERATORS=Me.NOT_LOCAL_BINDING=Me.LOGICAL_OPERATORS=Me.INHERIT_KEYS=Me.FOR_INIT_KEYS=Me.FLATTENABLE_KEYS=Me.EQUALITY_BINARY_OPERATORS=Me.COMPARISON_BINARY_OPERATORS=Me.COMMENT_KEYS=Me.BOOLEAN_UNARY_OPERATORS=Me.BOOLEAN_NUMBER_BINARY_OPERATORS=Me.BOOLEAN_BINARY_OPERATORS=Me.BLOCK_SCOPED_SYMBOL=Me.BINARY_OPERATORS=Me.ASSIGNMENT_OPERATORS=void 0;var Ixe=Me.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],Oxe=Me.FLATTENABLE_KEYS=["body","expressions"],_xe=Me.FOR_INIT_KEYS=["left","init"],Nxe=Me.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],KL=Me.LOGICAL_OPERATORS=["||","&&","??"],kxe=Me.UPDATE_OPERATORS=["++","--"],GL=Me.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],HL=Me.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],YL=Me.COMPARISON_BINARY_OPERATORS=[...HL,"in","instanceof"],XL=Me.BOOLEAN_BINARY_OPERATORS=[...YL,...GL],lv=Me.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Bxe=Me.BINARY_OPERATORS=["+",...lv,...XL,"|>"],Fxe=Me.ASSIGNMENT_OPERATORS=["=","+=",...lv.map(e=>e+"="),...KL.map(e=>e+"=")],JL=Me.BOOLEAN_UNARY_OPERATORS=["delete","!"],zL=Me.NUMBER_UNARY_OPERATORS=["+","-","~"],QL=Me.STRING_UNARY_OPERATORS=["typeof"],jxe=Me.UNARY_OPERATORS=["void","throw",...JL,...zL,...QL],Lxe=Me.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},Mxe=Me.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),Rxe=Me.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var wn=E(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.VISITOR_KEYS=it.NODE_PARENT_VALIDATIONS=it.NODE_FIELDS=it.FLIPPED_ALIAS_KEYS=it.DEPRECATED_KEYS=it.BUILDER_KEYS=it.ALIAS_KEYS=void 0;it.arrayOf=cv;it.arrayOfType=fv;it.assertEach=pv;it.assertNodeOrValueType=c4;it.assertNodeType=yd;it.assertOneOf=u4;it.assertOptionalChainStart=p4;it.assertShape=f4;it.assertValueType=Ed;it.chain=dv;it.default=hv;it.defineAliasedType=m4;it.typeIs=ql;it.validate=bd;
${i.join(`
`)}`)}return t.shapeOf=e,t}function p4(){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 dv(...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 d4=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],h4=["default","optional","deprecated","validate"],gd={};function m4(...e){return(t,r={})=>{let n=r.aliases;if(!n){var s,i;r.inherits&&(n=(s=gd[r.inherits].aliases)==null?void 0:s.slice()),(i=n)!=null||(n=[]),r.aliases=n}let a=e.filter(o=>!n.includes(o));n.unshift(...a),hv(t,r)}}function hv(e,t={}){let r=t.inherits&&gd[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(d4.indexOf(o)===-1)throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(n4[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.indexOf(o)===-1&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=Ed(Ml(l.default)));for(let u of Object.keys(l))if(h4.indexOf(u)===-1)throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}ZL[e]=t.visitor=s,r4[e]=t.builder=a,t4[e]=t.fields=n,e4[e]=t.aliases=i,i.forEach(o=>{md[o]=md[o]||[],md[o].push(e)}),t.validate&&(s4[e]=t.validate),gd[e]=t}});var Td=E(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.patternLikeCommon=vr.functionTypeAnnotationCommon=vr.functionDeclarationCommon=vr.functionCommon=vr.classMethodOrPropertyCommon=vr.classMethodOrDeclareMethodCommon=void 0;var ur=Ii(),y4=_i(),mv=Oi(),g4=ov(),Ga=ss(),h=wn(),Q=(0,h.defineAliasedType)("Standardized");Q("ArrayExpression",{fields:{elements:{validate:(0,h.chain)((0,h.assertValueType)("array"),(0,h.assertEach)((0,h.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});Q("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,h.assertValueType)("string");let e=(0,h.assertOneOf)(...Ga.ASSIGNMENT_OPERATORS),t=(0,h.assertOneOf)("=");return function(r,n,s){((0,ur.default)("Pattern",r.left)?t:e)(r,n,s)}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,h.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,h.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,h.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});Q("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,h.assertOneOf)(...Ga.BINARY_OPERATORS)},left:{validate:function(){let e=(0,h.assertNodeType)("Expression"),t=(0,h.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,s,i){(n.operator==="in"?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,h.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});Q("InterpreterDirective",{builder:["value"],fields:{
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Q("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,h.chain)((0,h.assertValueType)("boolean"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0,h.assertNodeType)("Expression")}}});Q("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,h.assertNodeType)("Expression")}}});Q("Import",{aliases:["Expression"]});Q("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,h.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});Q("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,h.assertNodeType)("Identifier")}}});Q("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,h.assertNodeType)("Expression")},property:{validate:function(){let e=(0,h.assertNodeType)("Identifier"),t=(0,h.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,h.chain)((0,h.assertValueType)("boolean"),(0,h.assertOptionalChainStart)()):(0,h.assertValueType)("boolean")}}});Q("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,h.assertNodeType)("Expression")},arguments:{validate:(0,h.chain)((0,h.assertValueType)("array"),(0,h.assertEach)((0,h.assertNodeType)("Expression","SpreadElement","JSXNamespacedName","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,h.chain)((0,h.assertValueType)("boolean"),(0,h.assertOptionalChainStart)()):(0,h.assertValueType)("boolean")},typeArguments:{validate:(0,h.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,h.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}});Q("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},Vl(),{value:{validate:(0,h.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,h.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,h.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,h.chain)((0,h.assertValueType)("array"),(0,h.assertEach)((0,h.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,h.assertValueType)("boolean"),optional:!0},declare:{validate:(0,h.assertValueType)("boolean"),optional:!0},variance:{validate:(0,h.assertNodeType)("Variance"),optional:!0}})});Q("ClassAccessorProperty",{visitor:["key","value","typeAnnotation","decorators"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},Vl(),{key:{validate:(0,h.chain)(function(){let e=(0,h.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,h.assertNodeType)("Expression");return function(r,n,s){(r.computed?t:e)(r,n,s)}}(),(0,h.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,h.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,h.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,h.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,h.chain)((0,h.assertValueType)("array"),(0,h.assertEach)((0,h.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,h.as
`).join(`
`+i),e.push(s+"m+"+lu.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=QH()+t+" "+e[0]}function QH(){return Xt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function ZH(...e){return process.stderr.write(ou.format(...e)+`
`)}function eY(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function tY(){return process.env.DEBUG}function rY(e){e.inspectOpts={};let t=Object.keys(Xt.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Xt.inspectOpts[t[r]]}lu.exports=tm()(Xt);var{formatters:uS}=lu.exports;uS.o=function(e){return this.inspectOpts.colors=this.useColors,ou.inspect(e,this.inspectOpts).split(`
`).map(t=>t.trim()).join(" ")};uS.O=function(e){return this.inspectOpts.colors=this.useColors,ou.inspect(e,this.inspectOpts)}});var zs=E((bCe,sm)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?sm.exports=iS():sm.exports=cS()});var ro=E(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.default=aY;var nY=De(),{cloneNode:im,exportNamedDeclaration:fS,exportSpecifier:pS,identifier:am,variableDeclaration:sY,variableDeclarator:iY}=nY;function aY(e){if(!e.isExportDeclaration()||e.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(e.isExportDefaultDeclaration()){let i=e.get("declaration"),a=i.isFunctionDeclaration()||i.isClassDeclaration(),o=i.isFunctionExpression()||i.isClassExpression(),l=i.isScope()?i.scope.parent:i.scope,u=i.node.id,c=!1;u?o&&l.hasBinding(u.name)&&(c=!0,u=l.generateUidIdentifier(u.name)):(c=!0,u=l.generateUidIdentifier("default"),(a||o)&&(i.node.id=im(u)));let f=a?i.node:sY("var",[iY(im(u),i.node)]),p=fS(null,[pS(im(u),am("default"))]);return e.insertAfter(p),e.replaceWith(f),c&&l.registerDeclaration(e),e}else if(e.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let t=e.get("declaration"),r=t.getOuterBindingIdentifiers(),n=Object.keys(r).map(i=>pS(am(i),am(i))),s=fS(null,n);return e.insertAfter(s),e.replaceWith(t.node),e}});var us=E(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});Ri.default=void 0;Ri.requeueComputedKeyAndDecorators=lm;Ri.skipAllButComputedKey=function(t){t.skip(),t.node.computed&&t.context.maybeQueue(t.get("key"))};function lm(e){let{context:t,node:r}=e;if(r.computed&&t.maybeQueue(e.get("key")),r.decorators)for(let n of e.get("decorators"))t.maybeQueue(n)}var oY={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&lm(e))},Property(e){e.isObjectProperty()||(e.skip(),lm(e))}},lY=oY;Ri.default=lY});var dS=E(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.default=void 0;var uY=ro(),cY=De(),fY=us(),pY=cu(),dY=to(),hY={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(0,fY.requeueComputedKeyAndDecorators)(e))},ObjectProperty({node:e,scope:t},r){let{name:n}=e.key;if(e.shorthand&&(n===r.oldName||n===r.newName)&&t.getBindingIdentifier(n)===r.binding.identifier){var s;e.shorthand=!1,(s=e.extra)!=null&&s.shorthand&&(e.extra.shorthand=!1)}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.getOuterBindingIdentifiers();for(let n in r)n===t.oldName&&(r[n].name=t.newName)}},um=class{constructor(t,r,n){this.newName=n,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:n}=r.node;if(cY.isDeclaration(n)&&!n.id)return}r.isExportAllDeclaration()||(0,uY.default)(r)}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:n}=this,{scope:s,path:i}=t,a=i.find(l=>l.isDeclaration()||l.isFunctionExpression()||l.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block;(0,pY.traverseNode)(o,(0,dY.explode)(hY),s,this,s.path,{discriminant:!0}),arguments[0]||(s.removeOwnBinding(r),s.bindings[n]=t,this.binding.identifier.name=n),a&&(this.maybeConvertFromClassFunctionDeclaration(i),this.maybeConvertFromClassFunctionExpression(i))}};uu.default=um});var hS=E(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.default=void 0;var cm=class{constructor({identifier:t,scope:r,path:n,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=n,this.kind=s,(s==
`),p=0;for(f!==0&&this._mark(c,a,o,l,u);f!==-1;)i.line++,i.column=0,p=f+1,p<s&&c!==void 0&&this._mark(++c,0,null,null,u),f=t.indexOf(`
`,p);i.column+=s-p}_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)}withSource(t,r,n){this._map&&this.source(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}};vu.default=Tm});var VS=E(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.nodes=void 0;var tX=De(),{FLIPPED_ALIAS_KEYS:rX,isArrayExpression:nX,isAssignmentExpression:RS,isBinary:qS,isBlockStatement:sX,isCallExpression:US,isFunction:so,isIdentifier:Tu,isLiteral:iX,isMemberExpression:Sm,isObjectExpression:aX,isOptionalCallExpression:oX,isOptionalMemberExpression:lX,isStringLiteral:uX}=tX;function Ui(e,t){return e&&(Sm(e)||lX(e)?(Ui(e.object,t),e.computed&&Ui(e.property,t)):qS(e)||RS(e)?(Ui(e.left,t),Ui(e.right,t)):US(e)||oX(e)?(t.hasCall=!0,Ui(e.callee,t)):so(e)?t.hasFunction=!0:Tu(e)&&(t.hasHelper=t.hasHelper||e.callee&&On(e.callee))),t}function MS(e){return Ui(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function On(e){return e?Sm(e)?On(e.object)||On(e.property):Tu(e)?e.name==="require"||e.name.charCodeAt(0)===95:US(e)?On(e.callee):qS(e)||RS(e)?Tu(e.left)&&On(e.left)||On(e.right):!1:!1}function cX(e){return iX(e)||aX(e)||nX(e)||Tu(e)||Sm(e)}var Zs=Su.nodes={AssignmentExpression(e){let t=MS(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(so(e.left)||so(e.right))return 2},Literal(e){if(uX(e)&&e.value==="use strict")return 2},CallExpression(e){if(so(e.callee)||On(e))return 3},OptionalCallExpression(e){if(so(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){let r=e.declarations[t],n=On(r.id)&&!cX(r.init);if(!n&&r.init){let s=MS(r.init);n=On(r.init)&&s.hasCall||s.hasFunction}if(n)return 3}},IfStatement(e){if(sX(e.consequent))return 3}};Zs.ObjectProperty=Zs.ObjectTypeProperty=Zs.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1};Zs.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length))return 1};Zs.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};Zs.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(rX[e]||[]).forEach(function(r){let n=t?3:0;Zs[r]=()=>n})})});var HS=E(ut=>{"use stric
`,m,b=!0,d=t.numbers=="binary",y=t.numbers=="octal",v=t.numbers=="decimal",I=t.numbers=="hexadecimal";if(s&&e&&rQ(e.toJSON)&&(e=e.toJSON()),!eQ(e)){if(nQ(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+fs(Array.from(e),t)+")");if(sQ(e))return e.size==0?"new Set()":"new Set("+fs(Array.from(e),t)+")";if(Qz(e))return e.length==0?"Buffer.from([])":"Buffer.from("+fs(Array.from(e),t)+")";if(zz(e))return m=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),f||r(),Jz(e,F=>{b=!1,f&&(t.__inline2__=!1),m.push((a||f?"":l)+fs(F,t))}),b?"[]":f?"["+m.join(", ")+"]":"["+p+m.join(","+p)+p+(a?"":u)+"]";if(tQ(e)){if(s)return JSON.stringify(e);if(v)return String(e);if(I){let F=e.toString(16);return o||(F=F.toUpperCase()),"0x"+F}if(d)return"0b"+e.toString(2);if(y)return"0o"+e.toString(8)}else return Zz(e)?(m=[],t.wrap=!0,r(),cx(e,(F,R)=>{b=!1,m.push((a?"":l)+fs(F,t)+":"+(a?"":" ")+fs(R,t))}),b?"{}":"{"+p+m.join(","+p)+p+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let D=e,O=-1,_=D.length;for(m="";++O<_;){let F=D.charAt(O);if(t.es6){let Te=D.charCodeAt(O);if(Te>=55296&&Te<=56319&&_>O+1){let Pe=D.charCodeAt(O+1);if(Pe>=56320&&Pe<=57343){let dt=((Te-55296)*1024+Pe-56320+65536).toString(16);o||(dt=dt.toUpperCase()),m+="\\u{"+dt+"}",++O;continue}}}if(!t.escapeEverything){if(lQ.test(F)){m+=F;continue}if(F=='"'){m+=i==F?'\\"':F;continue}if(F=="`"){m+=i==F?"\\`":F;continue}if(F=="'"){m+=i==F?"\\'":F;continue}}if(F=="\0"&&!s&&!oQ.test(D.charAt(O+1))){m+="\\0";continue}if(aQ.test(F)){m+=iQ[F];continue}let R=F.charCodeAt(0);if(t.minimal&&R!=8232&&R!=8233){m+=F;continue}let K=R.toString(16);o||(K=K.toUpperCase());let te=K.length>2||s,se="\\"+(te?"u":"x")+("0000"+K).slice(te?-4:-2);m+=se}return t.wrap&&(m=i+m+i),i=="`"&&(m=m.replace(/\$\{/g,"\\${")),t.isScriptContext?m.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--"):m};fs.version="2.5.2";fx.exports=fs});var Im=E(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.ArgumentPlaceholder=pQ;Pt.ArrayPattern=Pt.ArrayExpression=gQ;Pt.BigIntLiteral=AQ;Pt.BooleanLiteral=TQ;Pt.DecimalLiteral=CQ;Pt.Identifier=fQ;Pt.NullLiteral=SQ;Pt.NumericLiteral=xQ;Pt.ObjectPattern=Pt.ObjectExpression=hQ;Pt.ObjectMethod=mQ;Pt.ObjectProperty=yQ;Pt.PipelineBareFunction=IQ;Pt.PipelinePrimaryTopicReference=OQ;Pt.PipelineTopicExpression=DQ;Pt.RecordExpression=bQ;Pt.RegExpLiteral=vQ;Pt.SpreadElement=Pt.RestElement=dQ;Pt.StringLiteral=PQ;Pt.TopicReference=wQ;Pt.TupleExpression=EQ;var uQ=De(),hx=px(),{isAssignmentPattern:cQ,isIdentifier:Dm}=uQ;function fQ(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name),this.word(e.name)}function pQ(){this.tokenChar(63)}function dQ(e){this.token("..."),this.print(e.argument,e)}function hQ(e){let t=e.properties;this.tokenChar(123),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}function mQ(e){this.printJoin(e.decorators,e),this._methodHead(e),this.space(),this.print(e.body,e)}function yQ(e){if(this.printJoin(e.decorators,e),e.computed)this.tokenChar(91),this.print(e.key,e),this.tokenChar(93);else{if(cQ(e.value)&&Dm(e.key)&&e.key.name===e.value.left.name){this.print(e.value,e);return}if(this.print(e.key,e),e.shorthand&&Dm(e.key)&&Dm(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value,e)}function gQ(e){let t=e.elements,r=t.length;this.tokenChar(91);for(let n=0;n<t.length;n++){let s=t[n];s?(n>0&&this.space(),this.print(s,e),n<r-1&&this.tokenChar(44)):this.tokenChar(44)}this.tokenChar(93)}function bQ(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 new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",n="}"}this.token(r),t.length&&(this.space(),this.printList(t,e,{indent:!0,statement:!0}),this.space()
`)}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
`);else{let f=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(f+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
${" ".repeat(f)}`)}}}else n?o=`/*${t.value}*/`:o=`//${t.value}`;this.endsWith(47)&&this._space(),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){let a=n.loc,o=r.length,l=!!a,u=l?a.start.line:0,c=l?a.end.line:0,f=0,p=0,m=this._noLineTerminator?function(){}:this.newline.bind(this);for(let b=0;b<o;b++){let d=r[b],y=this._shouldPrintComment(d);if(y===2){l=!1;break}if(l&&d.loc&&y===1){let v=d.loc.start.line,I=d.loc.end.line;if(t===0){let D=0;b===0?this._buf.hasContent()&&(d.type==="CommentLine"||v!=I)&&(D=p=1):D=v-f,f=I,m(D),this._printComment(d,1),b+1===o&&(m(Math.max(u-f,p)),f=u)}else if(t===1){let D=v-(b===0?u:f);f=I,m(D),this._printComment(d,1),b+1===o&&(m(Math.min(1,c-f)),f=c)}else{let D=v-(b===0?c-i:f);f=I,m(D),this._printComment(d,1)}}else{if(l=!1,y!==1)continue;if(o===1){let v=d.loc?d.loc.start.line===d.loc.end.line:!xx.test(d.value),I=v&&!Fte(n)&&!jte(s)&&!Lte(s)&&!Mte(s);t===0?this._printComment(d,I&&n.type!=="ObjectExpression"||v&&Bte(s,{body:n})?1:0):I&&t===2?this._printComment(d,1):this._printComment(d,0)}else t===1&&!(n.type==="ObjectExpression"&&n.properties.length>1)&&n.type!=="ClassBody"&&n.type!=="TSInterfaceBody"?this._printComment(d,b===0?2:b===o-1?3:0):this._printComment(d,0)}}t===2&&l&&f&&(this._lastCommentLine=f)}};Object.assign(uo.prototype,kte);uo.prototype.Noop=function(){};var GCe=Du.default=uo;function $te(){this.tokenChar(44),this.space()}});var Ou=E(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.default=Wte;var Ax=jS(),Cx=Px();function wx(e,t){var r;let n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),recordAndTupleSyntaxType:(r=t.recordAndTupleSyntaxType)!=null?r:"hash",topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};n.decoratorsBeforeExport=t.decoratorsBeforeExport,n.jsescOption.json=t.jsonCompatibleStrings,n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(o=>n.comments||o.includes("@license")||o.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.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:s,auxiliaryCommentAfter:i,shouldPrintComment:a}=n;return s&&!a(s)&&(n.auxiliaryCommentBefore=void 0),i&&!a(i)&&(n.auxiliaryCommentAfter=void 0),n}Iu.CodeGenerator=class{constructor(t,r={},n){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=wx(n,r),this._map=r.sourceMaps?new Ax.default(r,n):null}generate(){return new Cx.default(this._format,this._map).generate(this._ast)}};function Wte(e,t={},r){let n=wx(r,t),s=t.sourceMaps?new Ax.default(t,r):null;return new Cx.default(n,s).generate(e)}});var Dx=E(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.find=Yte;Lr.findParent=Hte;Lr.getAncestry=Zte;Lr.getDeepestCommonAncestorFrom=Qte;Lr.getEarliestCommonAncestorFrom=zte;Lr.getFunctionParent=Xte;Lr.getStatementParent=Jte;Lr.inType=rre;Lr.isAncestor=ere;Lr.isDescendant=tre;var Kte=De(),{VISITOR_KEYS:Gte}=Kte;function Hte(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function Yte(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function Xte(){return this.findParent(e=>e.isFunction())}function Jte(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function zte(e){return th
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function dP(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Rne.get(e)||e}function qne(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let i of n)if(!isNaN(i))r.push(Number(i));else if(s=i.match(Lne))r.push(s[2].replace(Mne,(a,o,l)=>o?dP(o):l));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`);return r}function Une(e){fP.lastIndex=0;let t=[],r;for(;(r=fP.exec(e))!==null;){let n=r[1];if(r[2]){let s=qne(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function pP(e,t){let r={};for(let s of t)for(let i of s.styles)r[i[0]]=s.inverse?null:i.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?n=n[s].apply(n,r[s]):n=n[s]}return n}hP.exports=(e,t)=>{let r=[],n=[],s=[];if(t.replace(jne,(i,a,o,l,u,c)=>{if(a)s.push(dP(a));else if(l){let f=s.join("");s=[],n.push(r.length===0?f:pP(e,r)(f)),r.push({inverse:o,styles:Une(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(pP(e,r)(s.join(""))),s=[],r.pop()}else s.push(c)}),n.push(s.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")}});var vP=E((c2e,fo)=>{"use strict";var ty=Qx(),Ut=cP(),ey=nm().stdout,Vne=mP(),gP=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),bP=["ansi","ansi","ansi256","ansi16m"],EP=new Set(["gray"]),Gi=Object.create(null);function yP(e,t){t=t||{};let r=ey?ey.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function co(e){if(!this||!(this instanceof co)||this.template){let t={};return yP(t,e),t.template=function(){let r=[].slice.call(arguments);return Kne.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,co.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=co,t.template}yP(this,e)}gP&&(Ut.blue.open="\x1B[94m");for(let e of Object.keys(Ut))Ut[e].closeRe=new RegExp(ty(Ut[e].close),"g"),Gi[e]={get(){let t=Ut[e];return Ru.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Gi.visible={get(){return Ru.call(this,this._styles||[],!0,"visible")}};Ut.color.closeRe=new RegExp(ty(Ut.color.close),"g");for(let e of Object.keys(Ut.color.ansi))EP.has(e)||(Gi[e]={get(){let t=this.level;return function(){let n={open:Ut.color[bP[t]][e].apply(null,arguments),close:Ut.color.close,closeRe:Ut.color.closeRe};return Ru.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});Ut.bgColor.closeRe=new RegExp(ty(Ut.bgColor.close),"g");for(let e of Object.keys(Ut.bgColor.ansi)){if(EP.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Gi[t]={get(){let r=this.level;return function(){let s={open:Ut.bgColor[bP[r]][e].apply(null,arguments),close:Ut.bgColor.close,closeRe:Ut.bgColor.closeRe};return Ru.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}}var $ne=Object.defineProperties(()=>{},Gi);function Ru(e,t,r){let n=function(){return Wne.apply(n,arguments)};n._styles=e,n._empty=t;let s=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return s.level},set(i){s.level=i}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return s.enabled},set(i){s.enabled=i}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=$ne,n}function Wne(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let s=1;s<t;s++)r+=" "+e[s];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let n=Ut.dim.open;gP&&this.hasGrey&&(Ut.dim.open="");for(let s of this._styles.slice().reverse())r=s.open+r.replace(s.closeRe,s.open)+s.close,r=r.replace(/\r?\n/g,`${s.close}$&${s.open}`);return Ut.dim.open=n,r}function Kne(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),n=[t.raw[0]];for(let s=1;s<t.length;s++)n.push(String(r[s-1])
`):r+=s}return r}function wP(e){return AP.isColorSupported||e.forceColor}var ry;function Qne(e){if(e){var t;return(t=ry)!=null||(ry=(0,ny.createColors)(!0)),ry}return AP}function Zne(e,t={}){if(e!==""&&wP(t)){let r=Yne(Qne(t.forceColor));return zne(r,e)}else return e}{let e,t;po.getChalk=({forceColor:r})=>{var n;if((n=e)!=null||(e=vP()),r){var s;return(s=t)!=null||(t=new e.constructor({enabled:!0,level:1})),t}return e}}});var Hi=E(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.codeFrameColumns=BP;qu.default=ise;var IP=DP(),iy=ese(zm(),!0);function kP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(kP=function(n){return n?r:t})(e)}function ese(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=kP(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var tse=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,iy.createColors)(!1):iy.default,OP=(e,t)=>r=>e(t(r)),sy;function rse(e){if(e){var t;return(t=sy)!=null||(sy=(0,iy.createColors)(!0)),sy}return tse}var _P=!1;function nse(e){return{gutter:e.gray,marker:OP(e.red,e.bold),message:OP(e.red,e.bold)}}var NP=/\r\n|[\n\r\u2028\u2029]/;function sse(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,f=Math.max(o-(i+1),0),p=Math.min(t.length,u+a);o===-1&&(f=0),u===-1&&(p=t.length);let m=u-o,b={};if(m)for(let d=0;d<=m;d++){let y=d+o;if(!l)b[y]=!0;else if(d===0){let v=t[y-1].length;b[y]=[l,v-l+1]}else if(d===m)b[y]=[0,c];else{let v=t[y-d].length;b[y]=[0,v]}}else l===c?l?b[o]=[l,0]:b[o]=!0:b[o]=[l,c-l];return{start:f,end:p,markerLines:b}}function BP(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,IP.shouldHighlight)(r),s=rse(r.forceColor),i=nse(s),a=(d,y)=>n?d(y):y,o=e.split(NP),{start:l,end:u,markerLines:c}=sse(t,o,r),f=t.start&&typeof t.start.column=="number",p=String(u).length,b=(n?(0,IP.default)(e,r):e).split(NP,u).slice(l,u).map((d,y)=>{let v=l+1+y,D=` ${` ${v}`.slice(-p)} |`,O=c[v],_=!c[v+1];if(O){let F="";if(Array.isArray(O)){let R=d.slice(0,Math.max(O[0]-1,0)).replace(/[^\t]/g," "),K=O[1]||1;F=[`
`,a(i.gutter,D.replace(/\d/g," "))," ",R,a(i.marker,"^").repeat(K)].join(""),_&&r.message&&(F+=" "+a(i.message,r.message))}return[a(i.marker,">"),a(i.gutter,D),d.length>0?` ${d}`:"",F].join("")}else return` ${a(i.gutter,D)}${d.length>0?` ${d}`:""}`}).join(`
`);return r.message&&!f&&(b=`${" ".repeat(p+1)}${r.message}
${b}`),n?s.reset(b):b}function ise(e,t,r,n={}){if(!_P){_P=!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),BP(e,{start:{column:r,line:t}},n)}});var Ao=E(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});function zP(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i<n.length;i++)s=n[i],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}var yn=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}},zi=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 yr(e,t){let{line:r,column:n,index:s}=e;return new yn(r,n+t,s+t)}var FP="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",ase={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:FP},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:FP}},jP={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"},$u=({type:e,prefix:t})=>e==="UpdateExpression"?jP.UpdateExpression[String(t)]:jP[e],ose={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Dec
- 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 `deprecatedAssertSyntax: true` option in the import attributes 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 }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${e===1?"one argument":"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.",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 ${$u(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${$u(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${$u(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.",Ov
`,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,f=n=r):i.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function Use(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function Vse(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}=by(e,t,r,n,2,!1,a,i),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=lA(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,f=e.slice(u,t+2).match(/^[0-7]+/)[0],p=parseInt(f,8);p>255&&(f=f.slice(0,-1),p=parseInt(f,8)),t+=f.length-1;let m=e.charCodeAt(t);if(f!=="0"||m===56||m===57){if(s)return o(null);i.strictNumericEscape(u,r,n)}return o(String.fromCharCode(p))}return o(String.fromCharCode(l))}}function by(e,t,r,n,s,i,a,o){let l=t,u;return{n:u,pos:t}=oA(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 oA(e,t,r,n,s,i,a,o,l,u){let c=t,f=s===16?UP.hex:UP.decBinOct,p=s===16?Vu.hex:s===10?Vu.dec:s===8?Vu.oct:Vu.bin,m=!1,b=0;for(let d=0,y=i==null?1/0:i;d<y;++d){let v=e.charCodeAt(t),I;if(v===95&&o!=="bail"){let D=e.charCodeAt(t-1),O=e.charCodeAt(t+1);if(o){if(Number.isNaN(O)||!p(O)||f.has(D)||f.has(O)){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(v>=97?I=v-97+10:v>=65?I=v-65+10:qse(v)?I=v-48:I=1/0,I>=s){if(I<=9&&u)return{n:null,pos:t};if(I<=9&&l.invalidDigit(t,r,n,s))I=0;else if(a)I=0,m=!0;else break}++t,b=b*s+I}return t===c||i!=null&&t-c!==i||m?{n:null,pos:t}:{n:b,pos:t}}function lA(e,t,r,n,s,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=by(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}=by(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}function go(e,t,r){return new yn(r,e-t,e)}var $se=new Set([103,109,115,105,121,117,100,118]),mn=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new zi(t.startLoc,t.endLoc)}},Ey=class extends yy{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,s,i,a)=>this.options.errorRecovery?(this.raise(k.InvalidDigit,go(n,s,i),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(k.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(k.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(k.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(k.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,s,i)=>{this.recordStrictModeErrors(k.StrictNumericEscape,go(n,s,i))},unterminated:(n,s,i)=>{throw this.raise(k.UnterminatedString,go(n-1,s,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(k.StrictNumericEscape),unterminated:(n,s,i)=>{throw this.raise(k.UnterminatedTemplate,go(n,s,i))}}),this.state=new gy,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.options.tokens&&this.pushToken(new mn(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;return this.state=t,r}
`:`\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(k.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):vo(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(133,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=tie[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(Xi(r)||r===45);this.finishToken(140,this.input.slice(n,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(140)?r.name=this.state.value:Ly(this.state.type)?r.name=gs(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(bt.brace),this.next(),r=this.jsxParseExpressionContainer(r,bt.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(ni.AttributeIsEmpty,r),r;case 142:case 133:return this.parseExprAtom();default:throw this.raise(ni.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(bt.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(bt.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(bt.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(143)?this.finishNode(n,"JSXOpeningFragment"):(n.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(n))}jsxParseOpeningElementAfterName(r){let n=[];for(;!this.match(56)&&!this.match(143);)n.push(this.jsxParseAttribute());return r.attributes=n,r.selfClosing=this.eat(56),this.expect(143),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let n=this.startNodeAt(r);return this.eat(143)?this.finishNode(n,"JSXClosingFragment"):(n.name=this.jsxParseElementName(),this.expect(143),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
`),cooked:i===null?null:i.slice(1,u)},o.tail=l,this.next();let f=this.finishNode(o,"TemplateElement");return this.resetEndLocation(f,yr(this.state.lastTokEndLoc,u)),f}parseTemplate(t){let r=this.startNode();r.expressions=[];let n=this.parseTemplateElement(t);for(r.quasis=[n];!n.tail;)r.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.quasis.push(n=this.parseTemplateElement(t));return 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=Object.create(null),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),this.checkProto(c,n,a,s)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(k.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(k.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,u=this.parsePropertyName(n,t);if(!o&&!l&&this.maybeAsyncOrAccessorProp(n)){let 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(k.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"?k.BadGetterArity:k.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(k.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.parseMaybeAssignAllowIn(s),this.finishNode(t,"ObjectProperty");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,jn(t.key));else if(this.match(29)){let i=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=i):this.raise(k.InvalidCoverInitializedName,i),t.value=this.parseMaybeDefault(r,jn(t.key))}else t.value=jn(t.key);return t.shorthand=!0,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.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:s}=this.state,i;if(zr(n))i=thi
`+(0,Nie.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 $y.default.removeProperties(r),this.replaceWith(r)}function iae(e){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof kie.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()&&!zie(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")&&TA(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=Vie(t),r="expression"),this.isNodeType("Expression")&&Qie(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let n=this.node;return n&&(Hie(t,n),eae(n)),this._replaceWith(t),this.type=t.type,this.setScope(),this.requeue(),[r?this.get(r):this]}function aae(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?bA(this.parent,this.key,[e]):bA(this.parent,this.key,e),this.debug(`Replace with ${e==null?void 0:e.type}`),(t=(0,EA.getCachedPaths)(this.hub,this.parent))==null||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e}function oae(e){this.resync();let t=[],r=zu(e,t);if(r){for(let p of t)this.scope.push({id:p});return this.replaceWith(r)[0].get("expressions")}let n=this.getFunctionParent(),s=n==null?void 0:n.is("async"),i=n==null?void 0:n.is("generator"),a=Lie([],Rie(e));this.replaceWith(qie(a,[]));let o=this.get("callee");(0,jie.default)(o.get("body"),p=>{this.scope.push({id:p})},"var");let l=this.get("callee").getCompletionRecords();for(let p of l){if(!p.isExpressionStatement())continue;let m=p.findParent(b=>b.isLoop());if(m){let b=m.getData("expressionReplacementReturnUid");b?b=Wie(b.name):(b=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",gA(Wy(b))),m.setData("expressionReplacementReturnUid",b)),p.get("expression").replaceWith(vA("=",Wy(b),p.node.expression))}else p.replaceWith(gA(p.node.expression))}o.arrowFunctionToExpression();let u=o,c=s&&$y.default.hasType(this.get("callee.body").node,"AwaitExpression",mA),f=i&&$y.default.hasType(this.get("callee.body").node,"YieldExpression",mA);return c&&(u.set("async",!0),f||this.replaceWith(Mie(this.node))),f&&(u.set("generator",!0),this.replaceWith(rae(this.node,!0))),u.get("body.body")}function zu(e,t){let r=[],n=!0;for(let s of e)if(yA(s)||(n=!1),TA(s))r.push(s);else if(Xie(s))r.push(s.expression);else if(Zie(s)){if(s.kind!=="var")return;for(let i of s.declarations){let a=$ie(i);for(let o of Object.keys(a))t.push(Wy(a[o]));i.init&&r.push(vA("=",i.id,i.init))}n=!0}else if(Jie(s)){let i=s.consequent?zu([s.consequent],t):Vy(),a=s.alternate?zu([s.alternate],t):Vy();if(!i||!a)return;r.push(Uie(s.test,i,a))}else if(Yie(s)){let i=zu(s.body,t);if(!i)return;r.push(i)}else if(yA(s))e.indexOf(s)===0&&(n=!0);else return;return n&&r.push(Vy()),r.length===1?r[0]:tae(r)}function lae(e){if(this.resync(),Array.isArray(e))if(Array.isArray(this.container)){e=this._verifyNodeList(e);let t=this._containerInsertAfter(e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var CA=E(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.evaluate=yae;Qu.evaluateTruthy=hae;var uae=["Number","String","Math"],cae=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],fae=["random"];function xA(e){return uae.includes(e)}function pae(e){return cae.includes(e)}funct
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var x2e=Mr.smart=Ky(e=>e.length>1?e:e[0]),P2e=Mr.statements=Ky(e=>e),A2e=Mr.statement=Ky(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]}),Eae=Mr.expression={code:e=>`(
${e}
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(Eae.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return bae(t),t.expression}},C2e=Mr.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var Zu=E(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.merge=Sae;Co.normalizeReplacements=Pae;Co.validate=xae;var vae=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function Tae(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i<n.length;i++)s=n[i],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function Sae(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 xae(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=Tae(t,vae);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 Pae(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 Hy=E(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.default=Mae;var Aae=De(),Cae=Ao(),wae=Hi(),{isCallExpression:Dae,isExpressionStatement:Iae,isFunction:Oae,isIdentifier:_ae,isJSXIdentifier:Nae,isNewExpression:kae,isPlaceholder:ec,isStatement:Bae,isStringLiteral:DA,removePropertiesDeep:Fae,traverse:jae}=Aae,Lae=/^[_$A-Z0-9]+$/;function Mae(e,t,r){let{placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:a}=r,o=Uae(t,r.parser,a);Fae(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 jae(o,Rae,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function Rae(e,t,r){var n;let s,i=r.syntactic.placeholders.length>0;if(ec(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(_ae(e)||Nae(e))s=e.name;else if(DA(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||Lae).test(s))&&!((n=r.placeholderWhitelist)!=null&&n.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;DA(e)||ec(e,{expectedNode:"StringLiteral"})?l="string":kae(a)&&o==="arguments"||Dae(a)&&o==="arguments"||Oae(a)&&o==="params"?l="param":Iae(a)&&!ec(e)?(l="statement",t=t.slice(0,-1)):Bae(e)&&ec(e)?l="statement":l="other";let{placeholders:u,placeholderNames:c}=i?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:f=>qae(f,t),isDuplicate:c.has(s)}),c.add(s)}function qae(e,t){le
`+(0,wae.codeFrameColumns)(e,{start:i}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var zy=E(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});Jy.default=Hae;var Vae=De(),{blockStatement:$ae,cloneNode:Xy,emptyStatement:Wae,expressionStatement:Yy,identifier:tc,isStatement:IA,isStringLiteral:Kae,stringLiteral:Gae,validate:OA}=Vae;function Hae(e,t){let r=Xy(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{Yae(n,r,t&&t[n.name]||null)}catch(s){throw s.message=`@babel/template placeholder "${n.name}": ${s.message}`,s}}),r}function Yae(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(a=>Xy(a)):typeof r=="object"&&(r=Xy(r)));let{parent:n,key:s,index:i}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=Gae(r)),!r||!Kae(r))throw new Error("Expected string substitution")}else if(e.type==="statement")i===void 0?r?Array.isArray(r)?r=$ae(r):typeof r=="string"?r=Yy(tc(r)):IA(r)||(r=Yy(r)):r=Wae():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=tc(r)),IA(r)||(r=Yy(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=tc(r)),i===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=tc(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");if(i===void 0)OA(n,s,r),n[s]=r;else{let a=n[s].slice();e.type==="statement"||e.type==="param"?r==null?a.splice(i,1):Array.isArray(r)?a.splice(i,1,...r):a[i]=r:a[i]=r,OA(n,s,a),n[s]=a}}});var _A=E(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});Qy.default=Qae;var Xae=Zu(),Jae=Hy(),zae=zy();function Qae(e,t,r){t=e.code(t);let n;return s=>{let i=(0,Xae.normalizeReplacements)(s);return n||(n=(0,Jae.default)(e,t,r)),e.unwrap((0,zae.default)(n,i))}}});var NA=E(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});Zy.default=roe;var Zae=Zu(),eoe=Hy(),toe=zy();function roe(e,t,r){let{metadata:n,names:s}=noe(e,t,r);return i=>{let a={};return i.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,Zae.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,toe.default)(n,l?Object.assign(l,a):a))}}}function noe(e,t,r){let n="BABEL_TPL$",s=t.join("");do n="$$"+n;while(s.includes(n));let{names:i,code:a}=soe(t,n);return{metadata:(0,eoe.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 soe(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 MA=E(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.default=LA;var gn=Zu(),kA=_A(),BA=NA(),FA=(0,gn.validate)({placeholderPattern:!1});function LA(e,t){let r=new WeakMap,n=new WeakMap,s=t||(0,gn.validate)(null);return Object.assign((i,...a)=>{if(typeof i=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return jA((0,kA.default)(e,i,(0,gn.merge)(s,(0,gn.validate)(a[0]))))}else if(Array.isArray(i)){let o=r.get(i);return o||(o=(0,BA.default)(e,i,s),r.set(i,o)),jA(o(a))}else if(typeof i=="object"&&i){if(a.length>0)throw new Error("Unexpected extra params.");return LA(e,(0,gn.merge)(s,(0,gn.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,kA.default)(e,i,(0,gn.merge)((0,gn.merge)(s,(0,gn.validate)(a[0])),FA))()}else if(Array.isArray(i)){let o=n.get(i);return o||(o=(0,BA.default)(e,i,(0,gn.merge)(s,FA)),n.set(i,o)),o(a)()}throw new Error(`Unexpected template param ${typeof i}`)}})}function jA(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 ea=E(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.statements=Sr.statement=Sr.smart=Sr.program=Sr.expression=Sr.default=void 0;var wo=wA(),Do=MA(),t0=Sr.smart=(0,Do.default)(wo.smart),ioe=Sr.statement=(0,Do.default)(wo.statement),aoe=Sr.statements=(0,Do.default)(wo.statements),ooe=Sr.expression=(0,Do.default)(wo.expression),loe=Sr.program=(0,Do.default)(wo.program),B2e=Sr.default=Object.assign(t0.bind(void 0),{smart:t0,statement:ioe,statements:aoe,expression:ooe,program:loe,ast:t0.ast})});var rc=E(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.default=Ioe;var VA=ea(),uoe=De(),{NOT_LOCAL_BINDING:RA,cloneNode:coe,identifier:foe,isAssignmentExpression:poe,isAssignmentPattern:doe,isFunction:$A,isIdentifier:qA,isLiteral:UA,isNullLiteral:hoe,isObjectMethod:moe,isObjectProperty:yoe,isRegExpLiteral:goe,isRestElement:boe,isTemplateLiteral:Eoe,isVariableDeclarator:voe,toBindingIdentifierName:Toe}=uoe;function Soe(e){let t=e.params.findIndex(r=>doe(r)||boe(r));return t===-1?e.params.length:t}var xoe=VA.default.statement(`
(function (FUNCTION_KEY) {
function FUNCTION_ID() {
return FUNCTION_KEY.apply(this, arguments);
}
FUNCTION_ID.toString = function () {
return FUNCTION_KEY.toString();
}
return FUNCTION_ID;
})(FUNCTION)
`),Poe=VA.default.statement(`
(function (FUNCTION_KEY) {
function* FUNCTION_ID() {
return yield* FUNCTION_KEY.apply(this, arguments);
}
FUNCTION_ID.toString = function () {
return FUNCTION_KEY.toString();
};
return FUNCTION_ID;
})(FUNCTION)
`),Aoe={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name!==t.name||e.scope.getBindingIdentifier(t.name)!==t.outerDeclar||(t.selfReference=!0,e.stop())}};function Coe(e){return hoe(e)?"null":goe(e)?`_${e.pattern}_${e.flags}`:Eoe(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?e.value+"":""}function woe(e,t,r,n){if(e.selfReference)if(n.hasBinding(r.name)&&!n.hasGlobal(r.name))n.rename(r.name);else{if(!$A(t))return;let s=xoe;t.generator&&(s=Poe);let i=s({FUNCTION:t,FUNCTION_ID:r,FUNCTION_KEY:n.generateUidIdentifier(r.name)}).expression,a=i.callee.body.body[0].params;for(let o=0,l=Soe(t);o<l;o++)a.push(n.generateUidIdentifier("x"));return i}t.id=r,n.getProgramParent().references[r.name]=!0}function Doe(e,t,r){let n={selfAssignment:!1,selfReference:!1,outerDeclar:r.getBindingIdentifier(t),name:t},s=r.getOwnBinding(t);return s?s.kind==="param"&&(n.selfReference=!0):(n.outerDeclar||r.hasGlobal(t))&&r.traverse(e,Aoe,n),n}function Ioe({node:e,parent:t,scope:r,id:n},s=!1,i=!1){if(e.id)return;if((yoe(t)||moe(t,{kind:"method"}))&&(!t.computed||UA(t.key)))n=t.key;else if(voe(t)){if(n=t.id,qA(n)&&!s){let u=r.parent.getBinding(n.name);if(u&&u.constant&&r.getBinding(n.name)===u){e.id=coe(n),e.id[RA]=!0;return}}}else if(poe(t,{operator:"="}))n=t.left;else if(!n)return;let a;if(n&&UA(n)?a=Coe(n):n&&qA(n)&&(a=n.name),a===void 0||!i&&$A(e)&&/[\uD800-\uDFFF]/.test(a))return;a=Toe(a);let o=foe(a);o[RA]=!0;let l=Doe(e,a,r);return woe(l,e,o,r)||e}});var YA=E(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.arrowFunctionToExpression=zoe;ai.ensureBlock=Yoe;ai.toComputedKey=Hoe;ai.unwrapFunctionEnvironment=Xoe;var Ooe=De(),i0=us(),_oe=rc(),a0=to(),{arrowFunctionExpression:o0,assignmentExpression:ii,binaryExpression:n0,blockStatement:Noe,callExpression:ta,conditionalExpression:koe,expressionStatement:WA,identifier:At,isIdentifier:Boe,jsxIdentifier:Foe,logicalExpression:joe,LOGICAL_OPERATORS:Loe,memberExpression:Qr,metaProperty:Moe,numericLiteral:Roe,objectExpression:qoe,restElement:Uoe,returnStatement:Voe,sequenceExpression:$oe,spreadElement:Woe,stringLiteral:KA,super:s0,thisExpression:Io,toExpression:Koe,unaryExpression:Goe}=Ooe;function Hoe(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||Boe(e)&&(e=KA(e.name)),e}function Yoe(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],n="body",s,i;e.isStatement()?(i="body",s=0,r.push(e.node)):(n+=".body.0",this.isFunction()?(s="argument",r.push(Voe(e.node))):(s="expression",r.push(WA(e.node)))),this.node.body=Noe(r);let a=this.get(n);return e.setup(a,i?a.node[i]:a.node,i,s),this.node}ai.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function Xoe(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");GA(this)}function Joe(e,t){e.node.type=t}function zoe({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(n=>(n=arguments[0])==null?void 0:n.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let{thisBinding:n,fnPath:s}=GA(this,r,e,t);if(s.ensureBlock(),Joe(s,"FunctionExpression"),!r){let i=n?null:s.scope.generateUidIdentifier("arrowCheckId");return i&&s.parentPath.scope.push({id:i,init:qoe([])}),s.get("body").unshiftContainer("body",WA(ta(this.hub.addHelper("newArrowCheck"),[Io(),At(i?i.name:n)]))),s.replaceWith(ta(Qr((0,_oe.default)(this,!0)||s.node,At("bind")),[i?At(i.name):Io()])),s.get("callee.object")}return s}var Qoe=(0,a0.merge)([{CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}},i0.default]);function GA(e,t=!0,r=!0,n=!0){let s,i=e.findParent(m=>
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}catch(t){define=function(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invoke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:function(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(Gen
export default function _AwaitValue(value) {
this.wrapped = value;
}
`;ne.wrapAsyncGenerator=ae("7.0.0-beta.0")`
import AsyncGenerator from "AsyncGenerator";
export default function _wrapAsyncGenerator(fn) {
return function () {
return new AsyncGenerator(fn.apply(this, arguments));
};
}
`;ne.asyncToGenerator=ae("7.0.0-beta.0")`
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
export default function _asyncToGenerator(fn) {
return function () {
var self = this, args = arguments;
return new Promise(function (resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
}
_next(undefined);
});
};
}
`;ne.classCallCheck=ae("7.0.0-beta.0")`
export default function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
`;ne.createClass=ae("7.0.0-beta.0")`
import toPropertyKey from "toPropertyKey";
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i ++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
}
}
export default function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", { writable: false });
return Constructor;
}
`;ne.defineEnumerableProperties=ae("7.0.0-beta.0")`
export default function _defineEnumerableProperties(obj, descs) {
for (var key in descs) {
var desc = descs[key];
desc.configurable = desc.enumerable = true;
if ("value" in desc) desc.writable = true;
Object.defineProperty(obj, key, desc);
}
// Symbols are not enumerated over by for-in loops. If native
// Symbols are available, fetch all of the descs object's own
// symbol properties and define them on our target object too.
if (Object.getOwnPropertySymbols) {
var objectSymbols = Object.getOwnPropertySymbols(descs);
for (var i = 0; i < objectSymbols.length; i++) {
var sym = objectSymbols[i];
var desc = descs[sym];
desc.configurable = desc.enumerable = true;
if ("value" in desc) desc.writable = true;
Object.defineProperty(obj, sym, desc);
}
}
return obj;
}
`;ne.defaults=ae("7.0.0-beta.0")`
export default function _defaults(obj, defaults) {
var keys = Object.getOwnPropertyNames(defaults);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
var value = Object.getOwnPropertyDescriptor(defaults, key);
if (value && value.configurable && obj[key] === undefined) {
Object.defineProperty(obj, key, value);
}
}
return obj;
}
`;ne.defineProperty=ae("7.0.0-beta.0")`
import toPropertyKey from "toPropertyKey";
export default function _defineProperty(obj, key, value) {
key = toPropertyKey(key);
// Shortcircuit the slow defineProperty path when possible.
// We are trying to avoid issues where setters defined on the
// prototype cause side effects under the fast path of simple
// assignment. By checking for existence of the property with
// the in operator, we can optimize most of this overhead away.
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
`;ne.extends=ae("7.0.0-beta.0")`
export default function _extends() {
_extends = Object.assign ? Object.assign.bind() : function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
};
return _extends.apply(this, arguments);
}
`;ne.objectSpread=ae("7.0.0-beta.0")`
import defineProperty from "defineProperty";
export default function _objectSpread(target) {
for (var i = 1; i < arguments.length; i++) {
var source = (arguments[i] != null) ? Object(arguments[i]) : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function(sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
}
ownKeys.forEach(function(key) {
defineProperty(target, key, source[key]);
});
}
return target;
}
`;ne.inherits=ae("7.0.0-beta.0")`
import setPrototypeOf from "setPrototypeOf";
export default function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
// We can't use defineProperty to set the prototype in a single step because it
// doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056
// V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
Object.defineProperty(subClass, "prototype", { writable: false });
if (superClass) setPrototypeOf(subClass, superClass);
}
`;ne.inheritsLoose=ae("7.0.0-beta.0")`
import setPrototypeOf from "setPrototypeOf";
export default function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
setPrototypeOf(subClass, superClass);
}
`;ne.getPrototypeOf=ae("7.0.0-beta.0")`
export default function _getPrototypeOf(o) {
_getPrototypeOf = Object.setPrototypeOf
? Object.getPrototypeOf.bind()
: function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
};
return _getPrototypeOf(o);
}
`;ne.setPrototypeOf=ae("7.0.0-beta.0")`
export default function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf
? Object.setPrototypeOf.bind()
: function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};
return _setPrototypeOf(o, p);
}
`;ne.isNativeFunction=ae("7.0.0-beta.0")`
export default function _isNativeFunction(fn) {
// Note: This function returns "true" for core-js functions.
try {
return Function.toString.call(fn).indexOf("[native code]") !== -1;
} catch (e) {
// Firefox 31 throws when "toString" is applied to an HTMLElement
return typeof fn === "function";
}
}
`;ne.wrapNativeSuper=ae("7.0.0-beta.0")`
import getPrototypeOf from "getPrototypeOf";
import setPrototypeOf from "setPrototypeOf";
import isNativeFunction from "isNativeFunction";
import construct from "construct";
export default function _wrapNativeSuper(Class) {
var _cache = typeof Map === "function" ? new Map() : undefined;
_wrapNativeSuper = function _wrapNativeSuper(Class) {
if (Class === null || !isNativeFunction(Class)) return Class;
if (typeof Class !== "function") {
throw new TypeError("Super expression must either be null or a function");
}
if (typeof _cache !== "undefined") {
if (_cache.has(Class)) return _cache.get(Class);
_cache.set(Class, Wrapper);
}
function Wrapper() {
return construct(Class, arguments, getPrototypeOf(this).constructor)
}
Wrapper.prototype = Object.create(Class.prototype, {
constructor: {
value: Wrapper,
enumerable: false,
writable: true,
configurable: true,
}
});
return setPrototypeOf(Wrapper, Class);
}
return _wrapNativeSuper(Class)
}
`;ne.instanceof=ae("7.0.0-beta.0")`
export default function _instanceof(left, right) {
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
return !!right[Symbol.hasInstance](left);
} else {
return left instanceof right;
}
}
`;ne.interopRequireDefault=ae("7.0.0-beta.0")`
export default function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
`;ne.newArrowCheck=ae("7.0.0-beta.0")`
export default function _newArrowCheck(innerThis, boundThis) {
if (innerThis !== boundThis) {
throw new TypeError("Cannot instantiate an arrow function");
}
}
`;ne.objectDestructuringEmpty=ae("7.0.0-beta.0")`
export default function _objectDestructuringEmpty(obj) {
if (obj == null) throw new TypeError("Cannot destructure " + obj);
}
`;ne.objectWithoutPropertiesLoose=ae("7.0.0-beta.0")`
export default function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
`;ne.objectWithoutProperties=ae("7.0.0-beta.0")`
import objectWithoutPropertiesLoose from "objectWithoutPropertiesLoose";
export default function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
`;ne.assertThisInitialized=ae("7.0.0-beta.0")`
export default function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
`;ne.possibleConstructorReturn=ae("7.0.0-beta.0")`
import assertThisInitialized from "assertThisInitialized";
export default function _possibleConstructorReturn(self, call) {
if (call && (typeof call === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return assertThisInitialized(self);
}
`;ne.createSuper=ae("7.9.0")`
import getPrototypeOf from "getPrototypeOf";
import isNativeReflectConstruct from "isNativeReflectConstruct";
import possibleConstructorReturn from "possibleConstructorReturn";
export default function _createSuper(Derived) {
var hasNativeReflectConstruct = isNativeReflectConstruct();
return function _createSuperInternal() {
var Super = getPrototypeOf(Derived), result;
if (hasNativeReflectConstruct) {
// NOTE: This doesn't work if this.__proto__.constructor has been modified.
var NewTarget = getPrototypeOf(this).constructor;
result = Reflect.construct(Super, arguments, NewTarget);
} else {
result = Super.apply(this, arguments);
}
return possibleConstructorReturn(this, result);
}
}
`;ne.superPropBase=ae("7.0.0-beta.0")`
import getPrototypeOf from "getPrototypeOf";
export default function _superPropBase(object, property) {
// Yes, this throws if object is null to being with, that's on purpose.
while (!Object.prototype.hasOwnProperty.call(object, property)) {
object = getPrototypeOf(object);
if (object === null) break;
}
return object;
}
`;ne.get=ae("7.0.0-beta.0")`
import superPropBase from "superPropBase";
export default function _get() {
if (typeof Reflect !== "undefined" && Reflect.get) {
_get = Reflect.get.bind();
} else {
_get = function _get(target, property, receiver) {
var base = superPropBase(target, property);
if (!base) return;
var desc = Object.getOwnPropertyDescriptor(base, property);
if (desc.get) {
// STEP 3. If receiver is not present, then set receiver to target.
return desc.get.call(arguments.length < 3 ? target : receiver);
}
return desc.value;
};
}
return _get.apply(this, arguments);
}
`;ne.set=ae("7.0.0-beta.0")`
import superPropBase from "superPropBase";
import defineProperty from "defineProperty";
function set(target, property, value, receiver) {
if (typeof Reflect !== "undefined" && Reflect.set) {
set = Reflect.set;
} else {
set = function set(target, property, value, receiver) {
var base = superPropBase(target, property);
var desc;
if (base) {
desc = Object.getOwnPropertyDescriptor(base, property);
if (desc.set) {
desc.set.call(receiver, value);
return true;
} else if (!desc.writable) {
// Both getter and non-writable fall into this.
return false;
}
}
// Without a super that defines the property, spec boils down to
// "define on receiver" for some reason.
desc = Object.getOwnPropertyDescriptor(receiver, property);
if (desc) {
if (!desc.writable) {
// Setter, getter, and non-writable fall into this.
return false;
}
desc.value = value;
Object.defineProperty(receiver, property, desc);
} else {
// Avoid setters that may be defined on Sub's prototype, but not on
// the instance.
defineProperty(receiver, property, value);
}
return true;
};
}
return set(target, property, value, receiver);
}
export default function _set(target, property, value, receiver, isStrict) {
var s = set(target, property, value, receiver || target);
if (!s && isStrict) {
throw new TypeError('failed to set property');
}
return value;
}
`;ne.taggedTemplateLiteral=ae("7.0.0-beta.0")`
export default function _taggedTemplateLiteral(strings, raw) {
if (!raw) { raw = strings.slice(0); }
return Object.freeze(Object.defineProperties(strings, {
raw: { value: Object.freeze(raw) }
}));
}
`;ne.taggedTemplateLiteralLoose=ae("7.0.0-beta.0")`
export default function _taggedTemplateLiteralLoose(strings, raw) {
if (!raw) { raw = strings.slice(0); }
strings.raw = raw;
return strings;
}
`;ne.readOnlyError=ae("7.0.0-beta.0")`
export default function _readOnlyError(name) {
throw new TypeError("\\"" + name + "\\" is read-only");
}
`;ne.writeOnlyError=ae("7.12.13")`
export default function _writeOnlyError(name) {
throw new TypeError("\\"" + name + "\\" is write-only");
}
`;ne.classNameTDZError=ae("7.0.0-beta.0")`
export default function _classNameTDZError(name) {
throw new ReferenceError("Class \\"" + name + "\\" cannot be referenced in computed property keys.");
}
`;ne.temporalUndefined=ae("7.0.0-beta.0")`
// This function isn't mean to be called, but to be used as a reference.
// We can't use a normal object because it isn't hoisted.
export default function _temporalUndefined() {}
`;ne.tdz=ae("7.5.5")`
export default function _tdzError(name) {
throw new ReferenceError(name + " is not defined - temporal dead zone");
}
`;ne.temporalRef=ae("7.0.0-beta.0")`
import undef from "temporalUndefined";
import err from "tdz";
export default function _temporalRef(val, name) {
return val === undef ? err(name) : val;
}
`;ne.slicedToArray=ae("7.0.0-beta.0")`
import arrayWithHoles from "arrayWithHoles";
import iterableToArrayLimit from "iterableToArrayLimit";
import unsupportedIterableToArray from "unsupportedIterableToArray";
import nonIterableRest from "nonIterableRest";
export default function _slicedToArray(arr, i) {
return (
arrayWithHoles(arr) ||
iterableToArrayLimit(arr, i) ||
unsupportedIterableToArray(arr, i) ||
nonIterableRest()
);
}
`;ne.slicedToArrayLoose=ae("7.0.0-beta.0")`
import arrayWithHoles from "arrayWithHoles";
import iterableToArrayLimitLoose from "iterableToArrayLimitLoose";
import unsupportedIterableToArray from "unsupportedIterableToArray";
import nonIterableRest from "nonIterableRest";
export default function _slicedToArrayLoose(arr, i) {
return (
arrayWithHoles(arr) ||
iterableToArrayLimitLoose(arr, i) ||
unsupportedIterableToArray(arr, i) ||
nonIterableRest()
);
}
`;ne.toArray=ae("7.0.0-beta.0")`
import arrayWithHoles from "arrayWithHoles";
import iterableToArray from "iterableToArray";
import unsupportedIterableToArray from "unsupportedIterableToArray";
import nonIterableRest from "nonIterableRest";
export default function _toArray(arr) {
return (
arrayWithHoles(arr) ||
iterableToArray(arr) ||
unsupportedIterableToArray(arr) ||
nonIterableRest()
);
}
`;ne.toConsumableArray=ae("7.0.0-beta.0")`
import arrayWithoutHoles from "arrayWithoutHoles";
import iterableToArray from "iterableToArray";
import unsupportedIterableToArray from "unsupportedIterableToArray";
import nonIterableSpread from "nonIterableSpread";
export default function _toConsumableArray(arr) {
return (
arrayWithoutHoles(arr) ||
iterableToArray(arr) ||
unsupportedIterableToArray(arr) ||
nonIterableSpread()
);
}
`;ne.arrayWithoutHoles=ae("7.0.0-beta.0")`
import arrayLikeToArray from "arrayLikeToArray";
export default function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return arrayLikeToArray(arr);
}
`;ne.arrayWithHoles=ae("7.0.0-beta.0")`
export default function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
`;ne.maybeArrayLike=ae("7.9.0")`
import arrayLikeToArray from "arrayLikeToArray";
export default function _maybeArrayLike(next, arr, i) {
if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
var len = arr.length;
return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
}
return next(arr, i);
}
`;ne.iterableToArray=ae("7.0.0-beta.0")`
export default function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
`;ne.unsupportedIterableToArray=ae("7.9.0")`
import arrayLikeToArray from "arrayLikeToArray";
export default function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
return arrayLikeToArray(o, minLen);
}
`;ne.arrayLikeToArray=ae("7.9.0")`
export default function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
`;ne.nonIterableSpread=ae("7.0.0-beta.0")`
export default function _nonIterableSpread() {
throw new TypeError(
"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
}
`;ne.nonIterableRest=ae("7.0.0-beta.0")`
export default function _nonIterableRest() {
throw new TypeError(
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
);
}
`;ne.createForOfIteratorHelper=ae("7.9.0")`
import unsupportedIterableToArray from "unsupportedIterableToArray";
// s: start (create the iterator)
// n: next
// e: error (called whenever something throws)
// f: finish (always called at the end)
export default function _createForOfIteratorHelper(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (!it) {
// Fallback for engines without symbol support
if (
Array.isArray(o) ||
(it = unsupportedIterableToArray(o)) ||
(allowArrayLike && o && typeof o.length === "number")
) {
if (it) o = it;
var i = 0;
var F = function(){};
return {
s: F,
n: function() {
if (i >= o.length) return { done: true };
return { done: false, value: o[i++] };
},
e: function(e) { throw e; },
f: F,
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var normalCompletion = true, didErr = false, err;
return {
s: function() {
it = it.call(o);
},
n: function() {
var step = it.next();
normalCompletion = step.done;
return step;
},
e: function(e) {
didErr = true;
err = e;
},
f: function() {
try {
if (!normalCompletion && it.return != null) it.return();
} finally {
if (didErr) throw err;
}
}
};
}
`;ne.createForOfIteratorHelperLoose=ae("7.9.0")`
import unsupportedIterableToArray from "unsupportedIterableToArray";
export default function _createForOfIteratorHelperLoose(o, allowArrayLike) {
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
if (it) return (it = it.call(o)).next.bind(it);
// Fallback for engines without symbol support
if (
Array.isArray(o) ||
(it = unsupportedIterableToArray(o)) ||
(allowArrayLike && o && typeof o.length === "number")
) {
if (it) o = it;
var i = 0;
return function() {
if (i >= o.length) return { done: true };
return { done: false, value: o[i++] };
}
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
`;ne.skipFirstGeneratorNext=ae("7.0.0-beta.0")`
export default function _skipFirstGeneratorNext(fn) {
return function () {
var it = fn.apply(this, arguments);
it.next();
return it;
}
}
`;ne.initializerWarningHelper=ae("7.0.0-beta.0")`
export default function _initializerWarningHelper(descriptor, context){
throw new Error(
'Decorating class property failed. Please ensure that ' +
'transform-class-properties is enabled and runs after the decorators transform.'
);
}
`;ne.initializerDefineProperty=ae("7.0.0-beta.0")`
export default function _initializerDefineProperty(target, property, descriptor, context){
if (!descriptor) return;
Object.defineProperty(target, property, {
enumerable: descriptor.enumerable,
configurable: descriptor.configurable,
writable: descriptor.writable,
value: descriptor.initializer ? descriptor.initializer.call(context) : void 0,
});
}
`;ne.applyDecoratedDescriptor=ae("7.0.0-beta.0")`
export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context){
var desc = {};
Object.keys(descriptor).forEach(function(key){
desc[key] = descriptor[key];
});
desc.enumerable = !!desc.enumerable;
desc.configurable = !!desc.configurable;
if ('value' in desc || desc.initializer){
desc.writable = true;
}
desc = decorators.slice().reverse().reduce(function(desc, decorator){
return decorator(target, property, desc) || desc;
}, desc);
if (context && desc.initializer !== void 0){
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
desc.initializer = undefined;
}
if (desc.initializer === void 0){
Object.defineProperty(target, property, desc);
desc = null;
}
return desc;
}
`;ne.classPrivateFieldLooseKey=ae("7.0.0-beta.0")`
var id = 0;
export default function _classPrivateFieldKey(name) {
return "__private_" + (id++) + "_" + name;
}
`;ne.classPrivateFieldLooseBase=ae("7.0.0-beta.0")`
export default function _classPrivateFieldBase(receiver, privateKey) {
if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) {
throw new TypeError("attempted to use private field on non-instance");
}
return receiver;
}
`;ne.classPrivateFieldGet=ae("7.0.0-beta.0")`
import classApplyDescriptorGet from "classApplyDescriptorGet";
import classPrivateFieldGet2 from "classPrivateFieldGet2";
export default function _classPrivateFieldGet(receiver, privateMap) {
var descriptor = classPrivateFieldGet2(privateMap, receiver);
return classApplyDescriptorGet(receiver, descriptor);
}
`;ne.classPrivateFieldSet=ae("7.0.0-beta.0")`
import classApplyDescriptorSet from "classApplyDescriptorSet";
import classPrivateFieldGet2 from "classPrivateFieldGet2";
export default function _classPrivateFieldSet(receiver, privateMap, value) {
var descriptor = classPrivateFieldGet2(privateMap, receiver);
classApplyDescriptorSet(receiver, descriptor, value);
return value;
}
`;ne.classPrivateFieldDestructureSet=ae("7.4.4")`
import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet";
import classPrivateFieldGet2 from "classPrivateFieldGet2";
export default function _classPrivateFieldDestructureSet(receiver, privateMap) {
var descriptor = classPrivateFieldGet2(privateMap, receiver);
return classApplyDescriptorDestructureSet(receiver, descriptor);
}
`;ne.classExtractFieldDescriptor=ae("7.13.10")`
import classPrivateFieldGet2 from "classPrivateFieldGet2";
export default function _classExtractFieldDescriptor(receiver, privateMap) {
return classPrivateFieldGet2(privateMap, receiver);
}
`;ne.classStaticPrivateFieldSpecGet=ae("7.0.2")`
import classApplyDescriptorGet from "classApplyDescriptorGet";
import assertClassBrand from "assertClassBrand";
import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";
export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) {
assertClassBrand(classConstructor, receiver);
classCheckPrivateStaticFieldDescriptor(descriptor, "get");
return classApplyDescriptorGet(receiver, descriptor);
}
`;ne.classStaticPrivateFieldSpecSet=ae("7.0.2")`
import classApplyDescriptorSet from "classApplyDescriptorSet";
import assertClassBrand from "assertClassBrand";
import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";
export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) {
assertClassBrand(classConstructor, receiver);
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
classApplyDescriptorSet(receiver, descriptor, value);
return value;
}
`;ne.classStaticPrivateMethodGet=ae("7.3.2")`
import assertClassBrand from "assertClassBrand";
export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) {
assertClassBrand(classConstructor, receiver);
return method;
}
`;ne.classStaticPrivateMethodSet=ae("7.3.2")`
export default function _classStaticPrivateMethodSet() {
throw new TypeError("attempted to set read only static private field");
}
`;ne.classApplyDescriptorGet=ae("7.13.10")`
export default function _classApplyDescriptorGet(receiver, descriptor) {
if (descriptor.get) {
return descriptor.get.call(receiver);
}
return descriptor.value;
}
`;ne.classApplyDescriptorSet=ae("7.13.10")`
export default function _classApplyDescriptorSet(receiver, descriptor, value) {
if (descriptor.set) {
descriptor.set.call(receiver, value);
} else {
if (!descriptor.writable) {
// This should only throw in strict mode, but class bodies are
// always strict and private fields can only be used inside
// class bodies.
throw new TypeError("attempted to set read only private field");
}
descriptor.value = value;
}
}
`;ne.classApplyDescriptorDestructureSet=ae("7.13.10")`
export default function _classApplyDescriptorDestructureSet(receiver, descriptor) {
if (descriptor.set) {
if (!("__destrObj" in descriptor)) {
descriptor.__destrObj = {
set value(v) {
descriptor.set.call(receiver, v)
},
};
}
return descriptor.__destrObj;
} else {
if (!descriptor.writable) {
// This should only throw in strict mode, but class bodies are
// always strict and private fields can only be used inside
// class bodies.
throw new TypeError("attempted to set read only private field");
}
return descriptor;
}
}
`;ne.classStaticPrivateFieldDestructureSet=ae("7.13.10")`
import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet";
import assertClassBrand from "assertClassBrand";
import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor";
export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) {
assertClassBrand(classConstructor, receiver);
classCheckPrivateStaticFieldDescriptor(descriptor, "set");
return classApplyDescriptorDestructureSet(receiver, descriptor);
}
`;ne.classCheckPrivateStaticAccess=ae("7.13.10")`
import assertClassBrand from "assertClassBrand";
export default function _classCheckPrivateStaticAccess(receiver, classConstructor, returnValue) {
return assertClassBrand(classConstructor, receiver, returnValue);
}
`;ne.classCheckPrivateStaticFieldDescriptor=ae("7.13.10")`
export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) {
if (descriptor === undefined) {
throw new TypeError("attempted to " + action + " private static field before its declaration");
}
}
`;ne.decorate=ae("7.1.5")`
import toArray from "toArray";
import toPropertyKey from "toPropertyKey";
// These comments are stripped by @babel/template
/*::
type PropertyDescriptor =
| {
value: any,
writable: boolean,
configurable: boolean,
enumerable: boolean,
}
| {
get?: () => any,
set?: (v: any) => void,
configurable: boolean,
enumerable: boolean,
};
type FieldDescriptor ={
writable: boolean,
configurable: boolean,
enumerable: boolean,
};
type Placement = "static" | "prototype" | "own";
type Key = string | symbol; // PrivateName is not supported yet.
type ElementDescriptor =
| {
kind: "method",
key: Key,
placement: Placement,
descriptor: PropertyDescriptor
}
| {
kind: "field",
key: Key,
placement: Placement,
descriptor: FieldDescriptor,
initializer?: () => any,
};
// This is exposed to the user code
type ElementObjectInput = ElementDescriptor & {
[@@toStringTag]?: "Descriptor"
};
// This is exposed to the user code
type ElementObjectOutput = ElementDescriptor & {
[@@toStringTag]?: "Descriptor"
extras?: ElementDescriptor[],
finisher?: ClassFinisher,
};
// This is exposed to the user code
type ClassObject = {
[@@toStringTag]?: "Descriptor",
kind: "class",
elements: ElementDescriptor[],
};
type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput;
type ClassDecorator = (descriptor: ClassObject) => ?ClassObject;
type ClassFinisher = <A, B>(cl: Class<A>) => Class<B>;
// Only used by Babel in the transform output, not part of the spec.
type ElementDefinition =
| {
kind: "method",
value: any,
key: Key,
static?: boolean,
decorators?: ElementDecorator[],
}
| {
kind: "field",
value: () => any,
key: Key,
static?: boolean,
decorators?: ElementDecorator[],
};
declare function ClassFactory<C>(initialize: (instance: C) => void): {
F: Class<C>,
d: ElementDefinition[]
}
*/
/*::
// Various combinations with/without extras and with one or many finishers
type ElementFinisherExtras = {
element: ElementDescriptor,
finisher?: ClassFinisher,
extras?: ElementDescriptor[],
};
type ElementFinishersExtras = {
element: ElementDescriptor,
finishers: ClassFinisher[],
extras: ElementDescriptor[],
};
type ElementsFinisher = {
elements: ElementDescriptor[],
finisher?: ClassFinisher,
};
type ElementsFinishers = {
elements: ElementDescriptor[],
finishers: ClassFinisher[],
};
*/
/*::
type Placements = {
static: Key[],
prototype: Key[],
own: Key[],
};
*/
// ClassDefinitionEvaluation (Steps 26-*)
export default function _decorate(
decorators /*: ClassDecorator[] */,
factory /*: ClassFactory */,
superClass /*: ?Class<*> */,
mixins /*: ?Array<Function> */,
) /*: Class<*> */ {
var api = _getDecoratorsApi();
if (mixins) {
for (var i = 0; i < mixins.length; i++) {
api = mixins[i](api);
}
}
var r = factory(function initialize(O) {
api.initializeInstanceElements(O, decorated.elements);
}, superClass);
var decorated = api.decorateClass(
_coalesceClassElements(r.d.map(_createElementDescriptor)),
decorators,
);
api.initializeClassElements(r.F, decorated.elements);
return api.runClassFinishers(r.F, decorated.finishers);
}
function _getDecoratorsApi() {
_getDecoratorsApi = function() {
return api;
};
var api = {
elementsDefinitionOrder: [["method"], ["field"]],
// InitializeInstanceElements
initializeInstanceElements: function(
/*::<C>*/ O /*: C */,
elements /*: ElementDescriptor[] */,
) {
["method", "field"].forEach(function(kind) {
elements.forEach(function(element /*: ElementDescriptor */) {
if (element.kind === kind && element.placement === "own") {
this.defineClassElement(O, element);
}
}, this);
}, this);
},
// InitializeClassElements
initializeClassElements: function(
/*::<C>*/ F /*: Class<C> */,
elements /*: ElementDescriptor[] */,
) {
var proto = F.prototype;
["method", "field"].forEach(function(kind) {
elements.forEach(function(element /*: ElementDescriptor */) {
var placement = element.placement;
if (
element.kind === kind &&
(placement === "static" || placement === "prototype")
) {
var receiver = placement === "static" ? F : proto;
this.defineClassElement(receiver, element);
}
}, this);
}, this);
},
// DefineClassElement
defineClassElement: function(
/*::<C>*/ receiver /*: C | Class<C> */,
element /*: ElementDescriptor */,
) {
var descriptor /*: PropertyDescriptor */ = element.descriptor;
if (element.kind === "field") {
var initializer = element.initializer;
descriptor = {
enumerable: descriptor.enumerable,
writable: descriptor.writable,
configurable: descriptor.configurable,
value: initializer === void 0 ? void 0 : initializer.call(receiver),
};
}
Object.defineProperty(receiver, element.key, descriptor);
},
// DecorateClass
decorateClass: function(
elements /*: ElementDescriptor[] */,
decorators /*: ClassDecorator[] */,
) /*: ElementsFinishers */ {
var newElements /*: ElementDescriptor[] */ = [];
var finishers /*: ClassFinisher[] */ = [];
var placements /*: Placements */ = {
static: [],
prototype: [],
own: [],
};
elements.forEach(function(element /*: ElementDescriptor */) {
this.addElementPlacement(element, placements);
}, this);
elements.forEach(function(element /*: ElementDescriptor */) {
if (!_hasDecorators(element)) return newElements.push(element);
var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement(
element,
placements,
);
newElements.push(elementFinishersExtras.element);
newElements.push.apply(newElements, elementFinishersExtras.extras);
finishers.push.apply(finishers, elementFinishersExtras.finishers);
}, this);
if (!decorators) {
return { elements: newElements, finishers: finishers };
}
var result /*: ElementsFinishers */ = this.decorateConstructor(
newElements,
decorators,
);
finishers.push.apply(finishers, result.finishers);
result.finishers = finishers;
return result;
},
// AddElementPlacement
addElementPlacement: function(
element /*: ElementDescriptor */,
placements /*: Placements */,
silent /*: boolean */,
) {
var keys = placements[element.placement];
if (!silent && keys.indexOf(element.key) !== -1) {
throw new TypeError("Duplicated element (" + element.key + ")");
}
keys.push(element.key);
},
// DecorateElement
decorateElement: function(
element /*: ElementDescriptor */,
placements /*: Placements */,
) /*: ElementFinishersExtras */ {
var extras /*: ElementDescriptor[] */ = [];
var finishers /*: ClassFinisher[] */ = [];
for (
var decorators = element.decorators, i = decorators.length - 1;
i >= 0;
i--
) {
// (inlined) RemoveElementPlacement
var keys = placements[element.placement];
keys.splice(keys.indexOf(element.key), 1);
var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor(
element,
);
var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras(
(0, decorators[i])(elementObject) /*: ElementObjectOutput */ ||
elementObject,
);
element = elementFinisherExtras.element;
this.addElementPlacement(element, placements);
if (elementFinisherExtras.finisher) {
finishers.push(elementFinisherExtras.finisher);
}
var newExtras /*: ElementDescriptor[] | void */ =
elementFinisherExtras.extras;
if (newExtras) {
for (var j = 0; j < newExtras.length; j++) {
this.addElementPlacement(newExtras[j], placements);
}
extras.push.apply(extras, newExtras);
}
}
return { element: element, finishers: finishers, extras: extras };
},
// DecorateConstructor
decorateConstructor: function(
elements /*: ElementDescriptor[] */,
decorators /*: ClassDecorator[] */,
) /*: ElementsFinishers */ {
var finishers /*: ClassFinisher[] */ = [];
for (var i = decorators.length - 1; i >= 0; i--) {
var obj /*: ClassObject */ = this.fromClassDescriptor(elements);
var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor(
(0, decorators[i])(obj) /*: ClassObject */ || obj,
);
if (elementsAndFinisher.finisher !== undefined) {
finishers.push(elementsAndFinisher.finisher);
}
if (elementsAndFinisher.elements !== undefined) {
elements = elementsAndFinisher.elements;
for (var j = 0; j < elements.length - 1; j++) {
for (var k = j + 1; k < elements.length; k++) {
if (
elements[j].key === elements[k].key &&
elements[j].placement === elements[k].placement
) {
throw new TypeError(
"Duplicated element (" + elements[j].key + ")",
);
}
}
}
}
}
return { elements: elements, finishers: finishers };
},
// FromElementDescriptor
fromElementDescriptor: function(
element /*: ElementDescriptor */,
) /*: ElementObject */ {
var obj /*: ElementObject */ = {
kind: element.kind,
key: element.key,
placement: element.placement,
descriptor: element.descriptor,
};
var desc = {
value: "Descriptor",
configurable: true,
};
Object.defineProperty(obj, Symbol.toStringTag, desc);
if (element.kind === "field") obj.initializer = element.initializer;
return obj;
},
// ToElementDescriptors
toElementDescriptors: function(
elementObjects /*: ElementObject[] */,
) /*: ElementDescriptor[] */ {
if (elementObjects === undefined) return;
return toArray(elementObjects).map(function(elementObject) {
var element = this.toElementDescriptor(elementObject);
this.disallowProperty(elementObject, "finisher", "An element descriptor");
this.disallowProperty(elementObject, "extras", "An element descriptor");
return element;
}, this);
},
// ToElementDescriptor
toElementDescriptor: function(
elementObject /*: ElementObject */,
) /*: ElementDescriptor */ {
var kind = String(elementObject.kind);
if (kind !== "method" && kind !== "field") {
throw new TypeError(
'An element descriptor\\'s .kind property must be either "method" or' +
' "field", but a decorator created an element descriptor with' +
' .kind "' +
kind +
'"',
);
}
var key = toPropertyKey(elementObject.key);
var placement = String(elementObject.placement);
if (
placement !== "static" &&
placement !== "prototype" &&
placement !== "own"
) {
throw new TypeError(
'An element descriptor\\'s .placement property must be one of "static",' +
' "prototype" or "own", but a decorator created an element descriptor' +
' with .placement "' +
placement +
'"',
);
}
var descriptor /*: PropertyDescriptor */ = elementObject.descriptor;
this.disallowProperty(elementObject, "elements", "An element descriptor");
var element /*: ElementDescriptor */ = {
kind: kind,
key: key,
placement: placement,
descriptor: Object.assign({}, descriptor),
};
if (kind !== "field") {
this.disallowProperty(elementObject, "initializer", "A method descriptor");
} else {
this.disallowProperty(
descriptor,
"get",
"The property descriptor of a field descriptor",
);
this.disallowProperty(
descriptor,
"set",
"The property descriptor of a field descriptor",
);
this.disallowProperty(
descriptor,
"value",
"The property descriptor of a field descriptor",
);
element.initializer = elementObject.initializer;
}
return element;
},
toElementFinisherExtras: function(
elementObject /*: ElementObject */,
) /*: ElementFinisherExtras */ {
var element /*: ElementDescriptor */ = this.toElementDescriptor(
elementObject,
);
var finisher /*: ClassFinisher */ = _optionalCallableProperty(
elementObject,
"finisher",
);
var extras /*: ElementDescriptors[] */ = this.toElementDescriptors(
elementObject.extras,
);
return { element: element, finisher: finisher, extras: extras };
},
// FromClassDescriptor
fromClassDescriptor: function(
elements /*: ElementDescriptor[] */,
) /*: ClassObject */ {
var obj = {
kind: "class",
elements: elements.map(this.fromElementDescriptor, this),
};
var desc = { value: "Descriptor", configurable: true };
Object.defineProperty(obj, Symbol.toStringTag, desc);
return obj;
},
// ToClassDescriptor
toClassDescriptor: function(
obj /*: ClassObject */,
) /*: ElementsFinisher */ {
var kind = String(obj.kind);
if (kind !== "class") {
throw new TypeError(
'A class descriptor\\'s .kind property must be "class", but a decorator' +
' created a class descriptor with .kind "' +
kind +
'"',
);
}
this.disallowProperty(obj, "key", "A class descriptor");
this.disallowProperty(obj, "placement", "A class descriptor");
this.disallowProperty(obj, "descriptor", "A class descriptor");
this.disallowProperty(obj, "initializer", "A class descriptor");
this.disallowProperty(obj, "extras", "A class descriptor");
var finisher = _optionalCallableProperty(obj, "finisher");
var elements = this.toElementDescriptors(obj.elements);
return { elements: elements, finisher: finisher };
},
// RunClassFinishers
runClassFinishers: function(
constructor /*: Class<*> */,
finishers /*: ClassFinisher[] */,
) /*: Class<*> */ {
for (var i = 0; i < finishers.length; i++) {
var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor);
if (newConstructor !== undefined) {
// NOTE: This should check if IsConstructor(newConstructor) is false.
if (typeof newConstructor !== "function") {
throw new TypeError("Finishers must return a constructor.");
}
constructor = newConstructor;
}
}
return constructor;
},
disallowProperty: function(obj, name, objectType) {
if (obj[name] !== undefined) {
throw new TypeError(objectType + " can't have a ." + name + " property.");
}
}
};
return api;
}
// ClassElementEvaluation
function _createElementDescriptor(
def /*: ElementDefinition */,
) /*: ElementDescriptor */ {
var key = toPropertyKey(def.key);
var descriptor /*: PropertyDescriptor */;
if (def.kind === "method") {
descriptor = {
value: def.value,
writable: true,
configurable: true,
enumerable: false,
};
} else if (def.kind === "get") {
descriptor = { get: def.value, configurable: true, enumerable: false };
} else if (def.kind === "set") {
descriptor = { set: def.value, configurable: true, enumerable: false };
} else if (def.kind === "field") {
descriptor = { configurable: true, writable: true, enumerable: true };
}
var element /*: ElementDescriptor */ = {
kind: def.kind === "field" ? "field" : "method",
key: key,
placement: def.static
? "static"
: def.kind === "field"
? "own"
: "prototype",
descriptor: descriptor,
};
if (def.decorators) element.decorators = def.decorators;
if (def.kind === "field") element.initializer = def.value;
return element;
}
// CoalesceGetterSetter
function _coalesceGetterSetter(
element /*: ElementDescriptor */,
other /*: ElementDescriptor */,
) {
if (element.descriptor.get !== undefined) {
other.descriptor.get = element.descriptor.get;
} else {
other.descriptor.set = element.descriptor.set;
}
}
// CoalesceClassElements
function _coalesceClassElements(
elements /*: ElementDescriptor[] */,
) /*: ElementDescriptor[] */ {
var newElements /*: ElementDescriptor[] */ = [];
var isSameElement = function(
other /*: ElementDescriptor */,
) /*: boolean */ {
return (
other.kind === "method" &&
other.key === element.key &&
other.placement === element.placement
);
};
for (var i = 0; i < elements.length; i++) {
var element /*: ElementDescriptor */ = elements[i];
var other /*: ElementDescriptor */;
if (
element.kind === "method" &&
(other = newElements.find(isSameElement))
) {
if (
_isDataDescriptor(element.descriptor) ||
_isDataDescriptor(other.descriptor)
) {
if (_hasDecorators(element) || _hasDecorators(other)) {
throw new ReferenceError(
"Duplicated methods (" + element.key + ") can't be decorated.",
);
}
other.descriptor = element.descriptor;
} else {
if (_hasDecorators(element)) {
if (_hasDecorators(other)) {
throw new ReferenceError(
"Decorators can't be placed on different accessors with for " +
"the same property (" +
element.key +
").",
);
}
other.decorators = element.decorators;
}
_coalesceGetterSetter(element, other);
}
} else {
newElements.push(element);
}
}
return newElements;
}
function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ {
return element.decorators && element.decorators.length;
}
function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ {
return (
desc !== undefined &&
!(desc.value === undefined && desc.writable === undefined)
);
}
function _optionalCallableProperty /*::<T>*/(
obj /*: T */,
name /*: $Keys<T> */,
) /*: ?Function */ {
var value = obj[name];
if (value !== undefined && typeof value !== "function") {
throw new TypeError("Expected '" + name + "' to be a function");
}
return value;
}
`;ne.classPrivateMethodGet=ae("7.1.6")`
import assertClassBrand from "assertClassBrand";
export default function _classPrivateMethodGet(receiver, privateSet, fn) {
assertClassBrand(privateSet, receiver);
return fn;
}
`;ne.checkPrivateRedeclaration=ae("7.14.1")`
export default function _checkPrivateRedeclaration(obj, privateCollection) {
if (privateCollection.has(obj)) {
throw new TypeError("Cannot initialize the same private elements twice on an object");
}
}
`;ne.classPrivateFieldInitSpec=ae("7.14.1")`
import checkPrivateRedeclaration from "checkPrivateRedeclaration";
export default function _classPrivateFieldInitSpec(obj, privateMap, value) {
checkPrivateRedeclaration(obj, privateMap);
privateMap.set(obj, value);
}
`;ne.classPrivateMethodInitSpec=ae("7.14.1")`
import checkPrivateRedeclaration from "checkPrivateRedeclaration";
export default function _classPrivateMethodInitSpec(obj, privateSet) {
checkPrivateRedeclaration(obj, privateSet);
privateSet.add(obj);
}
`;ne.classPrivateMethodSet=ae("7.1.6")`
export default function _classPrivateMethodSet() {
throw new TypeError("attempted to reassign private method");
}
`;ne.identity=ae("7.17.0")`
export default function _identity(x) {
return x;
}
`;ne.nullishReceiverError=ae("7.22.6")`
export default function _nullishReceiverError(r) {
throw new TypeError("Cannot set property of null or undefined.");
}
`});var A0=E(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.default=void 0;En.ensure=ufe;En.get=_C;En.getDependencies=lfe;En.list=void 0;En.minVersion=ofe;var x0=Xr(),rfe=De(),P0=wC(),{assignmentExpression:DC,cloneNode:nfe,expressionStatement:sfe,file:IC,identifier:ife}=rfe;function cc(e){let t=[];for(;e.parentPath;e=e.parentPath)t.push(e.key),e.inList&&t.push(e.listKey);return t.reverse().join(".")}var fc;function OC(e){let t=new Set,r=new Set,n=new Map,s,i,a=[],o=[],l=[],u={ImportDeclaration(f){let p=f.node.source.value;if(!P0.default[p])throw f.buildCodeFrameError(`Unknown helper ${p}`);if(f.get("specifiers").length!==1||!f.get("specifiers.0").isImportDefaultSpecifier())throw f.buildCodeFrameError("Helpers can only import a default value");let m=f.node.specifiers[0].local;n.set(m,p),o.push(cc(f))},ExportDefaultDeclaration(f){let p=f.get("declaration");if(!p.isFunctionDeclaration()||!p.node.id)throw p.buildCodeFrameError("Helpers can only export named function declarations");s=p.node.id.name,i=cc(f)},ExportAllDeclaration(f){throw f.buildCodeFrameError("Helpers can only export default")},ExportNamedDeclaration(f){throw f.buildCodeFrameError("Helpers can only export default")},Statement(f){f.isImportDeclaration()||f.isExportDeclaration()||f.skip()}},c={Program(f){let p=f.scope.getAllBindings();Object.keys(p).forEach(m=>{m!==s&&(n.has(p[m].identifier)||r.add(m))})},ReferencedIdentifier(f){let p=f.node.name,m=f.scope.getBinding(p);m?n.has(m.identifier)&&l.push(cc(f)):(p!=="arguments"||f.scope.path.isProgram())&&t.add(p)},AssignmentExpression(f){let p=f.get("left");if(!(s in p.getBindingIdentifiers()))return;if(!p.isIdentifier())throw p.buildCodeFrameError("Only simple assignments to exports are allowed in helpers");let m=f.scope.getBinding(s);m!=null&&m.scope.path.isProgram()&&a.push(cc(f))}};if((0,x0.default)(e.ast,u,e.scope),(0,x0.default)(e.ast,c,e.scope),!i)throw new Error("Helpers must have a default export.");return a.reverse(),{globals:Array.from(t),localBindingNames:Array.from(r),dependencies:n,exportBindingAssignments:a,exportPath:i,exportName:s,importBindingsReferences:l,importPaths:o}}function afe(e,t,r,n,s){if(n&&!r)throw new Error("Unexpected local bindings for module-based helpers.");if(!r)return;let{localBindingNames:i,dependencies:a,exportBindingAssignments:o,exportPath:l,exportName:u,importBindingsReferences:c,importPaths:f}=t,p={};a.forEach((O,_)=>{p[_.name]=typeof s=="function"&&s(O)||_});let m={},b=new Set(n||[]);r.type==="Identifier"&&b.add(r.name),i.forEach(O=>{let _=O;for(;b.has(_);)_="_"+_;_!==O&&(m[O]=_)}),r.type==="Identifier"&&u!==r.name&&(m[u]=r.name);let{path:d}=e,y=d.get(l),v=f.map(O=>d.get(O)),I=c.map(O=>d.get(O)),D=y.get("declaration");if(r.type==="Identifier")y.replaceWith(D);else if(r.type==="MemberExpression")o.forEach(O=>{let _=d.get(O);_.replaceWith(DC("=",r,_.node))}),y.replaceWith(D),d.pushContainer("body",sfe(DC("=",r,ife(u))));else throw new Error("Unexpected helper format.");Object.keys(m).forEach(O=>{d.scope.rename(O,m[O])});for(let O of v)O.remove();for(let O of I){let _=nfe(p[O.node.name]);O.replaceWith(_)}}var S0=Object.create(null);function pc(e){if(!S0[e]){let t=P0.default[e];if(!t)throw Object.assign(new ReferenceError(`Unknown helper ${e}`),{code:"BABEL_HELPER_UNKNOWN",helper:e});let r=()=>{if(!fc){let s={ast:IC(t.ast()),path:null};return(0,x0.default)(s.ast,{Program:i=>(s.path=i).stop()}),s}return new fc({filename:`babel-helper://${e}`},{ast:IC(t.ast()),code:"[internal Babel helper code]",inputMap:null})},n=null;S0[e]={minVersion:t.minVersion,build(s,i,a){let o=r();return n||(n=OC(o)),afe(o,n,i,a,s),{nodes:o.ast.program.body,globals:n.globals}},getDependencies(){return n||(n=OC(r())),Array.from(n.dependencies.values())}}}return S0[e]}function _C(e,t,r,n){return pc(e).build(t,r,n)}function ofe(e){return pc(e).minVersion}function lfe(e){return pc(e).getDependencies()}function ufe(e,t){fc||(fc=t),pc(e)}var iwe=En.list=Object.keys(P0.default).map(e=>e.replace(/^_/,"")),awe=En.default=_C});var BC=E(hc=>{"use strict";Object.defineProperty(hc,"__esModule"
(function() {
throw new Error('"' + '${e}' + '" is read-only.');
})()
`,Zfe={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(Jfe(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}))&&qC(c))e.replaceWith(Mo([Hfe(0),c]));else if(e.isJSXIdentifier()&&qC(c)){let{object:f,property:p}=c;e.replaceWith(Gfe(UC(f.name),UC(p.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),f=n.get(u);if((c==null?void 0:c.length)>0||f)if(f)e.replaceWith(bc(l.operator[0]+"=",a(f,o.node),gc(u)));else if(l.prefix)e.replaceWith(oi(this.metadata,c,Lo(l),e.scope));else{let p=t.generateDeclaredUidIdentifier(u);e.replaceWith(Mo([bc("=",Lo(p),Lo(l)),oi(this.metadata,c,xs(u),e.scope),Lo(p)]))}}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){Mfe(e.node.operator==="=","Path was not simplified");let f=e.node;c&&(f.left=a(c,o.node),f.right=Mo([f.right,gc(l)])),e.replaceWith(oi(this.metadata,u,f,e.scope)),i(e)}}else{let l=o.getOuterBindingIdentifiers(),u=Object.keys(l).filter(p=>t.getBinding(p)===e.scope.getBinding(p)),c=u.find(p=>n.has(p));c&&(e.node.right=Mo([e.node.right,gc(c)]));let f=[];if(u.forEach(p=>{let m=s.get(p)||[];m.length>0&&f.push(oi(this.metadata,m,xs(p),e.scope))}),f.length>0){let p=Mo(f);e.parentPath.isExpressionStatement()&&(p=Ro(p),p._blockHoist=e.parentPath.node._blockHoist);let m=e.insertAfter(p)[0];i(m)}}}},"ForOfStatement|ForInStatement"(e){let{scope:t,node:r}=e,{left:n}=r,{exported:s,imported:i,scope:a}=this;if(!Kfe(n)){let o=!1,l,u=e.get("body").scope;for(let p of Object.keys(qfe(n)))a.getBinding(p)===t.getBinding(p)&&(s.has(p)&&(o=!0,u.hasOwnBinding(p)&&u.rename(p)),i.has(p)&&!l&&(l=p));if(!o&&!l)return;e.ensureBlock();let c=e.get("body"),f=t.generateUidIdentifierBasedOnNode(n);e.get("left").replaceWith(Yfe("let",[Xfe(Lo(f))])),t.registerDeclaration(e.get("left")),o&&c.unshiftContainer("body",Ro(bc("=",n,f))),l&&c.unshiftContainer("body",Ro(gc(l)))}}}});var U0=E(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.default=ipe;sa.hasExports=rpe;sa.isSideEffectImport=npe;sa.validateImportInteropOption=HC;var GC=require("path"),epe=Oi(),tpe=ro();function rpe(e){return e.hasExports}function npe(e){return e.imports.size===0&&e.importsNamespace.size===0&&e.reexports.size===0&&e.reexportNamespace.size===0&&!e.reexportAll}function HC(e){if(typeof e!="function"&&e!=="none"&&e!=="babel"&&e!=="node")throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${e}).`);return e}function spe(e,t,r){return typeof e=="function"?HC(e(t,r)):e}function ipe(e,t,{importInterop:r,initializeReexports:n=!1,getWrapperPayload:s,esNamespaceOnly:i=!1,filename:a}){t||(t=e.scope.generateUidIdentifier("exports").name);let o=new Set;lpe(e);let{local:l,sources:u,hasExports:c}=ape(e,{initializeReexports:n,getWrapperPayload:s},o);upe(e);for(let[f,p]of u){let{importsNamespace:m,imports:b}=p;if(m.size>0&&b.size===0){let[y]=m;p.name=y}let d=spe(r,f,a);d==="none"?p.interop="none":d==="node"&&p.interop==="na
Promise.resolve().then(() => ${n(s)})
`:n(s);let i=zt.types.isTemplateLiteral(s)?zt.types.identifier("specifier"):zt.types.templateLiteral([zt.types.templateElement({raw:""}),zt.types.templateElement({raw:""})],[zt.types.identifier("specifier")]);return t?zt.template.expression.ast`
(specifier =>
new Promise(r => r(${i}))
.then(s => ${n(zt.types.identifier("s"))})
)(${s})
`:r?zt.template.expression.ast`
(specifier =>
new Promise(r => r(${n(i)}))
)(${s})
`:zt.template.expression.ast`
(specifier => ${n(i)})(${s})
`}});var JC=E(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.default=$0;{let e=$0;Sc.default=$0=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 $0(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 Uo=E(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Object.defineProperty(Dr,"buildDynamicImport",{enumerable:!0,get:function(){return gpe.buildDynamicImport}});Dr.buildNamespaceInitStatements=_pe;Dr.ensureStatementsHoisted=Ipe;Object.defineProperty(Dr,"getModuleName",{enumerable:!0,get:function(){return bpe.default}});Object.defineProperty(Dr,"hasExports",{enumerable:!0,get:function(){return qo.hasExports}});Object.defineProperty(Dr,"isModule",{enumerable:!0,get:function(){return ZC.isModule}});Object.defineProperty(Dr,"isSideEffectImport",{enumerable:!0,get:function(){return qo.isSideEffectImport}});Dr.rewriteModuleStatementsAndPrepareHeader=Dpe;Object.defineProperty(Dr,"rewriteThis",{enumerable:!0,get:function(){return e2.default}});Dr.wrapInterop=Ope;var mpe=require("assert"),tr=Et(),ZC=N0(),e2=LC(),ype=KC(),qo=U0(),H0=XC(),gpe=V0(),bpe=JC(),{booleanLiteral:Epe,callExpression:zC,cloneNode:xc,directive:vpe,directiveLiteral:Tpe,expressionStatement:Spe,identifier:Pc,isIdentifier:xpe,memberExpression:QC,stringLiteral:Ppe,valueToNode:Ape,variableDeclaration:Cpe,variableDeclarator:wpe}=tr.types;Dr.getDynamicImportSource=V0().getDynamicImportSource;function Dpe(e,{exportName:t,strict:r,allowTopLevelThis:n,strictMode:s,noInterop:i,importInterop:a=i?"none":"babel",lazy:o,getWrapperPayload:l=H0.toGetWrapperPayload(o!=null?o:!1),wrapReference:u=H0.wrapReference,esNamespaceOnly:c,filename:f,constantReexports:p=arguments[1].loose,enumerableModuleMeta:m=arguments[1].loose,noIncompleteNsImportDetection:b}){(0,qo.validateImportInteropOption)(a),mpe((0,ZC.isModule)(e),"Cannot process module statements in a script"),e.node.sourceType="script";let d=(0,qo.default)(e,t,{importInterop:a,initializeReexports:p,getWrapperPayload:l,esNamespaceOnly:c,filename:f});n||(0,e2.default)(e),(0,ype.default)(e,d,u),s!==!1&&(e.node.directives.some(D=>D.value.value==="use strict")||e.unshiftContainer("directives",vpe(Tpe("use strict"))));let y=[];(0,qo.hasExports)(d)&&!r&&y.push(Npe(d,m));let v=Bpe(e,d);return v&&(d.exportNameListName=v.name,y.push(v.statement)),y.push(...Fpe(e,d,u,p,b)),{meta:d,headers:y}}function Ipe(e){e.forEach(t=>{t._blockHoist=3})}function Ope(e,t,r){if(r==="none")return null;if(r==="node-namespace")return zC(e.hub.addHelper("interopRequireWildcard"),[t,Epe(!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 zC(e.hub.addHelper(n),[t])}function _pe(e,t,r=!1,n=H0.wrapReference){var s;let i=[],a=Pc(t.name);for(let l of t.importsNamespace)l!==t.name&&i.push(tr.template.statement`var NAME = SOURCE;`({NAME:l,SOURCE:xc(a)}));let o=(s=n(a,t.wrap))!=null?s:a;r&&i.push(...t2(e,t,!0,n));for(let l of t.reexportNamespace)i.push((tr.types.isIdentifier(o)?tr.template.statement`EXPORTS.NAME = NAMESPACE;`:tr.template.statement`
Object.defineProperty(EXPORTS, "NAME", {
enumerable: true,
get: function() {
return NAMESPACE;
}
});
`)({EXPORTS:e.exportName,NAME:l,NAMESPACE:xc(o)}));if(t.reexportAll){let l=kpe(e,xc(o),r);l.loc=t.reexportAll.loc,i.push(l)}return i}var W0={constant:tr.template.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`,constantComputed:tr.template.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`,spec:tr.template.statement`
Object.defineProperty(EXPORTS, "EXPORT_NAME", {
enumerable: true,
get: function() {
return NAMESPACE_IMPORT;
},
});
`};function t2(e,t,r,n){var s;let i=Pc(t.name);i=(s=n(i,t.wrap))!=null?s:i;let{stringSpecifiers:a}=e;return Array.from(t.reexports,([o,l])=>{let u=xc(i);l==="default"&&t.interop==="node-default"||(a.has(l)?u=QC(u,Ppe(l),!0):u=QC(u,Pc(l)));let c={EXPORTS:e.exportName,EXPORT_NAME:o,NAMESPACE_IMPORT:u};return r||xpe(u)?a.has(o)?W0.constantComputed(c):W0.constant(c):W0.spec(c)})}function Npe(e,t=!1){return(t?tr.template.statement`
EXPORTS.__esModule = true;
`:tr.template.statement`
Object.defineProperty(EXPORTS, "__esModule", {
value: true,
});
`)({EXPORTS:e.exportName})}function kpe(e,t,r){return(r?tr.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];
});
`:tr.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,tr.template)`
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
`({EXPORTS_LIST:e.exportNameListName}):null})}function Bpe(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:Cpe("var",[wpe(s,Ape(r))])}}function Fpe(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],G0(t,l.names,Pc(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=t2(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[f,p]=i[l+c];p!==null?(u.length>0&&(a.push(G0(t,u,e.scope.buildUndefinedNode())),u=[]),a.push(p)):u.push(f)}u.length>0&&a.push(G0(t,u,e.scope.buildUndefinedNode()))}return a}var K0={computed:tr.template.expression`EXPORTS["NAME"] = VALUE`,default:tr.template.expression`EXPORTS.NAME = VALUE`,define:tr.template.expression`Object.defineProperty(EXPORTS, "NAME", { enumerable:true, value: void 0, writable: true })["NAME"] = VALUE`};function G0(e,t,r){let{stringSpecifiers:n,exportName:s}=e;return Spe(t.reduce((i,a)=>{let o={EXPORTS:s,NAME:a,VALUE:i};return a==="__proto__"?K0.define(o):n.has(a)?K0.computed(o):K0.default(o)},r))}});var qn=E((ke,a2)=>{ke=a2.exports=Ue;var gt;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?gt=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:gt=function(){};ke.SEMVER_SPEC_VERSION="2.0.0";var Vo=256,Ac=Number.MAX_SAFE_INTEGER||9007199254740991,Y0=16,jpe=Vo-6,ia=ke.re=[],yt=ke.safeRe=[],H=ke.src=[],U=ke.tokens={},s2=0;function Ye(e){U[e]=s2++}var J0="[a-zA-Z0-9-]",X0=[["\\s",1],["\\d",Vo],[J0,jpe]];function Wo(e){for(var t=0;t<X0.length;t++){var r=X0[t][0],n=X0[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return e}Ye("NUMERICIDENTIFIER");H[U.NUMERICIDENTIFIER]="0|[1-9]\\d*";Ye("NUMERICIDENTIFIERLOOSE");H[U.NUMERICIDENTIFIERLOOSE]="\\d+";Ye("NONNUMERICIDENTIFIER");H[U.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+J0+"*";Ye("MAINVERSION");H[U.MAINVERSION]="("+H[U.NUMERICIDENTIFIER]+")\\.("+H[U.NUMERICIDENTIFIER]+")\\.("+H[U.NUMERICIDENTIFIER]+")";Ye("MAINVERSIONLOOSE");H[U.MAINVERSIONLOOSE]="("+H[U.NUMERICIDENTIFIERLOOSE]+")\\.("+H[U.NUMERICIDENTIFIERLOOSE]+")\\.("+H[U.NUMERICIDENTIFIERLOOSE]+")";Ye("PRERELEASEIDENTIFIER");H[U.PRERELEASEIDENTIFIER]="(?:"+H[U.NUMERICIDENTIFIER]+"|"+H[U.NONNUMERICIDENTIFIER]+")";Ye("PRERELEASEIDENTIFIERLOOSE");H[U.PRERELEASEIDENTIFIERLOOSE]="(?:"+H[U.NUMERICIDENTIFIERLOOSE]+"|"+H[U.NONNUMERICIDENTIFIER]+")";Ye("PRERELEASE");H[U.PRERELEASE]="(?:-("+H[U.PRERELEASEIDENTIFIER]+"(?:\\."+H[U.PRERELEASEIDENTIFIER]+")*))";Ye("PRERELEASELOOSE");H[U.PRERELEASELOOSE]="(?:-?("+H[U.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+H[U.PRERELEASEIDENTIFIERLOOSE]+")*))";Ye("BUILDIDENTIFIER");H[U.BUILDIDENTIFIER]=J0+"+";Ye("BUILD");H[U.BUILD]="(?:\\+("+H[U.BUILDIDENTIFIER]+"(?:\\."+H[U.BUILDIDENTIFIER]+")*))";Ye("FULL");Ye("FULLPLAIN");H[U.FULLPLAIN]="v?"+H[U.MAINVERSION]+H[U.PRERELEASE]+"?"+H[U.BUILD]+"?";H[U.FULL]="^"+H[U.FULLPLAIN]+"$";Ye("LOOSEPLAIN");H[U.LOOSEPLAIN]="[v=\\s]*"+H[U.MAINVERSIONLOOSE]+H[U.PRERELEASELOOSE]+"?"+H[U.BUILD]+"?";Ye("LOOSE");H[U.LOOSE]="^"+H[U.LOOSEPLAIN]+"$";Ye("GTLT");H[U.GTLT]="((?:<|>)?=?)";Ye("XRANGEIDENTIFIERLOOSE");H[U.XRANGEIDENTIFIERLOOSE]=H[U.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Ye("XRANGEIDENTIFIER");H[U.XRANGEIDENTIFIER]=H[U.NUMERICIDENTIFIER]+"|x|X|\\*";Ye("XRANGEPLAIN");H[U.XRANGEPLAIN]="[v=\\s]*("+H[U.XRANGEIDENTIFIER]+")(?:\\.("+H[U.XRANGEIDENTIFIER]+")(?:\\.("+H[U.XRANGEIDENTIFIER]+")(?:"+H[U.PRERELEASE]+")?"+H[U.BUILD]+"?)
`+(0,o2().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)}};Oc.default=Go;Go.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'.")},Go.prototype.addTemplateObject=function(){throw new Error("This function has been moved into the template literal transform itself.")}});var y2=E(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});ag.default=Mde;function Nc(){let e=A0();return Nc=function(){return e},e}function c2(){let e=Ou();return c2=function(){return e},e}function f2(){let e=ea();return f2=function(){return e},e}function p2(){let e=De();return p2=function(){return e},e}var Sde=_c(),{arrayExpression:xde,assignmentExpression:d2,binaryExpression:Pde,blockStatement:Ade,callExpression:Cde,cloneNode:wde,conditionalExpression:Dde,exportNamedDeclaration:Ide,exportSpecifier:Ode,expressionStatement:h2,functionExpression:_de,identifier:rr,memberExpression:rg,objectExpression:ng,program:kc,stringLiteral:m2,unaryExpression:Nde,variableDeclaration:sg,variableDeclarator:ig}=p2(),kde=e=>f2().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 Bde(e){let t=rr("babelHelpers"),r=[],n=_de(null,[rr("global")],Ade(r)),s=kc([h2(Cde(n,[Dde(Pde("===",Nde("typeof",rr("global")),m2("undefined")),rr("self"),rr("global"))]))]);return r.push(sg("var",[ig(t,d2("=",rg(rr("global"),t),ng([])))])),Bc(r,t,e),s}function Fde(e){let t=[],r=Bc(t,null,e);return t.unshift(Ide(null,Object.keys(r).map(n=>Ode(wde(r[n]),rr(n))))),kc(t,[],"module")}function jde(e){let t=rr("babelHelpers"),r=[];return r.push(sg("var",[ig(t,rr("global"))])),Bc(r,t,e),kc([kde({FACTORY_PARAMETERS:rr("global"),BROWSER_ARGUMENTS:d2("=",rg(rr("root"),t),ng([])),COMMON_ARGUMENTS:rr("exports"),AMD_ARGUMENTS:xde([m2("exports")]),FACTORY_BODY:r,UMD_ROOT:rr("this")})])}function Lde(e){let t=rr("babelHelpers"),r=[];r.push(sg("var",[ig(t,ng([]))]));let n=kc(r);return Bc(r,t,e),r.push(h2(t)),n}function Bc(e,t,r){let n=i=>t?rg(t,rr(i)):rr(`_${i}`),s={};return Nc().list.forEach(function(i){if(r&&r.indexOf(i)<0)return;let a=s[i]=n(i);Nc().ensure(i,Sde.default);let{nodes:o}=Nc().get(i,n,a);e.push(...o)}),s}function Mde(e,t="global"){let r,n={global:Bde,module:Fde,umd:jde,var:Lde}[t];if(n)r=n(e);else throw new Error(`Unsupported output type ${t}`);return(0,c2().default)(r).code}});var Ir=E((Swe,P2)=>{"use strict";var b2=Symbol.for("gensync:v1:start"),E2=Symbol.for("gensync:v1:suspend"),Rde="GENSYNC_EXPECTED_START",qde="GENSYNC_EXPECTED_SUSPEND",v2="GENSYNC_OPTIONS_ERROR",g2="GENSYNC_RACE_NONEMPTY",Ude="GENSYNC_ERRBACK_NO_CALLBACK";P2.exports=Object.assign(function(t){let r=t;return typeof t!="function"?r=$de(t):r=Wde(t),Object.assign(r,Vde(r))},{all:og({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map(r=>lg(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)=>{Fc(a,l=>{i[o]=l,s+=1,s===i.length&&t(i)},r)})}}),race:og({name:"race",arity:1,sync:function(e){let t=Array.from(e[0]);if(t.length===0)throw ci("Must race at least 1 item",g2);return lg(t[0])},async:function(e,t,r){let n=Array.from(e[0]);if(n.length===0)throw ci("Must race at least 1 item",g2);for(let s of n)Fc(s,t,r)}})});function Vde(e){return{sync:function(...r){return lg(e.apply(this,r))},async:function(...r){return new Promise((n,s)=>{Fc(e.apply(this,r),n,s)})},errback:function(...r){let n=r.pop();if(typeof n!="function")throw ci("Asynchronous function called without callback",Ude);let s;try{s=e.apply(this,r)}catch(i){n(i);return}Fc(s,i=>n(void 0,i),i=>n(i))}}}function Ho(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}.`,ci(s,v2)}function ci(e,t){return Object.assign(new Error(e),{code:t})}function $de({name:e,arity:t,sync:r,async:n,errback:s}){if(Ho("string","name",e,!0),Ho("number","arity",t,!0),Ho("function","sync",r),Ho("function","async",n,!0),Ho("function","errback",s,!0),n&&s)throw ci("Expected one of either opts.async or opts.errback, but got _both_.",v2);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),og({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 Wde(e){return x2(e.name,e.length,function(...t){return e.apply(this,t)})}function og({name:e,arity:t,sync:r,async:n}){return x2(e,t,function*(...s){let i=yield b2;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 E2,a.hasOwnProperty("err"))throw a.err;return a.value})}function lg(e){let t;for(;!({value:t}=e.next()).done;)T2(t,e);return t}function Fc(e,t,r){(function n(){try{let s;for(;!({value:s}=e.next()).done;){T2(s,e);let i=!0,a=!1,o=e.next(()=>{i?a=!0:n()});if(i=!1,Kde(o,e),!a)return}return t(s)}catch(s){return r(s)}})()}function T2(e,t){e!==
at ${t.join(`
at `)}`}});var di=E(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.default=void 0;var V2=Un(),mg=class extends Error{constructor(t,r){super(t),(0,V2.expectedError)(this),r&&(0,V2.injectVirtualStackFrame)(this,r)}};Vc.default=mg});var $2=E(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.findPackageData=bhe;function fa(){let e=require("path");return fa=function(){return e},e}var mhe=hg(),yg=di(),yhe="package.json",ghe=(0,mhe.makeStaticFileCache)((e,t)=>{let r;try{r=JSON.parse(t)}catch(n){throw new yg.default(`Error while parsing JSON - ${n.message}`,e)}if(!r)throw new Error(`${e}: No config detected`);if(typeof r!="object")throw new yg.default(`Config returned typeof ${typeof r}`,e);if(Array.isArray(r))throw new yg.default("Expected config object but found array",e);return{filepath:e,dirname:fa().dirname(e),options:r}});function*bhe(e){let t=null,r=[],n=!0,s=fa().dirname(e);for(;!t&&fa().basename(s)!=="node_modules";){r.push(s),t=yield*ghe(fa().join(s,yhe));let i=fa().dirname(s);if(s===i){n=!1;break}s=i}return{filepath:e,directories:r,pkg:t,isPackage:n}}});var W2=E((jwe,$c)=>{$c.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;$c.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
`?(As++,tn=0):e?tn+=e.length:tn++,e&&(Kc+=e.length),e}var H2={default(){switch(Ze){case" ":case"\v":case"\f":case" ":case"\xA0":case"\uFEFF":case`
`:case"\r":case"\u2028":case"\u2029":G();return;case"/":G(),Ve="comment";return;case void 0:return G(),Ct("eof")}if(Kt.isSpaceSeparator(Ze)){G();return}return H2[Er]()},comment(){switch(Ze){case"*":G(),Ve="multiLineComment";return;case"/":G(),Ve="singleLineComment";return}throw wt(G())},multiLineComment(){switch(Ze){case"*":G(),Ve="multiLineCommentAsterisk";return;case void 0:throw wt(G())}G()},multiLineCommentAsterisk(){switch(Ze){case"*":G();return;case"/":G(),Ve="default";return;case void 0:throw wt(G())}G(),Ve="multiLineComment"},singleLineComment(){switch(Ze){case`
`:case"\r":case"\u2028":case"\u2029":G(),Ve="default";return;case void 0:return G(),Ct("eof")}G()},value(){switch(Ze){case"{":case"[":return Ct("punctuator",G());case"n":return G(),hi("ull"),Ct("null",null);case"t":return G(),hi("rue"),Ct("boolean",!0);case"f":return G(),hi("alse"),Ct("boolean",!1);case"-":case"+":G()==="-"&&(Vn=-1),Ve="sign";return;case".":Le=G(),Ve="decimalPointLeading";return;case"0":Le=G(),Ve="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Le=G(),Ve="decimalInteger";return;case"I":return G(),hi("nfinity"),Ct("numeric",1/0);case"N":return G(),hi("aN"),Ct("numeric",NaN);case'"':case"'":Xo=G()==='"',Le="",Ve="string";return}throw wt(G())},identifierNameStartEscape(){if(Ze!=="u")throw wt(G());G();let e=xg();switch(e){case"$":case"_":break;default:if(!Kt.isIdStartChar(e))throw G2();break}Le+=e,Ve="identifierName"},identifierName(){switch(Ze){case"$":case"_":case"\u200C":case"\u200D":Le+=G();return;case"\\":G(),Ve="identifierNameEscape";return}if(Kt.isIdContinueChar(Ze)){Le+=G();return}return Ct("identifier",Le)},identifierNameEscape(){if(Ze!=="u")throw wt(G());G();let e=xg();switch(e){case"$":case"_":case"\u200C":case"\u200D":break;default:if(!Kt.isIdContinueChar(e))throw G2();break}Le+=e,Ve="identifierName"},sign(){switch(Ze){case".":Le=G(),Ve="decimalPointLeading";return;case"0":Le=G(),Ve="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":Le=G(),Ve="decimalInteger";return;case"I":return G(),hi("nfinity"),Ct("numeric",Vn*(1/0));case"N":return G(),hi("aN"),Ct("numeric",NaN)}throw wt(G())},zero(){switch(Ze){case".":Le+=G(),Ve="decimalPoint";return;case"e":case"E":Le+=G(),Ve="decimalExponent";return;case"x":case"X":Le+=G(),Ve="hexadecimal";return}return Ct("numeric",Vn*0)},decimalInteger(){switch(Ze){case".":Le+=G(),Ve="decimalPoint";return;case"e":case"E":Le+=G(),Ve="decimalExponent";return}if(Kt.isDigit(Ze)){Le+=G();return}return Ct("numeric",Vn*Number(Le))},decimalPointLeading(){if(Kt.isDigit(Ze)){Le+=G(),Ve="decimalFraction";return}throw wt(G())},decimalPoint(){switch(Ze){case"e":case"E":Le+=G(),Ve="decimalExponent";return}if(Kt.isDigit(Ze)){Le+=G(),Ve="decimalFraction";return}return Ct("numeric",Vn*Number(Le))},decimalFraction(){switch(Ze){case"e":case"E":Le+=G(),Ve="decimalExponent";return}if(Kt.isDigit(Ze)){Le+=G();return}return Ct("numeric",Vn*Number(Le))},decimalExponent(){switch(Ze){case"+":case"-":Le+=G(),Ve="decimalExponentSign";return}if(Kt.isDigit(Ze)){Le+=G(),Ve="decimalExponentInteger";return}throw wt(G())},decimalExponentSign(){if(Kt.isDigit(Ze)){Le+=G(),Ve="decimalExponentInteger";return}throw wt(G())},decimalExponentInteger(){if(Kt.isDigit(Ze)){Le+=G();return}return Ct("numeric",Vn*Number(Le))},hexadecimal(){if(Kt.isHexDigit(Ze)){Le+=G(),Ve="hexadecimalInteger";return}throw wt(G())},hexadecimalInteger(){if(Kt.isHexDigit(Ze)){Le+=G();return}return Ct("numeric",Vn*Number(Le))},string(){switch(Ze){case"\\":G(),Le+=vhe();return;case'"':if(Xo)return G(),Ct("string",Le);Le+=G();return;case"'":if(!Xo)return G(),Ct("string",Le);Le+=G();return;case`
`:case"\r":throw wt(G());case"\u2028":case"\u2029":xhe(Ze);break;case void 0:throw wt(G())}Le+=G()},start(){switch(Ze){case"{":case"[":return Ct("punctuator",G())}Ve="value"},beforePropertyName(){switch(Ze){case"$":case"_":Le=G(),Ve="identifierName";return;case"\\":G(),Ve="identifierNameStartEscape";return;case"}":return Ct("punctuator",G());case'"':case"'":Xo=G()==='"',Ve="string";return}if(Kt.isIdStartChar(Ze)){Le+=G(),Ve="identifierName";return}throw wt(G())},afterPropertyName(){if(Ze===":")return Ct("punctuator",G());throw wt(G())},beforePropertyValue(){Ve="value"},afterPropertyValue(){switch(Ze){case",":case"}":return Ct("punctuator",G())}throw wt(G())},beforeArrayValue(){if(Ze==="]")return Ct("punctuator",G());Ve="value"},afterArrayValue(){switch(Ze){case",":case"]":return Ct("punctuator",G())}throw wt(G())},end(){throw wt(G())}};function Ct(e,t){return{type:e,value:t,line:As,column:tn}}function hi(e){for(let t of e){if(Wn()!==t)throw wt(G());G()}}function vhe(){switch(Wn()){case"b":return G(),"\b";case"f":return G(),"\f";case"n":return G(),`
`;case"r":return G(),"\r";case"t":return G()," ";case"v":return G(),"\v";case"0":if(G(),Kt.isDigit(Wn()))throw wt(G());return"\0";case"x":return G(),The();case"u":return G(),xg();case`
`:case"\u2028":case"\u2029":return G(),"";case"\r":return G(),Wn()===`
`&&G(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw wt(G());case void 0:throw wt(G())}return G()}function The(){let e="",t=Wn();if(!Kt.isHexDigit(t)||(e+=G(),t=Wn(),!Kt.isHexDigit(t)))throw wt(G());return e+=G(),String.fromCodePoint(parseInt(e,16))}function xg(){let e="",t=4;for(;t-- >0;){let r=Wn();if(!Kt.isHexDigit(r))throw wt(G());e+=G()}return String.fromCodePoint(parseInt(e,16))}var She={start(){if(Gt.type==="eof")throw mi();vg()},beforePropertyName(){switch(Gt.type){case"identifier":case"string":Pg=Gt.value,Er="afterPropertyName";return;case"punctuator":Wc();return;case"eof":throw mi()}},afterPropertyName(){if(Gt.type==="eof")throw mi();Er="beforePropertyValue"},beforePropertyValue(){if(Gt.type==="eof")throw mi();vg()},beforeArrayValue(){if(Gt.type==="eof")throw mi();if(Gt.type==="punctuator"&&Gt.value==="]"){Wc();return}vg()},afterPropertyValue(){if(Gt.type==="eof")throw mi();switch(Gt.value){case",":Er="beforePropertyName";return;case"}":Wc()}},afterArrayValue(){if(Gt.type==="eof")throw mi();switch(Gt.value){case",":Er="beforeArrayValue";return;case"]":Wc()}},end(){}};function vg(){let e;switch(Gt.type){case"punctuator":switch(Gt.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=Gt.value;break}if(Jo===void 0)Jo=e;else{let t=$n[$n.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,Pg,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")$n.push(e),Array.isArray(e)?Er="beforeArrayValue":Er="beforePropertyName";else{let t=$n[$n.length-1];t==null?Er="end":Array.isArray(t)?Er="afterArrayValue":Er="afterPropertyValue"}}function Wc(){$n.pop();let e=$n[$n.length-1];e==null?Er="end":Array.isArray(e)?Er="afterArrayValue":Er="afterPropertyValue"}function wt(e){return Gc(e===void 0?`JSON5: invalid end of input at ${As}:${tn}`:`JSON5: invalid character '${Y2(e)}' at ${As}:${tn}`)}function mi(){return Gc(`JSON5: invalid end of input at ${As}:${tn}`)}function G2(){return tn-=5,Gc(`JSON5: invalid identifier character at ${As}:${tn}`)}function xhe(e){console.warn(`JSON5: '${Y2(e)}' in strings is not valid ECMAScript; consider escaping`)}function Y2(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 Gc(e){let t=new SyntaxError(e);return t.lineNumber=As,t.columnNumber=tn,t}});var Q2=E((Rwe,z2)=>{var Ag=Eg();z2.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 d of r){let y;typeof d=="string"?y=d:(typeof d=="number"||d instanceof String||d instanceof Number)&&(y=String(d)),y!==void 0&&a.indexOf(y)<0&&a.push(y)}}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(d,y){let v=y[d];switch(v!=null&&(typeof v.toJSON5=="function"?v=v.toJSON5(d):typeof v.toJSON=="function"&&(v=v.toJSON(d))),o&&(v=o.call(y,d,v)),v instanceof Number?v=Number(v):v instanceof String?v=String(v):v instanceof Boolean&&(v=v.valueOf()),v){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof v=="string")return f(v,!1);if(typeof v=="number")return String(v);if(typeof v=="object")return Array.isArray(v)?b(v):p(v)}function f(d){let y={"'":.1,'"':.2},v={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},I="";for(let O=0;O<d.length;O++){let _=d[O];switch(_){case"'":case'"':y[_]++,I+=_;continue;case"\0":if(Ag.isDigit(d[O+1])){I+="\\x00";continue}}if(v[_]){I+=v[_];continue}if(_<" "){let F=_.charCodeAt(0).toString(16);I+="\\x"+("00"+F).substring(F.length);continue}I+=_}let D=u||Object.keys(y).
`+i;O=I.join(_),D=`{
`+i+O+`,
`+y+"}"}}return s.pop(),i=y,D}function m(d){if(d.length===0)return f(d,!0);let y=String.fromCodePoint(d.codePointAt(0));if(!Ag.isIdStartChar(y))return f(d,!0);for(let v=y.length;v<d.length;v++)if(!Ag.isIdContinueChar(String.fromCodePoint(d.codePointAt(v))))return f(d,!0);return d}function b(d){if(s.indexOf(d)>=0)throw TypeError("Converting circular structure to JSON5");s.push(d);let y=i;i=i+l;let v=[];for(let D=0;D<d.length;D++){let O=c(String(D),d);v.push(O!==void 0?O:"null")}let I;if(v.length===0)I="[]";else if(l==="")I="["+v.join(",")+"]";else{let D=`,
`+i,O=v.join(D);I=`[
`+i+O+`,
`+y+"]"}return s.pop(),i=y,I}}});var ew=E((qwe,Z2)=>{var Phe=J2(),Ahe=Q2(),Che={parse:Phe,stringify:Ahe};Z2.exports=Che});var Cg=E(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.makeConfigAPI=nw;zo.makePluginAPI=whe;zo.makePresetAPI=sw;function rw(){let e=qn();return rw=function(){return e},e}var Hc=Et(),tw=pi();function nw(e){let t=n=>e.using(s=>typeof n=="undefined"?s.envName:typeof n=="function"?(0,tw.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,tw.assertSimpleType)(n(s.caller)));return{version:Hc.version,cache:e.simple(),env:t,async:()=>!1,caller:r,assertVersion:Dhe}}function sw(e,t){let r=()=>JSON.parse(e.using(s=>JSON.stringify(s.targets))),n=s=>{t.push(s)};return Object.assign({},nw(e),{targets:r,addExternalDependency:n})}function whe(e,t){let r=n=>e.using(s=>s.assumptions[n]);return Object.assign({},sw(e,t),{assumption:r})}function Dhe(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==="*"||rw().satisfies(Hc.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 "${Hc.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:Hc.version,range:e})}});var Xc=E(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.finalize=Ihe;Yc.flattenToSet=Ohe;function Ihe(e){return Object.freeze(e)}function Ohe(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 zc=E(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.default=void 0;var _he=Xc(),wg=class{constructor(t,r,n,s=(0,_he.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}};Jc.default=wg});var aw=E(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});Dg.once=Nhe;var iw=oa();function Nhe(e){let t,r,n=!1;return function*(){if(!t){if(r)return n=!0,yield*(0,iw.waitFor)(r);if(yield*(0,iw.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 ow=E((Kwe,khe)=>{khe.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:"
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 lD=E((oDe,oD)=>{var Qhe=ow(),Kn=Ew().agents,Lg=vw(),lf=require("path"),nn=Sw(),xr=Ng(),Zw=Dw(),sr=Ww(),Zhe=365.259641*24*60*60*1e3,eD="37",eme=14;function tD(e,t){return(e+".").indexOf(t+".")===0}function tme(e){var t=e.slice(1);return Ee.nodeVersions.some(function(r){return tD(r,t)})}function Kw(e){return e.filter(function(t){return typeof t=="string"})}function rf(e){var t=e;return e.split(".").length===3&&(t=e.split(".").slice(0,-1).join(".")),t}function Cs(e){return function(r){return e+" "+r}}function Ug(e){return parseInt(e.split(".")[0])}function nf(e,t){if(e.length===0)return[];var r=rD(e.map(Ug)),n=r[r.length-t];if(!n)return e;for(var s=[],i=e.length-1;i>=0&&!(n>Ug(e[i]));i--)s.unshift(e[i]);return s}function rD(e){for(var t=[],r=0;r<e.length;r++)t.indexOf(e[r])===-1&&t.push(e[r]);return t}function uf(e,t,r){for(var n in r)e[t+" "+n]=r[n]}function Gw(e,t){return t=parseFloat(t),e===">"?function(r){return parseFloat(r)>t}:e===">="?function(r){return parseFloat(r)>=t}:e==="<"?function(r){return parseFloat(r)<t}:function(r){return parseFloat(r)<=t}}function rme(e,t){return t=t.split(".").map(ws),t[1]=t[1]||0,t[2]=t[2]||0,e===">"?function(r){return r=r.split(".").map(ws),Qo(r,t)>0}:e===">="?function(r){return r=r.split(".").map(ws),Qo(r,t)>=0}:e==="<"?function(r){return r=r.split(".").map(ws),Qo(t,r)>0}:function(r){return r=r.split(".").map(ws),Qo(t,r)>=0}}function ws(e){return parseInt(e)}function of(e,t){return e<t?-1:e>t?1:0}function Qo(e,t){return of(parseInt(e[0]),parseInt(t[0]))||of(parseInt(e[1]||"0"),parseInt(t[1]||"0"))||of(parseInt(e[2]||"0"),parseInt(t[2]||"0"))}function Hw(e,t){switch(t=t.split(".").map(ws),typeof t[1]=="undefined"&&(t[1]="x"),e){case"<=":return function(r){return r=r.split(".").map(ws),Yw(r,t)<=0};case">=":default:return function(r){return r=r.split(".").map(ws),Yw(r,t)>=0}}}function Yw(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 nme(e,t){return e.versions.indexOf(t)!==-1?t:Ee.versionAliases[e.name][t]?Ee.versionAliases[e.name][t]:!1}function sf(e,t){var r=nme(e,t);return r||(e.versions.length===1?e.versions[0]:!1)}function nD(e,t){return e=e/1e3,Object.keys(Kn).reduce(function(r,n){var s=Ds(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(Cs(s.name)))},[])}function Xw(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function Ds(e,t){if(e=e.toLowerCase(),e=Ee.aliases[e]||e,t.mobileToDesktop&&Ee.desktopNames[e]){var r=Ee.data[Ee.desktopNames[e]];if(e==="android")return ime(Xw(Ee.data[e]),r);var n=Xw(r);return n.name=e,n}return Ee.data[e]}function Jw(e,t){var r=t.indexOf(eD);return e.filter(function(n){return/^(?:[2-4]\.|[34]$)/.test(n)}).concat(t.slice(r))}function sme(e){var t={};for(var r in e)t[r]=e[r];return t}function ime(e,t){return e.released=Jw(e.released,t.released),e.versions=Jw(e.versions,t.versions),e.releaseDate=sme(e.releaseDate),e.released.forEach(function(r){e.releaseDate[r]===void 0&&(e.releaseDate[r]=t.releaseDate[r])}),e}function da(e,t){var r=Ds(e,t);if(!r)throw new xr("Unknown browser "+e);return r}function ame(e){return new xr("Unknown browser query `"+e+"`. Maybe you are using old Browserslist or made typo in query.")}function af(e,t,r,n){var s=1;switch(t){case"android":if(n.mobileToDesktop)return e;var i=Ee.data.chrome.released;s=i.length-i.indexOf(eD);break;case"op_mob":var a=Ee.data.op_mob.released.slice(-1)[0];s=Ug(a)-eme+1;break;default:return e}return r<=s?e.slice(-1):e.slice(s-1-r)}function zw(e,t){return typeof e=="string"&&(e.indexOf("y")>=0||t&&e.indexOf("a")>=0)}function ha(e,t){return Zw(Vg,e).reduce(function(r,n,s){if(n.not&&s===0)throw new xr("Write any browsers query (for instance, `defaults`) before `"+n.query+"`");var i=Vg[n.type],a=i.select.call(Ee,t,n).map(function(l){var u=l.split(" ");return u[1]==="0"
- Did you mean '${(0,ume.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}`}};cf.OptionValidator=Kg});var pf=E(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});Object.defineProperty(ff,"OptionValidator",{enumerable:!0,get:function(){return cme.OptionValidator}});Object.defineProperty(ff,"findSuggestion",{enumerable:!0,get:function(){return fme.findSuggestion}});var cme=cD(),fme=Wg()});var fD=E((fDe,pme)=>{pme.exports={"es6.module":{chrome:"61",and_chr:"61",edge:"16",firefox:"60",and_ff:"60",node:"13.2.0",opera:"48",op_mob:"45",safari:"10.1",ios:"10.3",samsung:"8.2",android:"61",electron:"2.0",ios_saf:"10.3"}}});var dD=E((pDe,pD)=>{pD.exports=fD()});var mD=E((dDe,hD)=>{"use strict";hD.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var gD=E((hDe,yD)=>{"use strict";yD.exports=pt;pt.Node=gi;pt.create=pt;function pt(e){var t=this;if(t instanceof pt||(t=new pt),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}pt.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};pt.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++}};pt.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++}};pt.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)hme(this,arguments[e]);return this.length};pt.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)mme(this,arguments[e]);return this.length};pt.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}};pt.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}};pt.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};pt.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};pt.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};pt.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};pt.prototype.map=function(e,t){t=t||this;for(var r=new pt,n=this.head;n!==null;)r.push(e.call(t,n.value,this)),n=n.next;return r};pt.prototype.mapReverse=function(e,t){t=t||this;for(var r=new pt,n=this.tail;n!==null;)r.push(e.call(t,n.value,this)),n=n.prev;return r};pt.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};pt.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};pt.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value
- Did you mean '${(0,qD.findSuggestion)(r,t)}'?`));return e}function $D(e){return typeof e=="string"||Array.isArray(e)&&e.every(t=>typeof t=="string")}function Lme(e){return eb.invariant(e===void 0||$D(e),`'${String(e)}' is not a valid browserslist query`),e}function Mme(e){return e.reduce((t,r)=>{let[n,s]=r.split(" "),i=UD.browserNameMap[n];if(!i)return t;try{let a=s.split("-")[0].toLowerCase(),o=(0,an.isUnreleasedVersion)(a,i);if(!t[i])return t[i]=o?a:(0,an.semverify)(a),t;let l=t[i],u=(0,an.isUnreleasedVersion)(l,i);if(u&&o)t[i]=(0,an.getLowestUnreleased)(l,a,i);else if(u)t[i]=(0,an.semverify)(a);else if(!u&&!o){let c=(0,an.semverify)(a);t[i]=(0,an.semverMin)(l,c)}}catch{}return t},{})}function Rme(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 WD(e,t){try{return(0,an.semverify)(t)}catch{throw new Error(eb.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`))}}function qme(e){return["node",e===!0||e==="current"?process.versions.node:WD("node",e)]}function Ume(e,t){let r=(0,an.isUnreleasedVersion)(t,e)?t.toLowerCase():WD(e,t);return[e,r]}function Vme(e){let t=Object.assign({},e);return delete t.esmodules,delete t.browsers,t}function $me(e,t){let r=RD(e,{mobileToDesktop:!0,env:t});return Mme(r)}var MD=new kme({max:64});function Wme(e,t){let r=typeof e=="string"?e:e.join()+t,n=MD.get(r);return n||(n=$me(e,t),MD.set(r,n)),Object.assign({},n)}function Kme(e={},t={}){var r,n;let{browsers:s,esmodules:i}=e,{configPath:a="."}=t;Lme(s);let o=Vme(e),l=jme(o),c=!!s||Object.keys(l).length>0,f=!t.ignoreBrowserslistConfig&&!c;if(!s&&f&&(s=RD.loadConfig({config:t.configFile,path:a,env:t.browserslistEnv}),s==null&&(s=[])),i&&(i!=="intersect"||!((r=s)!=null&&r.length))&&(s=Object.keys(Qg).map(b=>`${b} >= ${Qg[b]}`).join(", "),i=!1),(n=s)!=null&&n.length){let b=Wme(s,t.browserslistEnv);if(i==="intersect")for(let d of Object.keys(b))if(d!=="deno"&&d!=="ie"){let y=Qg[d==="opera_mobile"?"op_mob":d];if(y){let v=b[d];b[d]=(0,an.getHighestUnreleased)(v,(0,an.semverify)(y),d)}else delete b[d]}else delete b[d];l=Object.assign(b,l)}let p={},m=[];for(let b of Object.keys(l).sort()){let d=l[b];typeof d=="number"&&d%1!==0&&m.push({target:b,value:d});let[y,v]=b==="node"?qme(d):Ume(b,d);v&&(p[y]=v)}return Rme(m),p}});var rb=E(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.resolveBrowserslistConfigFile=Gme;vf.resolveTargets=Hme;function KD(){let e=require("path");return KD=function(){return e},e}function GD(){let e=tb();return GD=function(){return e},e}function Gme(e,t){return KD().resolve(t,e)}function Hme(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,GD().default)(n,{ignoreBrowserslistConfig:a,configFile:i,configPath:t,browserslistEnv:e.browserslistEnv})}});var nb=E(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.createCachedDescriptors=zme;nl.createDescriptor=rI;nl.createUncachedDescriptors=Qme;function JD(){let e=Ir();return JD=function(){return e},e}var HD=aw(),YD=il(),Yme=sl(),rl=pi(),Xme=rb();function Jme(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*XD(e){return e}function zD(e,t){return typeof e.browserslistConfigFile=="string"&&(e.browserslistConfigFile=(0,Xme.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)),e}function zme(e,t,r){let{plugins:n,presets:s,passPerPreset:i}=t;return{options:zD(t,e),plugins:n?()=>rye(n,e)(r):()=>XD([]),presets:s?()=>eye(s,e)(r)(!!i):()=>XD([])}}function Qme(e,t,r){return{options:zD(t,e),plugins:(0,HD.once)(()=>eI(t.plugins||[],e,r)),presets:(0,HD.once)(()=>ZD(t.presets||[],e,r,!!t.passPerPreset))}}var Zme=new WeakMap,eye=(0,rl.makeWeakCacheSync)((e,t)=>{let r=t.using(n=>n);return(0,rl.makeStrongCacheSync)(n=>(0,rl.makeStrongCache)(function*(s){return(yield*ZD(e,r,n,s)).map(a=>QD(Zme,a))}))}),tye=new WeakMap,rye=(0,rl.makeWeakCacheSync)((e,t)=>{let r=t.using(n=>n);return(0,rl.makeStrongCache)(function*(n){return(yield*eI(e,r,n)).map(i=>QD(tye,i))})}),nye={};function QD(e,t){let{value:r,options:n=nye}=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.indexOf(t)===-1){let a=i.filter(o=>Jme(o,t));if(a.length>0)return a[0];i.push(t)}return t}function*ZD(e,t,r,n){return yield*tI("preset",e,t,r,n)}function*eI(e,t,r){return yield*tI("plugin",e,t,r)}function*tI(e,t,r,n,s){let i=yield*JD().all(t.map((a,o)=>rI(a,r,{type:e,alias:`${n}$${o}`,ownPass:!!s})));return sye(i),i}function*rI(e,t,{type:r
`))}n.add(r.name)}}});var sl=E(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.createConfigItem=aye;al.createItemFromDescriptor=sI;al.getItemDescriptor=oye;function nI(){let e=require("path");return nI=function(){return e},e}var iye=nb();function sI(e){return new Tf(e)}function*aye(e,{dirname:t=".",type:r}={}){let n=yield*(0,iye.createDescriptor)(e,nI().resolve(t),{type:r,alias:"programmatic item"});return sI(n)}var sb=Symbol.for("@babel/core@7 - ConfigItem");function oye(e){if(e!=null&&e[sb])return e._descriptor}var Tf=class{constructor(t){this._descriptor=void 0,this[sb]=!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,sb,{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(Tf.prototype)});var iI=E(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.default=void 0;var _De=Sf.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 ob=E(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.access=Or;jt.assertArray=ab;jt.assertAssumptions=Cye;jt.assertBabelrcSearch=Tye;jt.assertBoolean=ib;jt.assertCallerMetadata=dye;jt.assertCompact=fye;jt.assertConfigApplicableTest=Eye;jt.assertConfigFileSearch=vye;jt.assertFunction=yye;jt.assertIgnoreList=gye;jt.assertInputSourceMap=hye;jt.assertObject=lI;jt.assertPluginList=Sye;jt.assertRootMode=uye;jt.assertSourceMaps=cye;jt.assertSourceType=pye;jt.assertString=mye;jt.assertTargets=Pye;jt.msg=et;function ol(){let e=tb();return ol=function(){return e},e}var lye=ll();function et(e){switch(e.type){case"root":return"";case"env":return`${et(e.parent)}.env["${e.name}"]`;case"overrides":return`${et(e.parent)}.overrides[${e.index}]`;case"option":return`${et(e.parent)}.${e.name}`;case"access":return`${et(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 db=E(pb=>{"use strict";Object.defineProperty(pb,"__esModule",{value:!0});pb.default=Lye;function Pf(){let e=require("path");return Pf=function(){return e},e}var ul=`\\${Pf().sep}`,ub=`(?:${ul}|$)`,cb=`[^${ul}]+`,fb=`(?:${cb}${ul})`,yI=`(?:${cb}${ub})`,Fye=`${fb}*?`,jye=`${fb}*?${yI}?`;function mI(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function Lye(e,t){let r=Pf().resolve(t,e).split(Pf().sep);return new RegExp(["^",...r.map((n,s)=>{let i=s===r.length-1;return n==="**"?i?jye:Fye:n==="*"?i?yI:fb:n.indexOf("*.")===0?cb+mI(n.slice(1))+(i?ub:ul):mI(n)+(i?ub:ul)})].join(""))}});var EI=E(Ea=>{"use strict";Object.defineProperty(Ea,"__esModule",{value:!0});Ea.ConfigPrinter=Ea.ChainFormatter=void 0;function bI(){let e=Ir();return bI=function(){return e},e}var Mye=Ea.ChainFormatter={Programmatic:0,Config:1},hb={title(e,t,r){let n="";return e===Mye.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=>gI(s)));let n=[...yield*e.presets()];return n.length&&(t.presets=[...n].map(s=>gI(s))),JSON.stringify(t,void 0,2)}};function gI(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 mb=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=hb.title(t.type,t.callerName,t.filepath),n=hb.loc(t.index,t.envName);n&&(r+=` ${n}`);let s=yield*hb.optionsAndDescriptors(t.content);return`${r}
${s}`}*output(){return this._stack.length===0?"":(yield*bI().all(this._stack.map(r=>e.format(r)))).join(`
`)}};Ea.ConfigPrinter=mb});var Ab=E(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.buildPresetChain=Uye;Ta.buildPresetChainWalker=void 0;Ta.buildRootChain=Hye;function SI(){let e=require("path");return SI=function(){return e},e}function xI(){let e=zs();return xI=function(){return e},e}var Eb=ll(),PI=db(),fl=EI(),Rye=Un(),qye=di(),cl=il(),$t=pi(),Vr=nb(),vI=xI()("babel:config:config-chain");function*Uye(e,t){let r=yield*Vye(e,t);return r?{plugins:wf(r.plugins),presets:wf(r.presets),options:r.options.map(n=>AI(n)),files:new Set}:null}var Vye=Ta.buildPresetChainWalker=Pb({root:e=>$ye(e),env:(e,t)=>Wye(e)(t),overrides:(e,t)=>Kye(e)(t),overridesEnv:(e,t,r)=>Gye(e)(t)(r),createLogger:()=>()=>{}}),$ye=(0,$t.makeWeakCacheSync)(e=>vb(e,e.alias,Vr.createUncachedDescriptors)),Wye=(0,$t.makeWeakCacheSync)(e=>(0,$t.makeStrongCacheSync)(t=>Tb(e,e.alias,Vr.createUncachedDescriptors,t))),Kye=(0,$t.makeWeakCacheSync)(e=>(0,$t.makeStrongCacheSync)(t=>Sb(e,e.alias,Vr.createUncachedDescriptors,t))),Gye=(0,$t.makeWeakCacheSync)(e=>(0,$t.makeStrongCacheSync)(t=>(0,$t.makeStrongCacheSync)(r=>xb(e,e.alias,Vr.createUncachedDescriptors,t,r))));function*Hye(e,t){let r,n,s=new fl.ConfigPrinter,i=yield*Qye({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,cl.loadConfig)(e.configFile,t.cwd,t.envName,t.caller):e.configFile!==!1&&(o=yield*(0,cl.findRootConfig)(t.root,t.envName,t.caller));let{babelrc:l,babelrcRoots:u}=e,c=t.cwd,f=Cf(),p=new fl.ConfigPrinter;if(o){let I=Xye(o),D=yield*gb(I,t,void 0,p);if(!D)return null;r=yield*p.output(),l===void 0&&(l=I.options.babelrc),u===void 0&&(c=I.dirname,u=I.options.babelrcRoots),va(f,D)}let m,b,d=!1,y=Cf();if((l===!0||l===void 0)&&typeof t.filename=="string"){let I=yield*(0,cl.findPackageData)(t.filename);if(I&&Yye(t,I,u,c)){if({ignore:m,config:b}=yield*(0,cl.findRelativeConfig)(I,t.envName,t.caller),m&&y.files.add(m.filepath),m&&CI(t,m.ignore,null,m.dirname)&&(d=!0),b&&!d){let D=Jye(b),O=new fl.ConfigPrinter,_=yield*gb(D,t,void 0,O);_?(n=yield*O.output(),va(y,_)):d=!0}b&&d&&y.files.add(b.filepath)}}t.showConfig&&console.log(`Babel configs on "${t.filename}" (ascending priority):
`+[r,n,a].filter(I=>!!I).join(`
`)+`
-----End Babel configs-----`);let v=va(va(va(Cf(),f),y),i);return{plugins:d?[]:wf(v.plugins),presets:d?[]:wf(v.presets),options:d?[]:v.options.map(I=>AI(I)),fileHandling:d?"ignored":"transpile",ignore:m||void 0,babelrc:b||void 0,config:o||void 0,files:v.files}}function Yye(e,t,r,n){if(typeof r=="boolean")return r;let s=e.root;if(r===void 0)return t.directories.indexOf(s)!==-1;let i=r;return Array.isArray(i)||(i=[i]),i=i.map(a=>typeof a=="string"?SI().resolve(n,a):a),i.length===1&&i[0]===s?t.directories.indexOf(s)!==-1:i.some(a=>(typeof a=="string"&&(a=(0,PI.default)(a,n)),t.directories.some(o=>wI(a,n,o,e))))}var Xye=(0,$t.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,Eb.validate)("configfile",e.options,e.filepath)})),Jye=(0,$t.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,Eb.validate)("babelrcfile",e.options,e.filepath)})),zye=(0,$t.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,Eb.validate)("extendsfile",e.options,e.filepath)})),Qye=Pb({root:e=>vb(e,"base",Vr.createCachedDescriptors),env:(e,t)=>Tb(e,"base",Vr.createCachedDescriptors,t),overrides:(e,t)=>Sb(e,"base",Vr.createCachedDescriptors,t),overridesEnv:(e,t,r)=>xb(e,"base",Vr.createCachedDescriptors,t,r),createLogger:(e,t,r)=>i0e(e,t,r)}),Zye=Pb({root:e=>e0e(e),env:(e,t)=>t0e(e)(t),overrides:(e,t)=>r0e(e)(t),overridesEnv:(e,t,r)=>n0e(e)(t)(r),createLogger:(e,t,r)=>s0e(e.filepath,t,r)});function*gb(e,t,r,n){let s=yield*Zye(e,t,r,n);return s==null||s.files.add(e.filepath),s}var e0e=(0,$t.makeWeakCacheSync)(e=>vb(e,e.filepath,Vr.createUncachedDescriptors)),t0e=(0,$t.makeWeakCacheSync)(e=>(0,$t.makeStrongCacheSync)(t=>Tb(e,e.filepath,Vr.createUncachedDescriptors,t))),r0e=(0,$t.makeWeakCacheSync)(e=>(0,$t.makeStrongCacheSync)(t=>Sb(e,e.filepath,Vr.createUncachedDescriptors,t))),n0e=(0,$t.makeWeakCacheSync)(e=>(0,$t.makeStrongCacheSync)(t=>(0,$t.makeStrongCacheSync)(r=>xb(e,e.filepath,Vr.createUncachedDescriptors,t,r))));function s0e(e,t,r){return r?r.configure(t.showConfig,fl.ChainFormatter.Config,{filepath:e}):()=>{}}function vb({dirname:e,options:t},r,n){return n(e,t,r)}function i0e(e,t,r){var n;return r?r.configure(t.showConfig,fl.ChainFormatter.Programmatic,{callerName:(n=t.caller)==null?void 0:n.name}):()=>{}}function Tb({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 Sb({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 xb({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 Pb({root:e,env:t,overrides:r,overridesEnv:n,createLogger:s}){return function*(a,o,l=new Set,u){let{dirname:c}=a,f=[],p=e(a);if(Af(p,c,o,a.filepath)){f.push({config:p,envName:void 0,index:void 0});let d=t(a,o.envName);d&&Af(d,c,o,a.filepath)&&f.push({config:d,envName:o.envName,index:void 0}),(p.options.overrides||[]).forEach((y,v)=>{let I=r(a,v);if(Af(I,c,o,a.filepath)){f.push({config:I,index:v,envName:void 0});let D=n(a,v,o.envName);D&&Af(D,c,o,a.filepath)&&f.push({config:D,index:v,envName:o.envName})}})}if(f.some(({config:{options:{ignore:d,only:y}}})=>CI(o,d,y,c)))return null;let m=Cf(),b=s(a,o,u);for(let{config:d,index:y,envName:v}of f){if(!(yield*a0e(m,d.options,c,o,l,u)))return null;b(d,y,v),yield*o0e(m,d)}return m}}function*a0e(e,t,r,n,s,i){if(t.extends===void 0)return!0;let a=yield*(0,cl.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*gb(zye(a),n,s,i);return s.delete(a),o?(va(e,o),!0):!1}function va(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*o0e(e,{options:t,plugins:r,presets:n}){return e.options.push(t),e.plugins.push(...yield*r()),e.presets.push(...yield*n()),e}function Cf(){return{options:[],presets:[],plugins:[],files:new Set}}function AI(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 wf(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 Af({options:e},t,r,n){return(e.test===void 0||yb(r,e.test,t,n))&&(e.include===void 0||yb(r,e.include,t,n))&&(e.exclude===void 0||!yb(r,e.exclude,t,n))}function yb(e,t,r,n){let s=Array.isArray(t)?t:[t];return bb(e,s,r,n)}function TI(e,t){return t instanceof RegExp?String(t):t}function CI(e,t,r,n){if(t&&bb(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,TI)}\` from "${n}"`;return vI(a),e.showConfig&&console.log(a),!0}if(r&&!bb(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,TI)}\` from "${n}"`;return vI(a),e.showConfig&&console.log(a),!0}return!1}function bb(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,Rye.endHiddenCallStack)(e)(r,{dirname:t,envName:n.envName,caller:n.caller});if(typeof r!="string")throw new qye.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel",s);return typeof e=="string"&&(e=(0,PI.default)(e,t)),e.test(r)}});var DI=E(Cb=>{"use strict";Object.defineProperty(Cb,"__esModule",{value:!0});Cb.validatePluginObject=f0e;var Yn=ob(),l0e={name:Yn.assertString,manipulateOptions:Yn.assertFunction,pre:Yn.assertFunction,post:Yn.assertFunction,inherits:Yn.assertFunction,visitor:u0e,parserOverride:Yn.assertFunction,generatorOverride:Yn.assertFunction};function u0e(e,t){let r=(0,Yn.assertObject)(e,t);if(r&&(Object.keys(r).forEach(n=>{n!=="_exploded"&&n!=="_verified"&&c0e(n,r[n])}),r.enter||r.exit))throw new Error(`${(0,Yn.msg)(e)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);return r}function c0e(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 f0e(e){let t={type:"root",source:"plugin"};return Object.keys(e).forEach(r=>{let n=l0e[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 Db=E(wb=>{"use strict";Object.defineProperty(wb,"__esModule",{value:!0});wb.getEnv=p0e;function p0e(e="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||e}});var Ib=E(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.default=OI;_f.loadPartialConfig=S0e;function Df(){let e=require("path");return Df=function(){return e},e}var d0e=zc(),h0e=Lc(),II=sl(),m0e=Ab(),y0e=Db(),g0e=ll(),If=il(),b0e=rb(),E0e=["showIgnoredFiles"];function v0e(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i<n.length;i++)s=n[i],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function T0e(e,t){switch(t){case"root":return e;case"upward-optional":{let r=(0,If.findConfigUpwards)(e);return r===null?e:r}case"upward":{let r=(0,If.findConfigUpwards)(e);if(r!==null)retur
One of the following config files must be in the directory tree: "${If.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:e})}default:throw new Error("Assertion failure - unknown rootMode value.")}}function*OI(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,g0e.validate)("arguments",e):{},{envName:r=(0,y0e.getEnv)(),cwd:n=".",root:s=".",rootMode:i="root",caller:a,cloneInputAst:o=!0}=t,l=Df().resolve(n),u=T0e(Df().resolve(l,s),i),c=typeof t.filename=="string"?Df().resolve(n,t.filename):void 0,f=yield*(0,If.resolveShowConfigPath)(l),p={filename:c,cwd:l,root:u,envName:r,caller:a,showConfig:f===c},m=yield*(0,m0e.buildRootChain)(t,p);if(!m)return null;let b={assumptions:{}};return m.options.forEach(y=>{(0,h0e.mergeOptions)(b,y)}),{options:Object.assign({},b,{targets:(0,b0e.resolveTargets)(b,u),cloneInputAst:o,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:p.envName,cwd:p.cwd,root:p.root,rootMode:"root",filename:typeof p.filename=="string"?p.filename:void 0,plugins:m.plugins.map(y=>(0,II.createItemFromDescriptor)(y)),presets:m.presets.map(y=>(0,II.createItemFromDescriptor)(y))}),context:p,fileHandling:m.fileHandling,ignore:m.ignore,babelrc:m.babelrc,config:m.config,files:m.files}}function*S0e(e){let t=!1;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){var r=e;({showIgnoredFiles:t}=r),e=v0e(r,E0e)}let n=yield*OI(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 d0e.default)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")}),new Of(s,i?i.filepath:void 0,a?a.filepath:void 0,o?o.filepath:void 0,l,u))}var Of=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(Of.prototype)});var RI=E(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.default=void 0;function BI(){let e=Ir();return BI=function(){return e},e}var Nb=oa(),_I=Lc(),x0e=Et(),FI=zc(),P0e=sl(),A0e=Ab(),Fb=Xc();function kb(){let e=Xr();return kb=function(){return e},e}var jb=pi(),Bb=ll(),C0e=DI(),jI=Cg(),w0e=Ib(),D0e=di(),VDe=Nf.default=BI()(function*(t){var r;let n=yield*(0,w0e.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}),f=O=>{let _=(0,P0e.getItemDescriptor)(O);if(!_)throw new Error("Assertion failure - must be config item");return _},p=u.map(f),m=l.map(f),b=[[]],d=[],y=[];if(yield*NI(i,function*O(_,F){let R=[];for(let te=0;te<_.length;te++){let se=_[te];if(se.options!==!1){try{var K=yield*B0e(se,c)}catch(Te){throw Te.code==="BABEL_UNKNOWN_OPTION"&&(0,Bb.checkNoUnwrappedItemOptionPairs)(_,te,"preset",Te),Te}y.push(K.externalDependencies),se.ownPass?R.push({preset:K.chain,pass:[]}):R.unshift({preset:K.chain,pass:F})}}if(R.length>0){b.splice(1,0,...R.map(te=>te.pass).filter(te=>te!==F));for(let{preset:te,pass:se}of R){if(!te||(se.push(...te.plugins),yield*O(te.presets,se)))return!0;te.options.forEach(Pe=>{(0,_I.mergeOptions)(o,Pe)})}}})(p,b[0]))return null;let I=o;(0,_I.mergeOptions)(I,s);let D=Object.assign({},c,{assumptions:(r=I.assumptions)!=null?r:{}});return yield*NI(i,function*(){b[0].unshift(...m);for(let F of b){let R=[];d.push(R);for(let K=0;K<F.length;K++){let te=F[K];if(te.options!==!1){try{var _=yield*MI(te,D)}catch(se){throw se.code==="BABEL_UNKNOWN_PLUGIN_PROPERTY"&&(0,Bb.checkNoUnwrappedItemOptionPairs)(F,K,"plugin",se),se}R.push(_),y.push(_.externalDependencies)}}}})(),I.plugins=d[0],I.presets=d.slice(1).filter(O=>O.length>
(While processing: ${JSON.stringify(s)})`,new Error(l)}return{value:o,options:r,dirname:n,alias:s,externalDependencies:(0,Fb.finalize)(a)}}),I0e=LI(jI.makePluginAPI),O0e=LI(jI.makePresetAPI),_0e=(0,jb.makeWeakCache)(function*({value:e,options:t,dirname:r,alias:n,externalDependencies:s},i){let a=(0,C0e.validatePluginObject)(e),o=Object.assign({},a);if(o.visitor&&(o.visitor=kb().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,Nb.forwardAsync)(MI,c=>i.invalidate(f=>c(l,f)));o.pre=_b(u.pre,o.pre),o.post=_b(u.post,o.post),o.manipulateOptions=_b(u.manipulateOptions,o.manipulateOptions),o.visitor=kb().default.visitors.merge([u.visitor||{},o.visitor||{}]),u.externalDependencies.length>0&&(s.length===0?s=u.externalDependencies:s=(0,Fb.finalize)([s,u.externalDependencies]))}return new FI.default(o,t,n,s)});function*MI(e,t){if(e.value instanceof FI.default){if(e.options)throw new Error("Passed options to an existing Plugin instance will not work.");return e.value}return yield*_0e(yield*I0e(e,t),t)}var Ob=e=>e&&typeof e!="function",kI=(e,t)=>{if(Ob(e.test)||Ob(e.include)||Ob(e.exclude)){let r=t.name?`"${t.name}"`:"/* your preset */";throw new D0e.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(`
`))}},N0e=(e,t,r)=>{if(!t.filename){var n;let{options:s}=e;kI(s,r),(n=s.overrides)==null||n.forEach(i=>kI(i,r))}},k0e=(0,jb.makeWeakCacheSync)(({value:e,dirname:t,alias:r,externalDependencies:n})=>({options:(0,Bb.validate)("preset",e),alias:r,dirname:t,externalDependencies:n}));function*B0e(e,t){let r=k0e(yield*O0e(e,t));return N0e(r,t,e),{chain:yield*(0,A0e.buildPresetChain)(r,t),externalDependencies:r.externalDependencies}}function _b(e,t){let r=[e,t].filter(Boolean);return r.length<=1?r[0]:function(...n){for(let s of r)s.apply(this,n)}}});var Sa=E(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.createConfigItem=$0e;Wr.createConfigItemAsync=V0e;Wr.createConfigItemSync=$I;Object.defineProperty(Wr,"default",{enumerable:!0,get:function(){return qI.default}});Wr.loadOptions=U0e;Wr.loadOptionsAsync=q0e;Wr.loadOptionsSync=VI;Wr.loadPartialConfig=M0e;Wr.loadPartialConfigAsync=L0e;Wr.loadPartialConfigSync=UI;function jf(){let e=Ir();return jf=function(){return e},e}var qI=RI(),F0e=Ib(),j0e=sl(),$r=Un(),kf=jf()(F0e.loadPartialConfig);function L0e(...e){return(0,$r.beginHiddenCallStack)(kf.async)(...e)}function UI(...e){return(0,$r.beginHiddenCallStack)(kf.sync)(...e)}function M0e(e,t){if(t!==void 0)(0,$r.beginHiddenCallStack)(kf.errback)(e,t);else if(typeof e=="function")(0,$r.beginHiddenCallStack)(kf.errback)(void 0,e);else return UI(e)}function*R0e(e){var t;let r=yield*(0,qI.default)(e);return(t=r==null?void 0:r.options)!=null?t:null}var Bf=jf()(R0e);function q0e(...e){return(0,$r.beginHiddenCallStack)(Bf.async)(...e)}function VI(...e){return(0,$r.beginHiddenCallStack)(Bf.sync)(...e)}function U0e(e,t){if(t!==void 0)(0,$r.beginHiddenCallStack)(Bf.errback)(e,t);else if(typeof e=="function")(0,$r.beginHiddenCallStack)(Bf.errback)(void 0,e);else return VI(e)}var Ff=jf()(j0e.createConfigItem);function V0e(...e){return(0,$r.beginHiddenCallStack)(Ff.async)(...e)}function $I(...e){return(0,$r.beginHiddenCallStack)(Ff.sync)(...e)}function $0e(e,t,r){if(r!==void 0)(0,$r.beginHiddenCallStack)(Ff.errback)(e,t,r);else if(typeof t=="function")(0,$r.beginHiddenCallStack)(Ff.errback)(e,void 0,r);else return $I(e,t)}});var WI=E(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.default=void 0;var pl=class{constructor(t,r,n){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.key=r,this.file=t,this.opts=n||{},this.cwd=t.opts.cwd,this.filename=t.opts.filename}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)}};Lf.default=pl;pl.prototype.getModuleName=function(){return this.file.getModuleName()},pl.prototype.addImport=function(){this.file.addImport()}});var XI=E(Mb=>{"use strict";Object.defineProperty(Mb,"__esModule",{value:!0});Mb.default=K0e;function HI(){let e=Xr();return HI=function(){return e},e}var W0e=zc(),Lb,KI={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){e.body=GI(e.body)}},SwitchCase:{exit({node:e}){e.consequent=GI(e.consequent)}}}};function GI(e){let t=Math.pow(2,30)-1,r=!1;for(let n=0;n<e.length;n++){let s=e[n],i=YI(s);if(i>t){r=!0;break}t=i}return r?G0e(e.slice()):e}function K0e(){return Lb||(Lb=new W0e.default(Object.assign({},KI,{visitor:HI().default.explode(KI.visitor)}),{})),Lb}function YI(e){let t=e==null?void 0:e._blockHoist;return t==null?1:t===!0?2:t}function G0e(e){let t=Object.create(null);for(let s=0;s<e.length;s++){let i=e[s],a=YI(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 qb=E(Rb=>{"use strict";Object.defineProperty(Rb,"__esModule",{value:!0});Rb.default=H0e;function Mf(){let e=require("path");return Mf=function(){return e},e}function H0e(e){let{filename:t,cwd:r,filenameRelative:n=typeof t=="string"?Mf().relative(r,t):"unknown",sourceType:s="module",inputSourceMap:i,sourceMaps:a=!!i,sourceRoot:o=e.options.moduleRoot,sourceF
`+i.stack)}}function ir(e,t){t=t||{},t.hasComment&&(e=z0e(e)),t.encoding==="base64"?e=Rf(e):t.encoding==="uri"&&(e=decodeURIComponent(e)),(t.isJSON||t.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}ir.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)};typeof Buffer!="undefined"?typeof Buffer.from=="function"?ir.prototype.toBase64=Z0e:ir.prototype.toBase64=ege:ir.prototype.toBase64=tge;function Z0e(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}function ege(){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 tge(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))}ir.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)};ir.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};ir.prototype.toObject=function(){return JSON.parse(this.toJSON())};ir.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)};ir.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this};ir.prototype.getProperty=function(e){return this.sourcemap[e]};Lt.fromObject=function(e){return new ir(e)};Lt.fromJSON=function(e){return new ir(e,{isJSON:!0})};Lt.fromURI=function(e){return new ir(e,{encoding:"uri"})};Lt.fromBase64=function(e){return new ir(e,{encoding:"base64"})};Lt.fromComment=function(e){var t,r;return e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),t=Lt.commentRegex.exec(e),r=t&&t[4]||"uri",new ir(e,{encoding:r,hasComment:!0})};function JI(e){return new ir(e,{isJSON:!0})}Lt.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=Q0e(e,t);return r!=null&&typeof r.then=="function"?r.then(JI):JI(r)};Lt.fromSource=function(e){var t=e.match(Lt.commentRegex);return t?Lt.fromComment(t.pop()):null};Lt.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(Lt.mapFileCommentRegex);return r?Lt.fromMapFileComment(r.pop(),t):null};Lt.removeComments=function(e){return e.replace(Lt.commentRegex,"")};Lt.removeMapFileComments=function(e){return e.replace(Lt.mapFileCommentRegex,"")};Lt.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}});var ZI=E(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});Vb.default=rge;var QI={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=QI[e];if(i){let{syntax:o,transform:l}=i;if(o){let u=zI(o);if(l){let c=zI(l),f=l.name.startsWith("@babel/plugin")?"plugins":"presets";s+=`
Add ${c} to the '${f}' 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 Kb=E(Wb=>{"use strict";Object.defineProperty(Wb,"__esModule",{value:!0});Wb.default=sge;function $b(){let e=Ao();return $b=function(){return e},e}function eO(){let e=Hi();return eO=function(){return e},e}var nge=ZI();function*sge(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,$b().parse);u!==void 0&&i.push(u)}}if(i.length===0)return(0,$b().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,eO().codeFrameColumns)(s,{start:{line:a.line,column:a.column+1}},{highlightCode:r});o?i.message=`${n}: `+(0,nge.default)(o[0],a,l,n):i.message=`${n}: ${i.message}
`+l,i.code="BABEL_PARSE_ERROR"}throw i}}});var tO=E(Hb=>{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});Hb.default=ige;function Gb(e,t){if(e!==null){if(t.has(e))return t.get(e);let r;if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n<e.length;n++)r[n]=typeof e[n]!="object"?e[n]:Gb(e[n],t)}else{r={},t.set(e,r);let n=Object.keys(e);for(let s=0;s<n.length;s++){let i=n[s];r[i]=typeof e[i]!="object"?e[i]:Gb(e[i],t)}}return r}return e}function ige(e){return typeof e!="object"?e:Gb(e,new Map)}});var oO=E(zb=>{"use strict";Object.defineProperty(zb,"__esModule",{value:!0});zb.default=pge;function sO(){let e=require("fs");return sO=function(){return e},e}function Jb(){let e=require("path");return Jb=function(){return e},e}function iO(){let e=zs();return iO=function(){return e},e}function aO(){let e=De();return aO=function(){return e},e}function qf(){let e=Ub();return qf=function(){return e},e}var age=_c(),oge=Kb(),lge=tO(),{file:uge,traverseFast:cge}=aO(),Yb=iO()("babel:transform:file"),fge=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/,rO=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function*pge(e,t,r,n){if(r=`${r||""}`,n){if(n.type==="Program")n=uge(n,[],[]);else if(n.type!=="File")throw new Error("AST root must be a Program or File node");t.cloneInputAst&&(n=(0,lge.default)(n))}else n=yield*(0,oge.default)(e,t,r);let s=null;if(t.inputSourceMap!==!1){if(typeof t.inputSourceMap=="object"&&(s=qf().fromObject(t.inputSourceMap)),!s){let i=nO(fge,n);if(i)try{s=qf().fromComment("//"+i)}catch{Yb("discarding unknown inline input sourcemap")}}if(!s){let i=nO(rO,n);if(typeof t.filename=="string"&&i)try{let a=rO.exec(i),o=sO().readFileSync(Jb().resolve(Jb().dirname(t.filename),a[1]),"utf8");s=qf().fromJSON(o)}catch(a){Yb("discarding unknown file input sourcemap",a)}else i&&Yb("discarding un-loadable file input sourcemap")}}return new age.default(t,{code:r,ast:n,inputMap:s})}function Xb(e,t,r){return t&&(t=t.filter(({value:n})=>e.test(n)?(r=n,!1):!0)),[t,r]}function nO(e,t){let r=null;return cge(t,n=>{[n.leadingComments,r]=Xb(e,n.leadingComments,r),[n.innerComments,r]=Xb(e,n.innerComments,r),[n.trailingComments,r]=Xb(e,n.trailingComments,r)}),r}});var lO=E((Qb,Zb)=>{(function(e,t){typeof Qb=="object"&&typeof Zb!="undefined"?Zb.exports=t(gu(),bm()):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))})(Qb,function(e,t){"use strict";let r=s("",-1,-1,"",null),n=[];function s(d,y,v,I,D){return{source:d,line:y,column:v,name:I,content:D}}function i(d,y,v,I){return{map:d,sources:y,source:v,content:I}}function a(d,y){return i(d,y,"",null)}function o(d,y){return i(null,n,d,y)}function l(d){let y=new t.GenMapping({file:d.map.file}),{sources:v,map:I}=d,D=I.names,O=e.decodedMappings(I);for(let _=0;_<O.length;_++){let F=O[_];for(let R=0;R<F.length;R++){let K=F[R],te=K[0],se=r;if(K.length!==1){let q=v[K[1]];if(se=u(q,K[2],K[3],K.length===5?D[K[4]]:""),se==null)continue}let{column:Te,line:Pe,name:Be,content:dt,source:j}=se;t.maybeAddSegment(y,_,te,j,Pe,Te,Be),j&&dt!=null&&t.setSourceContent(y,j,dt)}}return y}function u(d,y,v,I){if(!d.map)return s(d.source,y,v,I,d.content);let D=e.traceSegment(d.map,y,v);return D==null?null:D.length===1?r:u(d.sources[D[1]],D[2],D[3],D.length===5?d.map.names[D[4]]:I)}function c(d){return Array.isArray(d)?d:[d]}function f(d,y){let v=c(d).map(O=>new e.TraceMap(O,"")),I=v.pop();for(let O=0;O<v.length;O++)if(v[O].sources.length>1)throw new Error(`Transformation map ${O} must have exactly one source file.
Did you specify these with the most recent transformation maps first?`);let D=p(I,y,"",0);for(let O=v.length-1;O>=0;O--)D=a(v[O],[D]);return D}function p(d,y,v,I){let{resolvedSources:D,sourcesContent:O}=d,_=I+1,F=D.map((R,K)=>{let te={importer:v,depth:_,source:R||"",content:void 0},se=y(te.source,te),{source:Te,content:Pe}=te;if(se)return p(new e.TraceMap(se,Te),y,Te,_);let Be=Pe!==void 0?Pe:O?O[K]:null;return o(Te,Be)});return a(d,F)}class m{constructor(y,v){let I=v.decodedMappings?t.toDecodedMap(y):t.toEncodedMap(y);this.version=I.version,this.file=I.file,this.mappings=I.mappings,this.names=I.names,this.sourceRoot=I.sourceRoot,this.sources=I.sources,v.excludeContent||(this.sourcesContent=I.sourcesContent)}toString(){return JSON.stringify(this)}}function b(d,y,v){let I=typeof v=="object"?v:{excludeContent:!!v,decodedMappings:!1},D=f(d,y);return new m(l(D),I)}return b})});var fO=E(eE=>{"use strict";Object.defineProperty(eE,"__esModule",{value:!0});eE.default=dge;function cO(){let e=lO();return cO=function(){return e},e}function dge(e,t,r){let n=r.replace(/\\/g,"/"),s=!1,i=cO()(uO(t),(a,o)=>a===n&&!s?(s=!0,o.source="",uO(e)):null);return typeof e.sourceRoot=="string"&&(i.sourceRoot=e.sourceRoot),Object.assign({},i)}function uO(e){return Object.assign({},e,{sourceRoot:null})}});var dO=E(rE=>{"use strict";Object.defineProperty(rE,"__esModule",{value:!0});rE.default=mge;function pO(){let e=Ub();return pO=function(){return e},e}function tE(){let e=Ou();return tE=function(){return e},e}var hge=fO();function mge(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 f of e)for(let p of f){let{generatorOverride:m}=p;if(m){let b=m(n,a,s,tE().default);b!==void 0&&o.push(b)}}let l;if(o.length===0)l=(0,tE().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,hge.default)(i.toObject(),c,a.sourceFileName):c=l.map),(r.sourceMaps==="inline"||r.sourceMaps==="both")&&(u+=`
`+pO().fromObject(c).toComment()),r.sourceMaps==="inline"&&(c=null),{outputCode:u,outputMap:c}}});var Uf=E(sE=>{"use strict";Object.defineProperty(sE,"__esModule",{value:!0});sE.run=Sge;function nE(){let e=Xr();return nE=function(){return e},e}var yge=WI(),gge=XI(),bge=qb(),Ege=oO(),vge=dO(),Tge=Xc();function*Sge(e,t,r){let n=yield*(0,Ege.default)(e.passes,(0,bge.default)(e),t,r),s=n.opts;try{yield*xge(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,vge.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,Tge.flattenToSet)(e.externalDependencies)}}function*xge(e,t){for(let r of t){let n=[],s=[],i=[];for(let o of r.concat([(0,gge.default)()])){let l=new yge.default(e,o.key,o.options);n.push([o,l]),s.push(l),i.push(o.visitor)}for(let[o,l]of n){let u=o.pre;if(u){let c=u.call(l,e);if(yield*[],hO(c))throw new Error("You appear to be using an plugin with an async .pre, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}let a=nE().default.visitors.merge(i,s,e.opts.wrapPluginVisitorMethod);(0,nE().default)(e.ast,a,e.scope);for(let[o,l]of n){let u=o.post;if(u){let c=u.call(l,e);if(yield*[],hO(c))throw new Error("You appear to be using an plugin with an async .post, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.")}}}}function hO(e){return!!e&&(typeof e=="object"||typeof e=="function")&&!!e.then&&typeof e.then=="function"}});var aE=E(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.transformFile=wge;dl.transformFileAsync=Ige;dl.transformFileSync=Dge;function mO(){let e=Ir();return mO=function(){return e},e}var Pge=Sa(),Age=Uf(),Cge=Rc(),iE=mO()(function*(e,t){let r=Object.assign({},t,{filename:e}),n=yield*(0,Pge.default)(r);if(n===null)return null;let s=yield*Cge.readFile(e,"utf8");return yield*(0,Age.run)(n,s)});function wge(...e){iE.errback(...e)}function Dge(...e){return iE.sync(...e)}function Ige(...e){return iE.async(...e)}});var gO=E((nIe,yO)=>{yO.exports=function(t){return import(t)}});var bO=E((sIe,Oge)=>{Oge.exports={name:"@babel/preset-typescript",version:"7.24.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.24.0","@babel/helper-validator-option":"^7.23.5","@babel/plugin-syntax-jsx":"^7.24.1","@babel/plugin-transform-modules-commonjs":"^7.24.1","@babel/plugin-transform-typescript":"^7.24.1"},peerDependencies:{"@babel/core":"^7.0.0-0"},devDependencies:{"@babel/core":"^7.24.1","@babel/helper-plugin-test-runner":"^7.24.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 mt=E(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.declare=EO;hl.declarePreset=void 0;var oE={assertVersion:e=>t=>{Nge(t,e.version)}};Object.assign(oE,{targets:()=>()=>({}),assumption:()=>()=>{}});function EO(e){return(t,r,n)=>{var s;let i;for(let o of Object.keys(oE)){var a;t[o]||((a=i)!=null||(i=_ge(t)),i[o]=oE[o](i))}return e((s=i)!=null?s:t,r||{},n)}}var iIe=hl.declarePreset=EO;function _ge(e){let t=null;return typeof e.version=="string"&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),t&&(!hasOwnProperty.call(t,"version")||!ha
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
`]):gl.template.expression.ast`
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
`}},nbe=Object.assign({},FO,{prop(e){let{property:t}=e.node;return this.memoiser.has(t)?on(this.memoiser.get(t)):on(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:Pa(ml("Function"),ml("prototype"))}else{var o;i=Pa((o=r())!=null?o:ml("Object"),ml("prototype"))}return Pa(i,s,n)},set(e,t){let{computed:r}=e.node,n=this.prop(e);return Zge("=",Pa(yl(),n,r),t)},destructureSet(e){let{computed:t}=e.node,r=this.prop(e);return Pa(yl(),r,t)},call(e,t){return(0,Yf.default)(this.get(e),yl(),t,!1)},optionalCall(e,t){return(0,Yf.default)(this.get(e),yl(),t,!0)}}),gE=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 on(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return on(this.opts.superRef);if(this.opts.getSuperRef)return on(this.opts.getSuperRef())}replace(){let{methodPath:t}=this;this.opts.refToPreserve&&t.traverse(rbe,{refName:this.opts.refToPreserve.name});let r=this.constantSuper?nbe:FO;kO.shouldSkip=n=>{if(n.parentPath===t&&(n.parentKey==="decorators"||n.parentKey==="key"))return!0},(0,Qge.default)(t,kO,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))}};Aa.default=gE});var Jf=E(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.isTransparentExprWrapper=bE;bl.skipTransparentExprWrapperNodes=pbe;bl.skipTransparentExprWrappers=fbe;var sbe=De(),{isParenthesizedExpression:ibe,isTSAsExpression:abe,isTSNonNullExpression:obe,isTSSatisfiesExpression:lbe,isTSTypeAssertion:ube,isTypeCastExpression:cbe}=sbe;function bE(e){return abe(e)||lbe(e)||ube(e)||obe(e)||cbe(e)||ibe(e)}function fbe(e){for(;bE(e.node);)e=e.get("expression");return e}function pbe(e){for(;bE(e);)e=e.expression;return e}});var zf=E(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0});EE.default=gbe;var dbe=De(),{addComment:hbe}=dbe,mbe="#__PURE__",ybe=({leadingComments:e})=>!!e&&e.some(t=>/[@#]__PURE__/.test(t.value));function gbe(e){let t=e.node||e;ybe(t)||hbe(t,"leading",mbe)}});var TE=E(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.assertFieldTransformed=bbe;function bbe(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 AE=E(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.buildCheckInRHS=ep;Os.buildFieldsInitNodes=Vbe;Os.buildPrivateNamesMap=Pbe;Os.buildPrivateNamesNodes=Abe;Os.privateNameVisitorFactory=PE;Os.transformPrivateNamesUsage=_be;var N=Et(),Ebe=Xf(),qO=us(),vbe=dE(),jO=mE(),Tbe=zf(),Sbe=Jf(),xbe=TE();ar=e=>e.availableHelper("classPrivateFieldGet2");var ar;function Pbe(e,t,r,n){let s=new Map,i;for(let o of r)if(o.isPrivate()){let{name:l}=o.node.key.id,u=s.get(l);if(!u){let c=!o.isProperty(),f=o.node.static,p=!1,m;if(!t&&ar(n)&&c&&!f){var a;p=!!i,(a=i)!=null||(i=o.scope.generateUidIdentifier(`${e}_brand`)),m=i}else m=o.scope.generateUidIdentifier(l);u={id:m,static:f,method:c,initAdded:p},s.set(l,u)}if(o.isClassPrivateMethod())if(o.node.kind==="get"){let{body:c}=o.node.body,f;c.length===1&&N.types.isReturnStatement(f=c[0])&&N.types.isCallExpression(f=f.argument)&&f.arguments.length===1&&N.types.isThisExpression(f.arguments[0])&&N.types.isIdentifier(f=f.callee)?(u.getId=N.types.cloneNode(f),u.getterDeclared=!0):u.getId=o.scope.generateUidIdentifier(`get_${l}`)}else if(o.node.kind==="set"){let{params:c}=o.node,{body:f}=o.node.body,p;f.length===1&&N.types.isExpressionStatement(p=f[0])&&N.types.isCallExpression(p=p.expression)&&p.arguments.length===2&&N.types.isThisExpression(p.arguments[0])&&N.types.isIdentifier(p.arguments[1],{name:c[0].name})&&N.types.isIdentifier(p=p.callee)?(u.setId=N.types.cloneNode(p),u.setterDeclared=!0):u.setId=o.scope.generateUidIdentifier(`set_${l}`)}else o.node.kind==="method"&&(u.methodId=o.scope.generateUidIdentifier(l));s.set(l,u)}return s}function Abe(e,t,r,n){let s=[],i=new Set;for(let[a,o]of e){let{static:l,method:u,getId:c,setId:f}=o,p=c||f,m=N.types.cloneNode(o.id),b;if(t)b=N.types.callExpression(n.addHelper("classPrivateFieldLooseKey"),[N.types.stringLiteral(a)]);else if(r)b=N.types.callExpression(N.types.identifier("Symbol"),[N.types.stringLiteral(a)]);else if(!l){if(i.has(m.name))continue;i.add(m.name),b=N.types.newExpression(N.types.identifier(u&&(!p||ar(n))?"WeakSet":"WeakMap"),[])}b&&(r||(0,Tbe.default)(b),s.push(N.template.statement.ast`var ${m} = ${b}`))}return s}function PE(e){let t=N.traverse.visitors.merge([Object.assign({},e),qO.default]),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 Cbe=PE({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&&n.includes(a)||this.handle(i,t))}});function UO(e,t,r){for(;(n=t)!=null&&n.hasBinding(e)&&!t.bindingIdentifierEquals(e,r);){var n;t.rename(e),t=t.parent}}function ep(e,t,r){return r||!(t.availableHelper!=null&&t.availableHelper("checkInRHS"))?e:N.types.callExpression(t.addHelper("checkInRHS"),[e])}var wbe=PE({BinaryExpression(e,{file:t}){let{operator:r,left:n,right:s}=e.node;if(r!=="in"||!N.types.isPrivateName(n))return;let{privateFieldsAsProperties:i,privateNamesMap:a,redeclared:o}=this,{name:l}=n.id;if(!a.has(l)||o&&o.includes(l))return;if(UO(this.classRef.name,e.scope,this.innerBinding),i){let{id:f}=a.get(l);e.replaceWith(N.template.expression.ast`
Object.prototype.hasOwnProperty.call(${ep(s,t)}, ${N.types.cloneNode(f)})
`);return}let{id:u,static:c}=a.get(l);if(c){e.replaceWith(N.template.expression.ast`${ep(s,t)} === ${N.types.cloneNode(this.classRef)}`);return}e.replaceWith(N.template.expression.ast`${N.types.cloneNode(u)}.has(${ep(s,t)})`)}});function Qf(e,t){return N.types.callExpression(e.addHelper("readOnlyError"),[N.types.stringLiteral(`#${t}`)])}function Dbe(e,t){return e.availableHelper("writeOnlyError")?N.types.callExpression(e.addHelper("writeOnlyError"),[N.types.stringLiteral(`#${t}`)]):(console.warn("@babel/helpers is outdated, update it to silence this warning."),N.types.buildUndefinedNode())}function SE(e,t){return t?e:N.types.memberExpression(e,N.types.identifier("_"))}var Ibe={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)?N.types.cloneNode(this.memoiser.get(t)):N.types.cloneNode(t)},get(e){let{classRef:t,privateNamesMap:r,file:n,innerBinding:s,noUninitializedPrivateFieldAccess:i}=this,{name:a}=e.node.property.id,{id:o,static:l,method:u,methodId:c,getId:f,setId:p}=r.get(a),m=f||p;if(l){if(UO(t.name,e.scope,s),!ar(n)){let y=u&&!m?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return N.types.callExpression(n.addHelper(y),[this.receiver(e),N.types.cloneNode(t),N.types.cloneNode(o)])}let b=this.receiver(e),d=N.types.isIdentifier(b)&&b.name===t.name;if(!u)return SE(d?N.types.cloneNode(o):N.types.callExpression(n.addHelper("assertClassBrand"),[N.types.cloneNode(t),b,N.types.cloneNode(o)]),i);if(f)return d?N.types.callExpression(N.types.cloneNode(f),[b]):N.types.callExpression(n.addHelper("classPrivateGetter"),[N.types.cloneNode(t),b,N.types.cloneNode(f)]);if(p){let y=N.types.buildUndefinedNode();return d?y:N.types.sequenceExpression([N.types.callExpression(n.addHelper("assertClassBrand"),[N.types.cloneNode(t),b]),y])}return d?N.types.cloneNode(o):N.types.callExpression(n.addHelper("assertClassBrand"),[N.types.cloneNode(t),b,N.types.cloneNode(o)])}return u?m?f?ar(n)?N.types.callExpression(n.addHelper("classPrivateGetter"),[N.types.cloneNode(o),this.receiver(e),N.types.cloneNode(f)]):N.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),N.types.cloneNode(o)]):N.types.sequenceExpression([this.receiver(e),Dbe(n,a)]):ar(n)?N.types.callExpression(n.addHelper("assertClassBrand"),[N.types.cloneNode(o),this.receiver(e),N.types.cloneNode(c)]):N.types.callExpression(n.addHelper("classPrivateMethodGet"),[this.receiver(e),N.types.cloneNode(o),N.types.cloneNode(c)]):ar(n)?N.types.callExpression(n.addHelper("classPrivateFieldGet2"),[N.types.cloneNode(o),this.receiver(e)]):N.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),N.types.cloneNode(o)])},boundGet(e){return this.memoise(e,1),N.types.callExpression(N.types.memberExpression(this.get(e),N.types.identifier("bind")),[this.receiver(e)])},set(e,t){let{classRef:r,privateNamesMap:n,file:s,noUninitializedPrivateFieldAccess:i}=this,{name:a}=e.node.property.id,{id:o,static:l,method:u,setId:c,getId:f}=n.get(a),p=f||c;if(l){if(!ar(s)){let d=u&&!p?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return N.types.callExpression(s.addHelper(d),[this.receiver(e),N.types.cloneNode(r),N.types.cloneNode(o),t])}let m=this.receiver(e),b=N.types.isIdentifier(m)&&m.name===r.name;if(u&&!c){let d=Qf(s,a);return b?N.types.sequenceExpression([t,d]):N.types.sequenceExpression([t,N.types.callExpression(s.addHelper("assertClassBrand"),[N.types.cloneNode(r),m]),Qf(s,a)])}return c?b?N.types.callExpression(N.types.cloneNode(c),[m,t]):N.types.callExpression(s.addHelper("classPrivateSetter"),[N.types.cloneNode(r),N.types.cloneNode(c),m,t]):N.types.assignmentExpression("=",SE(N.types.cloneNode(o),i),b?t:N.types.callExpression(s.addHelper("assertClassBrand"),[N.types.cloneNode(r),m,t]))}return u?c?ar(s)?N.types.callExpression(s.addHelper("classPrivateSetter"),[N.types.cloneNode(o),N.types.cloneNode(c),this.receiver(e),t]):N.types.callExpression(s.addHelper("classPrivateFieldSet"),[this.receiver(e),N.types.cloneNode(o),t]):N.
Object.defineProperty(${e}, ${N.types.cloneNode(n)}, {
// configurable is false by default
// enumerable is false by default
writable: true,
value: ${s}
});
`,t)}function Nbe(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 Yt(N.template.statement.ast`${N.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 Yt(N.types.expressionStatement(N.types.callExpression(a,[N.types.thisExpression(),N.types.cloneNode(s),ar(n)?i:N.template.expression.ast`{ writable: true, value: ${i} }`])),t)}function kbe(e,t,r){let n=t.get(e.node.key.id.name),s=r?e.node.value:N.template.expression.ast`{
_: ${e.node.value||N.types.buildUndefinedNode()}
}`;return Yt(N.types.variableDeclaration("var",[N.types.variableDeclarator(N.types.cloneNode(n.id),s)]),e)}xE=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})),Yt(N.template.statement.ast`
var ${N.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 Yt(N.template.statement.ast`
var ${N.types.cloneNode(n)} = {
// configurable is false by default
// enumerable is false by default
writable: true,
value: ${l}
};
`,e)};var xE;function Bbe(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 Yt(N.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})),Yt(N.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 Fbe(e,t,r,n){let s=r.get(t.node.key.id.name);if(!s.initAdded)return!ar(n)&&(s.getId||s.setId)?jbe(e,t,r,n):Lbe(e,t,r,n)}function jbe(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 Yt(N.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 Yt(N.template.statement.ast`${l}(
${N.types.thisExpression()},
${N.types.cloneNode(i)},
{
get: ${a?a.name:t.scope.buildUndefinedNode()},
set: ${o?o.name:t.scope.buildUndefinedNode()}
},
)`,t)}function Lbe(e,t,r,n){let s=r.get(t.node.key.id.name),{id:i}=s;if(!n.availableHelper("classPrivateMethodInitSpec"))return Yt(N.template.statement.ast`${i}.add(${e})`,t);let a=n.addHelper("classPrivateMethodInitSpec");return Yt(N.template.statement.ast`${a}(
${N.types.thisExpression()},
${N.types.cloneNode(i)}
)`,t)}function MO(e,t){let{key:r,computed:n}=t.node,s=t.node.value||t.scope.buildUndefinedNode();return Yt(N.types.expressionStatement(N.types.assignmentExpression("=",N.types.memberExpression(e,r,n||N.types.isLiteral(r)),s)),t)}function RO(e,t,r){let{key:n,computed:s}=t.node,i=t.node.value||t.scope.buildUndefinedNode();return Yt(N.types.expressionStatement(N.types.callExpression(r.addHelper("defineProperty"),[e,s||N.types.isLiteral(n)?n:N.types.stringLiteral(n.name),i])),t)}function Mbe(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})),Yt(N.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)):Yt(N.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 Zf(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:f}=s,{params:p,body:m,generator:b,async:d}=t.node,y=o&&p.length===0,v=l&&p.length>0;if(y&&u||v&&c)return r.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),null;if(ar(e)&&(y||v)&&!n){let D=t.get("body").scope,O=D.generateUidIdentifier("this"),_={thisRef:O,argumentsPath:[]};if(t.traverse(VO,_),_.argumentsPath.length){let F=D.generateUidIdentifier("arguments");D.push({id:F,init:N.template.expression.ast`[].slice.call(arguments, 1)`});for(let R of _.argumentsPath)R.replaceWith(N.types.cloneNode(F))}p.unshift(N.types.cloneNode(O))}let I=a;return y?(r.set(t.node.key.id.name,Object.assign({},s,{getterDeclared:!0,initAdded:!0})),I=o):v?(r.set(t.node.key.id.name,Object.assign({},s,{setterDeclared:!0,initAdded:!0})),I=l):f&&!n&&(I=i),Yt(N.types.functionDeclaration(N.types.cloneNode(I),p,m,b,d),t)}var VO=N.traverse.visitors.merge([{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,Sbe.skipTransparentExprWrapperNodes)(t.argument);N.types.isThisExpression(r)&&e.replaceWith(N.types.booleanLiteral(!0))}},ThisExpression(e,t){t.needsClassRef=!0,e.replaceWith(N.types.cloneNode(t.thisRef))},MetaProperty(e){let{node:t,scope:r}=e;t.meta.name==="new"&&t.property.name==="target"&&e.replaceWith(r.buildUndefinedNode())}},qO.default]),Rbe={ReferencedIdentifier(e,t){e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)&&(t.needsClassRef=!0,e.node.name=t.thisRef.name)}};function qbe(e,t,r){var n;let s={thisRef:t,needsClassRef:!1,innerBinding:r};return e.isMethod()||e.traverse(VO,s),r!=null&&(n=s.thisRef)!=null&&n.name&&s.thisRef.name!==r.name&&e.traverse(Rbe,s),s.needsClassRef}function Ube({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 Yt(e,t){return N.types.inheritLeadingComments(e,t.node),N.types.inheritInnerComments(e,t.node),e}function Vbe(e,t,r,n,s,i,a,o,l,u){var c,f;let p=0,m,b=[],d=[],y=!1,v=[],I=null,D=N.types.isIdentifier(t)?()=>t:()=>{var _;return(_=m)!=null||(m=r[0].scope.generateUidIdentifierBasedOnNode(t)),m},O=(c=e)!=null?c:r[0].scope.generateUidIdentifier((u==null?void 0:u.name)||"Class");(f=e)!=null||(e=N.types.cloneNode(u));for(let _ of r){_.isClassProperty()&&xbe.assertFieldTransformed(_);let F=!(N.types.isStaticBlock!=null&&N.types.isStaticBlock(_.node))&&_.node.static,R=!F,K=_.isPrivate(),te=!K,se=_.isProperty(),Te=!se,Pe=_.isStaticBlock==null?void 0:_.isStaticBlock();switch(F&&(p|=1),(F||Te&&K||Pe)&&(new Ebe.default({methodPath:_,constantSuper:l,file:s,refToPreserve:u,getSuperRef:D,getObjectRef(){return p|=2,F||Pe?O:N.types.memberExpression(O,N.types.identifier("prototype"))}}).replace(),qbe(_,O,u)&&(p|=2)),y=!1,!0){case Pe:{let Be=_.node.body;Be.length===1&&N.types.isExpressionStatement(Be[0])?b.push(Yt(Be[0],_)):b.push(N.types.inheritsComments(N.template.statement.ast`(() => { ${Be} })()`,_.node));break}case(F&&K&&se&&a):b.push(LO(N.types.cloneNode(e),_,n));break;case(F&&K&&se&&!a):ar(s)?b.push(kbe(_,n,o)):b.push(xE(_,n));break;case(F&&te&&se&&i):if(!Ube(_.node)){b.push(MO(N.types.cloneNode(e),_));break}case(F&&te&&se&&!i):b.push(RO(N.types.cloneNode(e),_,s));break;case(R&&K&&se&&a):d.push(LO(N.types.thisExpression(),_,n));break;case(R&&K&&se&&!a):d.push(Nbe(N.types.thisExpression(),_,n,s));break;case(R&&K&&Te&&a):d.unshift(Bbe(N.types.thisExpression(),_,n)),v.push(Zf(s,_,n,a));break;case(R&&K&&Te&&!a):d.unshift(Fbe(N.types.thisExpression(),_,n,s)),v.push(Zf(s,_,n,a));break;case(F&&K&&Te&&!a):ar(s)||b.unshift(xE(_,n)),v.push(Zf(s,_,n,a));break;case(F&&K&&Te&&a):b.unshift(Mbe(N.types.cloneNode(e),_,s,n)),v.push(Zf(s,_,n,a));break;case(R&&te&&se&&i):d.push(MO(N.types.thisExpression(),_));break;case(R&&te&&se&&!i):y=!0,d.push(RO(N.types.thisExpression(),_,s));break;default:throw new Error("Unreachable.")}}return p&2&&u!=null&&(I=N.types.expressionStatement(N.
function () {
return this.${A.types.cloneNode(e)};
}
`,A.template.expression.ast`
function (value) {
this.${A.types.cloneNode(e)} = value;
}
`]:[A.template.expression.ast`
o => o.${A.types.cloneNode(e)}
`,A.template.expression.ast`
(o, v) => o.${A.types.cloneNode(e)} = v
`]}function _E(e){if(e=(0,_s.skipTransparentExprWrappers)(e),e.isSequenceExpression()){let t=e.get("expressions");return _E(t[t.length-1])}return e}function Qbe(e){let t=_E(e);if(t.isConstantExpression())return A.types.cloneNode(e.node);if(t.isIdentifier()&&e.scope.hasUid(t.node.name))return A.types.cloneNode(e.node);if(t.isAssignmentExpression()&&t.get("left").isIdentifier())return A.types.cloneNode(t.node.left);throw new Error(`Internal Error: the computed key ${e.toString()} has not yet been memoised.`)}function vl(e,t){let r=t.get("key");r.isSequenceExpression()?e.push(...r.node.expressions):e.push(r.node),r.replaceWith(ks(e))}function Zbe(e,t){let r=t.get("key"),n=_E(r);if(n.isConstantExpression())vl(e,t);else{let s=r.scope.parent,i=(0,tp.memoiseComputedKey)(n.node,s,s.generateUid("computedKey"));if(!i)vl(e,t);else{let a=[...e,A.types.cloneNode(i.left)],o=n.parentPath;o.isSequenceExpression()?o.pushContainer("expressions",a):n.replaceWith(ks([A.types.cloneNode(i),...a]))}}}function wE(e,t){let r=t.get("value");r.node?e.push(r.node):e.length>0&&(e[e.length-1]=A.types.unaryExpression("void",e[e.length-1])),r.replaceWith(ks(e))}function eEe(e,t){t.unshiftContainer("body",A.types.expressionStatement(ks(e)))}function tEe(e,t){t.node.body.body.unshift(A.types.expressionStatement(ks(e)))}function JO(e,t){return A.types.isCallExpression(e)&&A.types.isIdentifier(e.callee,{name:t.name})}function rEe(e,t){if(t){if(e.length>=2&&JO(e[1],t)){let r=A.types.callExpression(A.types.cloneNode(t),[e[0]]);e.splice(0,2,r)}e.length>=2&&A.types.isThisExpression(e[e.length-1])&&JO(e[e.length-2],t)&&e.splice(e.length-1,1)}return ks(e)}function nEe(e,t,r){t.traverse({CallExpression:{exit(n){if(!n.get("callee").isSuper())return;let s=[n.node,...e.map(i=>A.types.cloneNode(i))];n.isCompletionRecord()&&s.push(A.types.thisExpression()),n.replaceWith(rEe(s,r)),n.skip()}},ClassMethod(n){n.node.kind==="constructor"&&n.skip()}})}function zO(e,t){let r=[A.types.expressionStatement(ks(e))];return t&&r.unshift(A.types.expressionStatement(A.types.callExpression(A.types.super(),[A.types.spreadElement(A.types.identifier("args"))]))),A.types.classMethod("constructor",A.types.identifier("constructor"),t?[A.types.restElement(A.types.identifier("args"))]:[],A.types.blockStatement(r))}function sEe(e){return A.types.staticBlock([A.types.expressionStatement(ks(e))])}var Ti=0,Ns=1,iEe=2,n_=3,rp=4,aEe=5,oEe=8,lEe=16;function uEe(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return Ti;case"ClassAccessorProperty":return Ns;case"ClassMethod":case"ClassPrivateMethod":return e.node.kind==="get"?n_:e.node.kind==="set"?rp:iEe}}function cEe(e){return[...e.filter(t=>t.isStatic&&t.kind>=Ns&&t.kind<=rp),...e.filter(t=>!t.isStatic&&t.kind>=Ns&&t.kind<=rp),...e.filter(t=>t.isStatic&&t.kind===Ti),...e.filter(t=>!t.isStatic&&t.kind===Ti)]}function QO(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]||A.types.unaryExpression("void",A.types.numericLiteral(0))),i.push(e[a]);return{haveThis:s,decs:i}}function fEe(e,t){return A.types.arrayExpression(e.map(r=>{let n=r.kind;return r.isStatic&&(n+=t==="2023-11"||t==="2023-05"?oEe:aEe),r.decoratorsHaveThis&&(n+=lEe),A.types.arrayExpression([r.decoratorsArray,A.types.numericLiteral(n),r.name,...r.privateMethods||[]])}))}function pEe(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 dEe(e,t,r,n,s,i){t.insertAfter(A.types.classPrivateMethod("get",A.types.cloneNode(r),[],A.types.blockStatement([A.types.returnStatement(A.types.callExpression(A.types.cloneNode(n),e==="2023-11"&&i?[]:[A.types.thisExpression()]))]),i)),t.insertAfter(A.types.classPrivateMethod("set",A.types.cloneNode(r),[A.types.identifier("v")],A.types.blockStatement([A.types.expressionStatement(A.types.callExpression(A.types.cloneNode(s),e==="2023-11"&&i?[A.types.identifier("v")]:[A.types.thisExpression(),A.types.identifier("v")]))]),i))}function hEe(e,t,r,n){let s,i;e.node.kind==="set"?(s=[A.types.identifier("v")],i=[A.types.e
class extends ${t.addHelper("identity")} {}
`;ee.body.body=[A.types.classProperty(A.types.toExpression(Ms),void 0,void 0,void 0,!0,!0),...oe];let je=[],M=A.types.newExpression(ee,[]);fe.length>0&&je.push(...fe),An&&(fn=!0,je.push(An)),je.length>0?(je.unshift(A.types.callExpression(A.types.super(),[A.types.cloneNode(Be)])),ee.body.body.push(zO(je,!1))):M.arguments.push(A.types.cloneNode(Be));let[$]=e.replaceWith(M);La=$.get("callee").get("body").get("body")[0].get("key")}}!fn&&An&&e.node.body.body.push(A.types.staticBlock([A.types.expressionStatement(An)]));let{superClass:Cn}=Ms;if(Cn&&(a==="2023-11"||a==="2023-05")){let oe=e.scope.maybeGenerateMemoised(Cn);oe&&(Ms.superClass=A.types.assignmentExpression("=",oe,Cn),Cn=oe)}let qs=A.types.staticBlock([]);Ms.body.body.unshift(qs);let pn=qs.body;if(pe.length>0){let oe=La.get("body.body"),ee;for(let je of oe)if((je.isClassProperty()||je.isClassMethod())&&je.node.kind!=="constructor"){ee=je;break}ee!=null?(vEe(ee),vl(pe,ee)):(Ms.body.body.unshift(A.types.classProperty(A.types.sequenceExpression([...pe,A.types.stringLiteral("_")]),void 0,void 0,void 0,!0,!0)),pn.push(A.types.expressionStatement(A.types.unaryExpression("delete",A.types.memberExpression(A.types.thisExpression(),A.types.identifier("_")))))),pe=[]}if(pn.push(A.types.expressionStatement(xEe(Rt,Pr,It,(l=Se)!=null?l:A.types.arrayExpression(me),A.types.numericLiteral(re),qe?Fe:null,typeof s=="object"?s:void 0,A.types.cloneNode(Cn),t,a))),D&&pn.push(A.types.expressionStatement(A.types.callExpression(A.types.cloneNode(D),[A.types.thisExpression()]))),Rs.length>0&&pn.push(...Rs.map(oe=>A.types.expressionStatement(oe))),e.insertBefore(d.map(oe=>A.types.expressionStatement(oe))),Y)if(!y.getBinding(Be.name).constantViolations.length)e.insertBefore(A.types.variableDeclaration("let",[A.types.variableDeclarator(A.types.cloneNode(Be))]));else{let ee=y.generateUidIdentifier("t"+Be.name),je=Be;e.replaceWithMultiple([A.types.variableDeclaration("let",[A.types.variableDeclarator(A.types.cloneNode(je)),A.types.variableDeclarator(ee)]),A.types.blockStatement([A.types.variableDeclaration("let",[A.types.variableDeclarator(A.types.cloneNode(Be))]),e.node,A.types.expressionStatement(A.types.assignmentExpression("=",A.types.cloneNode(ee),A.types.cloneNode(Be)))]),A.types.expressionStatement(A.types.assignmentExpression("=",A.types.cloneNode(je),A.types.cloneNode(ee)))])}return Te.size>0&&TEe(e,Te),e.scope.crawl(),e}function xEe(e,t,r,n,s,i,a,o,l,u){let c,f,p=[a?bEe(l,a):A.types.thisExpression(),n,r];{if(u!=="2023-11"&&p.splice(1,2,r,n),u==="2021-12"||u==="2022-03"&&!l.availableHelper("applyDecs2203R"))return c=A.types.arrayPattern([...e,...t]),f=A.types.callExpression(l.addHelper(u==="2021-12"?"applyDecs":"applyDecs2203"),p),A.types.assignmentExpression("=",c,f);u==="2022-03"?f=A.types.callExpression(l.addHelper("applyDecs2203R"),p):u==="2023-01"?(i&&p.push(DE(i)),f=A.types.callExpression(l.addHelper("applyDecs2301"),p)):u==="2023-05"&&((i||o||s.value!==0)&&p.push(s),i?p.push(DE(i)):o&&p.push(A.types.unaryExpression("void",A.types.numericLiteral(0))),o&&p.push(o),f=A.types.callExpression(l.addHelper("applyDecs2305"),p))}return u==="2023-11"&&((i||o||s.value!==0)&&p.push(s),i?p.push(DE(i)):o&&p.push(A.types.unaryExpression("void",A.types.numericLiteral(0))),o&&p.push(o),f=A.types.callExpression(l.addHelper("applyDecs2311"),p)),e.length>0?t.length>0?c=A.types.objectPattern([A.types.objectProperty(A.types.identifier("e"),A.types.arrayPattern(e)),A.types.objectProperty(A.types.identifier("c"),A.types.arrayPattern(t))]):(c=A.types.arrayPattern(e),f=A.types.memberExpression(f,A.types.identifier("e"),!1,!1)):(c=A.types.arrayPattern(t),f=A.types.memberExpression(f,A.types.identifier("c"),!1,!1)),A.types.assignmentExpression("=",c,f)}function PEe(e){return e.type==="Identifier"?e.name==="__proto__":e.value==="__proto__"}function Tl(e){return e.decorators&&e.decorators.length>0}function AEe(e){switch(e.type){case"ClassAccessorProperty":return!0;case"ClassMethod":case"ClassProperty":case"ClassPrivateMethod":case"ClassPrivateProperty":return Tl(e);default:return!1}}function CEe(e){return
${jEe(n)}(
${f||Tt.types.nullLiteral()},
function (${a}, ${u?Tt.types.cloneNode(c):null}) {
${s}
return { F: ${Tt.types.cloneNode(s.id)}, d: ${p} };
},
${u}
)
`;l||m.arguments[1].body.directives.push(Tt.types.directive(Tt.types.directiveLiteral("use strict")));let b=m,d="arguments.1.body.body.0";return o&&(b=Tt.template.statement.ast`let ${e} = ${m}`,d="declarations.0.init."+d),{instanceNodes:[Tt.template.statement.ast`
${Tt.types.cloneNode(a)}(this)
`],wrapClass(y){return y.replaceWith(b),y.get(d)}}}});var u_=E(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.FEATURES=void 0;Si.enableFeature=MEe;Si.isLoose=LE;Si.shouldTransform=REe;var a_=BE(),Xn=Si.FEATURES=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32}),o_=new Map([[Xn.fields,"@babel/plugin-transform-class-properties"],[Xn.privateMethods,"@babel/plugin-transform-private-methods"],[Xn.privateIn,"@babel/plugin-transform-private-property-in-object"]]),FE="@babel/plugin-class-features/featuresKey",xl="@babel/plugin-class-features/looseKey";Bs="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";var Bs;jE=function(e,t){return!!(e.get(Bs)&t)};var jE;function MEe(e,t,r){(!Jn(e,t)||jE(e,t))&&(e.set(FE,e.get(FE)|t),r==="#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"?(np(e,t,!0),e.set(Bs,e.get(Bs)|t)):r==="#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"?(np(e,t,!1),e.set(Bs,e.get(Bs)|t)):np(e,t,r));let n;for(let[i,a]of o_){if(!Jn(e,i)||jE(e,i))continue;let o=LE(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).
`+l_(e));n=o;var s=a}if(n!==void 0)for(let[i,a]of o_)Jn(e,i)&&LE(e,i)!==n&&(np(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.
`+l_(e)))}function l_(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 Jn(e,t){return!!(e.get(FE)&t)}function LE(e,t){return!!(e.get(xl)&t)}function np(e,t,r){r?e.set(xl,e.get(xl)|t):e.set(xl,e.get(xl)&~t),e.set(Bs,e.get(Bs)&~t)}function REe(e,t){let r=null,n=null,s=null,i=null,a=null;(0,a_.hasOwnDecorators)(e.node)&&(r=e.get("decorators.0"));for(let o of e.get("body.body"))!r&&(0,a_.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&&!Jn(t,Xn.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&&!Jn(t,Xn.privateMethods))throw i.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-transform-private-methods` to your configuration.");if((n||s)&&!Jn(t,Xn.fields)&&!Jn(t,Xn.privateMethods))throw e.buildCodeFrameError("Class fields are not enabled. Please add `@babel/plugin-transform-class-properties` to your configuration.");if(a&&!Jn(t,Xn.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)&&Jn(t,Xn.fields))}});var Da=E(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Object.defineProperty(Pi,"FEATURES",{enumerable:!0,get:function(){return wa.FEATURES}});Object.defineProperty(Pi,"buildCheckInRHS",{enumerable:!0,get:function(){return Pl.buildCheckInRHS}});Pi.createClassFeaturePlugin=KEe;Object.defineProperty(Pi,"enableFeature",{enumerable:!0,get:function(){return wa.enableFeature}});Object.defineProperty(Pi,"injectInitialization",{enumerable:!0,get:function(){return qE.injectInitialization}});var ME=Et(),qEe=rc(),UEe=ro(),VEe=s_(),$Ee=qn(),Pl=AE(),RE=BE(),qE=CE(),wa=u_(),WEe=TE(),xi="@babel/plugin-class-features/version";function KEe({name:e,feature:t,loose:r,manipulateOptions:n,api:s,inherits:i,decoratorVersion:a}){var o;if(t&wa.FEATURES.decorators&&(a==="2023-11"||a==="2023-05"||a==="2023-01"||a==="2022-03"||a==="2021-12"))return(0,VEe.default)(s,{loose:r},a,i);{var l;(l=s)!=null||(s={assumption:()=>{}})}let u=s.assumption("setPublicClassFields"),c=s.assumption("privateFieldsAsSymbols"),f=s.assumption("privateFieldsAsProperties"),p=(o=s.assumption("noUninitializedPrivateFieldAccess"))!=null?o:!1,m=s.assumption("constantSuper"),b=s.assumption("noDocumentAll");if(f&&c)throw new Error('Cannot enable both the "privateFieldsAsProperties" and "privateFieldsAsSymbols" assumptions as the same time.');let d=f||c;if(r===!0){let y=[];u!==void 0&&y.push('"setPublicClassFields"'),f!==void 0&&y.push('"privateFieldsAsProperties"'),c!==void 0&&y.push('"privateFieldsAsSymbols"'),y.length!==0&&console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value for the ${y.join(" and ")} assumption${y.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(y){if((0,wa.enableFeature)(y,t,r),typeof y.get(xi)=="number"){y.set(xi,"7.24.4");return}(!y.get(xi)||$Ee.lt(y.get(xi),"7.24.4"))&&y.set(xi,"7.24.4")},visitor:{Class(y,{file:v}){var I;if(v.get(xi)!=="7.24.4"||!(0,wa.shouldTransform)(y,v))return;let D=y.isClassDeclaration();D&&(0,WEe.assertFieldTransformed)(y);let O=(0,wa.isLoose)(v,t),_,F=(0,RE.hasDecorators)(y.node),R=[],K=[],te=[],se=new Set,Te=y.get("body");for(let fe of Te.get("body")){if((fe.isClassProperty()||fe.isClassMethod())&&fe.node.computed&&te.push(fe),fe.isPrivate()){let{name:Qe}=fe.node.key.id,It=`get ${Qe}`,Rt=`set ${Qe}`;if(fe.isClassPrivateMethod()){if(fe.node.kind==="get"){if(se.has(It)||se.has(Qe)&&!se.has(Rt))throw fe.buildCodeFrameError("Duplicate private field");se.add(It).add(Qe)}else if(fe.node.kind==="set"){if(se.has(Rt)||se.has(Qe)&&!se.has(It))throw fe.buildCodeFrameError("Duplicate private field");se.add(Rt).add(Qe)}}else{if(se.has(Qe)&&!se.has(It)&&!se.has(Rt)||se.has(Qe)&&(se.has(It)||se.has(Rt)))throw fe.buildCodeFrameError("Duplicate private field");se.add(Qe)}}fe.isClassMethod({kind:"constructor"})?_=fe:(K.push(fe),(fe.isProperty()||fe.isPrivate()||fe.isStaticBlock!=null&&fe.isStaticBlock())&&R.push(fe))}if(!R.length&&!F)return;let Pe=y.node.id,Be;(!Pe||!D)&&((0,qEe.default)(y),Be=y.scope.generateUidIdentifier((Pe==null?void 0:Pe.name)||"Class"));let dt=(I=Be)!=null?I:ME.types.cloneNode(Pe),j=(0,Pl.buildPrivateNamesMap)(dt.name,d!=null?d:O,R,v),q=(0,Pl.buildPrivateNamesNodes)(j,f!=null?f:O,c!=null?c:!1,v);(0,Pl.transformPrivateNamesUsage)(dt,y,j,{privateFieldsAsProperties:d!=null?d:O,noUninitializedPrivateFieldAccess:p,noDocumentAll:b,innerBinding:Pe},v);let Y,re,me,Se,pe,Fe,qe;F?(re=pe=Y=[],{instanceNodes:me,wrapClass:qe}=(0,RE.buildDecoratedClass)(dt,y,K,v)):(Y=(0,qE.extractComputedKeys)(y,te,v),{staticNodes:re,pureStaticNodes:pe,instanceNodes:me,lastInstanceNodeReturnsThis:Se,classBindingNode:Fe,wrapClass:qe}=(0,Pl.buildFieldsInitNodes)(Be,y.node.superClass,R,j,v,u!=null?u:O,d!=null?d:O,p,m!=null?m:O,Pe)),me.length>0&&(0,qE.injectInitialization)(y,_,me,(fe,Qe)=>{if(!F)for(let It of R)ME.types.isStaticBlock!=null&&ME.types.isStaticBlock(It.node)||It.node.static||It.traverse(fe,Qe)},Se);let Ge=qe(y);Ge.insertBefore([...q,...Y]),re.length>0&&Ge.insertAfter(re),pe.length>0&&Ge.find(fe=>fe.isStatement()||fe.isDeclaration()).insertAfter(pe),Fe!=null&&D&&Ge.insertAfter(Fe)},ExportDefaultDeclaration(y,{file:v}){{if(v.get(xi)!=="7.24.4")return;let I=y.get("declaration");I.isClassDeclaration()&&(0,RE.hasDecorators)(I.node)&&(I.node.id?(0,UEe.default)(y):I.node.type="ClassExpression")}}}}}});var VE=E(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.default=XEe;sp.translateEnumValues=f_;var Ia=Et(),GEe=require("assert"),HEe=zf(),UE=new WeakMap,YEe=Ia.template.expression(`
(function (ID) {
ASSIGNMENTS;
return ID;
})(INIT)
`);function XEe(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}=ZEe(e,t,r.id);switch(n.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":{let u=t.isProgram(e.parent),c=l(n),f=t.objectExpression([]);(c||u)&&(f=t.logicalExpression("||",t.cloneNode(i.ID),f));let p=YEe(Object.assign({},i,{INIT:f}));o&&(0,HEe.default)(p),c?(n.isExportDeclaration()?n:e).replaceWith(t.expressionStatement(t.assignmentExpression("=",t.cloneNode(r.id),p))):e.scope.registerDeclaration(e.replaceWith(t.variableDeclaration(u?"var":"let",[t.variableDeclarator(r.id,p)]))[0]),UE.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 JEe=(0,Ia.template)(`
ENUM["NAME"] = VALUE;
`),zEe=(0,Ia.template)(`
ENUM[ENUM["NAME"] = VALUE] = "NAME";
`),QEe=(e,t)=>(e?JEe:zEe)(t);function ZEe(e,t,r){let{enumValues:n,data:s,isPure:i}=f_(e,t),a=n.map(([o,l])=>QEe(t.isStringLiteral(l),{ENUM:t.cloneNode(r),NAME:o,VALUE:l}));return{fill:{ID:t.cloneNode(r),ASSIGNMENTS:a},data:s,isPure:i}}function c_(e,t){let{seen:r,path:n,t:s}=t,i=e.node.name;r.has(i)&&!e.scope.hasOwnBinding(i)&&(e.replaceWith(s.memberExpression(s.cloneNode(n.node.id),s.cloneNode(e.node))),e.skip())}var e1e={ReferencedIdentifier:c_};function f_(e,t){var r;let n=e.scope.getBindingIdentifier(e.node.id.name),s=(r=UE.get(n))!=null?r:new Map,i=-1,a,o=!0,l=e.get("members").map(u=>{let c=u.node,f=t.isIdentifier(c.id)?c.id.name:c.id.value,p=u.get("initializer"),m=c.initializer,b;if(m)i=p_(p,s),i!==void 0?(s.set(f,i),GEe(typeof i=="number"||typeof i=="string"),i===1/0||Number.isNaN(i)?b=t.identifier(String(i)):i===-1/0?b=t.unaryExpression("-",t.identifier("Infinity")):b=t.valueToNode(i)):(o&&(o=p.isPure()),p.isReferencedIdentifier()?c_(p,{t,seen:s,path:e}):p.traverse(e1e,{t,seen:s,path:e}),b=p.node,s.set(f,void 0));else if(typeof i=="number")i+=1,b=t.numericLiteral(i),s.set(f,i);else{if(typeof i=="string")throw e.buildCodeFrameError("Enum member must have initializer.");{let d=t.memberExpression(t.cloneNode(e.node.id),t.stringLiteral(a),!0);b=t.binaryExpression("+",t.numericLiteral(1),d),s.set(f,void 0)}}return a=f,[f,b]});return{isPure:o,data:s,enumValues:l}}function p_(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,f="";for(let p=0;p<c.length;p++)if(f+=c[p].value.cooked,p+1<c.length){let m=s(u[p],t,r);if(m===void 0)return;f+=m}return f}default:return}}function s(o,l,u){if(o.isMemberExpression()){let c=o.node,f=c.object,p=c.property;if(!Ia.types.isIdentifier(f)||(c.computed?!Ia.types.isStringLiteral(p):!Ia.types.isIdentifier(p)))return;let m=o.scope.getBindingIdentifier(f.name),b=UE.get(m);return b?b.get(p.computed?p.value:p.name):void 0}else if(o.isIdentifier()){let c=o.node.name;if(["Infinity","NaN"].includes(c))return Number(c);let f=l==null?void 0:l.get(c);return f!==void 0?f:u.has(o.node)?void 0:(u.add(o.node),f=p_(o.resolve(),l,u),l==null||l.set(c,f),f)}}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 d_=E($E=>{"use strict";Object.defineProperty($E,"__esModule",{value:!0});$E.default=r1e;var t1e=VE();function r1e(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,t1e.translateEnumValues)(e,t);if(s){let o=t.objectExpression(i.map(([l,u])=>t.objectProperty(t.isValidIdentifier(l)?t.identifier(l):t.stringLiteral(l),u)));e.scope.hasOwnBinding(r)?(n?e.parentPath:e).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("assign")),[e.node.id,o]))):(e.replaceWith(t.variableDeclaration("var",[t.variableDeclarator(e.node.id,o)])),e.scope.registerDeclaration(e));return}let a=new Map(i);e.scope.path.traverse({Scope(o){o.scope.hasOwnBinding(r)&&o.skip()},MemberExpression(o){if(!t.isIdentifier(o.node.object,{name:r}))return;let l;if(o.node.compute
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 s1e(e,t){h_.get(e).add(t)}});var y_=E(YE=>{"use strict";Object.defineProperty(YE,"__esModule",{value:!0});YE.default=a1e;var ot=Et(),i1e=WE();function a1e(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=e.node.id.name,n=HE(e,ot.types.cloneNode(e.node,!0));if(n===null){let s=e.findParent(i=>i.isProgram());(0,i1e.registerGlobalType)(s.scope,r),e.remove()}else e.scope.hasOwnBinding(r)?e.replaceWith(n):e.scope.registerDeclaration(e.replaceWithMultiple([KE(r),n])[0])}function KE(e){return ot.types.variableDeclaration("let",[ot.types.variableDeclarator(ot.types.identifier(e))])}function GE(e,t){return ot.types.memberExpression(ot.types.identifier(e),ot.types.identifier(t))}function o1e(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=>ot.types.isIdentifier(a.id))){for(let a of n)a.init=ot.types.assignmentExpression("=",GE(t,a.id.name),a.init);return[e]}let s=ot.types.getBindingIdentifiers(e),i=[];for(let a in s)i.push(ot.types.assignmentExpression("=",GE(t,a),ot.types.cloneNode(s[a])));return[e,ot.types.expressionStatement(ot.types.sequenceExpression(i))]}function m_(e,t){return e.hub.buildError(t,"Ambient modules cannot be nested in other modules or namespaces.",Error)}function HE(e,t,r){let n=new Set,s=t.id;ot.types.assertIdentifier(s);let i=e.scope.generateUid(s.name),a=ot.types.isTSModuleBlock(t.body)?t.body.body:[ot.types.exportNamedDeclaration(t.body)],o=!0;for(let u=0;u<a.length;u++){let c=a[u];switch(c.type){case"TSModuleDeclaration":{if(!ot.types.isIdentifier(c.id))throw m_(e,c);let f=HE(e,c);if(f!==null){o=!1;let p=c.id.name;n.has(p)?a[u]=f:(n.add(p),a.splice(u++,1,KE(p),f))}continue}case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":o=!1,n.add(c.id.name);continue;case"VariableDeclaration":{o=!1;for(let f in ot.types.getBindingIdentifiers(c))n.add(f);continue}default:o&&(o=ot.types.isTypeScript(c));continue;case"ExportNamedDeclaration":}if(!("declare"in c.declaration&&c.declaration.declare))switch(c.declaration.type){case"TSEnumDeclaration":case"FunctionDeclaration":case"ClassDeclaration":{o=!1;let f=c.declaration.id.name;n.add(f),a.splice(u++,1,c.declaration,ot.types.expressionStatement(ot.types.assignmentExpression("=",GE(i,f),ot.types.identifier(f))));break}case"VariableDeclaration":{o=!1;let f=o1e(c.declaration,i,e.hub);a.splice(u,f.length,...f),u+=f.length-1;break}case"TSModuleDeclaration":{if(!ot.types.isIdentifier(c.declaration.id))throw m_(e,c.declaration);let f=HE(e,c.declaration,ot.types.identifier(i));if(f!==null){o=!1;let p=c.declaration.id.name;n.has(p)?a[u]=f:(n.add(p),a.splice(u++,1,KE(p),f))}else a.splice(u,1),u--}}}if(o)return null;let l=ot.types.objectExpression([]);if(r){let u=ot.types.memberExpression(r,s);l=ot.template.expression.ast`
${ot.types.cloneNode(u)} ||
(${ot.types.cloneNode(u)} = ${l})
`}return ot.template.statement.ast`
(function (${ot.types.identifier(i)}) {
${a}
})(${s} || (${ot.types.cloneNode(s)} = ${l}));
`}});var E_=E(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.default=void 0;var l1e=mt(),u1e=vO(),c1e=Da(),f1e=d_(),p1e=VE(),zn=WE(),d1e=y_();function h1e(e){switch(e.parent.type){case"TSTypeReference":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 Gr=new WeakMap,g_=new WeakSet;function ip(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 b_(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 AIe=ap.default=(0,l1e.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 f={field(d){let{node:y}=d;if(!c&&y.declare)throw d.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(y.declare){if(y.value)throw d.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");y.decorators||d.remove()}else if(y.definite){if(y.value)throw d.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");!c&&!y.decorators&&!r.isClassPrivateProperty(y)&&d.remove()}else(y.abstract||!c&&!y.value&&!y.decorators&&!r.isClassPrivateProperty(y))&&d.remove();y.accessibility&&(y.accessibility=null),y.abstract&&(y.abstract=null),y.readonly&&(y.readonly=null),y.optional&&(y.optional=null),y.typeAnnotation&&(y.typeAnnotation=null),y.definite&&(y.definite=null),y.declare&&(y.declare=null),y.override&&(y.override=null)},method({node:d}){d.accessibility&&(d.accessibility=null),d.abstract&&(d.abstract=null),d.optional&&(d.optional=null),d.override&&(d.override=null)},constructor(d,y){d.node.accessibility&&(d.node.accessibility=null);let v=[],{scope:I}=d;for(let D of d.get("params")){let O=D.node;if(O.type==="TSParameterProperty"){let _=O.parameter;if(g_.has(_))continue;g_.add(_);let F;if(r.isIdentifier(_))F=_;else if(r.isAssignmentPattern(_)&&r.isIdentifier(_.left))F=_.left;else throw D.buildCodeFrameError("Parameter properties can not be destructuring patterns.");v.push(n.statement.ast`
this.${r.cloneNode(F)} = ${r.cloneNode(F)}
`),D.replaceWith(D.get("parameter")),I.registerBinding("param",D)}}(0,c1e.injectInitialization)(y,d,v)}};return{name:"transform-typescript",inherits:u1e.default,visitor:{Pattern:m,Identifier:m,RestElement:m,Program:{enter(d,y){let{file:v}=y,I=null,D=null,O=d.scope;if(zn.GLOBAL_TYPES.has(O)||zn.GLOBAL_TYPES.set(O,new Set),v.ast.comments)for(let R of v.ast.comments){let K=s.exec(R.value);K&&(K[1]?D=K[2]:I=K[2])}let _=I||a;_&&([_]=_.split("."));let F=D||o;F&&([F]=F.split("."));for(let R of d.get("body")){if(R.isImportDeclaration()){if(Gr.has(y.file.ast.program)||Gr.set(y.file.ast.program,!0),R.node.importKind==="type"){for(let Te of R.node.specifiers)(0,zn.registerGlobalType)(O,Te.local.name);R.remove();continue}let K=new Set,te=R.node.specifiers.length,se=()=>te>0&&te===K.size;for(let Te of R.node.specifiers)if(Te.type==="ImportSpecifier"&&Te.importKind==="type"){(0,zn.registerGlobalType)(O,Te.local.name);let Pe=R.scope.getBinding(Te.local.name);Pe&&K.add(Pe.path)}if(l)Gr.set(d.node,!1);else{if(R.node.specifiers.length===0){Gr.set(d.node,!1);continue}for(let Te of R.node.specifiers){let Pe=R.scope.getBinding(Te.local.name);Pe&&!K.has(Pe.path)&&(b({binding:Pe,programPath:d,pragmaImportName:_,pragmaFragImportName:F})?K.add(Pe.path):Gr.set(d.node,!1))}}if(se()&&!l)R.remove();else for(let Te of K)Te.remove();continue}if(R.isExportDeclaration()&&(R=R.get("declaration")),R.isVariableDeclaration({declare:!0}))for(let K of Object.keys(R.getBindingIdentifiers()))(0,zn.registerGlobalType)(O,K);else(R.isTSTypeAliasDeclaration()||R.isTSDeclareFunction()&&R.get("id").isIdentifier()||R.isTSInterfaceDeclaration()||R.isClassDeclaration({declare:!0})||R.isTSEnumDeclaration({declare:!0})||R.isTSModuleDeclaration({declare:!0})&&R.get("id").isIdentifier())&&(0,zn.registerGlobalType)(O,R.node.id.name)}},exit(d){d.node.sourceType==="module"&&Gr.get(d.node)&&d.pushContainer("body",r.exportNamedDeclaration())}},ExportNamedDeclaration(d,y){if(Gr.has(y.file.ast.program)||Gr.set(y.file.ast.program,!0),d.node.exportKind==="type"){d.remove();return}if(d.node.source&&d.node.specifiers.length>0&&d.node.specifiers.every(v=>v.type==="ExportSpecifier"&&v.exportKind==="type")){d.remove();return}if(!d.node.source&&d.node.specifiers.length>0&&d.node.specifiers.every(v=>r.isExportSpecifier(v)&&(0,zn.isGlobalType)(d,v.local.name))){d.remove();return}if(r.isTSModuleDeclaration(d.node.declaration)){let v=d.node.declaration,{id:I}=v;if(r.isIdentifier(I))if(d.scope.hasOwnBinding(I.name))d.replaceWith(v);else{let[D]=d.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let",[r.variableDeclarator(r.cloneNode(I))])),v]);d.scope.registerDeclaration(D)}}Gr.set(y.file.ast.program,!1)},ExportAllDeclaration(d){d.node.exportKind==="type"&&d.remove()},ExportSpecifier(d){(!d.parent.source&&(0,zn.isGlobalType)(d,d.node.local.name)||d.node.exportKind==="type")&&d.remove()},ExportDefaultDeclaration(d,y){if(Gr.has(y.file.ast.program)||Gr.set(y.file.ast.program,!0),r.isIdentifier(d.node.declaration)&&(0,zn.isGlobalType)(d,d.node.declaration.name)){d.remove();return}Gr.set(y.file.ast.program,!1)},TSDeclareFunction(d){ip(d)},TSDeclareMethod(d){ip(d)},VariableDeclaration(d){d.node.declare&&ip(d)},VariableDeclarator({node:d}){d.definite&&(d.definite=null)},TSIndexSignature(d){d.remove()},ClassDeclaration(d){let{node:y}=d;y.declare&&ip(d)},Class(d){let{node:y}=d;y.typeParameters&&(y.typeParameters=null),y.superTypeParameters&&(y.superTypeParameters=null),y.implements&&(y.implements=null),y.abstract&&(y.abstract=null),d.get("body.body").forEach(v=>{v.isClassMethod()||v.isClassPrivateMethod()?v.node.kind==="constructor"?f.constructor(v,d):f.method(v):(v.isClassProperty()||v.isClassPrivateProperty()||v.isClassAccessorProperty())&&f.field(v)})},Function(d){let{node:y}=d;y.typeParameters&&(y.typeParameters=null),y.returnType&&(y.returnType=null);let v=y.params;v.length>0&&r.isIdentifier(v[0],{name:"this"})&&v.shift()},TSModuleDeclaration(d){(0,d1e.default)(d,i)},TSInterfaceDeclaration(d){d.remove()},TSTypeAliasDeclaration(d){d.remove()},TSEnumDeclaration(d){u&&
function ${t}() {
const data = ${r};
${t} = function(){ return data; };
return data;
}
`:!1},wrapReference(t,r){if(r==="lazy/function")return x_.types.callExpression(t,[])}});lp.lazyImportsHook=v1e});var A_=E(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.defineCommonJSHook=T1e;up.makeInvokers=S1e;var QE="@babel/plugin-transform-modules-commonjs/customWrapperPlugin";function T1e(e,t){let r=e.get(QE);r||e.set(QE,r=[]),r.push(t)}function zE(e,t){if(e)for(let r of e){let n=t(r);if(n!=null)return n}}function S1e(e){let t=e.get(QE);return{getWrapperPayload(...r){return zE(t,n=>n.getWrapperPayload==null?void 0:n.getWrapperPayload(...r))},wrapReference(...r){return zE(t,n=>n.wrapReference==null?void 0:n.wrapReference(...r))},buildRequireWrapper(...r){return zE(t,n=>n.buildRequireWrapper==null?void 0:n.buildRequireWrapper(...r))}}}});var e1=E(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=void 0;Object.defineProperty(Al,"defineCommonJSHook",{enumerable:!0,get:function(){return ZE.defineCommonJSHook}});var x1e=mt(),Ai=Uo(),P1e=R0(),ln=Et(),A1e=S_(),C1e=P_(),ZE=A_(),NIe=Al.default=(0,x1e.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:f,lazy:p=!1,allowCommonJSExports:m=!0,loose:b=!1}=t,d=(r=e.assumption("constantReexports"))!=null?r:b,y=(n=e.assumption("enumerableModuleMeta"))!=null?n:b,v=(s=e.assumption("noIncompleteNsImportDetection"))!=null?s:!1;if(typeof p!="boolean"&&typeof p!="function"&&(!Array.isArray(p)||!p.every(O=>typeof O=="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 I=O=>ln.template.expression.ast`
(function(){
throw new Error(
"The CommonJS '" + "${O}" + "' variable is not available in ES6 modules." +
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
"Babel config for this file.");
})()
`,D={ReferencedIdentifier(O){let _=O.node.name;if(_!=="module"&&_!=="exports")return;let F=O.scope.getBinding(_);this.scope.getBinding(_)!==F||O.parentPath.isObjectProperty({value:O.node})&&O.parentPath.parentPath.isObjectPattern()||O.parentPath.isAssignmentExpression({left:O.node})||O.isAssignmentExpression({left:O.node})||O.replaceWith(I(_))},UpdateExpression(O){let _=O.get("argument");if(!_.isIdentifier())return;let F=_.node.name;if(F!=="module"&&F!=="exports")return;let R=O.scope.getBinding(F);this.scope.getBinding(F)===R&&O.replaceWith(ln.types.assignmentExpression(O.node.operator[0]+"=",_.node,I(F)))},AssignmentExpression(O){let _=O.get("left");if(_.isIdentifier()){let F=_.node.name;if(F!=="module"&&F!=="exports")return;let R=O.scope.getBinding(F);if(this.scope.getBinding(F)!==R)return;let te=O.get("right");te.replaceWith(ln.types.sequenceExpression([te.node,I(F)]))}else if(_.isPattern()){let F=_.getOuterBindingIdentifiers(),R=Object.keys(F).filter(K=>K!=="module"&&K!=="exports"?!1:this.scope.getBinding(K)===O.scope.getBinding(K))[0];if(R){let K=O.get("right");K.replaceWith(ln.types.sequenceExpression([K.node,I(R)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),p&&(0,ZE.defineCommonJSHook)(this.file,(0,C1e.lazyImportsHook)(p))},visitor:{["CallExpression"+(e.types.importExpression?"|ImportExpression":"")](O){if(!this.file.has("@babel/plugin-proposal-dynamic-import")||O.isCallExpression()&&!ln.types.isImport(O.node.callee))return;let{scope:_}=O;do _.rename("require");while(_=_.parent);(0,A1e.transformDynamicImport)(O,c,this.file)},Program:{exit(O,_){if(!(0,Ai.isModule)(O))return;O.scope.rename("exports"),O.scope.rename("module"),O.scope.rename("require"),O.scope.rename("__filename"),O.scope.rename("__dirname"),m||((0,P1e.default)(O,new Set(["module","exports"]),!1),O.traverse(D,{scope:O.scope}));let F=(0,Ai.getModuleName)(this.file.opts,t);F&&(F=ln.types.stringLiteral(F));let R=(0,ZE.makeInvokers)(this.file),{meta:K,headers:te}=(0,Ai.rewriteModuleStatementsAndPrepareHeader)(O,{exportName:"exports",constantReexports:d,enumerableModuleMeta:y,strict:l,strictMode:u,allowTopLevelThis:o,noInterop:c,importInterop:f,wrapReference:R.wrapReference,getWrapperPayload:R.getWrapperPayload,esNamespaceOnly:typeof _.filename=="string"&&/\.mjs$/.test(_.filename)?a:i,noIncompleteNsImportDetection:v,filename:this.file.opts.filename});for(let[Te,Pe]of K.source){let Be=ln.types.callExpression(ln.types.identifier("require"),[ln.types.stringLiteral(Te)]),dt;if((0,Ai.isSideEffectImport)(Pe)){if(p&&Pe.wrap==="function")throw new Error("Assertion failure");dt=ln.types.expressionStatement(Be)}else{var se;let j=(0,Ai.wrapInterop)(O,Be,Pe.interop)||Be;if(Pe.wrap){let q=R.buildRequireWrapper(Pe.name,j,Pe.wrap,Pe.referenced);if(q===!1)continue;dt=q}(se=dt)!=null||(dt=ln.template.statement.ast`
var ${Pe.name} = ${j};
`)}dt.loc=Pe.loc,te.push(dt),te.push(...(0,Ai.buildNamespaceInitStatements)(K,Pe,d,R.wrapReference))}(0,Ai.ensureStatementsHoisted)(te),O.unshiftContainer("body",te),O.get("body").forEach(Te=>{te.indexOf(Te.node)!==-1&&Te.isVariableDeclaration()&&Te.scope.registerDeclaration(Te)})}}}}})});var r1=E(t1=>{"use strict";Object.defineProperty(t1,"__esModule",{value:!0});var w_=mt(),w1e=E_();XE();var D1e=e1(),I1e=pf();function D_(e){return e&&e.__esModule?e:{default:e}}var C_=D_(w1e),O1e=D_(D1e),Qn=new I1e.OptionValidator("@babel/preset-typescript");function _1e(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=Qn.validateStringOption(s.jsxPragmaFrag,e.jsxPragmaFrag,"React.Fragment");{var a=Qn.validateBooleanOption(s.allExtensions,e.allExtensions,!1),o=Qn.validateBooleanOption(s.isTSX,e.isTSX,!1);o&&Qn.invariant(a,"isTSX:true requires allExtensions:true")}let l=Qn.validateBooleanOption(s.ignoreExtensions,e.ignoreExtensions,!1),u=Qn.validateBooleanOption(s.disallowAmbiguousJSXLike,e.disallowAmbiguousJSXLike,!1);u&&Qn.invariant(a,"disallowAmbiguousJSXLike:true requires allExtensions:true");let c=Qn.validateBooleanOption(s.optimizeConstEnums,e.optimizeConstEnums,!1),f=Qn.validateBooleanOption(s.rewriteImportExtensions,e.rewriteImportExtensions,!1),p={ignoreExtensions:l,allowNamespaces:t,disallowAmbiguousJSXLike:u,jsxPragma:r,jsxPragmaFrag:i,onlyRemoveTypeImports:n,optimizeConstEnums:c,rewriteImportExtensions:f};return p.allExtensions=a,p.isTSX=o,p}var N1e=w_.declare(function({types:e}){return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"({node:t}){let{source:r}=t;(e.isImportDeclaration(t)?t.importKind:t.exportKind)==="value"&&r&&/[\\/]/.test(r.value)&&(r.value=r.value.replace(/(\.[mc]?)ts$/,"$1js").replace(/\.tsx$/,".js"))}}}}),k1e=w_.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:f}=_1e(t),p=d=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:d,jsxPragma:o,jsxPragmaFrag:l,onlyRemoveTypeImports:u,optimizeConstEnums:c}),m=(d,y)=>[[C_.default,Object.assign({isTSX:d},p(y))]];return{plugins:f?[N1e]:[],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:[[O1e.default,{allowTopLevelThis:!0}],[C_.default,p(!0)]]},{test:/\.tsx$/,plugins:m(!0,!1)}]}});t1.default=k1e});var u1=E(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=L1e;Cl.supportsESM=void 0;var I_=oa();function a1(){let e=require("path");return a1=function(){return e},e}function __(){let e=require("url");return __=function(){return e},e}function o1(){let e=qn();return o1=function(){return e},e}function N_(){let e=zs();return N_=function(){return e},e}var k_=Un(),l1=di(),B1e=aE();function O_(e,t,r,n,s,i,a){try{var o=e[i](a),l=o.value}catch(u){r(u);return}o.done?t(l):Promise.resolve(l).then(n,s)}function F1e(e){return function(){var t=this,r=arguments;return new Promise(function(n,s){var i=e.apply(t,r);function a(l){O_(i,n,s,a,o,"next",l)}function o(l){O_(i,n,s,a,o,"throw",l)}a(void 0)})}}var j1e=N_()("babel:config:loading:files:module-types");try{s1=gO()}catch{}var s1,FIe=Cl.supportsESM=o1().satisfies(process.versions.node,"^12.17 || >=13.2");function*L1e(e,t){switch(a1().extname(e)){case".cjs":return i1(e,arguments[2]);case".mjs":break;case".cts":return M1e(e);default:try{return i1(e,arguments[2])}catch(r){if(r.code!=="ERR_REQUIRE_ESM")throw r}}if(yield*(0,I
`,r);return(yield s1(n)).default}});function t(r){return e.apply(this,arguments)}return t}());function q1e(e){try{return r1()}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 l1.default(r,e)}}});var $_=E(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.ROOT_CONFIG_FILENAMES=void 0;Zn.findConfigUpwards=eve;Zn.findRelativeConfig=tve;Zn.findRootConfig=rve;Zn.loadConfig=nve;Zn.resolveShowConfigPath=sve;function F_(){let e=zs();return F_=function(){return e},e}function c1(){let e=require("fs");return c1=function(){return e},e}function Nr(){let e=require("path");return Nr=function(){return e},e}function j_(){let e=ew();return j_=function(){return e},e}function L_(){let e=Ir();return L_=function(){return e},e}var M_=pi(),U1e=Cg(),R_=hg(),V1e=u1(),$1e=db(),un=di(),W1e=Rc(),K1e=Un(),f1=F_()("babel:config:loading:files:configuration"),q_=Zn.ROOT_CONFIG_FILENAMES=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json","babel.config.cts"],G1e=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json",".babelrc.cts"],H1e=".babelignore",Y1e=(0,M_.makeWeakCache)(function*(t,r){return yield*[],{options:(0,K1e.endHiddenCallStack)(t)((0,U1e.makeConfigAPI)(r)),cacheNeedsConfiguration:!r.configured()}});function*X1e(e,t){if(!c1().existsSync(e))return null;let r=yield*(0,V1e.default)(e,"You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously."),n=!1;if(typeof r=="function"&&({options:r,cacheNeedsConfiguration:n}=yield*Y1e(r,t)),!r||typeof r!="object"||Array.isArray(r))throw new un.default("Configuration should be an exported JavaScript object.",e);if(typeof r.then=="function")throw r.catch==null||r.catch(()=>{}),new un.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&&ive(e),J1e(r,e)}var B_=new WeakMap;function J1e(e,t){let r=B_.get(e);r||B_.set(e,r=new Map);let n=r.get(t);return n||(n={filepath:t,dirname:Nr().dirname(t),options:e},r.set(t,n)),n}var z1e=(0,M_.makeWeakCacheSync)(e=>{let t=e.options.babel;if(typeof t=="undefined")return null;if(typeof t!="object"||Array.isArray(t)||t===null)throw new un.default(".babel property must be an object",e.filepath);return{filepath:e.filepath,dirname:e.dirname,options:t}}),Q1e=(0,R_.makeStaticFileCache)((e,t)=>{let r;try{r=j_().parse(t)}catch(n){throw new un.default(`Error while parsing config - ${n.message}`,e)}if(!r)throw new un.default("No config detected",e);if(typeof r!="object")throw new un.default(`Config returned typeof ${typeof r}`,e);if(Array.isArray(r))throw new un.default("Expected config object but found array",e);return delete r.$schema,{filepath:e,dirname:Nr().dirname(e),options:r}}),Z1e=(0,R_.makeStaticFileCache)((e,t)=>{let r=Nr().dirname(e),n=t.split(`
`).map(s=>s.replace(/#(.*?)$/,"").trim()).filter(s=>!!s);for(let s of n)if(s[0]==="!")throw new un.default("Negation of file paths is not supported.",e);return{filepath:e,dirname:Nr().dirname(e),ignore:n.map(s=>(0,$1e.default)(s,r))}});function eve(e){let t=e;for(;;){for(let n of q_)if(c1().existsSync(Nr().join(t,n)))return t;let r=Nr().dirname(t);if(t===r)break;t=r}return null}function*tve(e,t,r){let n=null,s=null,i=Nr().dirname(e.filepath);for(let o of e.directories){if(!n){var a;n=yield*U_(G1e,o,t,r,((a=e.pkg)==null?void 0:a.dirname)===o?z1e(e.pkg):null)}if(!s){let l=Nr().join(o,H1e);s=yield*Z1e(l),s&&f1("Found ignore %o from %o.",s.filepath,i)}}return{config:n,ignore:s}}function rve(e,t,r){return U_(q_,e,t,r)}function*U_(e,t,r,n,s=null){let a=(yield*L_().all(e.map(o=>V_(Nr().join(t,o),r,n)))).reduce((o,l)=>{if(l&&o)throw new un.default(`Multiple configuration files found. Please remove one:
- ${Nr().basename(o.filepath)}
- ${l.filepath}
from ${t}`);return l||o},s);return a&&f1("Found configuration %o from %o.",a.filepath,t),a}function*nve(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*V_(s,r,n);if(!i)throw new un.default("Config file contains no configuration data",s);return f1("Loaded config %o from %o.",e,t),i}function V_(e,t,r){switch(Nr().extname(e)){case".js":case".cjs":case".mjs":case".cts":return X1e(e,{envName:t,caller:r});default:return Q1e(e)}}function*sve(e){let t=process.env.BABEL_SHOW_CONFIG_FOR;if(t!=null){let r=Nr().resolve(e,t);if(!(yield*W1e.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 ive(e){throw new un.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 dN=E(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.moduleResolve=pN;hp.resolve=Zve;function xn(){let e=require("assert");return xn=function(){return e},e}function _a(){let e=ave(require("fs"),!0);return _a=function(){return e},e}function Fs(){let e=require("process");return Fs=function(){return e},e}function ve(){let e=require("url");return ve=function(){return e},e}function pp(){let e=require("path");return pp=function(){return e},e}function g1(){let e=require("module");return g1=function(){return e},e}function tN(){let e=require("v8");return tN=function(){return e},e}function Il(){let e=require("util");return Il=function(){return e},e}function rN(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(rN=function(n){return n?r:t})(e)}function ave(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=rN(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var ove={}.hasOwnProperty,lve=/^([A-Z][a-z\d]*)+$/,uve=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),or={};function p1(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var nN=new Map,cve="__node_internal_",W_;or.ERR_INVALID_ARG_TYPE=cn("ERR_INVALID_ARG_TYPE",(e,t,r)=>{xn()(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)xn()(typeof o=="string","All expected entries have to be of type string"),uve.has(o)?s.push(o.toLowerCase()):lve.exec(o)===null?(xn()(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"} ${p1(s,"or")}`,(i.length>0||a.length>0)&&(n+=" or ")),i.length>0&&(n+=`an instance of ${p1(i,"or")}`,a.length>0&&(n+=" or ")),a.length>0&&(a.length>1?n+=`one of ${p1(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`)),n+=`. Received ${mve(r)}`,n},TypeError);or.ERR_INVALID_MODULE_SPECIFIER=cn("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);or.ERR_INVALID_PACKAGE_CONFIG=cn("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);or.ERR_INVALID_PACKAGE_TARGET=cn("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==="."?(xn()(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);or.ERR_MODULE_NOT_FOUND=cn("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);or.ERR_NETWORK_IMPORT_DISALLOWED=cn("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);or.ERR_PACKAGE_IMPORT_NOT_DEFINED=cn("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);or.ERR_PACKAGE_PATH_NOT_EXPORTED=cn("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}`:""}`,E
Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):Fs().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 uN(e){try{return(0,_a().statSync)(e)}catch{return new(_a()).Stats}}function h1(e){let t=(0,_a().statSync)(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r==null?!1:r}function Mve(e,t,r){let n;if(t.main!==void 0){if(n=new(ve()).URL(t.main,e),h1(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(ve()).URL(a[o],e),!h1(n));)n=void 0;if(n)return Z_(n,e,r,t.main),n}let s=["./index.js","./index.json","./index.node"],i=-1;for(;++i<s.length&&(n=new(ve()).URL(s[i],e),!h1(n));)n=void 0;if(n)return Z_(n,e,r,t.main),n;throw new E1((0,ve().fileURLToPath)(new(ve()).URL(".",e)),(0,ve().fileURLToPath)(r))}function Rve(e,t,r){if(jve.exec(e.pathname)!==null)throw new dp(e.pathname,'must not include encoded "/" or "\\" characters',(0,ve().fileURLToPath)(t));let n;try{n=(0,ve().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=uN(n.endsWith("/")?n.slice(-1):n);if(s.isDirectory()){let i=new Bve(n,(0,ve().fileURLToPath)(t));throw i.url=String(e),i}if(!s.isFile()){let i=new E1(n||e.pathname,t&&(0,ve().fileURLToPath)(t),!0);throw i.url=String(e),i}if(!r){let i=(0,_a().realpathSync)(n),{search:a,hash:o}=e;e=(0,ve().pathToFileURL)(i+(n.endsWith(pp().sep)?"/":"")),e.search=a,e.hash=o}return e}function qve(e,t,r){return new Nve(e,t&&(0,ve().fileURLToPath)(new(ve()).URL(".",t)),(0,ve().fileURLToPath)(r))}function m1(e,t,r){return new kve((0,ve().fileURLToPath)(new(ve()).URL(".",t)),e,r&&(0,ve().fileURLToPath)(r))}function Uve(e,t,r,n,s){let i=`request is not a valid match in pattern "${t}" for the "${n?"imports":"exports"}" resolution of ${(0,ve().fileURLToPath)(r)}`;throw new dp(e,i,s&&(0,ve().fileURLToPath)(s))}function Dl(e,t,r,n,s){return t=typeof t=="object"&&t!==null?JSON.stringify(t,null,""):`${t}`,new _ve((0,ve().fileURLToPath)(new(ve()).URL(".",r)),e,t,n,s&&(0,ve().fileURLToPath)(s))}function Vve(e,t,r,n,s,i,a,o,l){if(t!==""&&!i&&e[e.length-1]!=="/")throw Dl(r,e,n,a,s);if(!e.startsWith("./")){if(a&&!e.startsWith("../")&&!e.startsWith("/")){let p=!1;try{new(ve()).URL(e),p=!0}catch{}if(!p){let m=i?cp.call(fp,e,()=>t):e+t;return fN(m,n,l)}}throw Dl(r,e,n,a,s)}if(X_.exec(e.slice(2))!==null)if(J_.exec(e.slice(2))===null){if(!o){let p=i?r.replace("*",()=>t):r+t,m=i?cp.call(fp,e,()=>t):e;Q_(m,p,r,n,a,s,!0)}}else throw Dl(r,e,n,a,s);let u=new(ve()).URL(e,n),c=u.pathname,f=new(ve()).URL(".",n).pathname;if(!c.startsWith(f))throw Dl(r,e,n,a,s);if(t==="")return u;if(X_.exec(t)!==null){let p=i?r.replace("*",()=>t):r+t;if(J_.exec(t)===null){if(!o){let m=i?cp.call(fp,e,()=>t):e;Q_(m,p,r,n,a,s,!1)}}else Uve(p,r,n,a,s)}return i?new(ve()).URL(cp.call(fp,u.href,()=>t)):new(ve()).URL(t,u)}function $ve(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function Na(e,t,r,n,s,i,a,o,l){if(typeof t=="string")return Vve(t,r,n,e,s,i,a,o,l);if(Array.isArray(t)){let u=t;if(u.length===0)return null;let c,f=-1;for(;++f<u.length;){let p=u[f],m;try{m=Na(e,p,r,n,s,i,a,o,l)}catch(b){let d=b;if(c=d,d.code==="ERR_INVALID_PACKAGE_TARGET")continue;throw b}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 f=u[c];if($ve(f))throw new oN((0,ve().fileURLToPath)(e),s,'"exports" cannot contain numeric property keys.')}for(c=-1;++c<u.length;){let f=u[c];if(f==="default"||l&&l.has(f)){let p=t[f],m=Na(e,p,r,n,s,i,a,o,l);if(m===void 0)continue;return m}}return null}if(t===null)return null;throw Dl(n,t,e,a,s)}function Wve(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 oN((0,ve().fileURLToPath)(t),r,`"exports" cannot contain som
- If you want to resolve "${t}", use "module:${t}"`),(yield T1(e,"@babel/"+t)).error||(n.message+=`
- Did you mean "@babel/${t}"?`);let i=e==="preset"?"plugin":"preset";if((yield T1(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 dTe(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 hTe(e,t){try{return{error:null,value:(0,eTe.resolve)(e,t)}}catch(r){return{error:r,value:null}}}function hN(e,t,r){let n=EN(e,t),s=n.next();for(;!s.done;)s=n.next(dTe(s.value,r));return s.value}function mTe(e,t,r){let n=(0,S1().pathToFileURL)(x1().join(r,"./babel-virtual-resolve-base.js")).href,s=EN(e,t),i=s.next();for(;!i.done;)i=s.next(hTe(i.value,n));return(0,S1().fileURLToPath)(i.value)}function vN(e,t,r,n){if(!yN.supportsESM||!n)return hN(e,t,r);try{let s=mTe(e,t,r);if(!(0,gN().existsSync)(s))throw Object.assign(new Error(`Could not resolve "${t}" in file ${r}.`),{type:"MODULE_NOT_FOUND"});return s}catch(s){try{return hN(e,t,r)}catch(i){throw s.type==="MODULE_NOT_FOUND"?s:i.type==="MODULE_NOT_FOUND"?i:s}}}mp=new Set;var mp;function*TN(e,t){if(!(yield*(0,P1.isAsync)())&&mp.has(t))throw new Error(`Reentrant ${e} detected trying to load "${t}". 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 mp.add(t),yield*(0,yN.default)(t,`You appear to be using a native ECMAScript module ${e}, which is only supported when running Babel asynchronously.`,!0)}catch(r){throw r.message=`[BABEL]: ${r.message} (While processing: ${t})`,r}finally{mp.delete(t)}}});var il=E(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});Object.defineProperty(kr,"ROOT_CONFIG_FILENAMES",{enumerable:!0,get:function(){return ka.ROOT_CONFIG_FILENAMES}});Object.defineProperty(kr,"findConfigUpwards",{enumerable:!0,get:function(){return ka.findConfigUpwards}});Object.defineProperty(kr,"findPackageData",{enumerable:!0,get:function(){return yTe.findPackageData}});Object.defineProperty(kr,"findRelativeConfig",{enumerable:!0,get:function(){return ka.findRelativeConfig}});Object.defineProperty(kr,"findRootConfig",{enumerable:!0,get:function(){return ka.findRootConfig}});Object.defineProperty(kr,"loadConfig",{enumerable:!0,get:function(){return ka.loadConfig}});Object.defineProperty(kr,"loadPlugin",{enumerable:!0,get:function(){return yp.loadPlugin}});Object.defineProperty(kr,"loadPreset",{enumerable:!0,get:function(){return yp.loadPreset}});Object.defineProperty(kr,"resolvePlugin",{enumerable:!0,get:function(){return yp.resolvePlugin}});Object.defineProperty(kr,"resolvePreset",{enumerable:!0,get:function(){return yp.resolvePreset}});Object.defineProperty(kr,"resolveShowConfigPath",{enumerable:!0,get:function(){return ka.resolveShowConfigPath}});var yTe=$2(),ka=$_(),yp=SN()});var PN=E(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.transform=void 0;Ba.transformAsync=vTe;Ba.transformSync=ETe;function xN(){let e=Ir();return xN=function(){return e},e}var gTe=Sa(),bTe=Uf(),gp=Un(),bp=xN()(function*(t,r){let n=yield*(0,gTe.default)(r);return n===null?null:yield*(0,bTe.run)(n,t)}),UIe=Ba.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,gp.beginHiddenCallStack)(bp.sync)(t,s);(0,gp.beginHiddenCallStack)(bp.errback)(t,s,i)};function ETe(...e){return(0,gp.beginHiddenCallStack)(bp.sync)(...e)}function vTe(...e){return(0,gp.beginHiddenCallStack)(bp.async)(...e)}});var CN=E(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.transformFromAst=void 0;Fa.transformFromAstAsync=PTe;Fa.transformFromAstSync=xTe;function AN(){let e=Ir();return AN=function(){return e},e}var TTe=Sa(),STe=Uf(),Ep=Un(),vp=AN()(function*(e,t,r){let n=yield*(0,TTe.default)(r);if(n===null)return null;if(!e)throw new Error("No AST given");return yield*(0,STe.run)(n,t,e)}),$Ie=Fa.transformFro
DECORATOR(CLASS_REF = INNER) || CLASS_REF;
`),jTe=(0,ce.template)(`
CLASS_REF.prototype;
`),LTe=(0,ce.template)(`
Object.getOwnPropertyDescriptor(TARGET, PROPERTY);
`),MTe=(0,ce.template)(`
(TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {
enumerable: true,
configurable: true,
writable: true,
initializer: function(){
return TEMP;
}
})
`),I1=new WeakSet;function jN(e){let r=(e.isClass()?[e,...e.get("body.body")]:e.get("properties")).reduce((n,s)=>n.concat(s.node.decorators||[]),[]).filter(n=>!ce.types.isIdentifier(n.expression));if(r.length!==0)return ce.types.sequenceExpression(r.map(n=>{let s=n.expression,i=n.expression=e.scope.generateDeclaredUidIdentifier("dec");return ce.types.assignmentExpression("=",i,s)}).concat([e.node]))}function RTe(e){if(!MN(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 FTe({CLASS_REF:ce.types.cloneNode(r),DECORATOR:ce.types.cloneNode(s),INNER:n}).expression},e.node)}function MN(e){var t;return!!((t=e.decorators)!=null&&t.length)}function qTe(e,t){if(O1(e.node.body.body))return RN(e,t,e.node.body.body)}function O1(e){return e.some(t=>{var r;return(r=t.decorators)==null?void 0:r.length})}function UTe(e,t){if(O1(e.node.properties))return RN(e,t,e.node.properties.filter(r=>r.type!=="SpreadElement"))}function RN(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=ce.types.isLiteral(a.key)?a.key:ce.types.stringLiteral(a.key.name),u=e.isClass()&&!a.static?jTe({CLASS_REF:n}).expression:n;if(ce.types.isClassProperty(a,{static:!1})){let c=e.scope.generateDeclaredUidIdentifier("descriptor"),f=a.value?ce.types.functionExpression(null,[],ce.types.blockStatement([ce.types.returnStatement(a.value)])):ce.types.nullLiteral();a.value=ce.types.callExpression(t.addHelper("initializerWarningHelper"),[c,ce.types.thisExpression()]),I1.add(a.value),i.push(ce.types.assignmentExpression("=",ce.types.cloneNode(c),ce.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[ce.types.cloneNode(u),ce.types.cloneNode(l),ce.types.arrayExpression(o.map(p=>ce.types.cloneNode(p.expression))),ce.types.objectExpression([ce.types.objectProperty(ce.types.identifier("configurable"),ce.types.booleanLiteral(!0)),ce.types.objectProperty(ce.types.identifier("enumerable"),ce.types.booleanLiteral(!0)),ce.types.objectProperty(ce.types.identifier("writable"),ce.types.booleanLiteral(!0)),ce.types.objectProperty(ce.types.identifier("initializer"),f)])])))}else i.push(ce.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[ce.types.cloneNode(u),ce.types.cloneNode(l),ce.types.arrayExpression(o.map(c=>ce.types.cloneNode(c.expression))),ce.types.isObjectProperty(a)||ce.types.isClassProperty(a,{static:!0})?MTe({TEMP:e.scope.generateDeclaredUidIdentifier("init"),TARGET:ce.types.cloneNode(u),PROPERTY:ce.types.cloneNode(l)}).expression:LTe({TARGET:ce.types.cloneNode(u),PROPERTY:ce.types.cloneNode(l)}).expression,ce.types.cloneNode(u)]));return i},[]);return ce.types.sequenceExpression([ce.types.assignmentExpression("=",ce.types.cloneNode(n),e.node),ce.types.sequenceExpression(s),ce.types.cloneNode(n)])}function LN({node:e,scope:t}){if(!MN(e)&&!O1(e.body.body))return;let r=e.id?ce.types.cloneNode(e.id):t.generateUidIdentifier("class");return ce.types.variableDeclaration("let",[ce.types.variableDeclarator(r,ce.types.toExpression(e))])}var VTe={ExportDefaultDeclaration(e){let t=e.get("declaration");if(!t.isClassDeclaration())return;let r=LN(t);if(r){let[n]=e.replaceWithMultiple([r,ce.types.exportNamedDeclaration(null,[ce.types.exportSpecifier(ce.types.cloneNode(r.declarations[0].id),ce.types.identifier("default"))])]);t.node.id||e.scope.registerDeclaration(n)}},ClassDeclaration(e){let t=LN(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=jN(e)||RTe(e)||qTe(e,t);r&&e.replaceWith(r)},ObjectExpression(e,t){let r=jN(e)||UTe(e,t);r&&e.replaceWith(r)},AssignmentExpression(e,t){I1.has(e.node.right)&&e.replaceWith(ce.types.callExpression(t.addHelper("initializerDefineProperty"),[ce.types.
try {
var ${Oe.types.cloneNode(u)} = ${a.addHelper("usingCtx")}();
${i.node.body}
} catch (_) {
${Oe.types.cloneNode(u)}.e = _;
} finally {
${c?Oe.types.awaitExpression(f):f}
}
`;Oe.types.inherits(p,i.node);let{parentPath:m}=i;m.isFunction()||m.isTryStatement()||m.isCatchClause()?i.replaceWith(Oe.types.blockStatement([p])):i.isStaticBlock()?i.node.body=[p]:i.replaceWith(p)}else{let u=null,c=!1;for(let y of i.node.body){var l;if(!r(y))continue;(l=u)!=null||(u=i.scope.generateUidIdentifier("stack"));let v=y.kind==="await using"||t.get(y)===1;c||(c=v),t.delete(y)||(y.kind="const"),y.declarations.forEach(I=>{let D=[Oe.types.cloneNode(u),I.init];v&&D.push(Oe.types.booleanLiteral(!0)),I.init=Oe.types.callExpression(a.addHelper("using"),D)})}if(!u)return;let f=i.scope.generateUidIdentifier("error"),p=i.scope.generateUidIdentifier("hasError"),m=Oe.types.callExpression(a.addHelper("dispose"),[Oe.types.cloneNode(u),Oe.types.cloneNode(f),Oe.types.cloneNode(p)]);c&&(m=Oe.types.awaitExpression(m));let b=Oe.template.statement.ast`
try {
var ${u} = [];
${i.node.body}
} catch (_) {
var ${f} = _;
var ${p} = true;
} finally {
${m}
}
`;Oe.types.inherits(b.block,i.node);let{parentPath:d}=i;d.isFunction()||d.isTryStatement()||d.isCatchClause()?i.replaceWith(Oe.types.blockStatement([b])):i.isStaticBlock()?i.node.body=[b]:i.replaceWith(b)}}},s=Oe.traverse.visitors.merge([n,{Function(i){i.skip()}}]);return{name:"proposal-explicit-resource-management",inherits:HTe.default,visitor:Oe.traverse.visitors.merge([n,{Program(i){if(t.clear(),i.node.sourceType!=="module"||!i.node.body.some(r))return;let a=[];for(let l of i.get("body")){if(l.isFunctionDeclaration()||l.isImportDeclaration())continue;let{node:u}=l,c=!0;if(l.isExportDefaultDeclaration()){var o;let{declaration:f}=l.node,p;if(Oe.types.isClassDeclaration(f))p=f.id,f.id=null,f=Oe.types.toExpression(f);else if(!Oe.types.isExpression(f))continue;(o=p)!=null||(p=i.scope.generateUidIdentifier("_default")),a.push(Oe.types.variableDeclaration("var",[Oe.types.variableDeclarator(p,f)])),l.replaceWith(Oe.types.exportNamedDeclaration(null,[Oe.types.exportSpecifier(Oe.types.cloneNode(p),Oe.types.identifier("default"))]));continue}if(l.isExportNamedDeclaration()){if(u=l.node.declaration,!u||Oe.types.isFunction(u))continue;l.replaceWith(Oe.types.exportNamedDeclaration(null,Object.keys(Oe.types.getOuterBindingIdentifiers(u,!1)).map(f=>Oe.types.exportSpecifier(Oe.types.identifier(f),Oe.types.identifier(f))))),c=!1}else if(l.isExportDeclaration())continue;if(Oe.types.isClassDeclaration(u)){let{id:f}=u;u.id=null,a.push(Oe.types.variableDeclaration("var",[Oe.types.variableDeclarator(f,Oe.types.toExpression(u))]))}else Oe.types.isVariableDeclaration(u)?(u.kind==="using"?t.set(l.node,0):u.kind==="await using"&&t.set(l.node,1),u.kind="var",a.push(u)):a.push(l.node);c&&l.remove()}i.pushContainer("body",Oe.types.blockStatement(a))},Function(i,a){i.node.async&&i.traverse(s,a)}}])}})});var HN=E(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=void 0;var YTe=mt(),GN=Da(),cOe=Ip.default=(0,YTe.declare)((e,t)=>(e.assertVersion(7),(0,GN.createClassFeaturePlugin)({name:"transform-class-properties",api:e,feature:GN.FEATURES.fields,loose:t.loose,manipulateOptions(r,n){n.plugins.push("classProperties","classPrivateProperties")}})))});var YN=E(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.default=void 0;var XTe=mt(),JTe=(0,XTe.declare)(e=>(e.assertVersion(7),{name:"syntax-class-static-block",manipulateOptions(t,r){r.plugins.push("classStaticBlock")}}));Op.default=JTe});var JN=E(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.default=void 0;var zTe=mt(),XN=Da();function QTe(e,t){let r="",n,s=1;do n=e._generateUid(r,s),s++;while(t.has(n));return n}var dOe=_p.default=(0,zTe.declare)(({types:e,template:t,assertVersion:r,version:n})=>(r("^7.12.0 || >8.0.0-alpha <8.0.0-beta"),{name:"transform-class-static-block",inherits:n[0]==="8"?void 0:YN().default,pre(){(0,XN.enableFeature)(this.file,XN.FEATURES.staticBlocks,!1)},visitor:{ClassBody(s){let{scope:i}=s,a=new Set,o=s.get("body");for(let l of o)l.isPrivate()&&a.add(l.get("key.id").node.name);for(let l of o){if(!l.isStaticBlock())continue;let u=QTe(i,a);a.add(u);let c=e.privateName(e.identifier(u)),f,p=l.node.body;p.length===1&&e.isExpressionStatement(p[0])?f=e.inheritsComments(p[0].expression,p[0]):f=t.expression.ast`(() => { ${p} })()`,l.replaceWith(e.classPrivateProperty(c,f,[],!0))}}}}))});var zN=E(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.default=void 0;var ZTe=mt(),eSe=(0,ZTe.declare)(e=>(e.assertVersion(7),{name:"syntax-numeric-separator",manipulateOptions(t,r){r.plugins.push("numericSeparator")}}));Np.default=eSe});var ZN=E(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.default=void 0;var tSe=mt();function QN({node:e}){var t;let{extra:r}=e;r!=null&&(t=r.raw)!=null&&t.includes("_")&&(r.raw=r.raw.replace(/_/g,""))}var yOe=kp.default=(0,tSe.declare)(e=>(e.assertVersion(7),{name:"transform-numeric-separator",inherits:e.version[0]==="8"?void 0:zN().default,visitor:{NumericLiteral:QN,BigIntLiteral:QN}}))});var e3=E(Bp=>{"use strict";Object.defineProperty(Bp,"_
fileName: ${e},
lineNumber: ${n},
columnNumber: ${s},
}`}function g3(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 E3=E(Hp=>{"use strict";Object.defineProperty(Hp,"__esModule",{value:!0});Hp.default=void 0;var USe=b3(),jOe=Hp.default=(0,USe.default)({name:"transform-react-jsx",development:!1})});var KSe={};k3(KSe,{babelParse:()=>WSe,babelTransform:()=>$Se,codeFrameColumns:()=>P3.codeFrameColumns,declare:()=>A3.declare,traverse:()=>VSe,types:()=>C3.types});module.exports=B3(KSe);var v3=Vs(require("path")),Yp=Vs(Et()),T3=Vs(Xr()),P3=Vs(Hi()),A3=Vs(mt()),C3=Vs(Et()),VSe=T3.default;function S3(e,t,r,n){let s=[[BN(),{deprecatedAssertSyntax:!0}]];return e&&s.push([$N(),{version:"2023-05"}],[KN()],[HN()],[JN()],[ZN()],[t3()],[n3()],[o3()],[u3()],[c3()],[f3()],[p3()],[d3()],[m3()],[({template:i})=>({name:"replace-ts-export-assignment",visitor:{TSExportAssignment(a){a.replaceWith(i("module.exports = ASSIGNMENT;")({ASSIGNMENT:a.node.expression}))}}})]),s.push([E3(),{throwIfNamespace:!1,runtime:"automatic",importSource:v3.default.dirname(require.resolve("playwright"))}]),t||(s.push([e1()]),s.push([()=>({name:"css-to-identity-obj-proxy",visitor:{ImportDeclaration(i){i.node.source.value.match(/\.(css|less|scss)$/)&&i.remove()}}})])),{browserslistConfigFile:!1,babelrc:!1,configFile:!1,assumptions:{setPublicClassFields:!0},presets:e?[[r1(),{onlyRemoveTypeImports:!1}]]:[],plugins:[...r.map(([i,a])=>[require(i),a]),...s,...n.map(([i,a])=>[require(i),a])],compact:!1,sourceMaps:"both"}}var F1=!1;function x3(e){return e.endsWith(".ts")||e.endsWith(".tsx")||e.endsWith(".mts")||e.endsWith(".cts")}function $Se(e,t,r,n,s){if(F1)return null;F1=!0;try{let i=S3(x3(t),r,n,s);return Yp.transform(e,{filename:t,...i})}finally{F1=!1}}function WSe(e,t,r){let n=S3(x3(t),r,[],[]);return Yp.parse(e,{filename:t,...n})}0&&(module.exports={babelParse,babelTransform,codeFrameColumns,declare,traverse,types});