eslint-plugin-qwik 0.12.0-dev20221027002124 → 0.12.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
|
@@ -421,7 +421,7 @@ m2: `).concat(this.mapper2.__debugToString().split(`
|
|
|
421
421
|
`: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=Pe(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:me,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=Pe(At.fileName),dt=e.formatting.getFormatContext(Wt,z);return e.codefix.getAllFixes({fixId:jt,sourceFile:ze,program:me,host:z,cancellationToken:je,formatContext:dt,preferences:en})}function ke(At,jt,Wt){Wt===void 0&&(Wt=e.emptyOptions),ye(),e.Debug.assert(At.type==="file");var en=Pe(At.fileName),ze=e.formatting.getFormatContext(jt,z);return e.OrganizeImports.organizeImports(en,ze,z,me,Wt,At.skipDestructiveCodeActions)}function cr(At,jt,Wt,en){return en===void 0&&(en=e.emptyOptions),e.getEditsForFileRename(ue(),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 Qa=en.text.substring(Yt[zt],en.getLineEndOfPosition(Yt[zt])),ja=oa.exec(Qa);ja&&(Vi=Math.min(Vi,ja.index),Bn.set(zt.toString(),ja.index),Qa.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?"\\{\\/\\*":"\\/\\*",Qa=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(Qa,")"));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=Pe(At);je.throwIfCancellationRequested();var en=Wt.text,ze=[];if(jt.length>0&&!Qa(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 Qa(ja){return e.stringContains(ja,"/node_modules/")}}function dn(At,jt,Wt){return ye(),e.Rename.getRenameInfo(me,Pe(At),jt,Wt||{})}function mn(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:ue(),host:z,formatContext:e.formatting.getFormatContext(en,z),cancellationToken:je,preferences:Wt,triggerReason:ze,kind:dt}}function Q(At,jt,Wt){return{file:At,program:ue(),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=Pe(At);return e.refactor.getApplicableRefactors(mn(dt,jt,Wt,e.emptyOptions,en,ze))}function Er(At,jt,Wt,en,ze,dt){dt===void 0&&(dt=e.emptyOptions),ye();var Yt=Pe(At);return e.refactor.getEditsForRefactor(mn(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(me,e.getTouchingPropertyName(Pe(At),jt));return Wt&&e.mapOneOrMany(Wt,function(en){return e.CallHierarchy.createCallHierarchyItem(me,en)})}function Rr(At,jt){ye();var Wt=Pe(At),en=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(me,jt===0?Wt:e.getTouchingPropertyName(Wt,jt)));return en?e.CallHierarchy.getIncomingCalls(me,en,je):[]}function Gt(At,jt){ye();var Wt=Pe(At),en=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(me,jt===0?Wt:e.getTouchingPropertyName(Wt,jt)));return en?e.CallHierarchy.getOutgoingCalls(me,en):[]}function Qt(At,jt,Wt){Wt===void 0&&(Wt=e.emptyOptions),ye();var en=Pe(At);return e.InlayHints.provideInlayHints(Q(en,jt,Wt))}var vn={dispose:sr,cleanupSemanticCache:Qe,getSyntacticDiagnostics:Cr,getSemanticDiagnostics:$r,getSuggestionDiagnostics:Ur,getCompilerOptionsDiagnostics:Oe,getSyntacticClassifications:Ot,getSemanticClassifications:jr,getEncodedSyntacticClassifications:kt,getEncodedSemanticClassifications:ut,getCompletionsAtPosition:g,getCompletionEntryDetails:ot,getCompletionEntrySymbol:st,getSignatureHelpItems:Ge,getQuickInfoAtPosition:Wr,getDefinitionAtPosition:_r,getDefinitionAndBoundSpan:xr,getImplementationAtPosition:et,getTypeDefinitionAtPosition:Hr,getReferencesAtPosition:Ee,findReferences:gr,getFileReferences:Tr,getOccurrencesAtPosition:vt,getDocumentHighlights:Ae,getNameOrDottedNameSpan:Zr,getBreakpointStatementAtPosition:pt,getNavigateToItems:Qr,getRenameInfo:dn,getSmartSelectionRange:Le,findRenameLocations:pr,getNavigationBarItems:Ue,getNavigationTree:ir,getOutliningSpans:nn,getTodoComments:wt,getBraceMatchingAtPosition:Mr,getIndentationAtPosition:We,getFormattingEditsForRange:ve,getFormattingEditsForDocument:He,getFormattingEditsAfterKeystroke:Ye,getDocCommentTemplateAtPosition:nr,isValidBraceCompletionAtPosition:xe,getJsxClosingTagAtPosition:tr,getSpanOfEnclosingComment:Ct,getCodeFixesAtPosition:dr,getCombinedCodeFix:Te,applyCodeActionCommand:be,organizeImports:ke,getEditsForFileRename:cr,getEmitOutput:vr,getNonBoundSourceFile:Or,getProgram:ue,getCurrentProgram:function(){return me},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:Qt};switch(W){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:re.forEach(function(At){return vn[At]=function(){throw new Error("LanguageService Operation: ".concat(At," not allowed in LanguageServiceMode.PartialSemantic"))}});break;case e.LanguageServiceMode.Syntactic:M.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 V(z){return z.nameTable||ee(z),z.nameTable}e.getNameTable=V;function ee(z){var C=z.nameTable=new e.Map;z.forEachChild(function J(X){if(e.isIdentifier(X)&&!e.isTagName(X)&&X.escapedText||e.isStringOrNumericLiteralLike(X)&&te(X)){var ie=e.getEscapedTextOfIdentifierOrLiteral(X);C.set(ie,C.get(ie)===void 0?X.pos:-1)}else if(e.isPrivateIdentifier(X)){var ie=X.escapedText;C.set(ie,C.get(ie)===void 0?X.pos:-1)}if(e.forEachChild(X,J),e.hasJSDocNodes(X))for(var W=0,fe=X.jsDoc;W<fe.length;W++){var me=fe[W];e.forEachChild(me,J)}})}function te(z){return e.isDeclarationName(z)||z.parent.kind===277||k(z)||e.isLiteralComputedPropertyDeclarationName(z)}function se(z){var C=ce(z);return C&&(e.isObjectLiteralExpression(C.parent)||e.isJsxAttributes(C.parent))?C:void 0}e.getContainingObjectLiteralElement=se;function ce(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,C){var J=se(z);if(J){var X=C.getContextualType(J.parent),ie=X&&K(J,C,X,!1);if(ie&&ie.length===1)return e.first(ie)}return C.getSymbolAtLocation(z)}function K(z,C,J,X){var ie=e.getNameFromPropertyName(z.name);if(!ie)return e.emptyArray;if(!J.isUnion()){var W=J.getProperty(ie);return W?[W]:e.emptyArray}var fe=e.mapDefined(J.types,function(me){return(e.isObjectLiteralExpression(z.parent)||e.isJsxAttributes(z.parent))&&C.isTypeInvalidDueToUnionDiscriminant(me,z.parent)?void 0:me.getProperty(ie)});if(X&&(fe.length===0||fe.length===J.types.length)){var W=J.getProperty(ie);if(W)return[W]}return fe.length===0?e.mapDefined(J.types,function(me){return me.getProperty(ie)}):fe}e.getPropertySymbolsFromContextualType=K;function k(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,F){var N=e.canHaveDecorators(v)?e.findLast(v.modifiers,e.isDecorator):void 0,j=N?e.skipTrivia(a.text,N.end):v.getStart(a);return e.createTextSpanFromBounds(j,(F||v).getEnd())}function _(v,F){return p(v,e.findNextToken(F,F.parent,a))}function b(v,F){return v&&d===a.getLineAndCharacterOfPosition(v.getStart(a)).line?h(v):h(F)}function E(v,F,N){if(v){var j=v.indexOf(F);if(j>=0){for(var x=j,w=j+1;x>0&&N(v[x-1]);)x--;for(;w<v.length&&N(v[w]);)w++;return e.createTextSpanFromBounds(e.skipTrivia(a.text,v[x].pos),v[w-1].end)}}return p(F)}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 F=v.parent;switch(v.kind){case 237:return oe(v.declarationList.declarations[0]);case 254:case 167:case 166:return oe(v);case 164:return l(v);case 256:case 169:case 168:case 172:case 173:case 171:case 213:case 214:return $(v);case 235:if(e.isFunctionBlock(v))return P(v);case 262:return B(v);case 292:return B(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 M(v);case 243:return _(v,v.expression);case 244:return re(v);case 249:return _(v,v.expression);case 289:case 290:return h(v.statements[0]);case 252:return B(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(F.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 ee(v);case 19:return te(v);case 23:return se(v);case 20:return ce(v);case 21:return q(v);case 58:return K(v);case 31:case 29:return k(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 V(v);if((v.kind===79||v.kind===225||v.kind===296||v.kind===297)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(F))return p(v);if(v.kind===221){var N=v,j=N.left,x=N.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(j))return V(j);if(x.kind===63&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(v.parent))return p(v);if(x.kind===27)return h(j)}if(e.isExpressionNode(v))switch(F.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,Z=w.type;if(A===v||Z===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(C){return e.isVariableDeclarationList(C.parent)&&C.parent.declarations[0]===C?p(e.findPrecedingToken(C.pos,a,C.parent),C):p(C)}function oe(C){if(C.parent.parent.kind===243)return h(C.parent.parent);var J=C.parent;if(e.isBindingPattern(C.name))return U(C.name);if(e.hasOnlyExpressionInitializer(C)&&C.initializer||e.hasSyntacticModifier(C,1)||J.parent.kind===244)return ne(C);if(e.isVariableDeclarationList(C.parent)&&C.parent.declarations[0]!==C)return h(e.findPrecedingToken(C.pos,a,C.parent))}function Y(C){return!!C.initializer||C.dotDotDotToken!==void 0||e.hasSyntacticModifier(C,12)}function l(C){if(e.isBindingPattern(C.name))return U(C.name);if(Y(C))return p(C);var J=C.parent,X=J.parameters.indexOf(C);return e.Debug.assert(X!==-1),X!==0?l(J.parameters[X-1]):h(J.body)}function O(C){return e.hasSyntacticModifier(C,1)||C.parent.kind===257&&C.kind!==171}function $(C){if(!!C.body)return O(C)?p(C):h(C.body)}function P(C){var J=C.statements.length?C.statements[0]:C.getLastToken();return O(C.parent)?b(C.parent,J):h(J)}function B(C){switch(C.parent.kind){case 261:if(e.getModuleInstanceState(C.parent)!==1)return;case 241:case 239:case 243:return b(C.parent,C.statements[0]);case 242:case 244:return b(e.findPrecedingToken(C.pos,a,C.parent),C.statements[0])}return h(C.statements[0])}function re(C){if(C.initializer.kind===255){var J=C.initializer;if(J.declarations.length>0)return h(J.declarations[0])}else return h(C.initializer)}function M(C){if(C.initializer)return re(C);if(C.condition)return p(C.condition);if(C.incrementor)return p(C.incrementor)}function U(C){var J=e.forEach(C.elements,function(X){return X.kind!==227?X:void 0});return J?h(J):C.parent.kind===203?p(C.parent):ne(C.parent)}function V(C){e.Debug.assert(C.kind!==202&&C.kind!==201);var J=C.kind===204?C.elements:C.properties,X=e.forEach(J,function(ie){return ie.kind!==227?ie:void 0});return X?h(X):p(C.parent.kind===221?C.parent:C)}function ee(C){switch(C.parent.kind){case 260:var J=C.parent;return b(e.findPrecedingToken(C.pos,a,C.parent),J.members.length?J.members[0]:J.getLastToken(a));case 257:var X=C.parent;return b(e.findPrecedingToken(C.pos,a,C.parent),X.members.length?X.members[0]:X.getLastToken(a));case 263:return b(C.parent.parent,C.parent.clauses[0])}return h(C.parent)}function te(C){switch(C.parent.kind){case 262:if(e.getModuleInstanceState(C.parent.parent)!==1)return;case 260:case 257:return p(C);case 235:if(e.isFunctionBlock(C.parent))return p(C);case 292:return h(e.lastOrUndefined(C.parent.statements));case 263:var J=C.parent,X=e.lastOrUndefined(J.clauses);return X?h(e.lastOrUndefined(X.statements)):void 0;case 201:var ie=C.parent;return h(e.lastOrUndefined(ie.elements)||ie);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(C.parent)){var W=C.parent;return p(e.lastOrUndefined(W.properties)||W)}return h(C.parent)}}function se(C){switch(C.parent.kind){case 202:var J=C.parent;return p(e.lastOrUndefined(J.elements)||J);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(C.parent)){var X=C.parent;return p(e.lastOrUndefined(X.elements)||X)}return h(C.parent)}}function ce(C){return C.parent.kind===240||C.parent.kind===208||C.parent.kind===209?y(C):C.parent.kind===212?T(C):h(C.parent)}function q(C){switch(C.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(C);default:return h(C.parent)}}function K(C){return e.isFunctionLike(C.parent)||C.parent.kind===296||C.parent.kind===164?y(C):h(C.parent)}function k(C){return C.parent.kind===211?T(C):h(C.parent)}function L(C){return C.parent.kind===240?_(C,C.parent.expression):h(C.parent)}function z(C){return C.parent.kind===244?T(C):h(C.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 yq=function(){return this}(),Ar;(function(e){function r(v,F){v&&v.log("*INTERNAL ERROR* - Exception in typescript services: "+F.message)}var n=function(){function v(F){this.scriptSnapshotShim=F}return v.prototype.getText=function(F,N){return this.scriptSnapshotShim.getText(F,N)},v.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},v.prototype.getChangeRange=function(F){var N=F,j=this.scriptSnapshotShim.getChangeRange(N.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(F){var N=this;this.shimHost=F,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(j,x){var w=JSON.parse(N.shimHost.getModuleResolutionsForFile(x));return e.map(j,function(A){var Z=e.getProperty(w,A);return Z?{resolvedFileName:Z,extension:e.extensionFromPath(Z),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(j){return N.shimHost.directoryExists(j)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(j,x){var w=JSON.parse(N.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(F){this.loggingEnabled&&this.shimHost.log(F)},v.prototype.trace=function(F){this.tracingEnabled&&this.shimHost.trace(F)},v.prototype.error=function(F){this.shimHost.error(F)},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 F=this.shimHost.getCompilationSettings();if(F===null||F==="")throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var N=JSON.parse(F);return N.allowNonTsExtensions=!0,N},v.prototype.getScriptFileNames=function(){var F=this.shimHost.getScriptFileNames();return JSON.parse(F)},v.prototype.getScriptSnapshot=function(F){var N=this.shimHost.getScriptSnapshot(F);return N&&new n(N)},v.prototype.getScriptKind=function(F){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(F):0},v.prototype.getScriptVersion=function(F){return this.shimHost.getScriptVersion(F)},v.prototype.getLocalizedDiagnosticMessages=function(){var F=this.shimHost.getLocalizedDiagnosticMessages();if(F===null||F==="")return null;try{return JSON.parse(F)}catch(N){return this.log(N.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},v.prototype.getCancellationToken=function(){var F=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(F)},v.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},v.prototype.getDirectories=function(F){return JSON.parse(this.shimHost.getDirectories(F))},v.prototype.getDefaultLibFileName=function(F){return this.shimHost.getDefaultLibFileName(JSON.stringify(F))},v.prototype.readDirectory=function(F,N,j,x,w){var A=e.getFileMatcherPatterns(F,j,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(F,JSON.stringify(N),JSON.stringify(A.basePaths),A.excludePattern,A.includeFilePattern,A.includeDirectoryPattern,w))},v.prototype.readFile=function(F,N){return this.shimHost.readFile(F,N)},v.prototype.fileExists=function(F){return this.shimHost.fileExists(F)},v}();e.LanguageServiceShimHostAdapter=i;var a=function(){function v(F){var N=this;this.shimHost=F,this.useCaseSensitiveFileNames=this.shimHost.useCaseSensitiveFileNames?this.shimHost.useCaseSensitiveFileNames():!1,"directoryExists"in this.shimHost?this.directoryExists=function(j){return N.shimHost.directoryExists(j)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(j){return N.shimHost.realpath(j)}:this.realpath=void 0}return v.prototype.readDirectory=function(F,N,j,x,w){var A=e.getFileMatcherPatterns(F,j,x,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(F,JSON.stringify(N),JSON.stringify(A.basePaths),A.excludePattern,A.includeFilePattern,A.includeDirectoryPattern,w))},v.prototype.fileExists=function(F){return this.shimHost.fileExists(F)},v.prototype.readFile=function(F){return this.shimHost.readFile(F)},v.prototype.getDirectories=function(F){return JSON.parse(this.shimHost.getDirectories(F))},v}();e.CoreServicesShimHostAdapter=a;function s(v,F,N,j){var x;j&&(v.log(F),x=e.timestamp());var w=N();if(j){var A=e.timestamp();if(v.log("".concat(F," completed in ").concat(A-x," msec")),e.isString(w)){var Z=w;Z.length>128&&(Z=Z.substring(0,128)+"..."),v.log(" result.length=".concat(Z.length,", result='").concat(JSON.stringify(Z),"'"))}}return w}function u(v,F,N,j){return d(v,F,!0,N,j)}function d(v,F,N,j,x){try{var w=s(v,F,j,x);return N?JSON.stringify({result:w}):w}catch(A){return A instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(r(v,A),A.description=F,JSON.stringify({error:A}))}}var f=function(){function v(F){this.factory=F,F.registerShim(this)}return v.prototype.dispose=function(F){this.factory.unregisterShim(this)},v}();function p(v,F){return v.map(function(N){return _(N,F)})}e.realizeDiagnostics=p;function _(v,F){return{message:e.flattenDiagnosticMessageText(v.messageText,F),start:v.start,length:v.length,category:e.diagnosticCategoryName(v),code:v.code,reportsUnnecessary:v.reportsUnnecessary,reportsDeprecated:v.reportsDeprecated}}var b=function(v){ME(F,v);function F(N,j,x){var w=v.call(this,N)||this;return w.host=j,w.languageService=x,w.logPerformance=!1,w.logger=w.host,w}return F.prototype.forwardJSONCall=function(N,j){return u(this.logger,N,j,this.logPerformance)},F.prototype.dispose=function(N){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,yq&&yq.CollectGarbage&&(yq.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,v.prototype.dispose.call(this,N)},F.prototype.refresh=function(N){this.forwardJSONCall("refresh(".concat(N,")"),function(){return null})},F.prototype.cleanupSemanticCache=function(){var N=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return N.languageService.cleanupSemanticCache(),null})},F.prototype.realizeDiagnostics=function(N){var j=e.getNewLineOrDefaultFromHost(this.host);return p(N,j)},F.prototype.getSyntacticClassifications=function(N,j,x){var w=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(N,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.getSyntacticClassifications(N,e.createTextSpan(j,x))})},F.prototype.getSemanticClassifications=function(N,j,x){var w=this;return this.forwardJSONCall("getSemanticClassifications('".concat(N,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.getSemanticClassifications(N,e.createTextSpan(j,x))})},F.prototype.getEncodedSyntacticClassifications=function(N,j,x){var w=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(N,"', ").concat(j,", ").concat(x,")"),function(){return E(w.languageService.getEncodedSyntacticClassifications(N,e.createTextSpan(j,x)))})},F.prototype.getEncodedSemanticClassifications=function(N,j,x){var w=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(N,"', ").concat(j,", ").concat(x,")"),function(){return E(w.languageService.getEncodedSemanticClassifications(N,e.createTextSpan(j,x)))})},F.prototype.getSyntacticDiagnostics=function(N){var j=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(N,"')"),function(){var x=j.languageService.getSyntacticDiagnostics(N);return j.realizeDiagnostics(x)})},F.prototype.getSemanticDiagnostics=function(N){var j=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(N,"')"),function(){var x=j.languageService.getSemanticDiagnostics(N);return j.realizeDiagnostics(x)})},F.prototype.getSuggestionDiagnostics=function(N){var j=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(N,"')"),function(){return j.realizeDiagnostics(j.languageService.getSuggestionDiagnostics(N))})},F.prototype.getCompilerOptionsDiagnostics=function(){var N=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var j=N.languageService.getCompilerOptionsDiagnostics();return N.realizeDiagnostics(j)})},F.prototype.getQuickInfoAtPosition=function(N,j){var x=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getQuickInfoAtPosition(N,j)})},F.prototype.getNameOrDottedNameSpan=function(N,j,x){var w=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(N,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.getNameOrDottedNameSpan(N,j,x)})},F.prototype.getBreakpointStatementAtPosition=function(N,j){var x=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getBreakpointStatementAtPosition(N,j)})},F.prototype.getSignatureHelpItems=function(N,j,x){var w=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(N,"', ").concat(j,")"),function(){return w.languageService.getSignatureHelpItems(N,j,x)})},F.prototype.getDefinitionAtPosition=function(N,j){var x=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getDefinitionAtPosition(N,j)})},F.prototype.getDefinitionAndBoundSpan=function(N,j){var x=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getDefinitionAndBoundSpan(N,j)})},F.prototype.getTypeDefinitionAtPosition=function(N,j){var x=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getTypeDefinitionAtPosition(N,j)})},F.prototype.getImplementationAtPosition=function(N,j){var x=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getImplementationAtPosition(N,j)})},F.prototype.getRenameInfo=function(N,j,x){var w=this;return this.forwardJSONCall("getRenameInfo('".concat(N,"', ").concat(j,")"),function(){return w.languageService.getRenameInfo(N,j,x)})},F.prototype.getSmartSelectionRange=function(N,j){var x=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getSmartSelectionRange(N,j)})},F.prototype.findRenameLocations=function(N,j,x,w,A){var Z=this;return this.forwardJSONCall("findRenameLocations('".concat(N,"', ").concat(j,", ").concat(x,", ").concat(w,", ").concat(A,")"),function(){return Z.languageService.findRenameLocations(N,j,x,w,A)})},F.prototype.getBraceMatchingAtPosition=function(N,j){var x=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getBraceMatchingAtPosition(N,j)})},F.prototype.isValidBraceCompletionAtPosition=function(N,j,x){var w=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(N,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.isValidBraceCompletionAtPosition(N,j,x)})},F.prototype.getSpanOfEnclosingComment=function(N,j,x){var w=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(N,"', ").concat(j,")"),function(){return w.languageService.getSpanOfEnclosingComment(N,j,x)})},F.prototype.getIndentationAtPosition=function(N,j,x){var w=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(N,"', ").concat(j,")"),function(){var A=JSON.parse(x);return w.languageService.getIndentationAtPosition(N,j,A)})},F.prototype.getReferencesAtPosition=function(N,j){var x=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getReferencesAtPosition(N,j)})},F.prototype.findReferences=function(N,j){var x=this;return this.forwardJSONCall("findReferences('".concat(N,"', ").concat(j,")"),function(){return x.languageService.findReferences(N,j)})},F.prototype.getFileReferences=function(N){var j=this;return this.forwardJSONCall("getFileReferences('".concat(N,")"),function(){return j.languageService.getFileReferences(N)})},F.prototype.getOccurrencesAtPosition=function(N,j){var x=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(N,"', ").concat(j,")"),function(){return x.languageService.getOccurrencesAtPosition(N,j)})},F.prototype.getDocumentHighlights=function(N,j,x){var w=this;return this.forwardJSONCall("getDocumentHighlights('".concat(N,"', ").concat(j,")"),function(){var A=w.languageService.getDocumentHighlights(N,j,JSON.parse(x)),Z=e.toFileNameLowerCase(e.normalizeSlashes(N));return e.filter(A,function(ne){return e.toFileNameLowerCase(e.normalizeSlashes(ne.fileName))===Z})})},F.prototype.getCompletionsAtPosition=function(N,j,x,w){var A=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(N,"', ").concat(j,", ").concat(x,", ").concat(w,")"),function(){return A.languageService.getCompletionsAtPosition(N,j,x,w)})},F.prototype.getCompletionEntryDetails=function(N,j,x,w,A,Z,ne){var oe=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(N,"', ").concat(j,", '").concat(x,"')"),function(){var Y=w===void 0?void 0:JSON.parse(w);return oe.languageService.getCompletionEntryDetails(N,j,x,Y,A,Z,ne)})},F.prototype.getFormattingEditsForRange=function(N,j,x,w){var A=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(N,"', ").concat(j,", ").concat(x,")"),function(){var Z=JSON.parse(w);return A.languageService.getFormattingEditsForRange(N,j,x,Z)})},F.prototype.getFormattingEditsForDocument=function(N,j){var x=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(N,"')"),function(){var w=JSON.parse(j);return x.languageService.getFormattingEditsForDocument(N,w)})},F.prototype.getFormattingEditsAfterKeystroke=function(N,j,x,w){var A=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(N,"', ").concat(j,", '").concat(x,"')"),function(){var Z=JSON.parse(w);return A.languageService.getFormattingEditsAfterKeystroke(N,j,x,Z)})},F.prototype.getDocCommentTemplateAtPosition=function(N,j,x){var w=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(N,"', ").concat(j,")"),function(){return w.languageService.getDocCommentTemplateAtPosition(N,j,x)})},F.prototype.getNavigateToItems=function(N,j,x){var w=this;return this.forwardJSONCall("getNavigateToItems('".concat(N,"', ").concat(j,", ").concat(x,")"),function(){return w.languageService.getNavigateToItems(N,j,x)})},F.prototype.getNavigationBarItems=function(N){var j=this;return this.forwardJSONCall("getNavigationBarItems('".concat(N,"')"),function(){return j.languageService.getNavigationBarItems(N)})},F.prototype.getNavigationTree=function(N){var j=this;return this.forwardJSONCall("getNavigationTree('".concat(N,"')"),function(){return j.languageService.getNavigationTree(N)})},F.prototype.getOutliningSpans=function(N){var j=this;return this.forwardJSONCall("getOutliningSpans('".concat(N,"')"),function(){return j.languageService.getOutliningSpans(N)})},F.prototype.getTodoComments=function(N,j){var x=this;return this.forwardJSONCall("getTodoComments('".concat(N,"')"),function(){return x.languageService.getTodoComments(N,JSON.parse(j))})},F.prototype.prepareCallHierarchy=function(N,j){var x=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(N,"', ").concat(j,")"),function(){return x.languageService.prepareCallHierarchy(N,j)})},F.prototype.provideCallHierarchyIncomingCalls=function(N,j){var x=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(N,"', ").concat(j,")"),function(){return x.languageService.provideCallHierarchyIncomingCalls(N,j)})},F.prototype.provideCallHierarchyOutgoingCalls=function(N,j){var x=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(N,"', ").concat(j,")"),function(){return x.languageService.provideCallHierarchyOutgoingCalls(N,j)})},F.prototype.provideInlayHints=function(N,j,x){var w=this;return this.forwardJSONCall("provideInlayHints('".concat(N,"', '").concat(JSON.stringify(j),"', ").concat(JSON.stringify(x),")"),function(){return w.languageService.provideInlayHints(N,j,x)})},F.prototype.getEmitOutput=function(N){var j=this;return this.forwardJSONCall("getEmitOutput('".concat(N,"')"),function(){var x=j.languageService.getEmitOutput(N),w=x.diagnostics,A=Eq(x,["diagnostics"]);return Mn(Mn({},A),{diagnostics:j.realizeDiagnostics(w)})})},F.prototype.getEmitOutputObject=function(N){var j=this;return d(this.logger,"getEmitOutput('".concat(N,"')"),!1,function(){return j.languageService.getEmitOutput(N)},this.logPerformance)},F.prototype.toggleLineComment=function(N,j){var x=this;return this.forwardJSONCall("toggleLineComment('".concat(N,"', '").concat(JSON.stringify(j),"')"),function(){return x.languageService.toggleLineComment(N,j)})},F.prototype.toggleMultilineComment=function(N,j){var x=this;return this.forwardJSONCall("toggleMultilineComment('".concat(N,"', '").concat(JSON.stringify(j),"')"),function(){return x.languageService.toggleMultilineComment(N,j)})},F.prototype.commentSelection=function(N,j){var x=this;return this.forwardJSONCall("commentSelection('".concat(N,"', '").concat(JSON.stringify(j),"')"),function(){return x.languageService.commentSelection(N,j)})},F.prototype.uncommentSelection=function(N,j){var x=this;return this.forwardJSONCall("uncommentSelection('".concat(N,"', '").concat(JSON.stringify(j),"')"),function(){return x.languageService.uncommentSelection(N,j)})},F}(f);function E(v){return{spans:v.spans.join(","),endOfLineState:v.endOfLineState}}var y=function(v){ME(F,v);function F(N,j){var x=v.call(this,N)||this;return x.logger=j,x.logPerformance=!1,x.classifier=e.createClassifier(),x}return F.prototype.getEncodedLexicalClassifications=function(N,j,x){var w=this;return x===void 0&&(x=!1),u(this.logger,"getEncodedLexicalClassifications",function(){return E(w.classifier.getEncodedLexicalClassifications(N,j,x))},this.logPerformance)},F.prototype.getClassificationsForLine=function(N,j,x){x===void 0&&(x=!1);for(var w=this.classifier.getClassificationsForLine(N,j,x),A="",Z=0,ne=w.entries;Z<ne.length;Z++){var oe=ne[Z];A+=oe.length+`
|
|
422
422
|
`,A+=oe.classification+`
|
|
423
423
|
`}return A+=w.finalLexState,A},F}(f),T=function(v){ME(F,v);function F(N,j,x){var w=v.call(this,N)||this;return w.logger=j,w.host=x,w.logPerformance=!1,w}return F.prototype.forwardJSONCall=function(N,j){return u(this.logger,N,j,this.logPerformance)},F.prototype.resolveModuleName=function(N,j,x){var w=this;return this.forwardJSONCall("resolveModuleName('".concat(N,"')"),function(){var A=JSON.parse(x),Z=e.resolveModuleName(j,e.normalizeSlashes(N),A,w.host),ne=Z.resolvedModule?Z.resolvedModule.resolvedFileName:void 0;return Z.resolvedModule&&Z.resolvedModule.extension!==".ts"&&Z.resolvedModule.extension!==".tsx"&&Z.resolvedModule.extension!==".d.ts"&&(ne=void 0),{resolvedFileName:ne,failedLookupLocations:Z.failedLookupLocations,affectingLocations:Z.affectingLocations}})},F.prototype.resolveTypeReferenceDirective=function(N,j,x){var w=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(N,")"),function(){var A=JSON.parse(x),Z=e.resolveTypeReferenceDirective(j,e.normalizeSlashes(N),A,w.host);return{resolvedFileName:Z.resolvedTypeReferenceDirective?Z.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:Z.resolvedTypeReferenceDirective?Z.resolvedTypeReferenceDirective.primary:!0,failedLookupLocations:Z.failedLookupLocations}})},F.prototype.getPreProcessedFileInfo=function(N,j){var x=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(N,"')"),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)}})},F.prototype.getAutomaticTypeDirectiveNames=function(N){var j=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(N,"')"),function(){var x=JSON.parse(N);return e.getAutomaticTypeDirectiveNames(x,j.host)})},F.prototype.convertFileReferences=function(N){if(!!N){for(var j=[],x=0,w=N;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}},F.prototype.getTSConfigFileInfo=function(N,j){var x=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(N,"')"),function(){var w=e.parseJsonText(N,e.getSnapshotText(j)),A=e.normalizeSlashes(N),Z=e.parseJsonSourceFileConfigFileContent(w,x.host,e.getDirectoryPath(A),{},A);return{options:Z.options,typeAcquisition:Z.typeAcquisition,files:Z.fileNames,raw:Z.raw,errors:p(Xt(Xt([],w.parseDiagnostics,!0),Z.errors,!0),`\r
|
|
424
|
-
`)}})},F.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},F.prototype.discoverTypings=function(N){var j=this,x=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var w=JSON.parse(N);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)})},F}(f),h=function(){function v(){this._shims=[]}return v.prototype.getServicesVersion=function(){return e.servicesVersion},v.prototype.createLanguageServiceShim=function(F){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(F.useCaseSensitiveFileNames&&F.useCaseSensitiveFileNames(),F.getCurrentDirectory()));var N=new i(F),j=e.createLanguageService(N,this.documentRegistry,!1);return new b(this,F,j)}catch(x){throw r(F,x),x}},v.prototype.createClassifierShim=function(F){try{return new y(this,F)}catch(N){throw r(F,N),N}},v.prototype.createCoreServicesShim=function(F){try{var N=new a(F);return new T(this,F,N)}catch(j){throw r(F,j),j}},v.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},v.prototype.registerShim=function(F){this._shims.push(F)},v.prototype.unregisterShim=function(F){for(var N=0;N<this._shims.length;N++)if(this._shims[N]===F){delete this._shims[N];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 VC<"u"&&VC.exports&&(VC.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),F=v!==void 0?s[v]:void 0;if(typeof F=="function")return F.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,F=u.createSetAccessorDeclaration,N=u.updateSetAccessorDeclaration,j=u.createIndexSignature,x=u.updateIndexSignature,w=u.createClassStaticBlockDeclaration,A=u.updateClassStaticBlockDeclaration,Z=u.createClassExpression,ne=u.updateClassExpression,oe=u.createFunctionDeclaration,Y=u.updateFunctionDeclaration,l=u.createClassDeclaration,O=u.updateClassDeclaration,$=u.createInterfaceDeclaration,P=u.updateInterfaceDeclaration,B=u.createTypeAliasDeclaration,re=u.updateTypeAliasDeclaration,M=u.createEnumDeclaration,U=u.updateEnumDeclaration,V=u.createModuleDeclaration,ee=u.updateModuleDeclaration,te=u.createImportEqualsDeclaration,se=u.updateImportEqualsDeclaration,ce=u.createImportDeclaration,q=u.updateImportDeclaration,K=u.createExportAssignment,k=u.updateExportAssignment,L=u.createExportDeclaration,z=u.updateExportDeclaration;u.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(C,J,X,ie,W,fe){return d(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return d(e.concatenate(C,J),X,ie,W,fe,me)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return me===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isBindingName(X))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isDotDotDotToken(X))&&(ie===void 0||typeof ie=="string"||e.isBindingName(ie))&&(W===void 0||e.isQuestionToken(W))&&(fe===void 0||e.isTypeNode(fe))&&(me===void 0||e.isExpression(me))}}).deprecate({1:r}).finish(),u.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(C,J,X,ie,W,fe,me){return f(C,J,X,ie,W,fe,me)},1:function(C,J,X,ie,W,fe,me,De){return f(C,e.concatenate(J,X),ie,W,fe,me,De)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7];return me===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isBindingName(X))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isDotDotDotToken(X))&&(ie===void 0||typeof ie=="string"||e.isBindingName(ie))&&(W===void 0||e.isQuestionToken(W))&&(fe===void 0||e.isTypeNode(fe))&&(me===void 0||e.isExpression(me))}}).deprecate({1:r}).finish(),u.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(C,J,X,ie,W){return p(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return p(e.concatenate(C,J),X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isQuestionOrExclamationToken(X))&&(ie===void 0||e.isTypeNode(ie))&&(W===void 0||e.isExpression(W))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="string"||e.isPropertyName(X))&&(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(C,J,X,ie,W,fe){return _(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return _(C,e.concatenate(J,X),ie,W,fe,me)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isQuestionOrExclamationToken(X))&&(ie===void 0||e.isTypeNode(ie))&&(W===void 0||e.isExpression(W))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="string"||e.isPropertyName(X))&&(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(C,J,X,ie,W,fe,me,De){return b(C,J,X,ie,W,fe,me,De)},1:function(C,J,X,ie,W,fe,me,De,Ve){return b(e.concatenate(C,J),X,ie,W,fe,me,De,Ve)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6],De=C[7],Ve=C[8];return Ve===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isPropertyName(X))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||!e.some(fe,e.isTypeParameterDeclaration))&&(me===void 0||!e.isArray(me))&&(De===void 0||e.isBlock(De))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6],De=C[7],Ve=C[8];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isAsteriskToken(X))&&(ie===void 0||typeof ie=="string"||e.isPropertyName(ie))&&(W===void 0||!e.isArray(W))&&(fe===void 0||!e.some(fe,e.isParameter))&&(me===void 0||e.isArray(me))&&(De===void 0||e.isTypeNode(De))&&(Ve===void 0||e.isBlock(Ve))}}).deprecate({1:r}).finish(),u.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(C,J,X,ie,W,fe,me,De,Ve){return E(C,J,X,ie,W,fe,me,De,Ve)},1:function(C,J,X,ie,W,fe,me,De,Ve,je){return E(C,e.concatenate(J,X),ie,W,fe,me,De,Ve,je)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7],De=C[8],Ve=C[9];return Ve===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isPropertyName(X))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||!e.some(fe,e.isTypeParameterDeclaration))&&(me===void 0||!e.isArray(me))&&(De===void 0||e.isBlock(De))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7],De=C[8],Ve=C[9];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isAsteriskToken(X))&&(ie===void 0||typeof ie=="string"||e.isPropertyName(ie))&&(W===void 0||!e.isArray(W))&&(fe===void 0||!e.some(fe,e.isParameter))&&(me===void 0||e.isArray(me))&&(De===void 0||e.isTypeNode(De))&&(Ve===void 0||e.isBlock(Ve))}}).deprecate({1:r}).finish(),u.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(C,J,X){return y(C,J,X)},1:function(C,J,X,ie){return y(J,X,ie)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return W===void 0&&(J===void 0||!e.some(J,e.isDecorator))&&(X===void 0||!e.some(X,e.isModifier))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return(J===void 0||!e.some(J,e.isModifier))&&(X===void 0||!e.some(X,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(C,J,X,ie){return T(C,J,X,ie)},1:function(C,J,X,ie,W){return T(C,X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||!e.some(J,e.isDecorator))&&(X===void 0||!e.some(X,e.isModifier))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||!e.some(J,e.isModifier))&&(X===void 0||!e.some(X,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(C,J,X,ie,W){return h(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return h(e.concatenate(C,J),X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isBlock(W))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie,W,fe){return v(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return v(C,e.concatenate(J,X),ie,W,fe,me)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isBlock(W))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie){return F(C,J,X,ie)},1:function(C,J,X,ie,W){return F(e.concatenate(C,J),X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(C,J,X,ie,W){return N(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return N(C,e.concatenate(J,X),ie,W,fe)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5];return W===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(C,J,X){return j(C,J,X)},1:function(C,J,X,ie){return j(J,X,ie)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||e.every(X,e.isParameter))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.every(X,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(C,J,X,ie){return x(C,J,X,ie)},1:function(C,J,X,ie,W){return x(C,X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||e.every(X,e.isParameter))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.every(X,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(C){return w(C)},1:function(C,J,X){return w(X)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2];return X===void 0&&ie===void 0&&(J===void 0||!e.isArray(J))},1:function(C){var J=C[0],X=C[1],ie=C[2];return(J===void 0||e.isArray(J))&&(X===void 0||e.isArray(J))&&(ie===void 0||e.isBlock(ie))}}).deprecate({1:i}).finish(),u.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(C,J){return A(C,J)},1:function(C,J,X,ie){return A(C,ie)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3];return X===void 0&&ie===void 0&&(J===void 0||!e.isArray(J))},1:function(C){var J=C[1],X=C[2],ie=C[3];return(J===void 0||e.isArray(J))&&(X===void 0||e.isArray(J))&&(ie===void 0||e.isBlock(ie))}}).deprecate({1:i}).finish(),u.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(C,J,X,ie,W){return Z(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return Z(e.concatenate(C,J),X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie,W,fe){return ne(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return ne(C,e.concatenate(J,X),ie,W,fe,me)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie,W,fe,me){return oe(C,J,X,ie,W,fe,me)},1:function(C,J,X,ie,W,fe,me,De){return oe(J,X,ie,W,fe,me,De)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6],De=C[7];return De===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isIdentifier(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isParameter))&&(fe===void 0||!e.isArray(fe))&&(me===void 0||e.isBlock(me))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6],De=C[7];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X!="string"&&e.isAsteriskToken(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.isArray(fe))&&(me===void 0||e.isTypeNode(me))&&(De===void 0||e.isBlock(De))}}).deprecate({1:n}).finish(),u.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(C,J,X,ie,W,fe,me,De){return Y(C,J,X,ie,W,fe,me,De)},1:function(C,J,X,ie,W,fe,me,De,Ve){return Y(C,X,ie,W,fe,me,De,Ve)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7],De=C[8];return De===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isIdentifier(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isParameter))&&(fe===void 0||!e.isArray(fe))&&(me===void 0||e.isBlock(me))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7],De=C[8];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X!="string"&&e.isAsteriskToken(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.isArray(fe))&&(me===void 0||e.isTypeNode(me))&&(De===void 0||e.isBlock(De))}}).deprecate({1:n}).finish(),u.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(C,J,X,ie,W){return l(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return l(e.concatenate(C,J),X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie,W,fe){return O(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return O(C,e.concatenate(J,X),ie,W,fe,me)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie,W){return $(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return $(J,X,ie,W,fe)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4],me=C[5];return me===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.every(fe,e.isTypeElement))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4],me=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.every(fe,e.isHeritageClause))&&(me===void 0||e.every(me,e.isTypeElement))}}).deprecate({1:n}).finish(),u.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(C,J,X,ie,W,fe){return P(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return P(C,X,ie,W,fe,me)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return me===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.every(fe,e.isTypeElement))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.every(fe,e.isHeritageClause))&&(me===void 0||e.every(me,e.isTypeElement))}}).deprecate({1:n}).finish(),u.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(C,J,X,ie){return B(C,J,X,ie)},1:function(C,J,X,ie,W){return B(J,X,ie,W)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||!e.isArray(W))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie,W){return re(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return re(C,X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||!e.isArray(W))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X){return M(C,J,X)},1:function(C,J,X,ie){return M(J,X,ie)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(C,J,X,ie){return U(C,J,X,ie)},1:function(C,J,X,ie,W){return U(C,X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(C,J,X,ie){return V(C,J,X,ie)},1:function(C,J,X,ie,W){return V(J,X,ie,W)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&X!==void 0&&!e.isArray(X)&&(ie===void 0||e.isModuleBody(ie))&&(W===void 0||typeof W=="number")},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&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(C,J,X,ie){return ee(C,J,X,ie)},1:function(C,J,X,ie,W){return ee(C,X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isModuleBody(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&ie!==void 0&&e.isModuleName(ie)&&(W===void 0||e.isModuleBody(W))}}).deprecate({1:n}).finish(),u.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(C,J,X,ie){return te(C,J,X,ie)},1:function(C,J,X,ie,W){return te(J,X,ie,W)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||typeof X=="boolean")&&typeof ie!="boolean"&&typeof W!="string"},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie,W){return se(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return se(C,X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||typeof X=="boolean")&&typeof ie!="boolean"&&typeof W!="string"},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie){return ce(C,J,X,ie)},1:function(C,J,X,ie,W){return ce(J,X,ie,W)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&ie!==void 0&&e.isExpression(ie)&&(W===void 0||e.isAssertClause(W))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie,W){return q(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return q(C,X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isExpression(ie))&&(W===void 0||e.isAssertClause(W))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X){return K(C,J,X)},1:function(C,J,X,ie){return K(J,X,ie)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||typeof X=="boolean")&&typeof ie=="object"},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||typeof ie=="boolean")&&W!==void 0&&e.isExpression(W)}}).deprecate({1:n}).finish(),u.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(C,J,X){return k(C,J,X)},1:function(C,J,X,ie){return k(C,X,ie)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3];return ie===void 0&&(J===void 0||e.every(J,e.isModifier))&&X!==void 0&&!e.isArray(X)},1:function(C){var J=C[1],X=C[2],ie=C[3];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&ie!==void 0&&e.isExpression(ie)}}).deprecate({1:n}).finish(),u.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(C,J,X,ie,W){return L(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return L(J,X,ie,W,fe)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4],me=C[5];return me===void 0&&(J===void 0||e.every(J,e.isModifier))&&typeof X=="boolean"&&typeof ie!="boolean"&&(W===void 0||e.isExpression(W))&&(fe===void 0||e.isAssertClause(fe))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4],me=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&typeof ie=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(fe===void 0||e.isExpression(fe))&&(me===void 0||e.isAssertClause(me))}}).deprecate({1:n}).finish(),u.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(C,J,X,ie,W,fe){return z(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return z(C,X,ie,W,fe,me)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return me===void 0&&(J===void 0||e.every(J,e.isModifier))&&typeof X=="boolean"&&typeof ie!="boolean"&&(W===void 0||e.isExpression(W))&&(fe===void 0||e.isAssertClause(fe))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&typeof ie=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(fe===void 0||e.isExpression(fe))&&(me===void 0||e.isAssertClause(me))}}).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 Idr={};w3e(Idr,{configs:()=>wdr,rules:()=>Pdr});module.exports=I3e(Idr);var av=g8(a2e()),RE=g8(q2e()),Sdr=av.ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`),V2e=Sdr({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=av.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 F=(v=y.defs.at(0))==null?void 0:v.type;if(F==="Type"||F==="ImportBinding")return;let N=E.from,j;for(;N&&(j=d.get(N),!j);)N=N.upper;if(N&&j){let x=T.type;if(x==="global")return;let w=E.identifier;w.parent&&w.parent.type===av.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 Z=T;for(;Z&&!d.has(Z);)Z=Z.upper;if(Z!==N){let ne=Ddr(u,A,E.identifier,n);ne&&e.report({messageId:"referencesOutside",node:E.identifier,data:{varName:E.identifier.name,dollarName:j,reason:Cdr(ne)}})}}}}),b.childScopes.forEach(p)}return{CallExpression(b){if(b.callee.type===av.AST_NODE_TYPES.Identifier&&b.callee.name.endsWith("$")){let E=b.arguments.at(0);if(E&&E.type===av.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===av.AST_NODE_TYPES.JSXIdentifier?E.name:E.name.name;if(y.endsWith("$")){let T=b.value;if(T&&T.type===av.AST_NODE_TYPES.JSXExpressionContainer){let h=i.acquire(T.expression);if(h)d.set(h,y);else if(T.expression.type===av.AST_NODE_TYPES.Identifier){let v=s.get(T.expression),F=u.getTypeAtLocation(v);J2e(F)||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 Ddr(e,r,n,i){let a=e.getTypeAtLocation(r);return Tdr(e,a,r,n,i)}function Cdr(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function Tdr(e,r,n,i,a){let s=ZN(e,r,n,a,0);if(s){let u=s.location;return u&&(s.location=`${i.name}.${u}`),s}return s}function ZN(e,r,n,i,a){if(r.getProperty("__no_serialize__"))return;if(r.flags&RE.default.TypeFlags.Unknown)return{type:r,typeStr:e.typeToString(r),reason:"is unknown, which is not serializable"};let u=r.flags&RE.default.TypeFlags.Any;if(!i.allowAny&&u)return{type:r,typeStr:e.typeToString(r),reason:"is any, which is not serializable"};if(r.flags&RE.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&RE.default.TypeFlags.ESSymbolLike)return{type:r,typeStr:e.typeToString(r),reason:"is Symbol, which is not serializable"};if(r.flags&RE.default.TypeFlags.EnumLike)return{type:r,typeStr:e.typeToString(r),reason:"is an enum, use an string or a number instead"};if(J2e(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=ZN(e,E,n,i,a+1);if(y)return y}return}if((r.flags&RE.default.TypeFlags.Object)!==0){let E=r.symbol.name,y=kdr(r,e);if(y)return ZN(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=Adr(e,h,n,i,a+1);if(v){let F=v.location;return v.location=`${h.name}${F?`.${F}`:""}`,v}}}}function Adr(e,r,n,i,a){let s=e.getTypeOfSymbolAtLocation(r,n);return ZN(e,s,n,i,a)}function kdr(e,r){return r.getElementTypeOfArrayType(e)}function J2e(e){return!!e.getProperty("__brand__QRL__")}var W2e={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 z2e={meta:{type:"problem",docs:{description:"Detect multiple JSX roots inside a component",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{multipleJsxRoots:"Components in Qwik must have a single JSX root element. Your component has multiple roots on lines: {{lines}}. Rewrite your component with a single root such as (`return <>{...}</>`.) and keep all JSX within"}},create(e){let r=[];return{ArrowFunctionExpression(){r.push({rootNodes:[],depth:0})},"ArrowFunctionExpression:exit"(){let n=r[r.length-1];if(n&&n.rootNodes.length>1){let i=n.rootNodes.map(a=>{var s;return((s=a.loc)==null?void 0:s.start.line)??0}).join(", ");e.report({node:n.rootNodes[0],messageId:"multipleJsxRoots",data:{lines:i}})}r.pop()},FunctionDeclaration(){r.push({rootNodes:[],depth:0})},"FunctionDeclaration:exit"(){r.pop()},"JSXElement,JSXFragment"(n){let i=r[r.length-1];i&&(i.depth===0&&i.rootNodes.push(n),i.depth++)},"JSXElement:exit"(){let n=r[r.length-1];n&&n.depth--}}}};var Pdr={"no-use-after-await":W2e,"valid-lexical-scope":V2e,"single-jsx-root":z2e},wdr={recommended:{plugins:["qwik"],rules:{"qwik/no-use-after-await":"error","qwik/valid-lexical-scope":"error","qwik/single-jsx-root":"warn"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/no-use-after-await":"error","qwik/single-jsx-root":"error"}}};0&&(module.exports={configs,rules});
|
|
424
|
+
`)}})},F.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",function(){return e.getDefaultCompilerOptions()})},F.prototype.discoverTypings=function(N){var j=this,x=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",function(){var w=JSON.parse(N);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)})},F}(f),h=function(){function v(){this._shims=[]}return v.prototype.getServicesVersion=function(){return e.servicesVersion},v.prototype.createLanguageServiceShim=function(F){try{this.documentRegistry===void 0&&(this.documentRegistry=e.createDocumentRegistry(F.useCaseSensitiveFileNames&&F.useCaseSensitiveFileNames(),F.getCurrentDirectory()));var N=new i(F),j=e.createLanguageService(N,this.documentRegistry,!1);return new b(this,F,j)}catch(x){throw r(F,x),x}},v.prototype.createClassifierShim=function(F){try{return new y(this,F)}catch(N){throw r(F,N),N}},v.prototype.createCoreServicesShim=function(F){try{var N=new a(F);return new T(this,F,N)}catch(j){throw r(F,j),j}},v.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},v.prototype.registerShim=function(F){this._shims.push(F)},v.prototype.unregisterShim=function(F){for(var N=0;N<this._shims.length;N++)if(this._shims[N]===F){delete this._shims[N];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 VC<"u"&&VC.exports&&(VC.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),F=v!==void 0?s[v]:void 0;if(typeof F=="function")return F.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,F=u.createSetAccessorDeclaration,N=u.updateSetAccessorDeclaration,j=u.createIndexSignature,x=u.updateIndexSignature,w=u.createClassStaticBlockDeclaration,A=u.updateClassStaticBlockDeclaration,Z=u.createClassExpression,ne=u.updateClassExpression,oe=u.createFunctionDeclaration,Y=u.updateFunctionDeclaration,l=u.createClassDeclaration,O=u.updateClassDeclaration,$=u.createInterfaceDeclaration,P=u.updateInterfaceDeclaration,B=u.createTypeAliasDeclaration,re=u.updateTypeAliasDeclaration,M=u.createEnumDeclaration,U=u.updateEnumDeclaration,V=u.createModuleDeclaration,ee=u.updateModuleDeclaration,te=u.createImportEqualsDeclaration,se=u.updateImportEqualsDeclaration,ce=u.createImportDeclaration,q=u.updateImportDeclaration,K=u.createExportAssignment,k=u.updateExportAssignment,L=u.createExportDeclaration,z=u.updateExportDeclaration;u.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(C,J,X,ie,W,fe){return d(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return d(e.concatenate(C,J),X,ie,W,fe,me)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return me===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isBindingName(X))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isDotDotDotToken(X))&&(ie===void 0||typeof ie=="string"||e.isBindingName(ie))&&(W===void 0||e.isQuestionToken(W))&&(fe===void 0||e.isTypeNode(fe))&&(me===void 0||e.isExpression(me))}}).deprecate({1:r}).finish(),u.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(C,J,X,ie,W,fe,me){return f(C,J,X,ie,W,fe,me)},1:function(C,J,X,ie,W,fe,me,De){return f(C,e.concatenate(J,X),ie,W,fe,me,De)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7];return me===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isBindingName(X))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isTypeNode(W))&&(fe===void 0||e.isExpression(fe))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isDotDotDotToken(X))&&(ie===void 0||typeof ie=="string"||e.isBindingName(ie))&&(W===void 0||e.isQuestionToken(W))&&(fe===void 0||e.isTypeNode(fe))&&(me===void 0||e.isExpression(me))}}).deprecate({1:r}).finish(),u.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(C,J,X,ie,W){return p(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return p(e.concatenate(C,J),X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isQuestionOrExclamationToken(X))&&(ie===void 0||e.isTypeNode(ie))&&(W===void 0||e.isExpression(W))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="string"||e.isPropertyName(X))&&(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(C,J,X,ie,W,fe){return _(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return _(C,e.concatenate(J,X),ie,W,fe,me)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isQuestionOrExclamationToken(X))&&(ie===void 0||e.isTypeNode(ie))&&(W===void 0||e.isExpression(W))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="string"||e.isPropertyName(X))&&(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(C,J,X,ie,W,fe,me,De){return b(C,J,X,ie,W,fe,me,De)},1:function(C,J,X,ie,W,fe,me,De,Ve){return b(e.concatenate(C,J),X,ie,W,fe,me,De,Ve)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6],De=C[7],Ve=C[8];return Ve===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isPropertyName(X))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||!e.some(fe,e.isTypeParameterDeclaration))&&(me===void 0||!e.isArray(me))&&(De===void 0||e.isBlock(De))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6],De=C[7],Ve=C[8];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isAsteriskToken(X))&&(ie===void 0||typeof ie=="string"||e.isPropertyName(ie))&&(W===void 0||!e.isArray(W))&&(fe===void 0||!e.some(fe,e.isParameter))&&(me===void 0||e.isArray(me))&&(De===void 0||e.isTypeNode(De))&&(Ve===void 0||e.isBlock(Ve))}}).deprecate({1:r}).finish(),u.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(C,J,X,ie,W,fe,me,De,Ve){return E(C,J,X,ie,W,fe,me,De,Ve)},1:function(C,J,X,ie,W,fe,me,De,Ve,je){return E(C,e.concatenate(J,X),ie,W,fe,me,De,Ve,je)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7],De=C[8],Ve=C[9];return Ve===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isPropertyName(X))&&(ie===void 0||typeof ie=="object"&&e.isQuestionToken(ie))&&(W===void 0||e.isArray(W))&&(fe===void 0||!e.some(fe,e.isTypeParameterDeclaration))&&(me===void 0||!e.isArray(me))&&(De===void 0||e.isBlock(De))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7],De=C[8],Ve=C[9];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X=="object"&&e.isAsteriskToken(X))&&(ie===void 0||typeof ie=="string"||e.isPropertyName(ie))&&(W===void 0||!e.isArray(W))&&(fe===void 0||!e.some(fe,e.isParameter))&&(me===void 0||e.isArray(me))&&(De===void 0||e.isTypeNode(De))&&(Ve===void 0||e.isBlock(Ve))}}).deprecate({1:r}).finish(),u.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(C,J,X){return y(C,J,X)},1:function(C,J,X,ie){return y(J,X,ie)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return W===void 0&&(J===void 0||!e.some(J,e.isDecorator))&&(X===void 0||!e.some(X,e.isModifier))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return(J===void 0||!e.some(J,e.isModifier))&&(X===void 0||!e.some(X,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(C,J,X,ie){return T(C,J,X,ie)},1:function(C,J,X,ie,W){return T(C,X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||!e.some(J,e.isDecorator))&&(X===void 0||!e.some(X,e.isModifier))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||!e.some(J,e.isModifier))&&(X===void 0||!e.some(X,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(C,J,X,ie,W){return h(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return h(e.concatenate(C,J),X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isBlock(W))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie,W,fe){return v(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return v(C,e.concatenate(J,X),ie,W,fe,me)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isBlock(W))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie){return F(C,J,X,ie)},1:function(C,J,X,ie,W){return F(e.concatenate(C,J),X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(C,J,X,ie,W){return N(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return N(C,e.concatenate(J,X),ie,W,fe)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5];return W===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.isBlock(W))}}).deprecate({1:r}).finish(),u.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(C,J,X){return j(C,J,X)},1:function(C,J,X,ie){return j(J,X,ie)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||e.every(X,e.isParameter))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.every(X,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(C,J,X,ie){return x(C,J,X,ie)},1:function(C,J,X,ie,W){return x(C,X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||e.every(X,e.isParameter))&&(ie===void 0||!e.isArray(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.every(X,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(C){return w(C)},1:function(C,J,X){return w(X)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2];return X===void 0&&ie===void 0&&(J===void 0||!e.isArray(J))},1:function(C){var J=C[0],X=C[1],ie=C[2];return(J===void 0||e.isArray(J))&&(X===void 0||e.isArray(J))&&(ie===void 0||e.isBlock(ie))}}).deprecate({1:i}).finish(),u.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(C,J){return A(C,J)},1:function(C,J,X,ie){return A(C,ie)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3];return X===void 0&&ie===void 0&&(J===void 0||!e.isArray(J))},1:function(C){var J=C[1],X=C[2],ie=C[3];return(J===void 0||e.isArray(J))&&(X===void 0||e.isArray(J))&&(ie===void 0||e.isBlock(ie))}}).deprecate({1:i}).finish(),u.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(C,J,X,ie,W){return Z(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return Z(e.concatenate(C,J),X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie,W,fe){return ne(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return ne(C,e.concatenate(J,X),ie,W,fe,me)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie,W,fe,me){return oe(C,J,X,ie,W,fe,me)},1:function(C,J,X,ie,W,fe,me,De){return oe(J,X,ie,W,fe,me,De)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6],De=C[7];return De===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||typeof X=="string"||e.isIdentifier(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isParameter))&&(fe===void 0||!e.isArray(fe))&&(me===void 0||e.isBlock(me))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6],De=C[7];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X!="string"&&e.isAsteriskToken(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.isArray(fe))&&(me===void 0||e.isTypeNode(me))&&(De===void 0||e.isBlock(De))}}).deprecate({1:n}).finish(),u.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(C,J,X,ie,W,fe,me,De){return Y(C,J,X,ie,W,fe,me,De)},1:function(C,J,X,ie,W,fe,me,De,Ve){return Y(C,X,ie,W,fe,me,De,Ve)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7],De=C[8];return De===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isIdentifier(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isParameter))&&(fe===void 0||!e.isArray(fe))&&(me===void 0||e.isBlock(me))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6],me=C[7],De=C[8];return(J===void 0||e.isArray(J))&&(X===void 0||typeof X!="string"&&e.isAsteriskToken(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.isArray(fe))&&(me===void 0||e.isTypeNode(me))&&(De===void 0||e.isBlock(De))}}).deprecate({1:n}).finish(),u.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(C,J,X,ie,W){return l(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return l(e.concatenate(C,J),X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie,W,fe){return O(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return O(C,e.concatenate(J,X),ie,W,fe,me)}}).bind({0:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return fe===void 0&&(J===void 0||!e.isArray(J))&&(X===void 0||e.isArray(X))&&(ie===void 0||e.every(ie,e.isHeritageClause))&&(W===void 0||e.every(W,e.isClassElement))},1:function(C){var J=C[2],X=C[3],ie=C[4],W=C[5],fe=C[6];return(J===void 0||e.isArray(J))&&(X===void 0||!e.isArray(X))&&(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(C,J,X,ie,W){return $(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return $(J,X,ie,W,fe)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4],me=C[5];return me===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.every(fe,e.isTypeElement))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4],me=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.every(fe,e.isHeritageClause))&&(me===void 0||e.every(me,e.isTypeElement))}}).deprecate({1:n}).finish(),u.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(C,J,X,ie,W,fe){return P(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return P(C,X,ie,W,fe,me)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return me===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||e.every(W,e.isHeritageClause))&&(fe===void 0||e.every(fe,e.isTypeElement))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.every(W,e.isTypeParameterDeclaration))&&(fe===void 0||e.every(fe,e.isHeritageClause))&&(me===void 0||e.every(me,e.isTypeElement))}}).deprecate({1:n}).finish(),u.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(C,J,X,ie){return B(C,J,X,ie)},1:function(C,J,X,ie,W){return B(J,X,ie,W)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||!e.isArray(W))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie,W){return re(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return re(C,X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))&&(W===void 0||!e.isArray(W))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X){return M(C,J,X)},1:function(C,J,X,ie){return M(J,X,ie)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(C,J,X,ie){return U(C,J,X,ie)},1:function(C,J,X,ie,W){return U(C,X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isArray(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||!e.isArray(ie))&&(W===void 0||e.isArray(W))}}).deprecate({1:n}).finish(),u.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(C,J,X,ie){return V(C,J,X,ie)},1:function(C,J,X,ie,W){return V(J,X,ie,W)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&X!==void 0&&!e.isArray(X)&&(ie===void 0||e.isModuleBody(ie))&&(W===void 0||typeof W=="number")},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&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(C,J,X,ie){return ee(C,J,X,ie)},1:function(C,J,X,ie,W){return ee(C,X,ie,W)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isModuleBody(ie))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&ie!==void 0&&e.isModuleName(ie)&&(W===void 0||e.isModuleBody(W))}}).deprecate({1:n}).finish(),u.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(C,J,X,ie){return te(C,J,X,ie)},1:function(C,J,X,ie,W){return te(J,X,ie,W)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||typeof X=="boolean")&&typeof ie!="boolean"&&typeof W!="string"},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie,W){return se(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return se(C,X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||typeof X=="boolean")&&typeof ie!="boolean"&&typeof W!="string"},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie){return ce(C,J,X,ie)},1:function(C,J,X,ie,W){return ce(J,X,ie,W)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&ie!==void 0&&e.isExpression(ie)&&(W===void 0||e.isAssertClause(W))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X,ie,W){return q(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return q(C,X,ie,W,fe)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return fe===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||!e.isArray(X))&&(ie===void 0||e.isExpression(ie))&&(W===void 0||e.isAssertClause(W))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(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(C,J,X){return K(C,J,X)},1:function(C,J,X,ie){return K(J,X,ie)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return W===void 0&&(J===void 0||e.every(J,e.isModifier))&&(X===void 0||typeof X=="boolean")&&typeof ie=="object"},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&(ie===void 0||typeof ie=="boolean")&&W!==void 0&&e.isExpression(W)}}).deprecate({1:n}).finish(),u.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(C,J,X){return k(C,J,X)},1:function(C,J,X,ie){return k(C,X,ie)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3];return ie===void 0&&(J===void 0||e.every(J,e.isModifier))&&X!==void 0&&!e.isArray(X)},1:function(C){var J=C[1],X=C[2],ie=C[3];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&ie!==void 0&&e.isExpression(ie)}}).deprecate({1:n}).finish(),u.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(C,J,X,ie,W){return L(C,J,X,ie,W)},1:function(C,J,X,ie,W,fe){return L(J,X,ie,W,fe)}}).bind({0:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4],me=C[5];return me===void 0&&(J===void 0||e.every(J,e.isModifier))&&typeof X=="boolean"&&typeof ie!="boolean"&&(W===void 0||e.isExpression(W))&&(fe===void 0||e.isAssertClause(fe))},1:function(C){var J=C[0],X=C[1],ie=C[2],W=C[3],fe=C[4],me=C[5];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&typeof ie=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(fe===void 0||e.isExpression(fe))&&(me===void 0||e.isAssertClause(me))}}).deprecate({1:n}).finish(),u.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(C,J,X,ie,W,fe){return z(C,J,X,ie,W,fe)},1:function(C,J,X,ie,W,fe,me){return z(C,X,ie,W,fe,me)}}).bind({0:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return me===void 0&&(J===void 0||e.every(J,e.isModifier))&&typeof X=="boolean"&&typeof ie!="boolean"&&(W===void 0||e.isExpression(W))&&(fe===void 0||e.isAssertClause(fe))},1:function(C){var J=C[1],X=C[2],ie=C[3],W=C[4],fe=C[5],me=C[6];return(J===void 0||e.every(J,e.isDecorator))&&(X===void 0||e.isArray(X))&&typeof ie=="boolean"&&(W===void 0||e.isNamedExportBindings(W))&&(fe===void 0||e.isExpression(fe))&&(me===void 0||e.isAssertClause(me))}}).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 Idr={};w3e(Idr,{configs:()=>wdr,rules:()=>Pdr});module.exports=I3e(Idr);var av=g8(a2e()),RE=g8(q2e()),Sdr=av.ESLintUtils.RuleCreator(e=>`https://typescript-eslint.io/rules/${e}`),V2e=Sdr({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=av.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 F=(v=y.defs.at(0))==null?void 0:v.type;if(F==="Type"||F==="ImportBinding")return;let N=E.from,j;for(;N&&(j=d.get(N),!j);)N=N.upper;if(N&&j){let x=T.type;if(x==="global")return;let w=E.identifier,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 Z=T;for(;Z&&!d.has(Z);)Z=Z.upper;if(Z!==N){w.parent&&w.parent.type===av.AST_NODE_TYPES.AssignmentExpression&&w.parent.left===w&&e.report({messageId:"mutableIdentifier",node:E.identifier,data:{varName:E.identifier.name,dollarName:j}});let ne=Ddr(u,A,E.identifier,n);ne&&e.report({messageId:"referencesOutside",node:E.identifier,data:{varName:E.identifier.name,dollarName:j,reason:Cdr(ne)}})}}}}),b.childScopes.forEach(p)}return{CallExpression(b){if(b.callee.type===av.AST_NODE_TYPES.Identifier&&b.callee.name.endsWith("$")){let E=b.arguments.at(0);if(E&&E.type===av.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===av.AST_NODE_TYPES.JSXIdentifier?E.name:E.name.name;if(y.endsWith("$")){let T=b.value;if(T&&T.type===av.AST_NODE_TYPES.JSXExpressionContainer){let h=i.acquire(T.expression);if(h)d.set(h,y);else if(T.expression.type===av.AST_NODE_TYPES.Identifier){let v=s.get(T.expression),F=u.getTypeAtLocation(v);J2e(F)||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 Ddr(e,r,n,i){let a=e.getTypeAtLocation(r);return Tdr(e,a,r,n,i,new Set)}function Cdr(e){let r="";return e.location?r+=`"${e.location}" `:r+="it ",r+=`${e.reason}`,r}function Tdr(e,r,n,i,a,s){let u=ZN(e,r,n,a,0,s);if(u){let d=u.location;return d&&(u.location=`${i.name}.${d}`),u}return u}function ZN(e,r,n,i,a,s){if(s.has(r)||(s.add(r),r.getProperty("__no_serialize__")))return;if(r.flags&RE.default.TypeFlags.Unknown)return{type:r,typeStr:e.typeToString(r),reason:"is unknown, which is not serializable"};let d=r.flags&RE.default.TypeFlags.Any;if(!i.allowAny&&d)return{type:r,typeStr:e.typeToString(r),reason:"is any, which is not serializable"};if(r.flags&RE.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&RE.default.TypeFlags.ESSymbolLike)return{type:r,typeStr:e.typeToString(r),reason:"is Symbol, which is not serializable"};if(r.flags&RE.default.TypeFlags.EnumLike)return{type:r,typeStr:e.typeToString(r),reason:"is an enum, use an string or a number instead"};if(J2e(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 y of r.types){let T=ZN(e,y,n,i,a+1,s);if(T)return T}return}if((r.flags&RE.default.TypeFlags.Object)!==0){let y=r.symbol.name,T=kdr(r,e);if(T)return ZN(e,T,n,i,a+1,s);if(r.getProperty("nextElementSibling")||r.getProperty("activeElement")||y==="Promise"||y==="URL"||y==="RegExp"||y==="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 h=r.getProperty("prototype");if(h){let v=e.getTypeOfSymbolAtLocation(h,n);if(v.isClass())return{type:v,typeStr:e.typeToString(v),reason:"is a class constructor, which is not serializable"}}if(!y.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 v of r.getProperties()){let F=Adr(e,v,n,i,a+1,s);if(F){let N=F.location;return F.location=`${v.name}${N?`.${N}`:""}`,F}}}}function Adr(e,r,n,i,a,s){let u=e.getTypeOfSymbolAtLocation(r,n);return ZN(e,u,n,i,a,s)}function kdr(e,r){return r.getElementTypeOfArrayType(e)}function J2e(e){return!!e.getProperty("__brand__QRL__")}var W2e={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 z2e={meta:{type:"problem",docs:{description:"Detect multiple JSX roots inside a component",recommended:!0,url:"https://github.com/BuilderIO/qwik"},messages:{multipleJsxRoots:"Components in Qwik must have a single JSX root element. Your component has multiple roots on lines: {{lines}}. Rewrite your component with a single root such as (`return <>{...}</>`.) and keep all JSX within"}},create(e){let r=[];return{ArrowFunctionExpression(){r.push({rootNodes:[],depth:0})},"ArrowFunctionExpression:exit"(){let n=r[r.length-1];if(n&&n.rootNodes.length>1){let i=n.rootNodes.map(a=>{var s;return((s=a.loc)==null?void 0:s.start.line)??0}).join(", ");e.report({node:n.rootNodes[0],messageId:"multipleJsxRoots",data:{lines:i}})}r.pop()},FunctionDeclaration(){r.push({rootNodes:[],depth:0})},"FunctionDeclaration:exit"(){r.pop()},"JSXElement,JSXFragment"(n){let i=r[r.length-1];i&&(i.depth===0&&i.rootNodes.push(n),i.depth++)},"JSXElement:exit"(){let n=r[r.length-1];n&&n.depth--}}}};var Pdr={"no-use-after-await":W2e,"valid-lexical-scope":V2e,"single-jsx-root":z2e},wdr={recommended:{plugins:["qwik"],rules:{"qwik/no-use-after-await":"error","qwik/valid-lexical-scope":"error","qwik/single-jsx-root":"warn"}},strict:{plugins:["qwik"],rules:{"qwik/valid-lexical-scope":"error","qwik/no-use-after-await":"error","qwik/single-jsx-root":"error"}}};0&&(module.exports={configs,rules});
|
|
425
425
|
/*
|
|
426
426
|
* @version 1.4.0
|
|
427
427
|
* @date 2015-10-26
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-qwik",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Builder Team",
|