eslint-plugin-qwik 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -422,7 +422,7 @@ m2: `).concat(this.mapper2.__debugToString().split(`
|
|
|
422
422
|
`:return e.formatting.formatOnEnter(jt,ze,dt)}return[]}function dr(At,jt,Wt,en,ze,dt){dt===void 0&&(dt=e.emptyOptions),ye();var Yt=ke(At),Nn=e.createTextSpanFromBounds(jt,Wt),si=e.formatting.getFormatContext(ze,z);return e.flatMap(e.deduplicate(en,e.equateValues,e.compareValues),function(bi){return je.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:bi,sourceFile:Yt,span:Nn,program:ge,host:z,cancellationToken:je,formatContext:si,preferences:dt})})}function Te(At,jt,Wt,en){en===void 0&&(en=e.emptyOptions),ye(),e.Debug.assert(At.type==="file");var ze=ke(At.fileName),dt=e.formatting.getFormatContext(Wt,z);return e.codefix.getAllFixes({fixId:jt,sourceFile:ze,program:ge,host:z,cancellationToken:je,formatContext:dt,preferences:en})}function Pe(At,jt,Wt){Wt===void 0&&(Wt=e.emptyOptions),ye(),e.Debug.assert(At.type==="file");var en=ke(At.fileName),ze=e.formatting.getFormatContext(jt,z);return e.OrganizeImports.organizeImports(en,ze,z,ge,Wt,At.skipDestructiveCodeActions)}function cr(At,jt,Wt,en){return en===void 0&&(en=e.emptyOptions),e.getEditsForFileRename(ce(),At,jt,z,e.formatting.getFormatContext(Wt,z),en,he)}function be(At,jt){var Wt=typeof At=="string"?jt:At;return e.isArray(Wt)?Promise.all(Wt.map(function(en){return Re(en)})):Re(Wt)}function Re(At){var jt=function(Wt){return e.toPath(Wt,Me,Ne)};return e.Debug.assertEqual(At.type,"install package"),z.installPackage?z.installPackage({fileName:jt(At.file),packageName:At.packageName}):Promise.reject("Host does not implement `installPackage`")}function nr(At,jt,Wt){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(z),fe.getCurrentSourceFile(At),jt,Wt)}function xe(At,jt,Wt){if(Wt===60)return!1;var en=fe.getCurrentSourceFile(At);if(e.isInString(en,jt))return!1;if(e.isInsideJsxElementOrAttribute(en,jt))return Wt===123;if(e.isInTemplateString(en,jt))return!1;switch(Wt){case 39:case 34:case 96:return!e.isInComment(en,jt)}return!0}function tr(At,jt){var Wt=fe.getCurrentSourceFile(At),en=e.findPrecedingToken(jt,Wt);if(!!en){var ze=en.kind===31&&e.isJsxOpeningElement(en.parent)?en.parent.parent:e.isJsxText(en)&&e.isJsxElement(en.parent)?en.parent:void 0;if(ze&&Et(ze))return{newText:"</".concat(ze.openingElement.tagName.getText(Wt),">")};var dt=en.kind===31&&e.isJsxOpeningFragment(en.parent)?en.parent.parent:e.isJsxText(en)&&e.isJsxFragment(en.parent)?en.parent:void 0;if(dt&&Tt(dt))return{newText:"</>"}}}function zr(At,jt){return{lineStarts:At.getLineStarts(),firstLine:At.getLineAndCharacterOfPosition(jt.pos).line,lastLine:At.getLineAndCharacterOfPosition(jt.end).line}}function br(At,jt,Wt){for(var en=fe.getCurrentSourceFile(At),ze=[],dt=zr(en,jt),Yt=dt.lineStarts,Nn=dt.firstLine,si=dt.lastLine,bi=Wt||!1,Vi=Number.MAX_VALUE,Bn=new e.Map,oa=new RegExp(/\S/),wi=e.isInsideJsxElement(en,Yt[Nn]),ii=wi?"{/*":"//",zt=Nn;zt<=si;zt++){var Xa=en.text.substring(Yt[zt],en.getLineEndOfPosition(Yt[zt])),ja=oa.exec(Xa);ja&&(Vi=Math.min(Vi,ja.index),Bn.set(zt.toString(),ja.index),Xa.substr(ja.index,ii.length)!==ii&&(bi=Wt===void 0||Wt))}for(var zt=Nn;zt<=si;zt++)if(!(Nn!==si&&Yt[zt]===jt.end)){var Oa=Bn.get(zt.toString());Oa!==void 0&&(wi?ze.push.apply(ze,_t(At,{pos:Yt[zt]+Vi,end:en.getLineEndOfPosition(Yt[zt])},bi,wi)):bi?ze.push({newText:ii,span:{length:0,start:Yt[zt]+Vi}}):en.text.substr(Yt[zt]+Oa,ii.length)===ii&&ze.push({newText:"",span:{length:ii.length,start:Yt[zt]+Oa}}))}return ze}function _t(At,jt,Wt,en){for(var ze,dt=fe.getCurrentSourceFile(At),Yt=[],Nn=dt.text,si=!1,bi=Wt||!1,Vi=[],Bn=jt.pos,oa=en!==void 0?en:e.isInsideJsxElement(dt,Bn),wi=oa?"{/*":"/*",ii=oa?"*/}":"*/",zt=oa?"\\{\\/\\*":"\\/\\*",Xa=oa?"\\*\\/\\}":"\\*\\/";Bn<=jt.end;){var ja=Nn.substr(Bn,wi.length)===wi?wi.length:0,Oa=e.isInComment(dt,Bn+ja);if(Oa)oa&&(Oa.pos--,Oa.end++),Vi.push(Oa.pos),Oa.kind===3&&Vi.push(Oa.end),si=!0,Bn=Oa.end+1;else{var Ia=Nn.substring(Bn,jt.end).search("(".concat(zt,")|(").concat(Xa,")"));bi=Wt!==void 0?Wt:bi||!e.isTextWhiteSpaceLike(Nn,Bn,Ia===-1?jt.end:Bn+Ia),Bn=Ia===-1?jt.end+1:Bn+Ia+ii.length}}if(bi||!si){((ze=e.isInComment(dt,jt.pos))===null||ze===void 0?void 0:ze.kind)!==2&&e.insertSorted(Vi,jt.pos,e.compareValues),e.insertSorted(Vi,jt.end,e.compareValues);var La=Vi[0];Nn.substr(La,wi.length)!==wi&&Yt.push({newText:wi,span:{length:0,start:La}});for(var za=1;za<Vi.length-1;za++)Nn.substr(Vi[za]-ii.length,ii.length)!==ii&&Yt.push({newText:ii,span:{length:0,start:Vi[za]}}),Nn.substr(Vi[za],wi.length)!==wi&&Yt.push({newText:wi,span:{length:0,start:Vi[za]}});Yt.length%2!==0&&Yt.push({newText:ii,span:{length:0,start:Vi[Vi.length-1]}})}else for(var xi=0,qi=Vi;xi<qi.length;xi++){var Ma=qi[xi],Za=Ma-ii.length>0?Ma-ii.length:0,ja=Nn.substr(Za,ii.length)===ii?ii.length:0;Yt.push({newText:"",span:{length:wi.length,start:Ma-ja}})}return Yt}function St(At,jt){var Wt=fe.getCurrentSourceFile(At),en=zr(Wt,jt),ze=en.firstLine,dt=en.lastLine;return ze===dt&&jt.pos!==jt.end?_t(At,jt,!0):br(At,jt,!0)}function Jt(At,jt){var Wt=fe.getCurrentSourceFile(At),en=[],ze=jt.pos,dt=jt.end;ze===dt&&(dt+=e.isInsideJsxElement(Wt,ze)?2:1);for(var Yt=ze;Yt<=dt;Yt++){var Nn=e.isInComment(Wt,Yt);if(Nn){switch(Nn.kind){case 2:en.push.apply(en,br(At,{end:Nn.end,pos:Nn.pos+1},!1));break;case 3:en.push.apply(en,_t(At,{end:Nn.end,pos:Nn.pos+1},!1))}Yt=Nn.end+1}}return en}function Et(At){var jt=At.openingElement,Wt=At.closingElement,en=At.parent;return!e.tagNamesAreEquivalent(jt.tagName,Wt.tagName)||e.isJsxElement(en)&&e.tagNamesAreEquivalent(jt.tagName,en.openingElement.tagName)&&Et(en)}function Tt(At){var jt=At.closingFragment,Wt=At.parent;return!!(jt.flags&131072)||e.isJsxFragment(Wt)&&Tt(Wt)}function Ct(At,jt,Wt){var en=fe.getCurrentSourceFile(At),ze=e.formatting.getRangeOfEnclosingComment(en,jt);return ze&&(!Wt||ze.kind===3)?e.createTextSpanFromRange(ze):void 0}function wt(At,jt){ye();var Wt=ke(At);je.throwIfCancellationRequested();var en=Wt.text,ze=[];if(jt.length>0&&!Xa(Wt.fileName))for(var dt=ii(),Yt=void 0;Yt=dt.exec(en);){je.throwIfCancellationRequested();var Nn=3;e.Debug.assert(Yt.length===jt.length+Nn);var si=Yt[1],bi=Yt.index+si.length;if(!!e.isInComment(Wt,bi)){for(var Vi=void 0,Bn=0;Bn<jt.length;Bn++)Yt[Bn+Nn]&&(Vi=jt[Bn]);if(Vi===void 0)return e.Debug.fail();if(!zt(en.charCodeAt(bi+Vi.text.length))){var oa=Yt[2];ze.push({descriptor:Vi,message:oa,position:bi})}}}return ze;function wi(ja){return ja.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ii(){var ja=/(?:\/\/+\s*)/.source,Oa=/(?:\/\*+\s*)/.source,Ia=/(?:^(?:\s|\*)*)/.source,La="("+Ia+"|"+ja+"|"+Oa+")",za="(?:"+e.map(jt,function(Wo){return"("+wi(Wo.text)+")"}).join("|")+")",xi=/(?:$|\*\/)/.source,qi=/(?:.*?)/.source,Ma="("+za+qi+")",Za=La+Ma+xi;return new RegExp(Za,"gim")}function zt(ja){return ja>=97&&ja<=122||ja>=65&&ja<=90||ja>=48&&ja<=57}function Xa(ja){return e.stringContains(ja,"/node_modules/")}}function dn(At,jt,Wt){return ye(),e.Rename.getRenameInfo(ge,ke(At),jt,Wt||{})}function gn(At,jt,Wt,en,ze,dt){var Yt=typeof jt=="number"?[jt,void 0]:[jt.pos,jt.end],Nn=Yt[0],si=Yt[1];return{file:At,startPosition:Nn,endPosition:si,program:ce(),host:z,formatContext:e.formatting.getFormatContext(en,z),cancellationToken:je,preferences:Wt,triggerReason:ze,kind:dt}}function Z(At,jt,Wt){return{file:At,program:ce(),host:z,span:jt,preferences:Wt,cancellationToken:je}}function Le(At,jt){return e.SmartSelectionRange.getSmartSelectionRange(jt,fe.getCurrentSourceFile(At))}function hr(At,jt,Wt,en,ze){Wt===void 0&&(Wt=e.emptyOptions),ye();var dt=ke(At);return e.refactor.getApplicableRefactors(gn(dt,jt,Wt,e.emptyOptions,en,ze))}function Er(At,jt,Wt,en,ze,dt){dt===void 0&&(dt=e.emptyOptions),ye();var Yt=ke(At);return e.refactor.getEditsForRefactor(gn(Yt,Wt,dt,jt),en,ze)}function qr(At,jt){return jt===0?{line:0,character:0}:he.toLineColumnOffset(At,jt)}function Kr(At,jt){ye();var Wt=e.CallHierarchy.resolveCallHierarchyDeclaration(ge,e.getTouchingPropertyName(ke(At),jt));return Wt&&e.mapOneOrMany(Wt,function(en){return e.CallHierarchy.createCallHierarchyItem(ge,en)})}function Rr(At,jt){ye();var Wt=ke(At),en=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(ge,jt===0?Wt:e.getTouchingPropertyName(Wt,jt)));return en?e.CallHierarchy.getIncomingCalls(ge,en,je):[]}function Gt(At,jt){ye();var Wt=ke(At),en=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(ge,jt===0?Wt:e.getTouchingPropertyName(Wt,jt)));return en?e.CallHierarchy.getOutgoingCalls(ge,en):[]}function Xt(At,jt,Wt){Wt===void 0&&(Wt=e.emptyOptions),ye();var en=ke(At);return e.InlayHints.provideInlayHints(Z(en,jt,Wt))}var vn={dispose:sr,cleanupSemanticCache:Ze,getSyntacticDiagnostics:Cr,getSemanticDiagnostics:$r,getSuggestionDiagnostics:Ur,getCompilerOptionsDiagnostics:Oe,getSyntacticClassifications:Ot,getSemanticClassifications:jr,getEncodedSyntacticClassifications:Pt,getEncodedSemanticClassifications:ut,getCompletionsAtPosition:m,getCompletionEntryDetails:ot,getCompletionEntrySymbol:st,getSignatureHelpItems:$e,getQuickInfoAtPosition:Wr,getDefinitionAtPosition:_r,getDefinitionAndBoundSpan:xr,getImplementationAtPosition:et,getTypeDefinitionAtPosition:Hr,getReferencesAtPosition:Ee,findReferences:mr,getFileReferences:Tr,getOccurrencesAtPosition:vt,getDocumentHighlights:Ae,getNameOrDottedNameSpan:Zr,getBreakpointStatementAtPosition:pt,getNavigateToItems:Xr,getRenameInfo:dn,getSmartSelectionRange:Le,findRenameLocations:pr,getNavigationBarItems:Ue,getNavigationTree:ir,getOutliningSpans:nn,getTodoComments:wt,getBraceMatchingAtPosition:Mr,getIndentationAtPosition:We,getFormattingEditsForRange:ve,getFormattingEditsForDocument:Ke,getFormattingEditsAfterKeystroke:Ye,getDocCommentTemplateAtPosition:nr,isValidBraceCompletionAtPosition:xe,getJsxClosingTagAtPosition:tr,getSpanOfEnclosingComment:Ct,getCodeFixesAtPosition:dr,getCombinedCodeFix:Te,applyCodeActionCommand:be,organizeImports:Pe,getEditsForFileRename:cr,getEmitOutput:vr,getNonBoundSourceFile:Or,getProgram:ce,getCurrentProgram:function(){return ge},getAutoImportProvider:Fe,updateIsDefinitionOfReferencedSymbols:Xe,getApplicableRefactors:hr,getEditsForRefactor:Er,toLineColumnOffset:qr,getSourceMapper:function(){return he},clearSourceMapperCache:function(){return he.clearCache()},prepareCallHierarchy:Kr,provideCallHierarchyIncomingCalls:Rr,provideCallHierarchyOutgoingCalls:Gt,toggleLineComment:br,toggleMultilineComment:_t,commentSelection:St,uncommentSelection:Jt,provideInlayHints:Xt};switch(W){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:X.forEach(function(At){return vn[At]=function(){throw new Error("LanguageService Operation: ".concat(At," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:R.forEach(function(At){return vn[At]=function(){throw new Error("LanguageService Operation: ".concat(At," not allowed in LanguageServiceMode.Syntactic"))}});break;default:e.Debug.assertNever(W)}return vn}e.createLanguageService=U;function J(z){return z.nameTable||re(z),z.nameTable}e.getNameTable=J;function re(z){var D=z.nameTable=new e.Map;z.forEachChild(function V(H){if(e.isIdentifier(H)&&!e.isTagName(H)&&H.escapedText||e.isStringOrNumericLiteralLike(H)&&te(H)){var ie=e.getEscapedTextOfIdentifierOrLiteral(H);D.set(ie,D.get(ie)===void 0?H.pos:-1)}else if(e.isPrivateIdentifier(H)){var ie=H.escapedText;D.set(ie,D.get(ie)===void 0?H.pos:-1)}if(e.forEachChild(H,V),e.hasJSDocNodes(H))for(var W=0,fe=H.jsDoc;W<fe.length;W++){var ge=fe[W];e.forEachChild(ge,V)}})}function te(z){return e.isDeclarationName(z)||z.parent.kind===277||P(z)||e.isLiteralComputedPropertyDeclarationName(z)}function se(z){var D=ue(z);return D&&(e.isObjectLiteralExpression(D.parent)||e.isJsxAttributes(D.parent))?D:void 0}e.getContainingObjectLiteralElement=se;function ue(z){switch(z.kind){case 10:case 14:case 8:if(z.parent.kind===162)return e.isObjectLiteralElement(z.parent.parent)?z.parent.parent:void 0;case 79:return e.isObjectLiteralElement(z.parent)&&(z.parent.parent.kind===205||z.parent.parent.kind===286)&&z.parent.name===z?z.parent:void 0}}function q(z,D){var V=se(z);if(V){var H=D.getContextualType(V.parent),ie=H&&Q(V,D,H,!1);if(ie&&ie.length===1)return e.first(ie)}return D.getSymbolAtLocation(z)}function Q(z,D,V,H){var ie=e.getNameFromPropertyName(z.name);if(!ie)return e.emptyArray;if(!V.isUnion()){var W=V.getProperty(ie);return W?[W]:e.emptyArray}var fe=e.mapDefined(V.types,function(ge){return(e.isObjectLiteralExpression(z.parent)||e.isJsxAttributes(z.parent))&&D.isTypeInvalidDueToUnionDiscriminant(ge,z.parent)?void 0:ge.getProperty(ie)});if(H&&(fe.length===0||fe.length===V.types.length)){var W=V.getProperty(ie);if(W)return[W]}return fe.length===0?e.mapDefined(V.types,function(ge){return ge.getProperty(ie)}):fe}e.getPropertySymbolsFromContextualType=Q;function P(z){return z&&z.parent&&z.parent.kind===207&&z.parent.argumentExpression===z}function L(z){if(typeof __dirname<"u")return e.combinePaths(__dirname,e.getDefaultLibFileName(z));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}e.getDefaultLibFilePath=L,e.setObjectAllocator(j())})(Ar||(Ar={}));var Ar;(function(e){var r;(function(n){function i(a,s){if(a.isDeclarationFile)return;var u=e.getTokenAtPosition(a,s),d=a.getLineAndCharacterOfPosition(s).line;if(a.getLineAndCharacterOfPosition(u.getStart(a)).line>d){var f=e.findPrecedingToken(u.pos,a);if(!f||a.getLineAndCharacterOfPosition(f.getEnd()).line!==d)return;u=f}if(u.flags&16777216)return;return h(u);function p(v,I){var F=e.canHaveDecorators(v)?e.findLast(v.modifiers,e.isDecorator):void 0,j=F?e.skipTrivia(a.text,F.end):v.getStart(a);return e.createTextSpanFromBounds(j,(I||v).getEnd())}function _(v,I){return p(v,e.findNextToken(I,I.parent,a))}function b(v,I){return v&&d===a.getLineAndCharacterOfPosition(v.getStart(a)).line?h(v):h(I)}function E(v,I,F){if(v){var j=v.indexOf(I);if(j>=0){for(var x=j,w=j+1;x>0&&F(v[x-1]);)x--;for(;w<v.length&&F(v[w]);)w++;return e.createTextSpanFromBounds(e.skipTrivia(a.text,v[x].pos),v[w-1].end)}}return p(I)}function y(v){return h(e.findPrecedingToken(v.pos,a))}function T(v){return h(e.findNextToken(v,v.parent,a))}function h(v){if(v){var I=v.parent;switch(v.kind){case 237:return ae(v.declarationList.declarations[0]);case 254:case 167:case 166:return ae(v);case 164:return c(v);case 256:case 169:case 168:case 172:case 173:case 171:case 213:case 214:return G(v);case 235:if(e.isFunctionBlock(v))return k(v);case 262:return M(v);case 292:return M(v.block);case 238:return p(v.expression);case 247:return p(v.getChildAt(0),v.expression);case 241:return _(v,v.expression);case 240:return h(v.statement);case 253:return p(v.getChildAt(0));case 239:return _(v,v.expression);case 250:return h(v.statement);case 246:case 245:return p(v.getChildAt(0),v.label);case 242:return R(v);case 243:return _(v,v.expression);case 244:return X(v);case 249:return _(v,v.expression);case 289:case 290:return h(v.statements[0]);case 252:return M(v.tryBlock);case 251:return p(v,v.expression);case 271:return p(v,v.expression);case 265:return p(v,v.moduleReference);case 266:return p(v,v.moduleSpecifier);case 272:return p(v,v.moduleSpecifier);case 261:if(e.getModuleInstanceState(v)!==1)return;case 257:case 260:case 299:case 203:return p(v);case 248:return h(v.statement);case 165:return E(I.modifiers,v,e.isDecorator);case 201:case 202:return U(v);case 258:case 259:return;case 26:case 1:return b(e.findPrecedingToken(v.pos,a));case 27:return y(v);case 18:return re(v);case 19:return te(v);case 23:return se(v);case 20:return ue(v);case 21:return q(v);case 58:return Q(v);case 31:case 29:return P(v);case 115:return L(v);case 91:case 83:case 96:return T(v);case 160:return z(v);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(v))return J(v);if((v.kind===79||v.kind===225||v.kind===296||v.kind===297)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(I))return p(v);if(v.kind===221){var F=v,j=F.left,x=F.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(j))return J(j);if(x.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent))return p(v);if(x.kind===27)return h(j)}if(e.isExpressionNode(v))switch(I.kind){case 240:return y(v);case 165:return h(v.parent);case 242:case 244:return p(v);case 221:if(v.parent.operatorToken.kind===27)return p(v);break;case 214:if(v.parent.body===v)return p(v);break}switch(v.parent.kind){case 296:if(v.parent.name===v&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent.parent))return h(v.parent.initializer);break;case 211:if(v.parent.type===v)return T(v.parent.type);break;case 254:case 164:{var w=v.parent,A=w.initializer,ee=w.type;if(A===v||ee===v||e.isAssignmentOperator(v.kind))return y(v);break}case 221:{var j=v.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(j)&&v!==j)return y(v);break}default:if(e.isFunctionLike(v.parent)&&v.parent.type===v)return y(v)}return h(v.parent)}}function ne(D){return e.isVariableDeclarationList(D.parent)&&D.parent.declarations[0]===D?p(e.findPrecedingToken(D.pos,a,D.parent),D):p(D)}function ae(D){if(D.parent.parent.kind===243)return h(D.parent.parent);var V=D.parent;if(e.isBindingPattern(D.name))return U(D.name);if(e.hasOnlyExpressionInitializer(D)&&D.initializer||e.hasSyntacticModifier(D,1)||V.parent.kind===244)return ne(D);if(e.isVariableDeclarationList(D.parent)&&D.parent.declarations[0]!==D)return h(e.findPrecedingToken(D.pos,a,D.parent))}function Y(D){return!!D.initializer||D.dotDotDotToken!==void 0||e.hasSyntacticModifier(D,12)}function c(D){if(e.isBindingPattern(D.name))return U(D.name);if(Y(D))return p(D);var V=D.parent,H=V.parameters.indexOf(D);return e.Debug.assert(H!==-1),H!==0?c(V.parameters[H-1]):h(V.body)}function N(D){return e.hasSyntacticModifier(D,1)||D.parent.kind===257&&D.kind!==171}function G(D){if(!!D.body)return N(D)?p(D):h(D.body)}function k(D){var V=D.statements.length?D.statements[0]:D.getLastToken();return N(D.parent)?b(D.parent,V):h(V)}function M(D){switch(D.parent.kind){case 261:if(e.getModuleInstanceState(D.parent)!==1)return;case 241:case 239:case 243:return b(D.parent,D.statements[0]);case 242:case 244:return b(e.findPrecedingToken(D.pos,a,D.parent),D.statements[0])}return h(D.statements[0])}function X(D){if(D.initializer.kind===255){var V=D.initializer;if(V.declarations.length>0)return h(V.declarations[0])}else return h(D.initializer)}function R(D){if(D.initializer)return X(D);if(D.condition)return p(D.condition);if(D.incrementor)return p(D.incrementor)}function U(D){var V=e.forEach(D.elements,function(H){return H.kind!==227?H:void 0});return V?h(V):D.parent.kind===203?p(D.parent):ne(D.parent)}function J(D){e.Debug.assert(D.kind!==202&&D.kind!==201);var V=D.kind===204?D.elements:D.properties,H=e.forEach(V,function(ie){return ie.kind!==227?ie:void 0});return H?h(H):p(D.parent.kind===221?D.parent:D)}function re(D){switch(D.parent.kind){case 260:var V=D.parent;return b(e.findPrecedingToken(D.pos,a,D.parent),V.members.length?V.members[0]:V.getLastToken(a));case 257:var H=D.parent;return b(e.findPrecedingToken(D.pos,a,D.parent),H.members.length?H.members[0]:H.getLastToken(a));case 263:return b(D.parent.parent,D.parent.clauses[0])}return h(D.parent)}function te(D){switch(D.parent.kind){case 262:if(e.getModuleInstanceState(D.parent.parent)!==1)return;case 260:case 257:return p(D);case 235:if(e.isFunctionBlock(D.parent))return p(D);case 292:return h(e.lastOrUndefined(D.parent.statements));case 263:var V=D.parent,H=e.lastOrUndefined(V.clauses);return H?h(e.lastOrUndefined(H.statements)):void 0;case 201:var ie=D.parent;return h(e.lastOrUndefined(ie.elements)||ie);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(D.parent)){var W=D.parent;return p(e.lastOrUndefined(W.properties)||W)}return h(D.parent)}}function se(D){switch(D.parent.kind){case 202:var V=D.parent;return p(e.lastOrUndefined(V.elements)||V);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(D.parent)){var H=D.parent;return p(e.lastOrUndefined(H.elements)||H)}return h(D.parent)}}function ue(D){return D.parent.kind===240||D.parent.kind===208||D.parent.kind===209?y(D):D.parent.kind===212?T(D):h(D.parent)}function q(D){switch(D.parent.kind){case 213:case 256:case 214:case 169:case 168:case 172:case 173:case 171:case 241:case 240:case 242:case 244:case 208:case 209:case 212:return y(D);default:return h(D.parent)}}function Q(D){return e.isFunctionLike(D.parent)||D.parent.kind===296||D.parent.kind===164?y(D):h(D.parent)}function P(D){return D.parent.kind===211?T(D):h(D.parent)}function L(D){return D.parent.kind===240?_(D,D.parent.expression):h(D.parent)}function z(D){return D.parent.kind===244?T(D):h(D.parent)}}}n.spanInSourceFileAtLocation=i})(r=e.BreakpointResolver||(e.BreakpointResolver={}))})(Ar||(Ar={}));var Ar;(function(e){function r(n,i,a){var s=[];a=e.fixupCompilerOptions(a,s);var u=e.isArray(n)?n:[n],d=e.transformNodes(void 0,void 0,e.factory,a,u,i,!0);return d.diagnostics=e.concatenate(d.diagnostics,s),d}e.transform=r})(Ar||(Ar={}));var qJ=function(){return this}(),Ar;(function(e){function r(v,I){v&&v.log("*INTERNAL ERROR* - Exception in typescript services: "+I.message)}var n=function(){function v(I){this.scriptSnapshotShim=I}return v.prototype.getText=function(I,F){return this.scriptSnapshotShim.getText(I,F)},v.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},v.prototype.getChangeRange=function(I){var F=I,j=this.scriptSnapshotShim.getChangeRange(F.scriptSnapshotShim);if(j===null)return null;var x=JSON.parse(j);return e.createTextChangeRange(e.createTextSpan(x.span.start,x.span.length),x.newLength)},v.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},v}(),i=function(){function v(I){var F=this;this.shimHost=I,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(j,x){var w=JSON.parse(F.shimHost.getModuleResolutionsForFile(x));return e.map(j,function(A){var ee=e.getProperty(w,A);return ee?{resolvedFileName:ee,extension:e.extensionFromPath(ee),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(j){return F.shimHost.directoryExists(j)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(j,x){var w=JSON.parse(F.shimHost.getTypeReferenceDirectiveResolutionsForFile(x));return e.map(j,function(A){return e.getProperty(w,e.isString(A)?A:A.fileName.toLowerCase())})})}return v.prototype.log=function(I){this.loggingEnabled&&this.shimHost.log(I)},v.prototype.trace=function(I){this.tracingEnabled&&this.shimHost.trace(I)},v.prototype.error=function(I){this.shimHost.error(I)},v.prototype.getProjectVersion=function(){if(!!this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},v.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},v.prototype.useCaseSensitiveFileNames=function(){return this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1},v.prototype.getCompilationSettings=function(){var I=this.shimHost.getCompilationSettings();if(I===null||I==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var F=JSON.parse(I);return F.allowNonTsExtensions=!0,F},v.prototype.getScriptFileNames=function(){var I=this.shimHost.getScriptFileNames();return JSON.parse(I)},v.prototype.getScriptSnapshot=function(I){var F=this.shimHost.getScriptSnapshot(I);return F&&new n(F)},v.prototype.getScriptKind=function(I){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(I):0},v.prototype.getScriptVersion=function(I){return this.shimHost.getScriptVersion(I)},v.prototype.getLocalizedDiagnosticMessages=function(){var I=this.shimHost.getLocalizedDiagnosticMessages();if(I===null||I==="")return null;try{return JSON.parse(I)}catch(F){return this.log(F.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},v.prototype.getCancellationToken=function(){var I=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(I)},v.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},v.prototype.getDirectories=function(I){return JSON.parse(this.shimHost.getDirectories(I))},v.prototype.getDefaultLibFileName=function(I){return this.shimHost.getDefaultLibFileName(JSON.stringify(I))},v.prototype.readDirectory=function(I,F,j,x,w){var A=e.getFileMatcherPatterns(I,j,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(I,JSON.stringify(F),JSON.stringify(A.basePaths),A.excludePattern,A.includeFilePattern,A.includeDirectoryPattern,w))},v.prototype.readFile=function(I,F){return this.shimHost.readFile(I,F)},v.prototype.fileExists=function(I){return this.shimHost.fileExists(I)},v}();e.LanguageServiceShimHostAdapter=i;var a=function(){function v(I){var F=this;this.shimHost=I,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(j){return F.shimHost.directoryExists(j)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(j){return F.shimHost.realpath(j)}:this.realpath=void 0}return v.prototype.readDirectory=function(I,F,j,x,w){var A=e.getFileMatcherPatterns(I,j,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(I,JSON.stringify(F),JSON.stringify(A.basePaths),A.excludePattern,A.includeFilePattern,A.includeDirectoryPattern,w))},v.prototype.fileExists=function(I){return this.shimHost.fileExists(I)},v.prototype.readFile=function(I){return this.shimHost.readFile(I)},v.prototype.getDirectories=function(I){return JSON.parse(this.shimHost.getDirectories(I))},v}();e.CoreServicesShimHostAdapter=a;function s(v,I,F,j){var x;j&&(v.log(I),x=e.timestamp());var w=F();if(j){var A=e.timestamp();if(v.log("".concat(I," completed in ").concat(A-x," msec")),e.isString(w)){var ee=w;ee.length>128&&(ee=ee.substring(0,128)+"..."),v.log(" result.length=".concat(ee.length,", result='").concat(JSON.stringify(ee),"'"))}}return w}function u(v,I,F,j){return d(v,I,!0,F,j)}function d(v,I,F,j,x){try{var w=s(v,I,j,x);return F?JSON.stringify({result:w}):w}catch(A){return A instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(r(v,A),A.description=I,JSON.stringify({error:A}))}}var f=function(){function v(I){this.factory=I,I.registerShim(this)}return v.prototype.dispose=function(I){this.factory.unregisterShim(this)},v}();function p(v,I){return v.map(function(F){return _(F,I)})}e.realizeDiagnostics=p;function _(v,I){return{message:e.flattenDiagnosticMessageText(v.messageText,I),start:v.start,length:v.length,category:e.diagnosticCategoryName(v),code:v.code,reportsUnnecessary:v.reportsUnnecessary,reportsDeprecated:v.reportsDeprecated}}var b=function(v){gb(I,v);function I(F,j,x){var w=v.call(this,F)||this;return w.host=j,w.languageService=x,w.logPerformance=!1,w.logger=w.host,w}return I.prototype.forwardJSONCall=function(F,j){return u(this.logger,F,j,this.logPerformance)},I.prototype.dispose=function(F){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,qJ&&qJ.CollectGarbage&&(qJ.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,v.prototype.dispose.call(this,F)},I.prototype.refresh=function(F){this.forwardJSONCall("refresh(".concat(F,")"),function(){return null})},I.prototype.cleanupSemanticCache=function(){var F=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return F.languageService.cleanupSemanticCache(),null})},I.prototype.realizeDiagnostics=function(F){var j=e.getNewLineOrDefaultFromHost(this.host);return p(F,j)},I.prototype.getSyntacticClassifications=function(F,j,x){var w=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(F,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.getSyntacticClassifications(F,e.createTextSpan(j,x))})},I.prototype.getSemanticClassifications=function(F,j,x){var w=this;return this.forwardJSONCall("getSemanticClassifications('".concat(F,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.getSemanticClassifications(F,e.createTextSpan(j,x))})},I.prototype.getEncodedSyntacticClassifications=function(F,j,x){var w=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(F,"', ").concat(j,", ").concat(x,")"),function(){return E(w.languageService.getEncodedSyntacticClassifications(F,e.createTextSpan(j,x)))})},I.prototype.getEncodedSemanticClassifications=function(F,j,x){var w=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(F,"', ").concat(j,", ").concat(x,")"),function(){return E(w.languageService.getEncodedSemanticClassifications(F,e.createTextSpan(j,x)))})},I.prototype.getSyntacticDiagnostics=function(F){var j=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(F,"')"),function(){var x=j.languageService.getSyntacticDiagnostics(F);return j.realizeDiagnostics(x)})},I.prototype.getSemanticDiagnostics=function(F){var j=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(F,"')"),function(){var x=j.languageService.getSemanticDiagnostics(F);return j.realizeDiagnostics(x)})},I.prototype.getSuggestionDiagnostics=function(F){var j=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(F,"')"),function(){return j.realizeDiagnostics(j.languageService.getSuggestionDiagnostics(F))})},I.prototype.getCompilerOptionsDiagnostics=function(){var F=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var j=F.languageService.getCompilerOptionsDiagnostics();return F.realizeDiagnostics(j)})},I.prototype.getQuickInfoAtPosition=function(F,j){var x=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getQuickInfoAtPosition(F,j)})},I.prototype.getNameOrDottedNameSpan=function(F,j,x){var w=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(F,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.getNameOrDottedNameSpan(F,j,x)})},I.prototype.getBreakpointStatementAtPosition=function(F,j){var x=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getBreakpointStatementAtPosition(F,j)})},I.prototype.getSignatureHelpItems=function(F,j,x){var w=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(F,"', ").concat(j,")"),function(){return w.languageService.getSignatureHelpItems(F,j,x)})},I.prototype.getDefinitionAtPosition=function(F,j){var x=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getDefinitionAtPosition(F,j)})},I.prototype.getDefinitionAndBoundSpan=function(F,j){var x=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getDefinitionAndBoundSpan(F,j)})},I.prototype.getTypeDefinitionAtPosition=function(F,j){var x=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getTypeDefinitionAtPosition(F,j)})},I.prototype.getImplementationAtPosition=function(F,j){var x=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getImplementationAtPosition(F,j)})},I.prototype.getRenameInfo=function(F,j,x){var w=this;return this.forwardJSONCall("getRenameInfo('".concat(F,"', ").concat(j,")"),function(){return w.languageService.getRenameInfo(F,j,x)})},I.prototype.getSmartSelectionRange=function(F,j){var x=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getSmartSelectionRange(F,j)})},I.prototype.findRenameLocations=function(F,j,x,w,A){var ee=this;return this.forwardJSONCall("findRenameLocations('".concat(F,"', ").concat(j,", ").concat(x,", ").concat(w,", ").concat(A,")"),function(){return ee.languageService.findRenameLocations(F,j,x,w,A)})},I.prototype.getBraceMatchingAtPosition=function(F,j){var x=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getBraceMatchingAtPosition(F,j)})},I.prototype.isValidBraceCompletionAtPosition=function(F,j,x){var w=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(F,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.isValidBraceCompletionAtPosition(F,j,x)})},I.prototype.getSpanOfEnclosingComment=function(F,j,x){var w=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(F,"', ").concat(j,")"),function(){return w.languageService.getSpanOfEnclosingComment(F,j,x)})},I.prototype.getIndentationAtPosition=function(F,j,x){var w=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(F,"', ").concat(j,")"),function(){var A=JSON.parse(x);return w.languageService.getIndentationAtPosition(F,j,A)})},I.prototype.getReferencesAtPosition=function(F,j){var x=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getReferencesAtPosition(F,j)})},I.prototype.findReferences=function(F,j){var x=this;return this.forwardJSONCall("findReferences('".concat(F,"', ").concat(j,")"),function(){return x.languageService.findReferences(F,j)})},I.prototype.getFileReferences=function(F){var j=this;return this.forwardJSONCall("getFileReferences('".concat(F,")"),function(){return j.languageService.getFileReferences(F)})},I.prototype.getOccurrencesAtPosition=function(F,j){var x=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(F,"', ").concat(j,")"),function(){return x.languageService.getOccurrencesAtPosition(F,j)})},I.prototype.getDocumentHighlights=function(F,j,x){var w=this;return this.forwardJSONCall("getDocumentHighlights('".concat(F,"', ").concat(j,")"),function(){var A=w.languageService.getDocumentHighlights(F,j,JSON.parse(x)),ee=e.toFileNameLowerCase(e.normalizeSlashes(F));return e.filter(A,function(ne){return e.toFileNameLowerCase(e.normalizeSlashes(ne.fileName))===ee})})},I.prototype.getCompletionsAtPosition=function(F,j,x,w){var A=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(F,"', ").concat(j,", ").concat(x,", ").concat(w,")"),function(){return A.languageService.getCompletionsAtPosition(F,j,x,w)})},I.prototype.getCompletionEntryDetails=function(F,j,x,w,A,ee,ne){var ae=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(F,"', ").concat(j,", '").concat(x,"')"),function(){var Y=w===void 0?void 0:JSON.parse(w);return ae.languageService.getCompletionEntryDetails(F,j,x,Y,A,ee,ne)})},I.prototype.getFormattingEditsForRange=function(F,j,x,w){var A=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(F,"', ").concat(j,", ").concat(x,")"),function(){var ee=JSON.parse(w);return A.languageService.getFormattingEditsForRange(F,j,x,ee)})},I.prototype.getFormattingEditsForDocument=function(F,j){var x=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(F,"')"),function(){var w=JSON.parse(j);return x.languageService.getFormattingEditsForDocument(F,w)})},I.prototype.getFormattingEditsAfterKeystroke=function(F,j,x,w){var A=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(F,"', ").concat(j,", '").concat(x,"')"),function(){var ee=JSON.parse(w);return A.languageService.getFormattingEditsAfterKeystroke(F,j,x,ee)})},I.prototype.getDocCommentTemplateAtPosition=function(F,j,x){var w=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(F,"', ").concat(j,")"),function(){return w.languageService.getDocCommentTemplateAtPosition(F,j,x)})},I.prototype.getNavigateToItems=function(F,j,x){var w=this;return this.forwardJSONCall("getNavigateToItems('".concat(F,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.getNavigateToItems(F,j,x)})},I.prototype.getNavigationBarItems=function(F){var j=this;return this.forwardJSONCall("getNavigationBarItems('".concat(F,"')"),function(){return j.languageService.getNavigationBarItems(F)})},I.prototype.getNavigationTree=function(F){var j=this;return this.forwardJSONCall("getNavigationTree('".concat(F,"')"),function(){return j.languageService.getNavigationTree(F)})},I.prototype.getOutliningSpans=function(F){var j=this;return this.forwardJSONCall("getOutliningSpans('".concat(F,"')"),function(){return j.languageService.getOutliningSpans(F)})},I.prototype.getTodoComments=function(F,j){var x=this;return this.forwardJSONCall("getTodoComments('".concat(F,"')"),function(){return x.languageService.getTodoComments(F,JSON.parse(j))})},I.prototype.prepareCallHierarchy=function(F,j){var x=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(F,"', ").concat(j,")"),function(){return x.languageService.prepareCallHierarchy(F,j)})},I.prototype.provideCallHierarchyIncomingCalls=function(F,j){var x=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(F,"', ").concat(j,")"),function(){return x.languageService.provideCallHierarchyIncomingCalls(F,j)})},I.prototype.provideCallHierarchyOutgoingCalls=function(F,j){var x=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(F,"', ").concat(j,")"),function(){return x.languageService.provideCallHierarchyOutgoingCalls(F,j)})},I.prototype.provideInlayHints=function(F,j,x){var w=this;return this.forwardJSONCall("provideInlayHints('".concat(F,"', '").concat(JSON.stringify(j),"', ").concat(JSON.stringify(x),")"),function(){return w.languageService.provideInlayHints(F,j,x)})},I.prototype.getEmitOutput=function(F){var j=this;return this.forwardJSONCall("getEmitOutput('".concat(F,"')"),function(){var x=j.languageService.getEmitOutput(F),w=x.diagnostics,A=VJ(x,["diagnostics"]);return Mn(Mn({},A),{diagnostics:j.realizeDiagnostics(w)})})},I.prototype.getEmitOutputObject=function(F){var j=this;return d(this.logger,"getEmitOutput('".concat(F,"')"),!1,function(){return j.languageService.getEmitOutput(F)},this.logPerformance)},I.prototype.toggleLineComment=function(F,j){var x=this;return this.forwardJSONCall("toggleLineComment('".concat(F,"', '").concat(JSON.stringify(j),"')"),function(){return x.languageService.toggleLineComment(F,j)})},I.prototype.toggleMultilineComment=function(F,j){var x=this;return this.forwardJSONCall("toggleMultilineComment('".concat(F,"', '").concat(JSON.stringify(j),"')"),function(){return x.languageService.toggleMultilineComment(F,j)})},I.prototype.commentSelection=function(F,j){var x=this;return this.forwardJSONCall("commentSelection('".concat(F,"', '").concat(JSON.stringify(j),"')"),function(){return x.languageService.commentSelection(F,j)})},I.prototype.uncommentSelection=function(F,j){var x=this;return this.forwardJSONCall("uncommentSelection('".concat(F,"', '").concat(JSON.stringify(j),"')"),function(){return x.languageService.uncommentSelection(F,j)})},I}(f);function E(v){return{spans:v.spans.join(","),endOfLineState:v.endOfLineState}}var y=function(v){gb(I,v);function I(F,j){var x=v.call(this,F)||this;return x.logger=j,x.logPerformance=!1,x.classifier=e.createClassifier(),x}return I.prototype.getEncodedLexicalClassifications=function(F,j,x){var w=this;return x===void 0&&(x=!1),u(this.logger,"getEncodedLexicalClassifications",function(){return E(w.classifier.getEncodedLexicalClassifications(F,j,x))},this.logPerformance)},I.prototype.getClassificationsForLine=function(F,j,x){x===void 0&&(x=!1);for(var w=this.classifier.getClassificationsForLine(F,j,x),A="",ee=0,ne=w.entries;ee<ne.length;ee++){var ae=ne[ee];A+=ae.length+`
|
|
423
423
|
`,A+=ae.classification+`
|
|
424
424
|
`}return A+=w.finalLexState,A},I}(f),T=function(v){gb(I,v);function I(F,j,x){var w=v.call(this,F)||this;return w.logger=j,w.host=x,w.logPerformance=!1,w}return I.prototype.forwardJSONCall=function(F,j){return u(this.logger,F,j,this.logPerformance)},I.prototype.resolveModuleName=function(F,j,x){var w=this;return this.forwardJSONCall("resolveModuleName('".concat(F,"')"),function(){var A=JSON.parse(x),ee=e.resolveModuleName(j,e.normalizeSlashes(F),A,w.host),ne=ee.resolvedModule?ee.resolvedModule.resolvedFileName:void 0;return ee.resolvedModule&&ee.resolvedModule.extension!==".ts"&&ee.resolvedModule.extension!==".tsx"&&ee.resolvedModule.extension!==".d.ts"&&(ne=void 0),{resolvedFileName:ne,failedLookupLocations:ee.failedLookupLocations,affectingLocations:ee.affectingLocations}})},I.prototype.resolveTypeReferenceDirective=function(F,j,x){var w=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(F,")"),function(){var A=JSON.parse(x),ee=e.resolveTypeReferenceDirective(j,e.normalizeSlashes(F),A,w.host);return{resolvedFileName:ee.resolvedTypeReferenceDirective?ee.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:ee.resolvedTypeReferenceDirective?ee.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:ee.failedLookupLocations}})},I.prototype.getPreProcessedFileInfo=function(F,j){var x=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(F,"')"),function(){var w=e.preProcessFile(e.getSnapshotText(j),!0,!0);return{referencedFiles:x.convertFileReferences(w.referencedFiles),importedFiles:x.convertFileReferences(w.importedFiles),ambientExternalModules:w.ambientExternalModules,isLibFile:w.isLibFile,typeReferenceDirectives:x.convertFileReferences(w.typeReferenceDirectives),libReferenceDirectives:x.convertFileReferences(w.libReferenceDirectives)}})},I.prototype.getAutomaticTypeDirectiveNames=function(F){var j=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(F,"')"),function(){var x=JSON.parse(F);return e.getAutomaticTypeDirectiveNames(x,j.host)})},I.prototype.convertFileReferences=function(F){if(!!F){for(var j=[],x=0,w=F;x<w.length;x++){var A=w[x];j.push({path:e.normalizeSlashes(A.fileName),position:A.pos,length:A.end-A.pos})}return j}},I.prototype.getTSConfigFileInfo=function(F,j){var x=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(F,"')"),function(){var w=e.parseJsonText(F,e.getSnapshotText(j)),A=e.normalizeSlashes(F),ee=e.parseJsonSourceFileConfigFileContent(w,x.host,e.getDirectoryPath(A),{},A);return{options:ee.options,typeAcquisition:ee.typeAcquisition,files:ee.fileNames,raw:ee.raw,errors:p(Qt(Qt([],w.parseDiagnostics,!0),ee.errors,!0),`\r
|
|
425
|
-
`)}})},I.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},I.prototype.discoverTypings=function(F){var j=this,x=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var w=JSON.parse(F);return j.safeList===void 0&&(j.safeList=e.JsTyping.loadSafeList(j.host,e.toPath(w.safeListPath,w.safeListPath,x))),e.JsTyping.discoverTypings(j.host,function(A){return j.logger.log(A)},w.fileNames,e.toPath(w.projectRootPath,w.projectRootPath,x),j.safeList,w.packageNameToTypingLocation,w.typeAcquisition,w.unresolvedImports,w.typesRegistry,e.emptyOptions)})},I}(f),h=function(){function v(){this._shims=[]}return v.prototype.getServicesVersion=function(){return e.servicesVersion},v.prototype.createLanguageServiceShim=function(I){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(I.useCaseSensitiveFileNames&&I.useCaseSensitiveFileNames(),I.getCurrentDirectory()));var F=new i(I),j=e.createLanguageService(F,this.documentRegistry,!1);return new b(this,I,j)}catch(x){throw r(I,x),x}},v.prototype.createClassifierShim=function(I){try{return new y(this,I)}catch(F){throw r(I,F),F}},v.prototype.createCoreServicesShim=function(I){try{var F=new a(I);return new T(this,I,F)}catch(j){throw r(I,j),j}},v.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},v.prototype.registerShim=function(I){this._shims.push(I)},v.prototype.unregisterShim=function(I){for(var F=0;F<this._shims.length;F++)if(this._shims[F]===I){delete this._shims[F];return}throw new Error("Invalid operation")},v}();e.TypeScriptServicesFactory=h})(Ar||(Ar={}));(function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis>"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}})();(typeof process>"u"||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=Ar.TypeScriptServicesFactory,globalThis.toolsVersion=Ar.versionMajorMinor);typeof BT<"u"&&BT.exports&&(BT.exports=Ar);var Ar;(function(e){function r(a,s,u,d){if(Object.defineProperty(y,"name",Mn(Mn({},Object.getOwnPropertyDescriptor(y,"name")),{value:a})),d)for(var f=0,p=Object.keys(d);f<p.length;f++){var _=p[f],b=+_;!isNaN(b)&&e.hasProperty(s,"".concat(b))&&(s[b]=e.Debug.deprecate(s[b],Mn(Mn({},d[b]),{name:a})))}var E=n(s,u);return y;function y(){for(var T=[],h=0;h<arguments.length;h++)T[h]=arguments[h];var v=E(T),I=v!==void 0?s[v]:void 0;if(typeof I=="function")return I.apply(void 0,T);throw new TypeError("Invalid arguments")}}e.createOverload=r;function n(a,s){return function(u){for(var d=0;e.hasProperty(a,"".concat(d))&&e.hasProperty(s,"".concat(d));d++){var f=s[d];if(f(u))return d}}}function i(a){return{overload:function(s){return{bind:function(u){return{finish:function(){return r(a,s,u)},deprecate:function(d){return{finish:function(){return r(a,s,u,d)}}}}}}}}}e.buildOverload=i})(Ar||(Ar={}));var Ar;(function(e){var r={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,r),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,r),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,r),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,r),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,r),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,r),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,r),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,r),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,r),e.createSuper=e.Debug.deprecate(e.factory.createSuper,r),e.createThis=e.Debug.deprecate(e.factory.createThis,r),e.createNull=e.Debug.deprecate(e.factory.createNull,r),e.createTrue=e.Debug.deprecate(e.factory.createTrue,r),e.createFalse=e.Debug.deprecate(e.factory.createFalse,r),e.createModifier=e.Debug.deprecate(e.factory.createModifier,r),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,r),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,r),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,r),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,r),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,r),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,r),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,r),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,r),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,r),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,r),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,r),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,r),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,r),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,r),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,r),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,r),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,r),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,r),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,r),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,r),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,r),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,r),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,r),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,r),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,r),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,r),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,r),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,r),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,r),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,r),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,r),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,r),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,r),e.createConstructorTypeNode=e.Debug.deprecate(function(n,i,a){return e.factory.createConstructorTypeNode(void 0,n,i,a)},r),e.updateConstructorTypeNode=e.Debug.deprecate(function(n,i,a,s){return e.factory.updateConstructorTypeNode(n,n.modifiers,i,a,s)},r),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,r),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,r),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,r),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,r),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,r),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,r),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,r),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,r),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,r),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,r),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,r),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,r),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,r),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,r),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,r),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,r),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,r),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,r),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,r),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,r),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,r),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,r),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,r),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,r),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,r),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,r),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,r),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,r),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,r),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,r),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,r),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,r),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,r),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,r),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,r),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,r),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,r),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,r),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,r),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,r),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,r),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,r),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,r),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,r),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,r),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,r),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,r),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,r),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,r),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,r),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,r),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,r),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,r),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,r),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,r),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,r),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,r),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,r),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,r),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,r),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,r),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,r),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,r),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,r),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,r),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,r),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,r),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,r),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,r),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,r),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,r),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,r),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,r),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,r),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,r),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,r),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,r),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,r),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,r),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,r),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,r),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,r),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,r),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,r),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,r),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,r),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,r),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,r),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,r),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,r),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,r),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,r),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,r),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,r),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,r),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,r),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,r),e.createBlock=e.Debug.deprecate(e.factory.createBlock,r),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,r),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,r),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,r),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,r),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,r),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,r),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,r),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,r),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,r),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,r),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,r),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,r),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,r),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,r),e.createFor=e.Debug.deprecate(e.factory.createForStatement,r),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,r),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,r),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,r),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,r),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,r),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,r),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,r),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,r),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,r),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,r),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,r),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,r),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,r),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,r),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,r),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,r),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,r),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,r),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,r),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,r),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,r),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,r),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,r),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,r),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,r),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,r),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,r),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,r),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,r),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,r),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,r),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,r),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,r),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,r),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,r),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,r),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,r),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,r),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,r),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,r),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,r),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,r),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,r),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,r),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,r),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,r),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,r),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,r),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,r),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,r),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,r),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,r),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,r),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,r),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,r),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,r),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,r),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,r),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,r),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,r),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,r),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,r),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,r),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,r),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,r),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,r),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,r),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,r),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,r),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,r),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,r),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,r),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,r),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,r),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,r),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,r),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,r),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,r),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,r),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,r),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,r),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,r),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,r),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,r),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,r),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,r),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,r),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,r),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,r),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,r),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,r),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,r),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,r),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,r),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,r),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,r),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,r),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,r),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,r),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,r),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,r),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,r),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,r),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,r),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,r),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,r),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,r),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,r),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,r),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,r),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,r),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,r),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,r),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,r),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,r),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,r),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,r),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,r),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,r),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,r),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,r),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,r),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,r),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,r),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,r),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,r),e.createBundle=e.Debug.deprecate(e.factory.createBundle,r),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,r),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,r),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,r),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,r),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,r),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,r),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,r),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,r),e.createToken=e.Debug.deprecate(function(i){return e.factory.createToken(i)},r),e.createIdentifier=e.Debug.deprecate(function(i){return e.factory.createIdentifier(i,void 0,void 0)},r),e.createTempVariable=e.Debug.deprecate(function(i){return e.factory.createTempVariable(i,void 0)},r),e.getGeneratedNameForNode=e.Debug.deprecate(function(i){return e.factory.getGeneratedNameForNode(i,void 0)},r),e.createOptimisticUniqueName=e.Debug.deprecate(function(i){return e.factory.createUniqueName(i,16)},r),e.createFileLevelUniqueName=e.Debug.deprecate(function(i){return e.factory.createUniqueName(i,48)},r),e.createIndexSignature=e.Debug.deprecate(function(i,a,s,u){return e.factory.createIndexSignature(i,a,s,u)},r),e.createTypePredicateNode=e.Debug.deprecate(function(i,a){return e.factory.createTypePredicateNode(void 0,i,a)},r),e.updateTypePredicateNode=e.Debug.deprecate(function(i,a,s){return e.factory.updateTypePredicateNode(i,void 0,a,s)},r),e.createLiteral=e.Debug.deprecate(function(i){return typeof i=="number"?e.factory.createNumericLiteral(i):typeof i=="object"&&"base10Value"in i?e.factory.createBigIntLiteral(i):typeof i=="boolean"?i?e.factory.createTrue():e.factory.createFalse():typeof i=="string"?e.factory.createStringLiteral(i,void 0):e.factory.createStringLiteralFromNode(i)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(i,a,s,u,d){return e.factory.createMethodSignature(void 0,u,d,i,a,s)},r),e.updateMethodSignature=e.Debug.deprecate(function(i,a,s,u,d,f){return e.factory.updateMethodSignature(i,i.modifiers,d,f,a,s,u)},r),e.createTypeOperatorNode=e.Debug.deprecate(function(i,a){var s;return a?s=i:(a=i,s=140),e.factory.createTypeOperatorNode(s,a)},r),e.createTaggedTemplate=e.Debug.deprecate(function(i,a,s){var u;return s?u=a:s=a,e.factory.createTaggedTemplateExpression(i,u,s)},r),e.updateTaggedTemplate=e.Debug.deprecate(function(i,a,s,u){var d;return u?d=s:u=s,e.factory.updateTaggedTemplateExpression(i,a,d,u)},r),e.updateBinary=e.Debug.deprecate(function(i,a,s,u){return u===void 0&&(u=i.operatorToken),typeof u=="number"&&(u=u===i.operatorToken.kind?i.operatorToken:e.factory.createToken(u)),e.factory.updateBinaryExpression(i,a,u,s)},r),e.createConditional=e.Debug.deprecate(function(i,a,s,u,d){return arguments.length===5?e.factory.createConditionalExpression(i,a,s,u,d):arguments.length===3?e.factory.createConditionalExpression(i,e.factory.createToken(57),a,e.factory.createToken(58),s):e.Debug.fail("Argument count mismatch")},r),e.createYield=e.Debug.deprecate(function(i,a){var s;return a?s=i:a=i,e.factory.createYieldExpression(s,a)},r),e.createClassExpression=e.Debug.deprecate(function(i,a,s,u,d){return e.factory.createClassExpression(void 0,i,a,s,u,d)},r),e.updateClassExpression=e.Debug.deprecate(function(i,a,s,u,d,f){return e.factory.updateClassExpression(i,void 0,a,s,u,d,f)},r),e.createPropertySignature=e.Debug.deprecate(function(i,a,s,u,d){var f=e.factory.createPropertySignature(i,a,s,u);return f.initializer=d,f},r),e.updatePropertySignature=e.Debug.deprecate(function(i,a,s,u,d,f){var p=e.factory.updatePropertySignature(i,a,s,u,d);return i.initializer!==f&&(p===i&&(p=e.factory.cloneNode(i)),p.initializer=f),p},r),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(i,a){return e.factory.createExpressionWithTypeArguments(a,i)},r),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(i,a,s){return e.factory.updateExpressionWithTypeArguments(i,s,a)},r),e.createArrowFunction=e.Debug.deprecate(function(i,a,s,u,d,f){return arguments.length===6?e.factory.createArrowFunction(i,a,s,u,d,f):arguments.length===5?e.factory.createArrowFunction(i,a,s,u,void 0,d):e.Debug.fail("Argument count mismatch")},r),e.updateArrowFunction=e.Debug.deprecate(function(i,a,s,u,d,f,p){return arguments.length===7?e.factory.updateArrowFunction(i,a,s,u,d,f,p):arguments.length===6?e.factory.updateArrowFunction(i,a,s,u,d,i.equalsGreaterThanToken,f):e.Debug.fail("Argument count mismatch")},r),e.createVariableDeclaration=e.Debug.deprecate(function(i,a,s,u){return arguments.length===4?e.factory.createVariableDeclaration(i,a,s,u):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(i,void 0,a,s):e.Debug.fail("Argument count mismatch")},r),e.updateVariableDeclaration=e.Debug.deprecate(function(i,a,s,u,d){return arguments.length===5?e.factory.updateVariableDeclaration(i,a,s,u,d):arguments.length===4?e.factory.updateVariableDeclaration(i,a,i.exclamationToken,s,u):e.Debug.fail("Argument count mismatch")},r),e.createImportClause=e.Debug.deprecate(function(i,a,s){return s===void 0&&(s=!1),e.factory.createImportClause(s,i,a)},r),e.updateImportClause=e.Debug.deprecate(function(i,a,s,u){return e.factory.updateImportClause(i,u,a,s)},r),e.createExportDeclaration=e.Debug.deprecate(function(i,a,s,u,d){return d===void 0&&(d=!1),e.factory.createExportDeclaration(i,a,d,s,u)},r),e.updateExportDeclaration=e.Debug.deprecate(function(i,a,s,u,d,f){return e.factory.updateExportDeclaration(i,a,s,f,u,d,i.assertClause)},r),e.createJSDocParamTag=e.Debug.deprecate(function(i,a,s,u){return e.factory.createJSDocParameterTag(void 0,i,a,s,!1,u?e.factory.createNodeArray([e.factory.createJSDocText(u)]):void 0)},r),e.createComma=e.Debug.deprecate(function(i,a){return e.factory.createComma(i,a)},r),e.createLessThan=e.Debug.deprecate(function(i,a){return e.factory.createLessThan(i,a)},r),e.createAssignment=e.Debug.deprecate(function(i,a){return e.factory.createAssignment(i,a)},r),e.createStrictEquality=e.Debug.deprecate(function(i,a){return e.factory.createStrictEquality(i,a)},r),e.createStrictInequality=e.Debug.deprecate(function(i,a){return e.factory.createStrictInequality(i,a)},r),e.createAdd=e.Debug.deprecate(function(i,a){return e.factory.createAdd(i,a)},r),e.createSubtract=e.Debug.deprecate(function(i,a){return e.factory.createSubtract(i,a)},r),e.createLogicalAnd=e.Debug.deprecate(function(i,a){return e.factory.createLogicalAnd(i,a)},r),e.createLogicalOr=e.Debug.deprecate(function(i,a){return e.factory.createLogicalOr(i,a)},r),e.createPostfixIncrement=e.Debug.deprecate(function(i){return e.factory.createPostfixIncrement(i)},r),e.createLogicalNot=e.Debug.deprecate(function(i){return e.factory.createLogicalNot(i)},r),e.createNode=e.Debug.deprecate(function(i,a,s){return a===void 0&&(a=0),s===void 0&&(s=0),e.setTextRangePosEnd(i===305?e.parseBaseNodeFactory.createBaseSourceFileNode(i):i===79?e.parseBaseNodeFactory.createBaseIdentifierNode(i):i===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(i):e.isNodeKind(i)?e.parseBaseNodeFactory.createBaseNode(i):e.parseBaseNodeFactory.createBaseTokenNode(i),a,s)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(i){var a=e.factory.cloneNode(i);return e.setTextRange(a,i),e.setParent(a,i.parent),a},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})})(Ar||(Ar={}));var Ar;(function(e){e.isTypeAssertion=e.Debug.deprecate(function(n){return n.kind===211},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})})(Ar||(Ar={}));var Ar;(function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(n){return e.isMemberName(n)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createConstructorTypeNode,s=i.updateConstructorTypeNode;i.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(u,d,f,p){return a(u,d,f,p)},1:function(u,d,f){return a(void 0,u,d,f)}}).bind({0:function(u){return u.length===4},1:function(u){return u.length===3}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),i.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(u,d,f,p,_){return s(u,d,f,p,_)},1:function(u,d,f,p){return s(u,u.modifiers,d,f,p)}}).bind({0:function(u){return u.length===5},1:function(u){return u.length===4}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createImportTypeNode,s=i.updateImportTypeNode;i.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(u,d,f,p,_){return a(u,d,f,p,_)},1:function(u,d,f,p){return a(u,void 0,d,f,p)}}).bind({0:function(u){var d=u[1],f=u[2],p=u[3],_=u[4];return(d===void 0||e.isImportTypeAssertionContainer(d))&&(f===void 0||!e.isArray(f))&&(p===void 0||e.isArray(p))&&(_===void 0||typeof _=="boolean")},1:function(u){var d=u[1],f=u[2],p=u[3],_=u[4];return _===void 0&&(d===void 0||e.isEntityName(d))&&(f===void 0||e.isArray(f))&&(p===void 0||typeof p=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),i.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(u,d,f,p,_,b){return s(u,d,f,p,_,b)},1:function(u,d,f,p,_){return s(u,d,u.assertions,f,p,_)}}).bind({0:function(u){var d=u[2],f=u[3],p=u[4],_=u[5];return(d===void 0||e.isImportTypeAssertionContainer(d))&&(f===void 0||!e.isArray(f))&&(p===void 0||e.isArray(p))&&(_===void 0||typeof _=="boolean")},1:function(u){var d=u[2],f=u[3],p=u[4],_=u[5];return _===void 0&&(d===void 0||e.isEntityName(d))&&(f===void 0||e.isArray(f))&&(p===void 0||typeof p=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createTypeParameterDeclaration,s=i.updateTypeParameterDeclaration;i.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(u,d,f,p){return a(u,d,f,p)},1:function(u,d,f){return a(void 0,u,d,f)}}).bind({0:function(u){var d=u[0];return d===void 0||e.isArray(d)},1:function(u){var d=u[0];return d!==void 0&&!e.isArray(d)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),i.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(u,d,f,p,_){return s(u,d,f,p,_)},1:function(u,d,f,p){return s(u,u.modifiers,d,f,p)}}).bind({0:function(u){var d=u[1];return d===void 0||e.isArray(d)},1:function(u){var d=u[1];return d!==void 0&&!e.isArray(d)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){var r={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter."},n={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter."},i={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters."};function a(u){var d=u.createParameterDeclaration,f=u.updateParameterDeclaration,p=u.createPropertyDeclaration,_=u.updatePropertyDeclaration,b=u.createMethodDeclaration,E=u.updateMethodDeclaration,y=u.createConstructorDeclaration,T=u.updateConstructorDeclaration,h=u.createGetAccessorDeclaration,v=u.updateGetAccessorDeclaration,I=u.createSetAccessorDeclaration,F=u.updateSetAccessorDeclaration,j=u.createIndexSignature,x=u.updateIndexSignature,w=u.createClassStaticBlockDeclaration,A=u.updateClassStaticBlockDeclaration,ee=u.createClassExpression,ne=u.updateClassExpression,ae=u.createFunctionDeclaration,Y=u.updateFunctionDeclaration,c=u.createClassDeclaration,N=u.updateClassDeclaration,G=u.createInterfaceDeclaration,k=u.updateInterfaceDeclaration,M=u.createTypeAliasDeclaration,X=u.updateTypeAliasDeclaration,R=u.createEnumDeclaration,U=u.updateEnumDeclaration,J=u.createModuleDeclaration,re=u.updateModuleDeclaration,te=u.createImportEqualsDeclaration,se=u.updateImportEqualsDeclaration,ue=u.createImportDeclaration,q=u.updateImportDeclaration,Q=u.createExportAssignment,P=u.updateExportAssignment,L=u.createExportDeclaration,z=u.updateExportDeclaration;u.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(D,V,H,ie,W,fe){return d(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return d(e.concatenate(D,V),H,ie,W,fe,ge)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return ge===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isBindingName(H))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isDotDotDotToken(H))&&(ie===void 0||typeof ie=="string"||e.isBindingName(ie))&&(W===void 0||e.isQuestionToken(W))&&(fe===void 0||e.isTypeNode(fe))&&(ge===void 0||e.isExpression(ge))}}).deprecate({1:r}).finish(),u.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(D,V,H,ie,W,fe,ge){return f(D,V,H,ie,W,fe,ge)},1:function(D,V,H,ie,W,fe,ge,De){return f(D,e.concatenate(V,H),ie,W,fe,ge,De)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7];return ge===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isBindingName(H))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isDotDotDotToken(H))&&(ie===void 0||typeof ie=="string"||e.isBindingName(ie))&&(W===void 0||e.isQuestionToken(W))&&(fe===void 0||e.isTypeNode(fe))&&(ge===void 0||e.isExpression(ge))}}).deprecate({1:r}).finish(),u.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(D,V,H,ie,W){return p(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return p(e.concatenate(D,V),H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isQuestionOrExclamationToken(H))&&(ie===void 0||e.isTypeNode(ie))&&(W===void 0||e.isExpression(W))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="string"||e.isPropertyName(H))&&(ie===void 0||e.isQuestionOrExclamationToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))}}).deprecate({1:r}).finish(),u.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(D,V,H,ie,W,fe){return _(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return _(D,e.concatenate(V,H),ie,W,fe,ge)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isQuestionOrExclamationToken(H))&&(ie===void 0||e.isTypeNode(ie))&&(W===void 0||e.isExpression(W))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="string"||e.isPropertyName(H))&&(ie===void 0||e.isQuestionOrExclamationToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))}}).deprecate({1:r}).finish(),u.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(D,V,H,ie,W,fe,ge,De){return b(D,V,H,ie,W,fe,ge,De)},1:function(D,V,H,ie,W,fe,ge,De,Ve){return b(e.concatenate(D,V),H,ie,W,fe,ge,De,Ve)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6],De=D[7],Ve=D[8];return Ve===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isPropertyName(H))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||!e.some(fe,e.isTypeParameterDeclaration))&&(ge===void 0||!e.isArray(ge))&&(De===void 0||e.isBlock(De))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6],De=D[7],Ve=D[8];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isAsteriskToken(H))&&(ie===void 0||typeof ie=="string"||e.isPropertyName(ie))&&(W===void 0||!e.isArray(W))&&(fe===void 0||!e.some(fe,e.isParameter))&&(ge===void 0||e.isArray(ge))&&(De===void 0||e.isTypeNode(De))&&(Ve===void 0||e.isBlock(Ve))}}).deprecate({1:r}).finish(),u.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(D,V,H,ie,W,fe,ge,De,Ve){return E(D,V,H,ie,W,fe,ge,De,Ve)},1:function(D,V,H,ie,W,fe,ge,De,Ve,je){return E(D,e.concatenate(V,H),ie,W,fe,ge,De,Ve,je)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7],De=D[8],Ve=D[9];return Ve===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isPropertyName(H))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||!e.some(fe,e.isTypeParameterDeclaration))&&(ge===void 0||!e.isArray(ge))&&(De===void 0||e.isBlock(De))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7],De=D[8],Ve=D[9];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isAsteriskToken(H))&&(ie===void 0||typeof ie=="string"||e.isPropertyName(ie))&&(W===void 0||!e.isArray(W))&&(fe===void 0||!e.some(fe,e.isParameter))&&(ge===void 0||e.isArray(ge))&&(De===void 0||e.isTypeNode(De))&&(Ve===void 0||e.isBlock(Ve))}}).deprecate({1:r}).finish(),u.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(D,V,H){return y(D,V,H)},1:function(D,V,H,ie){return y(V,H,ie)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return W===void 0&&(V===void 0||!e.some(V,e.isDecorator))&&(H===void 0||!e.some(H,e.isModifier))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return(V===void 0||!e.some(V,e.isModifier))&&(H===void 0||!e.some(H,e.isParameter))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:n}).finish(),u.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(D,V,H,ie){return T(D,V,H,ie)},1:function(D,V,H,ie,W){return T(D,H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||!e.some(V,e.isDecorator))&&(H===void 0||!e.some(H,e.isModifier))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||!e.some(V,e.isModifier))&&(H===void 0||!e.some(H,e.isParameter))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:n}).finish(),u.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(D,V,H,ie,W){return h(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return h(e.concatenate(D,V),H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isBlock(W))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isBlock(fe))}}).deprecate({1:r}).finish(),u.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(D,V,H,ie,W,fe){return v(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return v(D,e.concatenate(V,H),ie,W,fe,ge)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isBlock(W))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isBlock(fe))}}).deprecate({1:r}).finish(),u.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(D,V,H,ie){return I(D,V,H,ie)},1:function(D,V,H,ie,W){return I(e.concatenate(D,V),H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(D,V,H,ie,W){return F(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return F(D,e.concatenate(V,H),ie,W,fe)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5];return W===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(D,V,H){return j(D,V,H)},1:function(D,V,H,ie){return j(V,H,ie)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||e.every(H,e.isParameter))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.every(H,e.isModifier))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isTypeNode(W))}}).deprecate({1:n}).finish(),u.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(D,V,H,ie){return x(D,V,H,ie)},1:function(D,V,H,ie,W){return x(D,H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||e.every(H,e.isParameter))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.every(H,e.isModifier))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isTypeNode(W))}}).deprecate({1:n}).finish(),u.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(D){return w(D)},1:function(D,V,H){return w(H)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2];return H===void 0&&ie===void 0&&(V===void 0||!e.isArray(V))},1:function(D){var V=D[0],H=D[1],ie=D[2];return(V===void 0||e.isArray(V))&&(H===void 0||e.isArray(V))&&(ie===void 0||e.isBlock(ie))}}).deprecate({1:i}).finish(),u.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(D,V){return A(D,V)},1:function(D,V,H,ie){return A(D,ie)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3];return H===void 0&&ie===void 0&&(V===void 0||!e.isArray(V))},1:function(D){var V=D[1],H=D[2],ie=D[3];return(V===void 0||e.isArray(V))&&(H===void 0||e.isArray(V))&&(ie===void 0||e.isBlock(ie))}}).deprecate({1:i}).finish(),u.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(D,V,H,ie,W){return ee(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return ee(e.concatenate(D,V),H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.every(ie,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.isArray(fe))}}).deprecate({1:n}).finish(),u.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(D,V,H,ie,W,fe){return ne(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return ne(D,e.concatenate(V,H),ie,W,fe,ge)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.every(ie,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.isArray(fe))}}).deprecate({1:n}).finish(),u.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(D,V,H,ie,W,fe,ge){return ae(D,V,H,ie,W,fe,ge)},1:function(D,V,H,ie,W,fe,ge,De){return ae(V,H,ie,W,fe,ge,De)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6],De=D[7];return De===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isIdentifier(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isParameter))&&(fe===void 0||!e.isArray(fe))&&(ge===void 0||e.isBlock(ge))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6],De=D[7];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H!="string"&&e.isAsteriskToken(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.isArray(fe))&&(ge===void 0||e.isTypeNode(ge))&&(De===void 0||e.isBlock(De))}}).deprecate({1:n}).finish(),u.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(D,V,H,ie,W,fe,ge,De){return Y(D,V,H,ie,W,fe,ge,De)},1:function(D,V,H,ie,W,fe,ge,De,Ve){return Y(D,H,ie,W,fe,ge,De,Ve)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7],De=D[8];return De===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isIdentifier(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isParameter))&&(fe===void 0||!e.isArray(fe))&&(ge===void 0||e.isBlock(ge))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7],De=D[8];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H!="string"&&e.isAsteriskToken(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.isArray(fe))&&(ge===void 0||e.isTypeNode(ge))&&(De===void 0||e.isBlock(De))}}).deprecate({1:n}).finish(),u.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(D,V,H,ie,W){return c(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return c(e.concatenate(D,V),H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(){return!0}}).deprecate({1:r}).finish(),u.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(D,V,H,ie,W,fe){return N(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return N(D,e.concatenate(V,H),ie,W,fe,ge)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.every(ie,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.isArray(fe))}}).deprecate({1:r}).finish(),u.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(D,V,H,ie,W){return G(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return G(V,H,ie,W,fe)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4],ge=D[5];return ge===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.every(fe,e.isTypeElement))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4],ge=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.every(fe,e.isHeritageClause))&&(ge===void 0||e.every(ge,e.isTypeElement))}}).deprecate({1:n}).finish(),u.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(D,V,H,ie,W,fe){return k(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return k(D,H,ie,W,fe,ge)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return ge===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.every(fe,e.isTypeElement))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.every(fe,e.isHeritageClause))&&(ge===void 0||e.every(ge,e.isTypeElement))}}).deprecate({1:n}).finish(),u.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(D,V,H,ie){return M(D,V,H,ie)},1:function(D,V,H,ie,W){return M(V,H,ie,W)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||!e.isArray(W))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||e.isTypeNode(fe))}}).deprecate({1:n}).finish(),u.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(D,V,H,ie,W){return X(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return X(D,H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||!e.isArray(W))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||e.isTypeNode(fe))}}).deprecate({1:n}).finish(),u.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(D,V,H){return R(D,V,H)},1:function(D,V,H,ie){return R(V,H,ie)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(D,V,H,ie){return U(D,V,H,ie)},1:function(D,V,H,ie,W){return U(D,H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(D,V,H,ie){return J(D,V,H,ie)},1:function(D,V,H,ie,W){return J(V,H,ie,W)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&H!==void 0&&!e.isArray(H)&&(ie===void 0||e.isModuleBody(ie))&&(W===void 0||typeof W=="number")},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&ie!==void 0&&e.isModuleName(ie)&&(W===void 0||typeof W=="object")&&(fe===void 0||typeof fe=="number")}}).deprecate({1:n}).finish(),u.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(D,V,H,ie){return re(D,V,H,ie)},1:function(D,V,H,ie,W){return re(D,H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isModuleBody(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&ie!==void 0&&e.isModuleName(ie)&&(W===void 0||e.isModuleBody(W))}}).deprecate({1:n}).finish(),u.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(D,V,H,ie){return te(D,V,H,ie)},1:function(D,V,H,ie,W){return te(V,H,ie,W)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||typeof H=="boolean")&&typeof ie!="boolean"&&typeof W!="string"},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||typeof ie=="boolean")&&(typeof W=="string"||e.isIdentifier(W))&&fe!==void 0&&e.isModuleReference(fe)}}).deprecate({1:n}).finish(),u.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(D,V,H,ie,W){return se(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return se(D,H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||typeof H=="boolean")&&typeof ie!="boolean"&&typeof W!="string"},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||typeof ie=="boolean")&&(typeof W=="string"||e.isIdentifier(W))&&fe!==void 0&&e.isModuleReference(fe)}}).deprecate({1:n}).finish(),u.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(D,V,H,ie){return ue(D,V,H,ie)},1:function(D,V,H,ie,W){return ue(V,H,ie,W)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&ie!==void 0&&e.isExpression(ie)&&(W===void 0||e.isAssertClause(W))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.isImportClause(ie))&&W!==void 0&&e.isExpression(W)&&(fe===void 0||e.isAssertClause(fe))}}).deprecate({1:n}).finish(),u.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(D,V,H,ie,W){return q(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return q(D,H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isExpression(ie))&&(W===void 0||e.isAssertClause(W))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.isImportClause(ie))&&W!==void 0&&e.isExpression(W)&&(fe===void 0||e.isAssertClause(fe))}}).deprecate({1:n}).finish(),u.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(D,V,H){return Q(D,V,H)},1:function(D,V,H,ie){return Q(V,H,ie)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||typeof H=="boolean")&&typeof ie=="object"},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||typeof ie=="boolean")&&W!==void 0&&e.isExpression(W)}}).deprecate({1:n}).finish(),u.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(D,V,H){return P(D,V,H)},1:function(D,V,H,ie){return P(D,H,ie)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3];return ie===void 0&&(V===void 0||e.every(V,e.isModifier))&&H!==void 0&&!e.isArray(H)},1:function(D){var V=D[1],H=D[2],ie=D[3];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&ie!==void 0&&e.isExpression(ie)}}).deprecate({1:n}).finish(),u.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(D,V,H,ie,W){return L(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return L(V,H,ie,W,fe)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4],ge=D[5];return ge===void 0&&(V===void 0||e.every(V,e.isModifier))&&typeof H=="boolean"&&typeof ie!="boolean"&&(W===void 0||e.isExpression(W))&&(fe===void 0||e.isAssertClause(fe))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4],ge=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&typeof ie=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(fe===void 0||e.isExpression(fe))&&(ge===void 0||e.isAssertClause(ge))}}).deprecate({1:n}).finish(),u.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(D,V,H,ie,W,fe){return z(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return z(D,H,ie,W,fe,ge)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return ge===void 0&&(V===void 0||e.every(V,e.isModifier))&&typeof H=="boolean"&&typeof ie!="boolean"&&(W===void 0||e.isExpression(W))&&(fe===void 0||e.isAssertClause(fe))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&typeof ie=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(fe===void 0||e.isExpression(fe))&&(ge===void 0||e.isAssertClause(ge))}}).deprecate({1:n}).finish()}var s=e.createNodeFactory;e.createNodeFactory=function(u,d){var f=s(u,d);return a(f),f},a(e.factory)})(Ar||(Ar={}));var Ar;(function(e){typeof console<"u"&&(e.Debug.loggingHost={log:function(r,n){switch(r){case e.LogLevel.Error:return console.error(n);case e.LogLevel.Warning:return console.warn(n);case e.LogLevel.Info:return console.log(n);case e.LogLevel.Verbose:return console.log(n)}}})})(Ar||(Ar={}))});var I0r={};TLe(I0r,{configs:()=>w0r,rules:()=>k0r});module.exports=ALe(I0r);var vv=S5(tke()),mb=S5(Bke()),S0r=vv.ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`),jke=S0r({name:"valid-lexical-scope",defaultOptions:[{allowAny:!0}],meta:{type:"problem",docs:{description:"Used the tsc typechecker to detect the capture of unserializable data in dollar ($) scopes.",recommended:"error"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},default:{allowAny:!0}}],messages:{referencesOutside:'Identifier ("{{varName}}") can not be captured inside the scope ({{dollarName}}) because {{reason}}. Check out https://qwik.builder.io/docs/advanced/optimizer for more details.',unvalidJsxDollar:"JSX attributes that end with $ can only take an inlined arrow function of a QRL identifier. Make sure the value is created using $()",mutableIdentifier:'The value of the identifier ("{{varName}}") can not be changed once it is captured the scope ({{dollarName}}). Check out https://qwik.builder.io/docs/advanced/optimizer for more details.'}},create(e){var _;let n={allowAny:((_=e.options[0])==null?void 0:_.allowAny)??!0},i=e.getSourceCode().scopeManager,a=vv.ESLintUtils.getParserServices(e),s=a.esTreeNodeToTSNodeMap,u=a.program.getTypeChecker(),d=new Map,f=[];function p(b){b.references.forEach(E=>{var h,v;let y=E.resolved,T=(h=E.resolved)==null?void 0:h.scope;if(y&&T){let I=(v=y.defs.at(0))==null?void 0:v.type;if(I==="Type"||I==="ImportBinding")return;let F=E.from,j;for(;F&&(j=d.get(F),!j);)F=F.upper;if(F&&j){let x=T.type;if(x==="global")return;let w=E.identifier;w.parent&&w.parent.type===vv.AST_NODE_TYPES.AssignmentExpression&&w.parent.left===w&&e.report({messageId:"mutableIdentifier",node:E.identifier,data:{varName:E.identifier.name,dollarName:j}});let A=s.get(w);if(x==="module"){let ne=u.getSymbolAtLocation(A);if(ne&&f.includes(ne))return;e.report({messageId:"referencesOutside",node:E.identifier,data:{varName:E.identifier.name,dollarName:j,reason:"it's declared at the root of the module and it is not exported. Add export"}});return}let ee=T;for(;ee&&!d.has(ee);)ee=ee.upper;if(ee!==F){let ne=D0r(u,A,E.identifier,n);ne&&e.report({messageId:"referencesOutside",node:E.identifier,data:{varName:E.identifier.name,dollarName:j,reason:C0r(ne)}})}}}}),b.childScopes.forEach(p)}return{CallExpression(b){if(b.callee.type===vv.AST_NODE_TYPES.Identifier&&b.callee.name.endsWith("$")){let E=b.arguments.at(0);if(E&&E.type===vv.AST_NODE_TYPES.ArrowFunctionExpression){let y=i.acquire(E);y&&d.set(y,b.callee.name)}}},JSXAttribute(b){let E=b.name,y=E.type===vv.AST_NODE_TYPES.JSXIdentifier?E.name:E.name.name;if(y.endsWith("$")){let T=b.value;if(T&&T.type===vv.AST_NODE_TYPES.JSXExpressionContainer){let h=i.acquire(T.expression);if(h)d.set(h,y);else if(T.expression.type===vv.AST_NODE_TYPES.Identifier){console.log(T.expression);let v=s.get(T.expression),I=u.getTypeAtLocation(v);Uke(I)||e.report({messageId:"unvalidJsxDollar",node:T.expression})}}}},Program(b){let E=s.get(b);f=u.getExportsOfModule(u.getSymbolAtLocation(E))},"Program:exit"(){p(i.globalScope)}}}});function D0r(e,r,n,i){let a=e.getTypeAtLocation(r);return T0r(e,a,r,n,i)}function C0r(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function T0r(e,r,n,i,a){let s=o3(e,r,n,a,0);if(s){let u=s.location;return u&&(s.location=`${i.name}.${u}`),s}return s}function o3(e,r,n,i,a){if(r.getProperty("__no_serialize__"))return;if(r.flags&mb.default.TypeFlags.Unknown)return{type:r,typeStr:e.typeToString(r),reason:"is unknown, which is not serializable"};let u=r.flags&mb.default.TypeFlags.Any;if(!i.allowAny&&u)return{type:r,typeStr:e.typeToString(r),reason:"is any, which is not serializable"};if(r.flags&mb.default.TypeFlags.BigIntLike)return{type:r,typeStr:e.typeToString(r),reason:"is BigInt and it is not supported yet, use a number instead"};if(r.flags&mb.default.TypeFlags.ESSymbolLike)return{type:r,typeStr:e.typeToString(r),reason:"is Symbol, which is not serializable"};if(r.flags&mb.default.TypeFlags.EnumLike)return{type:r,typeStr:e.typeToString(r),reason:"is an enum, use an string or a number instead"};if(Uke(r))return;if(r.getCallSignatures().length>0)return r.symbol.name==="PropFnInterface"?void 0:{type:r,typeStr:e.typeToString(r),reason:"is a function, which is not serializable"};if(r.isUnion()){for(let E of r.types){let y=o3(e,E,n,i,a+1);if(y)return y}return}if((r.flags&mb.default.TypeFlags.Object)!==0){let E=r.symbol.name,y=P0r(r,e);if(y)return o3(e,y,n,i,a+1);if(r.getProperty("nextElementSibling")||r.getProperty("activeElement")||E==="Promise"||E==="URL"||E==="RegExp"||E==="Date")return;if(r.isClass())return{type:r,typeStr:e.typeToString(r),reason:`is an instance of the "${r.symbol.name}" class, which is not serializable. Use a simple object literal instead`};let T=r.getProperty("prototype");if(T){let h=e.getTypeOfSymbolAtLocation(T,n);if(h.isClass())return{type:h,typeStr:e.typeToString(h),reason:"is a class constructor, which is not serializable"}}if(!E.startsWith("__")&&r.symbol.valueDeclaration)return{type:r,typeStr:e.typeToString(r),reason:`is an instance of the "${r.symbol.name}" class, which is not serializable`};for(let h of r.getProperties()){let v=A0r(e,h,n,i,a+1);if(v){let I=v.location;return v.location=`${h.name}${I?`.${I}`:""}`,v}}}}function A0r(e,r,n,i,a){let s=e.getTypeOfSymbolAtLocation(r,n);return o3(e,s,n,i,a)}function P0r(e,r){return r.getElementTypeOfArrayType(e)}function Uke(e){return!!e.getProperty("__brand__QRL__")}var qke={meta:{type:"problem",docs:{description:"Object destructuring is not recommended for component$",category:"Variables",recommended:!0,url:"https://github.com/BuilderIO/qwik"}},create(e){let r=[];return{ArrowFunctionExpression(){r.push({await:!1})},"ArrowFunctionExpression:exit"(){r.pop()},AwaitExpression(){let n=r[r.length-1];n&&(n.await=!0)},"CallExpression[callee.name=/^use/]"(n){let i=r[r.length-1];i&&i.await&&e.report({node:n,message:"Calling use* methods after await is not safe."})}}}};var k0r={"no-use-after-await":qke,"valid-lexical-scope":jke},w0r={recommended:{plugins:["qwik"],rules:{"qwik/no-use-after-await":"error","qwik/valid-lexical-scope":"error"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/no-use-after-await":"error"}}};0&&(module.exports={configs,rules});
|
|
425
|
+
`)}})},I.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},I.prototype.discoverTypings=function(F){var j=this,x=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var w=JSON.parse(F);return j.safeList===void 0&&(j.safeList=e.JsTyping.loadSafeList(j.host,e.toPath(w.safeListPath,w.safeListPath,x))),e.JsTyping.discoverTypings(j.host,function(A){return j.logger.log(A)},w.fileNames,e.toPath(w.projectRootPath,w.projectRootPath,x),j.safeList,w.packageNameToTypingLocation,w.typeAcquisition,w.unresolvedImports,w.typesRegistry,e.emptyOptions)})},I}(f),h=function(){function v(){this._shims=[]}return v.prototype.getServicesVersion=function(){return e.servicesVersion},v.prototype.createLanguageServiceShim=function(I){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(I.useCaseSensitiveFileNames&&I.useCaseSensitiveFileNames(),I.getCurrentDirectory()));var F=new i(I),j=e.createLanguageService(F,this.documentRegistry,!1);return new b(this,I,j)}catch(x){throw r(I,x),x}},v.prototype.createClassifierShim=function(I){try{return new y(this,I)}catch(F){throw r(I,F),F}},v.prototype.createCoreServicesShim=function(I){try{var F=new a(I);return new T(this,I,F)}catch(j){throw r(I,j),j}},v.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},v.prototype.registerShim=function(I){this._shims.push(I)},v.prototype.unregisterShim=function(I){for(var F=0;F<this._shims.length;F++)if(this._shims[F]===I){delete this._shims[F];return}throw new Error("Invalid operation")},v}();e.TypeScriptServicesFactory=h})(Ar||(Ar={}));(function(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,typeof globalThis>"u"&&(window.globalThis=window),delete Object.prototype.__magic__}catch{window.globalThis=window}})();(typeof process>"u"||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=Ar.TypeScriptServicesFactory,globalThis.toolsVersion=Ar.versionMajorMinor);typeof BT<"u"&&BT.exports&&(BT.exports=Ar);var Ar;(function(e){function r(a,s,u,d){if(Object.defineProperty(y,"name",Mn(Mn({},Object.getOwnPropertyDescriptor(y,"name")),{value:a})),d)for(var f=0,p=Object.keys(d);f<p.length;f++){var _=p[f],b=+_;!isNaN(b)&&e.hasProperty(s,"".concat(b))&&(s[b]=e.Debug.deprecate(s[b],Mn(Mn({},d[b]),{name:a})))}var E=n(s,u);return y;function y(){for(var T=[],h=0;h<arguments.length;h++)T[h]=arguments[h];var v=E(T),I=v!==void 0?s[v]:void 0;if(typeof I=="function")return I.apply(void 0,T);throw new TypeError("Invalid arguments")}}e.createOverload=r;function n(a,s){return function(u){for(var d=0;e.hasProperty(a,"".concat(d))&&e.hasProperty(s,"".concat(d));d++){var f=s[d];if(f(u))return d}}}function i(a){return{overload:function(s){return{bind:function(u){return{finish:function(){return r(a,s,u)},deprecate:function(d){return{finish:function(){return r(a,s,u,d)}}}}}}}}}e.buildOverload=i})(Ar||(Ar={}));var Ar;(function(e){var r={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,r),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,r),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,r),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,r),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,r),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,r),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,r),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,r),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,r),e.createSuper=e.Debug.deprecate(e.factory.createSuper,r),e.createThis=e.Debug.deprecate(e.factory.createThis,r),e.createNull=e.Debug.deprecate(e.factory.createNull,r),e.createTrue=e.Debug.deprecate(e.factory.createTrue,r),e.createFalse=e.Debug.deprecate(e.factory.createFalse,r),e.createModifier=e.Debug.deprecate(e.factory.createModifier,r),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,r),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,r),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,r),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,r),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,r),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,r),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,r),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,r),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,r),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,r),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,r),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,r),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,r),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,r),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,r),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,r),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,r),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,r),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,r),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,r),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,r),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,r),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,r),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,r),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,r),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,r),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,r),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,r),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,r),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,r),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,r),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,r),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,r),e.createConstructorTypeNode=e.Debug.deprecate(function(n,i,a){return e.factory.createConstructorTypeNode(void 0,n,i,a)},r),e.updateConstructorTypeNode=e.Debug.deprecate(function(n,i,a,s){return e.factory.updateConstructorTypeNode(n,n.modifiers,i,a,s)},r),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,r),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,r),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,r),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,r),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,r),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,r),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,r),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,r),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,r),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,r),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,r),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,r),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,r),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,r),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,r),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,r),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,r),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,r),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,r),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,r),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,r),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,r),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,r),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,r),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,r),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,r),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,r),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,r),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,r),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,r),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,r),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,r),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,r),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,r),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,r),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,r),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,r),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,r),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,r),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,r),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,r),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,r),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,r),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,r),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,r),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,r),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,r),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,r),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,r),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,r),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,r),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,r),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,r),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,r),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,r),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,r),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,r),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,r),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,r),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,r),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,r),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,r),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,r),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,r),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,r),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,r),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,r),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,r),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,r),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,r),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,r),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,r),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,r),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,r),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,r),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,r),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,r),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,r),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,r),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,r),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,r),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,r),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,r),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,r),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,r),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,r),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,r),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,r),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,r),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,r),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,r),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,r),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,r),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,r),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,r),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,r),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,r),e.createBlock=e.Debug.deprecate(e.factory.createBlock,r),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,r),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,r),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,r),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,r),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,r),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,r),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,r),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,r),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,r),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,r),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,r),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,r),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,r),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,r),e.createFor=e.Debug.deprecate(e.factory.createForStatement,r),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,r),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,r),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,r),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,r),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,r),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,r),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,r),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,r),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,r),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,r),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,r),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,r),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,r),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,r),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,r),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,r),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,r),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,r),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,r),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,r),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,r),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,r),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,r),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,r),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,r),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,r),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,r),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,r),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,r),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,r),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,r),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,r),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,r),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,r),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,r),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,r),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,r),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,r),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,r),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,r),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,r),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,r),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,r),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,r),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,r),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,r),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,r),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,r),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,r),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,r),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,r),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,r),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,r),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,r),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,r),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,r),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,r),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,r),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,r),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,r),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,r),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,r),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,r),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,r),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,r),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,r),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,r),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,r),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,r),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,r),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,r),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,r),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,r),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,r),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,r),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,r),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,r),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,r),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,r),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,r),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,r),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,r),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,r),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,r),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,r),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,r),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,r),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,r),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,r),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,r),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,r),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,r),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,r),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,r),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,r),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,r),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,r),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,r),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,r),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,r),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,r),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,r),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,r),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,r),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,r),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,r),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,r),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,r),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,r),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,r),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,r),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,r),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,r),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,r),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,r),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,r),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,r),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,r),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,r),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,r),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,r),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,r),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,r),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,r),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,r),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,r),e.createBundle=e.Debug.deprecate(e.factory.createBundle,r),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,r),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,r),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,r),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,r),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,r),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,r),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,r),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,r),e.createToken=e.Debug.deprecate(function(i){return e.factory.createToken(i)},r),e.createIdentifier=e.Debug.deprecate(function(i){return e.factory.createIdentifier(i,void 0,void 0)},r),e.createTempVariable=e.Debug.deprecate(function(i){return e.factory.createTempVariable(i,void 0)},r),e.getGeneratedNameForNode=e.Debug.deprecate(function(i){return e.factory.getGeneratedNameForNode(i,void 0)},r),e.createOptimisticUniqueName=e.Debug.deprecate(function(i){return e.factory.createUniqueName(i,16)},r),e.createFileLevelUniqueName=e.Debug.deprecate(function(i){return e.factory.createUniqueName(i,48)},r),e.createIndexSignature=e.Debug.deprecate(function(i,a,s,u){return e.factory.createIndexSignature(i,a,s,u)},r),e.createTypePredicateNode=e.Debug.deprecate(function(i,a){return e.factory.createTypePredicateNode(void 0,i,a)},r),e.updateTypePredicateNode=e.Debug.deprecate(function(i,a,s){return e.factory.updateTypePredicateNode(i,void 0,a,s)},r),e.createLiteral=e.Debug.deprecate(function(i){return typeof i=="number"?e.factory.createNumericLiteral(i):typeof i=="object"&&"base10Value"in i?e.factory.createBigIntLiteral(i):typeof i=="boolean"?i?e.factory.createTrue():e.factory.createFalse():typeof i=="string"?e.factory.createStringLiteral(i,void 0):e.factory.createStringLiteralFromNode(i)},{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate(function(i,a,s,u,d){return e.factory.createMethodSignature(void 0,u,d,i,a,s)},r),e.updateMethodSignature=e.Debug.deprecate(function(i,a,s,u,d,f){return e.factory.updateMethodSignature(i,i.modifiers,d,f,a,s,u)},r),e.createTypeOperatorNode=e.Debug.deprecate(function(i,a){var s;return a?s=i:(a=i,s=140),e.factory.createTypeOperatorNode(s,a)},r),e.createTaggedTemplate=e.Debug.deprecate(function(i,a,s){var u;return s?u=a:s=a,e.factory.createTaggedTemplateExpression(i,u,s)},r),e.updateTaggedTemplate=e.Debug.deprecate(function(i,a,s,u){var d;return u?d=s:u=s,e.factory.updateTaggedTemplateExpression(i,a,d,u)},r),e.updateBinary=e.Debug.deprecate(function(i,a,s,u){return u===void 0&&(u=i.operatorToken),typeof u=="number"&&(u=u===i.operatorToken.kind?i.operatorToken:e.factory.createToken(u)),e.factory.updateBinaryExpression(i,a,u,s)},r),e.createConditional=e.Debug.deprecate(function(i,a,s,u,d){return arguments.length===5?e.factory.createConditionalExpression(i,a,s,u,d):arguments.length===3?e.factory.createConditionalExpression(i,e.factory.createToken(57),a,e.factory.createToken(58),s):e.Debug.fail("Argument count mismatch")},r),e.createYield=e.Debug.deprecate(function(i,a){var s;return a?s=i:a=i,e.factory.createYieldExpression(s,a)},r),e.createClassExpression=e.Debug.deprecate(function(i,a,s,u,d){return e.factory.createClassExpression(void 0,i,a,s,u,d)},r),e.updateClassExpression=e.Debug.deprecate(function(i,a,s,u,d,f){return e.factory.updateClassExpression(i,void 0,a,s,u,d,f)},r),e.createPropertySignature=e.Debug.deprecate(function(i,a,s,u,d){var f=e.factory.createPropertySignature(i,a,s,u);return f.initializer=d,f},r),e.updatePropertySignature=e.Debug.deprecate(function(i,a,s,u,d,f){var p=e.factory.updatePropertySignature(i,a,s,u,d);return i.initializer!==f&&(p===i&&(p=e.factory.cloneNode(i)),p.initializer=f),p},r),e.createExpressionWithTypeArguments=e.Debug.deprecate(function(i,a){return e.factory.createExpressionWithTypeArguments(a,i)},r),e.updateExpressionWithTypeArguments=e.Debug.deprecate(function(i,a,s){return e.factory.updateExpressionWithTypeArguments(i,s,a)},r),e.createArrowFunction=e.Debug.deprecate(function(i,a,s,u,d,f){return arguments.length===6?e.factory.createArrowFunction(i,a,s,u,d,f):arguments.length===5?e.factory.createArrowFunction(i,a,s,u,void 0,d):e.Debug.fail("Argument count mismatch")},r),e.updateArrowFunction=e.Debug.deprecate(function(i,a,s,u,d,f,p){return arguments.length===7?e.factory.updateArrowFunction(i,a,s,u,d,f,p):arguments.length===6?e.factory.updateArrowFunction(i,a,s,u,d,i.equalsGreaterThanToken,f):e.Debug.fail("Argument count mismatch")},r),e.createVariableDeclaration=e.Debug.deprecate(function(i,a,s,u){return arguments.length===4?e.factory.createVariableDeclaration(i,a,s,u):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(i,void 0,a,s):e.Debug.fail("Argument count mismatch")},r),e.updateVariableDeclaration=e.Debug.deprecate(function(i,a,s,u,d){return arguments.length===5?e.factory.updateVariableDeclaration(i,a,s,u,d):arguments.length===4?e.factory.updateVariableDeclaration(i,a,i.exclamationToken,s,u):e.Debug.fail("Argument count mismatch")},r),e.createImportClause=e.Debug.deprecate(function(i,a,s){return s===void 0&&(s=!1),e.factory.createImportClause(s,i,a)},r),e.updateImportClause=e.Debug.deprecate(function(i,a,s,u){return e.factory.updateImportClause(i,u,a,s)},r),e.createExportDeclaration=e.Debug.deprecate(function(i,a,s,u,d){return d===void 0&&(d=!1),e.factory.createExportDeclaration(i,a,d,s,u)},r),e.updateExportDeclaration=e.Debug.deprecate(function(i,a,s,u,d,f){return e.factory.updateExportDeclaration(i,a,s,f,u,d,i.assertClause)},r),e.createJSDocParamTag=e.Debug.deprecate(function(i,a,s,u){return e.factory.createJSDocParameterTag(void 0,i,a,s,!1,u?e.factory.createNodeArray([e.factory.createJSDocText(u)]):void 0)},r),e.createComma=e.Debug.deprecate(function(i,a){return e.factory.createComma(i,a)},r),e.createLessThan=e.Debug.deprecate(function(i,a){return e.factory.createLessThan(i,a)},r),e.createAssignment=e.Debug.deprecate(function(i,a){return e.factory.createAssignment(i,a)},r),e.createStrictEquality=e.Debug.deprecate(function(i,a){return e.factory.createStrictEquality(i,a)},r),e.createStrictInequality=e.Debug.deprecate(function(i,a){return e.factory.createStrictInequality(i,a)},r),e.createAdd=e.Debug.deprecate(function(i,a){return e.factory.createAdd(i,a)},r),e.createSubtract=e.Debug.deprecate(function(i,a){return e.factory.createSubtract(i,a)},r),e.createLogicalAnd=e.Debug.deprecate(function(i,a){return e.factory.createLogicalAnd(i,a)},r),e.createLogicalOr=e.Debug.deprecate(function(i,a){return e.factory.createLogicalOr(i,a)},r),e.createPostfixIncrement=e.Debug.deprecate(function(i){return e.factory.createPostfixIncrement(i)},r),e.createLogicalNot=e.Debug.deprecate(function(i){return e.factory.createLogicalNot(i)},r),e.createNode=e.Debug.deprecate(function(i,a,s){return a===void 0&&(a=0),s===void 0&&(s=0),e.setTextRangePosEnd(i===305?e.parseBaseNodeFactory.createBaseSourceFileNode(i):i===79?e.parseBaseNodeFactory.createBaseIdentifierNode(i):i===80?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(i):e.isNodeKind(i)?e.parseBaseNodeFactory.createBaseNode(i):e.parseBaseNodeFactory.createBaseTokenNode(i),a,s)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(i){var a=e.factory.cloneNode(i);return e.setTextRange(a,i),e.setParent(a,i.parent),a},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})})(Ar||(Ar={}));var Ar;(function(e){e.isTypeAssertion=e.Debug.deprecate(function(n){return n.kind===211},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})})(Ar||(Ar={}));var Ar;(function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(n){return e.isMemberName(n)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createConstructorTypeNode,s=i.updateConstructorTypeNode;i.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(u,d,f,p){return a(u,d,f,p)},1:function(u,d,f){return a(void 0,u,d,f)}}).bind({0:function(u){return u.length===4},1:function(u){return u.length===3}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),i.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(u,d,f,p,_){return s(u,d,f,p,_)},1:function(u,d,f,p){return s(u,u.modifiers,d,f,p)}}).bind({0:function(u){return u.length===5},1:function(u){return u.length===4}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createImportTypeNode,s=i.updateImportTypeNode;i.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(u,d,f,p,_){return a(u,d,f,p,_)},1:function(u,d,f,p){return a(u,void 0,d,f,p)}}).bind({0:function(u){var d=u[1],f=u[2],p=u[3],_=u[4];return(d===void 0||e.isImportTypeAssertionContainer(d))&&(f===void 0||!e.isArray(f))&&(p===void 0||e.isArray(p))&&(_===void 0||typeof _=="boolean")},1:function(u){var d=u[1],f=u[2],p=u[3],_=u[4];return _===void 0&&(d===void 0||e.isEntityName(d))&&(f===void 0||e.isArray(f))&&(p===void 0||typeof p=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),i.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(u,d,f,p,_,b){return s(u,d,f,p,_,b)},1:function(u,d,f,p,_){return s(u,d,u.assertions,f,p,_)}}).bind({0:function(u){var d=u[2],f=u[3],p=u[4],_=u[5];return(d===void 0||e.isImportTypeAssertionContainer(d))&&(f===void 0||!e.isArray(f))&&(p===void 0||e.isArray(p))&&(_===void 0||typeof _=="boolean")},1:function(u){var d=u[2],f=u[3],p=u[4],_=u[5];return _===void 0&&(d===void 0||e.isEntityName(d))&&(f===void 0||e.isArray(f))&&(p===void 0||typeof p=="boolean")}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){function r(i){var a=i.createTypeParameterDeclaration,s=i.updateTypeParameterDeclaration;i.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(u,d,f,p){return a(u,d,f,p)},1:function(u,d,f){return a(void 0,u,d,f)}}).bind({0:function(u){var d=u[0];return d===void 0||e.isArray(d)},1:function(u){var d=u[0];return d!==void 0&&!e.isArray(d)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),i.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(u,d,f,p,_){return s(u,d,f,p,_)},1:function(u,d,f,p){return s(u,u.modifiers,d,f,p)}}).bind({0:function(u){var d=u[1];return d===void 0||e.isArray(d)},1:function(u){var d=u[1];return d!==void 0&&!e.isArray(d)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(i,a){var s=n(i,a);return r(s),s},r(e.factory)})(Ar||(Ar={}));var Ar;(function(e){var r={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter."},n={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter."},i={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters."};function a(u){var d=u.createParameterDeclaration,f=u.updateParameterDeclaration,p=u.createPropertyDeclaration,_=u.updatePropertyDeclaration,b=u.createMethodDeclaration,E=u.updateMethodDeclaration,y=u.createConstructorDeclaration,T=u.updateConstructorDeclaration,h=u.createGetAccessorDeclaration,v=u.updateGetAccessorDeclaration,I=u.createSetAccessorDeclaration,F=u.updateSetAccessorDeclaration,j=u.createIndexSignature,x=u.updateIndexSignature,w=u.createClassStaticBlockDeclaration,A=u.updateClassStaticBlockDeclaration,ee=u.createClassExpression,ne=u.updateClassExpression,ae=u.createFunctionDeclaration,Y=u.updateFunctionDeclaration,c=u.createClassDeclaration,N=u.updateClassDeclaration,G=u.createInterfaceDeclaration,k=u.updateInterfaceDeclaration,M=u.createTypeAliasDeclaration,X=u.updateTypeAliasDeclaration,R=u.createEnumDeclaration,U=u.updateEnumDeclaration,J=u.createModuleDeclaration,re=u.updateModuleDeclaration,te=u.createImportEqualsDeclaration,se=u.updateImportEqualsDeclaration,ue=u.createImportDeclaration,q=u.updateImportDeclaration,Q=u.createExportAssignment,P=u.updateExportAssignment,L=u.createExportDeclaration,z=u.updateExportDeclaration;u.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(D,V,H,ie,W,fe){return d(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return d(e.concatenate(D,V),H,ie,W,fe,ge)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return ge===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isBindingName(H))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isDotDotDotToken(H))&&(ie===void 0||typeof ie=="string"||e.isBindingName(ie))&&(W===void 0||e.isQuestionToken(W))&&(fe===void 0||e.isTypeNode(fe))&&(ge===void 0||e.isExpression(ge))}}).deprecate({1:r}).finish(),u.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(D,V,H,ie,W,fe,ge){return f(D,V,H,ie,W,fe,ge)},1:function(D,V,H,ie,W,fe,ge,De){return f(D,e.concatenate(V,H),ie,W,fe,ge,De)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7];return ge===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isBindingName(H))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isDotDotDotToken(H))&&(ie===void 0||typeof ie=="string"||e.isBindingName(ie))&&(W===void 0||e.isQuestionToken(W))&&(fe===void 0||e.isTypeNode(fe))&&(ge===void 0||e.isExpression(ge))}}).deprecate({1:r}).finish(),u.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(D,V,H,ie,W){return p(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return p(e.concatenate(D,V),H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isQuestionOrExclamationToken(H))&&(ie===void 0||e.isTypeNode(ie))&&(W===void 0||e.isExpression(W))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="string"||e.isPropertyName(H))&&(ie===void 0||e.isQuestionOrExclamationToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))}}).deprecate({1:r}).finish(),u.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(D,V,H,ie,W,fe){return _(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return _(D,e.concatenate(V,H),ie,W,fe,ge)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isQuestionOrExclamationToken(H))&&(ie===void 0||e.isTypeNode(ie))&&(W===void 0||e.isExpression(W))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="string"||e.isPropertyName(H))&&(ie===void 0||e.isQuestionOrExclamationToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))}}).deprecate({1:r}).finish(),u.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(D,V,H,ie,W,fe,ge,De){return b(D,V,H,ie,W,fe,ge,De)},1:function(D,V,H,ie,W,fe,ge,De,Ve){return b(e.concatenate(D,V),H,ie,W,fe,ge,De,Ve)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6],De=D[7],Ve=D[8];return Ve===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isPropertyName(H))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||!e.some(fe,e.isTypeParameterDeclaration))&&(ge===void 0||!e.isArray(ge))&&(De===void 0||e.isBlock(De))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6],De=D[7],Ve=D[8];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isAsteriskToken(H))&&(ie===void 0||typeof ie=="string"||e.isPropertyName(ie))&&(W===void 0||!e.isArray(W))&&(fe===void 0||!e.some(fe,e.isParameter))&&(ge===void 0||e.isArray(ge))&&(De===void 0||e.isTypeNode(De))&&(Ve===void 0||e.isBlock(Ve))}}).deprecate({1:r}).finish(),u.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(D,V,H,ie,W,fe,ge,De,Ve){return E(D,V,H,ie,W,fe,ge,De,Ve)},1:function(D,V,H,ie,W,fe,ge,De,Ve,je){return E(D,e.concatenate(V,H),ie,W,fe,ge,De,Ve,je)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7],De=D[8],Ve=D[9];return Ve===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isPropertyName(H))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||!e.some(fe,e.isTypeParameterDeclaration))&&(ge===void 0||!e.isArray(ge))&&(De===void 0||e.isBlock(De))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7],De=D[8],Ve=D[9];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H=="object"&&e.isAsteriskToken(H))&&(ie===void 0||typeof ie=="string"||e.isPropertyName(ie))&&(W===void 0||!e.isArray(W))&&(fe===void 0||!e.some(fe,e.isParameter))&&(ge===void 0||e.isArray(ge))&&(De===void 0||e.isTypeNode(De))&&(Ve===void 0||e.isBlock(Ve))}}).deprecate({1:r}).finish(),u.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(D,V,H){return y(D,V,H)},1:function(D,V,H,ie){return y(V,H,ie)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return W===void 0&&(V===void 0||!e.some(V,e.isDecorator))&&(H===void 0||!e.some(H,e.isModifier))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return(V===void 0||!e.some(V,e.isModifier))&&(H===void 0||!e.some(H,e.isParameter))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:n}).finish(),u.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(D,V,H,ie){return T(D,V,H,ie)},1:function(D,V,H,ie,W){return T(D,H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||!e.some(V,e.isDecorator))&&(H===void 0||!e.some(H,e.isModifier))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||!e.some(V,e.isModifier))&&(H===void 0||!e.some(H,e.isParameter))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:n}).finish(),u.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(D,V,H,ie,W){return h(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return h(e.concatenate(D,V),H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isBlock(W))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isBlock(fe))}}).deprecate({1:r}).finish(),u.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(D,V,H,ie,W,fe){return v(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return v(D,e.concatenate(V,H),ie,W,fe,ge)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isBlock(W))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isBlock(fe))}}).deprecate({1:r}).finish(),u.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(D,V,H,ie){return I(D,V,H,ie)},1:function(D,V,H,ie,W){return I(e.concatenate(D,V),H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(D,V,H,ie,W){return F(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return F(D,e.concatenate(V,H),ie,W,fe)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5];return W===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(D,V,H){return j(D,V,H)},1:function(D,V,H,ie){return j(V,H,ie)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||e.every(H,e.isParameter))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.every(H,e.isModifier))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isTypeNode(W))}}).deprecate({1:n}).finish(),u.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(D,V,H,ie){return x(D,V,H,ie)},1:function(D,V,H,ie,W){return x(D,H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||e.every(H,e.isParameter))&&(ie===void 0||!e.isArray(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.every(H,e.isModifier))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isTypeNode(W))}}).deprecate({1:n}).finish(),u.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(D){return w(D)},1:function(D,V,H){return w(H)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2];return H===void 0&&ie===void 0&&(V===void 0||!e.isArray(V))},1:function(D){var V=D[0],H=D[1],ie=D[2];return(V===void 0||e.isArray(V))&&(H===void 0||e.isArray(V))&&(ie===void 0||e.isBlock(ie))}}).deprecate({1:i}).finish(),u.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(D,V){return A(D,V)},1:function(D,V,H,ie){return A(D,ie)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3];return H===void 0&&ie===void 0&&(V===void 0||!e.isArray(V))},1:function(D){var V=D[1],H=D[2],ie=D[3];return(V===void 0||e.isArray(V))&&(H===void 0||e.isArray(V))&&(ie===void 0||e.isBlock(ie))}}).deprecate({1:i}).finish(),u.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(D,V,H,ie,W){return ee(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return ee(e.concatenate(D,V),H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.every(ie,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.isArray(fe))}}).deprecate({1:n}).finish(),u.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(D,V,H,ie,W,fe){return ne(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return ne(D,e.concatenate(V,H),ie,W,fe,ge)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.every(ie,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.isArray(fe))}}).deprecate({1:n}).finish(),u.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(D,V,H,ie,W,fe,ge){return ae(D,V,H,ie,W,fe,ge)},1:function(D,V,H,ie,W,fe,ge,De){return ae(V,H,ie,W,fe,ge,De)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6],De=D[7];return De===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||typeof H=="string"||e.isIdentifier(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isParameter))&&(fe===void 0||!e.isArray(fe))&&(ge===void 0||e.isBlock(ge))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6],De=D[7];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H!="string"&&e.isAsteriskToken(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.isArray(fe))&&(ge===void 0||e.isTypeNode(ge))&&(De===void 0||e.isBlock(De))}}).deprecate({1:n}).finish(),u.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(D,V,H,ie,W,fe,ge,De){return Y(D,V,H,ie,W,fe,ge,De)},1:function(D,V,H,ie,W,fe,ge,De,Ve){return Y(D,H,ie,W,fe,ge,De,Ve)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7],De=D[8];return De===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isIdentifier(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isParameter))&&(fe===void 0||!e.isArray(fe))&&(ge===void 0||e.isBlock(ge))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6],ge=D[7],De=D[8];return(V===void 0||e.isArray(V))&&(H===void 0||typeof H!="string"&&e.isAsteriskToken(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.isArray(fe))&&(ge===void 0||e.isTypeNode(ge))&&(De===void 0||e.isBlock(De))}}).deprecate({1:n}).finish(),u.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(D,V,H,ie,W){return c(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return c(e.concatenate(D,V),H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(){return!0}}).deprecate({1:r}).finish(),u.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(D,V,H,ie,W,fe){return N(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return N(D,e.concatenate(V,H),ie,W,fe,ge)}}).bind({0:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return fe===void 0&&(V===void 0||!e.isArray(V))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(D){var V=D[2],H=D[3],ie=D[4],W=D[5],fe=D[6];return(V===void 0||e.isArray(V))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.every(ie,e.isTypeParameterDeclaration))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.isArray(fe))}}).deprecate({1:r}).finish(),u.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(D,V,H,ie,W){return G(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return G(V,H,ie,W,fe)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4],ge=D[5];return ge===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.every(fe,e.isTypeElement))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4],ge=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.every(fe,e.isHeritageClause))&&(ge===void 0||e.every(ge,e.isTypeElement))}}).deprecate({1:n}).finish(),u.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(D,V,H,ie,W,fe){return k(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return k(D,H,ie,W,fe,ge)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return ge===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.every(fe,e.isTypeElement))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.every(fe,e.isHeritageClause))&&(ge===void 0||e.every(ge,e.isTypeElement))}}).deprecate({1:n}).finish(),u.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(D,V,H,ie){return M(D,V,H,ie)},1:function(D,V,H,ie,W){return M(V,H,ie,W)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||!e.isArray(W))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||e.isTypeNode(fe))}}).deprecate({1:n}).finish(),u.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(D,V,H,ie,W){return X(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return X(D,H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))&&(W===void 0||!e.isArray(W))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||e.isTypeNode(fe))}}).deprecate({1:n}).finish(),u.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(D,V,H){return R(D,V,H)},1:function(D,V,H,ie){return R(V,H,ie)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(D,V,H,ie){return U(D,V,H,ie)},1:function(D,V,H,ie,W){return U(D,H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isArray(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(D,V,H,ie){return J(D,V,H,ie)},1:function(D,V,H,ie,W){return J(V,H,ie,W)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&H!==void 0&&!e.isArray(H)&&(ie===void 0||e.isModuleBody(ie))&&(W===void 0||typeof W=="number")},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&ie!==void 0&&e.isModuleName(ie)&&(W===void 0||typeof W=="object")&&(fe===void 0||typeof fe=="number")}}).deprecate({1:n}).finish(),u.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(D,V,H,ie){return re(D,V,H,ie)},1:function(D,V,H,ie,W){return re(D,H,ie,W)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isModuleBody(ie))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&ie!==void 0&&e.isModuleName(ie)&&(W===void 0||e.isModuleBody(W))}}).deprecate({1:n}).finish(),u.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(D,V,H,ie){return te(D,V,H,ie)},1:function(D,V,H,ie,W){return te(V,H,ie,W)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||typeof H=="boolean")&&typeof ie!="boolean"&&typeof W!="string"},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||typeof ie=="boolean")&&(typeof W=="string"||e.isIdentifier(W))&&fe!==void 0&&e.isModuleReference(fe)}}).deprecate({1:n}).finish(),u.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(D,V,H,ie,W){return se(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return se(D,H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||typeof H=="boolean")&&typeof ie!="boolean"&&typeof W!="string"},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||typeof ie=="boolean")&&(typeof W=="string"||e.isIdentifier(W))&&fe!==void 0&&e.isModuleReference(fe)}}).deprecate({1:n}).finish(),u.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(D,V,H,ie){return ue(D,V,H,ie)},1:function(D,V,H,ie,W){return ue(V,H,ie,W)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&ie!==void 0&&e.isExpression(ie)&&(W===void 0||e.isAssertClause(W))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.isImportClause(ie))&&W!==void 0&&e.isExpression(W)&&(fe===void 0||e.isAssertClause(fe))}}).deprecate({1:n}).finish(),u.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(D,V,H,ie,W){return q(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return q(D,H,ie,W,fe)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return fe===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||!e.isArray(H))&&(ie===void 0||e.isExpression(ie))&&(W===void 0||e.isAssertClause(W))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||e.isImportClause(ie))&&W!==void 0&&e.isExpression(W)&&(fe===void 0||e.isAssertClause(fe))}}).deprecate({1:n}).finish(),u.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(D,V,H){return Q(D,V,H)},1:function(D,V,H,ie){return Q(V,H,ie)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return W===void 0&&(V===void 0||e.every(V,e.isModifier))&&(H===void 0||typeof H=="boolean")&&typeof ie=="object"},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&(ie===void 0||typeof ie=="boolean")&&W!==void 0&&e.isExpression(W)}}).deprecate({1:n}).finish(),u.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(D,V,H){return P(D,V,H)},1:function(D,V,H,ie){return P(D,H,ie)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3];return ie===void 0&&(V===void 0||e.every(V,e.isModifier))&&H!==void 0&&!e.isArray(H)},1:function(D){var V=D[1],H=D[2],ie=D[3];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&ie!==void 0&&e.isExpression(ie)}}).deprecate({1:n}).finish(),u.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(D,V,H,ie,W){return L(D,V,H,ie,W)},1:function(D,V,H,ie,W,fe){return L(V,H,ie,W,fe)}}).bind({0:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4],ge=D[5];return ge===void 0&&(V===void 0||e.every(V,e.isModifier))&&typeof H=="boolean"&&typeof ie!="boolean"&&(W===void 0||e.isExpression(W))&&(fe===void 0||e.isAssertClause(fe))},1:function(D){var V=D[0],H=D[1],ie=D[2],W=D[3],fe=D[4],ge=D[5];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&typeof ie=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(fe===void 0||e.isExpression(fe))&&(ge===void 0||e.isAssertClause(ge))}}).deprecate({1:n}).finish(),u.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(D,V,H,ie,W,fe){return z(D,V,H,ie,W,fe)},1:function(D,V,H,ie,W,fe,ge){return z(D,H,ie,W,fe,ge)}}).bind({0:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return ge===void 0&&(V===void 0||e.every(V,e.isModifier))&&typeof H=="boolean"&&typeof ie!="boolean"&&(W===void 0||e.isExpression(W))&&(fe===void 0||e.isAssertClause(fe))},1:function(D){var V=D[1],H=D[2],ie=D[3],W=D[4],fe=D[5],ge=D[6];return(V===void 0||e.every(V,e.isDecorator))&&(H===void 0||e.isArray(H))&&typeof ie=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(fe===void 0||e.isExpression(fe))&&(ge===void 0||e.isAssertClause(ge))}}).deprecate({1:n}).finish()}var s=e.createNodeFactory;e.createNodeFactory=function(u,d){var f=s(u,d);return a(f),f},a(e.factory)})(Ar||(Ar={}));var Ar;(function(e){typeof console<"u"&&(e.Debug.loggingHost={log:function(r,n){switch(r){case e.LogLevel.Error:return console.error(n);case e.LogLevel.Warning:return console.warn(n);case e.LogLevel.Info:return console.log(n);case e.LogLevel.Verbose:return console.log(n)}}})})(Ar||(Ar={}))});var I0r={};TLe(I0r,{configs:()=>w0r,rules:()=>k0r});module.exports=ALe(I0r);var vv=S5(tke()),mb=S5(Bke()),S0r=vv.ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`),jke=S0r({name:"valid-lexical-scope",defaultOptions:[{allowAny:!0}],meta:{type:"problem",docs:{description:"Used the tsc typechecker to detect the capture of unserializable data in dollar ($) scopes.",recommended:"error"},schema:[{type:"object",properties:{allowAny:{type:"boolean"}},default:{allowAny:!0}}],messages:{referencesOutside:'Identifier ("{{varName}}") can not be captured inside the scope ({{dollarName}}) because {{reason}}. Check out https://qwik.builder.io/docs/advanced/optimizer for more details.',unvalidJsxDollar:"JSX attributes that end with $ can only take an inlined arrow function of a QRL identifier. Make sure the value is created using $()",mutableIdentifier:'The value of the identifier ("{{varName}}") can not be changed once it is captured the scope ({{dollarName}}). Check out https://qwik.builder.io/docs/advanced/optimizer for more details.'}},create(e){var _;let n={allowAny:((_=e.options[0])==null?void 0:_.allowAny)??!0},i=e.getSourceCode().scopeManager,a=vv.ESLintUtils.getParserServices(e),s=a.esTreeNodeToTSNodeMap,u=a.program.getTypeChecker(),d=new Map,f=[];function p(b){b.references.forEach(E=>{var h,v;let y=E.resolved,T=(h=E.resolved)==null?void 0:h.scope;if(y&&T){let I=(v=y.defs.at(0))==null?void 0:v.type;if(I==="Type"||I==="ImportBinding")return;let F=E.from,j;for(;F&&(j=d.get(F),!j);)F=F.upper;if(F&&j){let x=T.type;if(x==="global")return;let w=E.identifier;w.parent&&w.parent.type===vv.AST_NODE_TYPES.AssignmentExpression&&w.parent.left===w&&e.report({messageId:"mutableIdentifier",node:E.identifier,data:{varName:E.identifier.name,dollarName:j}});let A=s.get(w);if(x==="module"){let ne=u.getSymbolAtLocation(A);if(ne&&f.includes(ne))return;e.report({messageId:"referencesOutside",node:E.identifier,data:{varName:E.identifier.name,dollarName:j,reason:"it's declared at the root of the module and it is not exported. Add export"}});return}let ee=T;for(;ee&&!d.has(ee);)ee=ee.upper;if(ee!==F){let ne=D0r(u,A,E.identifier,n);ne&&e.report({messageId:"referencesOutside",node:E.identifier,data:{varName:E.identifier.name,dollarName:j,reason:C0r(ne)}})}}}}),b.childScopes.forEach(p)}return{CallExpression(b){if(b.callee.type===vv.AST_NODE_TYPES.Identifier&&b.callee.name.endsWith("$")){let E=b.arguments.at(0);if(E&&E.type===vv.AST_NODE_TYPES.ArrowFunctionExpression){let y=i.acquire(E);y&&d.set(y,b.callee.name)}}},JSXAttribute(b){let E=b.name,y=E.type===vv.AST_NODE_TYPES.JSXIdentifier?E.name:E.name.name;if(y.endsWith("$")){let T=b.value;if(T&&T.type===vv.AST_NODE_TYPES.JSXExpressionContainer){let h=i.acquire(T.expression);if(h)d.set(h,y);else if(T.expression.type===vv.AST_NODE_TYPES.Identifier){console.log(T.expression);let v=s.get(T.expression),I=u.getTypeAtLocation(v);Uke(I)||e.report({messageId:"unvalidJsxDollar",node:T.expression})}}}},Program(b){let E=s.get(b),y=u.getSymbolAtLocation(E);y&&(f=u.getExportsOfModule(y))},"Program:exit"(){p(i.globalScope)}}}});function D0r(e,r,n,i){let a=e.getTypeAtLocation(r);return T0r(e,a,r,n,i)}function C0r(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function T0r(e,r,n,i,a){let s=o3(e,r,n,a,0);if(s){let u=s.location;return u&&(s.location=`${i.name}.${u}`),s}return s}function o3(e,r,n,i,a){if(r.getProperty("__no_serialize__"))return;if(r.flags&mb.default.TypeFlags.Unknown)return{type:r,typeStr:e.typeToString(r),reason:"is unknown, which is not serializable"};let u=r.flags&mb.default.TypeFlags.Any;if(!i.allowAny&&u)return{type:r,typeStr:e.typeToString(r),reason:"is any, which is not serializable"};if(r.flags&mb.default.TypeFlags.BigIntLike)return{type:r,typeStr:e.typeToString(r),reason:"is BigInt and it is not supported yet, use a number instead"};if(r.flags&mb.default.TypeFlags.ESSymbolLike)return{type:r,typeStr:e.typeToString(r),reason:"is Symbol, which is not serializable"};if(r.flags&mb.default.TypeFlags.EnumLike)return{type:r,typeStr:e.typeToString(r),reason:"is an enum, use an string or a number instead"};if(Uke(r))return;if(r.getCallSignatures().length>0)return r.symbol.name==="PropFnInterface"?void 0:{type:r,typeStr:e.typeToString(r),reason:"is a function, which is not serializable"};if(r.isUnion()){for(let E of r.types){let y=o3(e,E,n,i,a+1);if(y)return y}return}if((r.flags&mb.default.TypeFlags.Object)!==0){let E=r.symbol.name,y=P0r(r,e);if(y)return o3(e,y,n,i,a+1);if(r.getProperty("nextElementSibling")||r.getProperty("activeElement")||E==="Promise"||E==="URL"||E==="RegExp"||E==="Date")return;if(r.isClass())return{type:r,typeStr:e.typeToString(r),reason:`is an instance of the "${r.symbol.name}" class, which is not serializable. Use a simple object literal instead`};let T=r.getProperty("prototype");if(T){let h=e.getTypeOfSymbolAtLocation(T,n);if(h.isClass())return{type:h,typeStr:e.typeToString(h),reason:"is a class constructor, which is not serializable"}}if(!E.startsWith("__")&&r.symbol.valueDeclaration)return{type:r,typeStr:e.typeToString(r),reason:`is an instance of the "${r.symbol.name}" class, which is not serializable`};for(let h of r.getProperties()){let v=A0r(e,h,n,i,a+1);if(v){let I=v.location;return v.location=`${h.name}${I?`.${I}`:""}`,v}}}}function A0r(e,r,n,i,a){let s=e.getTypeOfSymbolAtLocation(r,n);return o3(e,s,n,i,a)}function P0r(e,r){return r.getElementTypeOfArrayType(e)}function Uke(e){return!!e.getProperty("__brand__QRL__")}var qke={meta:{type:"problem",docs:{description:"Object destructuring is not recommended for component$",category:"Variables",recommended:!0,url:"https://github.com/BuilderIO/qwik"}},create(e){let r=[];return{ArrowFunctionExpression(){r.push({await:!1})},"ArrowFunctionExpression:exit"(){r.pop()},AwaitExpression(){let n=r[r.length-1];n&&(n.await=!0)},"CallExpression[callee.name=/^use/]"(n){let i=r[r.length-1];i&&i.await&&e.report({node:n,message:"Calling use* methods after await is not safe."})}}}};var k0r={"no-use-after-await":qke,"valid-lexical-scope":jke},w0r={recommended:{plugins:["qwik"],rules:{"qwik/no-use-after-await":"error","qwik/valid-lexical-scope":"error"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/no-use-after-await":"error"}}};0&&(module.exports={configs,rules});
|
|
426
426
|
/*
|
|
427
427
|
* @version 1.4.0
|
|
428
428
|
* @date 2015-10-26
|
package/package.json
CHANGED