All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.background-process.js Maven / Gradle / Ivy

#!/usr/bin/env node
/*
 * Copyright IBM Corp. 2023, 2024
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */
const require = (await import("node:module")).createRequire(import.meta.url);
const __filename = (await import("node:url")).fileURLToPath(import.meta.url);
const __dirname = (await import("node:path")).dirname(__filename);

var yqt=Object.create;var Jne=Object.defineProperty;var vqt=Object.getOwnPropertyDescriptor;var Sqt=Object.getOwnPropertyNames;var Tqt=Object.getPrototypeOf,bqt=Object.prototype.hasOwnProperty;var Ru=(l=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(l,{get:(c,f)=>(typeof require<"u"?require:c)[f]}):l)(function(l){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+l+'" is not supported')});var Ic=(l,c)=>()=>(l&&(c=l(l=0)),c);var xt=(l,c)=>()=>(c||l((c={exports:{}}).exports,c),c.exports),aXe=(l,c)=>{for(var f in c)Jne(l,f,{get:c[f],enumerable:!0})},cXe=(l,c,f,y)=>{if(c&&typeof c=="object"||typeof c=="function")for(let b of Sqt(c))!bqt.call(l,b)&&b!==f&&Jne(l,b,{get:()=>c[b],enumerable:!(y=vqt(c,b))||y.enumerable});return l};var tf=(l,c,f)=>(f=l!=null?yqt(Tqt(l)):{},cXe(c||!l||!l.__esModule?Jne(f,"default",{value:l,enumerable:!0}):f,l)),ol=l=>cXe(Jne({},"__esModule",{value:!0}),l);var Jq=xt(dAe=>{var qne=class extends Error{constructor(c,f,y){super(y),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=f,this.exitCode=c,this.nestedError=void 0}},pAe=class extends qne{constructor(c){super(1,"commander.invalidArgument",c),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}};dAe.CommanderError=qne;dAe.InvalidArgumentError=pAe});var zne=xt(gAe=>{var{InvalidArgumentError:Eqt}=Jq(),mAe=class{constructor(c,f){switch(this.description=f||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,c[0]){case"<":this.required=!0,this._name=c.slice(1,-1);break;case"[":this.required=!1,this._name=c.slice(1,-1);break;default:this.required=!0,this._name=c;break}this._name.length>3&&this._name.slice(-3)==="..."&&(this.variadic=!0,this._name=this._name.slice(0,-3))}name(){return this._name}_concatValue(c,f){return f===this.defaultValue||!Array.isArray(f)?[c]:f.concat(c)}default(c,f){return this.defaultValue=c,this.defaultValueDescription=f,this}argParser(c){return this.parseArg=c,this}choices(c){return this.argChoices=c.slice(),this.parseArg=(f,y)=>{if(!this.argChoices.includes(f))throw new Eqt(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(f,y):f},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}};function xqt(l){let c=l.name()+(l.variadic===!0?"...":"");return l.required?"<"+c+">":"["+c+"]"}gAe.Argument=mAe;gAe.humanReadableArgName=xqt});var yAe=xt(lXe=>{var{humanReadableArgName:Cqt}=zne(),hAe=class{constructor(){this.helpWidth=void 0,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}visibleCommands(c){let f=c.commands.filter(b=>!b._hidden),y=c._getHelpCommand();return y&&!y._hidden&&f.push(y),this.sortSubcommands&&f.sort((b,k)=>b.name().localeCompare(k.name())),f}compareOptions(c,f){let y=b=>b.short?b.short.replace(/^-/,""):b.long.replace(/^--/,"");return y(c).localeCompare(y(f))}visibleOptions(c){let f=c.options.filter(b=>!b.hidden),y=c._getHelpOption();if(y&&!y.hidden){let b=y.short&&c._findOption(y.short),k=y.long&&c._findOption(y.long);!b&&!k?f.push(y):y.long&&!k?f.push(c.createOption(y.long,y.description)):y.short&&!b&&f.push(c.createOption(y.short,y.description))}return this.sortOptions&&f.sort(this.compareOptions),f}visibleGlobalOptions(c){if(!this.showGlobalOptions)return[];let f=[];for(let y=c.parent;y;y=y.parent){let b=y.options.filter(k=>!k.hidden);f.push(...b)}return this.sortOptions&&f.sort(this.compareOptions),f}visibleArguments(c){return c._argsDescription&&c.registeredArguments.forEach(f=>{f.description=f.description||c._argsDescription[f.name()]||""}),c.registeredArguments.find(f=>f.description)?c.registeredArguments:[]}subcommandTerm(c){let f=c.registeredArguments.map(y=>Cqt(y)).join(" ");return c._name+(c._aliases[0]?"|"+c._aliases[0]:"")+(c.options.length?" [options]":"")+(f?" "+f:"")}optionTerm(c){return c.flags}argumentTerm(c){return c.name()}longestSubcommandTermLength(c,f){return f.visibleCommands(c).reduce((y,b)=>Math.max(y,f.subcommandTerm(b).length),0)}longestOptionTermLength(c,f){return f.visibleOptions(c).reduce((y,b)=>Math.max(y,f.optionTerm(b).length),0)}longestGlobalOptionTermLength(c,f){return f.visibleGlobalOptions(c).reduce((y,b)=>Math.max(y,f.optionTerm(b).length),0)}longestArgumentTermLength(c,f){return f.visibleArguments(c).reduce((y,b)=>Math.max(y,f.argumentTerm(b).length),0)}commandUsage(c){let f=c._name;c._aliases[0]&&(f=f+"|"+c._aliases[0]);let y="";for(let b=c.parent;b;b=b.parent)y=b.name()+" "+y;return y+f+" "+c.usage()}commandDescription(c){return c.description()}subcommandDescription(c){return c.summary()||c.description()}optionDescription(c){let f=[];return c.argChoices&&f.push(`choices: ${c.argChoices.map(y=>JSON.stringify(y)).join(", ")}`),c.defaultValue!==void 0&&(c.required||c.optional||c.isBoolean()&&typeof c.defaultValue=="boolean")&&f.push(`default: ${c.defaultValueDescription||JSON.stringify(c.defaultValue)}`),c.presetArg!==void 0&&c.optional&&f.push(`preset: ${JSON.stringify(c.presetArg)}`),c.envVar!==void 0&&f.push(`env: ${c.envVar}`),f.length>0?`${c.description} (${f.join(", ")})`:c.description}argumentDescription(c){let f=[];if(c.argChoices&&f.push(`choices: ${c.argChoices.map(y=>JSON.stringify(y)).join(", ")}`),c.defaultValue!==void 0&&f.push(`default: ${c.defaultValueDescription||JSON.stringify(c.defaultValue)}`),f.length>0){let y=`(${f.join(", ")})`;return c.description?`${c.description} ${y}`:y}return c.description}formatHelp(c,f){let y=f.padWidth(c,f),b=f.helpWidth||80,k=2,g=2;function p(Rr,kt){if(kt){let Et=`${Rr.padEnd(y+g)}${kt}`;return f.wrap(Et,b-k,y+g)}return Rr}function A(Rr){return Rr.join(`
`).replace(/^/gm," ".repeat(k))}let j=[`Usage: ${f.commandUsage(c)}`,""],se=f.commandDescription(c);se.length>0&&(j=j.concat([f.wrap(se,b,0),""]));let We=f.visibleArguments(c).map(Rr=>p(f.argumentTerm(Rr),f.argumentDescription(Rr)));We.length>0&&(j=j.concat(["Arguments:",A(We),""]));let ve=f.visibleOptions(c).map(Rr=>p(f.optionTerm(Rr),f.optionDescription(Rr)));if(ve.length>0&&(j=j.concat(["Options:",A(ve),""])),this.showGlobalOptions){let Rr=f.visibleGlobalOptions(c).map(kt=>p(f.optionTerm(kt),f.optionDescription(kt)));Rr.length>0&&(j=j.concat(["Global Options:",A(Rr),""]))}let lr=f.visibleCommands(c).map(Rr=>p(f.subcommandTerm(Rr),f.subcommandDescription(Rr)));return lr.length>0&&(j=j.concat(["Commands:",A(lr),""])),j.join(`
`)}padWidth(c,f){return Math.max(f.longestOptionTermLength(c,f),f.longestGlobalOptionTermLength(c,f),f.longestSubcommandTermLength(c,f),f.longestArgumentTermLength(c,f))}wrap(c,f,y,b=40){let k=" \\f\\t\\v\xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF",g=new RegExp(`[\\n][${k}]+`);if(c.match(g))return c;let p=f-y;if(pkt===`
`?"":(Et>0?se:"")+kt.trimEnd()).join(`
`)}};lXe.Help=hAe});var bAe=xt(TAe=>{var{InvalidArgumentError:Aqt}=Jq(),vAe=class{constructor(c,f){this.flags=c,this.description=f||"",this.required=c.includes("<"),this.optional=c.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(c),this.mandatory=!1;let y=Pqt(c);this.short=y.shortFlag,this.long=y.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0}default(c,f){return this.defaultValue=c,this.defaultValueDescription=f,this}preset(c){return this.presetArg=c,this}conflicts(c){return this.conflictsWith=this.conflictsWith.concat(c),this}implies(c){let f=c;return typeof c=="string"&&(f={[c]:!0}),this.implied=Object.assign(this.implied||{},f),this}env(c){return this.envVar=c,this}argParser(c){return this.parseArg=c,this}makeOptionMandatory(c=!0){return this.mandatory=!!c,this}hideHelp(c=!0){return this.hidden=!!c,this}_concatValue(c,f){return f===this.defaultValue||!Array.isArray(f)?[c]:f.concat(c)}choices(c){return this.argChoices=c.slice(),this.parseArg=(f,y)=>{if(!this.argChoices.includes(f))throw new Aqt(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._concatValue(f,y):f},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return kqt(this.name().replace(/^no-/,""))}is(c){return this.short===c||this.long===c}isBoolean(){return!this.required&&!this.optional&&!this.negate}},SAe=class{constructor(c){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,c.forEach(f=>{f.negate?this.negativeOptions.set(f.attributeName(),f):this.positiveOptions.set(f.attributeName(),f)}),this.negativeOptions.forEach((f,y)=>{this.positiveOptions.has(y)&&this.dualOptions.add(y)})}valueFromOption(c,f){let y=f.attributeName();if(!this.dualOptions.has(y))return!0;let b=this.negativeOptions.get(y).presetArg,k=b!==void 0?b:!1;return f.negate===(k===c)}};function kqt(l){return l.split("-").reduce((c,f)=>c+f[0].toUpperCase()+f.slice(1))}function Pqt(l){let c,f,y=l.split(/[ |,]+/);return y.length>1&&!/^[[<]/.test(y[1])&&(c=y.shift()),f=y.shift(),!c&&/^-[^-]$/.test(f)&&(c=f,f=void 0),{shortFlag:c,longFlag:f}}TAe.Option=vAe;TAe.DualOptions=SAe});var _Xe=xt(uXe=>{function Nqt(l,c){if(Math.abs(l.length-c.length)>3)return Math.max(l.length,c.length);let f=[];for(let y=0;y<=l.length;y++)f[y]=[y];for(let y=0;y<=c.length;y++)f[0][y]=y;for(let y=1;y<=c.length;y++)for(let b=1;b<=l.length;b++){let k=1;l[b-1]===c[y-1]?k=0:k=1,f[b][y]=Math.min(f[b-1][y]+1,f[b][y-1]+1,f[b-1][y-1]+k),b>1&&y>1&&l[b-1]===c[y-2]&&l[b-2]===c[y-1]&&(f[b][y]=Math.min(f[b][y],f[b-2][y-2]+1))}return f[l.length][c.length]}function Dqt(l,c){if(!c||c.length===0)return"";c=Array.from(new Set(c));let f=l.startsWith("--");f&&(l=l.slice(2),c=c.map(g=>g.slice(2)));let y=[],b=3,k=.4;return c.forEach(g=>{if(g.length<=1)return;let p=Nqt(l,g),A=Math.max(l.length,g.length);(A-p)/A>k&&(pg.localeCompare(p)),f&&(y=y.map(g=>`--${g}`)),y.length>1?`
(Did you mean one of ${y.join(", ")}?)`:y.length===1?`
(Did you mean ${y[0]}?)`:""}uXe.suggestSimilar=Dqt});var gXe=xt(mXe=>{var Iqt=Ru("events").EventEmitter,EAe=Ru("child_process"),sP=Ru("path"),xAe=Ru("fs"),zd=Ru("process"),{Argument:wqt,humanReadableArgName:Oqt}=zne(),{CommanderError:CAe}=Jq(),{Help:Rqt}=yAe(),{Option:fXe,DualOptions:Mqt}=bAe(),{suggestSimilar:pXe}=_Xe(),AAe=class l extends Iqt{constructor(c){super(),this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!0,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=c||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._outputConfiguration={writeOut:f=>zd.stdout.write(f),writeErr:f=>zd.stderr.write(f),getOutHelpWidth:()=>zd.stdout.isTTY?zd.stdout.columns:void 0,getErrHelpWidth:()=>zd.stderr.isTTY?zd.stderr.columns:void 0,outputError:(f,y)=>y(f)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={}}copyInheritedSettings(c){return this._outputConfiguration=c._outputConfiguration,this._helpOption=c._helpOption,this._helpCommand=c._helpCommand,this._helpConfiguration=c._helpConfiguration,this._exitCallback=c._exitCallback,this._storeOptionsAsProperties=c._storeOptionsAsProperties,this._combineFlagAndOptionalValue=c._combineFlagAndOptionalValue,this._allowExcessArguments=c._allowExcessArguments,this._enablePositionalOptions=c._enablePositionalOptions,this._showHelpAfterError=c._showHelpAfterError,this._showSuggestionAfterError=c._showSuggestionAfterError,this}_getCommandAndAncestors(){let c=[];for(let f=this;f;f=f.parent)c.push(f);return c}command(c,f,y){let b=f,k=y;typeof b=="object"&&b!==null&&(k=b,b=null),k=k||{};let[,g,p]=c.match(/([^ ]+) *(.*)/),A=this.createCommand(g);return b&&(A.description(b),A._executableHandler=!0),k.isDefault&&(this._defaultCommandName=A._name),A._hidden=!!(k.noHelp||k.hidden),A._executableFile=k.executableFile||null,p&&A.arguments(p),this._registerCommand(A),A.parent=this,A.copyInheritedSettings(this),b?this:A}createCommand(c){return new l(c)}createHelp(){return Object.assign(new Rqt,this.configureHelp())}configureHelp(c){return c===void 0?this._helpConfiguration:(this._helpConfiguration=c,this)}configureOutput(c){return c===void 0?this._outputConfiguration:(Object.assign(this._outputConfiguration,c),this)}showHelpAfterError(c=!0){return typeof c!="string"&&(c=!!c),this._showHelpAfterError=c,this}showSuggestionAfterError(c=!0){return this._showSuggestionAfterError=!!c,this}addCommand(c,f){if(!c._name)throw new Error(`Command passed to .addCommand() must have a name
- specify the name in Command constructor or using .name()`);return f=f||{},f.isDefault&&(this._defaultCommandName=c._name),(f.noHelp||f.hidden)&&(c._hidden=!0),this._registerCommand(c),c.parent=this,c._checkForBrokenPassThrough(),this}createArgument(c,f){return new wqt(c,f)}argument(c,f,y,b){let k=this.createArgument(c,f);return typeof y=="function"?k.default(b).argParser(y):k.default(y),this.addArgument(k),this}arguments(c){return c.trim().split(/ +/).forEach(f=>{this.argument(f)}),this}addArgument(c){let f=this.registeredArguments.slice(-1)[0];if(f&&f.variadic)throw new Error(`only the last argument can be variadic '${f.name()}'`);if(c.required&&c.defaultValue!==void 0&&c.parseArg===void 0)throw new Error(`a default value for a required argument is never used: '${c.name()}'`);return this.registeredArguments.push(c),this}helpCommand(c,f){if(typeof c=="boolean")return this._addImplicitHelpCommand=c,this;c=c??"help [command]";let[,y,b]=c.match(/([^ ]+) *(.*)/),k=f??"display help for command",g=this.createCommand(y);return g.helpOption(!1),b&&g.arguments(b),k&&g.description(k),this._addImplicitHelpCommand=!0,this._helpCommand=g,this}addHelpCommand(c,f){return typeof c!="object"?(this.helpCommand(c,f),this):(this._addImplicitHelpCommand=!0,this._helpCommand=c,this)}_getHelpCommand(){return this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))?(this._helpCommand===void 0&&this.helpCommand(void 0,void 0),this._helpCommand):null}hook(c,f){let y=["preSubcommand","preAction","postAction"];if(!y.includes(c))throw new Error(`Unexpected value for event passed to hook : '${c}'.
Expecting one of '${y.join("', '")}'`);return this._lifeCycleHooks[c]?this._lifeCycleHooks[c].push(f):this._lifeCycleHooks[c]=[f],this}exitOverride(c){return c?this._exitCallback=c:this._exitCallback=f=>{if(f.code!=="commander.executeSubCommandAsync")throw f},this}_exit(c,f,y){this._exitCallback&&this._exitCallback(new CAe(c,f,y)),zd.exit(c)}action(c){let f=y=>{let b=this.registeredArguments.length,k=y.slice(0,b);return this._storeOptionsAsProperties?k[b]=this:k[b]=this.opts(),k.push(this),c.apply(this,k)};return this._actionHandler=f,this}createOption(c,f){return new fXe(c,f)}_callParseArg(c,f,y,b){try{return c.parseArg(f,y)}catch(k){if(k.code==="commander.invalidArgument"){let g=`${b} ${k.message}`;this.error(g,{exitCode:k.exitCode,code:k.code})}throw k}}_registerOption(c){let f=c.short&&this._findOption(c.short)||c.long&&this._findOption(c.long);if(f){let y=c.long&&this._findOption(c.long)?c.long:c.short;throw new Error(`Cannot add option '${c.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${y}'
-  already used by option '${f.flags}'`)}this.options.push(c)}_registerCommand(c){let f=b=>[b.name()].concat(b.aliases()),y=f(c).find(b=>this._findCommand(b));if(y){let b=f(this._findCommand(y)).join("|"),k=f(c).join("|");throw new Error(`cannot add command '${k}' as already have command '${b}'`)}this.commands.push(c)}addOption(c){this._registerOption(c);let f=c.name(),y=c.attributeName();if(c.negate){let k=c.long.replace(/^--no-/,"--");this._findOption(k)||this.setOptionValueWithSource(y,c.defaultValue===void 0?!0:c.defaultValue,"default")}else c.defaultValue!==void 0&&this.setOptionValueWithSource(y,c.defaultValue,"default");let b=(k,g,p)=>{k==null&&c.presetArg!==void 0&&(k=c.presetArg);let A=this.getOptionValue(y);k!==null&&c.parseArg?k=this._callParseArg(c,k,A,g):k!==null&&c.variadic&&(k=c._concatValue(k,A)),k==null&&(c.negate?k=!1:c.isBoolean()||c.optional?k=!0:k=""),this.setOptionValueWithSource(y,k,p)};return this.on("option:"+f,k=>{let g=`error: option '${c.flags}' argument '${k}' is invalid.`;b(k,g,"cli")}),c.envVar&&this.on("optionEnv:"+f,k=>{let g=`error: option '${c.flags}' value '${k}' from env '${c.envVar}' is invalid.`;b(k,g,"env")}),this}_optionEx(c,f,y,b,k){if(typeof f=="object"&&f instanceof fXe)throw new Error("To add an Option object use addOption() instead of option() or requiredOption()");let g=this.createOption(f,y);if(g.makeOptionMandatory(!!c.mandatory),typeof b=="function")g.default(k).argParser(b);else if(b instanceof RegExp){let p=b;b=(A,j)=>{let se=p.exec(A);return se?se[0]:j},g.default(k).argParser(b)}else g.default(b);return this.addOption(g)}option(c,f,y,b){return this._optionEx({},c,f,y,b)}requiredOption(c,f,y,b){return this._optionEx({mandatory:!0},c,f,y,b)}combineFlagAndOptionalValue(c=!0){return this._combineFlagAndOptionalValue=!!c,this}allowUnknownOption(c=!0){return this._allowUnknownOption=!!c,this}allowExcessArguments(c=!0){return this._allowExcessArguments=!!c,this}enablePositionalOptions(c=!0){return this._enablePositionalOptions=!!c,this}passThroughOptions(c=!0){return this._passThroughOptions=!!c,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw new Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(c=!0){if(this.options.length)throw new Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw new Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!c,this}getOptionValue(c){return this._storeOptionsAsProperties?this[c]:this._optionValues[c]}setOptionValue(c,f){return this.setOptionValueWithSource(c,f,void 0)}setOptionValueWithSource(c,f,y){return this._storeOptionsAsProperties?this[c]=f:this._optionValues[c]=f,this._optionValueSources[c]=y,this}getOptionValueSource(c){return this._optionValueSources[c]}getOptionValueSourceWithGlobals(c){let f;return this._getCommandAndAncestors().forEach(y=>{y.getOptionValueSource(c)!==void 0&&(f=y.getOptionValueSource(c))}),f}_prepareUserArgs(c,f){if(c!==void 0&&!Array.isArray(c))throw new Error("first parameter to parse must be array or undefined");if(f=f||{},c===void 0&&f.from===void 0){zd.versions?.electron&&(f.from="electron");let b=zd.execArgv??[];(b.includes("-e")||b.includes("--eval")||b.includes("-p")||b.includes("--print"))&&(f.from="eval")}c===void 0&&(c=zd.argv),this.rawArgs=c.slice();let y;switch(f.from){case void 0:case"node":this._scriptPath=c[1],y=c.slice(2);break;case"electron":zd.defaultApp?(this._scriptPath=c[1],y=c.slice(2)):y=c.slice(1);break;case"user":y=c.slice(0);break;case"eval":y=c.slice(1);break;default:throw new Error(`unexpected parse option { from: '${f.from}' }`)}return!this._name&&this._scriptPath&&this.nameFromFilename(this._scriptPath),this._name=this._name||"program",y}parse(c,f){let y=this._prepareUserArgs(c,f);return this._parseCommand([],y),this}async parseAsync(c,f){let y=this._prepareUserArgs(c,f);return await this._parseCommand([],y),this}_executeSubCommand(c,f){f=f.slice();let y=!1,b=[".js",".ts",".tsx",".mjs",".cjs"];function k(se,We){let ve=sP.resolve(se,We);if(xAe.existsSync(ve))return ve;if(b.includes(sP.extname(We)))return;let lr=b.find(Rr=>xAe.existsSync(`${ve}${Rr}`));if(lr)return`${ve}${lr}`}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let g=c._executableFile||`${this._name}-${c._name}`,p=this._executableDir||"";if(this._scriptPath){let se;try{se=xAe.realpathSync(this._scriptPath)}catch{se=this._scriptPath}p=sP.resolve(sP.dirname(se),p)}if(p){let se=k(p,g);if(!se&&!c._executableFile&&this._scriptPath){let We=sP.basename(this._scriptPath,sP.extname(this._scriptPath));We!==this._name&&(se=k(p,`${We}-${c._name}`))}g=se||g}y=b.includes(sP.extname(g));let A;zd.platform!=="win32"?y?(f.unshift(g),f=dXe(zd.execArgv).concat(f),A=EAe.spawn(zd.argv[0],f,{stdio:"inherit"})):A=EAe.spawn(g,f,{stdio:"inherit"}):(f.unshift(g),f=dXe(zd.execArgv).concat(f),A=EAe.spawn(zd.execPath,f,{stdio:"inherit"})),A.killed||["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach(We=>{zd.on(We,()=>{A.killed===!1&&A.exitCode===null&&A.kill(We)})});let j=this._exitCallback;A.on("close",se=>{se=se??1,j?j(new CAe(se,"commander.executeSubCommandAsync","(close)")):zd.exit(se)}),A.on("error",se=>{if(se.code==="ENOENT"){let We=p?`searched for local subcommand relative to directory '${p}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",ve=`'${g}' does not exist
 - if '${c._name}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
 - if the default executable name is not suitable, use the executableFile option to supply a custom name or path
 - ${We}`;throw new Error(ve)}else if(se.code==="EACCES")throw new Error(`'${g}' not executable`);if(!j)zd.exit(1);else{let We=new CAe(1,"commander.executeSubCommandAsync","(error)");We.nestedError=se,j(We)}}),this.runningCommand=A}_dispatchSubcommand(c,f,y){let b=this._findCommand(c);b||this.help({error:!0});let k;return k=this._chainOrCallSubCommandHook(k,b,"preSubcommand"),k=this._chainOrCall(k,()=>{if(b._executableHandler)this._executeSubCommand(b,f.concat(y));else return b._parseCommand(f,y)}),k}_dispatchHelpCommand(c){c||this.help();let f=this._findCommand(c);return f&&!f._executableHandler&&f.help(),this._dispatchSubcommand(c,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){this.registeredArguments.forEach((c,f)=>{c.required&&this.args[f]==null&&this.missingArgument(c.name())}),!(this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)&&this.args.length>this.registeredArguments.length&&this._excessArguments(this.args)}_processArguments(){let c=(y,b,k)=>{let g=b;if(b!==null&&y.parseArg){let p=`error: command-argument value '${b}' is invalid for argument '${y.name()}'.`;g=this._callParseArg(y,b,k,p)}return g};this._checkNumberOfArguments();let f=[];this.registeredArguments.forEach((y,b)=>{let k=y.defaultValue;y.variadic?bc(y,p,g),y.defaultValue))):k===void 0&&(k=[]):bf()):f()}_chainOrCallHooks(c,f){let y=c,b=[];return this._getCommandAndAncestors().reverse().filter(k=>k._lifeCycleHooks[f]!==void 0).forEach(k=>{k._lifeCycleHooks[f].forEach(g=>{b.push({hookedCommand:k,callback:g})})}),f==="postAction"&&b.reverse(),b.forEach(k=>{y=this._chainOrCall(y,()=>k.callback(k.hookedCommand,this))}),y}_chainOrCallSubCommandHook(c,f,y){let b=c;return this._lifeCycleHooks[y]!==void 0&&this._lifeCycleHooks[y].forEach(k=>{b=this._chainOrCall(b,()=>k(this,f))}),b}_parseCommand(c,f){let y=this.parseOptions(f);if(this._parseOptionsEnv(),this._parseOptionsImplied(),c=c.concat(y.operands),f=y.unknown,this.args=c.concat(f),c&&this._findCommand(c[0]))return this._dispatchSubcommand(c[0],c.slice(1),f);if(this._getHelpCommand()&&c[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(c[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(f),this._dispatchSubcommand(this._defaultCommandName,c,f);this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName&&this.help({error:!0}),this._outputHelpIfRequested(y.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let b=()=>{y.unknown.length>0&&this.unknownOption(y.unknown[0])},k=`command:${this.name()}`;if(this._actionHandler){b(),this._processArguments();let g;return g=this._chainOrCallHooks(g,"preAction"),g=this._chainOrCall(g,()=>this._actionHandler(this.processedArgs)),this.parent&&(g=this._chainOrCall(g,()=>{this.parent.emit(k,c,f)})),g=this._chainOrCallHooks(g,"postAction"),g}if(this.parent&&this.parent.listenerCount(k))b(),this._processArguments(),this.parent.emit(k,c,f);else if(c.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",c,f);this.listenerCount("command:*")?this.emit("command:*",c,f):this.commands.length?this.unknownCommand():(b(),this._processArguments())}else this.commands.length?(b(),this.help({error:!0})):(b(),this._processArguments())}_findCommand(c){if(c)return this.commands.find(f=>f._name===c||f._aliases.includes(c))}_findOption(c){return this.options.find(f=>f.is(c))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach(c=>{c.options.forEach(f=>{f.mandatory&&c.getOptionValue(f.attributeName())===void 0&&c.missingMandatoryOptionValue(f)})})}_checkForConflictingLocalOptions(){let c=this.options.filter(y=>{let b=y.attributeName();return this.getOptionValue(b)===void 0?!1:this.getOptionValueSource(b)!=="default"});c.filter(y=>y.conflictsWith.length>0).forEach(y=>{let b=c.find(k=>y.conflictsWith.includes(k.attributeName()));b&&this._conflictingOption(y,b)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach(c=>{c._checkForConflictingLocalOptions()})}parseOptions(c){let f=[],y=[],b=f,k=c.slice();function g(A){return A.length>1&&A[0]==="-"}let p=null;for(;k.length;){let A=k.shift();if(A==="--"){b===y&&b.push(A),b.push(...k);break}if(p&&!g(A)){this.emit(`option:${p.name()}`,A);continue}if(p=null,g(A)){let j=this._findOption(A);if(j){if(j.required){let se=k.shift();se===void 0&&this.optionMissingArgument(j),this.emit(`option:${j.name()}`,se)}else if(j.optional){let se=null;k.length>0&&!g(k[0])&&(se=k.shift()),this.emit(`option:${j.name()}`,se)}else this.emit(`option:${j.name()}`);p=j.variadic?j:null;continue}}if(A.length>2&&A[0]==="-"&&A[1]!=="-"){let j=this._findOption(`-${A[1]}`);if(j){j.required||j.optional&&this._combineFlagAndOptionalValue?this.emit(`option:${j.name()}`,A.slice(2)):(this.emit(`option:${j.name()}`),k.unshift(`-${A.slice(2)}`));continue}}if(/^--[^=]+=/.test(A)){let j=A.indexOf("="),se=this._findOption(A.slice(0,j));if(se&&(se.required||se.optional)){this.emit(`option:${se.name()}`,A.slice(j+1));continue}}if(g(A)&&(b=y),(this._enablePositionalOptions||this._passThroughOptions)&&f.length===0&&y.length===0){if(this._findCommand(A)){f.push(A),k.length>0&&y.push(...k);break}else if(this._getHelpCommand()&&A===this._getHelpCommand().name()){f.push(A),k.length>0&&f.push(...k);break}else if(this._defaultCommandName){y.push(A),k.length>0&&y.push(...k);break}}if(this._passThroughOptions){b.push(A),k.length>0&&b.push(...k);break}b.push(A)}return{operands:f,unknown:y}}opts(){if(this._storeOptionsAsProperties){let c={},f=this.options.length;for(let y=0;yObject.assign(c,f.opts()),{})}error(c,f){this._outputConfiguration.outputError(`${c}
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError=="string"?this._outputConfiguration.writeErr(`${this._showHelpAfterError}
`):this._showHelpAfterError&&(this._outputConfiguration.writeErr(`
`),this.outputHelp({error:!0}));let y=f||{},b=y.exitCode||1,k=y.code||"commander.error";this._exit(b,k,c)}_parseOptionsEnv(){this.options.forEach(c=>{if(c.envVar&&c.envVar in zd.env){let f=c.attributeName();(this.getOptionValue(f)===void 0||["default","config","env"].includes(this.getOptionValueSource(f)))&&(c.required||c.optional?this.emit(`optionEnv:${c.name()}`,zd.env[c.envVar]):this.emit(`optionEnv:${c.name()}`))}})}_parseOptionsImplied(){let c=new Mqt(this.options),f=y=>this.getOptionValue(y)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(y));this.options.filter(y=>y.implied!==void 0&&f(y.attributeName())&&c.valueFromOption(this.getOptionValue(y.attributeName()),y)).forEach(y=>{Object.keys(y.implied).filter(b=>!f(b)).forEach(b=>{this.setOptionValueWithSource(b,y.implied[b],"implied")})})}missingArgument(c){let f=`error: missing required argument '${c}'`;this.error(f,{code:"commander.missingArgument"})}optionMissingArgument(c){let f=`error: option '${c.flags}' argument missing`;this.error(f,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(c){let f=`error: required option '${c.flags}' not specified`;this.error(f,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(c,f){let y=g=>{let p=g.attributeName(),A=this.getOptionValue(p),j=this.options.find(We=>We.negate&&p===We.attributeName()),se=this.options.find(We=>!We.negate&&p===We.attributeName());return j&&(j.presetArg===void 0&&A===!1||j.presetArg!==void 0&&A===j.presetArg)?j:se||g},b=g=>{let p=y(g),A=p.attributeName();return this.getOptionValueSource(A)==="env"?`environment variable '${p.envVar}'`:`option '${p.flags}'`},k=`error: ${b(c)} cannot be used with ${b(f)}`;this.error(k,{code:"commander.conflictingOption"})}unknownOption(c){if(this._allowUnknownOption)return;let f="";if(c.startsWith("--")&&this._showSuggestionAfterError){let b=[],k=this;do{let g=k.createHelp().visibleOptions(k).filter(p=>p.long).map(p=>p.long);b=b.concat(g),k=k.parent}while(k&&!k._enablePositionalOptions);f=pXe(c,b)}let y=`error: unknown option '${c}'${f}`;this.error(y,{code:"commander.unknownOption"})}_excessArguments(c){if(this._allowExcessArguments)return;let f=this.registeredArguments.length,y=f===1?"":"s",k=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${f} argument${y} but got ${c.length}.`;this.error(k,{code:"commander.excessArguments"})}unknownCommand(){let c=this.args[0],f="";if(this._showSuggestionAfterError){let b=[];this.createHelp().visibleCommands(this).forEach(k=>{b.push(k.name()),k.alias()&&b.push(k.alias())}),f=pXe(c,b)}let y=`error: unknown command '${c}'${f}`;this.error(y,{code:"commander.unknownCommand"})}version(c,f,y){if(c===void 0)return this._version;this._version=c,f=f||"-V, --version",y=y||"output the version number";let b=this.createOption(f,y);return this._versionOptionName=b.attributeName(),this._registerOption(b),this.on("option:"+b.name(),()=>{this._outputConfiguration.writeOut(`${c}
`),this._exit(0,"commander.version",c)}),this}description(c,f){return c===void 0&&f===void 0?this._description:(this._description=c,f&&(this._argsDescription=f),this)}summary(c){return c===void 0?this._summary:(this._summary=c,this)}alias(c){if(c===void 0)return this._aliases[0];let f=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(f=this.commands[this.commands.length-1]),c===f._name)throw new Error("Command alias can't be the same as its name");let y=this.parent?._findCommand(c);if(y){let b=[y.name()].concat(y.aliases()).join("|");throw new Error(`cannot add alias '${c}' to command '${this.name()}' as already have command '${b}'`)}return f._aliases.push(c),this}aliases(c){return c===void 0?this._aliases:(c.forEach(f=>this.alias(f)),this)}usage(c){if(c===void 0){if(this._usage)return this._usage;let f=this.registeredArguments.map(y=>Oqt(y));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?f:[]).join(" ")}return this._usage=c,this}name(c){return c===void 0?this._name:(this._name=c,this)}nameFromFilename(c){return this._name=sP.basename(c,sP.extname(c)),this}executableDir(c){return c===void 0?this._executableDir:(this._executableDir=c,this)}helpInformation(c){let f=this.createHelp();return f.helpWidth===void 0&&(f.helpWidth=c&&c.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),f.formatHelp(this,f)}_getHelpContext(c){c=c||{};let f={error:!!c.error},y;return f.error?y=b=>this._outputConfiguration.writeErr(b):y=b=>this._outputConfiguration.writeOut(b),f.write=c.write||y,f.command=this,f}outputHelp(c){let f;typeof c=="function"&&(f=c,c=void 0);let y=this._getHelpContext(c);this._getCommandAndAncestors().reverse().forEach(k=>k.emit("beforeAllHelp",y)),this.emit("beforeHelp",y);let b=this.helpInformation(y);if(f&&(b=f(b),typeof b!="string"&&!Buffer.isBuffer(b)))throw new Error("outputHelp callback must return a string or a Buffer");y.write(b),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",y),this._getCommandAndAncestors().forEach(k=>k.emit("afterAllHelp",y))}helpOption(c,f){return typeof c=="boolean"?(c?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(c=c??"-h, --help",f=f??"display help for command",this._helpOption=this.createOption(c,f),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(c){return this._helpOption=c,this}help(c){this.outputHelp(c);let f=zd.exitCode||0;f===0&&c&&typeof c!="function"&&c.error&&(f=1),this._exit(f,"commander.help","(outputHelp)")}addHelpText(c,f){let y=["beforeAll","before","after","afterAll"];if(!y.includes(c))throw new Error(`Unexpected value for position to addHelpText.
Expecting one of '${y.join("', '")}'`);let b=`${c}Help`;return this.on(b,k=>{let g;typeof f=="function"?g=f({error:k.error,command:k.command}):g=f,g&&k.write(`${g}
`)}),this}_outputHelpIfRequested(c){let f=this._getHelpOption();f&&c.find(b=>f.is(b))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function dXe(l){return l.map(c=>{if(!c.startsWith("--inspect"))return c;let f,y="127.0.0.1",b="9229",k;return(k=c.match(/^(--inspect(-brk)?)$/))!==null?f=k[1]:(k=c.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(f=k[1],/^\d+$/.test(k[3])?b=k[3]:y=k[3]):(k=c.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(f=k[1],y=k[3],b=k[4]),f&&b!=="0"?`${f}=${y}:${parseInt(b)+1}`:c})}mXe.Command=AAe});var SXe=xt(Ab=>{var{Argument:hXe}=zne(),{Command:kAe}=gXe(),{CommanderError:Lqt,InvalidArgumentError:yXe}=Jq(),{Help:Fqt}=yAe(),{Option:vXe}=bAe();Ab.program=new kAe;Ab.createCommand=l=>new kAe(l);Ab.createOption=(l,c)=>new vXe(l,c);Ab.createArgument=(l,c)=>new hXe(l,c);Ab.Command=kAe;Ab.Option=vXe;Ab.Argument=hXe;Ab.Help=Fqt;Ab.CommanderError=Lqt;Ab.InvalidArgumentError=yXe;Ab.InvalidOptionArgumentError=yXe});var EXe,xXe=Ic(()=>{EXe=typeof globalThis=="object"?globalThis:global});var CXe=Ic(()=>{xXe()});var AXe=Ic(()=>{CXe()});var oP,NAe=Ic(()=>{oP="1.9.0"});function Kqt(l){var c=new Set([l]),f=new Set,y=l.match(kXe);if(!y)return function(){return!1};var b={major:+y[1],minor:+y[2],patch:+y[3],prerelease:y[4]};if(b.prerelease!=null)return function(A){return A===l};function k(p){return f.add(p),!1}function g(p){return c.add(p),!0}return function(A){if(c.has(A))return!0;if(f.has(A))return!1;var j=A.match(kXe);if(!j)return k(A);var se={major:+j[1],minor:+j[2],patch:+j[3],prerelease:j[4]};return se.prerelease!=null||b.major!==se.major?k(A):b.major===0?b.minor===se.minor&&b.patch<=se.patch?g(A):k(A):b.minor<=se.minor?g(A):k(A)}}var kXe,PXe,NXe=Ic(()=>{NAe();kXe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;PXe=Kqt(oP)});function dC(l,c,f,y){var b;y===void 0&&(y=!1);var k=zq[qq]=(b=zq[qq])!==null&&b!==void 0?b:{version:oP};if(!y&&k[l]){var g=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+l);return f.error(g.stack||g.message),!1}if(k.version!==oP){var g=new Error("@opentelemetry/api: Registration of version v"+k.version+" for "+l+" does not match previously registered API v"+oP);return f.error(g.stack||g.message),!1}return k[l]=c,f.debug("@opentelemetry/api: Registered a global for "+l+" v"+oP+"."),!0}function zS(l){var c,f,y=(c=zq[qq])===null||c===void 0?void 0:c.version;if(!(!y||!PXe(y)))return(f=zq[qq])===null||f===void 0?void 0:f[l]}function mC(l,c){c.debug("@opentelemetry/api: Unregistering a global for "+l+" v"+oP+".");var f=zq[qq];f&&delete f[l]}var Xqt,qq,zq,b4=Ic(()=>{AXe();NAe();NXe();Xqt=oP.split(".")[0],qq=Symbol.for("opentelemetry.js.api."+Xqt),zq=EXe});function Wq(l,c,f){var y=zS("diag");if(y)return f.unshift(c),y[l].apply(y,Zqt([],Qqt(f),!1))}var Qqt,Zqt,DXe,IXe=Ic(()=>{b4();Qqt=function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var y=f.call(l),b,k=[],g;try{for(;(c===void 0||c-- >0)&&!(b=y.next()).done;)k.push(b.value)}catch(p){g={error:p}}finally{try{b&&!b.done&&(f=y.return)&&f.call(y)}finally{if(g)throw g.error}}return k},Zqt=function(l,c,f){if(f||arguments.length===2)for(var y=0,b=c.length,k;y{(function(l){l[l.NONE=0]="NONE",l[l.ERROR=30]="ERROR",l[l.WARN=50]="WARN",l[l.INFO=60]="INFO",l[l.DEBUG=70]="DEBUG",l[l.VERBOSE=80]="VERBOSE",l[l.ALL=9999]="ALL"})(_y||(_y={}))});function wXe(l,c){l<_y.NONE?l=_y.NONE:l>_y.ALL&&(l=_y.ALL),c=c||{};function f(y,b){var k=c[y];return typeof k=="function"&&l>=b?k.bind(c):function(){}}return{error:f("error",_y.ERROR),warn:f("warn",_y.WARN),info:f("info",_y.INFO),debug:f("debug",_y.DEBUG),verbose:f("verbose",_y.VERBOSE)}}var OXe=Ic(()=>{Wne()});var ezt,tzt,rzt,Xy,E4=Ic(()=>{IXe();OXe();Wne();b4();ezt=function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var y=f.call(l),b,k=[],g;try{for(;(c===void 0||c-- >0)&&!(b=y.next()).done;)k.push(b.value)}catch(p){g={error:p}}finally{try{b&&!b.done&&(f=y.return)&&f.call(y)}finally{if(g)throw g.error}}return k},tzt=function(l,c,f){if(f||arguments.length===2)for(var y=0,b=c.length,k;y";se.warn("Current logger will be overwritten from "+ve),We.warn("Current logger will overwrite one already registered from "+ve)}return dC("diag",We,f,!0)};f.setLogger=y,f.disable=function(){mC(rzt,f)},f.createComponentLogger=function(b){return new DXe(b)},f.verbose=c("verbose"),f.debug=c("debug"),f.info=c("info"),f.warn=c("warn"),f.error=c("error")}return l.instance=function(){return this._instance||(this._instance=new l),this._instance},l}()});var nzt,izt,RXe,MXe=Ic(()=>{nzt=function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var y=f.call(l),b,k=[],g;try{for(;(c===void 0||c-- >0)&&!(b=y.next()).done;)k.push(b.value)}catch(p){g={error:p}}finally{try{b&&!b.done&&(f=y.return)&&f.call(y)}finally{if(g)throw g.error}}return k},izt=function(l){var c=typeof Symbol=="function"&&Symbol.iterator,f=c&&l[c],y=0;if(f)return f.call(l);if(l&&typeof l.length=="number")return{next:function(){return l&&y>=l.length&&(l=void 0),{value:l&&l[y++],done:!l}}};throw new TypeError(c?"Object is not iterable.":"Symbol.iterator is not defined.")},RXe=function(){function l(c){this._entries=c?new Map(c):new Map}return l.prototype.getEntry=function(c){var f=this._entries.get(c);if(f)return Object.assign({},f)},l.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(c){var f=nzt(c,2),y=f[0],b=f[1];return[y,b]})},l.prototype.setEntry=function(c,f){var y=new l(this._entries);return y._entries.set(c,f),y},l.prototype.removeEntry=function(c){var f=new l(this._entries);return f._entries.delete(c),f},l.prototype.removeEntries=function(){for(var c,f,y=[],b=0;b{LXe=Symbol("BaggageEntryMetadata")});function jXe(l){return l===void 0&&(l={}),new RXe(new Map(Object.entries(l)))}function BXe(l){return typeof l!="string"&&(szt.error("Cannot create baggage metadata from unknown type: "+typeof l),l=""),{__TYPE__:LXe,toString:function(){return l}}}var szt,DAe=Ic(()=>{E4();MXe();FXe();szt=Xy.instance()});function T7(l){return Symbol.for(l)}var ozt,Gne,Gq=Ic(()=>{ozt=function(){function l(c){var f=this;f._currentContext=c?new Map(c):new Map,f.getValue=function(y){return f._currentContext.get(y)},f.setValue=function(y,b){var k=new l(f._currentContext);return k._currentContext.set(y,b),k},f.deleteValue=function(y){var b=new l(f._currentContext);return b._currentContext.delete(y),b}}return l}(),Gne=new ozt});var IAe,UXe,VXe=Ic(()=>{IAe=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],UXe=function(){function l(){function c(y){return function(){for(var b=[],k=0;k{x4=function(){var l=function(c,f){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,b){y.__proto__=b}||function(y,b){for(var k in b)Object.prototype.hasOwnProperty.call(b,k)&&(y[k]=b[k])},l(c,f)};return function(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");l(c,f);function y(){this.constructor=c}c.prototype=f===null?Object.create(f):(y.prototype=f.prototype,new y)}}(),azt=function(){function l(){}return l.prototype.createGauge=function(c,f){return gzt},l.prototype.createHistogram=function(c,f){return hzt},l.prototype.createCounter=function(c,f){return mzt},l.prototype.createUpDownCounter=function(c,f){return yzt},l.prototype.createObservableGauge=function(c,f){return Szt},l.prototype.createObservableCounter=function(c,f){return vzt},l.prototype.createObservableUpDownCounter=function(c,f){return Tzt},l.prototype.addBatchObservableCallback=function(c,f){},l.prototype.removeBatchObservableCallback=function(c){},l}(),Hne=function(){function l(){}return l}(),czt=function(l){x4(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.add=function(f,y){},c}(Hne),lzt=function(l){x4(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.add=function(f,y){},c}(Hne),uzt=function(l){x4(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.record=function(f,y){},c}(Hne),_zt=function(l){x4(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.record=function(f,y){},c}(Hne),wAe=function(){function l(){}return l.prototype.addCallback=function(c){},l.prototype.removeCallback=function(c){},l}(),fzt=function(l){x4(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c}(wAe),pzt=function(l){x4(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c}(wAe),dzt=function(l){x4(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c}(wAe),OAe=new azt,mzt=new czt,gzt=new uzt,hzt=new _zt,yzt=new lzt,vzt=new fzt,Szt=new pzt,Tzt=new dzt});var b7,qXe=Ic(()=>{(function(l){l[l.INT=0]="INT",l[l.DOUBLE=1]="DOUBLE"})(b7||(b7={}))});var $ne,Yne,MAe=Ic(()=>{$ne={get:function(l,c){if(l!=null)return l[c]},keys:function(l){return l==null?[]:Object.keys(l)}},Yne={set:function(l,c,f){l!=null&&(l[c]=f)}}});var bzt,Ezt,zXe,WXe=Ic(()=>{Gq();bzt=function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var y=f.call(l),b,k=[],g;try{for(;(c===void 0||c-- >0)&&!(b=y.next()).done;)k.push(b.value)}catch(p){g={error:p}}finally{try{b&&!b.done&&(f=y.return)&&f.call(y)}finally{if(g)throw g.error}}return k},Ezt=function(l,c,f){if(f||arguments.length===2)for(var y=0,b=c.length,k;y{WXe();b4();E4();xzt=function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var y=f.call(l),b,k=[],g;try{for(;(c===void 0||c-- >0)&&!(b=y.next()).done;)k.push(b.value)}catch(p){g={error:p}}finally{try{b&&!b.done&&(f=y.return)&&f.call(y)}finally{if(g)throw g.error}}return k},Czt=function(l,c,f){if(f||arguments.length===2)for(var y=0,b=c.length,k;y{(function(l){l[l.NONE=0]="NONE",l[l.SAMPLED=1]="SAMPLED"})(E7||(E7={}))});var $q,Yq,Kne,Xne=Ic(()=>{FAe();$q="0000000000000000",Yq="00000000000000000000000000000000",Kne={traceId:Yq,spanId:$q,traceFlags:E7.NONE}});var uI,Qne=Ic(()=>{Xne();uI=function(){function l(c){c===void 0&&(c=Kne),this._spanContext=c}return l.prototype.spanContext=function(){return this._spanContext},l.prototype.setAttribute=function(c,f){return this},l.prototype.setAttributes=function(c){return this},l.prototype.addEvent=function(c,f){return this},l.prototype.addLink=function(c){return this},l.prototype.addLinks=function(c){return this},l.prototype.setStatus=function(c){return this},l.prototype.updateName=function(c){return this},l.prototype.end=function(c){},l.prototype.isRecording=function(){return!1},l.prototype.recordException=function(c,f){},l}()});function Zne(l){return l.getValue(jAe)||void 0}function GXe(){return Zne(lI.getInstance().active())}function Kq(l,c){return l.setValue(jAe,c)}function HXe(l){return l.deleteValue(jAe)}function $Xe(l,c){return Kq(l,new uI(c))}function eie(l){var c;return(c=Zne(l))===null||c===void 0?void 0:c.spanContext()}var jAe,BAe=Ic(()=>{Gq();Qne();Hq();jAe=T7("OpenTelemetry Context Key SPAN")});function UAe(l){return kzt.test(l)&&l!==Yq}function VAe(l){return Pzt.test(l)&&l!==$q}function x7(l){return UAe(l.traceId)&&VAe(l.spanId)}function YXe(l){return new uI(l)}var kzt,Pzt,tie=Ic(()=>{Xne();Qne();kzt=/^([0-9a-f]{32})$/i,Pzt=/^[0-9a-f]{16}$/i});function Nzt(l){return typeof l=="object"&&typeof l.spanId=="string"&&typeof l.traceId=="string"&&typeof l.traceFlags=="number"}var JAe,rie,qAe=Ic(()=>{Hq();BAe();Qne();tie();JAe=lI.getInstance(),rie=function(){function l(){}return l.prototype.startSpan=function(c,f,y){y===void 0&&(y=JAe.active());var b=!!f?.root;if(b)return new uI;var k=y&&eie(y);return Nzt(k)&&x7(k)?new uI(k):new uI},l.prototype.startActiveSpan=function(c,f,y,b){var k,g,p;if(!(arguments.length<2)){arguments.length===2?p=f:arguments.length===3?(k=f,p=y):(k=f,g=y,p=b);var A=g??JAe.active(),j=this.startSpan(c,k,A),se=Kq(A,j);return JAe.with(se,p,void 0,j)}},l}()});var Dzt,nie,zAe=Ic(()=>{qAe();Dzt=new rie,nie=function(){function l(c,f,y,b){this._provider=c,this.name=f,this.version=y,this.options=b}return l.prototype.startSpan=function(c,f,y){return this._getTracer().startSpan(c,f,y)},l.prototype.startActiveSpan=function(c,f,y,b){var k=this._getTracer();return Reflect.apply(k.startActiveSpan,k,arguments)},l.prototype._getTracer=function(){if(this._delegate)return this._delegate;var c=this._provider.getDelegateTracer(this.name,this.version,this.options);return c?(this._delegate=c,this._delegate):Dzt},l}()});var KXe,XXe=Ic(()=>{qAe();KXe=function(){function l(){}return l.prototype.getTracer=function(c,f,y){return new rie},l}()});var Izt,Xq,WAe=Ic(()=>{zAe();XXe();Izt=new KXe,Xq=function(){function l(){}return l.prototype.getTracer=function(c,f,y){var b;return(b=this.getDelegateTracer(c,f,y))!==null&&b!==void 0?b:new nie(this,c,f,y)},l.prototype.getDelegate=function(){var c;return(c=this._delegate)!==null&&c!==void 0?c:Izt},l.prototype.setDelegate=function(c){this._delegate=c},l.prototype.getDelegateTracer=function(c,f,y){var b;return(b=this._delegate)===null||b===void 0?void 0:b.getTracer(c,f,y)},l}()});var iie,QXe=Ic(()=>{(function(l){l[l.NOT_RECORD=0]="NOT_RECORD",l[l.RECORD=1]="RECORD",l[l.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(iie||(iie={}))});var sie,ZXe=Ic(()=>{(function(l){l[l.INTERNAL=0]="INTERNAL",l[l.SERVER=1]="SERVER",l[l.CLIENT=2]="CLIENT",l[l.PRODUCER=3]="PRODUCER",l[l.CONSUMER=4]="CONSUMER"})(sie||(sie={}))});var oie,eQe=Ic(()=>{(function(l){l[l.UNSET=0]="UNSET",l[l.OK=1]="OK",l[l.ERROR=2]="ERROR"})(oie||(oie={}))});function tQe(l){return Rzt.test(l)}function rQe(l){return Mzt.test(l)&&!Lzt.test(l)}var GAe,wzt,Ozt,Rzt,Mzt,Lzt,nQe=Ic(()=>{GAe="[_0-9a-z-*/]",wzt="[a-z]"+GAe+"{0,255}",Ozt="[a-z0-9]"+GAe+"{0,240}@[a-z]"+GAe+"{0,13}",Rzt=new RegExp("^(?:"+wzt+"|"+Ozt+")$"),Mzt=/^[ -~]{0,255}[!-~]$/,Lzt=/,|=/});var iQe,Fzt,sQe,oQe,aQe,cQe=Ic(()=>{nQe();iQe=32,Fzt=512,sQe=",",oQe="=",aQe=function(){function l(c){this._internalState=new Map,c&&this._parse(c)}return l.prototype.set=function(c,f){var y=this._clone();return y._internalState.has(c)&&y._internalState.delete(c),y._internalState.set(c,f),y},l.prototype.unset=function(c){var f=this._clone();return f._internalState.delete(c),f},l.prototype.get=function(c){return this._internalState.get(c)},l.prototype.serialize=function(){var c=this;return this._keys().reduce(function(f,y){return f.push(y+oQe+c.get(y)),f},[]).join(sQe)},l.prototype._parse=function(c){c.length>Fzt||(this._internalState=c.split(sQe).reverse().reduce(function(f,y){var b=y.trim(),k=b.indexOf(oQe);if(k!==-1){var g=b.slice(0,k),p=b.slice(k+1,y.length);tQe(g)&&rQe(p)&&f.set(g,p)}return f},new Map),this._internalState.size>iQe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,iQe))))},l.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},l.prototype._clone=function(){var c=new l;return c._internalState=new Map(this._internalState),c},l}()});function lQe(l){return new aQe(l)}var uQe=Ic(()=>{cQe()});var HAe,_Qe=Ic(()=>{Hq();HAe=lI.getInstance()});var $Ae,fQe=Ic(()=>{E4();$Ae=Xy.instance()});var jzt,pQe,dQe=Ic(()=>{RAe();jzt=function(){function l(){}return l.prototype.getMeter=function(c,f,y){return OAe},l}(),pQe=new jzt});var YAe,mQe,gQe=Ic(()=>{dQe();b4();E4();YAe="metrics",mQe=function(){function l(){}return l.getInstance=function(){return this._instance||(this._instance=new l),this._instance},l.prototype.setGlobalMeterProvider=function(c){return dC(YAe,c,Xy.instance())},l.prototype.getMeterProvider=function(){return zS(YAe)||pQe},l.prototype.getMeter=function(c,f,y){return this.getMeterProvider().getMeter(c,f,y)},l.prototype.disable=function(){mC(YAe,Xy.instance())},l}()});var KAe,hQe=Ic(()=>{gQe();KAe=mQe.getInstance()});var yQe,vQe=Ic(()=>{yQe=function(){function l(){}return l.prototype.inject=function(c,f){},l.prototype.extract=function(c,f){return c},l.prototype.fields=function(){return[]},l}()});function QAe(l){return l.getValue(XAe)||void 0}function SQe(){return QAe(lI.getInstance().active())}function TQe(l,c){return l.setValue(XAe,c)}function bQe(l){return l.deleteValue(XAe)}var XAe,EQe=Ic(()=>{Hq();Gq();XAe=T7("OpenTelemetry Baggage Key")});var ZAe,Bzt,xQe,CQe=Ic(()=>{b4();vQe();MAe();EQe();DAe();E4();ZAe="propagation",Bzt=new yQe,xQe=function(){function l(){this.createBaggage=jXe,this.getBaggage=QAe,this.getActiveBaggage=SQe,this.setBaggage=TQe,this.deleteBaggage=bQe}return l.getInstance=function(){return this._instance||(this._instance=new l),this._instance},l.prototype.setGlobalPropagator=function(c){return dC(ZAe,c,Xy.instance())},l.prototype.inject=function(c,f,y){return y===void 0&&(y=Yne),this._getGlobalPropagator().inject(c,f,y)},l.prototype.extract=function(c,f,y){return y===void 0&&(y=$ne),this._getGlobalPropagator().extract(c,f,y)},l.prototype.fields=function(){return this._getGlobalPropagator().fields()},l.prototype.disable=function(){mC(ZAe,Xy.instance())},l.prototype._getGlobalPropagator=function(){return zS(ZAe)||Bzt},l}()});var eke,AQe=Ic(()=>{CQe();eke=xQe.getInstance()});var tke,kQe,PQe=Ic(()=>{b4();WAe();tie();BAe();E4();tke="trace",kQe=function(){function l(){this._proxyTracerProvider=new Xq,this.wrapSpanContext=YXe,this.isSpanContextValid=x7,this.deleteSpan=HXe,this.getSpan=Zne,this.getActiveSpan=GXe,this.getSpanContext=eie,this.setSpan=Kq,this.setSpanContext=$Xe}return l.getInstance=function(){return this._instance||(this._instance=new l),this._instance},l.prototype.setGlobalTracerProvider=function(c){var f=dC(tke,this._proxyTracerProvider,Xy.instance());return f&&this._proxyTracerProvider.setDelegate(c),f},l.prototype.getTracerProvider=function(){return zS(tke)||this._proxyTracerProvider},l.prototype.getTracer=function(c,f){return this.getTracerProvider().getTracer(c,f)},l.prototype.disable=function(){mC(tke,Xy.instance()),this._proxyTracerProvider=new Xq},l}()});var rke,NQe=Ic(()=>{PQe();rke=kQe.getInstance()});var Xc={};aXe(Xc,{DiagConsoleLogger:()=>UXe,DiagLogLevel:()=>_y,INVALID_SPANID:()=>$q,INVALID_SPAN_CONTEXT:()=>Kne,INVALID_TRACEID:()=>Yq,ProxyTracer:()=>nie,ProxyTracerProvider:()=>Xq,ROOT_CONTEXT:()=>Gne,SamplingDecision:()=>iie,SpanKind:()=>sie,SpanStatusCode:()=>oie,TraceFlags:()=>E7,ValueType:()=>b7,baggageEntryMetadataFromString:()=>BXe,context:()=>HAe,createContextKey:()=>T7,createNoopMeter:()=>JXe,createTraceState:()=>lQe,default:()=>Uzt,defaultTextMapGetter:()=>$ne,defaultTextMapSetter:()=>Yne,diag:()=>$Ae,isSpanContextValid:()=>x7,isValidSpanId:()=>VAe,isValidTraceId:()=>UAe,metrics:()=>KAe,propagation:()=>eke,trace:()=>rke});var Uzt,zc=Ic(()=>{DAe();Gq();VXe();Wne();RAe();qXe();MAe();zAe();WAe();QXe();ZXe();eQe();FAe();uQe();tie();Xne();_Qe();fQe();hQe();AQe();NQe();Uzt={context:HAe,diag:$Ae,metrics:KAe,propagation:eke,trace:rke}});var Qq=xt(_I=>{"use strict";Object.defineProperty(_I,"__esModule",{value:!0});_I.isTracingSuppressed=_I.unsuppressTracing=_I.suppressTracing=void 0;var Vzt=(zc(),ol(Xc)),nke=(0,Vzt.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Jzt(l){return l.setValue(nke,!0)}_I.suppressTracing=Jzt;function qzt(l){return l.deleteValue(nke)}_I.unsuppressTracing=qzt;function zzt(l){return l.getValue(nke)===!0}_I.isTracingSuppressed=zzt});var ike=xt(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});Qy.BAGGAGE_MAX_TOTAL_LENGTH=Qy.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=Qy.BAGGAGE_MAX_NAME_VALUE_PAIRS=Qy.BAGGAGE_HEADER=Qy.BAGGAGE_ITEMS_SEPARATOR=Qy.BAGGAGE_PROPERTIES_SEPARATOR=Qy.BAGGAGE_KEY_PAIR_SEPARATOR=void 0;Qy.BAGGAGE_KEY_PAIR_SEPARATOR="=";Qy.BAGGAGE_PROPERTIES_SEPARATOR=";";Qy.BAGGAGE_ITEMS_SEPARATOR=",";Qy.BAGGAGE_HEADER="baggage";Qy.BAGGAGE_MAX_NAME_VALUE_PAIRS=180;Qy.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096;Qy.BAGGAGE_MAX_TOTAL_LENGTH=8192});var ske=xt(gC=>{"use strict";Object.defineProperty(gC,"__esModule",{value:!0});gC.parseKeyPairsIntoRecord=gC.parsePairKeyValue=gC.getKeyPairs=gC.serializeKeyPairs=void 0;var Wzt=(zc(),ol(Xc)),C4=ike();function Gzt(l){return l.reduce((c,f)=>{let y=`${c}${c!==""?C4.BAGGAGE_ITEMS_SEPARATOR:""}${f}`;return y.length>C4.BAGGAGE_MAX_TOTAL_LENGTH?c:y},"")}gC.serializeKeyPairs=Gzt;function Hzt(l){return l.getAllEntries().map(([c,f])=>{let y=`${encodeURIComponent(c)}=${encodeURIComponent(f.value)}`;return f.metadata!==void 0&&(y+=C4.BAGGAGE_PROPERTIES_SEPARATOR+f.metadata.toString()),y})}gC.getKeyPairs=Hzt;function DQe(l){let c=l.split(C4.BAGGAGE_PROPERTIES_SEPARATOR);if(c.length<=0)return;let f=c.shift();if(!f)return;let y=f.indexOf(C4.BAGGAGE_KEY_PAIR_SEPARATOR);if(y<=0)return;let b=decodeURIComponent(f.substring(0,y).trim()),k=decodeURIComponent(f.substring(y+1).trim()),g;return c.length>0&&(g=(0,Wzt.baggageEntryMetadataFromString)(c.join(C4.BAGGAGE_PROPERTIES_SEPARATOR))),{key:b,value:k,metadata:g}}gC.parsePairKeyValue=DQe;function $zt(l){return typeof l!="string"||l.length===0?{}:l.split(C4.BAGGAGE_ITEMS_SEPARATOR).map(c=>DQe(c)).filter(c=>c!==void 0&&c.value.length>0).reduce((c,f)=>(c[f.key]=f.value,c),{})}gC.parseKeyPairsIntoRecord=$zt});var IQe=xt(aie=>{"use strict";Object.defineProperty(aie,"__esModule",{value:!0});aie.W3CBaggagePropagator=void 0;var oke=(zc(),ol(Xc)),Yzt=Qq(),A4=ike(),ake=ske(),cke=class{inject(c,f,y){let b=oke.propagation.getBaggage(c);if(!b||(0,Yzt.isTracingSuppressed)(c))return;let k=(0,ake.getKeyPairs)(b).filter(p=>p.length<=A4.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS).slice(0,A4.BAGGAGE_MAX_NAME_VALUE_PAIRS),g=(0,ake.serializeKeyPairs)(k);g.length>0&&y.set(f,A4.BAGGAGE_HEADER,g)}extract(c,f,y){let b=y.get(f,A4.BAGGAGE_HEADER),k=Array.isArray(b)?b.join(A4.BAGGAGE_ITEMS_SEPARATOR):b;if(!k)return c;let g={};return k.length===0||(k.split(A4.BAGGAGE_ITEMS_SEPARATOR).forEach(A=>{let j=(0,ake.parsePairKeyValue)(A);if(j){let se={value:j.value};j.metadata&&(se.metadata=j.metadata),g[j.key]=se}}),Object.entries(g).length===0)?c:oke.propagation.setBaggage(c,oke.propagation.createBaggage(g))}fields(){return[A4.BAGGAGE_HEADER]}};aie.W3CBaggagePropagator=cke});var wQe=xt(cie=>{"use strict";Object.defineProperty(cie,"__esModule",{value:!0});cie.AnchoredClock=void 0;var lke=class{constructor(c,f){this._monotonicClock=f,this._epochMillis=c.now(),this._performanceMillis=f.now()}now(){let c=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+c}};cie.AnchoredClock=lke});var FQe=xt(fI=>{"use strict";Object.defineProperty(fI,"__esModule",{value:!0});fI.isAttributeValue=fI.isAttributeKey=fI.sanitizeAttributes=void 0;var OQe=(zc(),ol(Xc));function Kzt(l){let c={};if(typeof l!="object"||l==null)return c;for(let[f,y]of Object.entries(l)){if(!RQe(f)){OQe.diag.warn(`Invalid attribute key: ${f}`);continue}if(!MQe(y)){OQe.diag.warn(`Invalid attribute value set for key: ${f}`);continue}Array.isArray(y)?c[f]=y.slice():c[f]=y}return c}fI.sanitizeAttributes=Kzt;function RQe(l){return typeof l=="string"&&l.length>0}fI.isAttributeKey=RQe;function MQe(l){return l==null?!0:Array.isArray(l)?Xzt(l):LQe(l)}fI.isAttributeValue=MQe;function Xzt(l){let c;for(let f of l)if(f!=null){if(!c){if(LQe(f)){c=typeof f;continue}return!1}if(typeof f!==c)return!1}return!0}function LQe(l){switch(typeof l){case"number":case"boolean":case"string":return!0}return!1}});var uke=xt(lie=>{"use strict";Object.defineProperty(lie,"__esModule",{value:!0});lie.loggingErrorHandler=void 0;var Qzt=(zc(),ol(Xc));function Zzt(){return l=>{Qzt.diag.error(eWt(l))}}lie.loggingErrorHandler=Zzt;function eWt(l){return typeof l=="string"?l:JSON.stringify(tWt(l))}function tWt(l){let c={},f=l;for(;f!==null;)Object.getOwnPropertyNames(f).forEach(y=>{if(c[y])return;let b=f[y];b&&(c[y]=String(b))}),f=Object.getPrototypeOf(f);return c}});var _ke=xt(C7=>{"use strict";Object.defineProperty(C7,"__esModule",{value:!0});C7.globalErrorHandler=C7.setGlobalErrorHandler=void 0;var rWt=uke(),jQe=(0,rWt.loggingErrorHandler)();function nWt(l){jQe=l}C7.setGlobalErrorHandler=nWt;function iWt(l){try{jQe(l)}catch{}}C7.globalErrorHandler=iWt});var fke=xt(Zq=>{"use strict";Object.defineProperty(Zq,"__esModule",{value:!0});Zq.TracesSamplerValues=void 0;var sWt;(function(l){l.AlwaysOff="always_off",l.AlwaysOn="always_on",l.ParentBasedAlwaysOff="parentbased_always_off",l.ParentBasedAlwaysOn="parentbased_always_on",l.ParentBasedTraceIdRatio="parentbased_traceidratio",l.TraceIdRatio="traceidratio"})(sWt=Zq.TracesSamplerValues||(Zq.TracesSamplerValues={}))});var pke=xt(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.parseEnvironment=yd.DEFAULT_ENVIRONMENT=yd.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=yd.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=yd.DEFAULT_ATTRIBUTE_COUNT_LIMIT=yd.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=void 0;var pI=(zc(),ol(Xc)),oWt=fke(),aWt=",",cWt=["OTEL_SDK_DISABLED"];function lWt(l){return cWt.indexOf(l)>-1}var uWt=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function _Wt(l){return uWt.indexOf(l)>-1}var fWt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function pWt(l){return fWt.indexOf(l)>-1}yd.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT=1/0;yd.DEFAULT_ATTRIBUTE_COUNT_LIMIT=128;yd.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT=128;yd.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT=128;yd.DEFAULT_ENVIRONMENT={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:pI.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:yd.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_ATTRIBUTE_COUNT_LIMIT:yd.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:yd.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:yd.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:yd.DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:yd.DEFAULT_ATTRIBUTE_COUNT_LIMIT,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:yd.DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:yd.DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:oWt.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative"};function dWt(l,c,f){if(typeof f[l]>"u")return;let y=String(f[l]);c[l]=y.toLowerCase()==="true"}function mWt(l,c,f,y=-1/0,b=1/0){if(typeof f[l]<"u"){let k=Number(f[l]);isNaN(k)||(kb?c[l]=b:c[l]=k)}}function gWt(l,c,f,y=aWt){let b=f[l];typeof b=="string"&&(c[l]=b.split(y).map(k=>k.trim()))}var hWt={ALL:pI.DiagLogLevel.ALL,VERBOSE:pI.DiagLogLevel.VERBOSE,DEBUG:pI.DiagLogLevel.DEBUG,INFO:pI.DiagLogLevel.INFO,WARN:pI.DiagLogLevel.WARN,ERROR:pI.DiagLogLevel.ERROR,NONE:pI.DiagLogLevel.NONE};function yWt(l,c,f){let y=f[l];if(typeof y=="string"){let b=hWt[y.toUpperCase()];b!=null&&(c[l]=b)}}function vWt(l){let c={};for(let f in yd.DEFAULT_ENVIRONMENT){let y=f;switch(y){case"OTEL_LOG_LEVEL":yWt(y,c,l);break;default:if(lWt(y))dWt(y,c,l);else if(_Wt(y))mWt(y,c,l);else if(pWt(y))gWt(y,c,l);else{let b=l[y];typeof b<"u"&&b!==null&&(c[y]=String(b))}}}return c}yd.parseEnvironment=vWt});var BQe=xt(A7=>{"use strict";Object.defineProperty(A7,"__esModule",{value:!0});A7.getEnvWithoutDefaults=A7.getEnv=void 0;var dke=pke();function SWt(){let l=(0,dke.parseEnvironment)(process.env);return Object.assign({},dke.DEFAULT_ENVIRONMENT,l)}A7.getEnv=SWt;function TWt(){return(0,dke.parseEnvironment)(process.env)}A7.getEnvWithoutDefaults=TWt});var UQe=xt(uie=>{"use strict";Object.defineProperty(uie,"__esModule",{value:!0});uie._globalThis=void 0;uie._globalThis=typeof globalThis=="object"?globalThis:global});var mke=xt(_ie=>{"use strict";Object.defineProperty(_ie,"__esModule",{value:!0});_ie.hexToBinary=void 0;function VQe(l){return l>=48&&l<=57?l-48:l>=97&&l<=102?l-87:l-55}function bWt(l){let c=new Uint8Array(l.length/2),f=0;for(let y=0;y{"use strict";Object.defineProperty(fie,"__esModule",{value:!0});fie.hexToBase64=void 0;var EWt=mke();function xWt(l){return Buffer.from((0,EWt.hexToBinary)(l)).toString("base64")}fie.hexToBase64=xWt});var WQe=xt(die=>{"use strict";Object.defineProperty(die,"__esModule",{value:!0});die.RandomIdGenerator=void 0;var CWt=8,zQe=16,gke=class{constructor(){this.generateTraceId=qQe(zQe),this.generateSpanId=qQe(CWt)}};die.RandomIdGenerator=gke;var pie=Buffer.allocUnsafe(zQe);function qQe(l){return function(){for(let f=0;f>>0,f*4);for(let f=0;f0);f++)f===l-1&&(pie[l-1]=1);return pie.toString("hex",0,l)}}});var GQe=xt(mie=>{"use strict";Object.defineProperty(mie,"__esModule",{value:!0});mie.otperformance=void 0;var AWt=Ru("perf_hooks");mie.otperformance=AWt.performance});var hke=xt(gie=>{"use strict";Object.defineProperty(gie,"__esModule",{value:!0});gie.VERSION=void 0;gie.VERSION="1.25.1"});var yke=xt(hie=>{"use strict";Object.defineProperty(hie,"__esModule",{value:!0});hie.createConstMap=void 0;function kWt(l){let c={},f=l.length;for(let y=0;y{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.SEMATTRS_NET_HOST_CARRIER_ICC=qe.SEMATTRS_NET_HOST_CARRIER_MNC=qe.SEMATTRS_NET_HOST_CARRIER_MCC=qe.SEMATTRS_NET_HOST_CARRIER_NAME=qe.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=qe.SEMATTRS_NET_HOST_CONNECTION_TYPE=qe.SEMATTRS_NET_HOST_NAME=qe.SEMATTRS_NET_HOST_PORT=qe.SEMATTRS_NET_HOST_IP=qe.SEMATTRS_NET_PEER_NAME=qe.SEMATTRS_NET_PEER_PORT=qe.SEMATTRS_NET_PEER_IP=qe.SEMATTRS_NET_TRANSPORT=qe.SEMATTRS_FAAS_INVOKED_REGION=qe.SEMATTRS_FAAS_INVOKED_PROVIDER=qe.SEMATTRS_FAAS_INVOKED_NAME=qe.SEMATTRS_FAAS_COLDSTART=qe.SEMATTRS_FAAS_CRON=qe.SEMATTRS_FAAS_TIME=qe.SEMATTRS_FAAS_DOCUMENT_NAME=qe.SEMATTRS_FAAS_DOCUMENT_TIME=qe.SEMATTRS_FAAS_DOCUMENT_OPERATION=qe.SEMATTRS_FAAS_DOCUMENT_COLLECTION=qe.SEMATTRS_FAAS_EXECUTION=qe.SEMATTRS_FAAS_TRIGGER=qe.SEMATTRS_EXCEPTION_ESCAPED=qe.SEMATTRS_EXCEPTION_STACKTRACE=qe.SEMATTRS_EXCEPTION_MESSAGE=qe.SEMATTRS_EXCEPTION_TYPE=qe.SEMATTRS_DB_SQL_TABLE=qe.SEMATTRS_DB_MONGODB_COLLECTION=qe.SEMATTRS_DB_REDIS_DATABASE_INDEX=qe.SEMATTRS_DB_HBASE_NAMESPACE=qe.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=qe.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=qe.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=qe.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=qe.SEMATTRS_DB_CASSANDRA_TABLE=qe.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=qe.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=qe.SEMATTRS_DB_CASSANDRA_KEYSPACE=qe.SEMATTRS_DB_MSSQL_INSTANCE_NAME=qe.SEMATTRS_DB_OPERATION=qe.SEMATTRS_DB_STATEMENT=qe.SEMATTRS_DB_NAME=qe.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=qe.SEMATTRS_DB_USER=qe.SEMATTRS_DB_CONNECTION_STRING=qe.SEMATTRS_DB_SYSTEM=qe.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=void 0;qe.SEMATTRS_MESSAGING_DESTINATION_KIND=qe.SEMATTRS_MESSAGING_DESTINATION=qe.SEMATTRS_MESSAGING_SYSTEM=qe.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=qe.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=qe.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=qe.SEMATTRS_AWS_DYNAMODB_COUNT=qe.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=qe.SEMATTRS_AWS_DYNAMODB_SEGMENT=qe.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=qe.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=qe.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=qe.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=qe.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=qe.SEMATTRS_AWS_DYNAMODB_SELECT=qe.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=qe.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=qe.SEMATTRS_AWS_DYNAMODB_LIMIT=qe.SEMATTRS_AWS_DYNAMODB_PROJECTION=qe.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=qe.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=qe.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=qe.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=qe.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=qe.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=qe.SEMATTRS_HTTP_CLIENT_IP=qe.SEMATTRS_HTTP_ROUTE=qe.SEMATTRS_HTTP_SERVER_NAME=qe.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=qe.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=qe.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=qe.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=qe.SEMATTRS_HTTP_USER_AGENT=qe.SEMATTRS_HTTP_FLAVOR=qe.SEMATTRS_HTTP_STATUS_CODE=qe.SEMATTRS_HTTP_SCHEME=qe.SEMATTRS_HTTP_HOST=qe.SEMATTRS_HTTP_TARGET=qe.SEMATTRS_HTTP_URL=qe.SEMATTRS_HTTP_METHOD=qe.SEMATTRS_CODE_LINENO=qe.SEMATTRS_CODE_FILEPATH=qe.SEMATTRS_CODE_NAMESPACE=qe.SEMATTRS_CODE_FUNCTION=qe.SEMATTRS_THREAD_NAME=qe.SEMATTRS_THREAD_ID=qe.SEMATTRS_ENDUSER_SCOPE=qe.SEMATTRS_ENDUSER_ROLE=qe.SEMATTRS_ENDUSER_ID=qe.SEMATTRS_PEER_SERVICE=void 0;qe.DBSYSTEMVALUES_FILEMAKER=qe.DBSYSTEMVALUES_DERBY=qe.DBSYSTEMVALUES_FIREBIRD=qe.DBSYSTEMVALUES_ADABAS=qe.DBSYSTEMVALUES_CACHE=qe.DBSYSTEMVALUES_EDB=qe.DBSYSTEMVALUES_FIRSTSQL=qe.DBSYSTEMVALUES_INGRES=qe.DBSYSTEMVALUES_HANADB=qe.DBSYSTEMVALUES_MAXDB=qe.DBSYSTEMVALUES_PROGRESS=qe.DBSYSTEMVALUES_HSQLDB=qe.DBSYSTEMVALUES_CLOUDSCAPE=qe.DBSYSTEMVALUES_HIVE=qe.DBSYSTEMVALUES_REDSHIFT=qe.DBSYSTEMVALUES_POSTGRESQL=qe.DBSYSTEMVALUES_DB2=qe.DBSYSTEMVALUES_ORACLE=qe.DBSYSTEMVALUES_MYSQL=qe.DBSYSTEMVALUES_MSSQL=qe.DBSYSTEMVALUES_OTHER_SQL=qe.SemanticAttributes=qe.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=qe.SEMATTRS_MESSAGE_COMPRESSED_SIZE=qe.SEMATTRS_MESSAGE_ID=qe.SEMATTRS_MESSAGE_TYPE=qe.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=qe.SEMATTRS_RPC_JSONRPC_ERROR_CODE=qe.SEMATTRS_RPC_JSONRPC_REQUEST_ID=qe.SEMATTRS_RPC_JSONRPC_VERSION=qe.SEMATTRS_RPC_GRPC_STATUS_CODE=qe.SEMATTRS_RPC_METHOD=qe.SEMATTRS_RPC_SERVICE=qe.SEMATTRS_RPC_SYSTEM=qe.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=qe.SEMATTRS_MESSAGING_KAFKA_PARTITION=qe.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=qe.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=qe.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=qe.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=qe.SEMATTRS_MESSAGING_CONSUMER_ID=qe.SEMATTRS_MESSAGING_OPERATION=qe.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=qe.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=qe.SEMATTRS_MESSAGING_CONVERSATION_ID=qe.SEMATTRS_MESSAGING_MESSAGE_ID=qe.SEMATTRS_MESSAGING_URL=qe.SEMATTRS_MESSAGING_PROTOCOL_VERSION=qe.SEMATTRS_MESSAGING_PROTOCOL=qe.SEMATTRS_MESSAGING_TEMP_DESTINATION=void 0;qe.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=qe.FaasDocumentOperationValues=qe.FAASDOCUMENTOPERATIONVALUES_DELETE=qe.FAASDOCUMENTOPERATIONVALUES_EDIT=qe.FAASDOCUMENTOPERATIONVALUES_INSERT=qe.FaasTriggerValues=qe.FAASTRIGGERVALUES_OTHER=qe.FAASTRIGGERVALUES_TIMER=qe.FAASTRIGGERVALUES_PUBSUB=qe.FAASTRIGGERVALUES_HTTP=qe.FAASTRIGGERVALUES_DATASOURCE=qe.DbCassandraConsistencyLevelValues=qe.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=qe.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=qe.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=qe.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=qe.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=qe.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=qe.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=qe.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=qe.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=qe.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=qe.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=qe.DbSystemValues=qe.DBSYSTEMVALUES_COCKROACHDB=qe.DBSYSTEMVALUES_MEMCACHED=qe.DBSYSTEMVALUES_ELASTICSEARCH=qe.DBSYSTEMVALUES_GEODE=qe.DBSYSTEMVALUES_NEO4J=qe.DBSYSTEMVALUES_DYNAMODB=qe.DBSYSTEMVALUES_COSMOSDB=qe.DBSYSTEMVALUES_COUCHDB=qe.DBSYSTEMVALUES_COUCHBASE=qe.DBSYSTEMVALUES_REDIS=qe.DBSYSTEMVALUES_MONGODB=qe.DBSYSTEMVALUES_HBASE=qe.DBSYSTEMVALUES_CASSANDRA=qe.DBSYSTEMVALUES_COLDFUSION=qe.DBSYSTEMVALUES_H2=qe.DBSYSTEMVALUES_VERTICA=qe.DBSYSTEMVALUES_TERADATA=qe.DBSYSTEMVALUES_SYBASE=qe.DBSYSTEMVALUES_SQLITE=qe.DBSYSTEMVALUES_POINTBASE=qe.DBSYSTEMVALUES_PERVASIVE=qe.DBSYSTEMVALUES_NETEZZA=qe.DBSYSTEMVALUES_MARIADB=qe.DBSYSTEMVALUES_INTERBASE=qe.DBSYSTEMVALUES_INSTANTDB=qe.DBSYSTEMVALUES_INFORMIX=void 0;qe.MESSAGINGOPERATIONVALUES_RECEIVE=qe.MessagingDestinationKindValues=qe.MESSAGINGDESTINATIONKINDVALUES_TOPIC=qe.MESSAGINGDESTINATIONKINDVALUES_QUEUE=qe.HttpFlavorValues=qe.HTTPFLAVORVALUES_QUIC=qe.HTTPFLAVORVALUES_SPDY=qe.HTTPFLAVORVALUES_HTTP_2_0=qe.HTTPFLAVORVALUES_HTTP_1_1=qe.HTTPFLAVORVALUES_HTTP_1_0=qe.NetHostConnectionSubtypeValues=qe.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=qe.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=qe.NETHOSTCONNECTIONSUBTYPEVALUES_NR=qe.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=qe.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=qe.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=qe.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=qe.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=qe.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=qe.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=qe.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=qe.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=qe.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=qe.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=qe.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=qe.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=qe.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=qe.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=qe.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=qe.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=qe.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=qe.NetHostConnectionTypeValues=qe.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=qe.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=qe.NETHOSTCONNECTIONTYPEVALUES_CELL=qe.NETHOSTCONNECTIONTYPEVALUES_WIRED=qe.NETHOSTCONNECTIONTYPEVALUES_WIFI=qe.NetTransportValues=qe.NETTRANSPORTVALUES_OTHER=qe.NETTRANSPORTVALUES_INPROC=qe.NETTRANSPORTVALUES_PIPE=qe.NETTRANSPORTVALUES_UNIX=qe.NETTRANSPORTVALUES_IP=qe.NETTRANSPORTVALUES_IP_UDP=qe.NETTRANSPORTVALUES_IP_TCP=qe.FaasInvokedProviderValues=qe.FAASINVOKEDPROVIDERVALUES_GCP=qe.FAASINVOKEDPROVIDERVALUES_AZURE=qe.FAASINVOKEDPROVIDERVALUES_AWS=void 0;qe.MessageTypeValues=qe.MESSAGETYPEVALUES_RECEIVED=qe.MESSAGETYPEVALUES_SENT=qe.RpcGrpcStatusCodeValues=qe.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=qe.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=qe.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=qe.RPCGRPCSTATUSCODEVALUES_INTERNAL=qe.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=qe.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=qe.RPCGRPCSTATUSCODEVALUES_ABORTED=qe.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=qe.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=qe.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=qe.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=qe.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=qe.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=qe.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=qe.RPCGRPCSTATUSCODEVALUES_UNKNOWN=qe.RPCGRPCSTATUSCODEVALUES_CANCELLED=qe.RPCGRPCSTATUSCODEVALUES_OK=qe.MessagingOperationValues=qe.MESSAGINGOPERATIONVALUES_PROCESS=void 0;var kb=yke(),HQe="aws.lambda.invoked_arn",$Qe="db.system",YQe="db.connection_string",KQe="db.user",XQe="db.jdbc.driver_classname",QQe="db.name",ZQe="db.statement",eZe="db.operation",tZe="db.mssql.instance_name",rZe="db.cassandra.keyspace",nZe="db.cassandra.page_size",iZe="db.cassandra.consistency_level",sZe="db.cassandra.table",oZe="db.cassandra.idempotence",aZe="db.cassandra.speculative_execution_count",cZe="db.cassandra.coordinator.id",lZe="db.cassandra.coordinator.dc",uZe="db.hbase.namespace",_Ze="db.redis.database_index",fZe="db.mongodb.collection",pZe="db.sql.table",dZe="exception.type",mZe="exception.message",gZe="exception.stacktrace",hZe="exception.escaped",yZe="faas.trigger",vZe="faas.execution",SZe="faas.document.collection",TZe="faas.document.operation",bZe="faas.document.time",EZe="faas.document.name",xZe="faas.time",CZe="faas.cron",AZe="faas.coldstart",kZe="faas.invoked_name",PZe="faas.invoked_provider",NZe="faas.invoked_region",DZe="net.transport",IZe="net.peer.ip",wZe="net.peer.port",OZe="net.peer.name",RZe="net.host.ip",MZe="net.host.port",LZe="net.host.name",FZe="net.host.connection.type",jZe="net.host.connection.subtype",BZe="net.host.carrier.name",UZe="net.host.carrier.mcc",VZe="net.host.carrier.mnc",JZe="net.host.carrier.icc",qZe="peer.service",zZe="enduser.id",WZe="enduser.role",GZe="enduser.scope",HZe="thread.id",$Ze="thread.name",YZe="code.function",KZe="code.namespace",XZe="code.filepath",QZe="code.lineno",ZZe="http.method",eet="http.url",tet="http.target",ret="http.host",net="http.scheme",iet="http.status_code",set="http.flavor",oet="http.user_agent",aet="http.request_content_length",cet="http.request_content_length_uncompressed",uet="http.response_content_length",_et="http.response_content_length_uncompressed",fet="http.server_name",pet="http.route",det="http.client_ip",met="aws.dynamodb.table_names",get="aws.dynamodb.consumed_capacity",het="aws.dynamodb.item_collection_metrics",yet="aws.dynamodb.provisioned_read_capacity",vet="aws.dynamodb.provisioned_write_capacity",Tet="aws.dynamodb.consistent_read",bet="aws.dynamodb.projection",Eet="aws.dynamodb.limit",xet="aws.dynamodb.attributes_to_get",Cet="aws.dynamodb.index_name",Aet="aws.dynamodb.select",ket="aws.dynamodb.global_secondary_indexes",Pet="aws.dynamodb.local_secondary_indexes",Net="aws.dynamodb.exclusive_start_table",Det="aws.dynamodb.table_count",Iet="aws.dynamodb.scan_forward",wet="aws.dynamodb.segment",Oet="aws.dynamodb.total_segments",Ret="aws.dynamodb.count",Met="aws.dynamodb.scanned_count",Let="aws.dynamodb.attribute_definitions",Fet="aws.dynamodb.global_secondary_index_updates",jet="messaging.system",Bet="messaging.destination",Uet="messaging.destination_kind",Vet="messaging.temp_destination",Jet="messaging.protocol",qet="messaging.protocol_version",zet="messaging.url",Wet="messaging.message_id",Get="messaging.conversation_id",Het="messaging.message_payload_size_bytes",$et="messaging.message_payload_compressed_size_bytes",Yet="messaging.operation",Ket="messaging.consumer_id",Xet="messaging.rabbitmq.routing_key",Qet="messaging.kafka.message_key",Zet="messaging.kafka.consumer_group",ett="messaging.kafka.client_id",ttt="messaging.kafka.partition",rtt="messaging.kafka.tombstone",ntt="rpc.system",itt="rpc.service",stt="rpc.method",ott="rpc.grpc.status_code",att="rpc.jsonrpc.version",ctt="rpc.jsonrpc.request_id",ltt="rpc.jsonrpc.error_code",utt="rpc.jsonrpc.error_message",_tt="message.type",ftt="message.id",ptt="message.compressed_size",dtt="message.uncompressed_size";qe.SEMATTRS_AWS_LAMBDA_INVOKED_ARN=HQe;qe.SEMATTRS_DB_SYSTEM=$Qe;qe.SEMATTRS_DB_CONNECTION_STRING=YQe;qe.SEMATTRS_DB_USER=KQe;qe.SEMATTRS_DB_JDBC_DRIVER_CLASSNAME=XQe;qe.SEMATTRS_DB_NAME=QQe;qe.SEMATTRS_DB_STATEMENT=ZQe;qe.SEMATTRS_DB_OPERATION=eZe;qe.SEMATTRS_DB_MSSQL_INSTANCE_NAME=tZe;qe.SEMATTRS_DB_CASSANDRA_KEYSPACE=rZe;qe.SEMATTRS_DB_CASSANDRA_PAGE_SIZE=nZe;qe.SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL=iZe;qe.SEMATTRS_DB_CASSANDRA_TABLE=sZe;qe.SEMATTRS_DB_CASSANDRA_IDEMPOTENCE=oZe;qe.SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT=aZe;qe.SEMATTRS_DB_CASSANDRA_COORDINATOR_ID=cZe;qe.SEMATTRS_DB_CASSANDRA_COORDINATOR_DC=lZe;qe.SEMATTRS_DB_HBASE_NAMESPACE=uZe;qe.SEMATTRS_DB_REDIS_DATABASE_INDEX=_Ze;qe.SEMATTRS_DB_MONGODB_COLLECTION=fZe;qe.SEMATTRS_DB_SQL_TABLE=pZe;qe.SEMATTRS_EXCEPTION_TYPE=dZe;qe.SEMATTRS_EXCEPTION_MESSAGE=mZe;qe.SEMATTRS_EXCEPTION_STACKTRACE=gZe;qe.SEMATTRS_EXCEPTION_ESCAPED=hZe;qe.SEMATTRS_FAAS_TRIGGER=yZe;qe.SEMATTRS_FAAS_EXECUTION=vZe;qe.SEMATTRS_FAAS_DOCUMENT_COLLECTION=SZe;qe.SEMATTRS_FAAS_DOCUMENT_OPERATION=TZe;qe.SEMATTRS_FAAS_DOCUMENT_TIME=bZe;qe.SEMATTRS_FAAS_DOCUMENT_NAME=EZe;qe.SEMATTRS_FAAS_TIME=xZe;qe.SEMATTRS_FAAS_CRON=CZe;qe.SEMATTRS_FAAS_COLDSTART=AZe;qe.SEMATTRS_FAAS_INVOKED_NAME=kZe;qe.SEMATTRS_FAAS_INVOKED_PROVIDER=PZe;qe.SEMATTRS_FAAS_INVOKED_REGION=NZe;qe.SEMATTRS_NET_TRANSPORT=DZe;qe.SEMATTRS_NET_PEER_IP=IZe;qe.SEMATTRS_NET_PEER_PORT=wZe;qe.SEMATTRS_NET_PEER_NAME=OZe;qe.SEMATTRS_NET_HOST_IP=RZe;qe.SEMATTRS_NET_HOST_PORT=MZe;qe.SEMATTRS_NET_HOST_NAME=LZe;qe.SEMATTRS_NET_HOST_CONNECTION_TYPE=FZe;qe.SEMATTRS_NET_HOST_CONNECTION_SUBTYPE=jZe;qe.SEMATTRS_NET_HOST_CARRIER_NAME=BZe;qe.SEMATTRS_NET_HOST_CARRIER_MCC=UZe;qe.SEMATTRS_NET_HOST_CARRIER_MNC=VZe;qe.SEMATTRS_NET_HOST_CARRIER_ICC=JZe;qe.SEMATTRS_PEER_SERVICE=qZe;qe.SEMATTRS_ENDUSER_ID=zZe;qe.SEMATTRS_ENDUSER_ROLE=WZe;qe.SEMATTRS_ENDUSER_SCOPE=GZe;qe.SEMATTRS_THREAD_ID=HZe;qe.SEMATTRS_THREAD_NAME=$Ze;qe.SEMATTRS_CODE_FUNCTION=YZe;qe.SEMATTRS_CODE_NAMESPACE=KZe;qe.SEMATTRS_CODE_FILEPATH=XZe;qe.SEMATTRS_CODE_LINENO=QZe;qe.SEMATTRS_HTTP_METHOD=ZZe;qe.SEMATTRS_HTTP_URL=eet;qe.SEMATTRS_HTTP_TARGET=tet;qe.SEMATTRS_HTTP_HOST=ret;qe.SEMATTRS_HTTP_SCHEME=net;qe.SEMATTRS_HTTP_STATUS_CODE=iet;qe.SEMATTRS_HTTP_FLAVOR=set;qe.SEMATTRS_HTTP_USER_AGENT=oet;qe.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH=aet;qe.SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED=cet;qe.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH=uet;qe.SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED=_et;qe.SEMATTRS_HTTP_SERVER_NAME=fet;qe.SEMATTRS_HTTP_ROUTE=pet;qe.SEMATTRS_HTTP_CLIENT_IP=det;qe.SEMATTRS_AWS_DYNAMODB_TABLE_NAMES=met;qe.SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY=get;qe.SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS=het;qe.SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY=yet;qe.SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY=vet;qe.SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ=Tet;qe.SEMATTRS_AWS_DYNAMODB_PROJECTION=bet;qe.SEMATTRS_AWS_DYNAMODB_LIMIT=Eet;qe.SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET=xet;qe.SEMATTRS_AWS_DYNAMODB_INDEX_NAME=Cet;qe.SEMATTRS_AWS_DYNAMODB_SELECT=Aet;qe.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES=ket;qe.SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES=Pet;qe.SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE=Net;qe.SEMATTRS_AWS_DYNAMODB_TABLE_COUNT=Det;qe.SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD=Iet;qe.SEMATTRS_AWS_DYNAMODB_SEGMENT=wet;qe.SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS=Oet;qe.SEMATTRS_AWS_DYNAMODB_COUNT=Ret;qe.SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT=Met;qe.SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS=Let;qe.SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES=Fet;qe.SEMATTRS_MESSAGING_SYSTEM=jet;qe.SEMATTRS_MESSAGING_DESTINATION=Bet;qe.SEMATTRS_MESSAGING_DESTINATION_KIND=Uet;qe.SEMATTRS_MESSAGING_TEMP_DESTINATION=Vet;qe.SEMATTRS_MESSAGING_PROTOCOL=Jet;qe.SEMATTRS_MESSAGING_PROTOCOL_VERSION=qet;qe.SEMATTRS_MESSAGING_URL=zet;qe.SEMATTRS_MESSAGING_MESSAGE_ID=Wet;qe.SEMATTRS_MESSAGING_CONVERSATION_ID=Get;qe.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES=Het;qe.SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES=$et;qe.SEMATTRS_MESSAGING_OPERATION=Yet;qe.SEMATTRS_MESSAGING_CONSUMER_ID=Ket;qe.SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY=Xet;qe.SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY=Qet;qe.SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP=Zet;qe.SEMATTRS_MESSAGING_KAFKA_CLIENT_ID=ett;qe.SEMATTRS_MESSAGING_KAFKA_PARTITION=ttt;qe.SEMATTRS_MESSAGING_KAFKA_TOMBSTONE=rtt;qe.SEMATTRS_RPC_SYSTEM=ntt;qe.SEMATTRS_RPC_SERVICE=itt;qe.SEMATTRS_RPC_METHOD=stt;qe.SEMATTRS_RPC_GRPC_STATUS_CODE=ott;qe.SEMATTRS_RPC_JSONRPC_VERSION=att;qe.SEMATTRS_RPC_JSONRPC_REQUEST_ID=ctt;qe.SEMATTRS_RPC_JSONRPC_ERROR_CODE=ltt;qe.SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE=utt;qe.SEMATTRS_MESSAGE_TYPE=_tt;qe.SEMATTRS_MESSAGE_ID=ftt;qe.SEMATTRS_MESSAGE_COMPRESSED_SIZE=ptt;qe.SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE=dtt;qe.SemanticAttributes=(0,kb.createConstMap)([HQe,$Qe,YQe,KQe,XQe,QQe,ZQe,eZe,tZe,rZe,nZe,iZe,sZe,oZe,aZe,cZe,lZe,uZe,_Ze,fZe,pZe,dZe,mZe,gZe,hZe,yZe,vZe,SZe,TZe,bZe,EZe,xZe,CZe,AZe,kZe,PZe,NZe,DZe,IZe,wZe,OZe,RZe,MZe,LZe,FZe,jZe,BZe,UZe,VZe,JZe,qZe,zZe,WZe,GZe,HZe,$Ze,YZe,KZe,XZe,QZe,ZZe,eet,tet,ret,net,iet,set,oet,aet,cet,uet,_et,fet,pet,det,met,get,het,yet,vet,Tet,bet,Eet,xet,Cet,Aet,ket,Pet,Net,Det,Iet,wet,Oet,Ret,Met,Let,Fet,jet,Bet,Uet,Vet,Jet,qet,zet,Wet,Get,Het,$et,Yet,Ket,Xet,Qet,Zet,ett,ttt,rtt,ntt,itt,stt,ott,att,ctt,ltt,utt,_tt,ftt,ptt,dtt]);var mtt="other_sql",gtt="mssql",htt="mysql",ytt="oracle",vtt="db2",Stt="postgresql",Ttt="redshift",btt="hive",Ett="cloudscape",xtt="hsqldb",Ctt="progress",Att="maxdb",ktt="hanadb",Ptt="ingres",Ntt="firstsql",Dtt="edb",Itt="cache",wtt="adabas",Ott="firebird",Rtt="derby",Mtt="filemaker",Ltt="informix",Ftt="instantdb",jtt="interbase",Btt="mariadb",Utt="netezza",Vtt="pervasive",Jtt="pointbase",qtt="sqlite",ztt="sybase",Wtt="teradata",Gtt="vertica",Htt="h2",$tt="coldfusion",Ytt="cassandra",Ktt="hbase",Xtt="mongodb",Qtt="redis",Ztt="couchbase",ert="couchdb",trt="cosmosdb",rrt="dynamodb",nrt="neo4j",irt="geode",srt="elasticsearch",ort="memcached",art="cockroachdb";qe.DBSYSTEMVALUES_OTHER_SQL=mtt;qe.DBSYSTEMVALUES_MSSQL=gtt;qe.DBSYSTEMVALUES_MYSQL=htt;qe.DBSYSTEMVALUES_ORACLE=ytt;qe.DBSYSTEMVALUES_DB2=vtt;qe.DBSYSTEMVALUES_POSTGRESQL=Stt;qe.DBSYSTEMVALUES_REDSHIFT=Ttt;qe.DBSYSTEMVALUES_HIVE=btt;qe.DBSYSTEMVALUES_CLOUDSCAPE=Ett;qe.DBSYSTEMVALUES_HSQLDB=xtt;qe.DBSYSTEMVALUES_PROGRESS=Ctt;qe.DBSYSTEMVALUES_MAXDB=Att;qe.DBSYSTEMVALUES_HANADB=ktt;qe.DBSYSTEMVALUES_INGRES=Ptt;qe.DBSYSTEMVALUES_FIRSTSQL=Ntt;qe.DBSYSTEMVALUES_EDB=Dtt;qe.DBSYSTEMVALUES_CACHE=Itt;qe.DBSYSTEMVALUES_ADABAS=wtt;qe.DBSYSTEMVALUES_FIREBIRD=Ott;qe.DBSYSTEMVALUES_DERBY=Rtt;qe.DBSYSTEMVALUES_FILEMAKER=Mtt;qe.DBSYSTEMVALUES_INFORMIX=Ltt;qe.DBSYSTEMVALUES_INSTANTDB=Ftt;qe.DBSYSTEMVALUES_INTERBASE=jtt;qe.DBSYSTEMVALUES_MARIADB=Btt;qe.DBSYSTEMVALUES_NETEZZA=Utt;qe.DBSYSTEMVALUES_PERVASIVE=Vtt;qe.DBSYSTEMVALUES_POINTBASE=Jtt;qe.DBSYSTEMVALUES_SQLITE=qtt;qe.DBSYSTEMVALUES_SYBASE=ztt;qe.DBSYSTEMVALUES_TERADATA=Wtt;qe.DBSYSTEMVALUES_VERTICA=Gtt;qe.DBSYSTEMVALUES_H2=Htt;qe.DBSYSTEMVALUES_COLDFUSION=$tt;qe.DBSYSTEMVALUES_CASSANDRA=Ytt;qe.DBSYSTEMVALUES_HBASE=Ktt;qe.DBSYSTEMVALUES_MONGODB=Xtt;qe.DBSYSTEMVALUES_REDIS=Qtt;qe.DBSYSTEMVALUES_COUCHBASE=Ztt;qe.DBSYSTEMVALUES_COUCHDB=ert;qe.DBSYSTEMVALUES_COSMOSDB=trt;qe.DBSYSTEMVALUES_DYNAMODB=rrt;qe.DBSYSTEMVALUES_NEO4J=nrt;qe.DBSYSTEMVALUES_GEODE=irt;qe.DBSYSTEMVALUES_ELASTICSEARCH=srt;qe.DBSYSTEMVALUES_MEMCACHED=ort;qe.DBSYSTEMVALUES_COCKROACHDB=art;qe.DbSystemValues=(0,kb.createConstMap)([mtt,gtt,htt,ytt,vtt,Stt,Ttt,btt,Ett,xtt,Ctt,Att,ktt,Ptt,Ntt,Dtt,Itt,wtt,Ott,Rtt,Mtt,Ltt,Ftt,jtt,Btt,Utt,Vtt,Jtt,qtt,ztt,Wtt,Gtt,Htt,$tt,Ytt,Ktt,Xtt,Qtt,Ztt,ert,trt,rrt,nrt,irt,srt,ort,art]);var crt="all",lrt="each_quorum",urt="quorum",_rt="local_quorum",frt="one",prt="two",drt="three",mrt="local_one",grt="any",hrt="serial",yrt="local_serial";qe.DBCASSANDRACONSISTENCYLEVELVALUES_ALL=crt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM=lrt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM=urt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM=_rt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_ONE=frt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_TWO=prt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_THREE=drt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE=mrt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_ANY=grt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL=hrt;qe.DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL=yrt;qe.DbCassandraConsistencyLevelValues=(0,kb.createConstMap)([crt,lrt,urt,_rt,frt,prt,drt,mrt,grt,hrt,yrt]);var vrt="datasource",Srt="http",Trt="pubsub",brt="timer",Ert="other";qe.FAASTRIGGERVALUES_DATASOURCE=vrt;qe.FAASTRIGGERVALUES_HTTP=Srt;qe.FAASTRIGGERVALUES_PUBSUB=Trt;qe.FAASTRIGGERVALUES_TIMER=brt;qe.FAASTRIGGERVALUES_OTHER=Ert;qe.FaasTriggerValues=(0,kb.createConstMap)([vrt,Srt,Trt,brt,Ert]);var xrt="insert",Crt="edit",Art="delete";qe.FAASDOCUMENTOPERATIONVALUES_INSERT=xrt;qe.FAASDOCUMENTOPERATIONVALUES_EDIT=Crt;qe.FAASDOCUMENTOPERATIONVALUES_DELETE=Art;qe.FaasDocumentOperationValues=(0,kb.createConstMap)([xrt,Crt,Art]);var krt="alibaba_cloud",Prt="aws",Nrt="azure",Drt="gcp";qe.FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD=krt;qe.FAASINVOKEDPROVIDERVALUES_AWS=Prt;qe.FAASINVOKEDPROVIDERVALUES_AZURE=Nrt;qe.FAASINVOKEDPROVIDERVALUES_GCP=Drt;qe.FaasInvokedProviderValues=(0,kb.createConstMap)([krt,Prt,Nrt,Drt]);var Irt="ip_tcp",wrt="ip_udp",Ort="ip",Rrt="unix",Mrt="pipe",Lrt="inproc",Frt="other";qe.NETTRANSPORTVALUES_IP_TCP=Irt;qe.NETTRANSPORTVALUES_IP_UDP=wrt;qe.NETTRANSPORTVALUES_IP=Ort;qe.NETTRANSPORTVALUES_UNIX=Rrt;qe.NETTRANSPORTVALUES_PIPE=Mrt;qe.NETTRANSPORTVALUES_INPROC=Lrt;qe.NETTRANSPORTVALUES_OTHER=Frt;qe.NetTransportValues=(0,kb.createConstMap)([Irt,wrt,Ort,Rrt,Mrt,Lrt,Frt]);var jrt="wifi",Brt="wired",Urt="cell",Vrt="unavailable",Jrt="unknown";qe.NETHOSTCONNECTIONTYPEVALUES_WIFI=jrt;qe.NETHOSTCONNECTIONTYPEVALUES_WIRED=Brt;qe.NETHOSTCONNECTIONTYPEVALUES_CELL=Urt;qe.NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE=Vrt;qe.NETHOSTCONNECTIONTYPEVALUES_UNKNOWN=Jrt;qe.NetHostConnectionTypeValues=(0,kb.createConstMap)([jrt,Brt,Urt,Vrt,Jrt]);var qrt="gprs",zrt="edge",Wrt="umts",Grt="cdma",Hrt="evdo_0",$rt="evdo_a",Yrt="cdma2000_1xrtt",Krt="hsdpa",Xrt="hsupa",Qrt="hspa",Zrt="iden",ent="evdo_b",tnt="lte",rnt="ehrpd",nnt="hspap",int="gsm",snt="td_scdma",ont="iwlan",ant="nr",cnt="nrnsa",lnt="lte_ca";qe.NETHOSTCONNECTIONSUBTYPEVALUES_GPRS=qrt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_EDGE=zrt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_UMTS=Wrt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA=Grt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0=Hrt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A=$rt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT=Yrt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA=Krt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA=Xrt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_HSPA=Qrt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_IDEN=Zrt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B=ent;qe.NETHOSTCONNECTIONSUBTYPEVALUES_LTE=tnt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD=rnt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP=nnt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_GSM=int;qe.NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA=snt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN=ont;qe.NETHOSTCONNECTIONSUBTYPEVALUES_NR=ant;qe.NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA=cnt;qe.NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA=lnt;qe.NetHostConnectionSubtypeValues=(0,kb.createConstMap)([qrt,zrt,Wrt,Grt,Hrt,$rt,Yrt,Krt,Xrt,Qrt,Zrt,ent,tnt,rnt,nnt,int,snt,ont,ant,cnt,lnt]);var unt="1.0",_nt="1.1",fnt="2.0",pnt="SPDY",dnt="QUIC";qe.HTTPFLAVORVALUES_HTTP_1_0=unt;qe.HTTPFLAVORVALUES_HTTP_1_1=_nt;qe.HTTPFLAVORVALUES_HTTP_2_0=fnt;qe.HTTPFLAVORVALUES_SPDY=pnt;qe.HTTPFLAVORVALUES_QUIC=dnt;qe.HttpFlavorValues={HTTP_1_0:unt,HTTP_1_1:_nt,HTTP_2_0:fnt,SPDY:pnt,QUIC:dnt};var mnt="queue",gnt="topic";qe.MESSAGINGDESTINATIONKINDVALUES_QUEUE=mnt;qe.MESSAGINGDESTINATIONKINDVALUES_TOPIC=gnt;qe.MessagingDestinationKindValues=(0,kb.createConstMap)([mnt,gnt]);var hnt="receive",ynt="process";qe.MESSAGINGOPERATIONVALUES_RECEIVE=hnt;qe.MESSAGINGOPERATIONVALUES_PROCESS=ynt;qe.MessagingOperationValues=(0,kb.createConstMap)([hnt,ynt]);var vnt=0,Snt=1,Tnt=2,bnt=3,Ent=4,xnt=5,Cnt=6,Ant=7,knt=8,Pnt=9,Nnt=10,Dnt=11,Int=12,wnt=13,Ont=14,Rnt=15,Mnt=16;qe.RPCGRPCSTATUSCODEVALUES_OK=vnt;qe.RPCGRPCSTATUSCODEVALUES_CANCELLED=Snt;qe.RPCGRPCSTATUSCODEVALUES_UNKNOWN=Tnt;qe.RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT=bnt;qe.RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED=Ent;qe.RPCGRPCSTATUSCODEVALUES_NOT_FOUND=xnt;qe.RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS=Cnt;qe.RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED=Ant;qe.RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED=knt;qe.RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION=Pnt;qe.RPCGRPCSTATUSCODEVALUES_ABORTED=Nnt;qe.RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE=Dnt;qe.RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED=Int;qe.RPCGRPCSTATUSCODEVALUES_INTERNAL=wnt;qe.RPCGRPCSTATUSCODEVALUES_UNAVAILABLE=Ont;qe.RPCGRPCSTATUSCODEVALUES_DATA_LOSS=Rnt;qe.RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED=Mnt;qe.RpcGrpcStatusCodeValues={OK:vnt,CANCELLED:Snt,UNKNOWN:Tnt,INVALID_ARGUMENT:bnt,DEADLINE_EXCEEDED:Ent,NOT_FOUND:xnt,ALREADY_EXISTS:Cnt,PERMISSION_DENIED:Ant,RESOURCE_EXHAUSTED:knt,FAILED_PRECONDITION:Pnt,ABORTED:Nnt,OUT_OF_RANGE:Dnt,UNIMPLEMENTED:Int,INTERNAL:wnt,UNAVAILABLE:Ont,DATA_LOSS:Rnt,UNAUTHENTICATED:Mnt};var Lnt="SENT",Fnt="RECEIVED";qe.MESSAGETYPEVALUES_SENT=Lnt;qe.MESSAGETYPEVALUES_RECEIVED=Fnt;qe.MessageTypeValues=(0,kb.createConstMap)([Lnt,Fnt])});var Bnt=xt(k4=>{"use strict";var PWt=k4&&k4.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),NWt=k4&&k4.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&PWt(c,l,f)};Object.defineProperty(k4,"__esModule",{value:!0});NWt(jnt(),k4)});var uot=xt(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.SEMRESATTRS_K8S_STATEFULSET_NAME=Yt.SEMRESATTRS_K8S_STATEFULSET_UID=Yt.SEMRESATTRS_K8S_DEPLOYMENT_NAME=Yt.SEMRESATTRS_K8S_DEPLOYMENT_UID=Yt.SEMRESATTRS_K8S_REPLICASET_NAME=Yt.SEMRESATTRS_K8S_REPLICASET_UID=Yt.SEMRESATTRS_K8S_CONTAINER_NAME=Yt.SEMRESATTRS_K8S_POD_NAME=Yt.SEMRESATTRS_K8S_POD_UID=Yt.SEMRESATTRS_K8S_NAMESPACE_NAME=Yt.SEMRESATTRS_K8S_NODE_UID=Yt.SEMRESATTRS_K8S_NODE_NAME=Yt.SEMRESATTRS_K8S_CLUSTER_NAME=Yt.SEMRESATTRS_HOST_IMAGE_VERSION=Yt.SEMRESATTRS_HOST_IMAGE_ID=Yt.SEMRESATTRS_HOST_IMAGE_NAME=Yt.SEMRESATTRS_HOST_ARCH=Yt.SEMRESATTRS_HOST_TYPE=Yt.SEMRESATTRS_HOST_NAME=Yt.SEMRESATTRS_HOST_ID=Yt.SEMRESATTRS_FAAS_MAX_MEMORY=Yt.SEMRESATTRS_FAAS_INSTANCE=Yt.SEMRESATTRS_FAAS_VERSION=Yt.SEMRESATTRS_FAAS_ID=Yt.SEMRESATTRS_FAAS_NAME=Yt.SEMRESATTRS_DEVICE_MODEL_NAME=Yt.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=Yt.SEMRESATTRS_DEVICE_ID=Yt.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=Yt.SEMRESATTRS_CONTAINER_IMAGE_TAG=Yt.SEMRESATTRS_CONTAINER_IMAGE_NAME=Yt.SEMRESATTRS_CONTAINER_RUNTIME=Yt.SEMRESATTRS_CONTAINER_ID=Yt.SEMRESATTRS_CONTAINER_NAME=Yt.SEMRESATTRS_AWS_LOG_STREAM_ARNS=Yt.SEMRESATTRS_AWS_LOG_STREAM_NAMES=Yt.SEMRESATTRS_AWS_LOG_GROUP_ARNS=Yt.SEMRESATTRS_AWS_LOG_GROUP_NAMES=Yt.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=Yt.SEMRESATTRS_AWS_ECS_TASK_REVISION=Yt.SEMRESATTRS_AWS_ECS_TASK_FAMILY=Yt.SEMRESATTRS_AWS_ECS_TASK_ARN=Yt.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=Yt.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=Yt.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=Yt.SEMRESATTRS_CLOUD_PLATFORM=Yt.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=Yt.SEMRESATTRS_CLOUD_REGION=Yt.SEMRESATTRS_CLOUD_ACCOUNT_ID=Yt.SEMRESATTRS_CLOUD_PROVIDER=void 0;Yt.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=Yt.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=Yt.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=Yt.CLOUDPLATFORMVALUES_AZURE_AKS=Yt.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=Yt.CLOUDPLATFORMVALUES_AZURE_VM=Yt.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=Yt.CLOUDPLATFORMVALUES_AWS_LAMBDA=Yt.CLOUDPLATFORMVALUES_AWS_EKS=Yt.CLOUDPLATFORMVALUES_AWS_ECS=Yt.CLOUDPLATFORMVALUES_AWS_EC2=Yt.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=Yt.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=Yt.CloudProviderValues=Yt.CLOUDPROVIDERVALUES_GCP=Yt.CLOUDPROVIDERVALUES_AZURE=Yt.CLOUDPROVIDERVALUES_AWS=Yt.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=Yt.SemanticResourceAttributes=Yt.SEMRESATTRS_WEBENGINE_DESCRIPTION=Yt.SEMRESATTRS_WEBENGINE_VERSION=Yt.SEMRESATTRS_WEBENGINE_NAME=Yt.SEMRESATTRS_TELEMETRY_AUTO_VERSION=Yt.SEMRESATTRS_TELEMETRY_SDK_VERSION=Yt.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=Yt.SEMRESATTRS_TELEMETRY_SDK_NAME=Yt.SEMRESATTRS_SERVICE_VERSION=Yt.SEMRESATTRS_SERVICE_INSTANCE_ID=Yt.SEMRESATTRS_SERVICE_NAMESPACE=Yt.SEMRESATTRS_SERVICE_NAME=Yt.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=Yt.SEMRESATTRS_PROCESS_RUNTIME_VERSION=Yt.SEMRESATTRS_PROCESS_RUNTIME_NAME=Yt.SEMRESATTRS_PROCESS_OWNER=Yt.SEMRESATTRS_PROCESS_COMMAND_ARGS=Yt.SEMRESATTRS_PROCESS_COMMAND_LINE=Yt.SEMRESATTRS_PROCESS_COMMAND=Yt.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=Yt.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=Yt.SEMRESATTRS_PROCESS_PID=Yt.SEMRESATTRS_OS_VERSION=Yt.SEMRESATTRS_OS_NAME=Yt.SEMRESATTRS_OS_DESCRIPTION=Yt.SEMRESATTRS_OS_TYPE=Yt.SEMRESATTRS_K8S_CRONJOB_NAME=Yt.SEMRESATTRS_K8S_CRONJOB_UID=Yt.SEMRESATTRS_K8S_JOB_NAME=Yt.SEMRESATTRS_K8S_JOB_UID=Yt.SEMRESATTRS_K8S_DAEMONSET_NAME=Yt.SEMRESATTRS_K8S_DAEMONSET_UID=void 0;Yt.TelemetrySdkLanguageValues=Yt.TELEMETRYSDKLANGUAGEVALUES_WEBJS=Yt.TELEMETRYSDKLANGUAGEVALUES_RUBY=Yt.TELEMETRYSDKLANGUAGEVALUES_PYTHON=Yt.TELEMETRYSDKLANGUAGEVALUES_PHP=Yt.TELEMETRYSDKLANGUAGEVALUES_NODEJS=Yt.TELEMETRYSDKLANGUAGEVALUES_JAVA=Yt.TELEMETRYSDKLANGUAGEVALUES_GO=Yt.TELEMETRYSDKLANGUAGEVALUES_ERLANG=Yt.TELEMETRYSDKLANGUAGEVALUES_DOTNET=Yt.TELEMETRYSDKLANGUAGEVALUES_CPP=Yt.OsTypeValues=Yt.OSTYPEVALUES_Z_OS=Yt.OSTYPEVALUES_SOLARIS=Yt.OSTYPEVALUES_AIX=Yt.OSTYPEVALUES_HPUX=Yt.OSTYPEVALUES_DRAGONFLYBSD=Yt.OSTYPEVALUES_OPENBSD=Yt.OSTYPEVALUES_NETBSD=Yt.OSTYPEVALUES_FREEBSD=Yt.OSTYPEVALUES_DARWIN=Yt.OSTYPEVALUES_LINUX=Yt.OSTYPEVALUES_WINDOWS=Yt.HostArchValues=Yt.HOSTARCHVALUES_X86=Yt.HOSTARCHVALUES_PPC64=Yt.HOSTARCHVALUES_PPC32=Yt.HOSTARCHVALUES_IA64=Yt.HOSTARCHVALUES_ARM64=Yt.HOSTARCHVALUES_ARM32=Yt.HOSTARCHVALUES_AMD64=Yt.AwsEcsLaunchtypeValues=Yt.AWSECSLAUNCHTYPEVALUES_FARGATE=Yt.AWSECSLAUNCHTYPEVALUES_EC2=Yt.CloudPlatformValues=Yt.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=Yt.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=Yt.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=Yt.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=void 0;var P4=yke(),Unt="cloud.provider",Vnt="cloud.account.id",Jnt="cloud.region",qnt="cloud.availability_zone",znt="cloud.platform",Wnt="aws.ecs.container.arn",Gnt="aws.ecs.cluster.arn",Hnt="aws.ecs.launchtype",$nt="aws.ecs.task.arn",Ynt="aws.ecs.task.family",Knt="aws.ecs.task.revision",Xnt="aws.eks.cluster.arn",Qnt="aws.log.group.names",Znt="aws.log.group.arns",eit="aws.log.stream.names",tit="aws.log.stream.arns",rit="container.name",nit="container.id",iit="container.runtime",sit="container.image.name",oit="container.image.tag",ait="deployment.environment",cit="device.id",lit="device.model.identifier",uit="device.model.name",_it="faas.name",fit="faas.id",pit="faas.version",dit="faas.instance",mit="faas.max_memory",git="host.id",hit="host.name",yit="host.type",vit="host.arch",Sit="host.image.name",Tit="host.image.id",bit="host.image.version",Eit="k8s.cluster.name",xit="k8s.node.name",Cit="k8s.node.uid",Ait="k8s.namespace.name",kit="k8s.pod.uid",Pit="k8s.pod.name",Nit="k8s.container.name",Dit="k8s.replicaset.uid",Iit="k8s.replicaset.name",wit="k8s.deployment.uid",Oit="k8s.deployment.name",Rit="k8s.statefulset.uid",Mit="k8s.statefulset.name",Lit="k8s.daemonset.uid",Fit="k8s.daemonset.name",jit="k8s.job.uid",Bit="k8s.job.name",Uit="k8s.cronjob.uid",Vit="k8s.cronjob.name",Jit="os.type",qit="os.description",zit="os.name",Wit="os.version",Git="process.pid",Hit="process.executable.name",$it="process.executable.path",Yit="process.command",Kit="process.command_line",Xit="process.command_args",Qit="process.owner",Zit="process.runtime.name",est="process.runtime.version",tst="process.runtime.description",rst="service.name",nst="service.namespace",ist="service.instance.id",sst="service.version",ost="telemetry.sdk.name",ast="telemetry.sdk.language",cst="telemetry.sdk.version",lst="telemetry.auto.version",ust="webengine.name",_st="webengine.version",fst="webengine.description";Yt.SEMRESATTRS_CLOUD_PROVIDER=Unt;Yt.SEMRESATTRS_CLOUD_ACCOUNT_ID=Vnt;Yt.SEMRESATTRS_CLOUD_REGION=Jnt;Yt.SEMRESATTRS_CLOUD_AVAILABILITY_ZONE=qnt;Yt.SEMRESATTRS_CLOUD_PLATFORM=znt;Yt.SEMRESATTRS_AWS_ECS_CONTAINER_ARN=Wnt;Yt.SEMRESATTRS_AWS_ECS_CLUSTER_ARN=Gnt;Yt.SEMRESATTRS_AWS_ECS_LAUNCHTYPE=Hnt;Yt.SEMRESATTRS_AWS_ECS_TASK_ARN=$nt;Yt.SEMRESATTRS_AWS_ECS_TASK_FAMILY=Ynt;Yt.SEMRESATTRS_AWS_ECS_TASK_REVISION=Knt;Yt.SEMRESATTRS_AWS_EKS_CLUSTER_ARN=Xnt;Yt.SEMRESATTRS_AWS_LOG_GROUP_NAMES=Qnt;Yt.SEMRESATTRS_AWS_LOG_GROUP_ARNS=Znt;Yt.SEMRESATTRS_AWS_LOG_STREAM_NAMES=eit;Yt.SEMRESATTRS_AWS_LOG_STREAM_ARNS=tit;Yt.SEMRESATTRS_CONTAINER_NAME=rit;Yt.SEMRESATTRS_CONTAINER_ID=nit;Yt.SEMRESATTRS_CONTAINER_RUNTIME=iit;Yt.SEMRESATTRS_CONTAINER_IMAGE_NAME=sit;Yt.SEMRESATTRS_CONTAINER_IMAGE_TAG=oit;Yt.SEMRESATTRS_DEPLOYMENT_ENVIRONMENT=ait;Yt.SEMRESATTRS_DEVICE_ID=cit;Yt.SEMRESATTRS_DEVICE_MODEL_IDENTIFIER=lit;Yt.SEMRESATTRS_DEVICE_MODEL_NAME=uit;Yt.SEMRESATTRS_FAAS_NAME=_it;Yt.SEMRESATTRS_FAAS_ID=fit;Yt.SEMRESATTRS_FAAS_VERSION=pit;Yt.SEMRESATTRS_FAAS_INSTANCE=dit;Yt.SEMRESATTRS_FAAS_MAX_MEMORY=mit;Yt.SEMRESATTRS_HOST_ID=git;Yt.SEMRESATTRS_HOST_NAME=hit;Yt.SEMRESATTRS_HOST_TYPE=yit;Yt.SEMRESATTRS_HOST_ARCH=vit;Yt.SEMRESATTRS_HOST_IMAGE_NAME=Sit;Yt.SEMRESATTRS_HOST_IMAGE_ID=Tit;Yt.SEMRESATTRS_HOST_IMAGE_VERSION=bit;Yt.SEMRESATTRS_K8S_CLUSTER_NAME=Eit;Yt.SEMRESATTRS_K8S_NODE_NAME=xit;Yt.SEMRESATTRS_K8S_NODE_UID=Cit;Yt.SEMRESATTRS_K8S_NAMESPACE_NAME=Ait;Yt.SEMRESATTRS_K8S_POD_UID=kit;Yt.SEMRESATTRS_K8S_POD_NAME=Pit;Yt.SEMRESATTRS_K8S_CONTAINER_NAME=Nit;Yt.SEMRESATTRS_K8S_REPLICASET_UID=Dit;Yt.SEMRESATTRS_K8S_REPLICASET_NAME=Iit;Yt.SEMRESATTRS_K8S_DEPLOYMENT_UID=wit;Yt.SEMRESATTRS_K8S_DEPLOYMENT_NAME=Oit;Yt.SEMRESATTRS_K8S_STATEFULSET_UID=Rit;Yt.SEMRESATTRS_K8S_STATEFULSET_NAME=Mit;Yt.SEMRESATTRS_K8S_DAEMONSET_UID=Lit;Yt.SEMRESATTRS_K8S_DAEMONSET_NAME=Fit;Yt.SEMRESATTRS_K8S_JOB_UID=jit;Yt.SEMRESATTRS_K8S_JOB_NAME=Bit;Yt.SEMRESATTRS_K8S_CRONJOB_UID=Uit;Yt.SEMRESATTRS_K8S_CRONJOB_NAME=Vit;Yt.SEMRESATTRS_OS_TYPE=Jit;Yt.SEMRESATTRS_OS_DESCRIPTION=qit;Yt.SEMRESATTRS_OS_NAME=zit;Yt.SEMRESATTRS_OS_VERSION=Wit;Yt.SEMRESATTRS_PROCESS_PID=Git;Yt.SEMRESATTRS_PROCESS_EXECUTABLE_NAME=Hit;Yt.SEMRESATTRS_PROCESS_EXECUTABLE_PATH=$it;Yt.SEMRESATTRS_PROCESS_COMMAND=Yit;Yt.SEMRESATTRS_PROCESS_COMMAND_LINE=Kit;Yt.SEMRESATTRS_PROCESS_COMMAND_ARGS=Xit;Yt.SEMRESATTRS_PROCESS_OWNER=Qit;Yt.SEMRESATTRS_PROCESS_RUNTIME_NAME=Zit;Yt.SEMRESATTRS_PROCESS_RUNTIME_VERSION=est;Yt.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION=tst;Yt.SEMRESATTRS_SERVICE_NAME=rst;Yt.SEMRESATTRS_SERVICE_NAMESPACE=nst;Yt.SEMRESATTRS_SERVICE_INSTANCE_ID=ist;Yt.SEMRESATTRS_SERVICE_VERSION=sst;Yt.SEMRESATTRS_TELEMETRY_SDK_NAME=ost;Yt.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE=ast;Yt.SEMRESATTRS_TELEMETRY_SDK_VERSION=cst;Yt.SEMRESATTRS_TELEMETRY_AUTO_VERSION=lst;Yt.SEMRESATTRS_WEBENGINE_NAME=ust;Yt.SEMRESATTRS_WEBENGINE_VERSION=_st;Yt.SEMRESATTRS_WEBENGINE_DESCRIPTION=fst;Yt.SemanticResourceAttributes=(0,P4.createConstMap)([Unt,Vnt,Jnt,qnt,znt,Wnt,Gnt,Hnt,$nt,Ynt,Knt,Xnt,Qnt,Znt,eit,tit,rit,nit,iit,sit,oit,ait,cit,lit,uit,_it,fit,pit,dit,mit,git,hit,yit,vit,Sit,Tit,bit,Eit,xit,Cit,Ait,kit,Pit,Nit,Dit,Iit,wit,Oit,Rit,Mit,Lit,Fit,jit,Bit,Uit,Vit,Jit,qit,zit,Wit,Git,Hit,$it,Yit,Kit,Xit,Qit,Zit,est,tst,rst,nst,ist,sst,ost,ast,cst,lst,ust,_st,fst]);var pst="alibaba_cloud",dst="aws",mst="azure",gst="gcp";Yt.CLOUDPROVIDERVALUES_ALIBABA_CLOUD=pst;Yt.CLOUDPROVIDERVALUES_AWS=dst;Yt.CLOUDPROVIDERVALUES_AZURE=mst;Yt.CLOUDPROVIDERVALUES_GCP=gst;Yt.CloudProviderValues=(0,P4.createConstMap)([pst,dst,mst,gst]);var hst="alibaba_cloud_ecs",yst="alibaba_cloud_fc",vst="aws_ec2",Sst="aws_ecs",Tst="aws_eks",bst="aws_lambda",Est="aws_elastic_beanstalk",xst="azure_vm",Cst="azure_container_instances",Ast="azure_aks",kst="azure_functions",Pst="azure_app_service",Nst="gcp_compute_engine",Dst="gcp_cloud_run",Ist="gcp_kubernetes_engine",wst="gcp_cloud_functions",Ost="gcp_app_engine";Yt.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS=hst;Yt.CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC=yst;Yt.CLOUDPLATFORMVALUES_AWS_EC2=vst;Yt.CLOUDPLATFORMVALUES_AWS_ECS=Sst;Yt.CLOUDPLATFORMVALUES_AWS_EKS=Tst;Yt.CLOUDPLATFORMVALUES_AWS_LAMBDA=bst;Yt.CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK=Est;Yt.CLOUDPLATFORMVALUES_AZURE_VM=xst;Yt.CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES=Cst;Yt.CLOUDPLATFORMVALUES_AZURE_AKS=Ast;Yt.CLOUDPLATFORMVALUES_AZURE_FUNCTIONS=kst;Yt.CLOUDPLATFORMVALUES_AZURE_APP_SERVICE=Pst;Yt.CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE=Nst;Yt.CLOUDPLATFORMVALUES_GCP_CLOUD_RUN=Dst;Yt.CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE=Ist;Yt.CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS=wst;Yt.CLOUDPLATFORMVALUES_GCP_APP_ENGINE=Ost;Yt.CloudPlatformValues=(0,P4.createConstMap)([hst,yst,vst,Sst,Tst,bst,Est,xst,Cst,Ast,kst,Pst,Nst,Dst,Ist,wst,Ost]);var Rst="ec2",Mst="fargate";Yt.AWSECSLAUNCHTYPEVALUES_EC2=Rst;Yt.AWSECSLAUNCHTYPEVALUES_FARGATE=Mst;Yt.AwsEcsLaunchtypeValues=(0,P4.createConstMap)([Rst,Mst]);var Lst="amd64",Fst="arm32",jst="arm64",Bst="ia64",Ust="ppc32",Vst="ppc64",Jst="x86";Yt.HOSTARCHVALUES_AMD64=Lst;Yt.HOSTARCHVALUES_ARM32=Fst;Yt.HOSTARCHVALUES_ARM64=jst;Yt.HOSTARCHVALUES_IA64=Bst;Yt.HOSTARCHVALUES_PPC32=Ust;Yt.HOSTARCHVALUES_PPC64=Vst;Yt.HOSTARCHVALUES_X86=Jst;Yt.HostArchValues=(0,P4.createConstMap)([Lst,Fst,jst,Bst,Ust,Vst,Jst]);var qst="windows",zst="linux",Wst="darwin",Gst="freebsd",Hst="netbsd",$st="openbsd",Yst="dragonflybsd",Kst="hpux",Xst="aix",Qst="solaris",Zst="z_os";Yt.OSTYPEVALUES_WINDOWS=qst;Yt.OSTYPEVALUES_LINUX=zst;Yt.OSTYPEVALUES_DARWIN=Wst;Yt.OSTYPEVALUES_FREEBSD=Gst;Yt.OSTYPEVALUES_NETBSD=Hst;Yt.OSTYPEVALUES_OPENBSD=$st;Yt.OSTYPEVALUES_DRAGONFLYBSD=Yst;Yt.OSTYPEVALUES_HPUX=Kst;Yt.OSTYPEVALUES_AIX=Xst;Yt.OSTYPEVALUES_SOLARIS=Qst;Yt.OSTYPEVALUES_Z_OS=Zst;Yt.OsTypeValues=(0,P4.createConstMap)([qst,zst,Wst,Gst,Hst,$st,Yst,Kst,Xst,Qst,Zst]);var eot="cpp",tot="dotnet",rot="erlang",not="go",iot="java",sot="nodejs",oot="php",aot="python",cot="ruby",lot="webjs";Yt.TELEMETRYSDKLANGUAGEVALUES_CPP=eot;Yt.TELEMETRYSDKLANGUAGEVALUES_DOTNET=tot;Yt.TELEMETRYSDKLANGUAGEVALUES_ERLANG=rot;Yt.TELEMETRYSDKLANGUAGEVALUES_GO=not;Yt.TELEMETRYSDKLANGUAGEVALUES_JAVA=iot;Yt.TELEMETRYSDKLANGUAGEVALUES_NODEJS=sot;Yt.TELEMETRYSDKLANGUAGEVALUES_PHP=oot;Yt.TELEMETRYSDKLANGUAGEVALUES_PYTHON=aot;Yt.TELEMETRYSDKLANGUAGEVALUES_RUBY=cot;Yt.TELEMETRYSDKLANGUAGEVALUES_WEBJS=lot;Yt.TelemetrySdkLanguageValues=(0,P4.createConstMap)([eot,tot,rot,not,iot,sot,oot,aot,cot,lot])});var _ot=xt(N4=>{"use strict";var DWt=N4&&N4.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),IWt=N4&&N4.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&DWt(c,l,f)};Object.defineProperty(N4,"__esModule",{value:!0});IWt(uot(),N4)});var hC=xt(dI=>{"use strict";var wWt=dI&&dI.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),fot=dI&&dI.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&wWt(c,l,f)};Object.defineProperty(dI,"__esModule",{value:!0});fot(Bnt(),dI);fot(_ot(),dI)});var pot=xt(yie=>{"use strict";Object.defineProperty(yie,"__esModule",{value:!0});yie.SDK_INFO=void 0;var OWt=hke(),ez=hC();yie.SDK_INFO={[ez.SEMRESATTRS_TELEMETRY_SDK_NAME]:"opentelemetry",[ez.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"node",[ez.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:ez.TELEMETRYSDKLANGUAGEVALUES_NODEJS,[ez.SEMRESATTRS_TELEMETRY_SDK_VERSION]:OWt.VERSION}});var dot=xt(vie=>{"use strict";Object.defineProperty(vie,"__esModule",{value:!0});vie.unrefTimer=void 0;function RWt(l){l.unref()}vie.unrefTimer=RWt});var got=xt(Zy=>{"use strict";var MWt=Zy&&Zy.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),k7=Zy&&Zy.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&MWt(c,l,f)};Object.defineProperty(Zy,"__esModule",{value:!0});Zy.getEnv=Zy.getEnvWithoutDefaults=void 0;var mot=BQe();Object.defineProperty(Zy,"getEnvWithoutDefaults",{enumerable:!0,get:function(){return mot.getEnvWithoutDefaults}});Object.defineProperty(Zy,"getEnv",{enumerable:!0,get:function(){return mot.getEnv}});k7(UQe(),Zy);k7(JQe(),Zy);k7(WQe(),Zy);k7(GQe(),Zy);k7(pot(),Zy);k7(dot(),Zy)});var vke=xt(D4=>{"use strict";var LWt=D4&&D4.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),FWt=D4&&D4.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&LWt(c,l,f)};Object.defineProperty(D4,"__esModule",{value:!0});FWt(got(),D4)});var Sot=xt(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.addHrTimes=ip.isTimeInput=ip.isTimeInputHrTime=ip.hrTimeToMicroseconds=ip.hrTimeToMilliseconds=ip.hrTimeToNanoseconds=ip.hrTimeToTimeStamp=ip.hrTimeDuration=ip.timeInputToHrTime=ip.hrTime=ip.getTimeOrigin=ip.millisToHrTime=void 0;var Ske=vke(),hot=9,jWt=6,BWt=Math.pow(10,jWt),Sie=Math.pow(10,hot);function tz(l){let c=l/1e3,f=Math.trunc(c),y=Math.round(l%1e3*BWt);return[f,y]}ip.millisToHrTime=tz;function Tke(){let l=Ske.otperformance.timeOrigin;if(typeof l!="number"){let c=Ske.otperformance;l=c.timing&&c.timing.fetchStart}return l}ip.getTimeOrigin=Tke;function yot(l){let c=tz(Tke()),f=tz(typeof l=="number"?l:Ske.otperformance.now());return vot(c,f)}ip.hrTime=yot;function UWt(l){if(bke(l))return l;if(typeof l=="number")return l=Sie&&(f[1]-=Sie,f[0]+=1),f}ip.addHrTimes=vot});var bot=xt(Tot=>{"use strict";Object.defineProperty(Tot,"__esModule",{value:!0})});var Eot=xt(rz=>{"use strict";Object.defineProperty(rz,"__esModule",{value:!0});rz.ExportResultCode=void 0;var HWt;(function(l){l[l.SUCCESS=0]="SUCCESS",l[l.FAILED=1]="FAILED"})(HWt=rz.ExportResultCode||(rz.ExportResultCode={}))});var Cot=xt(Tie=>{"use strict";Object.defineProperty(Tie,"__esModule",{value:!0});Tie.CompositePropagator=void 0;var xot=(zc(),ol(Xc)),Eke=class{constructor(c={}){var f;this._propagators=(f=c.propagators)!==null&&f!==void 0?f:[],this._fields=Array.from(new Set(this._propagators.map(y=>typeof y.fields=="function"?y.fields():[]).reduce((y,b)=>y.concat(b),[])))}inject(c,f,y){for(let b of this._propagators)try{b.inject(c,f,y)}catch(k){xot.diag.warn(`Failed to inject with ${b.constructor.name}. Err: ${k.message}`)}}extract(c,f,y){return this._propagators.reduce((b,k)=>{try{return k.extract(b,f,y)}catch(g){xot.diag.warn(`Failed to inject with ${k.constructor.name}. Err: ${g.message}`)}return b},c)}fields(){return this._fields.slice()}};Tie.CompositePropagator=Eke});var Aot=xt(P7=>{"use strict";Object.defineProperty(P7,"__esModule",{value:!0});P7.validateValue=P7.validateKey=void 0;var xke="[_0-9a-z-*/]",$Wt=`[a-z]${xke}{0,255}`,YWt=`[a-z0-9]${xke}{0,240}@[a-z]${xke}{0,13}`,KWt=new RegExp(`^(?:${$Wt}|${YWt})$`),XWt=/^[ -~]{0,255}[!-~]$/,QWt=/,|=/;function ZWt(l){return KWt.test(l)}P7.validateKey=ZWt;function eGt(l){return XWt.test(l)&&!QWt.test(l)}P7.validateValue=eGt});var Ake=xt(bie=>{"use strict";Object.defineProperty(bie,"__esModule",{value:!0});bie.TraceState=void 0;var kot=Aot(),Pot=32,tGt=512,Not=",",Dot="=",Cke=class l{constructor(c){this._internalState=new Map,c&&this._parse(c)}set(c,f){let y=this._clone();return y._internalState.has(c)&&y._internalState.delete(c),y._internalState.set(c,f),y}unset(c){let f=this._clone();return f._internalState.delete(c),f}get(c){return this._internalState.get(c)}serialize(){return this._keys().reduce((c,f)=>(c.push(f+Dot+this.get(f)),c),[]).join(Not)}_parse(c){c.length>tGt||(this._internalState=c.split(Not).reverse().reduce((f,y)=>{let b=y.trim(),k=b.indexOf(Dot);if(k!==-1){let g=b.slice(0,k),p=b.slice(k+1,y.length);(0,kot.validateKey)(g)&&(0,kot.validateValue)(p)&&f.set(g,p)}return f},new Map),this._internalState.size>Pot&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Pot))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let c=new l;return c._internalState=new Map(this._internalState),c}};bie.TraceState=Cke});var wot=xt(e0=>{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.W3CTraceContextPropagator=e0.parseTraceParent=e0.TRACE_STATE_HEADER=e0.TRACE_PARENT_HEADER=void 0;var Eie=(zc(),ol(Xc)),rGt=Qq(),nGt=Ake();e0.TRACE_PARENT_HEADER="traceparent";e0.TRACE_STATE_HEADER="tracestate";var iGt="00",sGt="(?!ff)[\\da-f]{2}",oGt="(?![0]{32})[\\da-f]{32}",aGt="(?![0]{16})[\\da-f]{16}",cGt="[\\da-f]{2}",lGt=new RegExp(`^\\s?(${sGt})-(${oGt})-(${aGt})-(${cGt})(-.*)?\\s?$`);function Iot(l){let c=lGt.exec(l);return!c||c[1]==="00"&&c[5]?null:{traceId:c[2],spanId:c[3],traceFlags:parseInt(c[4],16)}}e0.parseTraceParent=Iot;var kke=class{inject(c,f,y){let b=Eie.trace.getSpanContext(c);if(!b||(0,rGt.isTracingSuppressed)(c)||!(0,Eie.isSpanContextValid)(b))return;let k=`${iGt}-${b.traceId}-${b.spanId}-0${Number(b.traceFlags||Eie.TraceFlags.NONE).toString(16)}`;y.set(f,e0.TRACE_PARENT_HEADER,k),b.traceState&&y.set(f,e0.TRACE_STATE_HEADER,b.traceState.serialize())}extract(c,f,y){let b=y.get(f,e0.TRACE_PARENT_HEADER);if(!b)return c;let k=Array.isArray(b)?b[0]:b;if(typeof k!="string")return c;let g=Iot(k);if(!g)return c;g.isRemote=!0;let p=y.get(f,e0.TRACE_STATE_HEADER);if(p){let A=Array.isArray(p)?p.join(","):p;g.traceState=new nGt.TraceState(typeof A=="string"?A:void 0)}return Eie.trace.setSpanContext(c,g)}fields(){return[e0.TRACE_PARENT_HEADER,e0.TRACE_STATE_HEADER]}};e0.W3CTraceContextPropagator=kke});var Rot=xt(Oot=>{"use strict";Object.defineProperty(Oot,"__esModule",{value:!0})});var Mot=xt(hx=>{"use strict";Object.defineProperty(hx,"__esModule",{value:!0});hx.getRPCMetadata=hx.deleteRPCMetadata=hx.setRPCMetadata=hx.RPCType=void 0;var uGt=(zc(),ol(Xc)),Pke=(0,uGt.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA"),_Gt;(function(l){l.HTTP="http"})(_Gt=hx.RPCType||(hx.RPCType={}));function fGt(l,c){return l.setValue(Pke,c)}hx.setRPCMetadata=fGt;function pGt(l){return l.deleteValue(Pke)}hx.deleteRPCMetadata=pGt;function dGt(l){return l.getValue(Pke)}hx.getRPCMetadata=dGt});var Dke=xt(xie=>{"use strict";Object.defineProperty(xie,"__esModule",{value:!0});xie.AlwaysOffSampler=void 0;var mGt=(zc(),ol(Xc)),Nke=class{shouldSample(){return{decision:mGt.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};xie.AlwaysOffSampler=Nke});var wke=xt(Cie=>{"use strict";Object.defineProperty(Cie,"__esModule",{value:!0});Cie.AlwaysOnSampler=void 0;var gGt=(zc(),ol(Xc)),Ike=class{shouldSample(){return{decision:gGt.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};Cie.AlwaysOnSampler=Ike});var Fot=xt(kie=>{"use strict";Object.defineProperty(kie,"__esModule",{value:!0});kie.ParentBasedSampler=void 0;var Aie=(zc(),ol(Xc)),hGt=_ke(),Lot=Dke(),Oke=wke(),Rke=class{constructor(c){var f,y,b,k;this._root=c.root,this._root||((0,hGt.globalErrorHandler)(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Oke.AlwaysOnSampler),this._remoteParentSampled=(f=c.remoteParentSampled)!==null&&f!==void 0?f:new Oke.AlwaysOnSampler,this._remoteParentNotSampled=(y=c.remoteParentNotSampled)!==null&&y!==void 0?y:new Lot.AlwaysOffSampler,this._localParentSampled=(b=c.localParentSampled)!==null&&b!==void 0?b:new Oke.AlwaysOnSampler,this._localParentNotSampled=(k=c.localParentNotSampled)!==null&&k!==void 0?k:new Lot.AlwaysOffSampler}shouldSample(c,f,y,b,k,g){let p=Aie.trace.getSpanContext(c);return!p||!(0,Aie.isSpanContextValid)(p)?this._root.shouldSample(c,f,y,b,k,g):p.isRemote?p.traceFlags&Aie.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(c,f,y,b,k,g):this._remoteParentNotSampled.shouldSample(c,f,y,b,k,g):p.traceFlags&Aie.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(c,f,y,b,k,g):this._localParentNotSampled.shouldSample(c,f,y,b,k,g)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};kie.ParentBasedSampler=Rke});var jot=xt(Pie=>{"use strict";Object.defineProperty(Pie,"__esModule",{value:!0});Pie.TraceIdRatioBasedSampler=void 0;var Mke=(zc(),ol(Xc)),Lke=class{constructor(c=0){this._ratio=c,this._ratio=this._normalize(c),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(c,f){return{decision:(0,Mke.isValidTraceId)(f)&&this._accumulate(f)=1?1:c<=0?0:c}_accumulate(c){let f=0;for(let y=0;y>>0}return f}};Pie.TraceIdRatioBasedSampler=Lke});var qot=xt(Nie=>{"use strict";Object.defineProperty(Nie,"__esModule",{value:!0});Nie.isPlainObject=void 0;var yGt="[object Object]",vGt="[object Null]",SGt="[object Undefined]",TGt=Function.prototype,Bot=TGt.toString,bGt=Bot.call(Object),EGt=xGt(Object.getPrototypeOf,Object),Uot=Object.prototype,Vot=Uot.hasOwnProperty,I4=Symbol?Symbol.toStringTag:void 0,Jot=Uot.toString;function xGt(l,c){return function(f){return l(c(f))}}function CGt(l){if(!AGt(l)||kGt(l)!==yGt)return!1;let c=EGt(l);if(c===null)return!0;let f=Vot.call(c,"constructor")&&c.constructor;return typeof f=="function"&&f instanceof f&&Bot.call(f)===bGt}Nie.isPlainObject=CGt;function AGt(l){return l!=null&&typeof l=="object"}function kGt(l){return l==null?l===void 0?SGt:vGt:I4&&I4 in Object(l)?PGt(l):NGt(l)}function PGt(l){let c=Vot.call(l,I4),f=l[I4],y=!1;try{l[I4]=void 0,y=!0}catch{}let b=Jot.call(l);return y&&(c?l[I4]=f:delete l[I4]),b}function NGt(l){return Jot.call(l)}});var $ot=xt(wie=>{"use strict";Object.defineProperty(wie,"__esModule",{value:!0});wie.merge=void 0;var zot=qot(),DGt=20;function IGt(...l){let c=l.shift(),f=new WeakMap;for(;l.length>0;)c=Got(c,l.shift(),0,f);return c}wie.merge=IGt;function Fke(l){return Iie(l)?l.slice():l}function Got(l,c,f=0,y){let b;if(!(f>DGt)){if(f++,Die(l)||Die(c)||Hot(c))b=Fke(c);else if(Iie(l)){if(b=l.slice(),Iie(c))for(let k=0,g=c.length;k"u"?delete b[A]:b[A]=j;else{let se=b[A],We=j;if(Wot(l,A,y)||Wot(c,A,y))delete b[A];else{if(nz(se)&&nz(We)){let ve=y.get(se)||[],lr=y.get(We)||[];ve.push({obj:l,key:A}),lr.push({obj:c,key:A}),y.set(se,ve),y.set(We,lr)}b[A]=Got(b[A],j,f,y)}}}}else b=c;return b}}function Wot(l,c,f){let y=f.get(l[c])||[];for(let b=0,k=y.length;b"u"||l instanceof Date||l instanceof RegExp||l===null}function wGt(l,c){return!(!(0,zot.isPlainObject)(l)||!(0,zot.isPlainObject)(c))}});var Yot=xt(N7=>{"use strict";Object.defineProperty(N7,"__esModule",{value:!0});N7.callWithTimeout=N7.TimeoutError=void 0;var Oie=class l extends Error{constructor(c){super(c),Object.setPrototypeOf(this,l.prototype)}};N7.TimeoutError=Oie;function OGt(l,c){let f,y=new Promise(function(k,g){f=setTimeout(function(){g(new Oie("Operation timed out."))},c)});return Promise.race([l,y]).then(b=>(clearTimeout(f),b),b=>{throw clearTimeout(f),b})}N7.callWithTimeout=OGt});var Xot=xt(D7=>{"use strict";Object.defineProperty(D7,"__esModule",{value:!0});D7.isUrlIgnored=D7.urlMatches=void 0;function Kot(l,c){return typeof c=="string"?l===c:!!l.match(c)}D7.urlMatches=Kot;function RGt(l,c){if(!c)return!1;for(let f of c)if(Kot(l,f))return!0;return!1}D7.isUrlIgnored=RGt});var Qot=xt(Rie=>{"use strict";Object.defineProperty(Rie,"__esModule",{value:!0});Rie.isWrapped=void 0;function MGt(l){return typeof l=="function"&&typeof l.__original=="function"&&typeof l.__unwrap=="function"&&l.__wrapped===!0}Rie.isWrapped=MGt});var Zot=xt(Mie=>{"use strict";Object.defineProperty(Mie,"__esModule",{value:!0});Mie.Deferred=void 0;var jke=class{constructor(){this._promise=new Promise((c,f)=>{this._resolve=c,this._reject=f})}get promise(){return this._promise}resolve(c){this._resolve(c)}reject(c){this._reject(c)}};Mie.Deferred=jke});var eat=xt(Lie=>{"use strict";Object.defineProperty(Lie,"__esModule",{value:!0});Lie.BindOnceFuture=void 0;var LGt=Zot(),Bke=class{constructor(c,f){this._callback=c,this._that=f,this._isCalled=!1,this._deferred=new LGt.Deferred}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...c){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...c)).then(f=>this._deferred.resolve(f),f=>this._deferred.reject(f))}catch(f){this._deferred.reject(f)}}return this._deferred.promise}};Lie.BindOnceFuture=Bke});var rat=xt(Fie=>{"use strict";Object.defineProperty(Fie,"__esModule",{value:!0});Fie._export=void 0;var tat=(zc(),ol(Xc)),FGt=Qq();function jGt(l,c){return new Promise(f=>{tat.context.with((0,FGt.suppressTracing)(tat.context.active()),()=>{l.export(c,y=>{f(y)})})})}Fie._export=jGt});var fy=xt($l=>{"use strict";var BGt=$l&&$l.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),Tf=$l&&$l.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&BGt(c,l,f)};Object.defineProperty($l,"__esModule",{value:!0});$l.internal=$l.baggageUtils=void 0;Tf(IQe(),$l);Tf(wQe(),$l);Tf(FQe(),$l);Tf(_ke(),$l);Tf(uke(),$l);Tf(Sot(),$l);Tf(bot(),$l);Tf(mke(),$l);Tf(Eot(),$l);$l.baggageUtils=ske();Tf(vke(),$l);Tf(Cot(),$l);Tf(wot(),$l);Tf(Rot(),$l);Tf(Mot(),$l);Tf(Dke(),$l);Tf(wke(),$l);Tf(Fot(),$l);Tf(jot(),$l);Tf(Qq(),$l);Tf(Ake(),$l);Tf(pke(),$l);Tf($ot(),$l);Tf(fke(),$l);Tf(Yot(),$l);Tf(Xot(),$l);Tf(Qot(),$l);Tf(eat(),$l);Tf(hke(),$l);var UGt=rat();$l.internal={_export:UGt._export}});var jie=xt(iz=>{"use strict";Object.defineProperty(iz,"__esModule",{value:!0});iz.AggregationTemporality=void 0;var VGt;(function(l){l[l.DELTA=0]="DELTA",l[l.CUMULATIVE=1]="CUMULATIVE"})(VGt=iz.AggregationTemporality||(iz.AggregationTemporality={}))});var I7=xt(sz=>{"use strict";Object.defineProperty(sz,"__esModule",{value:!0});sz.DataPointType=void 0;var JGt;(function(l){l[l.HISTOGRAM=0]="HISTOGRAM",l[l.EXPONENTIAL_HISTOGRAM=1]="EXPONENTIAL_HISTOGRAM",l[l.GAUGE=2]="GAUGE",l[l.SUM=3]="SUM"})(JGt=sz.DataPointType||(sz.DataPointType={}))});var yC=xt(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.equalsCaseInsensitive=jp.binarySearchLB=jp.setEquals=jp.FlatMap=jp.isPromiseAllSettledRejectionResult=jp.PromiseAllSettled=jp.callWithTimeout=jp.TimeoutError=jp.instrumentationScopeId=jp.hashAttributes=jp.isNotNullish=void 0;function qGt(l){return l!=null}jp.isNotNullish=qGt;function zGt(l){let c=Object.keys(l);return c.length===0?"":(c=c.sort(),JSON.stringify(c.map(f=>[f,l[f]])))}jp.hashAttributes=zGt;function WGt(l){var c,f;return`${l.name}:${(c=l.version)!==null&&c!==void 0?c:""}:${(f=l.schemaUrl)!==null&&f!==void 0?f:""}`}jp.instrumentationScopeId=WGt;var Bie=class l extends Error{constructor(c){super(c),Object.setPrototypeOf(this,l.prototype)}};jp.TimeoutError=Bie;function GGt(l,c){let f,y=new Promise(function(k,g){f=setTimeout(function(){g(new Bie("Operation timed out."))},c)});return Promise.race([l,y]).then(b=>(clearTimeout(f),b),b=>{throw clearTimeout(f),b})}jp.callWithTimeout=GGt;async function HGt(l){return Promise.all(l.map(async c=>{try{return{status:"fulfilled",value:await c}}catch(f){return{status:"rejected",reason:f}}}))}jp.PromiseAllSettled=HGt;function $Gt(l){return l.status==="rejected"}jp.isPromiseAllSettledRejectionResult=$Gt;function YGt(l,c){let f=[];return l.forEach(y=>{f.push(...c(y))}),f}jp.FlatMap=YGt;function KGt(l,c){if(l.size!==c.size)return!1;for(let f of l)if(!c.has(f))return!1;return!0}jp.setEquals=KGt;function XGt(l,c){let f=0,y=l.length-1;for(;y-f>1;){let b=Math.trunc((y+f)/2);l[b]<=c?f=b:y=b-1}return l[y]<=c?y:l[f]<=c?f:-1}jp.binarySearchLB=XGt;function QGt(l,c){return l.toLowerCase()===c.toLowerCase()}jp.equalsCaseInsensitive=QGt});var w7=xt(oz=>{"use strict";Object.defineProperty(oz,"__esModule",{value:!0});oz.AggregatorKind=void 0;var ZGt;(function(l){l[l.DROP=0]="DROP",l[l.SUM=1]="SUM",l[l.LAST_VALUE=2]="LAST_VALUE",l[l.HISTOGRAM=3]="HISTOGRAM",l[l.EXPONENTIAL_HISTOGRAM=4]="EXPONENTIAL_HISTOGRAM"})(ZGt=oz.AggregatorKind||(oz.AggregatorKind={}))});var nat=xt(Uie=>{"use strict";Object.defineProperty(Uie,"__esModule",{value:!0});Uie.DropAggregator=void 0;var eHt=w7(),Uke=class{constructor(){this.kind=eHt.AggregatorKind.DROP}createAccumulation(){}merge(c,f){}diff(c,f){}toMetricData(c,f,y,b){}};Uie.DropAggregator=Uke});var aP=xt(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0});WS.isValidName=WS.isDescriptorCompatibleWith=WS.createInstrumentDescriptorWithView=WS.createInstrumentDescriptor=WS.InstrumentType=void 0;var iat=(zc(),ol(Xc)),tHt=yC(),rHt;(function(l){l.COUNTER="COUNTER",l.GAUGE="GAUGE",l.HISTOGRAM="HISTOGRAM",l.UP_DOWN_COUNTER="UP_DOWN_COUNTER",l.OBSERVABLE_COUNTER="OBSERVABLE_COUNTER",l.OBSERVABLE_GAUGE="OBSERVABLE_GAUGE",l.OBSERVABLE_UP_DOWN_COUNTER="OBSERVABLE_UP_DOWN_COUNTER"})(rHt=WS.InstrumentType||(WS.InstrumentType={}));function nHt(l,c,f){var y,b,k,g;return sat(l)||iat.diag.warn(`Invalid metric name: "${l}". The metric name should be a ASCII string with a length no greater than 255 characters.`),{name:l,type:c,description:(y=f?.description)!==null&&y!==void 0?y:"",unit:(b=f?.unit)!==null&&b!==void 0?b:"",valueType:(k=f?.valueType)!==null&&k!==void 0?k:iat.ValueType.DOUBLE,advice:(g=f?.advice)!==null&&g!==void 0?g:{}}}WS.createInstrumentDescriptor=nHt;function iHt(l,c){var f,y;return{name:(f=l.name)!==null&&f!==void 0?f:c.name,description:(y=l.description)!==null&&y!==void 0?y:c.description,type:c.type,unit:c.unit,valueType:c.valueType,advice:c.advice}}WS.createInstrumentDescriptorWithView=iHt;function sHt(l,c){return(0,tHt.equalsCaseInsensitive)(l.name,c.name)&&l.unit===c.unit&&l.type===c.type&&l.valueType===c.valueType}WS.isDescriptorCompatibleWith=sHt;var oHt=/^[a-z][a-z0-9_.\-/]{0,254}$/i;function sat(l){return l.match(oHt)!=null}WS.isValidName=sat});var oat=xt(R7=>{"use strict";Object.defineProperty(R7,"__esModule",{value:!0});R7.HistogramAggregator=R7.HistogramAccumulation=void 0;var aHt=w7(),cHt=I7(),Vie=aP(),lHt=yC();function uHt(l){let c=l.map(()=>0);return c.push(0),{buckets:{boundaries:l,counts:c},sum:0,count:0,hasMinMax:!1,min:1/0,max:-1/0}}var O7=class{constructor(c,f,y=!0,b=uHt(f)){this.startTime=c,this._boundaries=f,this._recordMinMax=y,this._current=b}record(c){if(Number.isNaN(c))return;this._current.count+=1,this._current.sum+=c,this._recordMinMax&&(this._current.min=Math.min(c,this._current.min),this._current.max=Math.max(c,this._current.max),this._current.hasMinMax=!0);let f=(0,lHt.binarySearchLB)(this._boundaries,c);this._current.buckets.counts[f+1]+=1}setStartTime(c){this.startTime=c}toPointValue(){return this._current}};R7.HistogramAccumulation=O7;var Vke=class{constructor(c,f){this._boundaries=c,this._recordMinMax=f,this.kind=aHt.AggregatorKind.HISTOGRAM}createAccumulation(c){return new O7(c,this._boundaries,this._recordMinMax)}merge(c,f){let y=c.toPointValue(),b=f.toPointValue(),k=y.buckets.counts,g=b.buckets.counts,p=new Array(k.length);for(let se=0;se{let p=g.toPointValue(),A=c.type===Vie.InstrumentType.GAUGE||c.type===Vie.InstrumentType.UP_DOWN_COUNTER||c.type===Vie.InstrumentType.OBSERVABLE_GAUGE||c.type===Vie.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:k,startTime:g.startTime,endTime:b,value:{min:p.hasMinMax?p.min:void 0,max:p.hasMinMax?p.max:void 0,sum:A?void 0:p.sum,buckets:p.buckets,count:p.count}}})}}};R7.HistogramAggregator=Vke});var aat=xt(Jie=>{"use strict";Object.defineProperty(Jie,"__esModule",{value:!0});Jie.Buckets=void 0;var Jke=class l{constructor(c=new qke,f=0,y=0,b=0){this.backing=c,this.indexBase=f,this.indexStart=y,this.indexEnd=b}get offset(){return this.indexStart}get length(){return this.backing.length===0||this.indexEnd===this.indexStart&&this.at(0)===0?0:this.indexEnd-this.indexStart+1}counts(){return Array.from({length:this.length},(c,f)=>this.at(f))}at(c){let f=this.indexBase-this.indexStart;return c=0;c--)if(this.at(c)!==0){this.indexEnd-=this.length-c-1;break}this._rotate()}downscale(c){this._rotate();let f=1+this.indexEnd-this.indexStart,y=1<>=c,this.indexEnd>>=c,this.indexBase=this.indexStart}clone(){return new l(this.backing.clone(),this.indexBase,this.indexStart,this.indexEnd)}_rotate(){let c=this.indexBase-this.indexStart;c!==0&&(c>0?(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,c),this.backing.reverse(c,this.backing.length)):(this.backing.reverse(0,this.backing.length),this.backing.reverse(0,this.backing.length+c)),this.indexBase=this.indexStart)}_relocateBucket(c,f){c!==f&&this.incrementBucket(c,this.backing.emptyBucket(f))}};Jie.Buckets=Jke;var qke=class l{constructor(c=[0]){this._counts=c}get length(){return this._counts.length}countAt(c){return this._counts[c]}growTo(c,f,y){let b=new Array(c).fill(0);b.splice(y,this._counts.length-f,...this._counts.slice(f)),b.splice(0,f,...this._counts.slice(0,f)),this._counts=b}reverse(c,f){let y=Math.floor((c+f)/2)-c;for(let b=0;b=f?this._counts[c]-=f:this._counts[c]=0}clone(){return new l([...this._counts])}}});var Wke=xt(T1=>{"use strict";Object.defineProperty(T1,"__esModule",{value:!0});T1.getSignificand=T1.getNormalBase2=T1.MIN_VALUE=T1.MAX_NORMAL_EXPONENT=T1.MIN_NORMAL_EXPONENT=T1.SIGNIFICAND_WIDTH=void 0;T1.SIGNIFICAND_WIDTH=52;var _Ht=2146435072,fHt=1048575,zke=1023;T1.MIN_NORMAL_EXPONENT=-zke+1;T1.MAX_NORMAL_EXPONENT=zke;T1.MIN_VALUE=Math.pow(2,-1022);function pHt(l){let c=new DataView(new ArrayBuffer(8));return c.setFloat64(0,l),((c.getUint32(0)&_Ht)>>20)-zke}T1.getNormalBase2=pHt;function dHt(l){let c=new DataView(new ArrayBuffer(8));c.setFloat64(0,l);let f=c.getUint32(0),y=c.getUint32(4);return(f&fHt)*Math.pow(2,32)+y}T1.getSignificand=dHt});var qie=xt(M7=>{"use strict";Object.defineProperty(M7,"__esModule",{value:!0});M7.nextGreaterSquare=M7.ldexp=void 0;function mHt(l,c){return l===0||l===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY||Number.isNaN(l)?l:l*Math.pow(2,c)}M7.ldexp=mHt;function gHt(l){return l--,l|=l>>1,l|=l>>2,l|=l>>4,l|=l>>8,l|=l>>16,l++,l}M7.nextGreaterSquare=gHt});var Wie=xt(zie=>{"use strict";Object.defineProperty(zie,"__esModule",{value:!0});zie.MappingError=void 0;var Gke=class extends Error{};zie.MappingError=Gke});var lat=xt(Gie=>{"use strict";Object.defineProperty(Gie,"__esModule",{value:!0});Gie.ExponentMapping=void 0;var L7=Wke(),hHt=qie(),cat=Wie(),Hke=class{constructor(c){this._shift=-c}mapToIndex(c){if(c>this._shift}lowerBoundary(c){let f=this._minNormalLowerBoundaryIndex();if(cy)throw new cat.MappingError(`overflow: ${c} is > maximum lower boundary: ${y}`);return hHt.ldexp(1,c<>this._shift;return this._shift<2&&c--,c}_maxNormalLowerBoundaryIndex(){return L7.MAX_NORMAL_EXPONENT>>this._shift}_rightShift(c,f){return Math.floor(c*Math.pow(2,-f))}};Gie.ExponentMapping=Hke});var fat=xt(Hie=>{"use strict";Object.defineProperty(Hie,"__esModule",{value:!0});Hie.LogarithmMapping=void 0;var F7=Wke(),uat=qie(),_at=Wie(),$ke=class{constructor(c){this._scale=c,this._scaleFactor=uat.ldexp(Math.LOG2E,c),this._inverseFactor=uat.ldexp(Math.LN2,-c)}mapToIndex(c){if(c<=F7.MIN_VALUE)return this._minNormalLowerBoundaryIndex()-1;if(F7.getSignificand(c)===0)return(F7.getNormalBase2(c)<=y?y:f}lowerBoundary(c){let f=this._maxNormalLowerBoundaryIndex();if(c>=f){if(c===f)return 2*Math.exp((c-(1< maximum lower boundary: ${f}`)}let y=this._minNormalLowerBoundaryIndex();if(c<=y){if(c===y)return F7.MIN_VALUE;if(c===y-1)return Math.exp((c+(1<{"use strict";Object.defineProperty($ie,"__esModule",{value:!0});$ie.getMapping=void 0;var yHt=lat(),vHt=fat(),SHt=Wie(),pat=-10,dat=20,THt=Array.from({length:31},(l,c)=>c>10?new vHt.LogarithmMapping(c-10):new yHt.ExponentMapping(c-10));function bHt(l){if(l>dat||l= ${pat} && <= ${dat}, got: ${l}`);return THt[l+10]}$ie.getMapping=bHt});var yat=xt(B7=>{"use strict";Object.defineProperty(B7,"__esModule",{value:!0});B7.ExponentialHistogramAggregator=B7.ExponentialHistogramAccumulation=void 0;var EHt=w7(),xHt=I7(),CHt=(zc(),ol(Xc)),Yie=aP(),gat=aat(),hat=mat(),AHt=qie(),j7=class l{constructor(c,f){this.low=c,this.high=f}static combine(c,f){return new l(Math.min(c.low,f.low),Math.max(c.high,f.high))}},kHt=20,PHt=160,Yke=2,Kie=class l{constructor(c=c,f=PHt,y=!0,b=0,k=0,g=0,p=Number.POSITIVE_INFINITY,A=Number.NEGATIVE_INFINITY,j=new gat.Buckets,se=new gat.Buckets,We=(0,hat.getMapping)(kHt)){this.startTime=c,this._maxSize=f,this._recordMinMax=y,this._sum=b,this._count=k,this._zeroCount=g,this._min=p,this._max=A,this._positive=j,this._negative=se,this._mapping=We,this._maxSizethis._max&&(this._max=c),c0?this._updateBuckets(this._positive,c,f):this._updateBuckets(this._negative,-c,f)}}merge(c){this._count===0?(this._min=c.min,this._max=c.max):c.count!==0&&(c.minthis.max&&(this._max=c.max)),this.startTime=c.startTime,this._sum+=c.sum,this._count+=c.count,this._zeroCount+=c.zeroCount;let f=this._minScale(c);this._downscale(this.scale-f),this._mergeBuckets(this.positive,c,c.positive,f),this._mergeBuckets(this.negative,c,c.negative,f)}diff(c){this._min=1/0,this._max=-1/0,this._sum-=c.sum,this._count-=c.count,this._zeroCount-=c.zeroCount;let f=this._minScale(c);this._downscale(this.scale-f),this._diffBuckets(this.positive,c,c.positive,f),this._diffBuckets(this.negative,c,c.negative,f)}clone(){return new l(this.startTime,this._maxSize,this._recordMinMax,this._sum,this._count,this._zeroCount,this._min,this._max,this.positive.clone(),this.negative.clone(),this._mapping)}_updateBuckets(c,f,y){let b=this._mapping.mapToIndex(f),k=!1,g=0,p=0;if(c.length===0?(c.indexStart=b,c.indexEnd=c.indexStart,c.indexBase=c.indexStart):b=this._maxSize?(k=!0,p=b,g=c.indexEnd):b>c.indexEnd&&b-c.indexStart>=this._maxSize&&(k=!0,p=c.indexStart,g=b),k){let A=this._changeScale(g,p);this._downscale(A),b=this._mapping.mapToIndex(f)}this._incrementIndexBy(c,b,y)}_incrementIndexBy(c,f,y){if(y===0)return;if(c.length===0&&(c.indexStart=c.indexEnd=c.indexBase=f),f=c.backing.length&&this._grow(c,k+1),c.indexStart=f}else if(f>c.indexEnd){let k=f-c.indexStart;k>=c.backing.length&&this._grow(c,k+1),c.indexEnd=f}let b=f-c.indexBase;b<0&&(b+=c.backing.length),c.incrementBucket(b,y)}_grow(c,f){let y=c.backing.length,b=c.indexBase-c.indexStart,k=y-b,g=(0,AHt.nextGreaterSquare)(f);g>this._maxSize&&(g=this._maxSize);let p=g-b;c.backing.growTo(g,k,p)}_changeScale(c,f){let y=0;for(;c-f>=this._maxSize;)c>>=1,f>>=1,y++;return y}_downscale(c){if(c===0)return;if(c<0)throw new Error(`impossible change of scale: ${this.scale}`);let f=this._mapping.scale-c;this._positive.downscale(c),this._negative.downscale(c),this._mapping=(0,hat.getMapping)(f)}_minScale(c){let f=Math.min(this.scale,c.scale),y=j7.combine(this._highLowAtScale(this.positive,this.scale,f),this._highLowAtScale(c.positive,c.scale,f)),b=j7.combine(this._highLowAtScale(this.negative,this.scale,f),this._highLowAtScale(c.negative,c.scale,f));return Math.min(f-this._changeScale(y.high,y.low),f-this._changeScale(b.high,b.low))}_highLowAtScale(c,f,y){if(c.length===0)return new j7(0,-1);let b=f-y;return new j7(c.indexStart>>b,c.indexEnd>>b)}_mergeBuckets(c,f,y,b){let k=y.offset,g=f.scale-b;for(let p=0;p>g,y.at(p))}_diffBuckets(c,f,y,b){let k=y.offset,g=f.scale-b;for(let p=0;p>g)-c.indexBase;j<0&&(j+=c.backing.length),c.decrementBucket(j,y.at(p))}c.trim()}};B7.ExponentialHistogramAccumulation=Kie;var Kke=class{constructor(c,f){this._maxSize=c,this._recordMinMax=f,this.kind=EHt.AggregatorKind.EXPONENTIAL_HISTOGRAM}createAccumulation(c){return new Kie(c,this._maxSize,this._recordMinMax)}merge(c,f){let y=f.clone();return y.merge(c),y}diff(c,f){let y=f.clone();return y.diff(c),y}toMetricData(c,f,y,b){return{descriptor:c,aggregationTemporality:f,dataPointType:xHt.DataPointType.EXPONENTIAL_HISTOGRAM,dataPoints:y.map(([k,g])=>{let p=g.toPointValue(),A=c.type===Yie.InstrumentType.GAUGE||c.type===Yie.InstrumentType.UP_DOWN_COUNTER||c.type===Yie.InstrumentType.OBSERVABLE_GAUGE||c.type===Yie.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER;return{attributes:k,startTime:g.startTime,endTime:b,value:{min:p.hasMinMax?p.min:void 0,max:p.hasMinMax?p.max:void 0,sum:A?void 0:p.sum,positive:{offset:p.positive.offset,bucketCounts:p.positive.bucketCounts},negative:{offset:p.negative.offset,bucketCounts:p.negative.bucketCounts},count:p.count,scale:p.scale,zeroCount:p.zeroCount}}})}}};B7.ExponentialHistogramAggregator=Kke});var vat=xt(V7=>{"use strict";Object.defineProperty(V7,"__esModule",{value:!0});V7.LastValueAggregator=V7.LastValueAccumulation=void 0;var NHt=w7(),az=fy(),DHt=I7(),U7=class{constructor(c,f=0,y=[0,0]){this.startTime=c,this._current=f,this.sampleTime=y}record(c){this._current=c,this.sampleTime=(0,az.millisToHrTime)(Date.now())}setStartTime(c){this.startTime=c}toPointValue(){return this._current}};V7.LastValueAccumulation=U7;var Xke=class{constructor(){this.kind=NHt.AggregatorKind.LAST_VALUE}createAccumulation(c){return new U7(c)}merge(c,f){let y=(0,az.hrTimeToMicroseconds)(f.sampleTime)>=(0,az.hrTimeToMicroseconds)(c.sampleTime)?f:c;return new U7(c.startTime,y.toPointValue(),y.sampleTime)}diff(c,f){let y=(0,az.hrTimeToMicroseconds)(f.sampleTime)>=(0,az.hrTimeToMicroseconds)(c.sampleTime)?f:c;return new U7(f.startTime,y.toPointValue(),y.sampleTime)}toMetricData(c,f,y,b){return{descriptor:c,aggregationTemporality:f,dataPointType:DHt.DataPointType.GAUGE,dataPoints:y.map(([k,g])=>({attributes:k,startTime:g.startTime,endTime:b,value:g.toPointValue()}))}}};V7.LastValueAggregator=Xke});var Sat=xt(J7=>{"use strict";Object.defineProperty(J7,"__esModule",{value:!0});J7.SumAggregator=J7.SumAccumulation=void 0;var IHt=w7(),wHt=I7(),mI=class{constructor(c,f,y=0,b=!1){this.startTime=c,this.monotonic=f,this._current=y,this.reset=b}record(c){this.monotonic&&c<0||(this._current+=c)}setStartTime(c){this.startTime=c}toPointValue(){return this._current}};J7.SumAccumulation=mI;var Qke=class{constructor(c){this.monotonic=c,this.kind=IHt.AggregatorKind.SUM}createAccumulation(c){return new mI(c,this.monotonic)}merge(c,f){let y=c.toPointValue(),b=f.toPointValue();return f.reset?new mI(f.startTime,this.monotonic,b,f.reset):new mI(c.startTime,this.monotonic,y+b)}diff(c,f){let y=c.toPointValue(),b=f.toPointValue();return this.monotonic&&y>b?new mI(f.startTime,this.monotonic,b,!0):new mI(f.startTime,this.monotonic,b-y)}toMetricData(c,f,y,b){return{descriptor:c,aggregationTemporality:f,dataPointType:wHt.DataPointType.SUM,dataPoints:y.map(([k,g])=>({attributes:k,startTime:g.startTime,endTime:b,value:g.toPointValue()})),isMonotonic:this.monotonic}}};J7.SumAggregator=Qke});var Tat=xt(yx=>{"use strict";var OHt=yx&&yx.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),cz=yx&&yx.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&OHt(c,l,f)};Object.defineProperty(yx,"__esModule",{value:!0});cz(nat(),yx);cz(oat(),yx);cz(yat(),yx);cz(vat(),yx);cz(Sat(),yx)});var ese=xt(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.DefaultAggregation=xh.ExponentialHistogramAggregation=xh.ExplicitBucketHistogramAggregation=xh.HistogramAggregation=xh.LastValueAggregation=xh.SumAggregation=xh.DropAggregation=xh.Aggregation=void 0;var RHt=(zc(),ol(Xc)),w4=Tat(),vC=aP(),SC=class{static Drop(){return bat}static Sum(){return Eat}static LastValue(){return xat}static Histogram(){return Cat}static ExponentialHistogram(){return MHt}static Default(){return LHt}};xh.Aggregation=SC;var lz=class l extends SC{createAggregator(c){return l.DEFAULT_INSTANCE}};xh.DropAggregation=lz;lz.DEFAULT_INSTANCE=new w4.DropAggregator;var q7=class l extends SC{createAggregator(c){switch(c.type){case vC.InstrumentType.COUNTER:case vC.InstrumentType.OBSERVABLE_COUNTER:case vC.InstrumentType.HISTOGRAM:return l.MONOTONIC_INSTANCE;default:return l.NON_MONOTONIC_INSTANCE}}};xh.SumAggregation=q7;q7.MONOTONIC_INSTANCE=new w4.SumAggregator(!0);q7.NON_MONOTONIC_INSTANCE=new w4.SumAggregator(!1);var uz=class l extends SC{createAggregator(c){return l.DEFAULT_INSTANCE}};xh.LastValueAggregation=uz;uz.DEFAULT_INSTANCE=new w4.LastValueAggregator;var _z=class l extends SC{createAggregator(c){return l.DEFAULT_INSTANCE}};xh.HistogramAggregation=_z;_z.DEFAULT_INSTANCE=new w4.HistogramAggregator([0,5,10,25,50,75,100,250,500,750,1e3,2500,5e3,7500,1e4],!0);var Xie=class extends SC{constructor(c,f=!0){if(super(),this._recordMinMax=f,c==null)throw new Error("ExplicitBucketHistogramAggregation should be created with explicit boundaries, if a single bucket histogram is required, please pass an empty array");c=c.concat(),c=c.sort((k,g)=>k-g);let y=c.lastIndexOf(-1/0),b=c.indexOf(1/0);b===-1&&(b=void 0),this._boundaries=c.slice(y+1,b)}createAggregator(c){return new w4.HistogramAggregator(this._boundaries,this._recordMinMax)}};xh.ExplicitBucketHistogramAggregation=Xie;var Qie=class extends SC{constructor(c=160,f=!0){super(),this._maxSize=c,this._recordMinMax=f}createAggregator(c){return new w4.ExponentialHistogramAggregator(this._maxSize,this._recordMinMax)}};xh.ExponentialHistogramAggregation=Qie;var Zie=class extends SC{_resolve(c){switch(c.type){case vC.InstrumentType.COUNTER:case vC.InstrumentType.UP_DOWN_COUNTER:case vC.InstrumentType.OBSERVABLE_COUNTER:case vC.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Eat;case vC.InstrumentType.GAUGE:case vC.InstrumentType.OBSERVABLE_GAUGE:return xat;case vC.InstrumentType.HISTOGRAM:return c.advice.explicitBucketBoundaries?new Xie(c.advice.explicitBucketBoundaries):Cat}return RHt.diag.warn(`Unable to recognize instrument type: ${c.type}`),bat}createAggregator(c){return this._resolve(c).createAggregator(c)}};xh.DefaultAggregation=Zie;var bat=new lz,Eat=new q7,xat=new uz,Cat=new _z,MHt=new Qie,LHt=new Zie});var Zke=xt(z7=>{"use strict";Object.defineProperty(z7,"__esModule",{value:!0});z7.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=z7.DEFAULT_AGGREGATION_SELECTOR=void 0;var FHt=ese(),jHt=jie(),BHt=l=>FHt.Aggregation.Default();z7.DEFAULT_AGGREGATION_SELECTOR=BHt;var UHt=l=>jHt.AggregationTemporality.CUMULATIVE;z7.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR=UHt});var tPe=xt(rse=>{"use strict";Object.defineProperty(rse,"__esModule",{value:!0});rse.MetricReader=void 0;var Aat=(zc(),ol(Xc)),tse=yC(),kat=Zke(),ePe=class{constructor(c){var f,y,b;this._shutdown=!1,this._aggregationSelector=(f=c?.aggregationSelector)!==null&&f!==void 0?f:kat.DEFAULT_AGGREGATION_SELECTOR,this._aggregationTemporalitySelector=(y=c?.aggregationTemporalitySelector)!==null&&y!==void 0?y:kat.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR,this._metricProducers=(b=c?.metricProducers)!==null&&b!==void 0?b:[]}setMetricProducer(c){if(this._sdkMetricProducer)throw new Error("MetricReader can not be bound to a MeterProvider again.");this._sdkMetricProducer=c,this.onInitialized()}selectAggregation(c){return this._aggregationSelector(c)}selectAggregationTemporality(c){return this._aggregationTemporalitySelector(c)}onInitialized(){}async collect(c){if(this._sdkMetricProducer===void 0)throw new Error("MetricReader is not bound to a MetricProducer");if(this._shutdown)throw new Error("MetricReader is shutdown");let[f,...y]=await Promise.all([this._sdkMetricProducer.collect({timeoutMillis:c?.timeoutMillis}),...this._metricProducers.map(p=>p.collect({timeoutMillis:c?.timeoutMillis}))]),b=f.errors.concat((0,tse.FlatMap)(y,p=>p.errors)),k=f.resourceMetrics.resource,g=f.resourceMetrics.scopeMetrics.concat((0,tse.FlatMap)(y,p=>p.resourceMetrics.scopeMetrics));return{resourceMetrics:{resource:k,scopeMetrics:g},errors:b}}async shutdown(c){if(this._shutdown){Aat.diag.error("Cannot call shutdown twice.");return}c?.timeoutMillis==null?await this.onShutdown():await(0,tse.callWithTimeout)(this.onShutdown(),c.timeoutMillis),this._shutdown=!0}async forceFlush(c){if(this._shutdown){Aat.diag.warn("Cannot forceFlush on already shutdown MetricReader.");return}if(c?.timeoutMillis==null){await this.onForceFlush();return}await(0,tse.callWithTimeout)(this.onForceFlush(),c.timeoutMillis)}};rse.MetricReader=ePe});var Dat=xt(ise=>{"use strict";Object.defineProperty(ise,"__esModule",{value:!0});ise.PeriodicExportingMetricReader=void 0;var Pat=(zc(),ol(Xc)),nse=fy(),VHt=tPe(),Nat=yC(),JHt=(zc(),ol(Xc)),rPe=class extends VHt.MetricReader{constructor(c){var f,y,b,k;if(super({aggregationSelector:(f=c.exporter.selectAggregation)===null||f===void 0?void 0:f.bind(c.exporter),aggregationTemporalitySelector:(y=c.exporter.selectAggregationTemporality)===null||y===void 0?void 0:y.bind(c.exporter),metricProducers:c.metricProducers}),c.exportIntervalMillis!==void 0&&c.exportIntervalMillis<=0)throw Error("exportIntervalMillis must be greater than 0");if(c.exportTimeoutMillis!==void 0&&c.exportTimeoutMillis<=0)throw Error("exportTimeoutMillis must be greater than 0");if(c.exportTimeoutMillis!==void 0&&c.exportIntervalMillis!==void 0&&c.exportIntervalMillis0&&Pat.diag.error("PeriodicExportingMetricReader: metrics collection errors",...b);let k=async()=>{let g=await nse.internal._export(this._exporter,y);if(g.code!==nse.ExportResultCode.SUCCESS)throw new Error(`PeriodicExportingMetricReader: metrics export failed (error ${g.error})`)};y.resource.asyncAttributesPending?(f=(c=y.resource).waitForAsyncAttributes)===null||f===void 0||f.call(c).then(k,g=>JHt.diag.debug("Error while resolving async portion of resource: ",g)):await k()}onInitialized(){this._interval=setInterval(()=>{this._runOnce()},this._exportInterval),(0,nse.unrefTimer)(this._interval)}async onForceFlush(){await this._runOnce(),await this._exporter.forceFlush()}async onShutdown(){this._interval&&clearInterval(this._interval),await this._exporter.shutdown()}};ise.PeriodicExportingMetricReader=rPe});var wat=xt(sse=>{"use strict";Object.defineProperty(sse,"__esModule",{value:!0});sse.InMemoryMetricExporter=void 0;var Iat=fy(),nPe=class{constructor(c){this._shutdown=!1,this._metrics=[],this._aggregationTemporality=c}export(c,f){if(this._shutdown){setTimeout(()=>f({code:Iat.ExportResultCode.FAILED}),0);return}this._metrics.push(c),setTimeout(()=>f({code:Iat.ExportResultCode.SUCCESS}),0)}getMetrics(){return this._metrics}forceFlush(){return Promise.resolve()}reset(){this._metrics=[]}selectAggregationTemporality(c){return this._aggregationTemporality}shutdown(){return this._shutdown=!0,Promise.resolve()}};sse.InMemoryMetricExporter=nPe});var Rat=xt(ose=>{"use strict";Object.defineProperty(ose,"__esModule",{value:!0});ose.ConsoleMetricExporter=void 0;var Oat=fy(),qHt=Zke(),iPe=class l{constructor(c){var f;this._shutdown=!1,this._temporalitySelector=(f=c?.temporalitySelector)!==null&&f!==void 0?f:qHt.DEFAULT_AGGREGATION_TEMPORALITY_SELECTOR}export(c,f){if(this._shutdown){setImmediate(f,{code:Oat.ExportResultCode.FAILED});return}return l._sendMetrics(c,f)}forceFlush(){return Promise.resolve()}selectAggregationTemporality(c){return this._temporalitySelector(c)}shutdown(){return this._shutdown=!0,Promise.resolve()}static _sendMetrics(c,f){for(let y of c.scopeMetrics)for(let b of y.metrics)console.dir({descriptor:b.descriptor,dataPointType:b.dataPointType,dataPoints:b.dataPoints},{depth:null});f({code:Oat.ExportResultCode.SUCCESS})}};ose.ConsoleMetricExporter=iPe});var Mat=xt(ase=>{"use strict";Object.defineProperty(ase,"__esModule",{value:!0});ase.defaultServiceName=void 0;function zHt(){return`unknown_service:${process.argv0}`}ase.defaultServiceName=zHt});var Lat=xt(cse=>{"use strict";Object.defineProperty(cse,"__esModule",{value:!0});cse.defaultServiceName=void 0;var WHt=Mat();Object.defineProperty(cse,"defaultServiceName",{enumerable:!0,get:function(){return WHt.defaultServiceName}})});var sPe=xt(lse=>{"use strict";Object.defineProperty(lse,"__esModule",{value:!0});lse.defaultServiceName=void 0;var GHt=Lat();Object.defineProperty(lse,"defaultServiceName",{enumerable:!0,get:function(){return GHt.defaultServiceName}})});var cP=xt(use=>{"use strict";Object.defineProperty(use,"__esModule",{value:!0});use.Resource=void 0;var Fat=(zc(),ol(Xc)),O4=hC(),oPe=fy(),HHt=sPe(),fz=class l{constructor(c,f){var y;this._attributes=c,this.asyncAttributesPending=f!=null,this._syncAttributes=(y=this._attributes)!==null&&y!==void 0?y:{},this._asyncAttributesPromise=f?.then(b=>(this._attributes=Object.assign({},this._attributes,b),this.asyncAttributesPending=!1,b),b=>(Fat.diag.debug("a resource's async attributes promise rejected: %s",b),this.asyncAttributesPending=!1,{}))}static empty(){return l.EMPTY}static default(){return new l({[O4.SEMRESATTRS_SERVICE_NAME]:(0,HHt.defaultServiceName)(),[O4.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]:oPe.SDK_INFO[O4.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],[O4.SEMRESATTRS_TELEMETRY_SDK_NAME]:oPe.SDK_INFO[O4.SEMRESATTRS_TELEMETRY_SDK_NAME],[O4.SEMRESATTRS_TELEMETRY_SDK_VERSION]:oPe.SDK_INFO[O4.SEMRESATTRS_TELEMETRY_SDK_VERSION]})}get attributes(){var c;return this.asyncAttributesPending&&Fat.diag.error("Accessing resource attributes before async attributes settled"),(c=this._attributes)!==null&&c!==void 0?c:{}}async waitForAsyncAttributes(){this.asyncAttributesPending&&await this._asyncAttributesPromise}merge(c){var f;if(!c)return this;let y=Object.assign(Object.assign({},this._syncAttributes),(f=c._syncAttributes)!==null&&f!==void 0?f:c.attributes);if(!this._asyncAttributesPromise&&!c._asyncAttributesPromise)return new l(y);let b=Promise.all([this._asyncAttributesPromise,c._asyncAttributesPromise]).then(([k,g])=>{var p;return Object.assign(Object.assign(Object.assign(Object.assign({},this._syncAttributes),k),(p=c._syncAttributes)!==null&&p!==void 0?p:c.attributes),g)});return new l(y,b)}};use.Resource=fz;fz.EMPTY=new fz({})});var aPe=xt(W7=>{"use strict";Object.defineProperty(W7,"__esModule",{value:!0});W7.normalizeType=W7.normalizeArch=void 0;var $Ht=l=>{switch(l){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return l}};W7.normalizeArch=$Ht;var YHt=l=>{switch(l){case"sunos":return"solaris";case"win32":return"windows";default:return l}};W7.normalizeType=YHt});var fse=xt(_se=>{"use strict";Object.defineProperty(_se,"__esModule",{value:!0});_se.execAsync=void 0;var KHt=Ru("child_process"),XHt=Ru("util");_se.execAsync=XHt.promisify(KHt.exec)});var jat=xt(pse=>{"use strict";Object.defineProperty(pse,"__esModule",{value:!0});pse.getMachineId=void 0;var QHt=fse(),ZHt=(zc(),ol(Xc));async function e$t(){try{let c=(await(0,QHt.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
`).find(y=>y.includes("IOPlatformUUID"));if(!c)return"";let f=c.split('" = "');if(f.length===2)return f[1].slice(0,-1)}catch(l){ZHt.diag.debug(`error reading machine id: ${l}`)}return""}pse.getMachineId=e$t});var Bat=xt(dse=>{"use strict";Object.defineProperty(dse,"__esModule",{value:!0});dse.getMachineId=void 0;var t$t=Ru("fs"),r$t=(zc(),ol(Xc));async function n$t(){let l=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let c of l)try{return(await t$t.promises.readFile(c,{encoding:"utf8"})).trim()}catch(f){r$t.diag.debug(`error reading machine id: ${f}`)}return""}dse.getMachineId=n$t});var Vat=xt(mse=>{"use strict";Object.defineProperty(mse,"__esModule",{value:!0});mse.getMachineId=void 0;var i$t=Ru("fs"),s$t=fse(),Uat=(zc(),ol(Xc));async function o$t(){try{return(await i$t.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(l){Uat.diag.debug(`error reading machine id: ${l}`)}try{return(await(0,s$t.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(l){Uat.diag.debug(`error reading machine id: ${l}`)}return""}mse.getMachineId=o$t});var qat=xt(gse=>{"use strict";Object.defineProperty(gse,"__esModule",{value:!0});gse.getMachineId=void 0;var Jat=Ru("process"),a$t=fse(),c$t=(zc(),ol(Xc));async function l$t(){let l="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",c="%windir%\\System32\\REG.exe";Jat.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in Jat.env&&(c="%windir%\\sysnative\\cmd.exe /c "+c);try{let y=(await(0,a$t.execAsync)(`${c} ${l}`)).stdout.split("REG_SZ");if(y.length===2)return y[1].trim()}catch(f){c$t.diag.debug(`error reading machine id: ${f}`)}return""}gse.getMachineId=l$t});var zat=xt(hse=>{"use strict";Object.defineProperty(hse,"__esModule",{value:!0});hse.getMachineId=void 0;var u$t=(zc(),ol(Xc));async function _$t(){return u$t.diag.debug("could not read machine-id: unsupported platform"),""}hse.getMachineId=_$t});var Wat=xt(lP=>{"use strict";Object.defineProperty(lP,"__esModule",{value:!0});lP.getMachineId=void 0;var f$t=Ru("process"),G7;lP.getMachineId=G7;switch(f$t.platform){case"darwin":lP.getMachineId=G7=jat().getMachineId;break;case"linux":lP.getMachineId=G7=Bat().getMachineId;break;case"freebsd":lP.getMachineId=G7=Vat().getMachineId;break;case"win32":lP.getMachineId=G7=qat().getMachineId;break;default:lP.getMachineId=G7=zat().getMachineId}});var uPe=xt(yse=>{"use strict";Object.defineProperty(yse,"__esModule",{value:!0});yse.hostDetectorSync=void 0;var cPe=hC(),p$t=cP(),Gat=Ru("os"),d$t=aPe(),m$t=Wat(),lPe=class{detect(c){let f={[cPe.SEMRESATTRS_HOST_NAME]:(0,Gat.hostname)(),[cPe.SEMRESATTRS_HOST_ARCH]:(0,d$t.normalizeArch)((0,Gat.arch)())};return new p$t.Resource(f,this._getAsyncAttributes())}_getAsyncAttributes(){return(0,m$t.getMachineId)().then(c=>{let f={};return c&&(f[cPe.SEMRESATTRS_HOST_ID]=c),f})}};yse.hostDetectorSync=new lPe});var Hat=xt(vse=>{"use strict";Object.defineProperty(vse,"__esModule",{value:!0});vse.hostDetector=void 0;var g$t=uPe(),_Pe=class{detect(c){return Promise.resolve(g$t.hostDetectorSync.detect(c))}};vse.hostDetector=new _Pe});var pPe=xt(Sse=>{"use strict";Object.defineProperty(Sse,"__esModule",{value:!0});Sse.osDetectorSync=void 0;var $at=hC(),h$t=cP(),Yat=Ru("os"),y$t=aPe(),fPe=class{detect(c){let f={[$at.SEMRESATTRS_OS_TYPE]:(0,y$t.normalizeType)((0,Yat.platform)()),[$at.SEMRESATTRS_OS_VERSION]:(0,Yat.release)()};return new h$t.Resource(f)}};Sse.osDetectorSync=new fPe});var Kat=xt(Tse=>{"use strict";Object.defineProperty(Tse,"__esModule",{value:!0});Tse.osDetector=void 0;var v$t=pPe(),dPe=class{detect(c){return Promise.resolve(v$t.osDetectorSync.detect(c))}};Tse.osDetector=new dPe});var gPe=xt(bse=>{"use strict";Object.defineProperty(bse,"__esModule",{value:!0});bse.processDetectorSync=void 0;var S$t=(zc(),ol(Xc)),uP=hC(),T$t=cP(),b$t=Ru("os"),mPe=class{detect(c){let f={[uP.SEMRESATTRS_PROCESS_PID]:process.pid,[uP.SEMRESATTRS_PROCESS_EXECUTABLE_NAME]:process.title,[uP.SEMRESATTRS_PROCESS_EXECUTABLE_PATH]:process.execPath,[uP.SEMRESATTRS_PROCESS_COMMAND_ARGS]:[process.argv[0],...process.execArgv,...process.argv.slice(1)],[uP.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:process.versions.node,[uP.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"nodejs",[uP.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Node.js"};process.argv.length>1&&(f[uP.SEMRESATTRS_PROCESS_COMMAND]=process.argv[1]);try{let y=b$t.userInfo();f[uP.SEMRESATTRS_PROCESS_OWNER]=y.username}catch(y){S$t.diag.debug(`error obtaining process owner: ${y}`)}return new T$t.Resource(f)}};bse.processDetectorSync=new mPe});var Xat=xt(Ese=>{"use strict";Object.defineProperty(Ese,"__esModule",{value:!0});Ese.processDetector=void 0;var E$t=gPe(),hPe=class{detect(c){return Promise.resolve(E$t.processDetectorSync.detect(c))}};Ese.processDetector=new hPe});var Qat=xt(xse=>{"use strict";Object.defineProperty(xse,"__esModule",{value:!0});xse.serviceInstanceIdDetectorSync=void 0;var x$t=hC(),C$t=cP(),A$t=Ru("crypto"),yPe=class{detect(c){let f={[x$t.SEMRESATTRS_SERVICE_INSTANCE_ID]:(0,A$t.randomUUID)()};return new C$t.Resource(f)}};xse.serviceInstanceIdDetectorSync=new yPe});var Zat=xt(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.serviceInstanceIdDetectorSync=t0.processDetectorSync=t0.processDetector=t0.osDetectorSync=t0.osDetector=t0.hostDetectorSync=t0.hostDetector=void 0;var k$t=Hat();Object.defineProperty(t0,"hostDetector",{enumerable:!0,get:function(){return k$t.hostDetector}});var P$t=uPe();Object.defineProperty(t0,"hostDetectorSync",{enumerable:!0,get:function(){return P$t.hostDetectorSync}});var N$t=Kat();Object.defineProperty(t0,"osDetector",{enumerable:!0,get:function(){return N$t.osDetector}});var D$t=pPe();Object.defineProperty(t0,"osDetectorSync",{enumerable:!0,get:function(){return D$t.osDetectorSync}});var I$t=Xat();Object.defineProperty(t0,"processDetector",{enumerable:!0,get:function(){return I$t.processDetector}});var w$t=gPe();Object.defineProperty(t0,"processDetectorSync",{enumerable:!0,get:function(){return w$t.processDetectorSync}});var O$t=Qat();Object.defineProperty(t0,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return O$t.serviceInstanceIdDetectorSync}})});var ect=xt(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.serviceInstanceIdDetectorSync=r0.processDetectorSync=r0.processDetector=r0.osDetectorSync=r0.osDetector=r0.hostDetectorSync=r0.hostDetector=void 0;var R4=Zat();Object.defineProperty(r0,"hostDetector",{enumerable:!0,get:function(){return R4.hostDetector}});Object.defineProperty(r0,"hostDetectorSync",{enumerable:!0,get:function(){return R4.hostDetectorSync}});Object.defineProperty(r0,"osDetector",{enumerable:!0,get:function(){return R4.osDetector}});Object.defineProperty(r0,"osDetectorSync",{enumerable:!0,get:function(){return R4.osDetectorSync}});Object.defineProperty(r0,"processDetector",{enumerable:!0,get:function(){return R4.processDetector}});Object.defineProperty(r0,"processDetectorSync",{enumerable:!0,get:function(){return R4.processDetectorSync}});Object.defineProperty(r0,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return R4.serviceInstanceIdDetectorSync}})});var TPe=xt(Ase=>{"use strict";Object.defineProperty(Ase,"__esModule",{value:!0});Ase.browserDetectorSync=void 0;var Cse=hC(),R$t=(zc(),ol(Xc)),vPe=cP(),SPe=class{detect(c){var f,y,b;if(!(typeof navigator<"u"&&((y=(f=global.process)===null||f===void 0?void 0:f.versions)===null||y===void 0?void 0:y.node)===void 0&&((b=global.Bun)===null||b===void 0?void 0:b.version)===void 0))return vPe.Resource.empty();let g={[Cse.SEMRESATTRS_PROCESS_RUNTIME_NAME]:"browser",[Cse.SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION]:"Web Browser",[Cse.SEMRESATTRS_PROCESS_RUNTIME_VERSION]:navigator.userAgent};return this._getResourceAttributes(g,c)}_getResourceAttributes(c,f){return c[Cse.SEMRESATTRS_PROCESS_RUNTIME_VERSION]===""?(R$t.diag.debug("BrowserDetector failed: Unable to find required browser resources. "),vPe.Resource.empty()):new vPe.Resource(Object.assign({},c))}};Ase.browserDetectorSync=new SPe});var tct=xt(kse=>{"use strict";Object.defineProperty(kse,"__esModule",{value:!0});kse.browserDetector=void 0;var M$t=TPe(),bPe=class{detect(c){return Promise.resolve(M$t.browserDetectorSync.detect(c))}};kse.browserDetector=new bPe});var xPe=xt(Pse=>{"use strict";Object.defineProperty(Pse,"__esModule",{value:!0});Pse.envDetectorSync=void 0;var L$t=(zc(),ol(Xc)),F$t=fy(),j$t=hC(),B$t=cP(),EPe=class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}detect(c){let f={},y=(0,F$t.getEnv)(),b=y.OTEL_RESOURCE_ATTRIBUTES,k=y.OTEL_SERVICE_NAME;if(b)try{let g=this._parseResourceAttributes(b);Object.assign(f,g)}catch(g){L$t.diag.debug(`EnvDetector failed: ${g.message}`)}return k&&(f[j$t.SEMRESATTRS_SERVICE_NAME]=k),new B$t.Resource(f)}_parseResourceAttributes(c){if(!c)return{};let f={},y=c.split(this._COMMA_SEPARATOR,-1);for(let b of y){let k=b.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(k.length!==2)continue;let[g,p]=k;if(g=g.trim(),p=p.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(g))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(p))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);f[g]=decodeURIComponent(p)}return f}_isValid(c){return c.length<=this._MAX_LENGTH&&this._isBaggageOctetString(c)}_isBaggageOctetString(c){for(let f=0;f126)return!1}return!0}_isValidAndNotEmpty(c){return c.length>0&&this._isValid(c)}};Pse.envDetectorSync=new EPe});var rct=xt(Nse=>{"use strict";Object.defineProperty(Nse,"__esModule",{value:!0});Nse.envDetector=void 0;var U$t=xPe(),CPe=class{detect(c){return Promise.resolve(U$t.envDetectorSync.detect(c))}};Nse.envDetector=new CPe});var nct=xt(Bp=>{"use strict";Object.defineProperty(Bp,"__esModule",{value:!0});Bp.envDetectorSync=Bp.browserDetectorSync=Bp.envDetector=Bp.browserDetector=Bp.serviceInstanceIdDetectorSync=Bp.processDetectorSync=Bp.processDetector=Bp.osDetectorSync=Bp.osDetector=Bp.hostDetectorSync=Bp.hostDetector=void 0;var M4=ect();Object.defineProperty(Bp,"hostDetector",{enumerable:!0,get:function(){return M4.hostDetector}});Object.defineProperty(Bp,"hostDetectorSync",{enumerable:!0,get:function(){return M4.hostDetectorSync}});Object.defineProperty(Bp,"osDetector",{enumerable:!0,get:function(){return M4.osDetector}});Object.defineProperty(Bp,"osDetectorSync",{enumerable:!0,get:function(){return M4.osDetectorSync}});Object.defineProperty(Bp,"processDetector",{enumerable:!0,get:function(){return M4.processDetector}});Object.defineProperty(Bp,"processDetectorSync",{enumerable:!0,get:function(){return M4.processDetectorSync}});Object.defineProperty(Bp,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return M4.serviceInstanceIdDetectorSync}});var V$t=tct();Object.defineProperty(Bp,"browserDetector",{enumerable:!0,get:function(){return V$t.browserDetector}});var J$t=rct();Object.defineProperty(Bp,"envDetector",{enumerable:!0,get:function(){return J$t.envDetector}});var q$t=TPe();Object.defineProperty(Bp,"browserDetectorSync",{enumerable:!0,get:function(){return q$t.browserDetectorSync}});var z$t=xPe();Object.defineProperty(Bp,"envDetectorSync",{enumerable:!0,get:function(){return z$t.envDetectorSync}})});var ict=xt(Dse=>{"use strict";Object.defineProperty(Dse,"__esModule",{value:!0});Dse.isPromiseLike=void 0;var W$t=l=>l!==null&&typeof l=="object"&&typeof l.then=="function";Dse.isPromiseLike=W$t});var oct=xt($7=>{"use strict";Object.defineProperty($7,"__esModule",{value:!0});$7.detectResourcesSync=$7.detectResources=void 0;var pz=cP(),H7=(zc(),ol(Xc)),G$t=ict(),H$t=async(l={})=>{let c=await Promise.all((l.detectors||[]).map(async f=>{try{let y=await f.detect(l);return H7.diag.debug(`${f.constructor.name} found resource.`,y),y}catch(y){return H7.diag.debug(`${f.constructor.name} failed: ${y.message}`),pz.Resource.empty()}}));return sct(c),c.reduce((f,y)=>f.merge(y),pz.Resource.empty())};$7.detectResources=H$t;var $$t=(l={})=>{var c;let f=((c=l.detectors)!==null&&c!==void 0?c:[]).map(b=>{try{let k=b.detect(l),g;if((0,G$t.isPromiseLike)(k)){let p=async()=>(await k).attributes;g=new pz.Resource({},p())}else g=k;return g.waitForAsyncAttributes?g.waitForAsyncAttributes().then(()=>H7.diag.debug(`${b.constructor.name} found resource.`,g)):H7.diag.debug(`${b.constructor.name} found resource.`,g),g}catch(k){return H7.diag.error(`${b.constructor.name} failed: ${k.message}`),pz.Resource.empty()}}),y=f.reduce((b,k)=>b.merge(k),pz.Resource.empty());return y.waitForAsyncAttributes&&y.waitForAsyncAttributes().then(()=>{sct(f)}),y};$7.detectResourcesSync=$$t;var sct=l=>{l.forEach(c=>{if(Object.keys(c.attributes).length>0){let f=JSON.stringify(c.attributes,null,4);H7.diag.verbose(f)}})}});var APe=xt(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.detectResources=c_.detectResourcesSync=c_.serviceInstanceIdDetectorSync=c_.processDetectorSync=c_.processDetector=c_.osDetectorSync=c_.osDetector=c_.hostDetectorSync=c_.hostDetector=c_.envDetectorSync=c_.envDetector=c_.browserDetectorSync=c_.browserDetector=c_.defaultServiceName=c_.Resource=void 0;var Y$t=cP();Object.defineProperty(c_,"Resource",{enumerable:!0,get:function(){return Y$t.Resource}});var K$t=sPe();Object.defineProperty(c_,"defaultServiceName",{enumerable:!0,get:function(){return K$t.defaultServiceName}});var vx=nct();Object.defineProperty(c_,"browserDetector",{enumerable:!0,get:function(){return vx.browserDetector}});Object.defineProperty(c_,"browserDetectorSync",{enumerable:!0,get:function(){return vx.browserDetectorSync}});Object.defineProperty(c_,"envDetector",{enumerable:!0,get:function(){return vx.envDetector}});Object.defineProperty(c_,"envDetectorSync",{enumerable:!0,get:function(){return vx.envDetectorSync}});Object.defineProperty(c_,"hostDetector",{enumerable:!0,get:function(){return vx.hostDetector}});Object.defineProperty(c_,"hostDetectorSync",{enumerable:!0,get:function(){return vx.hostDetectorSync}});Object.defineProperty(c_,"osDetector",{enumerable:!0,get:function(){return vx.osDetector}});Object.defineProperty(c_,"osDetectorSync",{enumerable:!0,get:function(){return vx.osDetectorSync}});Object.defineProperty(c_,"processDetector",{enumerable:!0,get:function(){return vx.processDetector}});Object.defineProperty(c_,"processDetectorSync",{enumerable:!0,get:function(){return vx.processDetectorSync}});Object.defineProperty(c_,"serviceInstanceIdDetectorSync",{enumerable:!0,get:function(){return vx.serviceInstanceIdDetectorSync}});var act=oct();Object.defineProperty(c_,"detectResourcesSync",{enumerable:!0,get:function(){return act.detectResourcesSync}});Object.defineProperty(c_,"detectResources",{enumerable:!0,get:function(){return act.detectResources}})});var cct=xt(Ise=>{"use strict";Object.defineProperty(Ise,"__esModule",{value:!0});Ise.ViewRegistry=void 0;var kPe=class{constructor(){this._registeredViews=[]}addView(c){this._registeredViews.push(c)}findViews(c,f){return this._registeredViews.filter(b=>this._matchInstrument(b.instrumentSelector,c)&&this._matchMeter(b.meterSelector,f))}_matchInstrument(c,f){return(c.getType()===void 0||f.type===c.getType())&&c.getNameFilter().match(f.name)&&c.getUnitFilter().match(f.unit)}_matchMeter(c,f){return c.getNameFilter().match(f.name)&&(f.version===void 0||c.getVersionFilter().match(f.version))&&(f.schemaUrl===void 0||c.getSchemaUrlFilter().match(f.schemaUrl))}};Ise.ViewRegistry=kPe});var wse=xt(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.isObservableInstrument=Wd.ObservableUpDownCounterInstrument=Wd.ObservableGaugeInstrument=Wd.ObservableCounterInstrument=Wd.ObservableInstrument=Wd.HistogramInstrument=Wd.GaugeInstrument=Wd.CounterInstrument=Wd.UpDownCounterInstrument=Wd.SyncInstrument=void 0;var Y7=(zc(),ol(Xc)),X$t=fy(),L4=class{constructor(c,f){this._writableMetricStorage=c,this._descriptor=f}_record(c,f={},y=Y7.context.active()){if(typeof c!="number"){Y7.diag.warn(`non-number value provided to metric ${this._descriptor.name}: ${c}`);return}this._descriptor.valueType===Y7.ValueType.INT&&!Number.isInteger(c)&&(Y7.diag.warn(`INT value type cannot accept a floating-point value for ${this._descriptor.name}, ignoring the fractional digits.`),c=Math.trunc(c),!Number.isInteger(c))||this._writableMetricStorage.record(c,f,y,(0,X$t.millisToHrTime)(Date.now()))}};Wd.SyncInstrument=L4;var PPe=class extends L4{add(c,f,y){this._record(c,f,y)}};Wd.UpDownCounterInstrument=PPe;var NPe=class extends L4{add(c,f,y){if(c<0){Y7.diag.warn(`negative value provided to counter ${this._descriptor.name}: ${c}`);return}this._record(c,f,y)}};Wd.CounterInstrument=NPe;var DPe=class extends L4{record(c,f,y){this._record(c,f,y)}};Wd.GaugeInstrument=DPe;var IPe=class extends L4{record(c,f,y){if(c<0){Y7.diag.warn(`negative value provided to histogram ${this._descriptor.name}: ${c}`);return}this._record(c,f,y)}};Wd.HistogramInstrument=IPe;var F4=class{constructor(c,f,y){this._observableRegistry=y,this._descriptor=c,this._metricStorages=f}addCallback(c){this._observableRegistry.addCallback(c,this)}removeCallback(c){this._observableRegistry.removeCallback(c,this)}};Wd.ObservableInstrument=F4;var wPe=class extends F4{};Wd.ObservableCounterInstrument=wPe;var OPe=class extends F4{};Wd.ObservableGaugeInstrument=OPe;var RPe=class extends F4{};Wd.ObservableUpDownCounterInstrument=RPe;function Q$t(l){return l instanceof F4}Wd.isObservableInstrument=Q$t});var lct=xt(Ose=>{"use strict";Object.defineProperty(Ose,"__esModule",{value:!0});Ose.Meter=void 0;var b1=aP(),j4=wse(),MPe=class{constructor(c){this._meterSharedState=c}createGauge(c,f){let y=(0,b1.createInstrumentDescriptor)(c,b1.InstrumentType.GAUGE,f),b=this._meterSharedState.registerMetricStorage(y);return new j4.GaugeInstrument(b,y)}createHistogram(c,f){let y=(0,b1.createInstrumentDescriptor)(c,b1.InstrumentType.HISTOGRAM,f),b=this._meterSharedState.registerMetricStorage(y);return new j4.HistogramInstrument(b,y)}createCounter(c,f){let y=(0,b1.createInstrumentDescriptor)(c,b1.InstrumentType.COUNTER,f),b=this._meterSharedState.registerMetricStorage(y);return new j4.CounterInstrument(b,y)}createUpDownCounter(c,f){let y=(0,b1.createInstrumentDescriptor)(c,b1.InstrumentType.UP_DOWN_COUNTER,f),b=this._meterSharedState.registerMetricStorage(y);return new j4.UpDownCounterInstrument(b,y)}createObservableGauge(c,f){let y=(0,b1.createInstrumentDescriptor)(c,b1.InstrumentType.OBSERVABLE_GAUGE,f),b=this._meterSharedState.registerAsyncMetricStorage(y);return new j4.ObservableGaugeInstrument(y,b,this._meterSharedState.observableRegistry)}createObservableCounter(c,f){let y=(0,b1.createInstrumentDescriptor)(c,b1.InstrumentType.OBSERVABLE_COUNTER,f),b=this._meterSharedState.registerAsyncMetricStorage(y);return new j4.ObservableCounterInstrument(y,b,this._meterSharedState.observableRegistry)}createObservableUpDownCounter(c,f){let y=(0,b1.createInstrumentDescriptor)(c,b1.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER,f),b=this._meterSharedState.registerAsyncMetricStorage(y);return new j4.ObservableUpDownCounterInstrument(y,b,this._meterSharedState.observableRegistry)}addBatchObservableCallback(c,f){this._meterSharedState.observableRegistry.addBatchCallback(c,f)}removeBatchObservableCallback(c,f){this._meterSharedState.observableRegistry.removeBatchCallback(c,f)}};Ose.Meter=MPe});var FPe=xt(Rse=>{"use strict";Object.defineProperty(Rse,"__esModule",{value:!0});Rse.MetricStorage=void 0;var Z$t=aP(),LPe=class{constructor(c){this._instrumentDescriptor=c}getInstrumentDescriptor(){return this._instrumentDescriptor}updateDescription(c){this._instrumentDescriptor=(0,Z$t.createInstrumentDescriptor)(this._instrumentDescriptor.name,this._instrumentDescriptor.type,{description:c,valueType:this._instrumentDescriptor.valueType,unit:this._instrumentDescriptor.unit,advice:this._instrumentDescriptor.advice})}};Rse.MetricStorage=LPe});var dz=xt(K7=>{"use strict";Object.defineProperty(K7,"__esModule",{value:!0});K7.AttributeHashMap=K7.HashMap=void 0;var eYt=yC(),Mse=class{constructor(c){this._hash=c,this._valueMap=new Map,this._keyMap=new Map}get(c,f){return f??(f=this._hash(c)),this._valueMap.get(f)}getOrDefault(c,f){let y=this._hash(c);if(this._valueMap.has(y))return this._valueMap.get(y);let b=f();return this._keyMap.has(y)||this._keyMap.set(y,c),this._valueMap.set(y,b),b}set(c,f,y){y??(y=this._hash(c)),this._keyMap.has(y)||this._keyMap.set(y,c),this._valueMap.set(y,f)}has(c,f){return f??(f=this._hash(c)),this._valueMap.has(f)}*keys(){let c=this._keyMap.entries(),f=c.next();for(;f.done!==!0;)yield[f.value[1],f.value[0]],f=c.next()}*entries(){let c=this._valueMap.entries(),f=c.next();for(;f.done!==!0;)yield[this._keyMap.get(f.value[0]),f.value[1],f.value[0]],f=c.next()}get size(){return this._valueMap.size}};K7.HashMap=Mse;var jPe=class extends Mse{constructor(){super(eYt.hashAttributes)}};K7.AttributeHashMap=jPe});var VPe=xt(Lse=>{"use strict";Object.defineProperty(Lse,"__esModule",{value:!0});Lse.DeltaMetricProcessor=void 0;var BPe=dz(),UPe=class{constructor(c){this._aggregator=c,this._activeCollectionStorage=new BPe.AttributeHashMap,this._cumulativeMemoStorage=new BPe.AttributeHashMap}record(c,f,y,b){let k=this._activeCollectionStorage.getOrDefault(f,()=>this._aggregator.createAccumulation(b));k?.record(c)}batchCumulate(c,f){Array.from(c.entries()).forEach(([y,b,k])=>{let g=this._aggregator.createAccumulation(f);g?.record(b);let p=g;if(this._cumulativeMemoStorage.has(y,k)){let A=this._cumulativeMemoStorage.get(y,k);p=this._aggregator.diff(A,g)}if(this._activeCollectionStorage.has(y,k)){let A=this._activeCollectionStorage.get(y,k);p=this._aggregator.merge(A,p)}this._cumulativeMemoStorage.set(y,g,k),this._activeCollectionStorage.set(y,p,k)})}collect(){let c=this._activeCollectionStorage;return this._activeCollectionStorage=new BPe.AttributeHashMap,c}};Lse.DeltaMetricProcessor=UPe});var qPe=xt(Fse=>{"use strict";Object.defineProperty(Fse,"__esModule",{value:!0});Fse.TemporalMetricProcessor=void 0;var tYt=jie(),rYt=dz(),JPe=class l{constructor(c,f){this._aggregator=c,this._unreportedAccumulations=new Map,this._reportHistory=new Map,f.forEach(y=>{this._unreportedAccumulations.set(y,[])})}buildMetrics(c,f,y,b){this._stashAccumulations(y);let k=this._getMergedUnreportedAccumulations(c),g=k,p;if(this._reportHistory.has(c)){let j=this._reportHistory.get(c),se=j.collectionTime;p=j.aggregationTemporality,p===tYt.AggregationTemporality.CUMULATIVE?g=l.merge(j.accumulations,k,this._aggregator):g=l.calibrateStartTime(j.accumulations,k,se)}else p=c.selectAggregationTemporality(f.type);this._reportHistory.set(c,{accumulations:g,collectionTime:b,aggregationTemporality:p});let A=nYt(g);if(A.length!==0)return this._aggregator.toMetricData(f,p,A,b)}_stashAccumulations(c){let f=this._unreportedAccumulations.keys();for(let y of f){let b=this._unreportedAccumulations.get(y);b===void 0&&(b=[],this._unreportedAccumulations.set(y,b)),b.push(c)}}_getMergedUnreportedAccumulations(c){let f=new rYt.AttributeHashMap,y=this._unreportedAccumulations.get(c);if(this._unreportedAccumulations.set(c,[]),y===void 0)return f;for(let b of y)f=l.merge(f,b,this._aggregator);return f}static merge(c,f,y){let b=c,k=f.entries(),g=k.next();for(;g.done!==!0;){let[p,A,j]=g.value;if(c.has(p,j)){let se=c.get(p,j),We=y.merge(se,A);b.set(p,We,j)}else b.set(p,A,j);g=k.next()}return b}static calibrateStartTime(c,f,y){for(let[b,k]of c.keys()){let g=f.get(b,k);g?.setStartTime(y)}return f}};Fse.TemporalMetricProcessor=JPe;function nYt(l){return Array.from(l.entries())}});var uct=xt(jse=>{"use strict";Object.defineProperty(jse,"__esModule",{value:!0});jse.AsyncMetricStorage=void 0;var iYt=FPe(),sYt=VPe(),oYt=qPe(),aYt=dz(),zPe=class extends iYt.MetricStorage{constructor(c,f,y,b){super(c),this._attributesProcessor=y,this._deltaMetricStorage=new sYt.DeltaMetricProcessor(f),this._temporalMetricStorage=new oYt.TemporalMetricProcessor(f,b)}record(c,f){let y=new aYt.AttributeHashMap;Array.from(c.entries()).forEach(([b,k])=>{y.set(this._attributesProcessor.process(b),k)}),this._deltaMetricStorage.batchCumulate(y,f)}collect(c,f){let y=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(c,this._instrumentDescriptor,y,f)}};jse.AsyncMetricStorage=zPe});var mct=xt(E1=>{"use strict";Object.defineProperty(E1,"__esModule",{value:!0});E1.getConflictResolutionRecipe=E1.getDescriptionResolutionRecipe=E1.getTypeConflictResolutionRecipe=E1.getUnitConflictResolutionRecipe=E1.getValueTypeConflictResolutionRecipe=E1.getIncompatibilityDetails=void 0;function cYt(l,c){let f="";return l.unit!==c.unit&&(f+=`	- Unit '${l.unit}' does not match '${c.unit}'
`),l.type!==c.type&&(f+=`	- Type '${l.type}' does not match '${c.type}'
`),l.valueType!==c.valueType&&(f+=`	- Value Type '${l.valueType}' does not match '${c.valueType}'
`),l.description!==c.description&&(f+=`	- Description '${l.description}' does not match '${c.description}'
`),f}E1.getIncompatibilityDetails=cYt;function _ct(l,c){return`	- use valueType '${l.valueType}' on instrument creation or use an instrument name other than '${c.name}'`}E1.getValueTypeConflictResolutionRecipe=_ct;function fct(l,c){return`	- use unit '${l.unit}' on instrument creation or use an instrument name other than '${c.name}'`}E1.getUnitConflictResolutionRecipe=fct;function pct(l,c){let f={name:c.name,type:c.type,unit:c.unit},y=JSON.stringify(f);return`	- create a new view with a name other than '${l.name}' and InstrumentSelector '${y}'`}E1.getTypeConflictResolutionRecipe=pct;function dct(l,c){let f={name:c.name,type:c.type,unit:c.unit},y=JSON.stringify(f);return`	- create a new view with a name other than '${l.name}' and InstrumentSelector '${y}'
    	- OR - create a new view with the name ${l.name} and description '${l.description}' and InstrumentSelector ${y}
    	- OR - create a new view with the name ${c.name} and description '${l.description}' and InstrumentSelector ${y}`}E1.getDescriptionResolutionRecipe=dct;function lYt(l,c){return l.valueType!==c.valueType?_ct(l,c):l.unit!==c.unit?fct(l,c):l.type!==c.type?pct(l,c):l.description!==c.description?dct(l,c):""}E1.getConflictResolutionRecipe=lYt});var hct=xt(Use=>{"use strict";Object.defineProperty(Use,"__esModule",{value:!0});Use.MetricStorageRegistry=void 0;var uYt=aP(),gct=(zc(),ol(Xc)),Bse=mct(),WPe=class l{constructor(){this._sharedRegistry=new Map,this._perCollectorRegistry=new Map}static create(){return new l}getStorages(c){let f=[];for(let b of this._sharedRegistry.values())f=f.concat(b);let y=this._perCollectorRegistry.get(c);if(y!=null)for(let b of y.values())f=f.concat(b);return f}register(c){this._registerStorage(c,this._sharedRegistry)}registerForCollector(c,f){let y=this._perCollectorRegistry.get(c);y==null&&(y=new Map,this._perCollectorRegistry.set(c,y)),this._registerStorage(f,y)}findOrUpdateCompatibleStorage(c){let f=this._sharedRegistry.get(c.name);return f===void 0?null:this._findOrUpdateCompatibleStorage(c,f)}findOrUpdateCompatibleCollectorStorage(c,f){let y=this._perCollectorRegistry.get(c);if(y===void 0)return null;let b=y.get(f.name);return b===void 0?null:this._findOrUpdateCompatibleStorage(f,b)}_registerStorage(c,f){let y=c.getInstrumentDescriptor(),b=f.get(y.name);if(b===void 0){f.set(y.name,[c]);return}b.push(c)}_findOrUpdateCompatibleStorage(c,f){let y=null;for(let b of f){let k=b.getInstrumentDescriptor();(0,uYt.isDescriptorCompatibleWith)(k,c)?(k.description!==c.description&&(c.description.length>k.description.length&&b.updateDescription(c.description),gct.diag.warn("A view or instrument with the name ",c.name,` has already been registered, but has a different description and is incompatible with another registered view.
`,`Details:
`,(0,Bse.getIncompatibilityDetails)(k,c),`The longer description will be used.
To resolve the conflict:`,(0,Bse.getConflictResolutionRecipe)(k,c))),y=b):gct.diag.warn("A view or instrument with the name ",c.name,` has already been registered and is incompatible with another registered view.
`,`Details:
`,(0,Bse.getIncompatibilityDetails)(k,c),`To resolve the conflict:
`,(0,Bse.getConflictResolutionRecipe)(k,c))}return y}};Use.MetricStorageRegistry=WPe});var yct=xt(Vse=>{"use strict";Object.defineProperty(Vse,"__esModule",{value:!0});Vse.MultiMetricStorage=void 0;var GPe=class{constructor(c){this._backingStorages=c}record(c,f,y,b){this._backingStorages.forEach(k=>{k.record(c,f,y,b)})}};Vse.MultiMetricStorage=GPe});var Sct=xt(Q7=>{"use strict";Object.defineProperty(Q7,"__esModule",{value:!0});Q7.BatchObservableResultImpl=Q7.ObservableResultImpl=void 0;var X7=(zc(),ol(Xc)),vct=dz(),_Yt=wse(),HPe=class{constructor(c,f){this._instrumentName=c,this._valueType=f,this._buffer=new vct.AttributeHashMap}observe(c,f={}){if(typeof c!="number"){X7.diag.warn(`non-number value provided to metric ${this._instrumentName}: ${c}`);return}this._valueType===X7.ValueType.INT&&!Number.isInteger(c)&&(X7.diag.warn(`INT value type cannot accept a floating-point value for ${this._instrumentName}, ignoring the fractional digits.`),c=Math.trunc(c),!Number.isInteger(c))||this._buffer.set(f,c)}};Q7.ObservableResultImpl=HPe;var $Pe=class{constructor(){this._buffer=new Map}observe(c,f,y={}){if(!(0,_Yt.isObservableInstrument)(c))return;let b=this._buffer.get(c);if(b==null&&(b=new vct.AttributeHashMap,this._buffer.set(c,b)),typeof f!="number"){X7.diag.warn(`non-number value provided to metric ${c._descriptor.name}: ${f}`);return}c._descriptor.valueType===X7.ValueType.INT&&!Number.isInteger(f)&&(X7.diag.warn(`INT value type cannot accept a floating-point value for ${c._descriptor.name}, ignoring the fractional digits.`),f=Math.trunc(f),!Number.isInteger(f))||b.set(y,f)}};Q7.BatchObservableResultImpl=$Pe});var Ect=xt(Jse=>{"use strict";Object.defineProperty(Jse,"__esModule",{value:!0});Jse.ObservableRegistry=void 0;var fYt=(zc(),ol(Xc)),Tct=wse(),bct=Sct(),mz=yC(),YPe=class{constructor(){this._callbacks=[],this._batchCallbacks=[]}addCallback(c,f){this._findCallback(c,f)>=0||this._callbacks.push({callback:c,instrument:f})}removeCallback(c,f){let y=this._findCallback(c,f);y<0||this._callbacks.splice(y,1)}addBatchCallback(c,f){let y=new Set(f.filter(Tct.isObservableInstrument));if(y.size===0){fYt.diag.error("BatchObservableCallback is not associated with valid instruments",f);return}this._findBatchCallback(c,y)>=0||this._batchCallbacks.push({callback:c,instruments:y})}removeBatchCallback(c,f){let y=new Set(f.filter(Tct.isObservableInstrument)),b=this._findBatchCallback(c,y);b<0||this._batchCallbacks.splice(b,1)}async observe(c,f){let y=this._observeCallbacks(c,f),b=this._observeBatchCallbacks(c,f);return(await(0,mz.PromiseAllSettled)([...y,...b])).filter(mz.isPromiseAllSettledRejectionResult).map(p=>p.reason)}_observeCallbacks(c,f){return this._callbacks.map(async({callback:y,instrument:b})=>{let k=new bct.ObservableResultImpl(b._descriptor.name,b._descriptor.valueType),g=Promise.resolve(y(k));f!=null&&(g=(0,mz.callWithTimeout)(g,f)),await g,b._metricStorages.forEach(p=>{p.record(k._buffer,c)})})}_observeBatchCallbacks(c,f){return this._batchCallbacks.map(async({callback:y,instruments:b})=>{let k=new bct.BatchObservableResultImpl,g=Promise.resolve(y(k));f!=null&&(g=(0,mz.callWithTimeout)(g,f)),await g,b.forEach(p=>{let A=k._buffer.get(p);A!=null&&p._metricStorages.forEach(j=>{j.record(A,c)})})})}_findCallback(c,f){return this._callbacks.findIndex(y=>y.callback===c&&y.instrument===f)}_findBatchCallback(c,f){return this._batchCallbacks.findIndex(y=>y.callback===c&&(0,mz.setEquals)(y.instruments,f))}};Jse.ObservableRegistry=YPe});var xct=xt(qse=>{"use strict";Object.defineProperty(qse,"__esModule",{value:!0});qse.SyncMetricStorage=void 0;var pYt=FPe(),dYt=VPe(),mYt=qPe(),KPe=class extends pYt.MetricStorage{constructor(c,f,y,b){super(c),this._attributesProcessor=y,this._deltaMetricStorage=new dYt.DeltaMetricProcessor(f),this._temporalMetricStorage=new mYt.TemporalMetricProcessor(f,b)}record(c,f,y,b){f=this._attributesProcessor.process(f,y),this._deltaMetricStorage.record(c,f,y,b)}collect(c,f){let y=this._deltaMetricStorage.collect();return this._temporalMetricStorage.buildMetrics(c,this._instrumentDescriptor,y,f)}};qse.SyncMetricStorage=KPe});var QPe=xt(gI=>{"use strict";Object.defineProperty(gI,"__esModule",{value:!0});gI.FilteringAttributesProcessor=gI.NoopAttributesProcessor=gI.AttributesProcessor=void 0;var gz=class{static Noop(){return gYt}};gI.AttributesProcessor=gz;var zse=class extends gz{process(c,f){return c}};gI.NoopAttributesProcessor=zse;var XPe=class extends gz{constructor(c){super(),this._allowedAttributeNames=c}process(c,f){let y={};return Object.keys(c).filter(b=>this._allowedAttributeNames.includes(b)).forEach(b=>y[b]=c[b]),y}};gI.FilteringAttributesProcessor=XPe;var gYt=new zse});var Cct=xt(Wse=>{"use strict";Object.defineProperty(Wse,"__esModule",{value:!0});Wse.MeterSharedState=void 0;var hYt=aP(),yYt=lct(),vYt=yC(),SYt=uct(),TYt=hct(),bYt=yct(),EYt=Ect(),xYt=xct(),CYt=QPe(),ZPe=class{constructor(c,f){this._meterProviderSharedState=c,this._instrumentationScope=f,this.metricStorageRegistry=new TYt.MetricStorageRegistry,this.observableRegistry=new EYt.ObservableRegistry,this.meter=new yYt.Meter(this)}registerMetricStorage(c){let f=this._registerMetricStorage(c,xYt.SyncMetricStorage);return f.length===1?f[0]:new bYt.MultiMetricStorage(f)}registerAsyncMetricStorage(c){return this._registerMetricStorage(c,SYt.AsyncMetricStorage)}async collect(c,f,y){let b=await this.observableRegistry.observe(f,y?.timeoutMillis),k=this.metricStorageRegistry.getStorages(c);if(k.length===0)return null;let g=k.map(p=>p.collect(c,f)).filter(vYt.isNotNullish);return g.length===0?{errors:b}:{scopeMetrics:{scope:this._instrumentationScope,metrics:g},errors:b}}_registerMetricStorage(c,f){let b=this._meterProviderSharedState.viewRegistry.findViews(c,this._instrumentationScope).map(k=>{let g=(0,hYt.createInstrumentDescriptorWithView)(k,c),p=this.metricStorageRegistry.findOrUpdateCompatibleStorage(g);if(p!=null)return p;let A=k.aggregation.createAggregator(g),j=new f(g,A,k.attributesProcessor,this._meterProviderSharedState.metricCollectors);return this.metricStorageRegistry.register(j),j});if(b.length===0){let g=this._meterProviderSharedState.selectAggregations(c.type).map(([p,A])=>{let j=this.metricStorageRegistry.findOrUpdateCompatibleCollectorStorage(p,c);if(j!=null)return j;let se=A.createAggregator(c),We=new f(c,se,CYt.AttributesProcessor.Noop(),[p]);return this.metricStorageRegistry.registerForCollector(p,We),We});b=b.concat(g)}return b}};Wse.MeterSharedState=ZPe});var Act=xt(Gse=>{"use strict";Object.defineProperty(Gse,"__esModule",{value:!0});Gse.MeterProviderSharedState=void 0;var AYt=yC(),kYt=cct(),PYt=Cct(),eNe=class{constructor(c){this.resource=c,this.viewRegistry=new kYt.ViewRegistry,this.metricCollectors=[],this.meterSharedStates=new Map}getMeterSharedState(c){let f=(0,AYt.instrumentationScopeId)(c),y=this.meterSharedStates.get(f);return y==null&&(y=new PYt.MeterSharedState(this,c),this.meterSharedStates.set(f,y)),y}selectAggregations(c){let f=[];for(let y of this.metricCollectors)f.push([y,y.selectAggregation(c)]);return f}};Gse.MeterProviderSharedState=eNe});var kct=xt(Hse=>{"use strict";Object.defineProperty(Hse,"__esModule",{value:!0});Hse.MetricCollector=void 0;var NYt=fy(),tNe=class{constructor(c,f){this._sharedState=c,this._metricReader=f}async collect(c){let f=(0,NYt.millisToHrTime)(Date.now()),y=[],b=[],k=Array.from(this._sharedState.meterSharedStates.values()).map(async g=>{let p=await g.collect(this,f,c);p?.scopeMetrics!=null&&y.push(p.scopeMetrics),p?.errors!=null&&b.push(...p.errors)});return await Promise.all(k),{resourceMetrics:{resource:this._sharedState.resource,scopeMetrics:y},errors:b}}async forceFlush(c){await this._metricReader.forceFlush(c)}async shutdown(c){await this._metricReader.shutdown(c)}selectAggregationTemporality(c){return this._metricReader.selectAggregationTemporality(c)}selectAggregation(c){return this._metricReader.selectAggregation(c)}};Hse.MetricCollector=tNe});var Nct=xt(Yse=>{"use strict";Object.defineProperty(Yse,"__esModule",{value:!0});Yse.MeterProvider=void 0;var $se=(zc(),ol(Xc)),Pct=APe(),DYt=Act(),IYt=kct(),rNe=class{constructor(c){var f;this._shutdown=!1;let y=Pct.Resource.default().merge((f=c?.resource)!==null&&f!==void 0?f:Pct.Resource.empty());if(this._sharedState=new DYt.MeterProviderSharedState(y),c?.views!=null&&c.views.length>0)for(let b of c.views)this._sharedState.viewRegistry.addView(b);if(c?.readers!=null&&c.readers.length>0)for(let b of c.readers)this.addMetricReader(b)}getMeter(c,f="",y={}){return this._shutdown?($se.diag.warn("A shutdown MeterProvider cannot provide a Meter"),(0,$se.createNoopMeter)()):this._sharedState.getMeterSharedState({name:c,version:f,schemaUrl:y.schemaUrl}).meter}addMetricReader(c){let f=new IYt.MetricCollector(this._sharedState,c);c.setMetricProducer(f),this._sharedState.metricCollectors.push(f)}async shutdown(c){if(this._shutdown){$se.diag.warn("shutdown may only be called once per MeterProvider");return}this._shutdown=!0,await Promise.all(this._sharedState.metricCollectors.map(f=>f.shutdown(c)))}async forceFlush(c){if(this._shutdown){$se.diag.warn("invalid attempt to force flush after MeterProvider shutdown");return}await Promise.all(this._sharedState.metricCollectors.map(f=>f.forceFlush(c)))}};Yse.MeterProvider=rNe});var Kse=xt(Z7=>{"use strict";Object.defineProperty(Z7,"__esModule",{value:!0});Z7.ExactPredicate=Z7.PatternPredicate=void 0;var wYt=/[\^$\\.+?()[\]{}|]/g,nNe=class l{constructor(c){c==="*"?(this._matchAll=!0,this._regexp=/.*/):(this._matchAll=!1,this._regexp=new RegExp(l.escapePattern(c)))}match(c){return this._matchAll?!0:this._regexp.test(c)}static escapePattern(c){return`^${c.replace(wYt,"\\$&").replace("*",".*")}$`}static hasWildcard(c){return c.includes("*")}};Z7.PatternPredicate=nNe;var iNe=class{constructor(c){this._matchAll=c===void 0,this._pattern=c}match(c){return!!(this._matchAll||c===this._pattern)}};Z7.ExactPredicate=iNe});var Ict=xt(Xse=>{"use strict";Object.defineProperty(Xse,"__esModule",{value:!0});Xse.InstrumentSelector=void 0;var Dct=Kse(),sNe=class{constructor(c){var f;this._nameFilter=new Dct.PatternPredicate((f=c?.name)!==null&&f!==void 0?f:"*"),this._type=c?.type,this._unitFilter=new Dct.ExactPredicate(c?.unit)}getType(){return this._type}getNameFilter(){return this._nameFilter}getUnitFilter(){return this._unitFilter}};Xse.InstrumentSelector=sNe});var wct=xt(Qse=>{"use strict";Object.defineProperty(Qse,"__esModule",{value:!0});Qse.MeterSelector=void 0;var oNe=Kse(),aNe=class{constructor(c){this._nameFilter=new oNe.ExactPredicate(c?.name),this._versionFilter=new oNe.ExactPredicate(c?.version),this._schemaUrlFilter=new oNe.ExactPredicate(c?.schemaUrl)}getNameFilter(){return this._nameFilter}getVersionFilter(){return this._versionFilter}getSchemaUrlFilter(){return this._schemaUrlFilter}};Qse.MeterSelector=aNe});var Rct=xt(Zse=>{"use strict";Object.defineProperty(Zse,"__esModule",{value:!0});Zse.View=void 0;var OYt=Kse(),Oct=QPe(),RYt=Ict(),MYt=wct(),LYt=ese();function FYt(l){return l.instrumentName==null&&l.instrumentType==null&&l.instrumentUnit==null&&l.meterName==null&&l.meterVersion==null&&l.meterSchemaUrl==null}var cNe=class{constructor(c){var f;if(FYt(c))throw new Error("Cannot create view with no selector arguments supplied");if(c.name!=null&&(c?.instrumentName==null||OYt.PatternPredicate.hasWildcard(c.instrumentName)))throw new Error("Views with a specified name must be declared with an instrument selector that selects at most one instrument per meter.");c.attributeKeys!=null?this.attributesProcessor=new Oct.FilteringAttributesProcessor(c.attributeKeys):this.attributesProcessor=Oct.AttributesProcessor.Noop(),this.name=c.name,this.description=c.description,this.aggregation=(f=c.aggregation)!==null&&f!==void 0?f:LYt.Aggregation.Default(),this.instrumentSelector=new RYt.InstrumentSelector({name:c.instrumentName,type:c.instrumentType,unit:c.instrumentUnit}),this.meterSelector=new MYt.MeterSelector({name:c.meterName,version:c.meterVersion,schemaUrl:c.meterSchemaUrl})}};Zse.View=cNe});var eF=xt(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.TimeoutError=Yl.View=Yl.Aggregation=Yl.SumAggregation=Yl.LastValueAggregation=Yl.HistogramAggregation=Yl.DropAggregation=Yl.ExponentialHistogramAggregation=Yl.ExplicitBucketHistogramAggregation=Yl.DefaultAggregation=Yl.MeterProvider=Yl.InstrumentType=Yl.ConsoleMetricExporter=Yl.InMemoryMetricExporter=Yl.PeriodicExportingMetricReader=Yl.MetricReader=Yl.DataPointType=Yl.AggregationTemporality=void 0;var jYt=jie();Object.defineProperty(Yl,"AggregationTemporality",{enumerable:!0,get:function(){return jYt.AggregationTemporality}});var BYt=I7();Object.defineProperty(Yl,"DataPointType",{enumerable:!0,get:function(){return BYt.DataPointType}});var UYt=tPe();Object.defineProperty(Yl,"MetricReader",{enumerable:!0,get:function(){return UYt.MetricReader}});var VYt=Dat();Object.defineProperty(Yl,"PeriodicExportingMetricReader",{enumerable:!0,get:function(){return VYt.PeriodicExportingMetricReader}});var JYt=wat();Object.defineProperty(Yl,"InMemoryMetricExporter",{enumerable:!0,get:function(){return JYt.InMemoryMetricExporter}});var qYt=Rat();Object.defineProperty(Yl,"ConsoleMetricExporter",{enumerable:!0,get:function(){return qYt.ConsoleMetricExporter}});var zYt=aP();Object.defineProperty(Yl,"InstrumentType",{enumerable:!0,get:function(){return zYt.InstrumentType}});var WYt=Nct();Object.defineProperty(Yl,"MeterProvider",{enumerable:!0,get:function(){return WYt.MeterProvider}});var hI=ese();Object.defineProperty(Yl,"DefaultAggregation",{enumerable:!0,get:function(){return hI.DefaultAggregation}});Object.defineProperty(Yl,"ExplicitBucketHistogramAggregation",{enumerable:!0,get:function(){return hI.ExplicitBucketHistogramAggregation}});Object.defineProperty(Yl,"ExponentialHistogramAggregation",{enumerable:!0,get:function(){return hI.ExponentialHistogramAggregation}});Object.defineProperty(Yl,"DropAggregation",{enumerable:!0,get:function(){return hI.DropAggregation}});Object.defineProperty(Yl,"HistogramAggregation",{enumerable:!0,get:function(){return hI.HistogramAggregation}});Object.defineProperty(Yl,"LastValueAggregation",{enumerable:!0,get:function(){return hI.LastValueAggregation}});Object.defineProperty(Yl,"SumAggregation",{enumerable:!0,get:function(){return hI.SumAggregation}});Object.defineProperty(Yl,"Aggregation",{enumerable:!0,get:function(){return hI.Aggregation}});var GYt=Rct();Object.defineProperty(Yl,"View",{enumerable:!0,get:function(){return GYt.View}});var HYt=yC();Object.defineProperty(Yl,"TimeoutError",{enumerable:!0,get:function(){return HYt.TimeoutError}})});var lNe=xt(hz=>{"use strict";Object.defineProperty(hz,"__esModule",{value:!0});hz.AggregationTemporalityPreference=void 0;var $Yt;(function(l){l[l.DELTA=0]="DELTA",l[l.CUMULATIVE=1]="CUMULATIVE",l[l.LOWMEMORY=2]="LOWMEMORY"})($Yt=hz.AggregationTemporalityPreference||(hz.AggregationTemporalityPreference={}))});var _Ne=xt(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.OTLPMetricExporterBase=py.LowMemoryTemporalitySelector=py.DeltaTemporalitySelector=py.CumulativeTemporalitySelector=void 0;var YYt=fy(),Wm=eF(),Mct=lNe(),KYt=(zc(),ol(Xc)),XYt=()=>Wm.AggregationTemporality.CUMULATIVE;py.CumulativeTemporalitySelector=XYt;var QYt=l=>{switch(l){case Wm.InstrumentType.COUNTER:case Wm.InstrumentType.OBSERVABLE_COUNTER:case Wm.InstrumentType.GAUGE:case Wm.InstrumentType.HISTOGRAM:case Wm.InstrumentType.OBSERVABLE_GAUGE:return Wm.AggregationTemporality.DELTA;case Wm.InstrumentType.UP_DOWN_COUNTER:case Wm.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:return Wm.AggregationTemporality.CUMULATIVE}};py.DeltaTemporalitySelector=QYt;var ZYt=l=>{switch(l){case Wm.InstrumentType.COUNTER:case Wm.InstrumentType.HISTOGRAM:return Wm.AggregationTemporality.DELTA;case Wm.InstrumentType.GAUGE:case Wm.InstrumentType.UP_DOWN_COUNTER:case Wm.InstrumentType.OBSERVABLE_UP_DOWN_COUNTER:case Wm.InstrumentType.OBSERVABLE_COUNTER:case Wm.InstrumentType.OBSERVABLE_GAUGE:return Wm.AggregationTemporality.CUMULATIVE}};py.LowMemoryTemporalitySelector=ZYt;function eKt(){let l=(0,YYt.getEnv)(),c=l.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE.trim().toLowerCase();return c==="cumulative"?py.CumulativeTemporalitySelector:c==="delta"?py.DeltaTemporalitySelector:c==="lowmemory"?py.LowMemoryTemporalitySelector:(KYt.diag.warn(`OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE is set to '${l.OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE}', but only 'cumulative' and 'delta' are allowed. Using default ('cumulative') instead.`),py.CumulativeTemporalitySelector)}function tKt(l){return l!=null?l===Mct.AggregationTemporalityPreference.DELTA?py.DeltaTemporalitySelector:l===Mct.AggregationTemporalityPreference.LOWMEMORY?py.LowMemoryTemporalitySelector:py.CumulativeTemporalitySelector:eKt()}function rKt(l){return l?.aggregationPreference?l.aggregationPreference:c=>Wm.Aggregation.Default()}var uNe=class{constructor(c,f){this._otlpExporter=c,this._aggregationSelector=rKt(f),this._aggregationTemporalitySelector=tKt(f?.temporalityPreference)}export(c,f){this._otlpExporter.export([c],f)}async shutdown(){await this._otlpExporter.shutdown()}forceFlush(){return Promise.resolve()}selectAggregation(c){return this._aggregationSelector(c)}selectAggregationTemporality(c){return this._aggregationTemporalitySelector(c)}};py.OTLPMetricExporterBase=uNe});var B4=xt(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.parseRetryAfterToMills=Up.isExportRetryable=Up.invalidTimeout=Up.configureExporterTimeout=Up.appendRootPathToUrlIfNeeded=Up.appendResourcePathToUrl=Up.parseHeaders=Up.DEFAULT_EXPORT_BACKOFF_MULTIPLIER=Up.DEFAULT_EXPORT_MAX_BACKOFF=Up.DEFAULT_EXPORT_INITIAL_BACKOFF=Up.DEFAULT_EXPORT_MAX_ATTEMPTS=void 0;var fNe=(zc(),ol(Xc)),Lct=fy(),Fct=1e4;Up.DEFAULT_EXPORT_MAX_ATTEMPTS=5;Up.DEFAULT_EXPORT_INITIAL_BACKOFF=1e3;Up.DEFAULT_EXPORT_MAX_BACKOFF=5e3;Up.DEFAULT_EXPORT_BACKOFF_MULTIPLIER=1.5;function nKt(l={}){let c={};return Object.entries(l).forEach(([f,y])=>{typeof y<"u"?c[f]=String(y):fNe.diag.warn(`Header "${f}" has invalid value (${y}) and will be ignored`)}),c}Up.parseHeaders=nKt;function iKt(l,c){return l.endsWith("/")||(l=l+"/"),l+c}Up.appendResourcePathToUrl=iKt;function sKt(l){try{let c=new URL(l);return c.pathname===""&&(c.pathname=c.pathname+"/"),c.toString()}catch{return fNe.diag.warn(`Could not parse export URL: '${l}'`),l}}Up.appendRootPathToUrlIfNeeded=sKt;function oKt(l){return typeof l=="number"?l<=0?pNe(l,Fct):l:aKt()}Up.configureExporterTimeout=oKt;function aKt(){var l;let c=Number((l=(0,Lct.getEnv)().OTEL_EXPORTER_OTLP_TRACES_TIMEOUT)!==null&&l!==void 0?l:(0,Lct.getEnv)().OTEL_EXPORTER_OTLP_TIMEOUT);return c<=0?pNe(c,Fct):c}function pNe(l,c){return fNe.diag.warn("Timeout must be greater than 0",l),c}Up.invalidTimeout=pNe;function cKt(l){return[429,502,503,504].includes(l)}Up.isExportRetryable=cKt;function lKt(l){if(l==null)return-1;let c=Number.parseInt(l,10);if(Number.isInteger(c))return c>0?c*1e3:-1;let f=new Date(l).getTime()-Date.now();return f>=0?f:0}Up.parseRetryAfterToMills=lKt});var toe=xt(eoe=>{"use strict";Object.defineProperty(eoe,"__esModule",{value:!0});eoe.OTLPExporterBase=void 0;var jct=(zc(),ol(Xc)),yz=fy(),uKt=B4(),dNe=class{constructor(c={}){this._sendingPromises=[],this.url=this.getDefaultUrl(c),typeof c.hostname=="string"&&(this.hostname=c.hostname),this.shutdown=this.shutdown.bind(this),this._shutdownOnce=new yz.BindOnceFuture(this._shutdown,this),this._concurrencyLimit=typeof c.concurrencyLimit=="number"?c.concurrencyLimit:30,this.timeoutMillis=(0,uKt.configureExporterTimeout)(c.timeoutMillis),this.onInit(c)}export(c,f){if(this._shutdownOnce.isCalled){f({code:yz.ExportResultCode.FAILED,error:new Error("Exporter has been shutdown")});return}if(this._sendingPromises.length>=this._concurrencyLimit){f({code:yz.ExportResultCode.FAILED,error:new Error("Concurrent export limit reached")});return}this._export(c).then(()=>{f({code:yz.ExportResultCode.SUCCESS})}).catch(y=>{f({code:yz.ExportResultCode.FAILED,error:y})})}_export(c){return new Promise((f,y)=>{try{jct.diag.debug("items to be sent",c),this.send(c,f,y)}catch(b){y(b)}})}shutdown(){return this._shutdownOnce.call()}forceFlush(){return Promise.all(this._sendingPromises).then(()=>{})}_shutdown(){return jct.diag.debug("shutdown started"),this.onShutdown(),this.forceFlush()}};eoe.OTLPExporterBase=dNe});var mNe=xt(vz=>{"use strict";Object.defineProperty(vz,"__esModule",{value:!0});vz.CompressionAlgorithm=void 0;var _Kt;(function(l){l.NONE="none",l.GZIP="gzip"})(_Kt=vz.CompressionAlgorithm||(vz.CompressionAlgorithm={}))});var noe=xt(roe=>{"use strict";Object.defineProperty(roe,"__esModule",{value:!0});roe.OTLPExporterError=void 0;var gNe=class extends Error{constructor(c,f,y){super(c),this.name="OTLPExporterError",this.data=y,this.code=f}};roe.OTLPExporterError=gNe});var yNe=xt(yI=>{"use strict";Object.defineProperty(yI,"__esModule",{value:!0});yI.configureCompression=yI.createHttpAgent=yI.sendWithHttp=void 0;var Uct=Ru("url"),Vct=Ru("http"),Jct=Ru("https"),fKt=Ru("zlib"),pKt=Ru("stream"),hNe=(zc(),ol(Xc)),ioe=mNe(),Bct=fy(),Sz=noe(),tF=B4();function dKt(l,c,f,y,b){let k=l.timeoutMillis,g=new Uct.URL(l.url),p=Number(process.versions.node.split(".")[0]),A,j,se=!1,We=setTimeout(()=>{if(clearTimeout(A),se=!0,j.destroyed){let kt=new Sz.OTLPExporterError("Request Timeout");b(kt)}else p>=14?j.destroy():j.abort()},k),ve={hostname:g.hostname,port:g.port,path:g.pathname,method:"POST",headers:Object.assign({"Content-Type":f},l.headers),agent:l.agent},lr=g.protocol==="http:"?Vct.request:Jct.request,Rr=(kt=tF.DEFAULT_EXPORT_MAX_ATTEMPTS,Et=tF.DEFAULT_EXPORT_INITIAL_BACKOFF)=>{switch(j=lr(ve,pi=>{let di="";pi.on("data",ra=>di+=ra),pi.on("aborted",()=>{if(se){let ra=new Sz.OTLPExporterError("Request Timeout");b(ra)}}),pi.on("end",()=>{if(se===!1)if(pi.statusCode&&pi.statusCode<299)hNe.diag.debug(`statusCode: ${pi.statusCode}`,di),y(),clearTimeout(We),clearTimeout(A);else if(pi.statusCode&&(0,tF.isExportRetryable)(pi.statusCode)&&kt>0){let ra;Et=tF.DEFAULT_EXPORT_BACKOFF_MULTIPLIER*Et,pi.headers["retry-after"]?ra=(0,tF.parseRetryAfterToMills)(pi.headers["retry-after"]):ra=Math.round(Math.random()*(tF.DEFAULT_EXPORT_MAX_BACKOFF-Et)+Et),A=setTimeout(()=>{Rr(kt-1,Et)},ra)}else{let ra=new Sz.OTLPExporterError(pi.statusMessage,pi.statusCode,di);b(ra),clearTimeout(We),clearTimeout(A)}})}),j.on("error",pi=>{if(se){let di=new Sz.OTLPExporterError("Request Timeout",pi.code);b(di)}else b(pi);clearTimeout(We),clearTimeout(A)}),j.on("abort",()=>{if(se){let pi=new Sz.OTLPExporterError("Request Timeout");b(pi)}clearTimeout(We),clearTimeout(A)}),l.compression){case ioe.CompressionAlgorithm.GZIP:{j.setHeader("Content-Encoding","gzip"),mKt(c).on("error",b).pipe(fKt.createGzip()).on("error",b).pipe(j);break}default:j.end(Buffer.from(c));break}};Rr()}yI.sendWithHttp=dKt;function mKt(l){let c=new pKt.Readable;return c.push(l),c.push(null),c}function gKt(l){if(l.httpAgentOptions&&l.keepAlive===!1){hNe.diag.warn("httpAgentOptions is used only when keepAlive is true");return}if(!(l.keepAlive===!1||!l.url))try{let f=new Uct.URL(l.url).protocol==="http:"?Vct.Agent:Jct.Agent;return new f(Object.assign({keepAlive:!0},l.httpAgentOptions))}catch(c){hNe.diag.error(`collector exporter failed to create http agent. err: ${c.message}`);return}}yI.createHttpAgent=gKt;function hKt(l){return l||(((0,Bct.getEnv)().OTEL_EXPORTER_OTLP_TRACES_COMPRESSION||(0,Bct.getEnv)().OTEL_EXPORTER_OTLP_COMPRESSION)===ioe.CompressionAlgorithm.GZIP?ioe.CompressionAlgorithm.GZIP:ioe.CompressionAlgorithm.NONE)}yI.configureCompression=hKt});var Wct=xt(soe=>{"use strict";Object.defineProperty(soe,"__esModule",{value:!0});soe.OTLPExporterNodeBase=void 0;var yKt=toe(),vKt=B4(),vNe=yNe(),qct=(zc(),ol(Xc)),zct=fy(),SNe=class extends yKt.OTLPExporterBase{constructor(c={},f,y){super(c),this.DEFAULT_HEADERS={},this._contentType=y,c.metadata&&qct.diag.warn("Metadata cannot be set when using http"),this.headers=Object.assign(this.DEFAULT_HEADERS,(0,vKt.parseHeaders)(c.headers),zct.baggageUtils.parseKeyPairsIntoRecord((0,zct.getEnv)().OTEL_EXPORTER_OTLP_HEADERS)),this.agent=(0,vNe.createHttpAgent)(c),this.compression=(0,vNe.configureCompression)(c.compression),this._serializer=f}onInit(c){}send(c,f,y){if(this._shutdownOnce.isCalled){qct.diag.debug("Shutdown already started. Cannot send objects");return}let b=new Promise((g,p)=>{var A;(0,vNe.sendWithHttp)(this,(A=this._serializer.serializeRequest(c))!==null&&A!==void 0?A:new Uint8Array,this._contentType,g,p)}).then(f,y);this._sendingPromises.push(b);let k=()=>{let g=this._sendingPromises.indexOf(b);this._sendingPromises.splice(g,1)};b.then(k,k)}onShutdown(){}};soe.OTLPExporterNodeBase=SNe});var Gct=xt(Pb=>{"use strict";Object.defineProperty(Pb,"__esModule",{value:!0});Pb.CompressionAlgorithm=Pb.configureCompression=Pb.createHttpAgent=Pb.sendWithHttp=Pb.OTLPExporterNodeBase=void 0;var SKt=Wct();Object.defineProperty(Pb,"OTLPExporterNodeBase",{enumerable:!0,get:function(){return SKt.OTLPExporterNodeBase}});var TNe=yNe();Object.defineProperty(Pb,"sendWithHttp",{enumerable:!0,get:function(){return TNe.sendWithHttp}});Object.defineProperty(Pb,"createHttpAgent",{enumerable:!0,get:function(){return TNe.createHttpAgent}});Object.defineProperty(Pb,"configureCompression",{enumerable:!0,get:function(){return TNe.configureCompression}});var TKt=mNe();Object.defineProperty(Pb,"CompressionAlgorithm",{enumerable:!0,get:function(){return TKt.CompressionAlgorithm}})});var bNe=xt(nF=>{"use strict";Object.defineProperty(nF,"__esModule",{value:!0});nF.sendWithXhr=nF.sendWithBeacon=void 0;var Hct=(zc(),ol(Xc)),Tz=noe(),rF=B4();function bKt(l,c,f,y,b){if(navigator.sendBeacon(c,new Blob([l],f)))Hct.diag.debug("sendBeacon - can send",l),y();else{let k=new Tz.OTLPExporterError(`sendBeacon - cannot send ${l}`);b(k)}}nF.sendWithBeacon=bKt;function EKt(l,c,f,y,b,k){let g,p,A=!1,j=setTimeout(()=>{if(clearTimeout(g),A=!0,p.readyState===XMLHttpRequest.DONE){let We=new Tz.OTLPExporterError("Request Timeout");k(We)}else p.abort()},y),se=(We=rF.DEFAULT_EXPORT_MAX_ATTEMPTS,ve=rF.DEFAULT_EXPORT_INITIAL_BACKOFF)=>{p=new XMLHttpRequest,p.open("POST",c),Object.entries(Object.assign(Object.assign({},{Accept:"application/json","Content-Type":"application/json"}),f)).forEach(([Rr,kt])=>{p.setRequestHeader(Rr,kt)}),p.send(l),p.onreadystatechange=()=>{if(p.readyState===XMLHttpRequest.DONE&&A===!1)if(p.status>=200&&p.status<=299)Hct.diag.debug("xhr success",l),b(),clearTimeout(j),clearTimeout(g);else if(p.status&&(0,rF.isExportRetryable)(p.status)&&We>0){let Rr;ve=rF.DEFAULT_EXPORT_BACKOFF_MULTIPLIER*ve,p.getResponseHeader("Retry-After")?Rr=(0,rF.parseRetryAfterToMills)(p.getResponseHeader("Retry-After")):Rr=Math.round(Math.random()*(rF.DEFAULT_EXPORT_MAX_BACKOFF-ve)+ve),g=setTimeout(()=>{se(We-1,ve)},Rr)}else{let Rr=new Tz.OTLPExporterError(`Failed to export with XHR (status: ${p.status})`,p.status);k(Rr),clearTimeout(j),clearTimeout(g)}},p.onabort=()=>{if(A){let Rr=new Tz.OTLPExporterError("Request Timeout");k(Rr)}clearTimeout(j),clearTimeout(g)},p.onerror=()=>{if(A){let Rr=new Tz.OTLPExporterError("Request Timeout");k(Rr)}clearTimeout(j),clearTimeout(g)}};se()}nF.sendWithXhr=EKt});var Kct=xt(ooe=>{"use strict";Object.defineProperty(ooe,"__esModule",{value:!0});ooe.OTLPExporterBrowserBase=void 0;var xKt=toe(),CKt=B4(),$ct=bNe(),AKt=(zc(),ol(Xc)),Yct=fy(),ENe=class extends xKt.OTLPExporterBase{constructor(c={},f,y){super(c),this._useXHR=!1,this._serializer=f,this._contentType=y,this._useXHR=!!c.headers||typeof navigator.sendBeacon!="function",this._useXHR?this._headers=Object.assign({},(0,CKt.parseHeaders)(c.headers),Yct.baggageUtils.parseKeyPairsIntoRecord((0,Yct.getEnv)().OTEL_EXPORTER_OTLP_HEADERS)):this._headers={}}onInit(){}onShutdown(){}send(c,f,y){var b;if(this._shutdownOnce.isCalled){AKt.diag.debug("Shutdown already started. Cannot send objects");return}let k=(b=this._serializer.serializeRequest(c))!==null&&b!==void 0?b:new Uint8Array,g=new Promise((A,j)=>{this._useXHR?(0,$ct.sendWithXhr)(k,this.url,Object.assign(Object.assign({},this._headers),{"Content-Type":this._contentType}),this.timeoutMillis,A,j):(0,$ct.sendWithBeacon)(k,this.url,{type:this._contentType},A,j)}).then(f,y);this._sendingPromises.push(g);let p=()=>{let A=this._sendingPromises.indexOf(g);this._sendingPromises.splice(A,1)};g.then(p,p)}};ooe.OTLPExporterBrowserBase=ENe});var Xct=xt(iF=>{"use strict";Object.defineProperty(iF,"__esModule",{value:!0});iF.sendWithXhr=iF.OTLPExporterBrowserBase=void 0;var kKt=Kct();Object.defineProperty(iF,"OTLPExporterBrowserBase",{enumerable:!0,get:function(){return kKt.OTLPExporterBrowserBase}});var PKt=bNe();Object.defineProperty(iF,"sendWithXhr",{enumerable:!0,get:function(){return PKt.sendWithXhr}})});var Zct=xt(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.sendWithXhr=n0.OTLPExporterBrowserBase=n0.CompressionAlgorithm=n0.configureCompression=n0.createHttpAgent=n0.sendWithHttp=n0.OTLPExporterNodeBase=void 0;var bz=Gct();Object.defineProperty(n0,"OTLPExporterNodeBase",{enumerable:!0,get:function(){return bz.OTLPExporterNodeBase}});Object.defineProperty(n0,"sendWithHttp",{enumerable:!0,get:function(){return bz.sendWithHttp}});Object.defineProperty(n0,"createHttpAgent",{enumerable:!0,get:function(){return bz.createHttpAgent}});Object.defineProperty(n0,"configureCompression",{enumerable:!0,get:function(){return bz.configureCompression}});Object.defineProperty(n0,"CompressionAlgorithm",{enumerable:!0,get:function(){return bz.CompressionAlgorithm}});var Qct=Xct();Object.defineProperty(n0,"OTLPExporterBrowserBase",{enumerable:!0,get:function(){return Qct.OTLPExporterBrowserBase}});Object.defineProperty(n0,"sendWithXhr",{enumerable:!0,get:function(){return Qct.sendWithXhr}})});var xNe=xt(Tm=>{"use strict";var NKt=Tm&&Tm.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),DKt=Tm&&Tm.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&NKt(c,l,f)};Object.defineProperty(Tm,"__esModule",{value:!0});Tm.invalidTimeout=Tm.configureExporterTimeout=Tm.appendRootPathToUrlIfNeeded=Tm.appendResourcePathToUrl=Tm.parseHeaders=Tm.OTLPExporterError=Tm.OTLPExporterBase=void 0;DKt(Zct(),Tm);var IKt=toe();Object.defineProperty(Tm,"OTLPExporterBase",{enumerable:!0,get:function(){return IKt.OTLPExporterBase}});var wKt=noe();Object.defineProperty(Tm,"OTLPExporterError",{enumerable:!0,get:function(){return wKt.OTLPExporterError}});var Ez=B4();Object.defineProperty(Tm,"parseHeaders",{enumerable:!0,get:function(){return Ez.parseHeaders}});Object.defineProperty(Tm,"appendResourcePathToUrl",{enumerable:!0,get:function(){return Ez.appendResourcePathToUrl}});Object.defineProperty(Tm,"appendRootPathToUrlIfNeeded",{enumerable:!0,get:function(){return Ez.appendRootPathToUrlIfNeeded}});Object.defineProperty(Tm,"configureExporterTimeout",{enumerable:!0,get:function(){return Ez.configureExporterTimeout}});Object.defineProperty(Tm,"invalidTimeout",{enumerable:!0,get:function(){return Ez.invalidTimeout}})});var xz=xt(Nb=>{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0});Nb.getOtlpEncoder=Nb.encodeAsString=Nb.encodeAsLongBits=Nb.toLongBits=Nb.hrTimeToNanos=void 0;var aoe=fy();function CNe(l){let c=BigInt(1e9);return BigInt(l[0])*c+BigInt(l[1])}Nb.hrTimeToNanos=CNe;function tlt(l){let c=Number(BigInt.asUintN(32,l)),f=Number(BigInt.asUintN(32,l>>BigInt(32)));return{low:c,high:f}}Nb.toLongBits=tlt;function ANe(l){let c=CNe(l);return tlt(c)}Nb.encodeAsLongBits=ANe;function rlt(l){return CNe(l).toString()}Nb.encodeAsString=rlt;var OKt=typeof BigInt<"u"?rlt:aoe.hrTimeToNanoseconds;function elt(l){return l}function nlt(l){if(l!==void 0)return(0,aoe.hexToBinary)(l)}var RKt={encodeHrTime:ANe,encodeSpanContext:aoe.hexToBinary,encodeOptionalSpanContext:nlt};function MKt(l){var c,f;if(l===void 0)return RKt;let y=(c=l.useLongBits)!==null&&c!==void 0?c:!0,b=(f=l.useHex)!==null&&f!==void 0?f:!1;return{encodeHrTime:y?ANe:OKt,encodeSpanContext:b?elt:aoe.hexToBinary,encodeOptionalSpanContext:b?elt:nlt}}Nb.getOtlpEncoder=MKt});var ilt=xt(Cz=>{"use strict";Object.defineProperty(Cz,"__esModule",{value:!0});Cz.ESpanKind=void 0;var LKt;(function(l){l[l.SPAN_KIND_UNSPECIFIED=0]="SPAN_KIND_UNSPECIFIED",l[l.SPAN_KIND_INTERNAL=1]="SPAN_KIND_INTERNAL",l[l.SPAN_KIND_SERVER=2]="SPAN_KIND_SERVER",l[l.SPAN_KIND_CLIENT=3]="SPAN_KIND_CLIENT",l[l.SPAN_KIND_PRODUCER=4]="SPAN_KIND_PRODUCER",l[l.SPAN_KIND_CONSUMER=5]="SPAN_KIND_CONSUMER"})(LKt=Cz.ESpanKind||(Cz.ESpanKind={}))});var sF=xt(TC=>{"use strict";Object.defineProperty(TC,"__esModule",{value:!0});TC.toAnyValue=TC.toKeyValue=TC.toAttributes=TC.createInstrumentationScope=void 0;function FKt(l){return{name:l.name,version:l.version}}TC.createInstrumentationScope=FKt;function jKt(l){return Object.keys(l).map(c=>kNe(c,l[c]))}TC.toAttributes=jKt;function kNe(l,c){return{key:l,value:PNe(c)}}TC.toKeyValue=kNe;function PNe(l){let c=typeof l;return c==="string"?{stringValue:l}:c==="number"?Number.isInteger(l)?{intValue:l}:{doubleValue:l}:c==="boolean"?{boolValue:l}:l instanceof Uint8Array?{bytesValue:l}:Array.isArray(l)?{arrayValue:{values:l.map(PNe)}}:c==="object"&&l!=null?{kvlistValue:{values:Object.entries(l).map(([f,y])=>kNe(f,y))}}:{}}TC.toAnyValue=PNe});var alt=xt(vI=>{"use strict";Object.defineProperty(vI,"__esModule",{value:!0});vI.toOtlpSpanEvent=vI.toOtlpLink=vI.sdkSpanToOtlpSpan=void 0;var NNe=sF();function BKt(l,c){var f;let y=l.spanContext(),b=l.status;return{traceId:c.encodeSpanContext(y.traceId),spanId:c.encodeSpanContext(y.spanId),parentSpanId:c.encodeOptionalSpanContext(l.parentSpanId),traceState:(f=y.traceState)===null||f===void 0?void 0:f.serialize(),name:l.name,kind:l.kind==null?0:l.kind+1,startTimeUnixNano:c.encodeHrTime(l.startTime),endTimeUnixNano:c.encodeHrTime(l.endTime),attributes:(0,NNe.toAttributes)(l.attributes),droppedAttributesCount:l.droppedAttributesCount,events:l.events.map(k=>olt(k,c)),droppedEventsCount:l.droppedEventsCount,status:{code:b.code,message:b.message},links:l.links.map(k=>slt(k,c)),droppedLinksCount:l.droppedLinksCount}}vI.sdkSpanToOtlpSpan=BKt;function slt(l,c){var f;return{attributes:l.attributes?(0,NNe.toAttributes)(l.attributes):[],spanId:c.encodeSpanContext(l.context.spanId),traceId:c.encodeSpanContext(l.context.traceId),traceState:(f=l.context.traceState)===null||f===void 0?void 0:f.serialize(),droppedAttributesCount:l.droppedAttributesCount||0}}vI.toOtlpLink=slt;function olt(l,c){return{attributes:l.attributes?(0,NNe.toAttributes)(l.attributes):[],name:l.name,timeUnixNano:c.encodeHrTime(l.time),droppedAttributesCount:l.droppedAttributesCount||0}}vI.toOtlpSpanEvent=olt});var loe=xt(coe=>{"use strict";Object.defineProperty(coe,"__esModule",{value:!0});coe.createResource=void 0;var UKt=sF();function VKt(l){return{attributes:(0,UKt.toAttributes)(l.attributes),droppedAttributesCount:0}}coe.createResource=VKt});var _oe=xt(uoe=>{"use strict";Object.defineProperty(uoe,"__esModule",{value:!0});uoe.createExportTraceServiceRequest=void 0;var JKt=alt(),qKt=xz(),zKt=sF(),WKt=loe();function GKt(l,c){let f=(0,qKt.getOtlpEncoder)(c);return{resourceSpans:$Kt(l,f)}}uoe.createExportTraceServiceRequest=GKt;function HKt(l){let c=new Map;for(let f of l){let y=c.get(f.resource);y||(y=new Map,c.set(f.resource,y));let b=`${f.instrumentationLibrary.name}@${f.instrumentationLibrary.version||""}:${f.instrumentationLibrary.schemaUrl||""}`,k=y.get(b);k||(k=[],y.set(b,k)),k.push(f)}return c}function $Kt(l,c){let f=HKt(l),y=[],b=f.entries(),k=b.next();for(;!k.done;){let[g,p]=k.value,A=[],j=p.values(),se=j.next();for(;!se.done;){let ve=se.value;if(ve.length>0){let lr=ve.map(Rr=>(0,JKt.sdkSpanToOtlpSpan)(Rr,c));A.push({scope:(0,zKt.createInstrumentationScope)(ve[0].instrumentationLibrary),spans:lr,schemaUrl:ve[0].instrumentationLibrary.schemaUrl})}se=j.next()}let We={resource:(0,WKt.createResource)(g),scopeSpans:A,schemaUrl:void 0};y.push(We),k=b.next()}return y}});var flt=xt(SI=>{"use strict";Object.defineProperty(SI,"__esModule",{value:!0});SI.toMetric=SI.toScopeMetrics=SI.toResourceMetrics=void 0;var clt=(zc(),ol(Xc)),oF=eF(),YKt=xz(),foe=sF(),KKt=loe();function XKt(l,c){let f=(0,YKt.getOtlpEncoder)(c);return{resource:(0,KKt.createResource)(l.resource),schemaUrl:void 0,scopeMetrics:ult(l.scopeMetrics,f)}}SI.toResourceMetrics=XKt;function ult(l,c){return Array.from(l.map(f=>({scope:(0,foe.createInstrumentationScope)(f.scope),metrics:f.metrics.map(y=>_lt(y,c)),schemaUrl:f.scope.schemaUrl})))}SI.toScopeMetrics=ult;function _lt(l,c){let f={name:l.descriptor.name,description:l.descriptor.description,unit:l.descriptor.unit},y=tXt(l.aggregationTemporality);switch(l.dataPointType){case oF.DataPointType.SUM:f.sum={aggregationTemporality:y,isMonotonic:l.isMonotonic,dataPoints:llt(l,c)};break;case oF.DataPointType.GAUGE:f.gauge={dataPoints:llt(l,c)};break;case oF.DataPointType.HISTOGRAM:f.histogram={aggregationTemporality:y,dataPoints:ZKt(l,c)};break;case oF.DataPointType.EXPONENTIAL_HISTOGRAM:f.exponentialHistogram={aggregationTemporality:y,dataPoints:eXt(l,c)};break}return f}SI.toMetric=_lt;function QKt(l,c,f){let y={attributes:(0,foe.toAttributes)(l.attributes),startTimeUnixNano:f.encodeHrTime(l.startTime),timeUnixNano:f.encodeHrTime(l.endTime)};switch(c){case clt.ValueType.INT:y.asInt=l.value;break;case clt.ValueType.DOUBLE:y.asDouble=l.value;break}return y}function llt(l,c){return l.dataPoints.map(f=>QKt(f,l.descriptor.valueType,c))}function ZKt(l,c){return l.dataPoints.map(f=>{let y=f.value;return{attributes:(0,foe.toAttributes)(f.attributes),bucketCounts:y.buckets.counts,explicitBounds:y.buckets.boundaries,count:y.count,sum:y.sum,min:y.min,max:y.max,startTimeUnixNano:c.encodeHrTime(f.startTime),timeUnixNano:c.encodeHrTime(f.endTime)}})}function eXt(l,c){return l.dataPoints.map(f=>{let y=f.value;return{attributes:(0,foe.toAttributes)(f.attributes),count:y.count,min:y.min,max:y.max,sum:y.sum,positive:{offset:y.positive.offset,bucketCounts:y.positive.bucketCounts},negative:{offset:y.negative.offset,bucketCounts:y.negative.bucketCounts},scale:y.scale,zeroCount:y.zeroCount,startTimeUnixNano:c.encodeHrTime(f.startTime),timeUnixNano:c.encodeHrTime(f.endTime)}})}function tXt(l){switch(l){case oF.AggregationTemporality.DELTA:return 1;case oF.AggregationTemporality.CUMULATIVE:return 2}}});var doe=xt(poe=>{"use strict";Object.defineProperty(poe,"__esModule",{value:!0});poe.createExportMetricsServiceRequest=void 0;var rXt=flt();function nXt(l,c){return{resourceMetrics:l.map(f=>(0,rXt.toResourceMetrics)(f,c))}}poe.createExportMetricsServiceRequest=nXt});var moe=xt(aF=>{"use strict";Object.defineProperty(aF,"__esModule",{value:!0});aF.toLogAttributes=aF.createExportLogsServiceRequest=void 0;var iXt=xz(),DNe=sF(),sXt=loe();function oXt(l,c){let f=(0,iXt.getOtlpEncoder)(c);return{resourceLogs:cXt(l,f)}}aF.createExportLogsServiceRequest=oXt;function aXt(l){let c=new Map;for(let f of l){let{resource:y,instrumentationScope:{name:b,version:k="",schemaUrl:g=""}}=f,p=c.get(y);p||(p=new Map,c.set(y,p));let A=`${b}@${k}:${g}`,j=p.get(A);j||(j=[],p.set(A,j)),j.push(f)}return c}function cXt(l,c){let f=aXt(l);return Array.from(f,([y,b])=>({resource:(0,sXt.createResource)(y),scopeLogs:Array.from(b,([,k])=>({scope:(0,DNe.createInstrumentationScope)(k[0].instrumentationScope),logRecords:k.map(g=>lXt(g,c)),schemaUrl:k[0].instrumentationScope.schemaUrl})),schemaUrl:void 0}))}function lXt(l,c){var f,y,b;return{timeUnixNano:c.encodeHrTime(l.hrTime),observedTimeUnixNano:c.encodeHrTime(l.hrTimeObserved),severityNumber:l.severityNumber,severityText:l.severityText,body:(0,DNe.toAnyValue)(l.body),attributes:plt(l.attributes),droppedAttributesCount:l.droppedAttributesCount,flags:(f=l.spanContext)===null||f===void 0?void 0:f.traceFlags,traceId:c.encodeOptionalSpanContext((y=l.spanContext)===null||y===void 0?void 0:y.traceId),spanId:c.encodeOptionalSpanContext((b=l.spanContext)===null||b===void 0?void 0:b.spanId)}}function plt(l){return Object.keys(l).map(c=>(0,DNe.toKeyValue)(c,l[c]))}aF.toLogAttributes=plt});var mlt=xt((lyr,dlt)=>{"use strict";dlt.exports=uXt;function uXt(l,c){for(var f=new Array(arguments.length-1),y=0,b=2,k=!0;b{"use strict";var goe=ylt;goe.length=function(c){var f=c.length;if(!f)return 0;for(var y=0;--f%4>1&&c.charAt(f)==="=";)++y;return Math.ceil(c.length*3)/4-y};var cF=new Array(64),hlt=new Array(123);for(Sx=0;Sx<64;)hlt[cF[Sx]=Sx<26?Sx+65:Sx<52?Sx+71:Sx<62?Sx-4:Sx-59|43]=Sx++;var Sx;goe.encode=function(c,f,y){for(var b=null,k=[],g=0,p=0,A;f>2],A=(j&3)<<4,p=1;break;case 1:k[g++]=cF[A|j>>4],A=(j&15)<<2,p=2;break;case 2:k[g++]=cF[A|j>>6],k[g++]=cF[j&63],p=0;break}g>8191&&((b||(b=[])).push(String.fromCharCode.apply(String,k)),g=0)}return p&&(k[g++]=cF[A],k[g++]=61,p===1&&(k[g++]=61)),b?(g&&b.push(String.fromCharCode.apply(String,k.slice(0,g))),b.join("")):String.fromCharCode.apply(String,k.slice(0,g))};var glt="invalid encoding";goe.decode=function(c,f,y){for(var b=y,k=0,g,p=0;p1)break;if((A=hlt[A])===void 0)throw Error(glt);switch(k){case 0:g=A,k=1;break;case 1:f[y++]=g<<2|(A&48)>>4,g=A,k=2;break;case 2:f[y++]=(g&15)<<4|(A&60)>>2,g=A,k=3;break;case 3:f[y++]=(g&3)<<6|A,k=0;break}}if(k===1)throw Error(glt);return y-b};goe.test=function(c){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(c)}});var Tlt=xt((_yr,Slt)=>{"use strict";Slt.exports=hoe;function hoe(){this._listeners={}}hoe.prototype.on=function(c,f,y){return(this._listeners[c]||(this._listeners[c]=[])).push({fn:f,ctx:y||this}),this};hoe.prototype.off=function(c,f){if(c===void 0)this._listeners={};else if(f===void 0)this._listeners[c]=[];else for(var y=this._listeners[c],b=0;b{"use strict";klt.exports=blt(blt);function blt(l){return typeof Float32Array<"u"?function(){var c=new Float32Array([-0]),f=new Uint8Array(c.buffer),y=f[3]===128;function b(A,j,se){c[0]=A,j[se]=f[0],j[se+1]=f[1],j[se+2]=f[2],j[se+3]=f[3]}function k(A,j,se){c[0]=A,j[se]=f[3],j[se+1]=f[2],j[se+2]=f[1],j[se+3]=f[0]}l.writeFloatLE=y?b:k,l.writeFloatBE=y?k:b;function g(A,j){return f[0]=A[j],f[1]=A[j+1],f[2]=A[j+2],f[3]=A[j+3],c[0]}function p(A,j){return f[3]=A[j],f[2]=A[j+1],f[1]=A[j+2],f[0]=A[j+3],c[0]}l.readFloatLE=y?g:p,l.readFloatBE=y?p:g}():function(){function c(y,b,k,g){var p=b<0?1:0;if(p&&(b=-b),b===0)y(1/b>0?0:2147483648,k,g);else if(isNaN(b))y(2143289344,k,g);else if(b>34028234663852886e22)y((p<<31|2139095040)>>>0,k,g);else if(b<11754943508222875e-54)y((p<<31|Math.round(b/1401298464324817e-60))>>>0,k,g);else{var A=Math.floor(Math.log(b)/Math.LN2),j=Math.round(b*Math.pow(2,-A)*8388608)&8388607;y((p<<31|A+127<<23|j)>>>0,k,g)}}l.writeFloatLE=c.bind(null,Elt),l.writeFloatBE=c.bind(null,xlt);function f(y,b,k){var g=y(b,k),p=(g>>31)*2+1,A=g>>>23&255,j=g&8388607;return A===255?j?NaN:p*(1/0):A===0?p*1401298464324817e-60*j:p*Math.pow(2,A-150)*(j+8388608)}l.readFloatLE=f.bind(null,Clt),l.readFloatBE=f.bind(null,Alt)}(),typeof Float64Array<"u"?function(){var c=new Float64Array([-0]),f=new Uint8Array(c.buffer),y=f[7]===128;function b(A,j,se){c[0]=A,j[se]=f[0],j[se+1]=f[1],j[se+2]=f[2],j[se+3]=f[3],j[se+4]=f[4],j[se+5]=f[5],j[se+6]=f[6],j[se+7]=f[7]}function k(A,j,se){c[0]=A,j[se]=f[7],j[se+1]=f[6],j[se+2]=f[5],j[se+3]=f[4],j[se+4]=f[3],j[se+5]=f[2],j[se+6]=f[1],j[se+7]=f[0]}l.writeDoubleLE=y?b:k,l.writeDoubleBE=y?k:b;function g(A,j){return f[0]=A[j],f[1]=A[j+1],f[2]=A[j+2],f[3]=A[j+3],f[4]=A[j+4],f[5]=A[j+5],f[6]=A[j+6],f[7]=A[j+7],c[0]}function p(A,j){return f[7]=A[j],f[6]=A[j+1],f[5]=A[j+2],f[4]=A[j+3],f[3]=A[j+4],f[2]=A[j+5],f[1]=A[j+6],f[0]=A[j+7],c[0]}l.readDoubleLE=y?g:p,l.readDoubleBE=y?p:g}():function(){function c(y,b,k,g,p,A){var j=g<0?1:0;if(j&&(g=-g),g===0)y(0,p,A+b),y(1/g>0?0:2147483648,p,A+k);else if(isNaN(g))y(0,p,A+b),y(2146959360,p,A+k);else if(g>17976931348623157e292)y(0,p,A+b),y((j<<31|2146435072)>>>0,p,A+k);else{var se;if(g<22250738585072014e-324)se=g/5e-324,y(se>>>0,p,A+b),y((j<<31|se/4294967296)>>>0,p,A+k);else{var We=Math.floor(Math.log(g)/Math.LN2);We===1024&&(We=1023),se=g*Math.pow(2,-We),y(se*4503599627370496>>>0,p,A+b),y((j<<31|We+1023<<20|se*1048576&1048575)>>>0,p,A+k)}}}l.writeDoubleLE=c.bind(null,Elt,0,4),l.writeDoubleBE=c.bind(null,xlt,4,0);function f(y,b,k,g,p){var A=y(g,p+b),j=y(g,p+k),se=(j>>31)*2+1,We=j>>>20&2047,ve=4294967296*(j&1048575)+A;return We===2047?ve?NaN:se*(1/0):We===0?se*5e-324*ve:se*Math.pow(2,We-1075)*(ve+4503599627370496)}l.readDoubleLE=f.bind(null,Clt,0,4),l.readDoubleBE=f.bind(null,Alt,4,0)}(),l}function Elt(l,c,f){c[f]=l&255,c[f+1]=l>>>8&255,c[f+2]=l>>>16&255,c[f+3]=l>>>24}function xlt(l,c,f){c[f]=l>>>24,c[f+1]=l>>>16&255,c[f+2]=l>>>8&255,c[f+3]=l&255}function Clt(l,c){return(l[c]|l[c+1]<<8|l[c+2]<<16|l[c+3]<<24)>>>0}function Alt(l,c){return(l[c]<<24|l[c+1]<<16|l[c+2]<<8|l[c+3])>>>0}});var Nlt=xt((exports,module)=>{"use strict";module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(l){}return null}});var Ilt=xt(Dlt=>{"use strict";var INe=Dlt;INe.length=function(c){for(var f=0,y=0,b=0;b191&&A<224?g[p++]=(A&31)<<6|c[f++]&63:A>239&&A<365?(A=((A&7)<<18|(c[f++]&63)<<12|(c[f++]&63)<<6|c[f++]&63)-65536,g[p++]=55296+(A>>10),g[p++]=56320+(A&1023)):g[p++]=(A&15)<<12|(c[f++]&63)<<6|c[f++]&63,p>8191&&((k||(k=[])).push(String.fromCharCode.apply(String,g)),p=0);return k?(p&&k.push(String.fromCharCode.apply(String,g.slice(0,p))),k.join("")):String.fromCharCode.apply(String,g.slice(0,p))};INe.write=function(c,f,y){for(var b=y,k,g,p=0;p>6|192,f[y++]=k&63|128):(k&64512)===55296&&((g=c.charCodeAt(p+1))&64512)===56320?(k=65536+((k&1023)<<10)+(g&1023),++p,f[y++]=k>>18|240,f[y++]=k>>12&63|128,f[y++]=k>>6&63|128,f[y++]=k&63|128):(f[y++]=k>>12|224,f[y++]=k>>6&63|128,f[y++]=k&63|128);return y-b}});var Olt=xt((dyr,wlt)=>{"use strict";wlt.exports=_Xt;function _Xt(l,c,f){var y=f||8192,b=y>>>1,k=null,g=y;return function(A){if(A<1||A>b)return l(A);g+A>y&&(k=l(y),g=0);var j=c.call(k,g,g+=A);return g&7&&(g=(g|7)+1),j}}});var Mlt=xt((myr,Rlt)=>{"use strict";Rlt.exports=Ch;var Az=bI();function Ch(l,c){this.lo=l>>>0,this.hi=c>>>0}var U4=Ch.zero=new Ch(0,0);U4.toNumber=function(){return 0};U4.zzEncode=U4.zzDecode=function(){return this};U4.length=function(){return 1};var fXt=Ch.zeroHash="\0\0\0\0\0\0\0\0";Ch.fromNumber=function(c){if(c===0)return U4;var f=c<0;f&&(c=-c);var y=c>>>0,b=(c-y)/4294967296>>>0;return f&&(b=~b>>>0,y=~y>>>0,++y>4294967295&&(y=0,++b>4294967295&&(b=0))),new Ch(y,b)};Ch.from=function(c){if(typeof c=="number")return Ch.fromNumber(c);if(Az.isString(c))if(Az.Long)c=Az.Long.fromString(c);else return Ch.fromNumber(parseInt(c,10));return c.low||c.high?new Ch(c.low>>>0,c.high>>>0):U4};Ch.prototype.toNumber=function(c){if(!c&&this.hi>>>31){var f=~this.lo+1>>>0,y=~this.hi>>>0;return f||(y=y+1>>>0),-(f+y*4294967296)}return this.lo+this.hi*4294967296};Ch.prototype.toLong=function(c){return Az.Long?new Az.Long(this.lo|0,this.hi|0,!!c):{low:this.lo|0,high:this.hi|0,unsigned:!!c}};var TI=String.prototype.charCodeAt;Ch.fromHash=function(c){return c===fXt?U4:new Ch((TI.call(c,0)|TI.call(c,1)<<8|TI.call(c,2)<<16|TI.call(c,3)<<24)>>>0,(TI.call(c,4)|TI.call(c,5)<<8|TI.call(c,6)<<16|TI.call(c,7)<<24)>>>0)};Ch.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};Ch.prototype.zzEncode=function(){var c=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^c)>>>0,this.lo=(this.lo<<1^c)>>>0,this};Ch.prototype.zzDecode=function(){var c=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^c)>>>0,this.hi=(this.hi>>>1^c)>>>0,this};Ch.prototype.length=function(){var c=this.lo,f=(this.lo>>>28|this.hi<<4)>>>0,y=this.hi>>>24;return y===0?f===0?c<16384?c<128?1:2:c<2097152?3:4:f<16384?f<128?5:6:f<2097152?7:8:y<128?9:10}});var bI=xt(wNe=>{"use strict";var Ra=wNe;Ra.asPromise=mlt();Ra.base64=vlt();Ra.EventEmitter=Tlt();Ra.float=Plt();Ra.inquire=Nlt();Ra.utf8=Ilt();Ra.pool=Olt();Ra.LongBits=Mlt();Ra.isNode=!!(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);Ra.global=Ra.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||wNe;Ra.emptyArray=Object.freeze?Object.freeze([]):[];Ra.emptyObject=Object.freeze?Object.freeze({}):{};Ra.isInteger=Number.isInteger||function(c){return typeof c=="number"&&isFinite(c)&&Math.floor(c)===c};Ra.isString=function(c){return typeof c=="string"||c instanceof String};Ra.isObject=function(c){return c&&typeof c=="object"};Ra.isset=Ra.isSet=function(c,f){var y=c[f];return y!=null&&c.hasOwnProperty(f)?typeof y!="object"||(Array.isArray(y)?y.length:Object.keys(y).length)>0:!1};Ra.Buffer=function(){try{var l=Ra.inquire("buffer").Buffer;return l.prototype.utf8Write?l:null}catch{return null}}();Ra._Buffer_from=null;Ra._Buffer_allocUnsafe=null;Ra.newBuffer=function(c){return typeof c=="number"?Ra.Buffer?Ra._Buffer_allocUnsafe(c):new Ra.Array(c):Ra.Buffer?Ra._Buffer_from(c):typeof Uint8Array>"u"?c:new Uint8Array(c)};Ra.Array=typeof Uint8Array<"u"?Uint8Array:Array;Ra.Long=Ra.global.dcodeIO&&Ra.global.dcodeIO.Long||Ra.global.Long||Ra.inquire("long");Ra.key2Re=/^true|false|0|1$/;Ra.key32Re=/^-?(?:0|[1-9][0-9]*)$/;Ra.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;Ra.longToHash=function(c){return c?Ra.LongBits.from(c).toHash():Ra.LongBits.zeroHash};Ra.longFromHash=function(c,f){var y=Ra.LongBits.fromHash(c);return Ra.Long?Ra.Long.fromBits(y.lo,y.hi,f):y.toNumber(!!f)};function Llt(l,c,f){for(var y=Object.keys(c),b=0;b-1;--k)if(f[b[k]]===1&&this[b[k]]!==void 0&&this[b[k]]!==null)return b[k]}};Ra.oneOfSetter=function(c){return function(f){for(var y=0;y{"use strict";Vlt.exports=Ju;var Db=bI(),ONe,yoe=Db.LongBits,jlt=Db.base64,Blt=Db.utf8;function kz(l,c,f){this.fn=l,this.len=c,this.next=void 0,this.val=f}function MNe(){}function pXt(l){this.head=l.head,this.tail=l.tail,this.len=l.len,this.next=l.states}function Ju(){this.len=0,this.head=new kz(MNe,0,0),this.tail=this.head,this.states=null}var Ult=function(){return Db.Buffer?function(){return(Ju.create=function(){return new ONe})()}:function(){return new Ju}};Ju.create=Ult();Ju.alloc=function(c){return new Db.Array(c)};Db.Array!==Array&&(Ju.alloc=Db.pool(Ju.alloc,Db.Array.prototype.subarray));Ju.prototype._push=function(c,f,y){return this.tail=this.tail.next=new kz(c,f,y),this.len+=f,this};function LNe(l,c,f){c[f]=l&255}function dXt(l,c,f){for(;l>127;)c[f++]=l&127|128,l>>>=7;c[f]=l}function FNe(l,c){this.len=l,this.next=void 0,this.val=c}FNe.prototype=Object.create(kz.prototype);FNe.prototype.fn=dXt;Ju.prototype.uint32=function(c){return this.len+=(this.tail=this.tail.next=new FNe((c=c>>>0)<128?1:c<16384?2:c<2097152?3:c<268435456?4:5,c)).len,this};Ju.prototype.int32=function(c){return c<0?this._push(jNe,10,yoe.fromNumber(c)):this.uint32(c)};Ju.prototype.sint32=function(c){return this.uint32((c<<1^c>>31)>>>0)};function jNe(l,c,f){for(;l.hi;)c[f++]=l.lo&127|128,l.lo=(l.lo>>>7|l.hi<<25)>>>0,l.hi>>>=7;for(;l.lo>127;)c[f++]=l.lo&127|128,l.lo=l.lo>>>7;c[f++]=l.lo}Ju.prototype.uint64=function(c){var f=yoe.from(c);return this._push(jNe,f.length(),f)};Ju.prototype.int64=Ju.prototype.uint64;Ju.prototype.sint64=function(c){var f=yoe.from(c).zzEncode();return this._push(jNe,f.length(),f)};Ju.prototype.bool=function(c){return this._push(LNe,1,c?1:0)};function RNe(l,c,f){c[f]=l&255,c[f+1]=l>>>8&255,c[f+2]=l>>>16&255,c[f+3]=l>>>24}Ju.prototype.fixed32=function(c){return this._push(RNe,4,c>>>0)};Ju.prototype.sfixed32=Ju.prototype.fixed32;Ju.prototype.fixed64=function(c){var f=yoe.from(c);return this._push(RNe,4,f.lo)._push(RNe,4,f.hi)};Ju.prototype.sfixed64=Ju.prototype.fixed64;Ju.prototype.float=function(c){return this._push(Db.float.writeFloatLE,4,c)};Ju.prototype.double=function(c){return this._push(Db.float.writeDoubleLE,8,c)};var mXt=Db.Array.prototype.set?function(c,f,y){f.set(c,y)}:function(c,f,y){for(var b=0;b>>0;if(!f)return this._push(LNe,1,0);if(Db.isString(c)){var y=Ju.alloc(f=jlt.length(c));jlt.decode(c,y,0),c=y}return this.uint32(f)._push(mXt,f,c)};Ju.prototype.string=function(c){var f=Blt.length(c);return f?this.uint32(f)._push(Blt.write,f,c):this._push(LNe,1,0)};Ju.prototype.fork=function(){return this.states=new pXt(this),this.head=this.tail=new kz(MNe,0,0),this.len=0,this};Ju.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new kz(MNe,0,0),this.len=0),this};Ju.prototype.ldelim=function(){var c=this.head,f=this.tail,y=this.len;return this.reset().uint32(y),y&&(this.tail.next=c.next,this.tail=f,this.len+=y),this};Ju.prototype.finish=function(){for(var c=this.head.next,f=this.constructor.alloc(this.len),y=0;c;)c.fn(c.val,f,y),y+=c.len,c=c.next;return f};Ju._configure=function(l){ONe=l,Ju.create=Ult(),ONe._configure()}});var zlt=xt((yyr,qlt)=>{"use strict";qlt.exports=bC;var Jlt=BNe();(bC.prototype=Object.create(Jlt.prototype)).constructor=bC;var EI=bI();function bC(){Jlt.call(this)}bC._configure=function(){bC.alloc=EI._Buffer_allocUnsafe,bC.writeBytesBuffer=EI.Buffer&&EI.Buffer.prototype instanceof Uint8Array&&EI.Buffer.prototype.set.name==="set"?function(c,f,y){f.set(c,y)}:function(c,f,y){if(c.copy)c.copy(f,y,0,c.length);else for(var b=0;b>>0;return this.uint32(f),f&&this._push(bC.writeBytesBuffer,f,c),this};function gXt(l,c,f){l.length<40?EI.utf8.write(l,c,f):c.utf8Write?c.utf8Write(l,f):c.write(l,f)}bC.prototype.string=function(c){var f=EI.Buffer.byteLength(c);return this.uint32(f),f&&this._push(gXt,f,c),this};bC._configure()});var JNe=xt((vyr,Ylt)=>{"use strict";Ylt.exports=bm;var Tx=bI(),VNe,Hlt=Tx.LongBits,hXt=Tx.utf8;function bx(l,c){return RangeError("index out of range: "+l.pos+" + "+(c||1)+" > "+l.len)}function bm(l){this.buf=l,this.pos=0,this.len=l.length}var Wlt=typeof Uint8Array<"u"?function(c){if(c instanceof Uint8Array||Array.isArray(c))return new bm(c);throw Error("illegal buffer")}:function(c){if(Array.isArray(c))return new bm(c);throw Error("illegal buffer")},$lt=function(){return Tx.Buffer?function(f){return(bm.create=function(b){return Tx.Buffer.isBuffer(b)?new VNe(b):Wlt(b)})(f)}:Wlt};bm.create=$lt();bm.prototype._slice=Tx.Array.prototype.subarray||Tx.Array.prototype.slice;bm.prototype.uint32=function(){var c=4294967295;return function(){if(c=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(c=(c|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(c=(c|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(c=(c|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(c=(c|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return c;if((this.pos+=5)>this.len)throw this.pos=this.len,bx(this,10);return c}}();bm.prototype.int32=function(){return this.uint32()|0};bm.prototype.sint32=function(){var c=this.uint32();return c>>>1^-(c&1)|0};function UNe(){var l=new Hlt(0,0),c=0;if(this.len-this.pos>4){for(;c<4;++c)if(l.lo=(l.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return l;if(l.lo=(l.lo|(this.buf[this.pos]&127)<<28)>>>0,l.hi=(l.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return l;c=0}else{for(;c<3;++c){if(this.pos>=this.len)throw bx(this);if(l.lo=(l.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return l}return l.lo=(l.lo|(this.buf[this.pos++]&127)<>>0,l}if(this.len-this.pos>4){for(;c<5;++c)if(l.hi=(l.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return l}else for(;c<5;++c){if(this.pos>=this.len)throw bx(this);if(l.hi=(l.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return l}throw Error("invalid varint encoding")}bm.prototype.bool=function(){return this.uint32()!==0};function voe(l,c){return(l[c-4]|l[c-3]<<8|l[c-2]<<16|l[c-1]<<24)>>>0}bm.prototype.fixed32=function(){if(this.pos+4>this.len)throw bx(this,4);return voe(this.buf,this.pos+=4)};bm.prototype.sfixed32=function(){if(this.pos+4>this.len)throw bx(this,4);return voe(this.buf,this.pos+=4)|0};function Glt(){if(this.pos+8>this.len)throw bx(this,8);return new Hlt(voe(this.buf,this.pos+=4),voe(this.buf,this.pos+=4))}bm.prototype.float=function(){if(this.pos+4>this.len)throw bx(this,4);var c=Tx.float.readFloatLE(this.buf,this.pos);return this.pos+=4,c};bm.prototype.double=function(){if(this.pos+8>this.len)throw bx(this,4);var c=Tx.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,c};bm.prototype.bytes=function(){var c=this.uint32(),f=this.pos,y=this.pos+c;if(y>this.len)throw bx(this,c);if(this.pos+=c,Array.isArray(this.buf))return this.buf.slice(f,y);if(f===y){var b=Tx.Buffer;return b?b.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,f,y)};bm.prototype.string=function(){var c=this.bytes();return hXt.read(c,0,c.length)};bm.prototype.skip=function(c){if(typeof c=="number"){if(this.pos+c>this.len)throw bx(this,c);this.pos+=c}else do if(this.pos>=this.len)throw bx(this);while(this.buf[this.pos++]&128);return this};bm.prototype.skipType=function(l){switch(l){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(l=this.uint32()&7)!==4;)this.skipType(l);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+l+" at offset "+this.pos)}return this};bm._configure=function(l){VNe=l,bm.create=$lt(),VNe._configure();var c=Tx.Long?"toLong":"toNumber";Tx.merge(bm.prototype,{int64:function(){return UNe.call(this)[c](!1)},uint64:function(){return UNe.call(this)[c](!0)},sint64:function(){return UNe.call(this).zzDecode()[c](!1)},fixed64:function(){return Glt.call(this)[c](!0)},sfixed64:function(){return Glt.call(this)[c](!1)}})}});var Zlt=xt((Syr,Qlt)=>{"use strict";Qlt.exports=V4;var Xlt=JNe();(V4.prototype=Object.create(Xlt.prototype)).constructor=V4;var Klt=bI();function V4(l){Xlt.call(this,l)}V4._configure=function(){Klt.Buffer&&(V4.prototype._slice=Klt.Buffer.prototype.slice)};V4.prototype.string=function(){var c=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+c,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+c,this.len))};V4._configure()});var tut=xt((Tyr,eut)=>{"use strict";eut.exports=Pz;var qNe=bI();(Pz.prototype=Object.create(qNe.EventEmitter.prototype)).constructor=Pz;function Pz(l,c,f){if(typeof l!="function")throw TypeError("rpcImpl must be a function");qNe.EventEmitter.call(this),this.rpcImpl=l,this.requestDelimited=!!c,this.responseDelimited=!!f}Pz.prototype.rpcCall=function l(c,f,y,b,k){if(!b)throw TypeError("request must be specified");var g=this;if(!k)return qNe.asPromise(l,g,c,f,y,b);if(!g.rpcImpl){setTimeout(function(){k(Error("already ended"))},0);return}try{return g.rpcImpl(c,f[g.requestDelimited?"encodeDelimited":"encode"](b).finish(),function(A,j){if(A)return g.emit("error",A,c),k(A);if(j===null){g.end(!0);return}if(!(j instanceof y))try{j=y[g.responseDelimited?"decodeDelimited":"decode"](j)}catch(se){return g.emit("error",se,c),k(se)}return g.emit("data",j,c),k(null,j)})}catch(p){g.emit("error",p,c),setTimeout(function(){k(p)},0);return}};Pz.prototype.end=function(c){return this.rpcImpl&&(c||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var nut=xt(rut=>{"use strict";var yXt=rut;yXt.Service=tut()});var sut=xt((Eyr,iut)=>{"use strict";iut.exports={}});var cut=xt(aut=>{"use strict";var x1=aut;x1.build="minimal";x1.Writer=BNe();x1.BufferWriter=zlt();x1.Reader=JNe();x1.BufferReader=Zlt();x1.util=bI();x1.rpc=nut();x1.roots=sut();x1.configure=out;function out(){x1.util._configure(),x1.Writer._configure(x1.BufferWriter),x1.Reader._configure(x1.BufferReader)}out()});var uut=xt((Cyr,lut)=>{"use strict";lut.exports=cut()});var fut=xt((Ayr,_ut)=>{"use strict";var Za=uut(),hn=Za.Reader,hl=Za.Writer,ht=Za.util,at=Za.roots.default||(Za.roots.default={});at.opentelemetry=function(){var l={};return l.proto=function(){var c={};return c.common=function(){var f={};return f.v1=function(){var y={};return y.AnyValue=function(){function b(g){if(g)for(var p=Object.keys(g),A=0;A>>3){case 1:{se.stringValue=p.string();break}case 2:{se.boolValue=p.bool();break}case 3:{se.intValue=p.int64();break}case 4:{se.doubleValue=p.double();break}case 5:{se.arrayValue=at.opentelemetry.proto.common.v1.ArrayValue.decode(p,p.uint32());break}case 6:{se.kvlistValue=at.opentelemetry.proto.common.v1.KeyValueList.decode(p,p.uint32());break}case 7:{se.bytesValue=p.bytes();break}default:p.skipType(We&7);break}}return se},b.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},b.verify=function(p){if(typeof p!="object"||p===null)return"object expected";var A={};if(p.stringValue!=null&&p.hasOwnProperty("stringValue")&&(A.value=1,!ht.isString(p.stringValue)))return"stringValue: string expected";if(p.boolValue!=null&&p.hasOwnProperty("boolValue")){if(A.value===1)return"value: multiple values";if(A.value=1,typeof p.boolValue!="boolean")return"boolValue: boolean expected"}if(p.intValue!=null&&p.hasOwnProperty("intValue")){if(A.value===1)return"value: multiple values";if(A.value=1,!ht.isInteger(p.intValue)&&!(p.intValue&&ht.isInteger(p.intValue.low)&&ht.isInteger(p.intValue.high)))return"intValue: integer|Long expected"}if(p.doubleValue!=null&&p.hasOwnProperty("doubleValue")){if(A.value===1)return"value: multiple values";if(A.value=1,typeof p.doubleValue!="number")return"doubleValue: number expected"}if(p.arrayValue!=null&&p.hasOwnProperty("arrayValue")){if(A.value===1)return"value: multiple values";A.value=1;{var j=at.opentelemetry.proto.common.v1.ArrayValue.verify(p.arrayValue);if(j)return"arrayValue."+j}}if(p.kvlistValue!=null&&p.hasOwnProperty("kvlistValue")){if(A.value===1)return"value: multiple values";A.value=1;{var j=at.opentelemetry.proto.common.v1.KeyValueList.verify(p.kvlistValue);if(j)return"kvlistValue."+j}}if(p.bytesValue!=null&&p.hasOwnProperty("bytesValue")){if(A.value===1)return"value: multiple values";if(A.value=1,!(p.bytesValue&&typeof p.bytesValue.length=="number"||ht.isString(p.bytesValue)))return"bytesValue: buffer expected"}return null},b.fromObject=function(p){if(p instanceof at.opentelemetry.proto.common.v1.AnyValue)return p;var A=new at.opentelemetry.proto.common.v1.AnyValue;if(p.stringValue!=null&&(A.stringValue=String(p.stringValue)),p.boolValue!=null&&(A.boolValue=!!p.boolValue),p.intValue!=null&&(ht.Long?(A.intValue=ht.Long.fromValue(p.intValue)).unsigned=!1:typeof p.intValue=="string"?A.intValue=parseInt(p.intValue,10):typeof p.intValue=="number"?A.intValue=p.intValue:typeof p.intValue=="object"&&(A.intValue=new ht.LongBits(p.intValue.low>>>0,p.intValue.high>>>0).toNumber())),p.doubleValue!=null&&(A.doubleValue=Number(p.doubleValue)),p.arrayValue!=null){if(typeof p.arrayValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.arrayValue: object expected");A.arrayValue=at.opentelemetry.proto.common.v1.ArrayValue.fromObject(p.arrayValue)}if(p.kvlistValue!=null){if(typeof p.kvlistValue!="object")throw TypeError(".opentelemetry.proto.common.v1.AnyValue.kvlistValue: object expected");A.kvlistValue=at.opentelemetry.proto.common.v1.KeyValueList.fromObject(p.kvlistValue)}return p.bytesValue!=null&&(typeof p.bytesValue=="string"?ht.base64.decode(p.bytesValue,A.bytesValue=ht.newBuffer(ht.base64.length(p.bytesValue)),0):p.bytesValue.length>=0&&(A.bytesValue=p.bytesValue)),A},b.toObject=function(p,A){A||(A={});var j={};return p.stringValue!=null&&p.hasOwnProperty("stringValue")&&(j.stringValue=p.stringValue,A.oneofs&&(j.value="stringValue")),p.boolValue!=null&&p.hasOwnProperty("boolValue")&&(j.boolValue=p.boolValue,A.oneofs&&(j.value="boolValue")),p.intValue!=null&&p.hasOwnProperty("intValue")&&(typeof p.intValue=="number"?j.intValue=A.longs===String?String(p.intValue):p.intValue:j.intValue=A.longs===String?ht.Long.prototype.toString.call(p.intValue):A.longs===Number?new ht.LongBits(p.intValue.low>>>0,p.intValue.high>>>0).toNumber():p.intValue,A.oneofs&&(j.value="intValue")),p.doubleValue!=null&&p.hasOwnProperty("doubleValue")&&(j.doubleValue=A.json&&!isFinite(p.doubleValue)?String(p.doubleValue):p.doubleValue,A.oneofs&&(j.value="doubleValue")),p.arrayValue!=null&&p.hasOwnProperty("arrayValue")&&(j.arrayValue=at.opentelemetry.proto.common.v1.ArrayValue.toObject(p.arrayValue,A),A.oneofs&&(j.value="arrayValue")),p.kvlistValue!=null&&p.hasOwnProperty("kvlistValue")&&(j.kvlistValue=at.opentelemetry.proto.common.v1.KeyValueList.toObject(p.kvlistValue,A),A.oneofs&&(j.value="kvlistValue")),p.bytesValue!=null&&p.hasOwnProperty("bytesValue")&&(j.bytesValue=A.bytes===String?ht.base64.encode(p.bytesValue,0,p.bytesValue.length):A.bytes===Array?Array.prototype.slice.call(p.bytesValue):p.bytesValue,A.oneofs&&(j.value="bytesValue")),j},b.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},b.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/opentelemetry.proto.common.v1.AnyValue"},b}(),y.ArrayValue=function(){function b(k){if(this.values=[],k)for(var g=Object.keys(k),p=0;p>>3){case 1:{j.values&&j.values.length||(j.values=[]),j.values.push(at.opentelemetry.proto.common.v1.AnyValue.decode(g,g.uint32()));break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.values!=null&&g.hasOwnProperty("values")){if(!Array.isArray(g.values))return"values: array expected";for(var p=0;p>>3){case 1:{j.values&&j.values.length||(j.values=[]),j.values.push(at.opentelemetry.proto.common.v1.KeyValue.decode(g,g.uint32()));break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.values!=null&&g.hasOwnProperty("values")){if(!Array.isArray(g.values))return"values: array expected";for(var p=0;p>>3){case 1:{j.key=g.string();break}case 2:{j.value=at.opentelemetry.proto.common.v1.AnyValue.decode(g,g.uint32());break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.key!=null&&g.hasOwnProperty("key")&&!ht.isString(g.key))return"key: string expected";if(g.value!=null&&g.hasOwnProperty("value")){var p=at.opentelemetry.proto.common.v1.AnyValue.verify(g.value);if(p)return"value."+p}return null},b.fromObject=function(g){if(g instanceof at.opentelemetry.proto.common.v1.KeyValue)return g;var p=new at.opentelemetry.proto.common.v1.KeyValue;if(g.key!=null&&(p.key=String(g.key)),g.value!=null){if(typeof g.value!="object")throw TypeError(".opentelemetry.proto.common.v1.KeyValue.value: object expected");p.value=at.opentelemetry.proto.common.v1.AnyValue.fromObject(g.value)}return p},b.toObject=function(g,p){p||(p={});var A={};return p.defaults&&(A.key="",A.value=null),g.key!=null&&g.hasOwnProperty("key")&&(A.key=g.key),g.value!=null&&g.hasOwnProperty("value")&&(A.value=at.opentelemetry.proto.common.v1.AnyValue.toObject(g.value,p)),A},b.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},b.getTypeUrl=function(g){return g===void 0&&(g="type.googleapis.com"),g+"/opentelemetry.proto.common.v1.KeyValue"},b}(),y.InstrumentationScope=function(){function b(k){if(this.attributes=[],k)for(var g=Object.keys(k),p=0;p>>3){case 1:{j.name=g.string();break}case 2:{j.version=g.string();break}case 3:{j.attributes&&j.attributes.length||(j.attributes=[]),j.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(g,g.uint32()));break}case 4:{j.droppedAttributesCount=g.uint32();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.name!=null&&g.hasOwnProperty("name")&&!ht.isString(g.name))return"name: string expected";if(g.version!=null&&g.hasOwnProperty("version")&&!ht.isString(g.version))return"version: string expected";if(g.attributes!=null&&g.hasOwnProperty("attributes")){if(!Array.isArray(g.attributes))return"attributes: array expected";for(var p=0;p>>0),p},b.toObject=function(g,p){p||(p={});var A={};if((p.arrays||p.defaults)&&(A.attributes=[]),p.defaults&&(A.name="",A.version="",A.droppedAttributesCount=0),g.name!=null&&g.hasOwnProperty("name")&&(A.name=g.name),g.version!=null&&g.hasOwnProperty("version")&&(A.version=g.version),g.attributes&&g.attributes.length){A.attributes=[];for(var j=0;j>>3){case 1:{j.attributes&&j.attributes.length||(j.attributes=[]),j.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(g,g.uint32()));break}case 2:{j.droppedAttributesCount=g.uint32();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.attributes!=null&&g.hasOwnProperty("attributes")){if(!Array.isArray(g.attributes))return"attributes: array expected";for(var p=0;p>>0),p},b.toObject=function(g,p){p||(p={});var A={};if((p.arrays||p.defaults)&&(A.attributes=[]),p.defaults&&(A.droppedAttributesCount=0),g.attributes&&g.attributes.length){A.attributes=[];for(var j=0;j>>3){case 1:{j.resourceSpans&&j.resourceSpans.length||(j.resourceSpans=[]),j.resourceSpans.push(at.opentelemetry.proto.trace.v1.ResourceSpans.decode(g,g.uint32()));break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.resourceSpans!=null&&g.hasOwnProperty("resourceSpans")){if(!Array.isArray(g.resourceSpans))return"resourceSpans: array expected";for(var p=0;p>>3){case 1:{j.resource=at.opentelemetry.proto.resource.v1.Resource.decode(g,g.uint32());break}case 2:{j.scopeSpans&&j.scopeSpans.length||(j.scopeSpans=[]),j.scopeSpans.push(at.opentelemetry.proto.trace.v1.ScopeSpans.decode(g,g.uint32()));break}case 3:{j.schemaUrl=g.string();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.resource!=null&&g.hasOwnProperty("resource")){var p=at.opentelemetry.proto.resource.v1.Resource.verify(g.resource);if(p)return"resource."+p}if(g.scopeSpans!=null&&g.hasOwnProperty("scopeSpans")){if(!Array.isArray(g.scopeSpans))return"scopeSpans: array expected";for(var A=0;A>>3){case 1:{j.scope=at.opentelemetry.proto.common.v1.InstrumentationScope.decode(g,g.uint32());break}case 2:{j.spans&&j.spans.length||(j.spans=[]),j.spans.push(at.opentelemetry.proto.trace.v1.Span.decode(g,g.uint32()));break}case 3:{j.schemaUrl=g.string();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.scope!=null&&g.hasOwnProperty("scope")){var p=at.opentelemetry.proto.common.v1.InstrumentationScope.verify(g.scope);if(p)return"scope."+p}if(g.spans!=null&&g.hasOwnProperty("spans")){if(!Array.isArray(g.spans))return"spans: array expected";for(var A=0;A>>3){case 1:{j.traceId=g.bytes();break}case 2:{j.spanId=g.bytes();break}case 3:{j.traceState=g.string();break}case 4:{j.parentSpanId=g.bytes();break}case 5:{j.name=g.string();break}case 6:{j.kind=g.int32();break}case 7:{j.startTimeUnixNano=g.fixed64();break}case 8:{j.endTimeUnixNano=g.fixed64();break}case 9:{j.attributes&&j.attributes.length||(j.attributes=[]),j.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(g,g.uint32()));break}case 10:{j.droppedAttributesCount=g.uint32();break}case 11:{j.events&&j.events.length||(j.events=[]),j.events.push(at.opentelemetry.proto.trace.v1.Span.Event.decode(g,g.uint32()));break}case 12:{j.droppedEventsCount=g.uint32();break}case 13:{j.links&&j.links.length||(j.links=[]),j.links.push(at.opentelemetry.proto.trace.v1.Span.Link.decode(g,g.uint32()));break}case 14:{j.droppedLinksCount=g.uint32();break}case 15:{j.status=at.opentelemetry.proto.trace.v1.Status.decode(g,g.uint32());break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.traceId!=null&&g.hasOwnProperty("traceId")&&!(g.traceId&&typeof g.traceId.length=="number"||ht.isString(g.traceId)))return"traceId: buffer expected";if(g.spanId!=null&&g.hasOwnProperty("spanId")&&!(g.spanId&&typeof g.spanId.length=="number"||ht.isString(g.spanId)))return"spanId: buffer expected";if(g.traceState!=null&&g.hasOwnProperty("traceState")&&!ht.isString(g.traceState))return"traceState: string expected";if(g.parentSpanId!=null&&g.hasOwnProperty("parentSpanId")&&!(g.parentSpanId&&typeof g.parentSpanId.length=="number"||ht.isString(g.parentSpanId)))return"parentSpanId: buffer expected";if(g.name!=null&&g.hasOwnProperty("name")&&!ht.isString(g.name))return"name: string expected";if(g.kind!=null&&g.hasOwnProperty("kind"))switch(g.kind){default:return"kind: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}if(g.startTimeUnixNano!=null&&g.hasOwnProperty("startTimeUnixNano")&&!ht.isInteger(g.startTimeUnixNano)&&!(g.startTimeUnixNano&&ht.isInteger(g.startTimeUnixNano.low)&&ht.isInteger(g.startTimeUnixNano.high)))return"startTimeUnixNano: integer|Long expected";if(g.endTimeUnixNano!=null&&g.hasOwnProperty("endTimeUnixNano")&&!ht.isInteger(g.endTimeUnixNano)&&!(g.endTimeUnixNano&&ht.isInteger(g.endTimeUnixNano.low)&&ht.isInteger(g.endTimeUnixNano.high)))return"endTimeUnixNano: integer|Long expected";if(g.attributes!=null&&g.hasOwnProperty("attributes")){if(!Array.isArray(g.attributes))return"attributes: array expected";for(var p=0;p=0&&(p.traceId=g.traceId)),g.spanId!=null&&(typeof g.spanId=="string"?ht.base64.decode(g.spanId,p.spanId=ht.newBuffer(ht.base64.length(g.spanId)),0):g.spanId.length>=0&&(p.spanId=g.spanId)),g.traceState!=null&&(p.traceState=String(g.traceState)),g.parentSpanId!=null&&(typeof g.parentSpanId=="string"?ht.base64.decode(g.parentSpanId,p.parentSpanId=ht.newBuffer(ht.base64.length(g.parentSpanId)),0):g.parentSpanId.length>=0&&(p.parentSpanId=g.parentSpanId)),g.name!=null&&(p.name=String(g.name)),g.kind){default:if(typeof g.kind=="number"){p.kind=g.kind;break}break;case"SPAN_KIND_UNSPECIFIED":case 0:p.kind=0;break;case"SPAN_KIND_INTERNAL":case 1:p.kind=1;break;case"SPAN_KIND_SERVER":case 2:p.kind=2;break;case"SPAN_KIND_CLIENT":case 3:p.kind=3;break;case"SPAN_KIND_PRODUCER":case 4:p.kind=4;break;case"SPAN_KIND_CONSUMER":case 5:p.kind=5;break}if(g.startTimeUnixNano!=null&&(ht.Long?(p.startTimeUnixNano=ht.Long.fromValue(g.startTimeUnixNano)).unsigned=!1:typeof g.startTimeUnixNano=="string"?p.startTimeUnixNano=parseInt(g.startTimeUnixNano,10):typeof g.startTimeUnixNano=="number"?p.startTimeUnixNano=g.startTimeUnixNano:typeof g.startTimeUnixNano=="object"&&(p.startTimeUnixNano=new ht.LongBits(g.startTimeUnixNano.low>>>0,g.startTimeUnixNano.high>>>0).toNumber())),g.endTimeUnixNano!=null&&(ht.Long?(p.endTimeUnixNano=ht.Long.fromValue(g.endTimeUnixNano)).unsigned=!1:typeof g.endTimeUnixNano=="string"?p.endTimeUnixNano=parseInt(g.endTimeUnixNano,10):typeof g.endTimeUnixNano=="number"?p.endTimeUnixNano=g.endTimeUnixNano:typeof g.endTimeUnixNano=="object"&&(p.endTimeUnixNano=new ht.LongBits(g.endTimeUnixNano.low>>>0,g.endTimeUnixNano.high>>>0).toNumber())),g.attributes){if(!Array.isArray(g.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.attributes: array expected");p.attributes=[];for(var A=0;A>>0),g.events){if(!Array.isArray(g.events))throw TypeError(".opentelemetry.proto.trace.v1.Span.events: array expected");p.events=[];for(var A=0;A>>0),g.links){if(!Array.isArray(g.links))throw TypeError(".opentelemetry.proto.trace.v1.Span.links: array expected");p.links=[];for(var A=0;A>>0),g.status!=null){if(typeof g.status!="object")throw TypeError(".opentelemetry.proto.trace.v1.Span.status: object expected");p.status=at.opentelemetry.proto.trace.v1.Status.fromObject(g.status)}return p},b.toObject=function(g,p){p||(p={});var A={};if((p.arrays||p.defaults)&&(A.attributes=[],A.events=[],A.links=[]),p.defaults){if(p.bytes===String?A.traceId="":(A.traceId=[],p.bytes!==Array&&(A.traceId=ht.newBuffer(A.traceId))),p.bytes===String?A.spanId="":(A.spanId=[],p.bytes!==Array&&(A.spanId=ht.newBuffer(A.spanId))),A.traceState="",p.bytes===String?A.parentSpanId="":(A.parentSpanId=[],p.bytes!==Array&&(A.parentSpanId=ht.newBuffer(A.parentSpanId))),A.name="",A.kind=p.enums===String?"SPAN_KIND_UNSPECIFIED":0,ht.Long){var j=new ht.Long(0,0,!1);A.startTimeUnixNano=p.longs===String?j.toString():p.longs===Number?j.toNumber():j}else A.startTimeUnixNano=p.longs===String?"0":0;if(ht.Long){var j=new ht.Long(0,0,!1);A.endTimeUnixNano=p.longs===String?j.toString():p.longs===Number?j.toNumber():j}else A.endTimeUnixNano=p.longs===String?"0":0;A.droppedAttributesCount=0,A.droppedEventsCount=0,A.droppedLinksCount=0,A.status=null}if(g.traceId!=null&&g.hasOwnProperty("traceId")&&(A.traceId=p.bytes===String?ht.base64.encode(g.traceId,0,g.traceId.length):p.bytes===Array?Array.prototype.slice.call(g.traceId):g.traceId),g.spanId!=null&&g.hasOwnProperty("spanId")&&(A.spanId=p.bytes===String?ht.base64.encode(g.spanId,0,g.spanId.length):p.bytes===Array?Array.prototype.slice.call(g.spanId):g.spanId),g.traceState!=null&&g.hasOwnProperty("traceState")&&(A.traceState=g.traceState),g.parentSpanId!=null&&g.hasOwnProperty("parentSpanId")&&(A.parentSpanId=p.bytes===String?ht.base64.encode(g.parentSpanId,0,g.parentSpanId.length):p.bytes===Array?Array.prototype.slice.call(g.parentSpanId):g.parentSpanId),g.name!=null&&g.hasOwnProperty("name")&&(A.name=g.name),g.kind!=null&&g.hasOwnProperty("kind")&&(A.kind=p.enums===String?at.opentelemetry.proto.trace.v1.Span.SpanKind[g.kind]===void 0?g.kind:at.opentelemetry.proto.trace.v1.Span.SpanKind[g.kind]:g.kind),g.startTimeUnixNano!=null&&g.hasOwnProperty("startTimeUnixNano")&&(typeof g.startTimeUnixNano=="number"?A.startTimeUnixNano=p.longs===String?String(g.startTimeUnixNano):g.startTimeUnixNano:A.startTimeUnixNano=p.longs===String?ht.Long.prototype.toString.call(g.startTimeUnixNano):p.longs===Number?new ht.LongBits(g.startTimeUnixNano.low>>>0,g.startTimeUnixNano.high>>>0).toNumber():g.startTimeUnixNano),g.endTimeUnixNano!=null&&g.hasOwnProperty("endTimeUnixNano")&&(typeof g.endTimeUnixNano=="number"?A.endTimeUnixNano=p.longs===String?String(g.endTimeUnixNano):g.endTimeUnixNano:A.endTimeUnixNano=p.longs===String?ht.Long.prototype.toString.call(g.endTimeUnixNano):p.longs===Number?new ht.LongBits(g.endTimeUnixNano.low>>>0,g.endTimeUnixNano.high>>>0).toNumber():g.endTimeUnixNano),g.attributes&&g.attributes.length){A.attributes=[];for(var se=0;se>>3){case 1:{se.timeUnixNano=p.fixed64();break}case 2:{se.name=p.string();break}case 3:{se.attributes&&se.attributes.length||(se.attributes=[]),se.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(p,p.uint32()));break}case 4:{se.droppedAttributesCount=p.uint32();break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){if(typeof p!="object"||p===null)return"object expected";if(p.timeUnixNano!=null&&p.hasOwnProperty("timeUnixNano")&&!ht.isInteger(p.timeUnixNano)&&!(p.timeUnixNano&&ht.isInteger(p.timeUnixNano.low)&&ht.isInteger(p.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(p.name!=null&&p.hasOwnProperty("name")&&!ht.isString(p.name))return"name: string expected";if(p.attributes!=null&&p.hasOwnProperty("attributes")){if(!Array.isArray(p.attributes))return"attributes: array expected";for(var A=0;A>>0,p.timeUnixNano.high>>>0).toNumber())),p.name!=null&&(A.name=String(p.name)),p.attributes){if(!Array.isArray(p.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Event.attributes: array expected");A.attributes=[];for(var j=0;j>>0),A},k.toObject=function(p,A){A||(A={});var j={};if((A.arrays||A.defaults)&&(j.attributes=[]),A.defaults){if(ht.Long){var se=new ht.Long(0,0,!1);j.timeUnixNano=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.timeUnixNano=A.longs===String?"0":0;j.name="",j.droppedAttributesCount=0}if(p.timeUnixNano!=null&&p.hasOwnProperty("timeUnixNano")&&(typeof p.timeUnixNano=="number"?j.timeUnixNano=A.longs===String?String(p.timeUnixNano):p.timeUnixNano:j.timeUnixNano=A.longs===String?ht.Long.prototype.toString.call(p.timeUnixNano):A.longs===Number?new ht.LongBits(p.timeUnixNano.low>>>0,p.timeUnixNano.high>>>0).toNumber():p.timeUnixNano),p.name!=null&&p.hasOwnProperty("name")&&(j.name=p.name),p.attributes&&p.attributes.length){j.attributes=[];for(var We=0;We>>3){case 1:{se.traceId=p.bytes();break}case 2:{se.spanId=p.bytes();break}case 3:{se.traceState=p.string();break}case 4:{se.attributes&&se.attributes.length||(se.attributes=[]),se.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(p,p.uint32()));break}case 5:{se.droppedAttributesCount=p.uint32();break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){if(typeof p!="object"||p===null)return"object expected";if(p.traceId!=null&&p.hasOwnProperty("traceId")&&!(p.traceId&&typeof p.traceId.length=="number"||ht.isString(p.traceId)))return"traceId: buffer expected";if(p.spanId!=null&&p.hasOwnProperty("spanId")&&!(p.spanId&&typeof p.spanId.length=="number"||ht.isString(p.spanId)))return"spanId: buffer expected";if(p.traceState!=null&&p.hasOwnProperty("traceState")&&!ht.isString(p.traceState))return"traceState: string expected";if(p.attributes!=null&&p.hasOwnProperty("attributes")){if(!Array.isArray(p.attributes))return"attributes: array expected";for(var A=0;A=0&&(A.traceId=p.traceId)),p.spanId!=null&&(typeof p.spanId=="string"?ht.base64.decode(p.spanId,A.spanId=ht.newBuffer(ht.base64.length(p.spanId)),0):p.spanId.length>=0&&(A.spanId=p.spanId)),p.traceState!=null&&(A.traceState=String(p.traceState)),p.attributes){if(!Array.isArray(p.attributes))throw TypeError(".opentelemetry.proto.trace.v1.Span.Link.attributes: array expected");A.attributes=[];for(var j=0;j>>0),A},k.toObject=function(p,A){A||(A={});var j={};if((A.arrays||A.defaults)&&(j.attributes=[]),A.defaults&&(A.bytes===String?j.traceId="":(j.traceId=[],A.bytes!==Array&&(j.traceId=ht.newBuffer(j.traceId))),A.bytes===String?j.spanId="":(j.spanId=[],A.bytes!==Array&&(j.spanId=ht.newBuffer(j.spanId))),j.traceState="",j.droppedAttributesCount=0),p.traceId!=null&&p.hasOwnProperty("traceId")&&(j.traceId=A.bytes===String?ht.base64.encode(p.traceId,0,p.traceId.length):A.bytes===Array?Array.prototype.slice.call(p.traceId):p.traceId),p.spanId!=null&&p.hasOwnProperty("spanId")&&(j.spanId=A.bytes===String?ht.base64.encode(p.spanId,0,p.spanId.length):A.bytes===Array?Array.prototype.slice.call(p.spanId):p.spanId),p.traceState!=null&&p.hasOwnProperty("traceState")&&(j.traceState=p.traceState),p.attributes&&p.attributes.length){j.attributes=[];for(var se=0;se>>3){case 2:{j.message=g.string();break}case 3:{j.code=g.int32();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.message!=null&&g.hasOwnProperty("message")&&!ht.isString(g.message))return"message: string expected";if(g.code!=null&&g.hasOwnProperty("code"))switch(g.code){default:return"code: enum value expected";case 0:case 1:case 2:break}return null},b.fromObject=function(g){if(g instanceof at.opentelemetry.proto.trace.v1.Status)return g;var p=new at.opentelemetry.proto.trace.v1.Status;switch(g.message!=null&&(p.message=String(g.message)),g.code){default:if(typeof g.code=="number"){p.code=g.code;break}break;case"STATUS_CODE_UNSET":case 0:p.code=0;break;case"STATUS_CODE_OK":case 1:p.code=1;break;case"STATUS_CODE_ERROR":case 2:p.code=2;break}return p},b.toObject=function(g,p){p||(p={});var A={};return p.defaults&&(A.message="",A.code=p.enums===String?"STATUS_CODE_UNSET":0),g.message!=null&&g.hasOwnProperty("message")&&(A.message=g.message),g.code!=null&&g.hasOwnProperty("code")&&(A.code=p.enums===String?at.opentelemetry.proto.trace.v1.Status.StatusCode[g.code]===void 0?g.code:at.opentelemetry.proto.trace.v1.Status.StatusCode[g.code]:g.code),A},b.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},b.getTypeUrl=function(g){return g===void 0&&(g="type.googleapis.com"),g+"/opentelemetry.proto.trace.v1.Status"},b.StatusCode=function(){var k={},g=Object.create(k);return g[k[0]="STATUS_CODE_UNSET"]=0,g[k[1]="STATUS_CODE_OK"]=1,g[k[2]="STATUS_CODE_ERROR"]=2,g}(),b}(),y}(),f}(),c.collector=function(){var f={};return f.trace=function(){var y={};return y.v1=function(){var b={};return b.TraceService=function(){function k(g,p,A){Za.rpc.Service.call(this,g,p,A)}return(k.prototype=Object.create(Za.rpc.Service.prototype)).constructor=k,k.create=function(p,A,j){return new this(p,A,j)},Object.defineProperty(k.prototype.export=function g(p,A){return this.rpcCall(g,at.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest,at.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,p,A)},"name",{value:"Export"}),k}(),b.ExportTraceServiceRequest=function(){function k(g){if(this.resourceSpans=[],g)for(var p=Object.keys(g),A=0;A>>3){case 1:{se.resourceSpans&&se.resourceSpans.length||(se.resourceSpans=[]),se.resourceSpans.push(at.opentelemetry.proto.trace.v1.ResourceSpans.decode(p,p.uint32()));break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){if(typeof p!="object"||p===null)return"object expected";if(p.resourceSpans!=null&&p.hasOwnProperty("resourceSpans")){if(!Array.isArray(p.resourceSpans))return"resourceSpans: array expected";for(var A=0;A>>3){case 1:{se.partialSuccess=at.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.decode(p,p.uint32());break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){if(typeof p!="object"||p===null)return"object expected";if(p.partialSuccess!=null&&p.hasOwnProperty("partialSuccess")){var A=at.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.verify(p.partialSuccess);if(A)return"partialSuccess."+A}return null},k.fromObject=function(p){if(p instanceof at.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse)return p;var A=new at.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse;if(p.partialSuccess!=null){if(typeof p.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse.partialSuccess: object expected");A.partialSuccess=at.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.fromObject(p.partialSuccess)}return A},k.toObject=function(p,A){A||(A={});var j={};return A.defaults&&(j.partialSuccess=null),p.partialSuccess!=null&&p.hasOwnProperty("partialSuccess")&&(j.partialSuccess=at.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess.toObject(p.partialSuccess,A)),j},k.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},k.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse"},k}(),b.ExportTracePartialSuccess=function(){function k(g){if(g)for(var p=Object.keys(g),A=0;A>>3){case 1:{se.rejectedSpans=p.int64();break}case 2:{se.errorMessage=p.string();break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){return typeof p!="object"||p===null?"object expected":p.rejectedSpans!=null&&p.hasOwnProperty("rejectedSpans")&&!ht.isInteger(p.rejectedSpans)&&!(p.rejectedSpans&&ht.isInteger(p.rejectedSpans.low)&&ht.isInteger(p.rejectedSpans.high))?"rejectedSpans: integer|Long expected":p.errorMessage!=null&&p.hasOwnProperty("errorMessage")&&!ht.isString(p.errorMessage)?"errorMessage: string expected":null},k.fromObject=function(p){if(p instanceof at.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess)return p;var A=new at.opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess;return p.rejectedSpans!=null&&(ht.Long?(A.rejectedSpans=ht.Long.fromValue(p.rejectedSpans)).unsigned=!1:typeof p.rejectedSpans=="string"?A.rejectedSpans=parseInt(p.rejectedSpans,10):typeof p.rejectedSpans=="number"?A.rejectedSpans=p.rejectedSpans:typeof p.rejectedSpans=="object"&&(A.rejectedSpans=new ht.LongBits(p.rejectedSpans.low>>>0,p.rejectedSpans.high>>>0).toNumber())),p.errorMessage!=null&&(A.errorMessage=String(p.errorMessage)),A},k.toObject=function(p,A){A||(A={});var j={};if(A.defaults){if(ht.Long){var se=new ht.Long(0,0,!1);j.rejectedSpans=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.rejectedSpans=A.longs===String?"0":0;j.errorMessage=""}return p.rejectedSpans!=null&&p.hasOwnProperty("rejectedSpans")&&(typeof p.rejectedSpans=="number"?j.rejectedSpans=A.longs===String?String(p.rejectedSpans):p.rejectedSpans:j.rejectedSpans=A.longs===String?ht.Long.prototype.toString.call(p.rejectedSpans):A.longs===Number?new ht.LongBits(p.rejectedSpans.low>>>0,p.rejectedSpans.high>>>0).toNumber():p.rejectedSpans),p.errorMessage!=null&&p.hasOwnProperty("errorMessage")&&(j.errorMessage=p.errorMessage),j},k.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},k.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/opentelemetry.proto.collector.trace.v1.ExportTracePartialSuccess"},k}(),b}(),y}(),f.metrics=function(){var y={};return y.v1=function(){var b={};return b.MetricsService=function(){function k(g,p,A){Za.rpc.Service.call(this,g,p,A)}return(k.prototype=Object.create(Za.rpc.Service.prototype)).constructor=k,k.create=function(p,A,j){return new this(p,A,j)},Object.defineProperty(k.prototype.export=function g(p,A){return this.rpcCall(g,at.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,at.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,p,A)},"name",{value:"Export"}),k}(),b.ExportMetricsServiceRequest=function(){function k(g){if(this.resourceMetrics=[],g)for(var p=Object.keys(g),A=0;A>>3){case 1:{se.resourceMetrics&&se.resourceMetrics.length||(se.resourceMetrics=[]),se.resourceMetrics.push(at.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(p,p.uint32()));break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){if(typeof p!="object"||p===null)return"object expected";if(p.resourceMetrics!=null&&p.hasOwnProperty("resourceMetrics")){if(!Array.isArray(p.resourceMetrics))return"resourceMetrics: array expected";for(var A=0;A>>3){case 1:{se.partialSuccess=at.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.decode(p,p.uint32());break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){if(typeof p!="object"||p===null)return"object expected";if(p.partialSuccess!=null&&p.hasOwnProperty("partialSuccess")){var A=at.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.verify(p.partialSuccess);if(A)return"partialSuccess."+A}return null},k.fromObject=function(p){if(p instanceof at.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse)return p;var A=new at.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse;if(p.partialSuccess!=null){if(typeof p.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse.partialSuccess: object expected");A.partialSuccess=at.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.fromObject(p.partialSuccess)}return A},k.toObject=function(p,A){A||(A={});var j={};return A.defaults&&(j.partialSuccess=null),p.partialSuccess!=null&&p.hasOwnProperty("partialSuccess")&&(j.partialSuccess=at.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess.toObject(p.partialSuccess,A)),j},k.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},k.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse"},k}(),b.ExportMetricsPartialSuccess=function(){function k(g){if(g)for(var p=Object.keys(g),A=0;A>>3){case 1:{se.rejectedDataPoints=p.int64();break}case 2:{se.errorMessage=p.string();break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){return typeof p!="object"||p===null?"object expected":p.rejectedDataPoints!=null&&p.hasOwnProperty("rejectedDataPoints")&&!ht.isInteger(p.rejectedDataPoints)&&!(p.rejectedDataPoints&&ht.isInteger(p.rejectedDataPoints.low)&&ht.isInteger(p.rejectedDataPoints.high))?"rejectedDataPoints: integer|Long expected":p.errorMessage!=null&&p.hasOwnProperty("errorMessage")&&!ht.isString(p.errorMessage)?"errorMessage: string expected":null},k.fromObject=function(p){if(p instanceof at.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess)return p;var A=new at.opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess;return p.rejectedDataPoints!=null&&(ht.Long?(A.rejectedDataPoints=ht.Long.fromValue(p.rejectedDataPoints)).unsigned=!1:typeof p.rejectedDataPoints=="string"?A.rejectedDataPoints=parseInt(p.rejectedDataPoints,10):typeof p.rejectedDataPoints=="number"?A.rejectedDataPoints=p.rejectedDataPoints:typeof p.rejectedDataPoints=="object"&&(A.rejectedDataPoints=new ht.LongBits(p.rejectedDataPoints.low>>>0,p.rejectedDataPoints.high>>>0).toNumber())),p.errorMessage!=null&&(A.errorMessage=String(p.errorMessage)),A},k.toObject=function(p,A){A||(A={});var j={};if(A.defaults){if(ht.Long){var se=new ht.Long(0,0,!1);j.rejectedDataPoints=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.rejectedDataPoints=A.longs===String?"0":0;j.errorMessage=""}return p.rejectedDataPoints!=null&&p.hasOwnProperty("rejectedDataPoints")&&(typeof p.rejectedDataPoints=="number"?j.rejectedDataPoints=A.longs===String?String(p.rejectedDataPoints):p.rejectedDataPoints:j.rejectedDataPoints=A.longs===String?ht.Long.prototype.toString.call(p.rejectedDataPoints):A.longs===Number?new ht.LongBits(p.rejectedDataPoints.low>>>0,p.rejectedDataPoints.high>>>0).toNumber():p.rejectedDataPoints),p.errorMessage!=null&&p.hasOwnProperty("errorMessage")&&(j.errorMessage=p.errorMessage),j},k.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},k.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/opentelemetry.proto.collector.metrics.v1.ExportMetricsPartialSuccess"},k}(),b}(),y}(),f.logs=function(){var y={};return y.v1=function(){var b={};return b.LogsService=function(){function k(g,p,A){Za.rpc.Service.call(this,g,p,A)}return(k.prototype=Object.create(Za.rpc.Service.prototype)).constructor=k,k.create=function(p,A,j){return new this(p,A,j)},Object.defineProperty(k.prototype.export=function g(p,A){return this.rpcCall(g,at.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,at.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,p,A)},"name",{value:"Export"}),k}(),b.ExportLogsServiceRequest=function(){function k(g){if(this.resourceLogs=[],g)for(var p=Object.keys(g),A=0;A>>3){case 1:{se.resourceLogs&&se.resourceLogs.length||(se.resourceLogs=[]),se.resourceLogs.push(at.opentelemetry.proto.logs.v1.ResourceLogs.decode(p,p.uint32()));break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){if(typeof p!="object"||p===null)return"object expected";if(p.resourceLogs!=null&&p.hasOwnProperty("resourceLogs")){if(!Array.isArray(p.resourceLogs))return"resourceLogs: array expected";for(var A=0;A>>3){case 1:{se.partialSuccess=at.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.decode(p,p.uint32());break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){if(typeof p!="object"||p===null)return"object expected";if(p.partialSuccess!=null&&p.hasOwnProperty("partialSuccess")){var A=at.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.verify(p.partialSuccess);if(A)return"partialSuccess."+A}return null},k.fromObject=function(p){if(p instanceof at.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse)return p;var A=new at.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse;if(p.partialSuccess!=null){if(typeof p.partialSuccess!="object")throw TypeError(".opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse.partialSuccess: object expected");A.partialSuccess=at.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.fromObject(p.partialSuccess)}return A},k.toObject=function(p,A){A||(A={});var j={};return A.defaults&&(j.partialSuccess=null),p.partialSuccess!=null&&p.hasOwnProperty("partialSuccess")&&(j.partialSuccess=at.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess.toObject(p.partialSuccess,A)),j},k.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},k.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse"},k}(),b.ExportLogsPartialSuccess=function(){function k(g){if(g)for(var p=Object.keys(g),A=0;A>>3){case 1:{se.rejectedLogRecords=p.int64();break}case 2:{se.errorMessage=p.string();break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){return typeof p!="object"||p===null?"object expected":p.rejectedLogRecords!=null&&p.hasOwnProperty("rejectedLogRecords")&&!ht.isInteger(p.rejectedLogRecords)&&!(p.rejectedLogRecords&&ht.isInteger(p.rejectedLogRecords.low)&&ht.isInteger(p.rejectedLogRecords.high))?"rejectedLogRecords: integer|Long expected":p.errorMessage!=null&&p.hasOwnProperty("errorMessage")&&!ht.isString(p.errorMessage)?"errorMessage: string expected":null},k.fromObject=function(p){if(p instanceof at.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess)return p;var A=new at.opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess;return p.rejectedLogRecords!=null&&(ht.Long?(A.rejectedLogRecords=ht.Long.fromValue(p.rejectedLogRecords)).unsigned=!1:typeof p.rejectedLogRecords=="string"?A.rejectedLogRecords=parseInt(p.rejectedLogRecords,10):typeof p.rejectedLogRecords=="number"?A.rejectedLogRecords=p.rejectedLogRecords:typeof p.rejectedLogRecords=="object"&&(A.rejectedLogRecords=new ht.LongBits(p.rejectedLogRecords.low>>>0,p.rejectedLogRecords.high>>>0).toNumber())),p.errorMessage!=null&&(A.errorMessage=String(p.errorMessage)),A},k.toObject=function(p,A){A||(A={});var j={};if(A.defaults){if(ht.Long){var se=new ht.Long(0,0,!1);j.rejectedLogRecords=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.rejectedLogRecords=A.longs===String?"0":0;j.errorMessage=""}return p.rejectedLogRecords!=null&&p.hasOwnProperty("rejectedLogRecords")&&(typeof p.rejectedLogRecords=="number"?j.rejectedLogRecords=A.longs===String?String(p.rejectedLogRecords):p.rejectedLogRecords:j.rejectedLogRecords=A.longs===String?ht.Long.prototype.toString.call(p.rejectedLogRecords):A.longs===Number?new ht.LongBits(p.rejectedLogRecords.low>>>0,p.rejectedLogRecords.high>>>0).toNumber():p.rejectedLogRecords),p.errorMessage!=null&&p.hasOwnProperty("errorMessage")&&(j.errorMessage=p.errorMessage),j},k.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},k.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/opentelemetry.proto.collector.logs.v1.ExportLogsPartialSuccess"},k}(),b}(),y}(),f}(),c.metrics=function(){var f={};return f.v1=function(){var y={};return y.MetricsData=function(){function b(k){if(this.resourceMetrics=[],k)for(var g=Object.keys(k),p=0;p>>3){case 1:{j.resourceMetrics&&j.resourceMetrics.length||(j.resourceMetrics=[]),j.resourceMetrics.push(at.opentelemetry.proto.metrics.v1.ResourceMetrics.decode(g,g.uint32()));break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.resourceMetrics!=null&&g.hasOwnProperty("resourceMetrics")){if(!Array.isArray(g.resourceMetrics))return"resourceMetrics: array expected";for(var p=0;p>>3){case 1:{j.resource=at.opentelemetry.proto.resource.v1.Resource.decode(g,g.uint32());break}case 2:{j.scopeMetrics&&j.scopeMetrics.length||(j.scopeMetrics=[]),j.scopeMetrics.push(at.opentelemetry.proto.metrics.v1.ScopeMetrics.decode(g,g.uint32()));break}case 3:{j.schemaUrl=g.string();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.resource!=null&&g.hasOwnProperty("resource")){var p=at.opentelemetry.proto.resource.v1.Resource.verify(g.resource);if(p)return"resource."+p}if(g.scopeMetrics!=null&&g.hasOwnProperty("scopeMetrics")){if(!Array.isArray(g.scopeMetrics))return"scopeMetrics: array expected";for(var A=0;A>>3){case 1:{j.scope=at.opentelemetry.proto.common.v1.InstrumentationScope.decode(g,g.uint32());break}case 2:{j.metrics&&j.metrics.length||(j.metrics=[]),j.metrics.push(at.opentelemetry.proto.metrics.v1.Metric.decode(g,g.uint32()));break}case 3:{j.schemaUrl=g.string();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.scope!=null&&g.hasOwnProperty("scope")){var p=at.opentelemetry.proto.common.v1.InstrumentationScope.verify(g.scope);if(p)return"scope."+p}if(g.metrics!=null&&g.hasOwnProperty("metrics")){if(!Array.isArray(g.metrics))return"metrics: array expected";for(var A=0;A>>3){case 1:{se.name=p.string();break}case 2:{se.description=p.string();break}case 3:{se.unit=p.string();break}case 5:{se.gauge=at.opentelemetry.proto.metrics.v1.Gauge.decode(p,p.uint32());break}case 7:{se.sum=at.opentelemetry.proto.metrics.v1.Sum.decode(p,p.uint32());break}case 9:{se.histogram=at.opentelemetry.proto.metrics.v1.Histogram.decode(p,p.uint32());break}case 10:{se.exponentialHistogram=at.opentelemetry.proto.metrics.v1.ExponentialHistogram.decode(p,p.uint32());break}case 11:{se.summary=at.opentelemetry.proto.metrics.v1.Summary.decode(p,p.uint32());break}default:p.skipType(We&7);break}}return se},b.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},b.verify=function(p){if(typeof p!="object"||p===null)return"object expected";var A={};if(p.name!=null&&p.hasOwnProperty("name")&&!ht.isString(p.name))return"name: string expected";if(p.description!=null&&p.hasOwnProperty("description")&&!ht.isString(p.description))return"description: string expected";if(p.unit!=null&&p.hasOwnProperty("unit")&&!ht.isString(p.unit))return"unit: string expected";if(p.gauge!=null&&p.hasOwnProperty("gauge")){A.data=1;{var j=at.opentelemetry.proto.metrics.v1.Gauge.verify(p.gauge);if(j)return"gauge."+j}}if(p.sum!=null&&p.hasOwnProperty("sum")){if(A.data===1)return"data: multiple values";A.data=1;{var j=at.opentelemetry.proto.metrics.v1.Sum.verify(p.sum);if(j)return"sum."+j}}if(p.histogram!=null&&p.hasOwnProperty("histogram")){if(A.data===1)return"data: multiple values";A.data=1;{var j=at.opentelemetry.proto.metrics.v1.Histogram.verify(p.histogram);if(j)return"histogram."+j}}if(p.exponentialHistogram!=null&&p.hasOwnProperty("exponentialHistogram")){if(A.data===1)return"data: multiple values";A.data=1;{var j=at.opentelemetry.proto.metrics.v1.ExponentialHistogram.verify(p.exponentialHistogram);if(j)return"exponentialHistogram."+j}}if(p.summary!=null&&p.hasOwnProperty("summary")){if(A.data===1)return"data: multiple values";A.data=1;{var j=at.opentelemetry.proto.metrics.v1.Summary.verify(p.summary);if(j)return"summary."+j}}return null},b.fromObject=function(p){if(p instanceof at.opentelemetry.proto.metrics.v1.Metric)return p;var A=new at.opentelemetry.proto.metrics.v1.Metric;if(p.name!=null&&(A.name=String(p.name)),p.description!=null&&(A.description=String(p.description)),p.unit!=null&&(A.unit=String(p.unit)),p.gauge!=null){if(typeof p.gauge!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.gauge: object expected");A.gauge=at.opentelemetry.proto.metrics.v1.Gauge.fromObject(p.gauge)}if(p.sum!=null){if(typeof p.sum!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.sum: object expected");A.sum=at.opentelemetry.proto.metrics.v1.Sum.fromObject(p.sum)}if(p.histogram!=null){if(typeof p.histogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.histogram: object expected");A.histogram=at.opentelemetry.proto.metrics.v1.Histogram.fromObject(p.histogram)}if(p.exponentialHistogram!=null){if(typeof p.exponentialHistogram!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.exponentialHistogram: object expected");A.exponentialHistogram=at.opentelemetry.proto.metrics.v1.ExponentialHistogram.fromObject(p.exponentialHistogram)}if(p.summary!=null){if(typeof p.summary!="object")throw TypeError(".opentelemetry.proto.metrics.v1.Metric.summary: object expected");A.summary=at.opentelemetry.proto.metrics.v1.Summary.fromObject(p.summary)}return A},b.toObject=function(p,A){A||(A={});var j={};return A.defaults&&(j.name="",j.description="",j.unit=""),p.name!=null&&p.hasOwnProperty("name")&&(j.name=p.name),p.description!=null&&p.hasOwnProperty("description")&&(j.description=p.description),p.unit!=null&&p.hasOwnProperty("unit")&&(j.unit=p.unit),p.gauge!=null&&p.hasOwnProperty("gauge")&&(j.gauge=at.opentelemetry.proto.metrics.v1.Gauge.toObject(p.gauge,A),A.oneofs&&(j.data="gauge")),p.sum!=null&&p.hasOwnProperty("sum")&&(j.sum=at.opentelemetry.proto.metrics.v1.Sum.toObject(p.sum,A),A.oneofs&&(j.data="sum")),p.histogram!=null&&p.hasOwnProperty("histogram")&&(j.histogram=at.opentelemetry.proto.metrics.v1.Histogram.toObject(p.histogram,A),A.oneofs&&(j.data="histogram")),p.exponentialHistogram!=null&&p.hasOwnProperty("exponentialHistogram")&&(j.exponentialHistogram=at.opentelemetry.proto.metrics.v1.ExponentialHistogram.toObject(p.exponentialHistogram,A),A.oneofs&&(j.data="exponentialHistogram")),p.summary!=null&&p.hasOwnProperty("summary")&&(j.summary=at.opentelemetry.proto.metrics.v1.Summary.toObject(p.summary,A),A.oneofs&&(j.data="summary")),j},b.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},b.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/opentelemetry.proto.metrics.v1.Metric"},b}(),y.Gauge=function(){function b(k){if(this.dataPoints=[],k)for(var g=Object.keys(k),p=0;p>>3){case 1:{j.dataPoints&&j.dataPoints.length||(j.dataPoints=[]),j.dataPoints.push(at.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(g,g.uint32()));break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.dataPoints!=null&&g.hasOwnProperty("dataPoints")){if(!Array.isArray(g.dataPoints))return"dataPoints: array expected";for(var p=0;p>>3){case 1:{j.dataPoints&&j.dataPoints.length||(j.dataPoints=[]),j.dataPoints.push(at.opentelemetry.proto.metrics.v1.NumberDataPoint.decode(g,g.uint32()));break}case 2:{j.aggregationTemporality=g.int32();break}case 3:{j.isMonotonic=g.bool();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.dataPoints!=null&&g.hasOwnProperty("dataPoints")){if(!Array.isArray(g.dataPoints))return"dataPoints: array expected";for(var p=0;p>>3){case 1:{j.dataPoints&&j.dataPoints.length||(j.dataPoints=[]),j.dataPoints.push(at.opentelemetry.proto.metrics.v1.HistogramDataPoint.decode(g,g.uint32()));break}case 2:{j.aggregationTemporality=g.int32();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.dataPoints!=null&&g.hasOwnProperty("dataPoints")){if(!Array.isArray(g.dataPoints))return"dataPoints: array expected";for(var p=0;p>>3){case 1:{j.dataPoints&&j.dataPoints.length||(j.dataPoints=[]),j.dataPoints.push(at.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.decode(g,g.uint32()));break}case 2:{j.aggregationTemporality=g.int32();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.dataPoints!=null&&g.hasOwnProperty("dataPoints")){if(!Array.isArray(g.dataPoints))return"dataPoints: array expected";for(var p=0;p>>3){case 1:{j.dataPoints&&j.dataPoints.length||(j.dataPoints=[]),j.dataPoints.push(at.opentelemetry.proto.metrics.v1.SummaryDataPoint.decode(g,g.uint32()));break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.dataPoints!=null&&g.hasOwnProperty("dataPoints")){if(!Array.isArray(g.dataPoints))return"dataPoints: array expected";for(var p=0;p>>3){case 7:{se.attributes&&se.attributes.length||(se.attributes=[]),se.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(p,p.uint32()));break}case 2:{se.startTimeUnixNano=p.fixed64();break}case 3:{se.timeUnixNano=p.fixed64();break}case 4:{se.asDouble=p.double();break}case 6:{se.asInt=p.sfixed64();break}case 5:{se.exemplars&&se.exemplars.length||(se.exemplars=[]),se.exemplars.push(at.opentelemetry.proto.metrics.v1.Exemplar.decode(p,p.uint32()));break}case 8:{se.flags=p.uint32();break}default:p.skipType(We&7);break}}return se},b.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},b.verify=function(p){if(typeof p!="object"||p===null)return"object expected";var A={};if(p.attributes!=null&&p.hasOwnProperty("attributes")){if(!Array.isArray(p.attributes))return"attributes: array expected";for(var j=0;j>>0,p.startTimeUnixNano.high>>>0).toNumber())),p.timeUnixNano!=null&&(ht.Long?(A.timeUnixNano=ht.Long.fromValue(p.timeUnixNano)).unsigned=!1:typeof p.timeUnixNano=="string"?A.timeUnixNano=parseInt(p.timeUnixNano,10):typeof p.timeUnixNano=="number"?A.timeUnixNano=p.timeUnixNano:typeof p.timeUnixNano=="object"&&(A.timeUnixNano=new ht.LongBits(p.timeUnixNano.low>>>0,p.timeUnixNano.high>>>0).toNumber())),p.asDouble!=null&&(A.asDouble=Number(p.asDouble)),p.asInt!=null&&(ht.Long?(A.asInt=ht.Long.fromValue(p.asInt)).unsigned=!1:typeof p.asInt=="string"?A.asInt=parseInt(p.asInt,10):typeof p.asInt=="number"?A.asInt=p.asInt:typeof p.asInt=="object"&&(A.asInt=new ht.LongBits(p.asInt.low>>>0,p.asInt.high>>>0).toNumber())),p.exemplars){if(!Array.isArray(p.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.NumberDataPoint.exemplars: array expected");A.exemplars=[];for(var j=0;j>>0),A},b.toObject=function(p,A){A||(A={});var j={};if((A.arrays||A.defaults)&&(j.exemplars=[],j.attributes=[]),A.defaults){if(ht.Long){var se=new ht.Long(0,0,!1);j.startTimeUnixNano=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.startTimeUnixNano=A.longs===String?"0":0;if(ht.Long){var se=new ht.Long(0,0,!1);j.timeUnixNano=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.timeUnixNano=A.longs===String?"0":0;j.flags=0}if(p.startTimeUnixNano!=null&&p.hasOwnProperty("startTimeUnixNano")&&(typeof p.startTimeUnixNano=="number"?j.startTimeUnixNano=A.longs===String?String(p.startTimeUnixNano):p.startTimeUnixNano:j.startTimeUnixNano=A.longs===String?ht.Long.prototype.toString.call(p.startTimeUnixNano):A.longs===Number?new ht.LongBits(p.startTimeUnixNano.low>>>0,p.startTimeUnixNano.high>>>0).toNumber():p.startTimeUnixNano),p.timeUnixNano!=null&&p.hasOwnProperty("timeUnixNano")&&(typeof p.timeUnixNano=="number"?j.timeUnixNano=A.longs===String?String(p.timeUnixNano):p.timeUnixNano:j.timeUnixNano=A.longs===String?ht.Long.prototype.toString.call(p.timeUnixNano):A.longs===Number?new ht.LongBits(p.timeUnixNano.low>>>0,p.timeUnixNano.high>>>0).toNumber():p.timeUnixNano),p.asDouble!=null&&p.hasOwnProperty("asDouble")&&(j.asDouble=A.json&&!isFinite(p.asDouble)?String(p.asDouble):p.asDouble,A.oneofs&&(j.value="asDouble")),p.exemplars&&p.exemplars.length){j.exemplars=[];for(var We=0;We>>0,p.asInt.high>>>0).toNumber():p.asInt,A.oneofs&&(j.value="asInt")),p.attributes&&p.attributes.length){j.attributes=[];for(var We=0;We>>3){case 9:{se.attributes&&se.attributes.length||(se.attributes=[]),se.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(p,p.uint32()));break}case 2:{se.startTimeUnixNano=p.fixed64();break}case 3:{se.timeUnixNano=p.fixed64();break}case 4:{se.count=p.fixed64();break}case 5:{se.sum=p.double();break}case 6:{if(se.bucketCounts&&se.bucketCounts.length||(se.bucketCounts=[]),(We&7)===2)for(var ve=p.uint32()+p.pos;p.pos>>0,p.startTimeUnixNano.high>>>0).toNumber())),p.timeUnixNano!=null&&(ht.Long?(A.timeUnixNano=ht.Long.fromValue(p.timeUnixNano)).unsigned=!1:typeof p.timeUnixNano=="string"?A.timeUnixNano=parseInt(p.timeUnixNano,10):typeof p.timeUnixNano=="number"?A.timeUnixNano=p.timeUnixNano:typeof p.timeUnixNano=="object"&&(A.timeUnixNano=new ht.LongBits(p.timeUnixNano.low>>>0,p.timeUnixNano.high>>>0).toNumber())),p.count!=null&&(ht.Long?(A.count=ht.Long.fromValue(p.count)).unsigned=!1:typeof p.count=="string"?A.count=parseInt(p.count,10):typeof p.count=="number"?A.count=p.count:typeof p.count=="object"&&(A.count=new ht.LongBits(p.count.low>>>0,p.count.high>>>0).toNumber())),p.sum!=null&&(A.sum=Number(p.sum)),p.bucketCounts){if(!Array.isArray(p.bucketCounts))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.bucketCounts: array expected");A.bucketCounts=[];for(var j=0;j>>0,p.bucketCounts[j].high>>>0).toNumber())}if(p.explicitBounds){if(!Array.isArray(p.explicitBounds))throw TypeError(".opentelemetry.proto.metrics.v1.HistogramDataPoint.explicitBounds: array expected");A.explicitBounds=[];for(var j=0;j>>0),p.min!=null&&(A.min=Number(p.min)),p.max!=null&&(A.max=Number(p.max)),A},b.toObject=function(p,A){A||(A={});var j={};if((A.arrays||A.defaults)&&(j.bucketCounts=[],j.explicitBounds=[],j.exemplars=[],j.attributes=[]),A.defaults){if(ht.Long){var se=new ht.Long(0,0,!1);j.startTimeUnixNano=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.startTimeUnixNano=A.longs===String?"0":0;if(ht.Long){var se=new ht.Long(0,0,!1);j.timeUnixNano=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.timeUnixNano=A.longs===String?"0":0;if(ht.Long){var se=new ht.Long(0,0,!1);j.count=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.count=A.longs===String?"0":0;j.flags=0}if(p.startTimeUnixNano!=null&&p.hasOwnProperty("startTimeUnixNano")&&(typeof p.startTimeUnixNano=="number"?j.startTimeUnixNano=A.longs===String?String(p.startTimeUnixNano):p.startTimeUnixNano:j.startTimeUnixNano=A.longs===String?ht.Long.prototype.toString.call(p.startTimeUnixNano):A.longs===Number?new ht.LongBits(p.startTimeUnixNano.low>>>0,p.startTimeUnixNano.high>>>0).toNumber():p.startTimeUnixNano),p.timeUnixNano!=null&&p.hasOwnProperty("timeUnixNano")&&(typeof p.timeUnixNano=="number"?j.timeUnixNano=A.longs===String?String(p.timeUnixNano):p.timeUnixNano:j.timeUnixNano=A.longs===String?ht.Long.prototype.toString.call(p.timeUnixNano):A.longs===Number?new ht.LongBits(p.timeUnixNano.low>>>0,p.timeUnixNano.high>>>0).toNumber():p.timeUnixNano),p.count!=null&&p.hasOwnProperty("count")&&(typeof p.count=="number"?j.count=A.longs===String?String(p.count):p.count:j.count=A.longs===String?ht.Long.prototype.toString.call(p.count):A.longs===Number?new ht.LongBits(p.count.low>>>0,p.count.high>>>0).toNumber():p.count),p.sum!=null&&p.hasOwnProperty("sum")&&(j.sum=A.json&&!isFinite(p.sum)?String(p.sum):p.sum,A.oneofs&&(j._sum="sum")),p.bucketCounts&&p.bucketCounts.length){j.bucketCounts=[];for(var We=0;We>>0,p.bucketCounts[We].high>>>0).toNumber():p.bucketCounts[We]}if(p.explicitBounds&&p.explicitBounds.length){j.explicitBounds=[];for(var We=0;We>>3){case 1:{se.attributes&&se.attributes.length||(se.attributes=[]),se.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(p,p.uint32()));break}case 2:{se.startTimeUnixNano=p.fixed64();break}case 3:{se.timeUnixNano=p.fixed64();break}case 4:{se.count=p.fixed64();break}case 5:{se.sum=p.double();break}case 6:{se.scale=p.sint32();break}case 7:{se.zeroCount=p.fixed64();break}case 8:{se.positive=at.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(p,p.uint32());break}case 9:{se.negative=at.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.decode(p,p.uint32());break}case 10:{se.flags=p.uint32();break}case 11:{se.exemplars&&se.exemplars.length||(se.exemplars=[]),se.exemplars.push(at.opentelemetry.proto.metrics.v1.Exemplar.decode(p,p.uint32()));break}case 12:{se.min=p.double();break}case 13:{se.max=p.double();break}case 14:{se.zeroThreshold=p.double();break}default:p.skipType(We&7);break}}return se},b.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},b.verify=function(p){if(typeof p!="object"||p===null)return"object expected";var A={};if(p.attributes!=null&&p.hasOwnProperty("attributes")){if(!Array.isArray(p.attributes))return"attributes: array expected";for(var j=0;j>>0,p.startTimeUnixNano.high>>>0).toNumber())),p.timeUnixNano!=null&&(ht.Long?(A.timeUnixNano=ht.Long.fromValue(p.timeUnixNano)).unsigned=!1:typeof p.timeUnixNano=="string"?A.timeUnixNano=parseInt(p.timeUnixNano,10):typeof p.timeUnixNano=="number"?A.timeUnixNano=p.timeUnixNano:typeof p.timeUnixNano=="object"&&(A.timeUnixNano=new ht.LongBits(p.timeUnixNano.low>>>0,p.timeUnixNano.high>>>0).toNumber())),p.count!=null&&(ht.Long?(A.count=ht.Long.fromValue(p.count)).unsigned=!1:typeof p.count=="string"?A.count=parseInt(p.count,10):typeof p.count=="number"?A.count=p.count:typeof p.count=="object"&&(A.count=new ht.LongBits(p.count.low>>>0,p.count.high>>>0).toNumber())),p.sum!=null&&(A.sum=Number(p.sum)),p.scale!=null&&(A.scale=p.scale|0),p.zeroCount!=null&&(ht.Long?(A.zeroCount=ht.Long.fromValue(p.zeroCount)).unsigned=!1:typeof p.zeroCount=="string"?A.zeroCount=parseInt(p.zeroCount,10):typeof p.zeroCount=="number"?A.zeroCount=p.zeroCount:typeof p.zeroCount=="object"&&(A.zeroCount=new ht.LongBits(p.zeroCount.low>>>0,p.zeroCount.high>>>0).toNumber())),p.positive!=null){if(typeof p.positive!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.positive: object expected");A.positive=at.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(p.positive)}if(p.negative!=null){if(typeof p.negative!="object")throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.negative: object expected");A.negative=at.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.fromObject(p.negative)}if(p.flags!=null&&(A.flags=p.flags>>>0),p.exemplars){if(!Array.isArray(p.exemplars))throw TypeError(".opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.exemplars: array expected");A.exemplars=[];for(var j=0;j>>0,p.startTimeUnixNano.high>>>0).toNumber():p.startTimeUnixNano),p.timeUnixNano!=null&&p.hasOwnProperty("timeUnixNano")&&(typeof p.timeUnixNano=="number"?j.timeUnixNano=A.longs===String?String(p.timeUnixNano):p.timeUnixNano:j.timeUnixNano=A.longs===String?ht.Long.prototype.toString.call(p.timeUnixNano):A.longs===Number?new ht.LongBits(p.timeUnixNano.low>>>0,p.timeUnixNano.high>>>0).toNumber():p.timeUnixNano),p.count!=null&&p.hasOwnProperty("count")&&(typeof p.count=="number"?j.count=A.longs===String?String(p.count):p.count:j.count=A.longs===String?ht.Long.prototype.toString.call(p.count):A.longs===Number?new ht.LongBits(p.count.low>>>0,p.count.high>>>0).toNumber():p.count),p.sum!=null&&p.hasOwnProperty("sum")&&(j.sum=A.json&&!isFinite(p.sum)?String(p.sum):p.sum,A.oneofs&&(j._sum="sum")),p.scale!=null&&p.hasOwnProperty("scale")&&(j.scale=p.scale),p.zeroCount!=null&&p.hasOwnProperty("zeroCount")&&(typeof p.zeroCount=="number"?j.zeroCount=A.longs===String?String(p.zeroCount):p.zeroCount:j.zeroCount=A.longs===String?ht.Long.prototype.toString.call(p.zeroCount):A.longs===Number?new ht.LongBits(p.zeroCount.low>>>0,p.zeroCount.high>>>0).toNumber():p.zeroCount),p.positive!=null&&p.hasOwnProperty("positive")&&(j.positive=at.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(p.positive,A)),p.negative!=null&&p.hasOwnProperty("negative")&&(j.negative=at.opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets.toObject(p.negative,A)),p.flags!=null&&p.hasOwnProperty("flags")&&(j.flags=p.flags),p.exemplars&&p.exemplars.length){j.exemplars=[];for(var We=0;We>>3){case 1:{We.offset=A.sint32();break}case 2:{if(We.bucketCounts&&We.bucketCounts.length||(We.bucketCounts=[]),(ve&7)===2)for(var lr=A.uint32()+A.pos;A.pos>>0,A.bucketCounts[se].high>>>0).toNumber(!0))}return j},g.toObject=function(A,j){j||(j={});var se={};if((j.arrays||j.defaults)&&(se.bucketCounts=[]),j.defaults&&(se.offset=0),A.offset!=null&&A.hasOwnProperty("offset")&&(se.offset=A.offset),A.bucketCounts&&A.bucketCounts.length){se.bucketCounts=[];for(var We=0;We>>0,A.bucketCounts[We].high>>>0).toNumber(!0):A.bucketCounts[We]}return se},g.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},g.getTypeUrl=function(A){return A===void 0&&(A="type.googleapis.com"),A+"/opentelemetry.proto.metrics.v1.ExponentialHistogramDataPoint.Buckets"},g}(),b}(),y.SummaryDataPoint=function(){function b(k){if(this.attributes=[],this.quantileValues=[],k)for(var g=Object.keys(k),p=0;p>>3){case 7:{j.attributes&&j.attributes.length||(j.attributes=[]),j.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(g,g.uint32()));break}case 2:{j.startTimeUnixNano=g.fixed64();break}case 3:{j.timeUnixNano=g.fixed64();break}case 4:{j.count=g.fixed64();break}case 5:{j.sum=g.double();break}case 6:{j.quantileValues&&j.quantileValues.length||(j.quantileValues=[]),j.quantileValues.push(at.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile.decode(g,g.uint32()));break}case 8:{j.flags=g.uint32();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.attributes!=null&&g.hasOwnProperty("attributes")){if(!Array.isArray(g.attributes))return"attributes: array expected";for(var p=0;p>>0,g.startTimeUnixNano.high>>>0).toNumber())),g.timeUnixNano!=null&&(ht.Long?(p.timeUnixNano=ht.Long.fromValue(g.timeUnixNano)).unsigned=!1:typeof g.timeUnixNano=="string"?p.timeUnixNano=parseInt(g.timeUnixNano,10):typeof g.timeUnixNano=="number"?p.timeUnixNano=g.timeUnixNano:typeof g.timeUnixNano=="object"&&(p.timeUnixNano=new ht.LongBits(g.timeUnixNano.low>>>0,g.timeUnixNano.high>>>0).toNumber())),g.count!=null&&(ht.Long?(p.count=ht.Long.fromValue(g.count)).unsigned=!1:typeof g.count=="string"?p.count=parseInt(g.count,10):typeof g.count=="number"?p.count=g.count:typeof g.count=="object"&&(p.count=new ht.LongBits(g.count.low>>>0,g.count.high>>>0).toNumber())),g.sum!=null&&(p.sum=Number(g.sum)),g.quantileValues){if(!Array.isArray(g.quantileValues))throw TypeError(".opentelemetry.proto.metrics.v1.SummaryDataPoint.quantileValues: array expected");p.quantileValues=[];for(var A=0;A>>0),p},b.toObject=function(g,p){p||(p={});var A={};if((p.arrays||p.defaults)&&(A.quantileValues=[],A.attributes=[]),p.defaults){if(ht.Long){var j=new ht.Long(0,0,!1);A.startTimeUnixNano=p.longs===String?j.toString():p.longs===Number?j.toNumber():j}else A.startTimeUnixNano=p.longs===String?"0":0;if(ht.Long){var j=new ht.Long(0,0,!1);A.timeUnixNano=p.longs===String?j.toString():p.longs===Number?j.toNumber():j}else A.timeUnixNano=p.longs===String?"0":0;if(ht.Long){var j=new ht.Long(0,0,!1);A.count=p.longs===String?j.toString():p.longs===Number?j.toNumber():j}else A.count=p.longs===String?"0":0;A.sum=0,A.flags=0}if(g.startTimeUnixNano!=null&&g.hasOwnProperty("startTimeUnixNano")&&(typeof g.startTimeUnixNano=="number"?A.startTimeUnixNano=p.longs===String?String(g.startTimeUnixNano):g.startTimeUnixNano:A.startTimeUnixNano=p.longs===String?ht.Long.prototype.toString.call(g.startTimeUnixNano):p.longs===Number?new ht.LongBits(g.startTimeUnixNano.low>>>0,g.startTimeUnixNano.high>>>0).toNumber():g.startTimeUnixNano),g.timeUnixNano!=null&&g.hasOwnProperty("timeUnixNano")&&(typeof g.timeUnixNano=="number"?A.timeUnixNano=p.longs===String?String(g.timeUnixNano):g.timeUnixNano:A.timeUnixNano=p.longs===String?ht.Long.prototype.toString.call(g.timeUnixNano):p.longs===Number?new ht.LongBits(g.timeUnixNano.low>>>0,g.timeUnixNano.high>>>0).toNumber():g.timeUnixNano),g.count!=null&&g.hasOwnProperty("count")&&(typeof g.count=="number"?A.count=p.longs===String?String(g.count):g.count:A.count=p.longs===String?ht.Long.prototype.toString.call(g.count):p.longs===Number?new ht.LongBits(g.count.low>>>0,g.count.high>>>0).toNumber():g.count),g.sum!=null&&g.hasOwnProperty("sum")&&(A.sum=p.json&&!isFinite(g.sum)?String(g.sum):g.sum),g.quantileValues&&g.quantileValues.length){A.quantileValues=[];for(var se=0;se>>3){case 1:{se.quantile=p.double();break}case 2:{se.value=p.double();break}default:p.skipType(We&7);break}}return se},k.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},k.verify=function(p){return typeof p!="object"||p===null?"object expected":p.quantile!=null&&p.hasOwnProperty("quantile")&&typeof p.quantile!="number"?"quantile: number expected":p.value!=null&&p.hasOwnProperty("value")&&typeof p.value!="number"?"value: number expected":null},k.fromObject=function(p){if(p instanceof at.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile)return p;var A=new at.opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile;return p.quantile!=null&&(A.quantile=Number(p.quantile)),p.value!=null&&(A.value=Number(p.value)),A},k.toObject=function(p,A){A||(A={});var j={};return A.defaults&&(j.quantile=0,j.value=0),p.quantile!=null&&p.hasOwnProperty("quantile")&&(j.quantile=A.json&&!isFinite(p.quantile)?String(p.quantile):p.quantile),p.value!=null&&p.hasOwnProperty("value")&&(j.value=A.json&&!isFinite(p.value)?String(p.value):p.value),j},k.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},k.getTypeUrl=function(p){return p===void 0&&(p="type.googleapis.com"),p+"/opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtQuantile"},k}(),b}(),y.Exemplar=function(){function b(g){if(this.filteredAttributes=[],g)for(var p=Object.keys(g),A=0;A>>3){case 7:{se.filteredAttributes&&se.filteredAttributes.length||(se.filteredAttributes=[]),se.filteredAttributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(p,p.uint32()));break}case 2:{se.timeUnixNano=p.fixed64();break}case 3:{se.asDouble=p.double();break}case 6:{se.asInt=p.sfixed64();break}case 4:{se.spanId=p.bytes();break}case 5:{se.traceId=p.bytes();break}default:p.skipType(We&7);break}}return se},b.decodeDelimited=function(p){return p instanceof hn||(p=new hn(p)),this.decode(p,p.uint32())},b.verify=function(p){if(typeof p!="object"||p===null)return"object expected";var A={};if(p.filteredAttributes!=null&&p.hasOwnProperty("filteredAttributes")){if(!Array.isArray(p.filteredAttributes))return"filteredAttributes: array expected";for(var j=0;j>>0,p.timeUnixNano.high>>>0).toNumber())),p.asDouble!=null&&(A.asDouble=Number(p.asDouble)),p.asInt!=null&&(ht.Long?(A.asInt=ht.Long.fromValue(p.asInt)).unsigned=!1:typeof p.asInt=="string"?A.asInt=parseInt(p.asInt,10):typeof p.asInt=="number"?A.asInt=p.asInt:typeof p.asInt=="object"&&(A.asInt=new ht.LongBits(p.asInt.low>>>0,p.asInt.high>>>0).toNumber())),p.spanId!=null&&(typeof p.spanId=="string"?ht.base64.decode(p.spanId,A.spanId=ht.newBuffer(ht.base64.length(p.spanId)),0):p.spanId.length>=0&&(A.spanId=p.spanId)),p.traceId!=null&&(typeof p.traceId=="string"?ht.base64.decode(p.traceId,A.traceId=ht.newBuffer(ht.base64.length(p.traceId)),0):p.traceId.length>=0&&(A.traceId=p.traceId)),A},b.toObject=function(p,A){A||(A={});var j={};if((A.arrays||A.defaults)&&(j.filteredAttributes=[]),A.defaults){if(ht.Long){var se=new ht.Long(0,0,!1);j.timeUnixNano=A.longs===String?se.toString():A.longs===Number?se.toNumber():se}else j.timeUnixNano=A.longs===String?"0":0;A.bytes===String?j.spanId="":(j.spanId=[],A.bytes!==Array&&(j.spanId=ht.newBuffer(j.spanId))),A.bytes===String?j.traceId="":(j.traceId=[],A.bytes!==Array&&(j.traceId=ht.newBuffer(j.traceId)))}if(p.timeUnixNano!=null&&p.hasOwnProperty("timeUnixNano")&&(typeof p.timeUnixNano=="number"?j.timeUnixNano=A.longs===String?String(p.timeUnixNano):p.timeUnixNano:j.timeUnixNano=A.longs===String?ht.Long.prototype.toString.call(p.timeUnixNano):A.longs===Number?new ht.LongBits(p.timeUnixNano.low>>>0,p.timeUnixNano.high>>>0).toNumber():p.timeUnixNano),p.asDouble!=null&&p.hasOwnProperty("asDouble")&&(j.asDouble=A.json&&!isFinite(p.asDouble)?String(p.asDouble):p.asDouble,A.oneofs&&(j.value="asDouble")),p.spanId!=null&&p.hasOwnProperty("spanId")&&(j.spanId=A.bytes===String?ht.base64.encode(p.spanId,0,p.spanId.length):A.bytes===Array?Array.prototype.slice.call(p.spanId):p.spanId),p.traceId!=null&&p.hasOwnProperty("traceId")&&(j.traceId=A.bytes===String?ht.base64.encode(p.traceId,0,p.traceId.length):A.bytes===Array?Array.prototype.slice.call(p.traceId):p.traceId),p.asInt!=null&&p.hasOwnProperty("asInt")&&(typeof p.asInt=="number"?j.asInt=A.longs===String?String(p.asInt):p.asInt:j.asInt=A.longs===String?ht.Long.prototype.toString.call(p.asInt):A.longs===Number?new ht.LongBits(p.asInt.low>>>0,p.asInt.high>>>0).toNumber():p.asInt,A.oneofs&&(j.value="asInt")),p.filteredAttributes&&p.filteredAttributes.length){j.filteredAttributes=[];for(var We=0;We>>3){case 1:{j.resourceLogs&&j.resourceLogs.length||(j.resourceLogs=[]),j.resourceLogs.push(at.opentelemetry.proto.logs.v1.ResourceLogs.decode(g,g.uint32()));break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.resourceLogs!=null&&g.hasOwnProperty("resourceLogs")){if(!Array.isArray(g.resourceLogs))return"resourceLogs: array expected";for(var p=0;p>>3){case 1:{j.resource=at.opentelemetry.proto.resource.v1.Resource.decode(g,g.uint32());break}case 2:{j.scopeLogs&&j.scopeLogs.length||(j.scopeLogs=[]),j.scopeLogs.push(at.opentelemetry.proto.logs.v1.ScopeLogs.decode(g,g.uint32()));break}case 3:{j.schemaUrl=g.string();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.resource!=null&&g.hasOwnProperty("resource")){var p=at.opentelemetry.proto.resource.v1.Resource.verify(g.resource);if(p)return"resource."+p}if(g.scopeLogs!=null&&g.hasOwnProperty("scopeLogs")){if(!Array.isArray(g.scopeLogs))return"scopeLogs: array expected";for(var A=0;A>>3){case 1:{j.scope=at.opentelemetry.proto.common.v1.InstrumentationScope.decode(g,g.uint32());break}case 2:{j.logRecords&&j.logRecords.length||(j.logRecords=[]),j.logRecords.push(at.opentelemetry.proto.logs.v1.LogRecord.decode(g,g.uint32()));break}case 3:{j.schemaUrl=g.string();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.scope!=null&&g.hasOwnProperty("scope")){var p=at.opentelemetry.proto.common.v1.InstrumentationScope.verify(g.scope);if(p)return"scope."+p}if(g.logRecords!=null&&g.hasOwnProperty("logRecords")){if(!Array.isArray(g.logRecords))return"logRecords: array expected";for(var A=0;A>>3){case 1:{j.timeUnixNano=g.fixed64();break}case 11:{j.observedTimeUnixNano=g.fixed64();break}case 2:{j.severityNumber=g.int32();break}case 3:{j.severityText=g.string();break}case 5:{j.body=at.opentelemetry.proto.common.v1.AnyValue.decode(g,g.uint32());break}case 6:{j.attributes&&j.attributes.length||(j.attributes=[]),j.attributes.push(at.opentelemetry.proto.common.v1.KeyValue.decode(g,g.uint32()));break}case 7:{j.droppedAttributesCount=g.uint32();break}case 8:{j.flags=g.fixed32();break}case 9:{j.traceId=g.bytes();break}case 10:{j.spanId=g.bytes();break}default:g.skipType(se&7);break}}return j},b.decodeDelimited=function(g){return g instanceof hn||(g=new hn(g)),this.decode(g,g.uint32())},b.verify=function(g){if(typeof g!="object"||g===null)return"object expected";if(g.timeUnixNano!=null&&g.hasOwnProperty("timeUnixNano")&&!ht.isInteger(g.timeUnixNano)&&!(g.timeUnixNano&&ht.isInteger(g.timeUnixNano.low)&&ht.isInteger(g.timeUnixNano.high)))return"timeUnixNano: integer|Long expected";if(g.observedTimeUnixNano!=null&&g.hasOwnProperty("observedTimeUnixNano")&&!ht.isInteger(g.observedTimeUnixNano)&&!(g.observedTimeUnixNano&&ht.isInteger(g.observedTimeUnixNano.low)&&ht.isInteger(g.observedTimeUnixNano.high)))return"observedTimeUnixNano: integer|Long expected";if(g.severityNumber!=null&&g.hasOwnProperty("severityNumber"))switch(g.severityNumber){default:return"severityNumber: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:case 21:case 22:case 23:case 24:break}if(g.severityText!=null&&g.hasOwnProperty("severityText")&&!ht.isString(g.severityText))return"severityText: string expected";if(g.body!=null&&g.hasOwnProperty("body")){var p=at.opentelemetry.proto.common.v1.AnyValue.verify(g.body);if(p)return"body."+p}if(g.attributes!=null&&g.hasOwnProperty("attributes")){if(!Array.isArray(g.attributes))return"attributes: array expected";for(var A=0;A>>0,g.timeUnixNano.high>>>0).toNumber())),g.observedTimeUnixNano!=null&&(ht.Long?(p.observedTimeUnixNano=ht.Long.fromValue(g.observedTimeUnixNano)).unsigned=!1:typeof g.observedTimeUnixNano=="string"?p.observedTimeUnixNano=parseInt(g.observedTimeUnixNano,10):typeof g.observedTimeUnixNano=="number"?p.observedTimeUnixNano=g.observedTimeUnixNano:typeof g.observedTimeUnixNano=="object"&&(p.observedTimeUnixNano=new ht.LongBits(g.observedTimeUnixNano.low>>>0,g.observedTimeUnixNano.high>>>0).toNumber())),g.severityNumber){default:if(typeof g.severityNumber=="number"){p.severityNumber=g.severityNumber;break}break;case"SEVERITY_NUMBER_UNSPECIFIED":case 0:p.severityNumber=0;break;case"SEVERITY_NUMBER_TRACE":case 1:p.severityNumber=1;break;case"SEVERITY_NUMBER_TRACE2":case 2:p.severityNumber=2;break;case"SEVERITY_NUMBER_TRACE3":case 3:p.severityNumber=3;break;case"SEVERITY_NUMBER_TRACE4":case 4:p.severityNumber=4;break;case"SEVERITY_NUMBER_DEBUG":case 5:p.severityNumber=5;break;case"SEVERITY_NUMBER_DEBUG2":case 6:p.severityNumber=6;break;case"SEVERITY_NUMBER_DEBUG3":case 7:p.severityNumber=7;break;case"SEVERITY_NUMBER_DEBUG4":case 8:p.severityNumber=8;break;case"SEVERITY_NUMBER_INFO":case 9:p.severityNumber=9;break;case"SEVERITY_NUMBER_INFO2":case 10:p.severityNumber=10;break;case"SEVERITY_NUMBER_INFO3":case 11:p.severityNumber=11;break;case"SEVERITY_NUMBER_INFO4":case 12:p.severityNumber=12;break;case"SEVERITY_NUMBER_WARN":case 13:p.severityNumber=13;break;case"SEVERITY_NUMBER_WARN2":case 14:p.severityNumber=14;break;case"SEVERITY_NUMBER_WARN3":case 15:p.severityNumber=15;break;case"SEVERITY_NUMBER_WARN4":case 16:p.severityNumber=16;break;case"SEVERITY_NUMBER_ERROR":case 17:p.severityNumber=17;break;case"SEVERITY_NUMBER_ERROR2":case 18:p.severityNumber=18;break;case"SEVERITY_NUMBER_ERROR3":case 19:p.severityNumber=19;break;case"SEVERITY_NUMBER_ERROR4":case 20:p.severityNumber=20;break;case"SEVERITY_NUMBER_FATAL":case 21:p.severityNumber=21;break;case"SEVERITY_NUMBER_FATAL2":case 22:p.severityNumber=22;break;case"SEVERITY_NUMBER_FATAL3":case 23:p.severityNumber=23;break;case"SEVERITY_NUMBER_FATAL4":case 24:p.severityNumber=24;break}if(g.severityText!=null&&(p.severityText=String(g.severityText)),g.body!=null){if(typeof g.body!="object")throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.body: object expected");p.body=at.opentelemetry.proto.common.v1.AnyValue.fromObject(g.body)}if(g.attributes){if(!Array.isArray(g.attributes))throw TypeError(".opentelemetry.proto.logs.v1.LogRecord.attributes: array expected");p.attributes=[];for(var A=0;A>>0),g.flags!=null&&(p.flags=g.flags>>>0),g.traceId!=null&&(typeof g.traceId=="string"?ht.base64.decode(g.traceId,p.traceId=ht.newBuffer(ht.base64.length(g.traceId)),0):g.traceId.length>=0&&(p.traceId=g.traceId)),g.spanId!=null&&(typeof g.spanId=="string"?ht.base64.decode(g.spanId,p.spanId=ht.newBuffer(ht.base64.length(g.spanId)),0):g.spanId.length>=0&&(p.spanId=g.spanId)),p},b.toObject=function(g,p){p||(p={});var A={};if((p.arrays||p.defaults)&&(A.attributes=[]),p.defaults){if(ht.Long){var j=new ht.Long(0,0,!1);A.timeUnixNano=p.longs===String?j.toString():p.longs===Number?j.toNumber():j}else A.timeUnixNano=p.longs===String?"0":0;if(A.severityNumber=p.enums===String?"SEVERITY_NUMBER_UNSPECIFIED":0,A.severityText="",A.body=null,A.droppedAttributesCount=0,A.flags=0,p.bytes===String?A.traceId="":(A.traceId=[],p.bytes!==Array&&(A.traceId=ht.newBuffer(A.traceId))),p.bytes===String?A.spanId="":(A.spanId=[],p.bytes!==Array&&(A.spanId=ht.newBuffer(A.spanId))),ht.Long){var j=new ht.Long(0,0,!1);A.observedTimeUnixNano=p.longs===String?j.toString():p.longs===Number?j.toNumber():j}else A.observedTimeUnixNano=p.longs===String?"0":0}if(g.timeUnixNano!=null&&g.hasOwnProperty("timeUnixNano")&&(typeof g.timeUnixNano=="number"?A.timeUnixNano=p.longs===String?String(g.timeUnixNano):g.timeUnixNano:A.timeUnixNano=p.longs===String?ht.Long.prototype.toString.call(g.timeUnixNano):p.longs===Number?new ht.LongBits(g.timeUnixNano.low>>>0,g.timeUnixNano.high>>>0).toNumber():g.timeUnixNano),g.severityNumber!=null&&g.hasOwnProperty("severityNumber")&&(A.severityNumber=p.enums===String?at.opentelemetry.proto.logs.v1.SeverityNumber[g.severityNumber]===void 0?g.severityNumber:at.opentelemetry.proto.logs.v1.SeverityNumber[g.severityNumber]:g.severityNumber),g.severityText!=null&&g.hasOwnProperty("severityText")&&(A.severityText=g.severityText),g.body!=null&&g.hasOwnProperty("body")&&(A.body=at.opentelemetry.proto.common.v1.AnyValue.toObject(g.body,p)),g.attributes&&g.attributes.length){A.attributes=[];for(var se=0;se>>0,g.observedTimeUnixNano.high>>>0).toNumber():g.observedTimeUnixNano),A},b.prototype.toJSON=function(){return this.constructor.toObject(this,Za.util.toJSONOptions)},b.getTypeUrl=function(g){return g===void 0&&(g="type.googleapis.com"),g+"/opentelemetry.proto.logs.v1.LogRecord"},b}(),y}(),f}(),c}(),l}();_ut.exports=at});var put=xt(xI=>{"use strict";Object.defineProperty(xI,"__esModule",{value:!0});xI.ProtobufTraceSerializer=xI.ProtobufMetricsSerializer=xI.ProtobufLogsSerializer=void 0;var lF=fut(),vXt=_oe(),SXt=doe(),TXt=moe(),bXt=lF.opentelemetry.proto.collector.logs.v1.ExportLogsServiceResponse,EXt=lF.opentelemetry.proto.collector.logs.v1.ExportLogsServiceRequest,xXt=lF.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceResponse,CXt=lF.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest,AXt=lF.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse,kXt=lF.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest;xI.ProtobufLogsSerializer={serializeRequest:l=>{let c=(0,TXt.createExportLogsServiceRequest)(l);return EXt.encode(c).finish()},deserializeResponse:l=>bXt.decode(l)};xI.ProtobufMetricsSerializer={serializeRequest:l=>{let c=(0,SXt.createExportMetricsServiceRequest)(l);return CXt.encode(c).finish()},deserializeResponse:l=>xXt.decode(l)};xI.ProtobufTraceSerializer={serializeRequest:l=>{let c=(0,vXt.createExportTraceServiceRequest)(l);return kXt.encode(c).finish()},deserializeResponse:l=>AXt.decode(l)}});var dut=xt(CI=>{"use strict";Object.defineProperty(CI,"__esModule",{value:!0});CI.JsonLogsSerializer=CI.JsonMetricsSerializer=CI.JsonTraceSerializer=void 0;var PXt=_oe(),NXt=doe(),DXt=moe();CI.JsonTraceSerializer={serializeRequest:l=>{let c=(0,PXt.createExportTraceServiceRequest)(l,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(c))},deserializeResponse:l=>{let c=new TextDecoder;return JSON.parse(c.decode(l))}};CI.JsonMetricsSerializer={serializeRequest:l=>{let c=(0,NXt.createExportMetricsServiceRequest)(l,{useLongBits:!1});return new TextEncoder().encode(JSON.stringify(c))},deserializeResponse:l=>{let c=new TextDecoder;return JSON.parse(c.decode(l))}};CI.JsonLogsSerializer={serializeRequest:l=>{let c=(0,DXt.createExportLogsServiceRequest)(l,{useHex:!0,useLongBits:!1});return new TextEncoder().encode(JSON.stringify(c))},deserializeResponse:l=>{let c=new TextDecoder;return JSON.parse(c.decode(l))}}});var mut=xt(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});l_.JsonMetricsSerializer=l_.JsonLogsSerializer=l_.JsonTraceSerializer=l_.ProtobufTraceSerializer=l_.ProtobufMetricsSerializer=l_.ProtobufLogsSerializer=l_.createExportLogsServiceRequest=l_.createExportMetricsServiceRequest=l_.createExportTraceServiceRequest=l_.ESpanKind=l_.hrTimeToNanos=l_.encodeAsString=l_.encodeAsLongBits=l_.getOtlpEncoder=l_.toLongBits=void 0;var Nz=xz();Object.defineProperty(l_,"toLongBits",{enumerable:!0,get:function(){return Nz.toLongBits}});Object.defineProperty(l_,"getOtlpEncoder",{enumerable:!0,get:function(){return Nz.getOtlpEncoder}});Object.defineProperty(l_,"encodeAsLongBits",{enumerable:!0,get:function(){return Nz.encodeAsLongBits}});Object.defineProperty(l_,"encodeAsString",{enumerable:!0,get:function(){return Nz.encodeAsString}});Object.defineProperty(l_,"hrTimeToNanos",{enumerable:!0,get:function(){return Nz.hrTimeToNanos}});var IXt=ilt();Object.defineProperty(l_,"ESpanKind",{enumerable:!0,get:function(){return IXt.ESpanKind}});var wXt=_oe();Object.defineProperty(l_,"createExportTraceServiceRequest",{enumerable:!0,get:function(){return wXt.createExportTraceServiceRequest}});var OXt=doe();Object.defineProperty(l_,"createExportMetricsServiceRequest",{enumerable:!0,get:function(){return OXt.createExportMetricsServiceRequest}});var RXt=moe();Object.defineProperty(l_,"createExportLogsServiceRequest",{enumerable:!0,get:function(){return RXt.createExportLogsServiceRequest}});var zNe=put();Object.defineProperty(l_,"ProtobufLogsSerializer",{enumerable:!0,get:function(){return zNe.ProtobufLogsSerializer}});Object.defineProperty(l_,"ProtobufMetricsSerializer",{enumerable:!0,get:function(){return zNe.ProtobufMetricsSerializer}});Object.defineProperty(l_,"ProtobufTraceSerializer",{enumerable:!0,get:function(){return zNe.ProtobufTraceSerializer}});var WNe=dut();Object.defineProperty(l_,"JsonTraceSerializer",{enumerable:!0,get:function(){return WNe.JsonTraceSerializer}});Object.defineProperty(l_,"JsonLogsSerializer",{enumerable:!0,get:function(){return WNe.JsonLogsSerializer}});Object.defineProperty(l_,"JsonMetricsSerializer",{enumerable:!0,get:function(){return WNe.JsonMetricsSerializer}})});var gut=xt(Soe=>{"use strict";Object.defineProperty(Soe,"__esModule",{value:!0});Soe.VERSION=void 0;Soe.VERSION="0.52.1"});var yut=xt(boe=>{"use strict";Object.defineProperty(boe,"__esModule",{value:!0});boe.OTLPMetricExporter=void 0;var uF=fy(),MXt=_Ne(),Toe=xNe(),LXt=mut(),FXt=gut(),hut="v1/metrics",jXt=`http://localhost:4318/${hut}`,BXt={"User-Agent":`OTel-OTLP-Exporter-JavaScript/${FXt.VERSION}`},GNe=class extends Toe.OTLPExporterNodeBase{constructor(c){super(c,LXt.JsonMetricsSerializer,"application/json"),this.headers=Object.assign(Object.assign(Object.assign(Object.assign({},this.headers),BXt),uF.baggageUtils.parseKeyPairsIntoRecord((0,uF.getEnv)().OTEL_EXPORTER_OTLP_METRICS_HEADERS)),(0,Toe.parseHeaders)(c?.headers))}getDefaultUrl(c){return typeof c.url=="string"?c.url:(0,uF.getEnv)().OTEL_EXPORTER_OTLP_METRICS_ENDPOINT.length>0?(0,Toe.appendRootPathToUrlIfNeeded)((0,uF.getEnv)().OTEL_EXPORTER_OTLP_METRICS_ENDPOINT):(0,uF.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT.length>0?(0,Toe.appendResourcePathToUrl)((0,uF.getEnv)().OTEL_EXPORTER_OTLP_ENDPOINT,hut):jXt}},HNe=class extends MXt.OTLPMetricExporterBase{constructor(c){super(new GNe(c),c)}};boe.OTLPMetricExporter=HNe});var vut=xt(J4=>{"use strict";var UXt=J4&&J4.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),VXt=J4&&J4.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&UXt(c,l,f)};Object.defineProperty(J4,"__esModule",{value:!0});VXt(yut(),J4)});var Sut=xt(q4=>{"use strict";var JXt=q4&&q4.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),qXt=q4&&q4.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&JXt(c,l,f)};Object.defineProperty(q4,"__esModule",{value:!0});qXt(vut(),q4)});var Tut=xt(_P=>{"use strict";var zXt=_P&&_P.__createBinding||(Object.create?function(l,c,f,y){y===void 0&&(y=f),Object.defineProperty(l,y,{enumerable:!0,get:function(){return c[f]}})}:function(l,c,f,y){y===void 0&&(y=f),l[y]=c[f]}),$Ne=_P&&_P.__exportStar||function(l,c){for(var f in l)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&zXt(c,l,f)};Object.defineProperty(_P,"__esModule",{value:!0});$Ne(Sut(),_P);$Ne(lNe(),_P);$Ne(_Ne(),_P)});var wz=xt(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.regexpCode=qu.getEsmExportName=qu.getProperty=qu.safeStringify=qu.stringify=qu.strConcat=qu.addCodeArg=qu.str=qu._=qu.nil=qu._Code=qu.Name=qu.IDENTIFIER=qu._CodeOrName=void 0;var Dz=class{};qu._CodeOrName=Dz;qu.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var z4=class extends Dz{constructor(c){if(super(),!qu.IDENTIFIER.test(c))throw new Error("CodeGen: name must be a valid identifier");this.str=c}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};qu.Name=z4;var Ib=class extends Dz{constructor(c){super(),this._items=typeof c=="string"?[c]:c}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let c=this._items[0];return c===""||c==='""'}get str(){var c;return(c=this._str)!==null&&c!==void 0?c:this._str=this._items.reduce((f,y)=>`${f}${y}`,"")}get names(){var c;return(c=this._names)!==null&&c!==void 0?c:this._names=this._items.reduce((f,y)=>(y instanceof z4&&(f[y.str]=(f[y.str]||0)+1),f),{})}};qu._Code=Ib;qu.nil=new Ib("");function Eut(l,...c){let f=[l[0]],y=0;for(;y{"use strict";Object.defineProperty(A1,"__esModule",{value:!0});A1.ValueScope=A1.ValueScopeName=A1.Scope=A1.varKinds=A1.UsedValueState=void 0;var C1=wz(),XNe=class extends Error{constructor(c){super(`CodeGen: "code" for ${c} not defined`),this.value=c.value}},Eoe;(function(l){l[l.Started=0]="Started",l[l.Completed=1]="Completed"})(Eoe||(A1.UsedValueState=Eoe={}));A1.varKinds={const:new C1.Name("const"),let:new C1.Name("let"),var:new C1.Name("var")};var xoe=class{constructor({prefixes:c,parent:f}={}){this._names={},this._prefixes=c,this._parent=f}toName(c){return c instanceof C1.Name?c:this.name(c)}name(c){return new C1.Name(this._newName(c))}_newName(c){let f=this._names[c]||this._nameGroup(c);return`${c}${f.index++}`}_nameGroup(c){var f,y;if(!((y=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||y===void 0)&&y.has(c)||this._prefixes&&!this._prefixes.has(c))throw new Error(`CodeGen: prefix "${c}" is not allowed in this scope`);return this._names[c]={prefix:c,index:0}}};A1.Scope=xoe;var Coe=class extends C1.Name{constructor(c,f){super(f),this.prefix=c}setValue(c,{property:f,itemIndex:y}){this.value=c,this.scopePath=(0,C1._)`.${new C1.Name(f)}[${y}]`}};A1.ValueScopeName=Coe;var ZXt=(0,C1._)`\n`,QNe=class extends xoe{constructor(c){super(c),this._values={},this._scope=c.scope,this.opts={...c,_n:c.lines?ZXt:C1.nil}}get(){return this._scope}name(c){return new Coe(c,this._newName(c))}value(c,f){var y;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let b=this.toName(c),{prefix:k}=b,g=(y=f.key)!==null&&y!==void 0?y:f.ref,p=this._values[k];if(p){let se=p.get(g);if(se)return se}else p=this._values[k]=new Map;p.set(g,b);let A=this._scope[k]||(this._scope[k]=[]),j=A.length;return A[j]=f.ref,b.setValue(f,{property:k,itemIndex:j}),b}getValue(c,f){let y=this._values[c];if(y)return y.get(f)}scopeRefs(c,f=this._values){return this._reduceValues(f,y=>{if(y.scopePath===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return(0,C1._)`${c}${y.scopePath}`})}scopeCode(c=this._values,f,y){return this._reduceValues(c,b=>{if(b.value===void 0)throw new Error(`CodeGen: name "${b}" has no value`);return b.value.code},f,y)}_reduceValues(c,f,y={},b){let k=C1.nil;for(let g in c){let p=c[g];if(!p)continue;let A=y[g]=y[g]||new Map;p.forEach(j=>{if(A.has(j))return;A.set(j,Eoe.Started);let se=f(j);if(se){let We=this.opts.es5?A1.varKinds.var:A1.varKinds.const;k=(0,C1._)`${k}${We} ${j} = ${se};${this.opts._n}`}else if(se=b?.(j))k=(0,C1._)`${k}${se}${this.opts._n}`;else throw new XNe(j);A.set(j,Eoe.Completed)})}return k}};A1.ValueScope=QNe});var Kl=xt(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.or=Bl.and=Bl.not=Bl.CodeGen=Bl.operators=Bl.varKinds=Bl.ValueScopeName=Bl.ValueScope=Bl.Scope=Bl.Name=Bl.regexpCode=Bl.stringify=Bl.getProperty=Bl.nil=Bl.strConcat=Bl.str=Bl._=void 0;var Nu=wz(),Ex=ZNe(),AI=wz();Object.defineProperty(Bl,"_",{enumerable:!0,get:function(){return AI._}});Object.defineProperty(Bl,"str",{enumerable:!0,get:function(){return AI.str}});Object.defineProperty(Bl,"strConcat",{enumerable:!0,get:function(){return AI.strConcat}});Object.defineProperty(Bl,"nil",{enumerable:!0,get:function(){return AI.nil}});Object.defineProperty(Bl,"getProperty",{enumerable:!0,get:function(){return AI.getProperty}});Object.defineProperty(Bl,"stringify",{enumerable:!0,get:function(){return AI.stringify}});Object.defineProperty(Bl,"regexpCode",{enumerable:!0,get:function(){return AI.regexpCode}});Object.defineProperty(Bl,"Name",{enumerable:!0,get:function(){return AI.Name}});var Noe=ZNe();Object.defineProperty(Bl,"Scope",{enumerable:!0,get:function(){return Noe.Scope}});Object.defineProperty(Bl,"ValueScope",{enumerable:!0,get:function(){return Noe.ValueScope}});Object.defineProperty(Bl,"ValueScopeName",{enumerable:!0,get:function(){return Noe.ValueScopeName}});Object.defineProperty(Bl,"varKinds",{enumerable:!0,get:function(){return Noe.varKinds}});Bl.operators={GT:new Nu._Code(">"),GTE:new Nu._Code(">="),LT:new Nu._Code("<"),LTE:new Nu._Code("<="),EQ:new Nu._Code("==="),NEQ:new Nu._Code("!=="),NOT:new Nu._Code("!"),OR:new Nu._Code("||"),AND:new Nu._Code("&&"),ADD:new Nu._Code("+")};var fP=class{optimizeNodes(){return this}optimizeNames(c,f){return this}},eDe=class extends fP{constructor(c,f,y){super(),this.varKind=c,this.name=f,this.rhs=y}render({es5:c,_n:f}){let y=c?Ex.varKinds.var:this.varKind,b=this.rhs===void 0?"":` = ${this.rhs}`;return`${y} ${this.name}${b};`+f}optimizeNames(c,f){if(c[this.name.str])return this.rhs&&(this.rhs=fF(this.rhs,c,f)),this}get names(){return this.rhs instanceof Nu._CodeOrName?this.rhs.names:{}}},Aoe=class extends fP{constructor(c,f,y){super(),this.lhs=c,this.rhs=f,this.sideEffects=y}render({_n:c}){return`${this.lhs} = ${this.rhs};`+c}optimizeNames(c,f){if(!(this.lhs instanceof Nu.Name&&!c[this.lhs.str]&&!this.sideEffects))return this.rhs=fF(this.rhs,c,f),this}get names(){let c=this.lhs instanceof Nu.Name?{}:{...this.lhs.names};return Poe(c,this.rhs)}},tDe=class extends Aoe{constructor(c,f,y,b){super(c,y,b),this.op=f}render({_n:c}){return`${this.lhs} ${this.op}= ${this.rhs};`+c}},rDe=class extends fP{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`${this.label}:`+c}},nDe=class extends fP{constructor(c){super(),this.label=c,this.names={}}render({_n:c}){return`break${this.label?` ${this.label}`:""};`+c}},iDe=class extends fP{constructor(c){super(),this.error=c}render({_n:c}){return`throw ${this.error};`+c}get names(){return this.error.names}},sDe=class extends fP{constructor(c){super(),this.code=c}render({_n:c}){return`${this.code};`+c}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(c,f){return this.code=fF(this.code,c,f),this}get names(){return this.code instanceof Nu._CodeOrName?this.code.names:{}}},Oz=class extends fP{constructor(c=[]){super(),this.nodes=c}render(c){return this.nodes.reduce((f,y)=>f+y.render(c),"")}optimizeNodes(){let{nodes:c}=this,f=c.length;for(;f--;){let y=c[f].optimizeNodes();Array.isArray(y)?c.splice(f,1,...y):y?c[f]=y:c.splice(f,1)}return c.length>0?this:void 0}optimizeNames(c,f){let{nodes:y}=this,b=y.length;for(;b--;){let k=y[b];k.optimizeNames(c,f)||(eQt(c,k.names),y.splice(b,1))}return y.length>0?this:void 0}get names(){return this.nodes.reduce((c,f)=>H4(c,f.names),{})}},pP=class extends Oz{render(c){return"{"+c._n+super.render(c)+"}"+c._n}},oDe=class extends Oz{},_F=class extends pP{};_F.kind="else";var W4=class l extends pP{constructor(c,f){super(f),this.condition=c}render(c){let f=`if(${this.condition})`+super.render(c);return this.else&&(f+="else "+this.else.render(c)),f}optimizeNodes(){super.optimizeNodes();let c=this.condition;if(c===!0)return this.nodes;let f=this.else;if(f){let y=f.optimizeNodes();f=this.else=Array.isArray(y)?new _F(y):y}if(f)return c===!1?f instanceof l?f:f.nodes:this.nodes.length?this:new l(Cut(c),f instanceof l?[f]:f.nodes);if(!(c===!1||!this.nodes.length))return this}optimizeNames(c,f){var y;if(this.else=(y=this.else)===null||y===void 0?void 0:y.optimizeNames(c,f),!!(super.optimizeNames(c,f)||this.else))return this.condition=fF(this.condition,c,f),this}get names(){let c=super.names;return Poe(c,this.condition),this.else&&H4(c,this.else.names),c}};W4.kind="if";var G4=class extends pP{};G4.kind="for";var aDe=class extends G4{constructor(c){super(),this.iteration=c}render(c){return`for(${this.iteration})`+super.render(c)}optimizeNames(c,f){if(super.optimizeNames(c,f))return this.iteration=fF(this.iteration,c,f),this}get names(){return H4(super.names,this.iteration.names)}},cDe=class extends G4{constructor(c,f,y,b){super(),this.varKind=c,this.name=f,this.from=y,this.to=b}render(c){let f=c.es5?Ex.varKinds.var:this.varKind,{name:y,from:b,to:k}=this;return`for(${f} ${y}=${b}; ${y}<${k}; ${y}++)`+super.render(c)}get names(){let c=Poe(super.names,this.from);return Poe(c,this.to)}},koe=class extends G4{constructor(c,f,y,b){super(),this.loop=c,this.varKind=f,this.name=y,this.iterable=b}render(c){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(c)}optimizeNames(c,f){if(super.optimizeNames(c,f))return this.iterable=fF(this.iterable,c,f),this}get names(){return H4(super.names,this.iterable.names)}},Rz=class extends pP{constructor(c,f,y){super(),this.name=c,this.args=f,this.async=y}render(c){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(c)}};Rz.kind="func";var Mz=class extends Oz{render(c){return"return "+super.render(c)}};Mz.kind="return";var lDe=class extends pP{render(c){let f="try"+super.render(c);return this.catch&&(f+=this.catch.render(c)),this.finally&&(f+=this.finally.render(c)),f}optimizeNodes(){var c,f;return super.optimizeNodes(),(c=this.catch)===null||c===void 0||c.optimizeNodes(),(f=this.finally)===null||f===void 0||f.optimizeNodes(),this}optimizeNames(c,f){var y,b;return super.optimizeNames(c,f),(y=this.catch)===null||y===void 0||y.optimizeNames(c,f),(b=this.finally)===null||b===void 0||b.optimizeNames(c,f),this}get names(){let c=super.names;return this.catch&&H4(c,this.catch.names),this.finally&&H4(c,this.finally.names),c}},Lz=class extends pP{constructor(c){super(),this.error=c}render(c){return`catch(${this.error})`+super.render(c)}};Lz.kind="catch";var Fz=class extends pP{render(c){return"finally"+super.render(c)}};Fz.kind="finally";var uDe=class{constructor(c,f={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...f,_n:f.lines?`
`:""},this._extScope=c,this._scope=new Ex.Scope({parent:c}),this._nodes=[new oDe]}toString(){return this._root.render(this.opts)}name(c){return this._scope.name(c)}scopeName(c){return this._extScope.name(c)}scopeValue(c,f){let y=this._extScope.value(c,f);return(this._values[y.prefix]||(this._values[y.prefix]=new Set)).add(y),y}getScopeValue(c,f){return this._extScope.getValue(c,f)}scopeRefs(c){return this._extScope.scopeRefs(c,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(c,f,y,b){let k=this._scope.toName(f);return y!==void 0&&b&&(this._constants[k.str]=y),this._leafNode(new eDe(c,k,y)),k}const(c,f,y){return this._def(Ex.varKinds.const,c,f,y)}let(c,f,y){return this._def(Ex.varKinds.let,c,f,y)}var(c,f,y){return this._def(Ex.varKinds.var,c,f,y)}assign(c,f,y){return this._leafNode(new Aoe(c,f,y))}add(c,f){return this._leafNode(new tDe(c,Bl.operators.ADD,f))}code(c){return typeof c=="function"?c():c!==Nu.nil&&this._leafNode(new sDe(c)),this}object(...c){let f=["{"];for(let[y,b]of c)f.length>1&&f.push(","),f.push(y),(y!==b||this.opts.es5)&&(f.push(":"),(0,Nu.addCodeArg)(f,b));return f.push("}"),new Nu._Code(f)}if(c,f,y){if(this._blockNode(new W4(c)),f&&y)this.code(f).else().code(y).endIf();else if(f)this.code(f).endIf();else if(y)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(c){return this._elseNode(new W4(c))}else(){return this._elseNode(new _F)}endIf(){return this._endBlockNode(W4,_F)}_for(c,f){return this._blockNode(c),f&&this.code(f).endFor(),this}for(c,f){return this._for(new aDe(c),f)}forRange(c,f,y,b,k=this.opts.es5?Ex.varKinds.var:Ex.varKinds.let){let g=this._scope.toName(c);return this._for(new cDe(k,g,f,y),()=>b(g))}forOf(c,f,y,b=Ex.varKinds.const){let k=this._scope.toName(c);if(this.opts.es5){let g=f instanceof Nu.Name?f:this.var("_arr",f);return this.forRange("_i",0,(0,Nu._)`${g}.length`,p=>{this.var(k,(0,Nu._)`${g}[${p}]`),y(k)})}return this._for(new koe("of",b,k,f),()=>y(k))}forIn(c,f,y,b=this.opts.es5?Ex.varKinds.var:Ex.varKinds.const){if(this.opts.ownProperties)return this.forOf(c,(0,Nu._)`Object.keys(${f})`,y);let k=this._scope.toName(c);return this._for(new koe("in",b,k,f),()=>y(k))}endFor(){return this._endBlockNode(G4)}label(c){return this._leafNode(new rDe(c))}break(c){return this._leafNode(new nDe(c))}return(c){let f=new Mz;if(this._blockNode(f),this.code(c),f.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Mz)}try(c,f,y){if(!f&&!y)throw new Error('CodeGen: "try" without "catch" and "finally"');let b=new lDe;if(this._blockNode(b),this.code(c),f){let k=this.name("e");this._currNode=b.catch=new Lz(k),f(k)}return y&&(this._currNode=b.finally=new Fz,this.code(y)),this._endBlockNode(Lz,Fz)}throw(c){return this._leafNode(new iDe(c))}block(c,f){return this._blockStarts.push(this._nodes.length),c&&this.code(c).endBlock(f),this}endBlock(c){let f=this._blockStarts.pop();if(f===void 0)throw new Error("CodeGen: not in self-balancing block");let y=this._nodes.length-f;if(y<0||c!==void 0&&y!==c)throw new Error(`CodeGen: wrong number of nodes: ${y} vs ${c} expected`);return this._nodes.length=f,this}func(c,f=Nu.nil,y,b){return this._blockNode(new Rz(c,f,y)),b&&this.code(b).endFunc(),this}endFunc(){return this._endBlockNode(Rz)}optimize(c=1){for(;c-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(c){return this._currNode.nodes.push(c),this}_blockNode(c){this._currNode.nodes.push(c),this._nodes.push(c)}_endBlockNode(c,f){let y=this._currNode;if(y instanceof c||f&&y instanceof f)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${f?`${c.kind}/${f.kind}`:c.kind}"`)}_elseNode(c){let f=this._currNode;if(!(f instanceof W4))throw new Error('CodeGen: "else" without "if"');return this._currNode=f.else=c,this}get _root(){return this._nodes[0]}get _currNode(){let c=this._nodes;return c[c.length-1]}set _currNode(c){let f=this._nodes;f[f.length-1]=c}};Bl.CodeGen=uDe;function H4(l,c){for(let f in c)l[f]=(l[f]||0)+(c[f]||0);return l}function Poe(l,c){return c instanceof Nu._CodeOrName?H4(l,c.names):l}function fF(l,c,f){if(l instanceof Nu.Name)return y(l);if(!b(l))return l;return new Nu._Code(l._items.reduce((k,g)=>(g instanceof Nu.Name&&(g=y(g)),g instanceof Nu._Code?k.push(...g._items):k.push(g),k),[]));function y(k){let g=f[k.str];return g===void 0||c[k.str]!==1?k:(delete c[k.str],g)}function b(k){return k instanceof Nu._Code&&k._items.some(g=>g instanceof Nu.Name&&c[g.str]===1&&f[g.str]!==void 0)}}function eQt(l,c){for(let f in c)l[f]=(l[f]||0)-(c[f]||0)}function Cut(l){return typeof l=="boolean"||typeof l=="number"||l===null?!l:(0,Nu._)`!${_De(l)}`}Bl.not=Cut;var tQt=Aut(Bl.operators.AND);function rQt(...l){return l.reduce(tQt)}Bl.and=rQt;var nQt=Aut(Bl.operators.OR);function iQt(...l){return l.reduce(nQt)}Bl.or=iQt;function Aut(l){return(c,f)=>c===Nu.nil?f:f===Nu.nil?c:(0,Nu._)`${_De(c)} ${l} ${_De(f)}`}function _De(l){return l instanceof Nu.Name?l:(0,Nu._)`(${l})`}});var zu=xt(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.checkStrictMode=Xl.getErrorPath=Xl.Type=Xl.useFunc=Xl.setEvaluated=Xl.evaluatedPropsToName=Xl.mergeEvaluated=Xl.eachItem=Xl.unescapeJsonPointer=Xl.escapeJsonPointer=Xl.escapeFragment=Xl.unescapeFragment=Xl.schemaRefOrVal=Xl.schemaHasRulesButRef=Xl.schemaHasRules=Xl.checkUnknownRules=Xl.alwaysValidSchema=Xl.toHash=void 0;var Vf=Kl(),sQt=wz();function oQt(l){let c={};for(let f of l)c[f]=!0;return c}Xl.toHash=oQt;function aQt(l,c){return typeof c=="boolean"?c:Object.keys(c).length===0?!0:(Nut(l,c),!Dut(c,l.self.RULES.all))}Xl.alwaysValidSchema=aQt;function Nut(l,c=l.schema){let{opts:f,self:y}=l;if(!f.strictSchema||typeof c=="boolean")return;let b=y.RULES.keywords;for(let k in c)b[k]||Out(l,`unknown keyword: "${k}"`)}Xl.checkUnknownRules=Nut;function Dut(l,c){if(typeof l=="boolean")return!l;for(let f in l)if(c[f])return!0;return!1}Xl.schemaHasRules=Dut;function cQt(l,c){if(typeof l=="boolean")return!l;for(let f in l)if(f!=="$ref"&&c.all[f])return!0;return!1}Xl.schemaHasRulesButRef=cQt;function lQt({topSchemaRef:l,schemaPath:c},f,y,b){if(!b){if(typeof f=="number"||typeof f=="boolean")return f;if(typeof f=="string")return(0,Vf._)`${f}`}return(0,Vf._)`${l}${c}${(0,Vf.getProperty)(y)}`}Xl.schemaRefOrVal=lQt;function uQt(l){return Iut(decodeURIComponent(l))}Xl.unescapeFragment=uQt;function _Qt(l){return encodeURIComponent(pDe(l))}Xl.escapeFragment=_Qt;function pDe(l){return typeof l=="number"?`${l}`:l.replace(/~/g,"~0").replace(/\//g,"~1")}Xl.escapeJsonPointer=pDe;function Iut(l){return l.replace(/~1/g,"/").replace(/~0/g,"~")}Xl.unescapeJsonPointer=Iut;function fQt(l,c){if(Array.isArray(l))for(let f of l)c(f);else c(l)}Xl.eachItem=fQt;function kut({mergeNames:l,mergeToName:c,mergeValues:f,resultToName:y}){return(b,k,g,p)=>{let A=g===void 0?k:g instanceof Vf.Name?(k instanceof Vf.Name?l(b,k,g):c(b,k,g),g):k instanceof Vf.Name?(c(b,g,k),k):f(k,g);return p===Vf.Name&&!(A instanceof Vf.Name)?y(b,A):A}}Xl.mergeEvaluated={props:kut({mergeNames:(l,c,f)=>l.if((0,Vf._)`${f} !== true && ${c} !== undefined`,()=>{l.if((0,Vf._)`${c} === true`,()=>l.assign(f,!0),()=>l.assign(f,(0,Vf._)`${f} || {}`).code((0,Vf._)`Object.assign(${f}, ${c})`))}),mergeToName:(l,c,f)=>l.if((0,Vf._)`${f} !== true`,()=>{c===!0?l.assign(f,!0):(l.assign(f,(0,Vf._)`${f} || {}`),dDe(l,f,c))}),mergeValues:(l,c)=>l===!0?!0:{...l,...c},resultToName:wut}),items:kut({mergeNames:(l,c,f)=>l.if((0,Vf._)`${f} !== true && ${c} !== undefined`,()=>l.assign(f,(0,Vf._)`${c} === true ? true : ${f} > ${c} ? ${f} : ${c}`)),mergeToName:(l,c,f)=>l.if((0,Vf._)`${f} !== true`,()=>l.assign(f,c===!0?!0:(0,Vf._)`${f} > ${c} ? ${f} : ${c}`)),mergeValues:(l,c)=>l===!0?!0:Math.max(l,c),resultToName:(l,c)=>l.var("items",c)})};function wut(l,c){if(c===!0)return l.var("props",!0);let f=l.var("props",(0,Vf._)`{}`);return c!==void 0&&dDe(l,f,c),f}Xl.evaluatedPropsToName=wut;function dDe(l,c,f){Object.keys(f).forEach(y=>l.assign((0,Vf._)`${c}${(0,Vf.getProperty)(y)}`,!0))}Xl.setEvaluated=dDe;var Put={};function pQt(l,c){return l.scopeValue("func",{ref:c,code:Put[c.code]||(Put[c.code]=new sQt._Code(c.code))})}Xl.useFunc=pQt;var fDe;(function(l){l[l.Num=0]="Num",l[l.Str=1]="Str"})(fDe||(Xl.Type=fDe={}));function dQt(l,c,f){if(l instanceof Vf.Name){let y=c===fDe.Num;return f?y?(0,Vf._)`"[" + ${l} + "]"`:(0,Vf._)`"['" + ${l} + "']"`:y?(0,Vf._)`"/" + ${l}`:(0,Vf._)`"/" + ${l}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return f?(0,Vf.getProperty)(l).toString():"/"+pDe(l)}Xl.getErrorPath=dQt;function Out(l,c,f=l.opts.strictSchema){if(f){if(c=`strict mode: ${c}`,f===!0)throw new Error(c);l.self.logger.warn(c)}}Xl.checkStrictMode=Out});var dP=xt(mDe=>{"use strict";Object.defineProperty(mDe,"__esModule",{value:!0});var i0=Kl(),mQt={data:new i0.Name("data"),valCxt:new i0.Name("valCxt"),instancePath:new i0.Name("instancePath"),parentData:new i0.Name("parentData"),parentDataProperty:new i0.Name("parentDataProperty"),rootData:new i0.Name("rootData"),dynamicAnchors:new i0.Name("dynamicAnchors"),vErrors:new i0.Name("vErrors"),errors:new i0.Name("errors"),this:new i0.Name("this"),self:new i0.Name("self"),scope:new i0.Name("scope"),json:new i0.Name("json"),jsonPos:new i0.Name("jsonPos"),jsonLen:new i0.Name("jsonLen"),jsonPart:new i0.Name("jsonPart")};mDe.default=mQt});var jz=xt(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.extendErrors=s0.resetErrorsCount=s0.reportExtraError=s0.reportError=s0.keyword$DataError=s0.keywordError=void 0;var Mu=Kl(),Doe=zu(),cv=dP();s0.keywordError={message:({keyword:l})=>(0,Mu.str)`must pass "${l}" keyword validation`};s0.keyword$DataError={message:({keyword:l,schemaType:c})=>c?(0,Mu.str)`"${l}" keyword must be ${c} ($data)`:(0,Mu.str)`"${l}" keyword is invalid ($data)`};function gQt(l,c=s0.keywordError,f,y){let{it:b}=l,{gen:k,compositeRule:g,allErrors:p}=b,A=Lut(l,c,f);y??(g||p)?Rut(k,A):Mut(b,(0,Mu._)`[${A}]`)}s0.reportError=gQt;function hQt(l,c=s0.keywordError,f){let{it:y}=l,{gen:b,compositeRule:k,allErrors:g}=y,p=Lut(l,c,f);Rut(b,p),k||g||Mut(y,cv.default.vErrors)}s0.reportExtraError=hQt;function yQt(l,c){l.assign(cv.default.errors,c),l.if((0,Mu._)`${cv.default.vErrors} !== null`,()=>l.if(c,()=>l.assign((0,Mu._)`${cv.default.vErrors}.length`,c),()=>l.assign(cv.default.vErrors,null)))}s0.resetErrorsCount=yQt;function vQt({gen:l,keyword:c,schemaValue:f,data:y,errsCount:b,it:k}){if(b===void 0)throw new Error("ajv implementation error");let g=l.name("err");l.forRange("i",b,cv.default.errors,p=>{l.const(g,(0,Mu._)`${cv.default.vErrors}[${p}]`),l.if((0,Mu._)`${g}.instancePath === undefined`,()=>l.assign((0,Mu._)`${g}.instancePath`,(0,Mu.strConcat)(cv.default.instancePath,k.errorPath))),l.assign((0,Mu._)`${g}.schemaPath`,(0,Mu.str)`${k.errSchemaPath}/${c}`),k.opts.verbose&&(l.assign((0,Mu._)`${g}.schema`,f),l.assign((0,Mu._)`${g}.data`,y))})}s0.extendErrors=vQt;function Rut(l,c){let f=l.const("err",c);l.if((0,Mu._)`${cv.default.vErrors} === null`,()=>l.assign(cv.default.vErrors,(0,Mu._)`[${f}]`),(0,Mu._)`${cv.default.vErrors}.push(${f})`),l.code((0,Mu._)`${cv.default.errors}++`)}function Mut(l,c){let{gen:f,validateName:y,schemaEnv:b}=l;b.$async?f.throw((0,Mu._)`new ${l.ValidationError}(${c})`):(f.assign((0,Mu._)`${y}.errors`,c),f.return(!1))}var $4={keyword:new Mu.Name("keyword"),schemaPath:new Mu.Name("schemaPath"),params:new Mu.Name("params"),propertyName:new Mu.Name("propertyName"),message:new Mu.Name("message"),schema:new Mu.Name("schema"),parentSchema:new Mu.Name("parentSchema")};function Lut(l,c,f){let{createErrors:y}=l.it;return y===!1?(0,Mu._)`{}`:SQt(l,c,f)}function SQt(l,c,f={}){let{gen:y,it:b}=l,k=[TQt(b,f),bQt(l,f)];return EQt(l,c,k),y.object(...k)}function TQt({errorPath:l},{instancePath:c}){let f=c?(0,Mu.str)`${l}${(0,Doe.getErrorPath)(c,Doe.Type.Str)}`:l;return[cv.default.instancePath,(0,Mu.strConcat)(cv.default.instancePath,f)]}function bQt({keyword:l,it:{errSchemaPath:c}},{schemaPath:f,parentSchema:y}){let b=y?c:(0,Mu.str)`${c}/${l}`;return f&&(b=(0,Mu.str)`${b}${(0,Doe.getErrorPath)(f,Doe.Type.Str)}`),[$4.schemaPath,b]}function EQt(l,{params:c,message:f},y){let{keyword:b,data:k,schemaValue:g,it:p}=l,{opts:A,propertyName:j,topSchemaRef:se,schemaPath:We}=p;y.push([$4.keyword,b],[$4.params,typeof c=="function"?c(l):c||(0,Mu._)`{}`]),A.messages&&y.push([$4.message,typeof f=="function"?f(l):f]),A.verbose&&y.push([$4.schema,g],[$4.parentSchema,(0,Mu._)`${se}${We}`],[cv.default.data,k]),j&&y.push([$4.propertyName,j])}});var jut=xt(pF=>{"use strict";Object.defineProperty(pF,"__esModule",{value:!0});pF.boolOrEmptySchema=pF.topBoolOrEmptySchema=void 0;var xQt=jz(),CQt=Kl(),AQt=dP(),kQt={message:"boolean schema is false"};function PQt(l){let{gen:c,schema:f,validateName:y}=l;f===!1?Fut(l,!1):typeof f=="object"&&f.$async===!0?c.return(AQt.default.data):(c.assign((0,CQt._)`${y}.errors`,null),c.return(!0))}pF.topBoolOrEmptySchema=PQt;function NQt(l,c){let{gen:f,schema:y}=l;y===!1?(f.var(c,!1),Fut(l)):f.var(c,!0)}pF.boolOrEmptySchema=NQt;function Fut(l,c){let{gen:f,data:y}=l,b={gen:f,keyword:"false schema",data:y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:l};(0,xQt.reportError)(b,kQt,void 0,c)}});var gDe=xt(dF=>{"use strict";Object.defineProperty(dF,"__esModule",{value:!0});dF.getRules=dF.isJSONType=void 0;var DQt=["string","number","integer","boolean","null","object","array"],IQt=new Set(DQt);function wQt(l){return typeof l=="string"&&IQt.has(l)}dF.isJSONType=wQt;function OQt(){let l={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...l,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},l.number,l.string,l.array,l.object],post:{rules:[]},all:{},keywords:{}}}dF.getRules=OQt});var hDe=xt(kI=>{"use strict";Object.defineProperty(kI,"__esModule",{value:!0});kI.shouldUseRule=kI.shouldUseGroup=kI.schemaHasRulesForType=void 0;function RQt({schema:l,self:c},f){let y=c.RULES.types[f];return y&&y!==!0&&But(l,y)}kI.schemaHasRulesForType=RQt;function But(l,c){return c.rules.some(f=>Uut(l,f))}kI.shouldUseGroup=But;function Uut(l,c){var f;return l[c.keyword]!==void 0||((f=c.definition.implements)===null||f===void 0?void 0:f.some(y=>l[y]!==void 0))}kI.shouldUseRule=Uut});var Bz=xt(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.reportTypeError=o0.checkDataTypes=o0.checkDataType=o0.coerceAndCheckDataType=o0.getJSONTypes=o0.getSchemaTypes=o0.DataType=void 0;var MQt=gDe(),LQt=hDe(),FQt=jz(),Tl=Kl(),Vut=zu(),mF;(function(l){l[l.Correct=0]="Correct",l[l.Wrong=1]="Wrong"})(mF||(o0.DataType=mF={}));function jQt(l){let c=Jut(l.type);if(c.includes("null")){if(l.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!c.length&&l.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');l.nullable===!0&&c.push("null")}return c}o0.getSchemaTypes=jQt;function Jut(l){let c=Array.isArray(l)?l:l?[l]:[];if(c.every(MQt.isJSONType))return c;throw new Error("type must be JSONType or JSONType[]: "+c.join(","))}o0.getJSONTypes=Jut;function BQt(l,c){let{gen:f,data:y,opts:b}=l,k=UQt(c,b.coerceTypes),g=c.length>0&&!(k.length===0&&c.length===1&&(0,LQt.schemaHasRulesForType)(l,c[0]));if(g){let p=vDe(c,y,b.strictNumbers,mF.Wrong);f.if(p,()=>{k.length?VQt(l,c,k):SDe(l)})}return g}o0.coerceAndCheckDataType=BQt;var qut=new Set(["string","number","integer","boolean","null"]);function UQt(l,c){return c?l.filter(f=>qut.has(f)||c==="array"&&f==="array"):[]}function VQt(l,c,f){let{gen:y,data:b,opts:k}=l,g=y.let("dataType",(0,Tl._)`typeof ${b}`),p=y.let("coerced",(0,Tl._)`undefined`);k.coerceTypes==="array"&&y.if((0,Tl._)`${g} == 'object' && Array.isArray(${b}) && ${b}.length == 1`,()=>y.assign(b,(0,Tl._)`${b}[0]`).assign(g,(0,Tl._)`typeof ${b}`).if(vDe(c,b,k.strictNumbers),()=>y.assign(p,b))),y.if((0,Tl._)`${p} !== undefined`);for(let j of f)(qut.has(j)||j==="array"&&k.coerceTypes==="array")&&A(j);y.else(),SDe(l),y.endIf(),y.if((0,Tl._)`${p} !== undefined`,()=>{y.assign(b,p),JQt(l,p)});function A(j){switch(j){case"string":y.elseIf((0,Tl._)`${g} == "number" || ${g} == "boolean"`).assign(p,(0,Tl._)`"" + ${b}`).elseIf((0,Tl._)`${b} === null`).assign(p,(0,Tl._)`""`);return;case"number":y.elseIf((0,Tl._)`${g} == "boolean" || ${b} === null
              || (${g} == "string" && ${b} && ${b} == +${b})`).assign(p,(0,Tl._)`+${b}`);return;case"integer":y.elseIf((0,Tl._)`${g} === "boolean" || ${b} === null
              || (${g} === "string" && ${b} && ${b} == +${b} && !(${b} % 1))`).assign(p,(0,Tl._)`+${b}`);return;case"boolean":y.elseIf((0,Tl._)`${b} === "false" || ${b} === 0 || ${b} === null`).assign(p,!1).elseIf((0,Tl._)`${b} === "true" || ${b} === 1`).assign(p,!0);return;case"null":y.elseIf((0,Tl._)`${b} === "" || ${b} === 0 || ${b} === false`),y.assign(p,null);return;case"array":y.elseIf((0,Tl._)`${g} === "string" || ${g} === "number"
              || ${g} === "boolean" || ${b} === null`).assign(p,(0,Tl._)`[${b}]`)}}}function JQt({gen:l,parentData:c,parentDataProperty:f},y){l.if((0,Tl._)`${c} !== undefined`,()=>l.assign((0,Tl._)`${c}[${f}]`,y))}function yDe(l,c,f,y=mF.Correct){let b=y===mF.Correct?Tl.operators.EQ:Tl.operators.NEQ,k;switch(l){case"null":return(0,Tl._)`${c} ${b} null`;case"array":k=(0,Tl._)`Array.isArray(${c})`;break;case"object":k=(0,Tl._)`${c} && typeof ${c} == "object" && !Array.isArray(${c})`;break;case"integer":k=g((0,Tl._)`!(${c} % 1) && !isNaN(${c})`);break;case"number":k=g();break;default:return(0,Tl._)`typeof ${c} ${b} ${l}`}return y===mF.Correct?k:(0,Tl.not)(k);function g(p=Tl.nil){return(0,Tl.and)((0,Tl._)`typeof ${c} == "number"`,p,f?(0,Tl._)`isFinite(${c})`:Tl.nil)}}o0.checkDataType=yDe;function vDe(l,c,f,y){if(l.length===1)return yDe(l[0],c,f,y);let b,k=(0,Vut.toHash)(l);if(k.array&&k.object){let g=(0,Tl._)`typeof ${c} != "object"`;b=k.null?g:(0,Tl._)`!${c} || ${g}`,delete k.null,delete k.array,delete k.object}else b=Tl.nil;k.number&&delete k.integer;for(let g in k)b=(0,Tl.and)(b,yDe(g,c,f,y));return b}o0.checkDataTypes=vDe;var qQt={message:({schema:l})=>`must be ${l}`,params:({schema:l,schemaValue:c})=>typeof l=="string"?(0,Tl._)`{type: ${l}}`:(0,Tl._)`{type: ${c}}`};function SDe(l){let c=zQt(l);(0,FQt.reportError)(c,qQt)}o0.reportTypeError=SDe;function zQt(l){let{gen:c,data:f,schema:y}=l,b=(0,Vut.schemaRefOrVal)(l,y,"type");return{gen:c,keyword:"type",data:f,schema:y.type,schemaCode:b,schemaValue:b,parentSchema:y,params:{},it:l}}});var Wut=xt(Ioe=>{"use strict";Object.defineProperty(Ioe,"__esModule",{value:!0});Ioe.assignDefaults=void 0;var gF=Kl(),WQt=zu();function GQt(l,c){let{properties:f,items:y}=l.schema;if(c==="object"&&f)for(let b in f)zut(l,b,f[b].default);else c==="array"&&Array.isArray(y)&&y.forEach((b,k)=>zut(l,k,b.default))}Ioe.assignDefaults=GQt;function zut(l,c,f){let{gen:y,compositeRule:b,data:k,opts:g}=l;if(f===void 0)return;let p=(0,gF._)`${k}${(0,gF.getProperty)(c)}`;if(b){(0,WQt.checkStrictMode)(l,`default is ignored for: ${p}`);return}let A=(0,gF._)`${p} === undefined`;g.useDefaults==="empty"&&(A=(0,gF._)`${A} || ${p} === null || ${p} === ""`),y.if(A,(0,gF._)`${p} = ${(0,gF.stringify)(f)}`)}});var wb=xt(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});bf.validateUnion=bf.validateArray=bf.usePattern=bf.callValidateCode=bf.schemaProperties=bf.allSchemaProperties=bf.noPropertyInData=bf.propertyInData=bf.isOwnProperty=bf.hasPropFunc=bf.reportMissingProp=bf.checkMissingProp=bf.checkReportMissingProp=void 0;var Cp=Kl(),TDe=zu(),PI=dP(),HQt=zu();function $Qt(l,c){let{gen:f,data:y,it:b}=l;f.if(EDe(f,y,c,b.opts.ownProperties),()=>{l.setParams({missingProperty:(0,Cp._)`${c}`},!0),l.error()})}bf.checkReportMissingProp=$Qt;function YQt({gen:l,data:c,it:{opts:f}},y,b){return(0,Cp.or)(...y.map(k=>(0,Cp.and)(EDe(l,c,k,f.ownProperties),(0,Cp._)`${b} = ${k}`)))}bf.checkMissingProp=YQt;function KQt(l,c){l.setParams({missingProperty:c},!0),l.error()}bf.reportMissingProp=KQt;function Gut(l){return l.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Cp._)`Object.prototype.hasOwnProperty`})}bf.hasPropFunc=Gut;function bDe(l,c,f){return(0,Cp._)`${Gut(l)}.call(${c}, ${f})`}bf.isOwnProperty=bDe;function XQt(l,c,f,y){let b=(0,Cp._)`${c}${(0,Cp.getProperty)(f)} !== undefined`;return y?(0,Cp._)`${b} && ${bDe(l,c,f)}`:b}bf.propertyInData=XQt;function EDe(l,c,f,y){let b=(0,Cp._)`${c}${(0,Cp.getProperty)(f)} === undefined`;return y?(0,Cp.or)(b,(0,Cp.not)(bDe(l,c,f))):b}bf.noPropertyInData=EDe;function Hut(l){return l?Object.keys(l).filter(c=>c!=="__proto__"):[]}bf.allSchemaProperties=Hut;function QQt(l,c){return Hut(c).filter(f=>!(0,TDe.alwaysValidSchema)(l,c[f]))}bf.schemaProperties=QQt;function ZQt({schemaCode:l,data:c,it:{gen:f,topSchemaRef:y,schemaPath:b,errorPath:k},it:g},p,A,j){let se=j?(0,Cp._)`${l}, ${c}, ${y}${b}`:c,We=[[PI.default.instancePath,(0,Cp.strConcat)(PI.default.instancePath,k)],[PI.default.parentData,g.parentData],[PI.default.parentDataProperty,g.parentDataProperty],[PI.default.rootData,PI.default.rootData]];g.opts.dynamicRef&&We.push([PI.default.dynamicAnchors,PI.default.dynamicAnchors]);let ve=(0,Cp._)`${se}, ${f.object(...We)}`;return A!==Cp.nil?(0,Cp._)`${p}.call(${A}, ${ve})`:(0,Cp._)`${p}(${ve})`}bf.callValidateCode=ZQt;var eZt=(0,Cp._)`new RegExp`;function tZt({gen:l,it:{opts:c}},f){let y=c.unicodeRegExp?"u":"",{regExp:b}=c.code,k=b(f,y);return l.scopeValue("pattern",{key:k.toString(),ref:k,code:(0,Cp._)`${b.code==="new RegExp"?eZt:(0,HQt.useFunc)(l,b)}(${f}, ${y})`})}bf.usePattern=tZt;function rZt(l){let{gen:c,data:f,keyword:y,it:b}=l,k=c.name("valid");if(b.allErrors){let p=c.let("valid",!0);return g(()=>c.assign(p,!1)),p}return c.var(k,!0),g(()=>c.break()),k;function g(p){let A=c.const("len",(0,Cp._)`${f}.length`);c.forRange("i",0,A,j=>{l.subschema({keyword:y,dataProp:j,dataPropType:TDe.Type.Num},k),c.if((0,Cp.not)(k),p)})}}bf.validateArray=rZt;function nZt(l){let{gen:c,schema:f,keyword:y,it:b}=l;if(!Array.isArray(f))throw new Error("ajv implementation error");if(f.some(A=>(0,TDe.alwaysValidSchema)(b,A))&&!b.opts.unevaluated)return;let g=c.let("valid",!1),p=c.name("_valid");c.block(()=>f.forEach((A,j)=>{let se=l.subschema({keyword:y,schemaProp:j,compositeRule:!0},p);c.assign(g,(0,Cp._)`${g} || ${p}`),l.mergeValidEvaluated(se,p)||c.if((0,Cp.not)(g))})),l.result(g,()=>l.reset(),()=>l.error(!0))}bf.validateUnion=nZt});var Kut=xt(xC=>{"use strict";Object.defineProperty(xC,"__esModule",{value:!0});xC.validateKeywordUsage=xC.validSchemaType=xC.funcKeywordCode=xC.macroKeywordCode=void 0;var lv=Kl(),Y4=dP(),iZt=wb(),sZt=jz();function oZt(l,c){let{gen:f,keyword:y,schema:b,parentSchema:k,it:g}=l,p=c.macro.call(g.self,b,k,g),A=Yut(f,y,p);g.opts.validateSchema!==!1&&g.self.validateSchema(p,!0);let j=f.name("valid");l.subschema({schema:p,schemaPath:lv.nil,errSchemaPath:`${g.errSchemaPath}/${y}`,topSchemaRef:A,compositeRule:!0},j),l.pass(j,()=>l.error(!0))}xC.macroKeywordCode=oZt;function aZt(l,c){var f;let{gen:y,keyword:b,schema:k,parentSchema:g,$data:p,it:A}=l;lZt(A,c);let j=!p&&c.compile?c.compile.call(A.self,k,g,A):c.validate,se=Yut(y,b,j),We=y.let("valid");l.block$data(We,ve),l.ok((f=c.valid)!==null&&f!==void 0?f:We);function ve(){if(c.errors===!1)kt(),c.modifying&&$ut(l),Et(()=>l.error());else{let pi=c.async?lr():Rr();c.modifying&&$ut(l),Et(()=>cZt(l,pi))}}function lr(){let pi=y.let("ruleErrs",null);return y.try(()=>kt((0,lv._)`await `),di=>y.assign(We,!1).if((0,lv._)`${di} instanceof ${A.ValidationError}`,()=>y.assign(pi,(0,lv._)`${di}.errors`),()=>y.throw(di))),pi}function Rr(){let pi=(0,lv._)`${se}.errors`;return y.assign(pi,null),kt(lv.nil),pi}function kt(pi=c.async?(0,lv._)`await `:lv.nil){let di=A.opts.passContext?Y4.default.this:Y4.default.self,ra=!("compile"in c&&!p||c.schema===!1);y.assign(We,(0,lv._)`${pi}${(0,iZt.callValidateCode)(l,se,di,ra)}`,c.modifying)}function Et(pi){var di;y.if((0,lv.not)((di=c.valid)!==null&&di!==void 0?di:We),pi)}}xC.funcKeywordCode=aZt;function $ut(l){let{gen:c,data:f,it:y}=l;c.if(y.parentData,()=>c.assign(f,(0,lv._)`${y.parentData}[${y.parentDataProperty}]`))}function cZt(l,c){let{gen:f}=l;f.if((0,lv._)`Array.isArray(${c})`,()=>{f.assign(Y4.default.vErrors,(0,lv._)`${Y4.default.vErrors} === null ? ${c} : ${Y4.default.vErrors}.concat(${c})`).assign(Y4.default.errors,(0,lv._)`${Y4.default.vErrors}.length`),(0,sZt.extendErrors)(l)},()=>l.error())}function lZt({schemaEnv:l},c){if(c.async&&!l.$async)throw new Error("async keyword in sync schema")}function Yut(l,c,f){if(f===void 0)throw new Error(`keyword "${c}" failed to compile`);return l.scopeValue("keyword",typeof f=="function"?{ref:f}:{ref:f,code:(0,lv.stringify)(f)})}function uZt(l,c,f=!1){return!c.length||c.some(y=>y==="array"?Array.isArray(l):y==="object"?l&&typeof l=="object"&&!Array.isArray(l):typeof l==y||f&&typeof l>"u")}xC.validSchemaType=uZt;function _Zt({schema:l,opts:c,self:f,errSchemaPath:y},b,k){if(Array.isArray(b.keyword)?!b.keyword.includes(k):b.keyword!==k)throw new Error("ajv implementation error");let g=b.dependencies;if(g?.some(p=>!Object.prototype.hasOwnProperty.call(l,p)))throw new Error(`parent schema must have dependencies of ${k}: ${g.join(",")}`);if(b.validateSchema&&!b.validateSchema(l[k])){let A=`keyword "${k}" value is invalid at path "${y}": `+f.errorsText(b.validateSchema.errors);if(c.validateSchema==="log")f.logger.error(A);else throw new Error(A)}}xC.validateKeywordUsage=_Zt});var Qut=xt(NI=>{"use strict";Object.defineProperty(NI,"__esModule",{value:!0});NI.extendSubschemaMode=NI.extendSubschemaData=NI.getSubschema=void 0;var CC=Kl(),Xut=zu();function fZt(l,{keyword:c,schemaProp:f,schema:y,schemaPath:b,errSchemaPath:k,topSchemaRef:g}){if(c!==void 0&&y!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(c!==void 0){let p=l.schema[c];return f===void 0?{schema:p,schemaPath:(0,CC._)`${l.schemaPath}${(0,CC.getProperty)(c)}`,errSchemaPath:`${l.errSchemaPath}/${c}`}:{schema:p[f],schemaPath:(0,CC._)`${l.schemaPath}${(0,CC.getProperty)(c)}${(0,CC.getProperty)(f)}`,errSchemaPath:`${l.errSchemaPath}/${c}/${(0,Xut.escapeFragment)(f)}`}}if(y!==void 0){if(b===void 0||k===void 0||g===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:y,schemaPath:b,topSchemaRef:g,errSchemaPath:k}}throw new Error('either "keyword" or "schema" must be passed')}NI.getSubschema=fZt;function pZt(l,c,{dataProp:f,dataPropType:y,data:b,dataTypes:k,propertyName:g}){if(b!==void 0&&f!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:p}=c;if(f!==void 0){let{errorPath:j,dataPathArr:se,opts:We}=c,ve=p.let("data",(0,CC._)`${c.data}${(0,CC.getProperty)(f)}`,!0);A(ve),l.errorPath=(0,CC.str)`${j}${(0,Xut.getErrorPath)(f,y,We.jsPropertySyntax)}`,l.parentDataProperty=(0,CC._)`${f}`,l.dataPathArr=[...se,l.parentDataProperty]}if(b!==void 0){let j=b instanceof CC.Name?b:p.let("data",b,!0);A(j),g!==void 0&&(l.propertyName=g)}k&&(l.dataTypes=k);function A(j){l.data=j,l.dataLevel=c.dataLevel+1,l.dataTypes=[],c.definedProperties=new Set,l.parentData=c.data,l.dataNames=[...c.dataNames,j]}}NI.extendSubschemaData=pZt;function dZt(l,{jtdDiscriminator:c,jtdMetadata:f,compositeRule:y,createErrors:b,allErrors:k}){y!==void 0&&(l.compositeRule=y),b!==void 0&&(l.createErrors=b),k!==void 0&&(l.allErrors=k),l.jtdDiscriminator=c,l.jtdMetadata=f}NI.extendSubschemaMode=dZt});var xDe=xt((Xyr,Zut)=>{"use strict";Zut.exports=function l(c,f){if(c===f)return!0;if(c&&f&&typeof c=="object"&&typeof f=="object"){if(c.constructor!==f.constructor)return!1;var y,b,k;if(Array.isArray(c)){if(y=c.length,y!=f.length)return!1;for(b=y;b--!==0;)if(!l(c[b],f[b]))return!1;return!0}if(c.constructor===RegExp)return c.source===f.source&&c.flags===f.flags;if(c.valueOf!==Object.prototype.valueOf)return c.valueOf()===f.valueOf();if(c.toString!==Object.prototype.toString)return c.toString()===f.toString();if(k=Object.keys(c),y=k.length,y!==Object.keys(f).length)return!1;for(b=y;b--!==0;)if(!Object.prototype.hasOwnProperty.call(f,k[b]))return!1;for(b=y;b--!==0;){var g=k[b];if(!l(c[g],f[g]))return!1}return!0}return c!==c&&f!==f}});var t_t=xt((Qyr,e_t)=>{"use strict";var DI=e_t.exports=function(l,c,f){typeof c=="function"&&(f=c,c={}),f=c.cb||f;var y=typeof f=="function"?f:f.pre||function(){},b=f.post||function(){};woe(c,y,b,l,"",l)};DI.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};DI.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};DI.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};DI.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function woe(l,c,f,y,b,k,g,p,A,j){if(y&&typeof y=="object"&&!Array.isArray(y)){c(y,b,k,g,p,A,j);for(var se in y){var We=y[se];if(Array.isArray(We)){if(se in DI.arrayKeywords)for(var ve=0;ve{"use strict";Object.defineProperty(k1,"__esModule",{value:!0});k1.getSchemaRefs=k1.resolveUrl=k1.normalizeId=k1._getFullPath=k1.getFullPath=k1.inlineRef=void 0;var gZt=zu(),hZt=xDe(),yZt=t_t(),vZt=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function SZt(l,c=!0){return typeof l=="boolean"?!0:c===!0?!CDe(l):c?r_t(l)<=c:!1}k1.inlineRef=SZt;var TZt=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function CDe(l){for(let c in l){if(TZt.has(c))return!0;let f=l[c];if(Array.isArray(f)&&f.some(CDe)||typeof f=="object"&&CDe(f))return!0}return!1}function r_t(l){let c=0;for(let f in l){if(f==="$ref")return 1/0;if(c++,!vZt.has(f)&&(typeof l[f]=="object"&&(0,gZt.eachItem)(l[f],y=>c+=r_t(y)),c===1/0))return 1/0}return c}function n_t(l,c="",f){f!==!1&&(c=hF(c));let y=l.parse(c);return i_t(l,y)}k1.getFullPath=n_t;function i_t(l,c){return l.serialize(c).split("#")[0]+"#"}k1._getFullPath=i_t;var bZt=/#\/?$/;function hF(l){return l?l.replace(bZt,""):""}k1.normalizeId=hF;function EZt(l,c,f){return f=hF(f),l.resolve(c,f)}k1.resolveUrl=EZt;var xZt=/^[a-z_][-a-z0-9._]*$/i;function CZt(l,c){if(typeof l=="boolean")return{};let{schemaId:f,uriResolver:y}=this.opts,b=hF(l[f]||c),k={"":b},g=n_t(y,b,!1),p={},A=new Set;return yZt(l,{allKeys:!0},(We,ve,lr,Rr)=>{if(Rr===void 0)return;let kt=g+ve,Et=k[Rr];typeof We[f]=="string"&&(Et=pi.call(this,We[f])),di.call(this,We.$anchor),di.call(this,We.$dynamicAnchor),k[ve]=Et;function pi(ra){let Ql=this.opts.uriResolver.resolve;if(ra=hF(Et?Ql(Et,ra):ra),A.has(ra))throw se(ra);A.add(ra);let va=this.refs[ra];return typeof va=="string"&&(va=this.refs[va]),typeof va=="object"?j(We,va.schema,ra):ra!==hF(kt)&&(ra[0]==="#"?(j(We,p[ra],ra),p[ra]=We):this.refs[ra]=kt),ra}function di(ra){if(typeof ra=="string"){if(!xZt.test(ra))throw new Error(`invalid anchor "${ra}"`);pi.call(this,`#${ra}`)}}}),p;function j(We,ve,lr){if(ve!==void 0&&!hZt(We,ve))throw se(lr)}function se(We){return new Error(`reference "${We}" resolves to more than one schema`)}}k1.getSchemaRefs=CZt});var qz=xt(II=>{"use strict";Object.defineProperty(II,"__esModule",{value:!0});II.getData=II.KeywordCxt=II.validateFunctionCode=void 0;var l_t=jut(),s_t=Bz(),kDe=hDe(),Ooe=Bz(),AZt=Wut(),Jz=Kut(),ADe=Qut(),Da=Kl(),Fc=dP(),kZt=Uz(),mP=zu(),Vz=jz();function PZt(l){if(f_t(l)&&(p_t(l),__t(l))){IZt(l);return}u_t(l,()=>(0,l_t.topBoolOrEmptySchema)(l))}II.validateFunctionCode=PZt;function u_t({gen:l,validateName:c,schema:f,schemaEnv:y,opts:b},k){b.code.es5?l.func(c,(0,Da._)`${Fc.default.data}, ${Fc.default.valCxt}`,y.$async,()=>{l.code((0,Da._)`"use strict"; ${o_t(f,b)}`),DZt(l,b),l.code(k)}):l.func(c,(0,Da._)`${Fc.default.data}, ${NZt(b)}`,y.$async,()=>l.code(o_t(f,b)).code(k))}function NZt(l){return(0,Da._)`{${Fc.default.instancePath}="", ${Fc.default.parentData}, ${Fc.default.parentDataProperty}, ${Fc.default.rootData}=${Fc.default.data}${l.dynamicRef?(0,Da._)`, ${Fc.default.dynamicAnchors}={}`:Da.nil}}={}`}function DZt(l,c){l.if(Fc.default.valCxt,()=>{l.var(Fc.default.instancePath,(0,Da._)`${Fc.default.valCxt}.${Fc.default.instancePath}`),l.var(Fc.default.parentData,(0,Da._)`${Fc.default.valCxt}.${Fc.default.parentData}`),l.var(Fc.default.parentDataProperty,(0,Da._)`${Fc.default.valCxt}.${Fc.default.parentDataProperty}`),l.var(Fc.default.rootData,(0,Da._)`${Fc.default.valCxt}.${Fc.default.rootData}`),c.dynamicRef&&l.var(Fc.default.dynamicAnchors,(0,Da._)`${Fc.default.valCxt}.${Fc.default.dynamicAnchors}`)},()=>{l.var(Fc.default.instancePath,(0,Da._)`""`),l.var(Fc.default.parentData,(0,Da._)`undefined`),l.var(Fc.default.parentDataProperty,(0,Da._)`undefined`),l.var(Fc.default.rootData,Fc.default.data),c.dynamicRef&&l.var(Fc.default.dynamicAnchors,(0,Da._)`{}`)})}function IZt(l){let{schema:c,opts:f,gen:y}=l;u_t(l,()=>{f.$comment&&c.$comment&&m_t(l),LZt(l),y.let(Fc.default.vErrors,null),y.let(Fc.default.errors,0),f.unevaluated&&wZt(l),d_t(l),BZt(l)})}function wZt(l){let{gen:c,validateName:f}=l;l.evaluated=c.const("evaluated",(0,Da._)`${f}.evaluated`),c.if((0,Da._)`${l.evaluated}.dynamicProps`,()=>c.assign((0,Da._)`${l.evaluated}.props`,(0,Da._)`undefined`)),c.if((0,Da._)`${l.evaluated}.dynamicItems`,()=>c.assign((0,Da._)`${l.evaluated}.items`,(0,Da._)`undefined`))}function o_t(l,c){let f=typeof l=="object"&&l[c.schemaId];return f&&(c.code.source||c.code.process)?(0,Da._)`/*# sourceURL=${f} */`:Da.nil}function OZt(l,c){if(f_t(l)&&(p_t(l),__t(l))){RZt(l,c);return}(0,l_t.boolOrEmptySchema)(l,c)}function __t({schema:l,self:c}){if(typeof l=="boolean")return!l;for(let f in l)if(c.RULES.all[f])return!0;return!1}function f_t(l){return typeof l.schema!="boolean"}function RZt(l,c){let{schema:f,gen:y,opts:b}=l;b.$comment&&f.$comment&&m_t(l),FZt(l),jZt(l);let k=y.const("_errs",Fc.default.errors);d_t(l,k),y.var(c,(0,Da._)`${k} === ${Fc.default.errors}`)}function p_t(l){(0,mP.checkUnknownRules)(l),MZt(l)}function d_t(l,c){if(l.opts.jtd)return a_t(l,[],!1,c);let f=(0,s_t.getSchemaTypes)(l.schema),y=(0,s_t.coerceAndCheckDataType)(l,f);a_t(l,f,!y,c)}function MZt(l){let{schema:c,errSchemaPath:f,opts:y,self:b}=l;c.$ref&&y.ignoreKeywordsWithRef&&(0,mP.schemaHasRulesButRef)(c,b.RULES)&&b.logger.warn(`$ref: keywords ignored in schema at path "${f}"`)}function LZt(l){let{schema:c,opts:f}=l;c.default!==void 0&&f.useDefaults&&f.strictSchema&&(0,mP.checkStrictMode)(l,"default is ignored in the schema root")}function FZt(l){let c=l.schema[l.opts.schemaId];c&&(l.baseId=(0,kZt.resolveUrl)(l.opts.uriResolver,l.baseId,c))}function jZt(l){if(l.schema.$async&&!l.schemaEnv.$async)throw new Error("async schema in sync schema")}function m_t({gen:l,schemaEnv:c,schema:f,errSchemaPath:y,opts:b}){let k=f.$comment;if(b.$comment===!0)l.code((0,Da._)`${Fc.default.self}.logger.log(${k})`);else if(typeof b.$comment=="function"){let g=(0,Da.str)`${y}/$comment`,p=l.scopeValue("root",{ref:c.root});l.code((0,Da._)`${Fc.default.self}.opts.$comment(${k}, ${g}, ${p}.schema)`)}}function BZt(l){let{gen:c,schemaEnv:f,validateName:y,ValidationError:b,opts:k}=l;f.$async?c.if((0,Da._)`${Fc.default.errors} === 0`,()=>c.return(Fc.default.data),()=>c.throw((0,Da._)`new ${b}(${Fc.default.vErrors})`)):(c.assign((0,Da._)`${y}.errors`,Fc.default.vErrors),k.unevaluated&&UZt(l),c.return((0,Da._)`${Fc.default.errors} === 0`))}function UZt({gen:l,evaluated:c,props:f,items:y}){f instanceof Da.Name&&l.assign((0,Da._)`${c}.props`,f),y instanceof Da.Name&&l.assign((0,Da._)`${c}.items`,y)}function a_t(l,c,f,y){let{gen:b,schema:k,data:g,allErrors:p,opts:A,self:j}=l,{RULES:se}=j;if(k.$ref&&(A.ignoreKeywordsWithRef||!(0,mP.schemaHasRulesButRef)(k,se))){b.block(()=>h_t(l,"$ref",se.all.$ref.definition));return}A.jtd||VZt(l,c),b.block(()=>{for(let ve of se.rules)We(ve);We(se.post)});function We(ve){(0,kDe.shouldUseGroup)(k,ve)&&(ve.type?(b.if((0,Ooe.checkDataType)(ve.type,g,A.strictNumbers)),c_t(l,ve),c.length===1&&c[0]===ve.type&&f&&(b.else(),(0,Ooe.reportTypeError)(l)),b.endIf()):c_t(l,ve),p||b.if((0,Da._)`${Fc.default.errors} === ${y||0}`))}}function c_t(l,c){let{gen:f,schema:y,opts:{useDefaults:b}}=l;b&&(0,AZt.assignDefaults)(l,c.type),f.block(()=>{for(let k of c.rules)(0,kDe.shouldUseRule)(y,k)&&h_t(l,k.keyword,k.definition,c.type)})}function VZt(l,c){l.schemaEnv.meta||!l.opts.strictTypes||(JZt(l,c),l.opts.allowUnionTypes||qZt(l,c),zZt(l,l.dataTypes))}function JZt(l,c){if(c.length){if(!l.dataTypes.length){l.dataTypes=c;return}c.forEach(f=>{g_t(l.dataTypes,f)||PDe(l,`type "${f}" not allowed by context "${l.dataTypes.join(",")}"`)}),GZt(l,c)}}function qZt(l,c){c.length>1&&!(c.length===2&&c.includes("null"))&&PDe(l,"use allowUnionTypes to allow union type keyword")}function zZt(l,c){let f=l.self.RULES.all;for(let y in f){let b=f[y];if(typeof b=="object"&&(0,kDe.shouldUseRule)(l.schema,b)){let{type:k}=b.definition;k.length&&!k.some(g=>WZt(c,g))&&PDe(l,`missing type "${k.join(",")}" for keyword "${y}"`)}}}function WZt(l,c){return l.includes(c)||c==="number"&&l.includes("integer")}function g_t(l,c){return l.includes(c)||c==="integer"&&l.includes("number")}function GZt(l,c){let f=[];for(let y of l.dataTypes)g_t(c,y)?f.push(y):c.includes("integer")&&y==="number"&&f.push("integer");l.dataTypes=f}function PDe(l,c){let f=l.schemaEnv.baseId+l.errSchemaPath;c+=` at "${f}" (strictTypes)`,(0,mP.checkStrictMode)(l,c,l.opts.strictTypes)}var Roe=class{constructor(c,f,y){if((0,Jz.validateKeywordUsage)(c,f,y),this.gen=c.gen,this.allErrors=c.allErrors,this.keyword=y,this.data=c.data,this.schema=c.schema[y],this.$data=f.$data&&c.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,mP.schemaRefOrVal)(c,this.schema,y,this.$data),this.schemaType=f.schemaType,this.parentSchema=c.schema,this.params={},this.it=c,this.def=f,this.$data)this.schemaCode=c.gen.const("vSchema",y_t(this.$data,c));else if(this.schemaCode=this.schemaValue,!(0,Jz.validSchemaType)(this.schema,f.schemaType,f.allowUndefined))throw new Error(`${y} value must be ${JSON.stringify(f.schemaType)}`);("code"in f?f.trackErrors:f.errors!==!1)&&(this.errsCount=c.gen.const("_errs",Fc.default.errors))}result(c,f,y){this.failResult((0,Da.not)(c),f,y)}failResult(c,f,y){this.gen.if(c),y?y():this.error(),f?(this.gen.else(),f(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(c,f){this.failResult((0,Da.not)(c),void 0,f)}fail(c){if(c===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(c),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(c){if(!this.$data)return this.fail(c);let{schemaCode:f}=this;this.fail((0,Da._)`${f} !== undefined && (${(0,Da.or)(this.invalid$data(),c)})`)}error(c,f,y){if(f){this.setParams(f),this._error(c,y),this.setParams({});return}this._error(c,y)}_error(c,f){(c?Vz.reportExtraError:Vz.reportError)(this,this.def.error,f)}$dataError(){(0,Vz.reportError)(this,this.def.$dataError||Vz.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Vz.resetErrorsCount)(this.gen,this.errsCount)}ok(c){this.allErrors||this.gen.if(c)}setParams(c,f){f?Object.assign(this.params,c):this.params=c}block$data(c,f,y=Da.nil){this.gen.block(()=>{this.check$data(c,y),f()})}check$data(c=Da.nil,f=Da.nil){if(!this.$data)return;let{gen:y,schemaCode:b,schemaType:k,def:g}=this;y.if((0,Da.or)((0,Da._)`${b} === undefined`,f)),c!==Da.nil&&y.assign(c,!0),(k.length||g.validateSchema)&&(y.elseIf(this.invalid$data()),this.$dataError(),c!==Da.nil&&y.assign(c,!1)),y.else()}invalid$data(){let{gen:c,schemaCode:f,schemaType:y,def:b,it:k}=this;return(0,Da.or)(g(),p());function g(){if(y.length){if(!(f instanceof Da.Name))throw new Error("ajv implementation error");let A=Array.isArray(y)?y:[y];return(0,Da._)`${(0,Ooe.checkDataTypes)(A,f,k.opts.strictNumbers,Ooe.DataType.Wrong)}`}return Da.nil}function p(){if(b.validateSchema){let A=c.scopeValue("validate$data",{ref:b.validateSchema});return(0,Da._)`!${A}(${f})`}return Da.nil}}subschema(c,f){let y=(0,ADe.getSubschema)(this.it,c);(0,ADe.extendSubschemaData)(y,this.it,c),(0,ADe.extendSubschemaMode)(y,c);let b={...this.it,...y,items:void 0,props:void 0};return OZt(b,f),b}mergeEvaluated(c,f){let{it:y,gen:b}=this;y.opts.unevaluated&&(y.props!==!0&&c.props!==void 0&&(y.props=mP.mergeEvaluated.props(b,c.props,y.props,f)),y.items!==!0&&c.items!==void 0&&(y.items=mP.mergeEvaluated.items(b,c.items,y.items,f)))}mergeValidEvaluated(c,f){let{it:y,gen:b}=this;if(y.opts.unevaluated&&(y.props!==!0||y.items!==!0))return b.if(f,()=>this.mergeEvaluated(c,Da.Name)),!0}};II.KeywordCxt=Roe;function h_t(l,c,f,y){let b=new Roe(l,f,c);"code"in f?f.code(b,y):b.$data&&f.validate?(0,Jz.funcKeywordCode)(b,f):"macro"in f?(0,Jz.macroKeywordCode)(b,f):(f.compile||f.validate)&&(0,Jz.funcKeywordCode)(b,f)}var HZt=/^\/(?:[^~]|~0|~1)*$/,$Zt=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function y_t(l,{dataLevel:c,dataNames:f,dataPathArr:y}){let b,k;if(l==="")return Fc.default.rootData;if(l[0]==="/"){if(!HZt.test(l))throw new Error(`Invalid JSON-pointer: ${l}`);b=l,k=Fc.default.rootData}else{let j=$Zt.exec(l);if(!j)throw new Error(`Invalid JSON-pointer: ${l}`);let se=+j[1];if(b=j[2],b==="#"){if(se>=c)throw new Error(A("property/index",se));return y[c-se]}if(se>c)throw new Error(A("data",se));if(k=f[c-se],!b)return k}let g=k,p=b.split("/");for(let j of p)j&&(k=(0,Da._)`${k}${(0,Da.getProperty)((0,mP.unescapeJsonPointer)(j))}`,g=(0,Da._)`${g} && ${k}`);return g;function A(j,se){return`Cannot access ${j} ${se} levels up, current level is ${c}`}}II.getData=y_t});var Moe=xt(DDe=>{"use strict";Object.defineProperty(DDe,"__esModule",{value:!0});var NDe=class extends Error{constructor(c){super("validation failed"),this.errors=c,this.ajv=this.validation=!0}};DDe.default=NDe});var zz=xt(ODe=>{"use strict";Object.defineProperty(ODe,"__esModule",{value:!0});var IDe=Uz(),wDe=class extends Error{constructor(c,f,y,b){super(b||`can't resolve reference ${y} from id ${f}`),this.missingRef=(0,IDe.resolveUrl)(c,f,y),this.missingSchema=(0,IDe.normalizeId)((0,IDe.getFullPath)(c,this.missingRef))}};ODe.default=wDe});var Foe=xt(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0});Ob.resolveSchema=Ob.getCompilingSchema=Ob.resolveRef=Ob.compileSchema=Ob.SchemaEnv=void 0;var xx=Kl(),YZt=Moe(),K4=dP(),Cx=Uz(),v_t=zu(),KZt=qz(),yF=class{constructor(c){var f;this.refs={},this.dynamicAnchors={};let y;typeof c.schema=="object"&&(y=c.schema),this.schema=c.schema,this.schemaId=c.schemaId,this.root=c.root||this,this.baseId=(f=c.baseId)!==null&&f!==void 0?f:(0,Cx.normalizeId)(y?.[c.schemaId||"$id"]),this.schemaPath=c.schemaPath,this.localRefs=c.localRefs,this.meta=c.meta,this.$async=y?.$async,this.refs={}}};Ob.SchemaEnv=yF;function MDe(l){let c=S_t.call(this,l);if(c)return c;let f=(0,Cx.getFullPath)(this.opts.uriResolver,l.root.baseId),{es5:y,lines:b}=this.opts.code,{ownProperties:k}=this.opts,g=new xx.CodeGen(this.scope,{es5:y,lines:b,ownProperties:k}),p;l.$async&&(p=g.scopeValue("Error",{ref:YZt.default,code:(0,xx._)`require("ajv/dist/runtime/validation_error").default`}));let A=g.scopeName("validate");l.validateName=A;let j={gen:g,allErrors:this.opts.allErrors,data:K4.default.data,parentData:K4.default.parentData,parentDataProperty:K4.default.parentDataProperty,dataNames:[K4.default.data],dataPathArr:[xx.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:g.scopeValue("schema",this.opts.code.source===!0?{ref:l.schema,code:(0,xx.stringify)(l.schema)}:{ref:l.schema}),validateName:A,ValidationError:p,schema:l.schema,schemaEnv:l,rootId:f,baseId:l.baseId||f,schemaPath:xx.nil,errSchemaPath:l.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,xx._)`""`,opts:this.opts,self:this},se;try{this._compilations.add(l),(0,KZt.validateFunctionCode)(j),g.optimize(this.opts.code.optimize);let We=g.toString();se=`${g.scopeRefs(K4.default.scope)}return ${We}`,this.opts.code.process&&(se=this.opts.code.process(se,l));let lr=new Function(`${K4.default.self}`,`${K4.default.scope}`,se)(this,this.scope.get());if(this.scope.value(A,{ref:lr}),lr.errors=null,lr.schema=l.schema,lr.schemaEnv=l,l.$async&&(lr.$async=!0),this.opts.code.source===!0&&(lr.source={validateName:A,validateCode:We,scopeValues:g._values}),this.opts.unevaluated){let{props:Rr,items:kt}=j;lr.evaluated={props:Rr instanceof xx.Name?void 0:Rr,items:kt instanceof xx.Name?void 0:kt,dynamicProps:Rr instanceof xx.Name,dynamicItems:kt instanceof xx.Name},lr.source&&(lr.source.evaluated=(0,xx.stringify)(lr.evaluated))}return l.validate=lr,l}catch(We){throw delete l.validate,delete l.validateName,se&&this.logger.error("Error compiling schema, function code:",se),We}finally{this._compilations.delete(l)}}Ob.compileSchema=MDe;function XZt(l,c,f){var y;f=(0,Cx.resolveUrl)(this.opts.uriResolver,c,f);let b=l.refs[f];if(b)return b;let k=eer.call(this,l,f);if(k===void 0){let g=(y=l.localRefs)===null||y===void 0?void 0:y[f],{schemaId:p}=this.opts;g&&(k=new yF({schema:g,schemaId:p,root:l,baseId:c}))}if(k!==void 0)return l.refs[f]=QZt.call(this,k)}Ob.resolveRef=XZt;function QZt(l){return(0,Cx.inlineRef)(l.schema,this.opts.inlineRefs)?l.schema:l.validate?l:MDe.call(this,l)}function S_t(l){for(let c of this._compilations)if(ZZt(c,l))return c}Ob.getCompilingSchema=S_t;function ZZt(l,c){return l.schema===c.schema&&l.root===c.root&&l.baseId===c.baseId}function eer(l,c){let f;for(;typeof(f=this.refs[c])=="string";)c=f;return f||this.schemas[c]||Loe.call(this,l,c)}function Loe(l,c){let f=this.opts.uriResolver.parse(c),y=(0,Cx._getFullPath)(this.opts.uriResolver,f),b=(0,Cx.getFullPath)(this.opts.uriResolver,l.baseId,void 0);if(Object.keys(l.schema).length>0&&y===b)return RDe.call(this,f,l);let k=(0,Cx.normalizeId)(y),g=this.refs[k]||this.schemas[k];if(typeof g=="string"){let p=Loe.call(this,l,g);return typeof p?.schema!="object"?void 0:RDe.call(this,f,p)}if(typeof g?.schema=="object"){if(g.validate||MDe.call(this,g),k===(0,Cx.normalizeId)(c)){let{schema:p}=g,{schemaId:A}=this.opts,j=p[A];return j&&(b=(0,Cx.resolveUrl)(this.opts.uriResolver,b,j)),new yF({schema:p,schemaId:A,root:l,baseId:b})}return RDe.call(this,f,g)}}Ob.resolveSchema=Loe;var ter=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function RDe(l,{baseId:c,schema:f,root:y}){var b;if(((b=l.fragment)===null||b===void 0?void 0:b[0])!=="/")return;for(let p of l.fragment.slice(1).split("/")){if(typeof f=="boolean")return;let A=f[(0,v_t.unescapeFragment)(p)];if(A===void 0)return;f=A;let j=typeof f=="object"&&f[this.opts.schemaId];!ter.has(p)&&j&&(c=(0,Cx.resolveUrl)(this.opts.uriResolver,c,j))}let k;if(typeof f!="boolean"&&f.$ref&&!(0,v_t.schemaHasRulesButRef)(f,this.RULES)){let p=(0,Cx.resolveUrl)(this.opts.uriResolver,c,f.$ref);k=Loe.call(this,y,p)}let{schemaId:g}=this.opts;if(k=k||new yF({schema:f,schemaId:g,root:y,baseId:c}),k.schema!==k.root.schema)return k}});var T_t=xt((i0r,rer)=>{rer.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var E_t=xt((s0r,b_t)=>{"use strict";var ner={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};b_t.exports={HEX:ner}});var I_t=xt((o0r,D_t)=>{"use strict";var{HEX:ier}=E_t();function k_t(l){if(N_t(l,".")<3)return{host:l,isIPV4:!1};let c=l.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u)||[],[f]=c;return f?{host:oer(f,"."),isIPV4:!0}:{host:l,isIPV4:!1}}function LDe(l,c=!1){let f="",y=!0;for(let b of l){if(ier[b]===void 0)return;b!=="0"&&y===!0&&(y=!1),y||(f+=b)}return c&&f.length===0&&(f="0"),f}function ser(l){let c=0,f={error:!1,address:"",zone:""},y=[],b=[],k=!1,g=!1,p=!1;function A(){if(b.length){if(k===!1){let j=LDe(b);if(j!==void 0)y.push(j);else return f.error=!0,!1}b.length=0}return!0}for(let j=0;j7){f.error=!0;break}j-1>=0&&l[j-1]===":"&&(g=!0);continue}else if(se==="%"){if(!A())break;k=!0}else{b.push(se);continue}}return b.length&&(k?f.zone=b.join(""):p?y.push(b.join("")):y.push(LDe(b))),f.address=y.join(""),f}function P_t(l,c={}){if(N_t(l,":")<2)return{host:l,isIPV6:!1};let f=ser(l);if(f.error)return{host:l,isIPV6:!1};{let y=f.address,b=f.address;return f.zone&&(y+="%"+f.zone,b+="%25"+f.zone),{host:y,escapedHost:b,isIPV6:!0}}}function oer(l,c){let f="",y=!0,b=l.length;for(let k=0;k{"use strict";var _er=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,fer=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function w_t(l){return typeof l.secure=="boolean"?l.secure:String(l.scheme).toLowerCase()==="wss"}function O_t(l){return l.host||(l.error=l.error||"HTTP URIs must have a host."),l}function R_t(l){let c=String(l.scheme).toLowerCase()==="https";return(l.port===(c?443:80)||l.port==="")&&(l.port=void 0),l.path||(l.path="/"),l}function per(l){return l.secure=w_t(l),l.resourceName=(l.path||"/")+(l.query?"?"+l.query:""),l.path=void 0,l.query=void 0,l}function der(l){if((l.port===(w_t(l)?443:80)||l.port==="")&&(l.port=void 0),typeof l.secure=="boolean"&&(l.scheme=l.secure?"wss":"ws",l.secure=void 0),l.resourceName){let[c,f]=l.resourceName.split("?");l.path=c&&c!=="/"?c:void 0,l.query=f,l.resourceName=void 0}return l.fragment=void 0,l}function mer(l,c){if(!l.path)return l.error="URN can not be parsed",l;let f=l.path.match(fer);if(f){let y=c.scheme||l.scheme||"urn";l.nid=f[1].toLowerCase(),l.nss=f[2];let b=`${y}:${c.nid||l.nid}`,k=FDe[b];l.path=void 0,k&&(l=k.parse(l,c))}else l.error=l.error||"URN can not be parsed.";return l}function ger(l,c){let f=c.scheme||l.scheme||"urn",y=l.nid.toLowerCase(),b=`${f}:${c.nid||y}`,k=FDe[b];k&&(l=k.serialize(l,c));let g=l,p=l.nss;return g.path=`${y||c.nid}:${p}`,c.skipEscape=!0,g}function her(l,c){let f=l;return f.uuid=f.nss,f.nss=void 0,!c.tolerant&&(!f.uuid||!_er.test(f.uuid))&&(f.error=f.error||"UUID is not valid."),f}function yer(l){let c=l;return c.nss=(l.uuid||"").toLowerCase(),c}var M_t={scheme:"http",domainHost:!0,parse:O_t,serialize:R_t},ver={scheme:"https",domainHost:M_t.domainHost,parse:O_t,serialize:R_t},joe={scheme:"ws",domainHost:!0,parse:per,serialize:der},Ser={scheme:"wss",domainHost:joe.domainHost,parse:joe.parse,serialize:joe.serialize},Ter={scheme:"urn",parse:mer,serialize:ger,skipNormalize:!0},ber={scheme:"urn:uuid",parse:her,serialize:yer,skipNormalize:!0},FDe={http:M_t,https:ver,ws:joe,wss:Ser,urn:Ter,"urn:uuid":ber};L_t.exports=FDe});var B_t=xt((c0r,Uoe)=>{"use strict";var{normalizeIPv6:Eer,normalizeIPv4:xer,removeDotSegments:Wz,recomposeAuthority:Cer,normalizeComponentEncoding:Boe}=I_t(),jDe=F_t();function Aer(l,c){return typeof l=="string"?l=AC(gP(l,c),c):typeof l=="object"&&(l=gP(AC(l,c),c)),l}function ker(l,c,f){let y=Object.assign({scheme:"null"},f),b=j_t(gP(l,y),gP(c,y),y,!0);return AC(b,{...y,skipEscape:!0})}function j_t(l,c,f,y){let b={};return y||(l=gP(AC(l,f),f),c=gP(AC(c,f),f)),f=f||{},!f.tolerant&&c.scheme?(b.scheme=c.scheme,b.userinfo=c.userinfo,b.host=c.host,b.port=c.port,b.path=Wz(c.path||""),b.query=c.query):(c.userinfo!==void 0||c.host!==void 0||c.port!==void 0?(b.userinfo=c.userinfo,b.host=c.host,b.port=c.port,b.path=Wz(c.path||""),b.query=c.query):(c.path?(c.path.charAt(0)==="/"?b.path=Wz(c.path):((l.userinfo!==void 0||l.host!==void 0||l.port!==void 0)&&!l.path?b.path="/"+c.path:l.path?b.path=l.path.slice(0,l.path.lastIndexOf("/")+1)+c.path:b.path=c.path,b.path=Wz(b.path)),b.query=c.query):(b.path=l.path,c.query!==void 0?b.query=c.query:b.query=l.query),b.userinfo=l.userinfo,b.host=l.host,b.port=l.port),b.scheme=l.scheme),b.fragment=c.fragment,b}function Per(l,c,f){return typeof l=="string"?(l=unescape(l),l=AC(Boe(gP(l,f),!0),{...f,skipEscape:!0})):typeof l=="object"&&(l=AC(Boe(l,!0),{...f,skipEscape:!0})),typeof c=="string"?(c=unescape(c),c=AC(Boe(gP(c,f),!0),{...f,skipEscape:!0})):typeof c=="object"&&(c=AC(Boe(c,!0),{...f,skipEscape:!0})),l.toLowerCase()===c.toLowerCase()}function AC(l,c){let f={host:l.host,scheme:l.scheme,userinfo:l.userinfo,port:l.port,path:l.path,query:l.query,nid:l.nid,nss:l.nss,uuid:l.uuid,fragment:l.fragment,reference:l.reference,resourceName:l.resourceName,secure:l.secure,error:""},y=Object.assign({},c),b=[],k=jDe[(y.scheme||f.scheme||"").toLowerCase()];k&&k.serialize&&k.serialize(f,y),f.path!==void 0&&(y.skipEscape?f.path=unescape(f.path):(f.path=escape(f.path),f.scheme!==void 0&&(f.path=f.path.split("%3A").join(":")))),y.reference!=="suffix"&&f.scheme&&(b.push(f.scheme),b.push(":"));let g=Cer(f,y);if(g!==void 0&&(y.reference!=="suffix"&&b.push("//"),b.push(g),f.path&&f.path.charAt(0)!=="/"&&b.push("/")),f.path!==void 0){let p=f.path;!y.absolutePath&&(!k||!k.absolutePath)&&(p=Wz(p)),g===void 0&&(p=p.replace(/^\/\//u,"/%2F")),b.push(p)}return f.query!==void 0&&(b.push("?"),b.push(f.query)),f.fragment!==void 0&&(b.push("#"),b.push(f.fragment)),b.join("")}var Ner=Array.from({length:127},(l,c)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(c)));function Der(l){let c=0;for(let f=0,y=l.length;f126||Ner[c])return!0;return!1}var Ier=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function gP(l,c){let f=Object.assign({},c),y={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},b=l.indexOf("%")!==-1,k=!1;f.reference==="suffix"&&(l=(f.scheme?f.scheme+":":"")+"//"+l);let g=l.match(Ier);if(g){if(y.scheme=g[1],y.userinfo=g[3],y.host=g[4],y.port=parseInt(g[5],10),y.path=g[6]||"",y.query=g[7],y.fragment=g[8],isNaN(y.port)&&(y.port=g[5]),y.host){let A=xer(y.host);if(A.isIPV4===!1){let j=Eer(A.host,{isIPV4:!1});y.host=j.host.toLowerCase(),k=j.isIPV6}else y.host=A.host,k=!0}y.scheme===void 0&&y.userinfo===void 0&&y.host===void 0&&y.port===void 0&&!y.path&&y.query===void 0?y.reference="same-document":y.scheme===void 0?y.reference="relative":y.fragment===void 0?y.reference="absolute":y.reference="uri",f.reference&&f.reference!=="suffix"&&f.reference!==y.reference&&(y.error=y.error||"URI is not a "+f.reference+" reference.");let p=jDe[(f.scheme||y.scheme||"").toLowerCase()];if(!f.unicodeSupport&&(!p||!p.unicodeSupport)&&y.host&&(f.domainHost||p&&p.domainHost)&&k===!1&&Der(y.host))try{y.host=URL.domainToASCII(y.host.toLowerCase())}catch(A){y.error=y.error||"Host's domain name can not be converted to ASCII: "+A}(!p||p&&!p.skipNormalize)&&(b&&y.scheme!==void 0&&(y.scheme=unescape(y.scheme)),b&&y.userinfo!==void 0&&(y.userinfo=unescape(y.userinfo)),b&&y.host!==void 0&&(y.host=unescape(y.host)),y.path!==void 0&&y.path.length&&(y.path=escape(unescape(y.path))),y.fragment!==void 0&&y.fragment.length&&(y.fragment=encodeURI(decodeURIComponent(y.fragment)))),p&&p.parse&&p.parse(y,f)}else y.error=y.error||"URI can not be parsed.";return y}var BDe={SCHEMES:jDe,normalize:Aer,resolve:ker,resolveComponents:j_t,equal:Per,serialize:AC,parse:gP};Uoe.exports=BDe;Uoe.exports.default=BDe;Uoe.exports.fastUri=BDe});var V_t=xt(UDe=>{"use strict";Object.defineProperty(UDe,"__esModule",{value:!0});var U_t=B_t();U_t.code='require("ajv/dist/runtime/uri").default';UDe.default=U_t});var Y_t=xt(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.CodeGen=dy.Name=dy.nil=dy.stringify=dy.str=dy._=dy.KeywordCxt=void 0;var wer=qz();Object.defineProperty(dy,"KeywordCxt",{enumerable:!0,get:function(){return wer.KeywordCxt}});var vF=Kl();Object.defineProperty(dy,"_",{enumerable:!0,get:function(){return vF._}});Object.defineProperty(dy,"str",{enumerable:!0,get:function(){return vF.str}});Object.defineProperty(dy,"stringify",{enumerable:!0,get:function(){return vF.stringify}});Object.defineProperty(dy,"nil",{enumerable:!0,get:function(){return vF.nil}});Object.defineProperty(dy,"Name",{enumerable:!0,get:function(){return vF.Name}});Object.defineProperty(dy,"CodeGen",{enumerable:!0,get:function(){return vF.CodeGen}});var Oer=Moe(),G_t=zz(),Rer=gDe(),Gz=Foe(),Mer=Kl(),Hz=Uz(),Voe=Bz(),JDe=zu(),J_t=T_t(),Ler=V_t(),H_t=(l,c)=>new RegExp(l,c);H_t.code="new RegExp";var Fer=["removeAdditional","useDefaults","coerceTypes"],jer=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),Ber={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Uer={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},q_t=200;function Ver(l){var c,f,y,b,k,g,p,A,j,se,We,ve,lr,Rr,kt,Et,pi,di,ra,Ql,va,Ef,Oi,jn,xm;let Va=l.strict,dv=(c=l.code)===null||c===void 0?void 0:c.optimize,UI=dv===!0||dv===void 0?1:dv||0,xs=(y=(f=l.code)===null||f===void 0?void 0:f.regExp)!==null&&y!==void 0?y:H_t,Ub=(b=l.uriResolver)!==null&&b!==void 0?b:Ler.default;return{strictSchema:(g=(k=l.strictSchema)!==null&&k!==void 0?k:Va)!==null&&g!==void 0?g:!0,strictNumbers:(A=(p=l.strictNumbers)!==null&&p!==void 0?p:Va)!==null&&A!==void 0?A:!0,strictTypes:(se=(j=l.strictTypes)!==null&&j!==void 0?j:Va)!==null&&se!==void 0?se:"log",strictTuples:(ve=(We=l.strictTuples)!==null&&We!==void 0?We:Va)!==null&&ve!==void 0?ve:"log",strictRequired:(Rr=(lr=l.strictRequired)!==null&&lr!==void 0?lr:Va)!==null&&Rr!==void 0?Rr:!1,code:l.code?{...l.code,optimize:UI,regExp:xs}:{optimize:UI,regExp:xs},loopRequired:(kt=l.loopRequired)!==null&&kt!==void 0?kt:q_t,loopEnum:(Et=l.loopEnum)!==null&&Et!==void 0?Et:q_t,meta:(pi=l.meta)!==null&&pi!==void 0?pi:!0,messages:(di=l.messages)!==null&&di!==void 0?di:!0,inlineRefs:(ra=l.inlineRefs)!==null&&ra!==void 0?ra:!0,schemaId:(Ql=l.schemaId)!==null&&Ql!==void 0?Ql:"$id",addUsedSchema:(va=l.addUsedSchema)!==null&&va!==void 0?va:!0,validateSchema:(Ef=l.validateSchema)!==null&&Ef!==void 0?Ef:!0,validateFormats:(Oi=l.validateFormats)!==null&&Oi!==void 0?Oi:!0,unicodeRegExp:(jn=l.unicodeRegExp)!==null&&jn!==void 0?jn:!0,int32range:(xm=l.int32range)!==null&&xm!==void 0?xm:!0,uriResolver:Ub}}var $z=class{constructor(c={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,c=this.opts={...c,...Ver(c)};let{es5:f,lines:y}=this.opts.code;this.scope=new Mer.ValueScope({scope:{},prefixes:jer,es5:f,lines:y}),this.logger=Her(c.logger);let b=c.validateFormats;c.validateFormats=!1,this.RULES=(0,Rer.getRules)(),z_t.call(this,Ber,c,"NOT SUPPORTED"),z_t.call(this,Uer,c,"DEPRECATED","warn"),this._metaOpts=Wer.call(this),c.formats&&qer.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),c.keywords&&zer.call(this,c.keywords),typeof c.meta=="object"&&this.addMetaSchema(c.meta),Jer.call(this),c.validateFormats=b}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:c,meta:f,schemaId:y}=this.opts,b=J_t;y==="id"&&(b={...J_t},b.id=b.$id,delete b.$id),f&&c&&this.addMetaSchema(b,b[y],!1)}defaultMeta(){let{meta:c,schemaId:f}=this.opts;return this.opts.defaultMeta=typeof c=="object"?c[f]||c:void 0}validate(c,f){let y;if(typeof c=="string"){if(y=this.getSchema(c),!y)throw new Error(`no schema with key or ref "${c}"`)}else y=this.compile(c);let b=y(f);return"$async"in y||(this.errors=y.errors),b}compile(c,f){let y=this._addSchema(c,f);return y.validate||this._compileSchemaEnv(y)}compileAsync(c,f){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:y}=this.opts;return b.call(this,c,f);async function b(se,We){await k.call(this,se.$schema);let ve=this._addSchema(se,We);return ve.validate||g.call(this,ve)}async function k(se){se&&!this.getSchema(se)&&await b.call(this,{$ref:se},!0)}async function g(se){try{return this._compileSchemaEnv(se)}catch(We){if(!(We instanceof G_t.default))throw We;return p.call(this,We),await A.call(this,We.missingSchema),g.call(this,se)}}function p({missingSchema:se,missingRef:We}){if(this.refs[se])throw new Error(`AnySchema ${se} is loaded but ${We} cannot be resolved`)}async function A(se){let We=await j.call(this,se);this.refs[se]||await k.call(this,We.$schema),this.refs[se]||this.addSchema(We,se,f)}async function j(se){let We=this._loading[se];if(We)return We;try{return await(this._loading[se]=y(se))}finally{delete this._loading[se]}}}addSchema(c,f,y,b=this.opts.validateSchema){if(Array.isArray(c)){for(let g of c)this.addSchema(g,void 0,y,b);return this}let k;if(typeof c=="object"){let{schemaId:g}=this.opts;if(k=c[g],k!==void 0&&typeof k!="string")throw new Error(`schema ${g} must be string`)}return f=(0,Hz.normalizeId)(f||k),this._checkUnique(f),this.schemas[f]=this._addSchema(c,y,f,b,!0),this}addMetaSchema(c,f,y=this.opts.validateSchema){return this.addSchema(c,f,!0,y),this}validateSchema(c,f){if(typeof c=="boolean")return!0;let y;if(y=c.$schema,y!==void 0&&typeof y!="string")throw new Error("$schema must be a string");if(y=y||this.opts.defaultMeta||this.defaultMeta(),!y)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let b=this.validate(y,c);if(!b&&f){let k="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(k);else throw new Error(k)}return b}getSchema(c){let f;for(;typeof(f=W_t.call(this,c))=="string";)c=f;if(f===void 0){let{schemaId:y}=this.opts,b=new Gz.SchemaEnv({schema:{},schemaId:y});if(f=Gz.resolveSchema.call(this,b,c),!f)return;this.refs[c]=f}return f.validate||this._compileSchemaEnv(f)}removeSchema(c){if(c instanceof RegExp)return this._removeAllSchemas(this.schemas,c),this._removeAllSchemas(this.refs,c),this;switch(typeof c){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let f=W_t.call(this,c);return typeof f=="object"&&this._cache.delete(f.schema),delete this.schemas[c],delete this.refs[c],this}case"object":{let f=c;this._cache.delete(f);let y=c[this.opts.schemaId];return y&&(y=(0,Hz.normalizeId)(y),delete this.schemas[y],delete this.refs[y]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(c){for(let f of c)this.addKeyword(f);return this}addKeyword(c,f){let y;if(typeof c=="string")y=c,typeof f=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),f.keyword=y);else if(typeof c=="object"&&f===void 0){if(f=c,y=f.keyword,Array.isArray(y)&&!y.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Yer.call(this,y,f),!f)return(0,JDe.eachItem)(y,k=>VDe.call(this,k)),this;Xer.call(this,f);let b={...f,type:(0,Voe.getJSONTypes)(f.type),schemaType:(0,Voe.getJSONTypes)(f.schemaType)};return(0,JDe.eachItem)(y,b.type.length===0?k=>VDe.call(this,k,b):k=>b.type.forEach(g=>VDe.call(this,k,b,g))),this}getKeyword(c){let f=this.RULES.all[c];return typeof f=="object"?f.definition:!!f}removeKeyword(c){let{RULES:f}=this;delete f.keywords[c],delete f.all[c];for(let y of f.rules){let b=y.rules.findIndex(k=>k.keyword===c);b>=0&&y.rules.splice(b,1)}return this}addFormat(c,f){return typeof f=="string"&&(f=new RegExp(f)),this.formats[c]=f,this}errorsText(c=this.errors,{separator:f=", ",dataVar:y="data"}={}){return!c||c.length===0?"No errors":c.map(b=>`${y}${b.instancePath} ${b.message}`).reduce((b,k)=>b+f+k)}$dataMetaSchema(c,f){let y=this.RULES.all;c=JSON.parse(JSON.stringify(c));for(let b of f){let k=b.split("/").slice(1),g=c;for(let p of k)g=g[p];for(let p in y){let A=y[p];if(typeof A!="object")continue;let{$data:j}=A.definition,se=g[p];j&&se&&(g[p]=$_t(se))}}return c}_removeAllSchemas(c,f){for(let y in c){let b=c[y];(!f||f.test(y))&&(typeof b=="string"?delete c[y]:b&&!b.meta&&(this._cache.delete(b.schema),delete c[y]))}}_addSchema(c,f,y,b=this.opts.validateSchema,k=this.opts.addUsedSchema){let g,{schemaId:p}=this.opts;if(typeof c=="object")g=c[p];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof c!="boolean")throw new Error("schema must be object or boolean")}let A=this._cache.get(c);if(A!==void 0)return A;y=(0,Hz.normalizeId)(g||y);let j=Hz.getSchemaRefs.call(this,c,y);return A=new Gz.SchemaEnv({schema:c,schemaId:p,meta:f,baseId:y,localRefs:j}),this._cache.set(A.schema,A),k&&!y.startsWith("#")&&(y&&this._checkUnique(y),this.refs[y]=A),b&&this.validateSchema(c,!0),A}_checkUnique(c){if(this.schemas[c]||this.refs[c])throw new Error(`schema with key or id "${c}" already exists`)}_compileSchemaEnv(c){if(c.meta?this._compileMetaSchema(c):Gz.compileSchema.call(this,c),!c.validate)throw new Error("ajv implementation error");return c.validate}_compileMetaSchema(c){let f=this.opts;this.opts=this._metaOpts;try{Gz.compileSchema.call(this,c)}finally{this.opts=f}}};$z.ValidationError=Oer.default;$z.MissingRefError=G_t.default;dy.default=$z;function z_t(l,c,f,y="error"){for(let b in l){let k=b;k in c&&this.logger[y](`${f}: option ${b}. ${l[k]}`)}}function W_t(l){return l=(0,Hz.normalizeId)(l),this.schemas[l]||this.refs[l]}function Jer(){let l=this.opts.schemas;if(l)if(Array.isArray(l))this.addSchema(l);else for(let c in l)this.addSchema(l[c],c)}function qer(){for(let l in this.opts.formats){let c=this.opts.formats[l];c&&this.addFormat(l,c)}}function zer(l){if(Array.isArray(l)){this.addVocabulary(l);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let c in l){let f=l[c];f.keyword||(f.keyword=c),this.addKeyword(f)}}function Wer(){let l={...this.opts};for(let c of Fer)delete l[c];return l}var Ger={log(){},warn(){},error(){}};function Her(l){if(l===!1)return Ger;if(l===void 0)return console;if(l.log&&l.warn&&l.error)return l;throw new Error("logger must implement log, warn and error methods")}var $er=/^[a-z_$][a-z0-9_$:-]*$/i;function Yer(l,c){let{RULES:f}=this;if((0,JDe.eachItem)(l,y=>{if(f.keywords[y])throw new Error(`Keyword ${y} is already defined`);if(!$er.test(y))throw new Error(`Keyword ${y} has invalid name`)}),!!c&&c.$data&&!("code"in c||"validate"in c))throw new Error('$data keyword must have "code" or "validate" function')}function VDe(l,c,f){var y;let b=c?.post;if(f&&b)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:k}=this,g=b?k.post:k.rules.find(({type:A})=>A===f);if(g||(g={type:f,rules:[]},k.rules.push(g)),k.keywords[l]=!0,!c)return;let p={keyword:l,definition:{...c,type:(0,Voe.getJSONTypes)(c.type),schemaType:(0,Voe.getJSONTypes)(c.schemaType)}};c.before?Ker.call(this,g,p,c.before):g.rules.push(p),k.all[l]=p,(y=c.implements)===null||y===void 0||y.forEach(A=>this.addKeyword(A))}function Ker(l,c,f){let y=l.rules.findIndex(b=>b.keyword===f);y>=0?l.rules.splice(y,0,c):(l.rules.push(c),this.logger.warn(`rule ${f} is not defined`))}function Xer(l){let{metaSchema:c}=l;c!==void 0&&(l.$data&&this.opts.$data&&(c=$_t(c)),l.validateSchema=this.compile(c,!0))}var Qer={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function $_t(l){return{anyOf:[l,Qer]}}});var K_t=xt(qDe=>{"use strict";Object.defineProperty(qDe,"__esModule",{value:!0});var Zer={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};qDe.default=Zer});var eft=xt(X4=>{"use strict";Object.defineProperty(X4,"__esModule",{value:!0});X4.callRef=X4.getValidate=void 0;var etr=zz(),X_t=wb(),P1=Kl(),SF=dP(),Q_t=Foe(),Joe=zu(),ttr={keyword:"$ref",schemaType:"string",code(l){let{gen:c,schema:f,it:y}=l,{baseId:b,schemaEnv:k,validateName:g,opts:p,self:A}=y,{root:j}=k;if((f==="#"||f==="#/")&&b===j.baseId)return We();let se=Q_t.resolveRef.call(A,j,b,f);if(se===void 0)throw new etr.default(y.opts.uriResolver,b,f);if(se instanceof Q_t.SchemaEnv)return ve(se);return lr(se);function We(){if(k===j)return qoe(l,g,k,k.$async);let Rr=c.scopeValue("root",{ref:j});return qoe(l,(0,P1._)`${Rr}.validate`,j,j.$async)}function ve(Rr){let kt=Z_t(l,Rr);qoe(l,kt,Rr,Rr.$async)}function lr(Rr){let kt=c.scopeValue("schema",p.code.source===!0?{ref:Rr,code:(0,P1.stringify)(Rr)}:{ref:Rr}),Et=c.name("valid"),pi=l.subschema({schema:Rr,dataTypes:[],schemaPath:P1.nil,topSchemaRef:kt,errSchemaPath:f},Et);l.mergeEvaluated(pi),l.ok(Et)}}};function Z_t(l,c){let{gen:f}=l;return c.validate?f.scopeValue("validate",{ref:c.validate}):(0,P1._)`${f.scopeValue("wrapper",{ref:c})}.validate`}X4.getValidate=Z_t;function qoe(l,c,f,y){let{gen:b,it:k}=l,{allErrors:g,schemaEnv:p,opts:A}=k,j=A.passContext?SF.default.this:P1.nil;y?se():We();function se(){if(!p.$async)throw new Error("async schema referenced by sync schema");let Rr=b.let("valid");b.try(()=>{b.code((0,P1._)`await ${(0,X_t.callValidateCode)(l,c,j)}`),lr(c),g||b.assign(Rr,!0)},kt=>{b.if((0,P1._)`!(${kt} instanceof ${k.ValidationError})`,()=>b.throw(kt)),ve(kt),g||b.assign(Rr,!1)}),l.ok(Rr)}function We(){l.result((0,X_t.callValidateCode)(l,c,j),()=>lr(c),()=>ve(c))}function ve(Rr){let kt=(0,P1._)`${Rr}.errors`;b.assign(SF.default.vErrors,(0,P1._)`${SF.default.vErrors} === null ? ${kt} : ${SF.default.vErrors}.concat(${kt})`),b.assign(SF.default.errors,(0,P1._)`${SF.default.vErrors}.length`)}function lr(Rr){var kt;if(!k.opts.unevaluated)return;let Et=(kt=f?.validate)===null||kt===void 0?void 0:kt.evaluated;if(k.props!==!0)if(Et&&!Et.dynamicProps)Et.props!==void 0&&(k.props=Joe.mergeEvaluated.props(b,Et.props,k.props));else{let pi=b.var("props",(0,P1._)`${Rr}.evaluated.props`);k.props=Joe.mergeEvaluated.props(b,pi,k.props,P1.Name)}if(k.items!==!0)if(Et&&!Et.dynamicItems)Et.items!==void 0&&(k.items=Joe.mergeEvaluated.items(b,Et.items,k.items));else{let pi=b.var("items",(0,P1._)`${Rr}.evaluated.items`);k.items=Joe.mergeEvaluated.items(b,pi,k.items,P1.Name)}}}X4.callRef=qoe;X4.default=ttr});var tft=xt(zDe=>{"use strict";Object.defineProperty(zDe,"__esModule",{value:!0});var rtr=K_t(),ntr=eft(),itr=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",rtr.default,ntr.default];zDe.default=itr});var rft=xt(WDe=>{"use strict";Object.defineProperty(WDe,"__esModule",{value:!0});var zoe=Kl(),wI=zoe.operators,Woe={maximum:{okStr:"<=",ok:wI.LTE,fail:wI.GT},minimum:{okStr:">=",ok:wI.GTE,fail:wI.LT},exclusiveMaximum:{okStr:"<",ok:wI.LT,fail:wI.GTE},exclusiveMinimum:{okStr:">",ok:wI.GT,fail:wI.LTE}},str={message:({keyword:l,schemaCode:c})=>(0,zoe.str)`must be ${Woe[l].okStr} ${c}`,params:({keyword:l,schemaCode:c})=>(0,zoe._)`{comparison: ${Woe[l].okStr}, limit: ${c}}`},otr={keyword:Object.keys(Woe),type:"number",schemaType:"number",$data:!0,error:str,code(l){let{keyword:c,data:f,schemaCode:y}=l;l.fail$data((0,zoe._)`${f} ${Woe[c].fail} ${y} || isNaN(${f})`)}};WDe.default=otr});var nft=xt(GDe=>{"use strict";Object.defineProperty(GDe,"__esModule",{value:!0});var Yz=Kl(),atr={message:({schemaCode:l})=>(0,Yz.str)`must be multiple of ${l}`,params:({schemaCode:l})=>(0,Yz._)`{multipleOf: ${l}}`},ctr={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:atr,code(l){let{gen:c,data:f,schemaCode:y,it:b}=l,k=b.opts.multipleOfPrecision,g=c.let("res"),p=k?(0,Yz._)`Math.abs(Math.round(${g}) - ${g}) > 1e-${k}`:(0,Yz._)`${g} !== parseInt(${g})`;l.fail$data((0,Yz._)`(${y} === 0 || (${g} = ${f}/${y}, ${p}))`)}};GDe.default=ctr});var sft=xt(HDe=>{"use strict";Object.defineProperty(HDe,"__esModule",{value:!0});function ift(l){let c=l.length,f=0,y=0,b;for(;y=55296&&b<=56319&&y{"use strict";Object.defineProperty($De,"__esModule",{value:!0});var Q4=Kl(),ltr=zu(),utr=sft(),_tr={message({keyword:l,schemaCode:c}){let f=l==="maxLength"?"more":"fewer";return(0,Q4.str)`must NOT have ${f} than ${c} characters`},params:({schemaCode:l})=>(0,Q4._)`{limit: ${l}}`},ftr={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_tr,code(l){let{keyword:c,data:f,schemaCode:y,it:b}=l,k=c==="maxLength"?Q4.operators.GT:Q4.operators.LT,g=b.opts.unicode===!1?(0,Q4._)`${f}.length`:(0,Q4._)`${(0,ltr.useFunc)(l.gen,utr.default)}(${f})`;l.fail$data((0,Q4._)`${g} ${k} ${y}`)}};$De.default=ftr});var aft=xt(YDe=>{"use strict";Object.defineProperty(YDe,"__esModule",{value:!0});var ptr=wb(),Goe=Kl(),dtr={message:({schemaCode:l})=>(0,Goe.str)`must match pattern "${l}"`,params:({schemaCode:l})=>(0,Goe._)`{pattern: ${l}}`},mtr={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:dtr,code(l){let{data:c,$data:f,schema:y,schemaCode:b,it:k}=l,g=k.opts.unicodeRegExp?"u":"",p=f?(0,Goe._)`(new RegExp(${b}, ${g}))`:(0,ptr.usePattern)(l,y);l.fail$data((0,Goe._)`!${p}.test(${c})`)}};YDe.default=mtr});var cft=xt(KDe=>{"use strict";Object.defineProperty(KDe,"__esModule",{value:!0});var Kz=Kl(),gtr={message({keyword:l,schemaCode:c}){let f=l==="maxProperties"?"more":"fewer";return(0,Kz.str)`must NOT have ${f} than ${c} properties`},params:({schemaCode:l})=>(0,Kz._)`{limit: ${l}}`},htr={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:gtr,code(l){let{keyword:c,data:f,schemaCode:y}=l,b=c==="maxProperties"?Kz.operators.GT:Kz.operators.LT;l.fail$data((0,Kz._)`Object.keys(${f}).length ${b} ${y}`)}};KDe.default=htr});var lft=xt(XDe=>{"use strict";Object.defineProperty(XDe,"__esModule",{value:!0});var Xz=wb(),Qz=Kl(),ytr=zu(),vtr={message:({params:{missingProperty:l}})=>(0,Qz.str)`must have required property '${l}'`,params:({params:{missingProperty:l}})=>(0,Qz._)`{missingProperty: ${l}}`},Str={keyword:"required",type:"object",schemaType:"array",$data:!0,error:vtr,code(l){let{gen:c,schema:f,schemaCode:y,data:b,$data:k,it:g}=l,{opts:p}=g;if(!k&&f.length===0)return;let A=f.length>=p.loopRequired;if(g.allErrors?j():se(),p.strictRequired){let lr=l.parentSchema.properties,{definedProperties:Rr}=l.it;for(let kt of f)if(lr?.[kt]===void 0&&!Rr.has(kt)){let Et=g.schemaEnv.baseId+g.errSchemaPath,pi=`required property "${kt}" is not defined at "${Et}" (strictRequired)`;(0,ytr.checkStrictMode)(g,pi,g.opts.strictRequired)}}function j(){if(A||k)l.block$data(Qz.nil,We);else for(let lr of f)(0,Xz.checkReportMissingProp)(l,lr)}function se(){let lr=c.let("missing");if(A||k){let Rr=c.let("valid",!0);l.block$data(Rr,()=>ve(lr,Rr)),l.ok(Rr)}else c.if((0,Xz.checkMissingProp)(l,f,lr)),(0,Xz.reportMissingProp)(l,lr),c.else()}function We(){c.forOf("prop",y,lr=>{l.setParams({missingProperty:lr}),c.if((0,Xz.noPropertyInData)(c,b,lr,p.ownProperties),()=>l.error())})}function ve(lr,Rr){l.setParams({missingProperty:lr}),c.forOf(lr,y,()=>{c.assign(Rr,(0,Xz.propertyInData)(c,b,lr,p.ownProperties)),c.if((0,Qz.not)(Rr),()=>{l.error(),c.break()})},Qz.nil)}}};XDe.default=Str});var uft=xt(QDe=>{"use strict";Object.defineProperty(QDe,"__esModule",{value:!0});var Zz=Kl(),Ttr={message({keyword:l,schemaCode:c}){let f=l==="maxItems"?"more":"fewer";return(0,Zz.str)`must NOT have ${f} than ${c} items`},params:({schemaCode:l})=>(0,Zz._)`{limit: ${l}}`},btr={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Ttr,code(l){let{keyword:c,data:f,schemaCode:y}=l,b=c==="maxItems"?Zz.operators.GT:Zz.operators.LT;l.fail$data((0,Zz._)`${f}.length ${b} ${y}`)}};QDe.default=btr});var Hoe=xt(ZDe=>{"use strict";Object.defineProperty(ZDe,"__esModule",{value:!0});var _ft=xDe();_ft.code='require("ajv/dist/runtime/equal").default';ZDe.default=_ft});var fft=xt(tIe=>{"use strict";Object.defineProperty(tIe,"__esModule",{value:!0});var eIe=Bz(),my=Kl(),Etr=zu(),xtr=Hoe(),Ctr={message:({params:{i:l,j:c}})=>(0,my.str)`must NOT have duplicate items (items ## ${c} and ${l} are identical)`,params:({params:{i:l,j:c}})=>(0,my._)`{i: ${l}, j: ${c}}`},Atr={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Ctr,code(l){let{gen:c,data:f,$data:y,schema:b,parentSchema:k,schemaCode:g,it:p}=l;if(!y&&!b)return;let A=c.let("valid"),j=k.items?(0,eIe.getSchemaTypes)(k.items):[];l.block$data(A,se,(0,my._)`${g} === false`),l.ok(A);function se(){let Rr=c.let("i",(0,my._)`${f}.length`),kt=c.let("j");l.setParams({i:Rr,j:kt}),c.assign(A,!0),c.if((0,my._)`${Rr} > 1`,()=>(We()?ve:lr)(Rr,kt))}function We(){return j.length>0&&!j.some(Rr=>Rr==="object"||Rr==="array")}function ve(Rr,kt){let Et=c.name("item"),pi=(0,eIe.checkDataTypes)(j,Et,p.opts.strictNumbers,eIe.DataType.Wrong),di=c.const("indices",(0,my._)`{}`);c.for((0,my._)`;${Rr}--;`,()=>{c.let(Et,(0,my._)`${f}[${Rr}]`),c.if(pi,(0,my._)`continue`),j.length>1&&c.if((0,my._)`typeof ${Et} == "string"`,(0,my._)`${Et} += "_"`),c.if((0,my._)`typeof ${di}[${Et}] == "number"`,()=>{c.assign(kt,(0,my._)`${di}[${Et}]`),l.error(),c.assign(A,!1).break()}).code((0,my._)`${di}[${Et}] = ${Rr}`)})}function lr(Rr,kt){let Et=(0,Etr.useFunc)(c,xtr.default),pi=c.name("outer");c.label(pi).for((0,my._)`;${Rr}--;`,()=>c.for((0,my._)`${kt} = ${Rr}; ${kt}--;`,()=>c.if((0,my._)`${Et}(${f}[${Rr}], ${f}[${kt}])`,()=>{l.error(),c.assign(A,!1).break(pi)})))}}};tIe.default=Atr});var pft=xt(nIe=>{"use strict";Object.defineProperty(nIe,"__esModule",{value:!0});var rIe=Kl(),ktr=zu(),Ptr=Hoe(),Ntr={message:"must be equal to constant",params:({schemaCode:l})=>(0,rIe._)`{allowedValue: ${l}}`},Dtr={keyword:"const",$data:!0,error:Ntr,code(l){let{gen:c,data:f,$data:y,schemaCode:b,schema:k}=l;y||k&&typeof k=="object"?l.fail$data((0,rIe._)`!${(0,ktr.useFunc)(c,Ptr.default)}(${f}, ${b})`):l.fail((0,rIe._)`${k} !== ${f}`)}};nIe.default=Dtr});var dft=xt(iIe=>{"use strict";Object.defineProperty(iIe,"__esModule",{value:!0});var eW=Kl(),Itr=zu(),wtr=Hoe(),Otr={message:"must be equal to one of the allowed values",params:({schemaCode:l})=>(0,eW._)`{allowedValues: ${l}}`},Rtr={keyword:"enum",schemaType:"array",$data:!0,error:Otr,code(l){let{gen:c,data:f,$data:y,schema:b,schemaCode:k,it:g}=l;if(!y&&b.length===0)throw new Error("enum must have non-empty array");let p=b.length>=g.opts.loopEnum,A,j=()=>A??(A=(0,Itr.useFunc)(c,wtr.default)),se;if(p||y)se=c.let("valid"),l.block$data(se,We);else{if(!Array.isArray(b))throw new Error("ajv implementation error");let lr=c.const("vSchema",k);se=(0,eW.or)(...b.map((Rr,kt)=>ve(lr,kt)))}l.pass(se);function We(){c.assign(se,!1),c.forOf("v",k,lr=>c.if((0,eW._)`${j()}(${f}, ${lr})`,()=>c.assign(se,!0).break()))}function ve(lr,Rr){let kt=b[Rr];return typeof kt=="object"&&kt!==null?(0,eW._)`${j()}(${f}, ${lr}[${Rr}])`:(0,eW._)`${f} === ${kt}`}}};iIe.default=Rtr});var mft=xt(sIe=>{"use strict";Object.defineProperty(sIe,"__esModule",{value:!0});var Mtr=rft(),Ltr=nft(),Ftr=oft(),jtr=aft(),Btr=cft(),Utr=lft(),Vtr=uft(),Jtr=fft(),qtr=pft(),ztr=dft(),Wtr=[Mtr.default,Ltr.default,Ftr.default,jtr.default,Btr.default,Utr.default,Vtr.default,Jtr.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},qtr.default,ztr.default];sIe.default=Wtr});var aIe=xt(tW=>{"use strict";Object.defineProperty(tW,"__esModule",{value:!0});tW.validateAdditionalItems=void 0;var Z4=Kl(),oIe=zu(),Gtr={message:({params:{len:l}})=>(0,Z4.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,Z4._)`{limit: ${l}}`},Htr={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Gtr,code(l){let{parentSchema:c,it:f}=l,{items:y}=c;if(!Array.isArray(y)){(0,oIe.checkStrictMode)(f,'"additionalItems" is ignored when "items" is not an array of schemas');return}gft(l,y)}};function gft(l,c){let{gen:f,schema:y,data:b,keyword:k,it:g}=l;g.items=!0;let p=f.const("len",(0,Z4._)`${b}.length`);if(y===!1)l.setParams({len:c.length}),l.pass((0,Z4._)`${p} <= ${c.length}`);else if(typeof y=="object"&&!(0,oIe.alwaysValidSchema)(g,y)){let j=f.var("valid",(0,Z4._)`${p} <= ${c.length}`);f.if((0,Z4.not)(j),()=>A(j)),l.ok(j)}function A(j){f.forRange("i",c.length,p,se=>{l.subschema({keyword:k,dataProp:se,dataPropType:oIe.Type.Num},j),g.allErrors||f.if((0,Z4.not)(j),()=>f.break())})}}tW.validateAdditionalItems=gft;tW.default=Htr});var cIe=xt(rW=>{"use strict";Object.defineProperty(rW,"__esModule",{value:!0});rW.validateTuple=void 0;var hft=Kl(),$oe=zu(),$tr=wb(),Ytr={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(l){let{schema:c,it:f}=l;if(Array.isArray(c))return yft(l,"additionalItems",c);f.items=!0,!(0,$oe.alwaysValidSchema)(f,c)&&l.ok((0,$tr.validateArray)(l))}};function yft(l,c,f=l.schema){let{gen:y,parentSchema:b,data:k,keyword:g,it:p}=l;se(b),p.opts.unevaluated&&f.length&&p.items!==!0&&(p.items=$oe.mergeEvaluated.items(y,f.length,p.items));let A=y.name("valid"),j=y.const("len",(0,hft._)`${k}.length`);f.forEach((We,ve)=>{(0,$oe.alwaysValidSchema)(p,We)||(y.if((0,hft._)`${j} > ${ve}`,()=>l.subschema({keyword:g,schemaProp:ve,dataProp:ve},A)),l.ok(A))});function se(We){let{opts:ve,errSchemaPath:lr}=p,Rr=f.length,kt=Rr===We.minItems&&(Rr===We.maxItems||We[c]===!1);if(ve.strictTuples&&!kt){let Et=`"${g}" is ${Rr}-tuple, but minItems or maxItems/${c} are not specified or different at path "${lr}"`;(0,$oe.checkStrictMode)(p,Et,ve.strictTuples)}}}rW.validateTuple=yft;rW.default=Ytr});var vft=xt(lIe=>{"use strict";Object.defineProperty(lIe,"__esModule",{value:!0});var Ktr=cIe(),Xtr={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:l=>(0,Ktr.validateTuple)(l,"items")};lIe.default=Xtr});var Tft=xt(uIe=>{"use strict";Object.defineProperty(uIe,"__esModule",{value:!0});var Sft=Kl(),Qtr=zu(),Ztr=wb(),err=aIe(),trr={message:({params:{len:l}})=>(0,Sft.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,Sft._)`{limit: ${l}}`},rrr={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:trr,code(l){let{schema:c,parentSchema:f,it:y}=l,{prefixItems:b}=f;y.items=!0,!(0,Qtr.alwaysValidSchema)(y,c)&&(b?(0,err.validateAdditionalItems)(l,b):l.ok((0,Ztr.validateArray)(l)))}};uIe.default=rrr});var bft=xt(_Ie=>{"use strict";Object.defineProperty(_Ie,"__esModule",{value:!0});var Rb=Kl(),Yoe=zu(),nrr={message:({params:{min:l,max:c}})=>c===void 0?(0,Rb.str)`must contain at least ${l} valid item(s)`:(0,Rb.str)`must contain at least ${l} and no more than ${c} valid item(s)`,params:({params:{min:l,max:c}})=>c===void 0?(0,Rb._)`{minContains: ${l}}`:(0,Rb._)`{minContains: ${l}, maxContains: ${c}}`},irr={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:nrr,code(l){let{gen:c,schema:f,parentSchema:y,data:b,it:k}=l,g,p,{minContains:A,maxContains:j}=y;k.opts.next?(g=A===void 0?1:A,p=j):g=1;let se=c.const("len",(0,Rb._)`${b}.length`);if(l.setParams({min:g,max:p}),p===void 0&&g===0){(0,Yoe.checkStrictMode)(k,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(p!==void 0&&g>p){(0,Yoe.checkStrictMode)(k,'"minContains" > "maxContains" is always invalid'),l.fail();return}if((0,Yoe.alwaysValidSchema)(k,f)){let kt=(0,Rb._)`${se} >= ${g}`;p!==void 0&&(kt=(0,Rb._)`${kt} && ${se} <= ${p}`),l.pass(kt);return}k.items=!0;let We=c.name("valid");p===void 0&&g===1?lr(We,()=>c.if(We,()=>c.break())):g===0?(c.let(We,!0),p!==void 0&&c.if((0,Rb._)`${b}.length > 0`,ve)):(c.let(We,!1),ve()),l.result(We,()=>l.reset());function ve(){let kt=c.name("_valid"),Et=c.let("count",0);lr(kt,()=>c.if(kt,()=>Rr(Et)))}function lr(kt,Et){c.forRange("i",0,se,pi=>{l.subschema({keyword:"contains",dataProp:pi,dataPropType:Yoe.Type.Num,compositeRule:!0},kt),Et()})}function Rr(kt){c.code((0,Rb._)`${kt}++`),p===void 0?c.if((0,Rb._)`${kt} >= ${g}`,()=>c.assign(We,!0).break()):(c.if((0,Rb._)`${kt} > ${p}`,()=>c.assign(We,!1).break()),g===1?c.assign(We,!0):c.if((0,Rb._)`${kt} >= ${g}`,()=>c.assign(We,!0)))}}};_Ie.default=irr});var Cft=xt(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.validateSchemaDeps=kC.validatePropertyDeps=kC.error=void 0;var fIe=Kl(),srr=zu(),nW=wb();kC.error={message:({params:{property:l,depsCount:c,deps:f}})=>{let y=c===1?"property":"properties";return(0,fIe.str)`must have ${y} ${f} when property ${l} is present`},params:({params:{property:l,depsCount:c,deps:f,missingProperty:y}})=>(0,fIe._)`{property: ${l},
    missingProperty: ${y},
    depsCount: ${c},
    deps: ${f}}`};var orr={keyword:"dependencies",type:"object",schemaType:"object",error:kC.error,code(l){let[c,f]=arr(l);Eft(l,c),xft(l,f)}};function arr({schema:l}){let c={},f={};for(let y in l){if(y==="__proto__")continue;let b=Array.isArray(l[y])?c:f;b[y]=l[y]}return[c,f]}function Eft(l,c=l.schema){let{gen:f,data:y,it:b}=l;if(Object.keys(c).length===0)return;let k=f.let("missing");for(let g in c){let p=c[g];if(p.length===0)continue;let A=(0,nW.propertyInData)(f,y,g,b.opts.ownProperties);l.setParams({property:g,depsCount:p.length,deps:p.join(", ")}),b.allErrors?f.if(A,()=>{for(let j of p)(0,nW.checkReportMissingProp)(l,j)}):(f.if((0,fIe._)`${A} && (${(0,nW.checkMissingProp)(l,p,k)})`),(0,nW.reportMissingProp)(l,k),f.else())}}kC.validatePropertyDeps=Eft;function xft(l,c=l.schema){let{gen:f,data:y,keyword:b,it:k}=l,g=f.name("valid");for(let p in c)(0,srr.alwaysValidSchema)(k,c[p])||(f.if((0,nW.propertyInData)(f,y,p,k.opts.ownProperties),()=>{let A=l.subschema({keyword:b,schemaProp:p},g);l.mergeValidEvaluated(A,g)},()=>f.var(g,!0)),l.ok(g))}kC.validateSchemaDeps=xft;kC.default=orr});var kft=xt(pIe=>{"use strict";Object.defineProperty(pIe,"__esModule",{value:!0});var Aft=Kl(),crr=zu(),lrr={message:"property name must be valid",params:({params:l})=>(0,Aft._)`{propertyName: ${l.propertyName}}`},urr={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:lrr,code(l){let{gen:c,schema:f,data:y,it:b}=l;if((0,crr.alwaysValidSchema)(b,f))return;let k=c.name("valid");c.forIn("key",y,g=>{l.setParams({propertyName:g}),l.subschema({keyword:"propertyNames",data:g,dataTypes:["string"],propertyName:g,compositeRule:!0},k),c.if((0,Aft.not)(k),()=>{l.error(!0),b.allErrors||c.break()})}),l.ok(k)}};pIe.default=urr});var mIe=xt(dIe=>{"use strict";Object.defineProperty(dIe,"__esModule",{value:!0});var Koe=wb(),Ax=Kl(),_rr=dP(),Xoe=zu(),frr={message:"must NOT have additional properties",params:({params:l})=>(0,Ax._)`{additionalProperty: ${l.additionalProperty}}`},prr={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:frr,code(l){let{gen:c,schema:f,parentSchema:y,data:b,errsCount:k,it:g}=l;if(!k)throw new Error("ajv implementation error");let{allErrors:p,opts:A}=g;if(g.props=!0,A.removeAdditional!=="all"&&(0,Xoe.alwaysValidSchema)(g,f))return;let j=(0,Koe.allSchemaProperties)(y.properties),se=(0,Koe.allSchemaProperties)(y.patternProperties);We(),l.ok((0,Ax._)`${k} === ${_rr.default.errors}`);function We(){c.forIn("key",b,Et=>{!j.length&&!se.length?Rr(Et):c.if(ve(Et),()=>Rr(Et))})}function ve(Et){let pi;if(j.length>8){let di=(0,Xoe.schemaRefOrVal)(g,y.properties,"properties");pi=(0,Koe.isOwnProperty)(c,di,Et)}else j.length?pi=(0,Ax.or)(...j.map(di=>(0,Ax._)`${Et} === ${di}`)):pi=Ax.nil;return se.length&&(pi=(0,Ax.or)(pi,...se.map(di=>(0,Ax._)`${(0,Koe.usePattern)(l,di)}.test(${Et})`))),(0,Ax.not)(pi)}function lr(Et){c.code((0,Ax._)`delete ${b}[${Et}]`)}function Rr(Et){if(A.removeAdditional==="all"||A.removeAdditional&&f===!1){lr(Et);return}if(f===!1){l.setParams({additionalProperty:Et}),l.error(),p||c.break();return}if(typeof f=="object"&&!(0,Xoe.alwaysValidSchema)(g,f)){let pi=c.name("valid");A.removeAdditional==="failing"?(kt(Et,pi,!1),c.if((0,Ax.not)(pi),()=>{l.reset(),lr(Et)})):(kt(Et,pi),p||c.if((0,Ax.not)(pi),()=>c.break()))}}function kt(Et,pi,di){let ra={keyword:"additionalProperties",dataProp:Et,dataPropType:Xoe.Type.Str};di===!1&&Object.assign(ra,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(ra,pi)}}};dIe.default=prr});var Dft=xt(hIe=>{"use strict";Object.defineProperty(hIe,"__esModule",{value:!0});var drr=qz(),Pft=wb(),gIe=zu(),Nft=mIe(),mrr={keyword:"properties",type:"object",schemaType:"object",code(l){let{gen:c,schema:f,parentSchema:y,data:b,it:k}=l;k.opts.removeAdditional==="all"&&y.additionalProperties===void 0&&Nft.default.code(new drr.KeywordCxt(k,Nft.default,"additionalProperties"));let g=(0,Pft.allSchemaProperties)(f);for(let We of g)k.definedProperties.add(We);k.opts.unevaluated&&g.length&&k.props!==!0&&(k.props=gIe.mergeEvaluated.props(c,(0,gIe.toHash)(g),k.props));let p=g.filter(We=>!(0,gIe.alwaysValidSchema)(k,f[We]));if(p.length===0)return;let A=c.name("valid");for(let We of p)j(We)?se(We):(c.if((0,Pft.propertyInData)(c,b,We,k.opts.ownProperties)),se(We),k.allErrors||c.else().var(A,!0),c.endIf()),l.it.definedProperties.add(We),l.ok(A);function j(We){return k.opts.useDefaults&&!k.compositeRule&&f[We].default!==void 0}function se(We){l.subschema({keyword:"properties",schemaProp:We,dataProp:We},A)}}};hIe.default=mrr});var Rft=xt(yIe=>{"use strict";Object.defineProperty(yIe,"__esModule",{value:!0});var Ift=wb(),Qoe=Kl(),wft=zu(),Oft=zu(),grr={keyword:"patternProperties",type:"object",schemaType:"object",code(l){let{gen:c,schema:f,data:y,parentSchema:b,it:k}=l,{opts:g}=k,p=(0,Ift.allSchemaProperties)(f),A=p.filter(kt=>(0,wft.alwaysValidSchema)(k,f[kt]));if(p.length===0||A.length===p.length&&(!k.opts.unevaluated||k.props===!0))return;let j=g.strictSchema&&!g.allowMatchingProperties&&b.properties,se=c.name("valid");k.props!==!0&&!(k.props instanceof Qoe.Name)&&(k.props=(0,Oft.evaluatedPropsToName)(c,k.props));let{props:We}=k;ve();function ve(){for(let kt of p)j&&lr(kt),k.allErrors?Rr(kt):(c.var(se,!0),Rr(kt),c.if(se))}function lr(kt){for(let Et in j)new RegExp(kt).test(Et)&&(0,wft.checkStrictMode)(k,`property ${Et} matches pattern ${kt} (use allowMatchingProperties)`)}function Rr(kt){c.forIn("key",y,Et=>{c.if((0,Qoe._)`${(0,Ift.usePattern)(l,kt)}.test(${Et})`,()=>{let pi=A.includes(kt);pi||l.subschema({keyword:"patternProperties",schemaProp:kt,dataProp:Et,dataPropType:Oft.Type.Str},se),k.opts.unevaluated&&We!==!0?c.assign((0,Qoe._)`${We}[${Et}]`,!0):!pi&&!k.allErrors&&c.if((0,Qoe.not)(se),()=>c.break())})})}}};yIe.default=grr});var Mft=xt(vIe=>{"use strict";Object.defineProperty(vIe,"__esModule",{value:!0});var hrr=zu(),yrr={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(l){let{gen:c,schema:f,it:y}=l;if((0,hrr.alwaysValidSchema)(y,f)){l.fail();return}let b=c.name("valid");l.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},b),l.failResult(b,()=>l.reset(),()=>l.error())},error:{message:"must NOT be valid"}};vIe.default=yrr});var Lft=xt(SIe=>{"use strict";Object.defineProperty(SIe,"__esModule",{value:!0});var vrr=wb(),Srr={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:vrr.validateUnion,error:{message:"must match a schema in anyOf"}};SIe.default=Srr});var Fft=xt(TIe=>{"use strict";Object.defineProperty(TIe,"__esModule",{value:!0});var Zoe=Kl(),Trr=zu(),brr={message:"must match exactly one schema in oneOf",params:({params:l})=>(0,Zoe._)`{passingSchemas: ${l.passing}}`},Err={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:brr,code(l){let{gen:c,schema:f,parentSchema:y,it:b}=l;if(!Array.isArray(f))throw new Error("ajv implementation error");if(b.opts.discriminator&&y.discriminator)return;let k=f,g=c.let("valid",!1),p=c.let("passing",null),A=c.name("_valid");l.setParams({passing:p}),c.block(j),l.result(g,()=>l.reset(),()=>l.error(!0));function j(){k.forEach((se,We)=>{let ve;(0,Trr.alwaysValidSchema)(b,se)?c.var(A,!0):ve=l.subschema({keyword:"oneOf",schemaProp:We,compositeRule:!0},A),We>0&&c.if((0,Zoe._)`${A} && ${g}`).assign(g,!1).assign(p,(0,Zoe._)`[${p}, ${We}]`).else(),c.if(A,()=>{c.assign(g,!0),c.assign(p,We),ve&&l.mergeEvaluated(ve,Zoe.Name)})})}}};TIe.default=Err});var jft=xt(bIe=>{"use strict";Object.defineProperty(bIe,"__esModule",{value:!0});var xrr=zu(),Crr={keyword:"allOf",schemaType:"array",code(l){let{gen:c,schema:f,it:y}=l;if(!Array.isArray(f))throw new Error("ajv implementation error");let b=c.name("valid");f.forEach((k,g)=>{if((0,xrr.alwaysValidSchema)(y,k))return;let p=l.subschema({keyword:"allOf",schemaProp:g},b);l.ok(b),l.mergeEvaluated(p)})}};bIe.default=Crr});var Vft=xt(EIe=>{"use strict";Object.defineProperty(EIe,"__esModule",{value:!0});var eae=Kl(),Uft=zu(),Arr={message:({params:l})=>(0,eae.str)`must match "${l.ifClause}" schema`,params:({params:l})=>(0,eae._)`{failingKeyword: ${l.ifClause}}`},krr={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Arr,code(l){let{gen:c,parentSchema:f,it:y}=l;f.then===void 0&&f.else===void 0&&(0,Uft.checkStrictMode)(y,'"if" without "then" and "else" is ignored');let b=Bft(y,"then"),k=Bft(y,"else");if(!b&&!k)return;let g=c.let("valid",!0),p=c.name("_valid");if(A(),l.reset(),b&&k){let se=c.let("ifClause");l.setParams({ifClause:se}),c.if(p,j("then",se),j("else",se))}else b?c.if(p,j("then")):c.if((0,eae.not)(p),j("else"));l.pass(g,()=>l.error(!0));function A(){let se=l.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},p);l.mergeEvaluated(se)}function j(se,We){return()=>{let ve=l.subschema({keyword:se},p);c.assign(g,p),l.mergeValidEvaluated(ve,g),We?c.assign(We,(0,eae._)`${se}`):l.setParams({ifClause:se})}}}};function Bft(l,c){let f=l.schema[c];return f!==void 0&&!(0,Uft.alwaysValidSchema)(l,f)}EIe.default=krr});var Jft=xt(xIe=>{"use strict";Object.defineProperty(xIe,"__esModule",{value:!0});var Prr=zu(),Nrr={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:l,parentSchema:c,it:f}){c.if===void 0&&(0,Prr.checkStrictMode)(f,`"${l}" without "if" is ignored`)}};xIe.default=Nrr});var qft=xt(CIe=>{"use strict";Object.defineProperty(CIe,"__esModule",{value:!0});var Drr=aIe(),Irr=vft(),wrr=cIe(),Orr=Tft(),Rrr=bft(),Mrr=Cft(),Lrr=kft(),Frr=mIe(),jrr=Dft(),Brr=Rft(),Urr=Mft(),Vrr=Lft(),Jrr=Fft(),qrr=jft(),zrr=Vft(),Wrr=Jft();function Grr(l=!1){let c=[Urr.default,Vrr.default,Jrr.default,qrr.default,zrr.default,Wrr.default,Lrr.default,Frr.default,Mrr.default,jrr.default,Brr.default];return l?c.push(Irr.default,Orr.default):c.push(Drr.default,wrr.default),c.push(Rrr.default),c}CIe.default=Grr});var zft=xt(AIe=>{"use strict";Object.defineProperty(AIe,"__esModule",{value:!0});var Em=Kl(),Hrr={message:({schemaCode:l})=>(0,Em.str)`must match format "${l}"`,params:({schemaCode:l})=>(0,Em._)`{format: ${l}}`},$rr={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Hrr,code(l,c){let{gen:f,data:y,$data:b,schema:k,schemaCode:g,it:p}=l,{opts:A,errSchemaPath:j,schemaEnv:se,self:We}=p;if(!A.validateFormats)return;b?ve():lr();function ve(){let Rr=f.scopeValue("formats",{ref:We.formats,code:A.code.formats}),kt=f.const("fDef",(0,Em._)`${Rr}[${g}]`),Et=f.let("fType"),pi=f.let("format");f.if((0,Em._)`typeof ${kt} == "object" && !(${kt} instanceof RegExp)`,()=>f.assign(Et,(0,Em._)`${kt}.type || "string"`).assign(pi,(0,Em._)`${kt}.validate`),()=>f.assign(Et,(0,Em._)`"string"`).assign(pi,kt)),l.fail$data((0,Em.or)(di(),ra()));function di(){return A.strictSchema===!1?Em.nil:(0,Em._)`${g} && !${pi}`}function ra(){let Ql=se.$async?(0,Em._)`(${kt}.async ? await ${pi}(${y}) : ${pi}(${y}))`:(0,Em._)`${pi}(${y})`,va=(0,Em._)`(typeof ${pi} == "function" ? ${Ql} : ${pi}.test(${y}))`;return(0,Em._)`${pi} && ${pi} !== true && ${Et} === ${c} && !${va}`}}function lr(){let Rr=We.formats[k];if(!Rr){di();return}if(Rr===!0)return;let[kt,Et,pi]=ra(Rr);kt===c&&l.pass(Ql());function di(){if(A.strictSchema===!1){We.logger.warn(va());return}throw new Error(va());function va(){return`unknown format "${k}" ignored in schema at path "${j}"`}}function ra(va){let Ef=va instanceof RegExp?(0,Em.regexpCode)(va):A.code.formats?(0,Em._)`${A.code.formats}${(0,Em.getProperty)(k)}`:void 0,Oi=f.scopeValue("formats",{key:k,ref:va,code:Ef});return typeof va=="object"&&!(va instanceof RegExp)?[va.type||"string",va.validate,(0,Em._)`${Oi}.validate`]:["string",va,Oi]}function Ql(){if(typeof Rr=="object"&&!(Rr instanceof RegExp)&&Rr.async){if(!se.$async)throw new Error("async format in sync schema");return(0,Em._)`await ${pi}(${y})`}return typeof Et=="function"?(0,Em._)`${pi}(${y})`:(0,Em._)`${pi}.test(${y})`}}}};AIe.default=$rr});var Wft=xt(kIe=>{"use strict";Object.defineProperty(kIe,"__esModule",{value:!0});var Yrr=zft(),Krr=[Yrr.default];kIe.default=Krr});var Gft=xt(TF=>{"use strict";Object.defineProperty(TF,"__esModule",{value:!0});TF.contentVocabulary=TF.metadataVocabulary=void 0;TF.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];TF.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var $ft=xt(PIe=>{"use strict";Object.defineProperty(PIe,"__esModule",{value:!0});var Xrr=tft(),Qrr=mft(),Zrr=qft(),enr=Wft(),Hft=Gft(),tnr=[Xrr.default,Qrr.default,(0,Zrr.default)(),enr.default,Hft.metadataVocabulary,Hft.contentVocabulary];PIe.default=tnr});var Kft=xt(tae=>{"use strict";Object.defineProperty(tae,"__esModule",{value:!0});tae.DiscrError=void 0;var Yft;(function(l){l.Tag="tag",l.Mapping="mapping"})(Yft||(tae.DiscrError=Yft={}))});var Qft=xt(DIe=>{"use strict";Object.defineProperty(DIe,"__esModule",{value:!0});var bF=Kl(),NIe=Kft(),Xft=Foe(),rnr=zz(),nnr=zu(),inr={message:({params:{discrError:l,tagName:c}})=>l===NIe.DiscrError.Tag?`tag "${c}" must be string`:`value of tag "${c}" must be in oneOf`,params:({params:{discrError:l,tag:c,tagName:f}})=>(0,bF._)`{error: ${l}, tag: ${f}, tagValue: ${c}}`},snr={keyword:"discriminator",type:"object",schemaType:"object",error:inr,code(l){let{gen:c,data:f,schema:y,parentSchema:b,it:k}=l,{oneOf:g}=b;if(!k.opts.discriminator)throw new Error("discriminator: requires discriminator option");let p=y.propertyName;if(typeof p!="string")throw new Error("discriminator: requires propertyName");if(y.mapping)throw new Error("discriminator: mapping is not supported");if(!g)throw new Error("discriminator: requires oneOf keyword");let A=c.let("valid",!1),j=c.const("tag",(0,bF._)`${f}${(0,bF.getProperty)(p)}`);c.if((0,bF._)`typeof ${j} == "string"`,()=>se(),()=>l.error(!1,{discrError:NIe.DiscrError.Tag,tag:j,tagName:p})),l.ok(A);function se(){let lr=ve();c.if(!1);for(let Rr in lr)c.elseIf((0,bF._)`${j} === ${Rr}`),c.assign(A,We(lr[Rr]));c.else(),l.error(!1,{discrError:NIe.DiscrError.Mapping,tag:j,tagName:p}),c.endIf()}function We(lr){let Rr=c.name("valid"),kt=l.subschema({keyword:"oneOf",schemaProp:lr},Rr);return l.mergeEvaluated(kt,bF.Name),Rr}function ve(){var lr;let Rr={},kt=pi(b),Et=!0;for(let Ql=0;Ql{onr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var tpt=xt((Ap,IIe)=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.MissingRefError=Ap.ValidationError=Ap.CodeGen=Ap.Name=Ap.nil=Ap.stringify=Ap.str=Ap._=Ap.KeywordCxt=Ap.Ajv=void 0;var anr=Y_t(),cnr=$ft(),lnr=Qft(),ept=Zft(),unr=["/properties"],rae="http://json-schema.org/draft-07/schema",EF=class extends anr.default{_addVocabularies(){super._addVocabularies(),cnr.default.forEach(c=>this.addVocabulary(c)),this.opts.discriminator&&this.addKeyword(lnr.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let c=this.opts.$data?this.$dataMetaSchema(ept,unr):ept;this.addMetaSchema(c,rae,!1),this.refs["http://json-schema.org/schema"]=rae}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(rae)?rae:void 0)}};Ap.Ajv=EF;IIe.exports=Ap=EF;IIe.exports.Ajv=EF;Object.defineProperty(Ap,"__esModule",{value:!0});Ap.default=EF;var _nr=qz();Object.defineProperty(Ap,"KeywordCxt",{enumerable:!0,get:function(){return _nr.KeywordCxt}});var xF=Kl();Object.defineProperty(Ap,"_",{enumerable:!0,get:function(){return xF._}});Object.defineProperty(Ap,"str",{enumerable:!0,get:function(){return xF.str}});Object.defineProperty(Ap,"stringify",{enumerable:!0,get:function(){return xF.stringify}});Object.defineProperty(Ap,"nil",{enumerable:!0,get:function(){return xF.nil}});Object.defineProperty(Ap,"Name",{enumerable:!0,get:function(){return xF.Name}});Object.defineProperty(Ap,"CodeGen",{enumerable:!0,get:function(){return xF.CodeGen}});var fnr=Moe();Object.defineProperty(Ap,"ValidationError",{enumerable:!0,get:function(){return fnr.default}});var pnr=zz();Object.defineProperty(Ap,"MissingRefError",{enumerable:!0,get:function(){return pnr.default}})});var npt=xt(()=>{var rpt;(function(l){(function(c){var f=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:p(),y=b(l);typeof f.Reflect<"u"&&(y=b(f.Reflect,y)),c(y,f),typeof f.Reflect>"u"&&(f.Reflect=l);function b(A,j){return function(se,We){Object.defineProperty(A,se,{configurable:!0,writable:!0,value:We}),j&&j(se,We)}}function k(){try{return Function("return this;")()}catch{}}function g(){try{return(0,eval)("(function() { return this; })()")}catch{}}function p(){return k()||g()}})(function(c,f){var y=Object.prototype.hasOwnProperty,b=typeof Symbol=="function",k=b&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",g=b&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",p=typeof Object.create=="function",A={__proto__:[]}instanceof Array,j=!p&&!A,se={create:p?function(){return Jp(Object.create(null))}:A?function(){return Jp({__proto__:null})}:function(){return Jp({})},has:j?function(un,Jn){return y.call(un,Jn)}:function(un,Jn){return Jn in un},get:j?function(un,Jn){return y.call(un,Jn)?un[Jn]:void 0}:function(un,Jn){return un[Jn]}},We=Object.getPrototypeOf(Function),ve=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:u0(),lr=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:BC(),Rr=typeof WeakMap=="function"?WeakMap:jW(),kt=b?Symbol.for("@reflect-metadata:registry"):void 0,Et=jce(),pi=w1(Et);function di(un,Jn,Ut,Ss){if(js(Ut)){if(!d3(un))throw new TypeError;if(!kg(Jn))throw new TypeError;return UI(un,Jn)}else{if(!d3(un))throw new TypeError;if(!L_(Jn))throw new TypeError;if(!L_(Ss)&&!js(Ss)&&!rf(Ss))throw new TypeError;return rf(Ss)&&(Ss=void 0),Ut=Vp(Ut),xs(un,Jn,Ut,Ss)}}c("decorate",di);function ra(un,Jn){function Ut(Ss,Ca){if(!L_(Ss))throw new TypeError;if(!js(Ca)&&!i5(Ca))throw new TypeError;JI(un,Jn,Ss,Ca)}return Ut}c("metadata",ra);function Ql(un,Jn,Ut,Ss){if(!L_(Ut))throw new TypeError;return js(Ss)||(Ss=Vp(Ss)),JI(un,Jn,Ut,Ss)}c("defineMetadata",Ql);function va(un,Jn,Ut){if(!L_(Jn))throw new TypeError;return js(Ut)||(Ut=Vp(Ut)),Ub(un,Jn,Ut)}c("hasMetadata",va);function Ef(un,Jn,Ut){if(!L_(Jn))throw new TypeError;return js(Ut)||(Ut=Vp(Ut)),VI(un,Jn,Ut)}c("hasOwnMetadata",Ef);function Oi(un,Jn,Ut){if(!L_(Jn))throw new TypeError;return js(Ut)||(Ut=Vp(Ut)),yy(un,Jn,Ut)}c("getMetadata",Oi);function jn(un,Jn,Ut){if(!L_(Jn))throw new TypeError;return js(Ut)||(Ut=Vp(Ut)),ti(un,Jn,Ut)}c("getOwnMetadata",jn);function xm(un,Jn){if(!L_(un))throw new TypeError;return js(Jn)||(Jn=Vp(Jn)),$m(un,Jn)}c("getMetadataKeys",xm);function Va(un,Jn){if(!L_(un))throw new TypeError;return js(Jn)||(Jn=Vp(Jn)),kr(un,Jn)}c("getOwnMetadataKeys",Va);function dv(un,Jn,Ut){if(!L_(Jn))throw new TypeError;if(js(Ut)||(Ut=Vp(Ut)),!L_(Jn))throw new TypeError;js(Ut)||(Ut=Vp(Ut));var Ss=Rx(Jn,Ut,!1);return js(Ss)?!1:Ss.OrdinaryDeleteMetadata(un,Jn,Ut)}c("deleteMetadata",dv);function UI(un,Jn){for(var Ut=un.length-1;Ut>=0;--Ut){var Ss=un[Ut],Ca=Ss(Jn);if(!js(Ca)&&!rf(Ca)){if(!kg(Ca))throw new TypeError;Jn=Ca}}return Jn}function xs(un,Jn,Ut,Ss){for(var Ca=un.length-1;Ca>=0;--Ca){var On=un[Ca],cl=On(Jn,Ut,Ss);if(!js(cl)&&!rf(cl)){if(!L_(cl))throw new TypeError;Ss=cl}}return Ss}function Ub(un,Jn,Ut){var Ss=VI(un,Jn,Ut);if(Ss)return!0;var Ca=Ox(Jn);return rf(Ca)?!1:Ub(un,Ca,Ut)}function VI(un,Jn,Ut){var Ss=Rx(Jn,Ut,!1);return js(Ss)?!1:qI(Ss.OrdinaryHasOwnMetadata(un,Jn,Ut))}function yy(un,Jn,Ut){var Ss=VI(un,Jn,Ut);if(Ss)return ti(un,Jn,Ut);var Ca=Ox(Jn);if(!rf(Ca))return yy(un,Ca,Ut)}function ti(un,Jn,Ut){var Ss=Rx(Jn,Ut,!1);if(!js(Ss))return Ss.OrdinaryGetOwnMetadata(un,Jn,Ut)}function JI(un,Jn,Ut,Ss){var Ca=Rx(Ut,Ss,!0);Ca.OrdinaryDefineOwnMetadata(un,Jn,Ut,Ss)}function $m(un,Jn){var Ut=kr(un,Jn),Ss=Ox(un);if(Ss===null)return Ut;var Ca=$m(Ss,Jn);if(Ca.length<=0)return Ut;if(Ut.length<=0)return Ca;for(var On=new lr,cl=[],Ga=0,io=Ut;Ga=0&&io=this._keys.length?(this._index=-1,this._keys=Jn,this._values=Jn):this._index++,{value:mo,done:!1}}return{value:void 0,done:!0}},Ga.prototype.throw=function(io){throw this._index>=0&&(this._index=-1,this._keys=Jn,this._values=Jn),io},Ga.prototype.return=function(io){return this._index>=0&&(this._index=-1,this._keys=Jn,this._values=Jn),{value:io,done:!0}},Ga}(),Ss=function(){function Ga(){this._keys=[],this._values=[],this._cacheKey=un,this._cacheIndex=-2}return Object.defineProperty(Ga.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Ga.prototype.has=function(io){return this._find(io,!1)>=0},Ga.prototype.get=function(io){var mo=this._find(io,!1);return mo>=0?this._values[mo]:void 0},Ga.prototype.set=function(io,mo){var Lo=this._find(io,!0);return this._values[Lo]=mo,this},Ga.prototype.delete=function(io){var mo=this._find(io,!1);if(mo>=0){for(var Lo=this._keys.length,Zs=mo+1;Zs{var Ysr=Array.isArray;vdt.exports=Ysr});var Tdt=xt((n1r,Sdt)=>{var Ksr=typeof global=="object"&&global&&global.Object===Object&&global;Sdt.exports=Ksr});var Cae=xt((i1r,bdt)=>{var Xsr=Tdt(),Qsr=typeof self=="object"&&self&&self.Object===Object&&self,Zsr=Xsr||Qsr||Function("return this")();bdt.exports=Zsr});var Aae=xt((s1r,Edt)=>{var eor=Cae(),tor=eor.Symbol;Edt.exports=tor});var kdt=xt((o1r,Adt)=>{var xdt=Aae(),Cdt=Object.prototype,ror=Cdt.hasOwnProperty,nor=Cdt.toString,dW=xdt?xdt.toStringTag:void 0;function ior(l){var c=ror.call(l,dW),f=l[dW];try{l[dW]=void 0;var y=!0}catch{}var b=nor.call(l);return y&&(c?l[dW]=f:delete l[dW]),b}Adt.exports=ior});var Ndt=xt((a1r,Pdt)=>{var sor=Object.prototype,oor=sor.toString;function aor(l){return oor.call(l)}Pdt.exports=aor});var QIe=xt((c1r,wdt)=>{var Ddt=Aae(),cor=kdt(),lor=Ndt(),uor="[object Null]",_or="[object Undefined]",Idt=Ddt?Ddt.toStringTag:void 0;function por(l){return l==null?l===void 0?_or:uor:Idt&&Idt in Object(l)?cor(l):lor(l)}wdt.exports=por});var Rdt=xt((l1r,Odt)=>{function dor(l){return l!=null&&typeof l=="object"}Odt.exports=dor});var kae=xt((u1r,Mdt)=>{var mor=QIe(),gor=Rdt(),hor="[object Symbol]";function yor(l){return typeof l=="symbol"||gor(l)&&mor(l)==hor}Mdt.exports=yor});var Fdt=xt((_1r,Ldt)=>{var vor=xae(),Sor=kae(),Tor=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bor=/^\w*$/;function Eor(l,c){if(vor(l))return!1;var f=typeof l;return f=="number"||f=="symbol"||f=="boolean"||l==null||Sor(l)?!0:bor.test(l)||!Tor.test(l)||c!=null&&l in Object(c)}Ldt.exports=Eor});var ZIe=xt((f1r,jdt)=>{function xor(l){var c=typeof l;return l!=null&&(c=="object"||c=="function")}jdt.exports=xor});var Udt=xt((p1r,Bdt)=>{var Cor=QIe(),Aor=ZIe(),kor="[object AsyncFunction]",Por="[object Function]",Nor="[object GeneratorFunction]",Dor="[object Proxy]";function Ior(l){if(!Aor(l))return!1;var c=Cor(l);return c==Por||c==Nor||c==kor||c==Dor}Bdt.exports=Ior});var Jdt=xt((d1r,Vdt)=>{var wor=Cae(),Oor=wor["__core-js_shared__"];Vdt.exports=Oor});var Wdt=xt((m1r,zdt)=>{var ewe=Jdt(),qdt=function(){var l=/[^.]+$/.exec(ewe&&ewe.keys&&ewe.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}();function Ror(l){return!!qdt&&qdt in l}zdt.exports=Ror});var Hdt=xt((g1r,Gdt)=>{var Mor=Function.prototype,Lor=Mor.toString;function For(l){if(l!=null){try{return Lor.call(l)}catch{}try{return l+""}catch{}}return""}Gdt.exports=For});var Ydt=xt((h1r,$dt)=>{var jor=Udt(),Bor=Wdt(),Uor=ZIe(),Vor=Hdt(),Jor=/[\\^$.*+?()[\]{}|]/g,qor=/^\[object .+?Constructor\]$/,zor=Function.prototype,Wor=Object.prototype,Gor=zor.toString,Hor=Wor.hasOwnProperty,$or=RegExp("^"+Gor.call(Hor).replace(Jor,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yor(l){if(!Uor(l)||Bor(l))return!1;var c=jor(l)?$or:qor;return c.test(Vor(l))}$dt.exports=Yor});var Xdt=xt((y1r,Kdt)=>{function Kor(l,c){return l?.[c]}Kdt.exports=Kor});var twe=xt((v1r,Qdt)=>{var Xor=Ydt(),Qor=Xdt();function Zor(l,c){var f=Qor(l,c);return Xor(f)?f:void 0}Qdt.exports=Zor});var mW=xt((S1r,Zdt)=>{var ear=twe(),tar=ear(Object,"create");Zdt.exports=tar});var rmt=xt((T1r,tmt)=>{var emt=mW();function rar(){this.__data__=emt?emt(null):{},this.size=0}tmt.exports=rar});var imt=xt((b1r,nmt)=>{function nar(l){var c=this.has(l)&&delete this.__data__[l];return this.size-=c?1:0,c}nmt.exports=nar});var omt=xt((E1r,smt)=>{var iar=mW(),sar="__lodash_hash_undefined__",oar=Object.prototype,aar=oar.hasOwnProperty;function car(l){var c=this.__data__;if(iar){var f=c[l];return f===sar?void 0:f}return aar.call(c,l)?c[l]:void 0}smt.exports=car});var cmt=xt((x1r,amt)=>{var lar=mW(),uar=Object.prototype,_ar=uar.hasOwnProperty;function far(l){var c=this.__data__;return lar?c[l]!==void 0:_ar.call(c,l)}amt.exports=far});var umt=xt((C1r,lmt)=>{var par=mW(),dar="__lodash_hash_undefined__";function mar(l,c){var f=this.__data__;return this.size+=this.has(l)?0:1,f[l]=par&&c===void 0?dar:c,this}lmt.exports=mar});var fmt=xt((A1r,_mt)=>{var gar=rmt(),har=imt(),yar=omt(),Sar=cmt(),Tar=umt();function wF(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c{function bar(){this.__data__=[],this.size=0}pmt.exports=bar});var gmt=xt((P1r,mmt)=>{function Ear(l,c){return l===c||l!==l&&c!==c}mmt.exports=Ear});var gW=xt((N1r,hmt)=>{var xar=gmt();function Car(l,c){for(var f=l.length;f--;)if(xar(l[f][0],c))return f;return-1}hmt.exports=Car});var vmt=xt((D1r,ymt)=>{var Aar=gW(),kar=Array.prototype,Par=kar.splice;function Nar(l){var c=this.__data__,f=Aar(c,l);if(f<0)return!1;var y=c.length-1;return f==y?c.pop():Par.call(c,f,1),--this.size,!0}ymt.exports=Nar});var Tmt=xt((I1r,Smt)=>{var Dar=gW();function Iar(l){var c=this.__data__,f=Dar(c,l);return f<0?void 0:c[f][1]}Smt.exports=Iar});var Emt=xt((w1r,bmt)=>{var war=gW();function Oar(l){return war(this.__data__,l)>-1}bmt.exports=Oar});var Cmt=xt((O1r,xmt)=>{var Rar=gW();function Mar(l,c){var f=this.__data__,y=Rar(f,l);return y<0?(++this.size,f.push([l,c])):f[y][1]=c,this}xmt.exports=Mar});var kmt=xt((R1r,Amt)=>{var Lar=dmt(),Far=vmt(),jar=Tmt(),Bar=Emt(),Uar=Cmt();function OF(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c{var Var=twe(),Jar=Cae(),qar=Var(Jar,"Map");Pmt.exports=qar});var wmt=xt((L1r,Imt)=>{var Dmt=fmt(),zar=kmt(),War=Nmt();function Gar(){this.size=0,this.__data__={hash:new Dmt,map:new(War||zar),string:new Dmt}}Imt.exports=Gar});var Rmt=xt((F1r,Omt)=>{function Har(l){var c=typeof l;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?l!=="__proto__":l===null}Omt.exports=Har});var hW=xt((j1r,Mmt)=>{var $ar=Rmt();function Yar(l,c){var f=l.__data__;return $ar(c)?f[typeof c=="string"?"string":"hash"]:f.map}Mmt.exports=Yar});var Fmt=xt((B1r,Lmt)=>{var Kar=hW();function Xar(l){var c=Kar(this,l).delete(l);return this.size-=c?1:0,c}Lmt.exports=Xar});var Bmt=xt((U1r,jmt)=>{var Qar=hW();function Zar(l){return Qar(this,l).get(l)}jmt.exports=Zar});var Vmt=xt((V1r,Umt)=>{var ecr=hW();function tcr(l){return ecr(this,l).has(l)}Umt.exports=tcr});var qmt=xt((J1r,Jmt)=>{var rcr=hW();function ncr(l,c){var f=rcr(this,l),y=f.size;return f.set(l,c),this.size+=f.size==y?0:1,this}Jmt.exports=ncr});var Wmt=xt((q1r,zmt)=>{var icr=wmt(),scr=Fmt(),ocr=Bmt(),acr=Vmt(),ccr=qmt();function RF(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c{var Gmt=Wmt(),lcr="Expected a function";function rwe(l,c){if(typeof l!="function"||c!=null&&typeof c!="function")throw new TypeError(lcr);var f=function(){var y=arguments,b=c?c.apply(this,y):y[0],k=f.cache;if(k.has(b))return k.get(b);var g=l.apply(this,y);return f.cache=k.set(b,g)||k,g};return f.cache=new(rwe.Cache||Gmt),f}rwe.Cache=Gmt;Hmt.exports=rwe});var Kmt=xt((W1r,Ymt)=>{var ucr=$mt(),_cr=500;function fcr(l){var c=ucr(l,function(y){return f.size===_cr&&f.clear(),y}),f=c.cache;return c}Ymt.exports=fcr});var Qmt=xt((G1r,Xmt)=>{var pcr=Kmt(),dcr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mcr=/\\(\\)?/g,gcr=pcr(function(l){var c=[];return l.charCodeAt(0)===46&&c.push(""),l.replace(dcr,function(f,y,b,k){c.push(b?k.replace(mcr,"$1"):y||f)}),c});Xmt.exports=gcr});var egt=xt((H1r,Zmt)=>{function hcr(l,c){for(var f=-1,y=l==null?0:l.length,b=Array(y);++f{var tgt=Aae(),ycr=egt(),vcr=xae(),Scr=kae(),Tcr=1/0,rgt=tgt?tgt.prototype:void 0,ngt=rgt?rgt.toString:void 0;function igt(l){if(typeof l=="string")return l;if(vcr(l))return ycr(l,igt)+"";if(Scr(l))return ngt?ngt.call(l):"";var c=l+"";return c=="0"&&1/l==-Tcr?"-0":c}sgt.exports=igt});var cgt=xt((Y1r,agt)=>{var bcr=ogt();function Ecr(l){return l==null?"":bcr(l)}agt.exports=Ecr});var ugt=xt((K1r,lgt)=>{var xcr=xae(),Ccr=Fdt(),Acr=Qmt(),kcr=cgt();function Pcr(l,c){return xcr(l)?l:Ccr(l,c)?[l]:Acr(kcr(l))}lgt.exports=Pcr});var fgt=xt((X1r,_gt)=>{var Ncr=kae(),Dcr=1/0;function Icr(l){if(typeof l=="string"||Ncr(l))return l;var c=l+"";return c=="0"&&1/l==-Dcr?"-0":c}_gt.exports=Icr});var dgt=xt((Q1r,pgt)=>{var wcr=ugt(),Ocr=fgt();function Rcr(l,c){c=wcr(c,l);for(var f=0,y=c.length;l!=null&&f{var Mcr=dgt();function Lcr(l,c,f){var y=l==null?void 0:Mcr(l,c);return y===void 0?f:y}mgt.exports=Lcr});var hgt=xt(nwe=>{var ggt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");nwe.encode=function(l){if(0<=l&&l{var ygt=hgt(),iwe=5,vgt=1<>1;return c?-f:f}swe.encode=function(c){var f="",y,b=Fcr(c);do y=b&Sgt,b>>>=iwe,b>0&&(y|=Tgt),f+=ygt.encode(y);while(b>0);return f};swe.decode=function(c,f,y){var b=c.length,k=0,g=0,p,A;do{if(f>=b)throw new Error("Expected more digits in base 64 VLQ value.");if(A=ygt.decode(c.charCodeAt(f++)),A===-1)throw new Error("Invalid base64 digit: "+c.charAt(f-1));p=!!(A&Tgt),A&=Sgt,k=k+(A<{function Bcr(l,c,f){if(c in l)return l[c];if(arguments.length===3)return f;throw new Error('"'+c+'" is a required argument.')}c0.getArg=Bcr;var bgt=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Ucr=/^data:.+\,.+$/;function vW(l){var c=l.match(bgt);return c?{scheme:c[1],auth:c[2],host:c[3],port:c[4],path:c[5]}:null}c0.urlParse=vW;function MF(l){var c="";return l.scheme&&(c+=l.scheme+":"),c+="//",l.auth&&(c+=l.auth+"@"),l.host&&(c+=l.host),l.port&&(c+=":"+l.port),l.path&&(c+=l.path),c}c0.urlGenerate=MF;function awe(l){var c=l,f=vW(l);if(f){if(!f.path)return l;c=f.path}for(var y=c0.isAbsolute(c),b=c.split(/\/+/),k,g=0,p=b.length-1;p>=0;p--)k=b[p],k==="."?b.splice(p,1):k===".."?g++:g>0&&(k===""?(b.splice(p+1,g),g=0):(b.splice(p,2),g--));return c=b.join("/"),c===""&&(c=y?"/":"."),f?(f.path=c,MF(f)):c}c0.normalize=awe;function Egt(l,c){l===""&&(l="."),c===""&&(c=".");var f=vW(c),y=vW(l);if(y&&(l=y.path||"/"),f&&!f.scheme)return y&&(f.scheme=y.scheme),MF(f);if(f||c.match(Ucr))return c;if(y&&!y.host&&!y.path)return y.host=c,MF(y);var b=c.charAt(0)==="/"?c:awe(l.replace(/\/+$/,"")+"/"+c);return y?(y.path=b,MF(y)):b}c0.join=Egt;c0.isAbsolute=function(l){return l.charAt(0)==="/"||bgt.test(l)};function Vcr(l,c){l===""&&(l="."),l=l.replace(/\/$/,"");for(var f=0;c.indexOf(l+"/")!==0;){var y=l.lastIndexOf("/");if(y<0||(l=l.slice(0,y),l.match(/^([^\/]+:\/)?\/*$/)))return c;++f}return Array(f+1).join("../")+c.substr(l.length+1)}c0.relative=Vcr;var xgt=function(){var l=Object.create(null);return!("__proto__"in l)}();function Cgt(l){return l}function Jcr(l){return Agt(l)?"$"+l:l}c0.toSetString=xgt?Cgt:Jcr;function qcr(l){return Agt(l)?l.slice(1):l}c0.fromSetString=xgt?Cgt:qcr;function Agt(l){if(!l)return!1;var c=l.length;if(c<9||l.charCodeAt(c-1)!==95||l.charCodeAt(c-2)!==95||l.charCodeAt(c-3)!==111||l.charCodeAt(c-4)!==116||l.charCodeAt(c-5)!==111||l.charCodeAt(c-6)!==114||l.charCodeAt(c-7)!==112||l.charCodeAt(c-8)!==95||l.charCodeAt(c-9)!==95)return!1;for(var f=c-10;f>=0;f--)if(l.charCodeAt(f)!==36)return!1;return!0}function zcr(l,c,f){var y=LF(l.source,c.source);return y!==0||(y=l.originalLine-c.originalLine,y!==0)||(y=l.originalColumn-c.originalColumn,y!==0||f)||(y=l.generatedColumn-c.generatedColumn,y!==0)||(y=l.generatedLine-c.generatedLine,y!==0)?y:LF(l.name,c.name)}c0.compareByOriginalPositions=zcr;function Wcr(l,c,f){var y=l.generatedLine-c.generatedLine;return y!==0||(y=l.generatedColumn-c.generatedColumn,y!==0||f)||(y=LF(l.source,c.source),y!==0)||(y=l.originalLine-c.originalLine,y!==0)||(y=l.originalColumn-c.originalColumn,y!==0)?y:LF(l.name,c.name)}c0.compareByGeneratedPositionsDeflated=Wcr;function LF(l,c){return l===c?0:l===null?1:c===null?-1:l>c?1:-1}function Gcr(l,c){var f=l.generatedLine-c.generatedLine;return f!==0||(f=l.generatedColumn-c.generatedColumn,f!==0)||(f=LF(l.source,c.source),f!==0)||(f=l.originalLine-c.originalLine,f!==0)||(f=l.originalColumn-c.originalColumn,f!==0)?f:LF(l.name,c.name)}c0.compareByGeneratedPositionsInflated=Gcr;function Hcr(l){return JSON.parse(l.replace(/^\)]}'[^\n]*\n/,""))}c0.parseSourceMapInput=Hcr;function $cr(l,c,f){if(c=c||"",l&&(l[l.length-1]!=="/"&&c[0]!=="/"&&(l+="/"),c=l+c),f){var y=vW(f);if(!y)throw new Error("sourceMapURL could not be parsed");if(y.path){var b=y.path.lastIndexOf("/");b>=0&&(y.path=y.path.substring(0,b+1))}c=Egt(MF(y),c)}return awe(c)}c0.computeSourceURL=$cr});var uwe=xt(kgt=>{var cwe=FF(),lwe=Object.prototype.hasOwnProperty,n3=typeof Map<"u";function vP(){this._array=[],this._set=n3?new Map:Object.create(null)}vP.fromArray=function(c,f){for(var y=new vP,b=0,k=c.length;b=0)return f}else{var y=cwe.toSetString(c);if(lwe.call(this._set,y))return this._set[y]}throw new Error('"'+c+'" is not in the set.')};vP.prototype.at=function(c){if(c>=0&&c{var Pgt=FF();function Ycr(l,c){var f=l.generatedLine,y=c.generatedLine,b=l.generatedColumn,k=c.generatedColumn;return y>f||y==f&&k>=b||Pgt.compareByGeneratedPositionsInflated(l,c)<=0}function Pae(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Pae.prototype.unsortedForEach=function(c,f){this._array.forEach(c,f)};Pae.prototype.add=function(c){Ycr(this._last,c)?(this._last=c,this._array.push(c)):(this._sorted=!1,this._array.push(c))};Pae.prototype.toArray=function(){return this._sorted||(this._array.sort(Pgt.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Ngt.MappingList=Pae});var _we=xt(Igt=>{var SW=owe(),Hm=FF(),Nae=uwe().ArraySet,Kcr=Dgt().MappingList;function Mb(l){l||(l={}),this._file=Hm.getArg(l,"file",null),this._sourceRoot=Hm.getArg(l,"sourceRoot",null),this._skipValidation=Hm.getArg(l,"skipValidation",!1),this._sources=new Nae,this._names=new Nae,this._mappings=new Kcr,this._sourcesContents=null}Mb.prototype._version=3;Mb.fromSourceMap=function(c){var f=c.sourceRoot,y=new Mb({file:c.file,sourceRoot:f});return c.eachMapping(function(b){var k={generated:{line:b.generatedLine,column:b.generatedColumn}};b.source!=null&&(k.source=b.source,f!=null&&(k.source=Hm.relative(f,k.source)),k.original={line:b.originalLine,column:b.originalColumn},b.name!=null&&(k.name=b.name)),y.addMapping(k)}),c.sources.forEach(function(b){var k=b;f!==null&&(k=Hm.relative(f,b)),y._sources.has(k)||y._sources.add(k);var g=c.sourceContentFor(b);g!=null&&y.setSourceContent(b,g)}),y};Mb.prototype.addMapping=function(c){var f=Hm.getArg(c,"generated"),y=Hm.getArg(c,"original",null),b=Hm.getArg(c,"source",null),k=Hm.getArg(c,"name",null);this._skipValidation||this._validateMapping(f,y,b,k),b!=null&&(b=String(b),this._sources.has(b)||this._sources.add(b)),k!=null&&(k=String(k),this._names.has(k)||this._names.add(k)),this._mappings.add({generatedLine:f.line,generatedColumn:f.column,originalLine:y!=null&&y.line,originalColumn:y!=null&&y.column,source:b,name:k})};Mb.prototype.setSourceContent=function(c,f){var y=c;this._sourceRoot!=null&&(y=Hm.relative(this._sourceRoot,y)),f!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Hm.toSetString(y)]=f):this._sourcesContents&&(delete this._sourcesContents[Hm.toSetString(y)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Mb.prototype.applySourceMap=function(c,f,y){var b=f;if(f==null){if(c.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);b=c.file}var k=this._sourceRoot;k!=null&&(b=Hm.relative(k,b));var g=new Nae,p=new Nae;this._mappings.unsortedForEach(function(A){if(A.source===b&&A.originalLine!=null){var j=c.originalPositionFor({line:A.originalLine,column:A.originalColumn});j.source!=null&&(A.source=j.source,y!=null&&(A.source=Hm.join(y,A.source)),k!=null&&(A.source=Hm.relative(k,A.source)),A.originalLine=j.line,A.originalColumn=j.column,j.name!=null&&(A.name=j.name))}var se=A.source;se!=null&&!g.has(se)&&g.add(se);var We=A.name;We!=null&&!p.has(We)&&p.add(We)},this),this._sources=g,this._names=p,c.sources.forEach(function(A){var j=c.sourceContentFor(A);j!=null&&(y!=null&&(A=Hm.join(y,A)),k!=null&&(A=Hm.relative(k,A)),this.setSourceContent(A,j))},this)};Mb.prototype._validateMapping=function(c,f,y,b){if(f&&typeof f.line!="number"&&typeof f.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(c&&"line"in c&&"column"in c&&c.line>0&&c.column>=0&&!f&&!y&&!b)){if(c&&"line"in c&&"column"in c&&f&&"line"in f&&"column"in f&&c.line>0&&c.column>=0&&f.line>0&&f.column>=0&&y)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:c,source:y,original:f,name:b}))}};Mb.prototype._serializeMappings=function(){for(var c=0,f=1,y=0,b=0,k=0,g=0,p="",A,j,se,We,ve=this._mappings.toArray(),lr=0,Rr=ve.length;lr0){if(!Hm.compareByGeneratedPositionsInflated(j,ve[lr-1]))continue;A+=","}A+=SW.encode(j.generatedColumn-c),c=j.generatedColumn,j.source!=null&&(We=this._sources.indexOf(j.source),A+=SW.encode(We-g),g=We,A+=SW.encode(j.originalLine-1-b),b=j.originalLine-1,A+=SW.encode(j.originalColumn-y),y=j.originalColumn,j.name!=null&&(se=this._names.indexOf(j.name),A+=SW.encode(se-k),k=se)),p+=A}return p};Mb.prototype._generateSourcesContent=function(c,f){return c.map(function(y){if(!this._sourcesContents)return null;f!=null&&(y=Hm.relative(f,y));var b=Hm.toSetString(y);return Object.prototype.hasOwnProperty.call(this._sourcesContents,b)?this._sourcesContents[b]:null},this)};Mb.prototype.toJSON=function(){var c={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(c.file=this._file),this._sourceRoot!=null&&(c.sourceRoot=this._sourceRoot),this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,c.sourceRoot)),c};Mb.prototype.toString=function(){return JSON.stringify(this.toJSON())};Igt.SourceMapGenerator=Mb});var wgt=xt(i3=>{i3.GREATEST_LOWER_BOUND=1;i3.LEAST_UPPER_BOUND=2;function fwe(l,c,f,y,b,k){var g=Math.floor((c-l)/2)+l,p=b(f,y[g],!0);return p===0?g:p>0?c-g>1?fwe(g,c,f,y,b,k):k==i3.LEAST_UPPER_BOUND?c1?fwe(l,g,f,y,b,k):k==i3.LEAST_UPPER_BOUND?g:l<0?-1:l}i3.search=function(c,f,y,b){if(f.length===0)return-1;var k=fwe(-1,f.length,c,f,y,b||i3.GREATEST_LOWER_BOUND);if(k<0)return-1;for(;k-1>=0&&y(f[k],f[k-1],!0)===0;)--k;return k}});var Rgt=xt(Ogt=>{function pwe(l,c,f){var y=l[c];l[c]=l[f],l[f]=y}function Xcr(l,c){return Math.round(l+Math.random()*(c-l))}function dwe(l,c,f,y){if(f{var _a=FF(),mwe=wgt(),jF=uwe().ArraySet,Qcr=owe(),TW=Rgt().quickSort;function kp(l,c){var f=l;return typeof l=="string"&&(f=_a.parseSourceMapInput(l)),f.sections!=null?new kx(f,c):new hy(f,c)}kp.fromSourceMap=function(l,c){return hy.fromSourceMap(l,c)};kp.prototype._version=3;kp.prototype.__generatedMappings=null;Object.defineProperty(kp.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});kp.prototype.__originalMappings=null;Object.defineProperty(kp.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});kp.prototype._charIsMappingSeparator=function(c,f){var y=c.charAt(f);return y===";"||y===","};kp.prototype._parseMappings=function(c,f){throw new Error("Subclasses must implement _parseMappings")};kp.GENERATED_ORDER=1;kp.ORIGINAL_ORDER=2;kp.GREATEST_LOWER_BOUND=1;kp.LEAST_UPPER_BOUND=2;kp.prototype.eachMapping=function(c,f,y){var b=f||null,k=y||kp.GENERATED_ORDER,g;switch(k){case kp.GENERATED_ORDER:g=this._generatedMappings;break;case kp.ORIGINAL_ORDER:g=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var p=this.sourceRoot;g.map(function(A){var j=A.source===null?null:this._sources.at(A.source);return j=_a.computeSourceURL(p,j,this._sourceMapURL),{source:j,generatedLine:A.generatedLine,generatedColumn:A.generatedColumn,originalLine:A.originalLine,originalColumn:A.originalColumn,name:A.name===null?null:this._names.at(A.name)}},this).forEach(c,b)};kp.prototype.allGeneratedPositionsFor=function(c){var f=_a.getArg(c,"line"),y={source:_a.getArg(c,"source"),originalLine:f,originalColumn:_a.getArg(c,"column",0)};if(y.source=this._findSourceIndex(y.source),y.source<0)return[];var b=[],k=this._findMapping(y,this._originalMappings,"originalLine","originalColumn",_a.compareByOriginalPositions,mwe.LEAST_UPPER_BOUND);if(k>=0){var g=this._originalMappings[k];if(c.column===void 0)for(var p=g.originalLine;g&&g.originalLine===p;)b.push({line:_a.getArg(g,"generatedLine",null),column:_a.getArg(g,"generatedColumn",null),lastColumn:_a.getArg(g,"lastGeneratedColumn",null)}),g=this._originalMappings[++k];else for(var A=g.originalColumn;g&&g.originalLine===f&&g.originalColumn==A;)b.push({line:_a.getArg(g,"generatedLine",null),column:_a.getArg(g,"generatedColumn",null),lastColumn:_a.getArg(g,"lastGeneratedColumn",null)}),g=this._originalMappings[++k]}return b};Dae.SourceMapConsumer=kp;function hy(l,c){var f=l;typeof l=="string"&&(f=_a.parseSourceMapInput(l));var y=_a.getArg(f,"version"),b=_a.getArg(f,"sources"),k=_a.getArg(f,"names",[]),g=_a.getArg(f,"sourceRoot",null),p=_a.getArg(f,"sourcesContent",null),A=_a.getArg(f,"mappings"),j=_a.getArg(f,"file",null);if(y!=this._version)throw new Error("Unsupported version: "+y);g&&(g=_a.normalize(g)),b=b.map(String).map(_a.normalize).map(function(se){return g&&_a.isAbsolute(g)&&_a.isAbsolute(se)?_a.relative(g,se):se}),this._names=jF.fromArray(k.map(String),!0),this._sources=jF.fromArray(b,!0),this._absoluteSources=this._sources.toArray().map(function(se){return _a.computeSourceURL(g,se,c)}),this.sourceRoot=g,this.sourcesContent=p,this._mappings=A,this._sourceMapURL=c,this.file=j}hy.prototype=Object.create(kp.prototype);hy.prototype.consumer=kp;hy.prototype._findSourceIndex=function(l){var c=l;if(this.sourceRoot!=null&&(c=_a.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var f;for(f=0;f1&&(kt.source=p+pi[1],p+=pi[1],kt.originalLine=k+pi[2],k=kt.originalLine,kt.originalLine+=1,kt.originalColumn=g+pi[3],g=kt.originalColumn,pi.length>4&&(kt.name=A+pi[4],A+=pi[4])),Rr.push(kt),typeof kt.originalLine=="number"&&lr.push(kt)}TW(Rr,_a.compareByGeneratedPositionsDeflated),this.__generatedMappings=Rr,TW(lr,_a.compareByOriginalPositions),this.__originalMappings=lr};hy.prototype._findMapping=function(c,f,y,b,k,g){if(c[y]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[y]);if(c[b]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[b]);return mwe.search(c,f,k,g)};hy.prototype.computeColumnSpans=function(){for(var c=0;c=0){var b=this._generatedMappings[y];if(b.generatedLine===f.generatedLine){var k=_a.getArg(b,"source",null);k!==null&&(k=this._sources.at(k),k=_a.computeSourceURL(this.sourceRoot,k,this._sourceMapURL));var g=_a.getArg(b,"name",null);return g!==null&&(g=this._names.at(g)),{source:k,line:_a.getArg(b,"originalLine",null),column:_a.getArg(b,"originalColumn",null),name:g}}}return{source:null,line:null,column:null,name:null}};hy.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1};hy.prototype.sourceContentFor=function(c,f){if(!this.sourcesContent)return null;var y=this._findSourceIndex(c);if(y>=0)return this.sourcesContent[y];var b=c;this.sourceRoot!=null&&(b=_a.relative(this.sourceRoot,b));var k;if(this.sourceRoot!=null&&(k=_a.urlParse(this.sourceRoot))){var g=b.replace(/^file:\/\//,"");if(k.scheme=="file"&&this._sources.has(g))return this.sourcesContent[this._sources.indexOf(g)];if((!k.path||k.path=="/")&&this._sources.has("/"+b))return this.sourcesContent[this._sources.indexOf("/"+b)]}if(f)return null;throw new Error('"'+b+'" is not in the SourceMap.')};hy.prototype.generatedPositionFor=function(c){var f=_a.getArg(c,"source");if(f=this._findSourceIndex(f),f<0)return{line:null,column:null,lastColumn:null};var y={source:f,originalLine:_a.getArg(c,"line"),originalColumn:_a.getArg(c,"column")},b=this._findMapping(y,this._originalMappings,"originalLine","originalColumn",_a.compareByOriginalPositions,_a.getArg(c,"bias",kp.GREATEST_LOWER_BOUND));if(b>=0){var k=this._originalMappings[b];if(k.source===y.source)return{line:_a.getArg(k,"generatedLine",null),column:_a.getArg(k,"generatedColumn",null),lastColumn:_a.getArg(k,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Dae.BasicSourceMapConsumer=hy;function kx(l,c){var f=l;typeof l=="string"&&(f=_a.parseSourceMapInput(l));var y=_a.getArg(f,"version"),b=_a.getArg(f,"sections");if(y!=this._version)throw new Error("Unsupported version: "+y);this._sources=new jF,this._names=new jF;var k={line:-1,column:0};this._sections=b.map(function(g){if(g.url)throw new Error("Support for url field in sections not implemented.");var p=_a.getArg(g,"offset"),A=_a.getArg(p,"line"),j=_a.getArg(p,"column");if(A{var Zcr=_we().SourceMapGenerator,Iae=FF(),elr=/(\r?\n)/,tlr=10,BF="$$$isSourceNode$$$";function GS(l,c,f,y,b){this.children=[],this.sourceContents={},this.line=l??null,this.column=c??null,this.source=f??null,this.name=b??null,this[BF]=!0,y!=null&&this.add(y)}GS.fromStringWithSourceMap=function(c,f,y){var b=new GS,k=c.split(elr),g=0,p=function(){var ve=Rr(),lr=Rr()||"";return ve+lr;function Rr(){return g=0;f--)this.prepend(c[f]);else if(c[BF]||typeof c=="string")this.children.unshift(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this};GS.prototype.walk=function(c){for(var f,y=0,b=this.children.length;y0){for(f=[],y=0;y{wae.SourceMapGenerator=_we().SourceMapGenerator;wae.SourceMapConsumer=Lgt().SourceMapConsumer;wae.SourceNode=jgt().SourceNode});var Vgt=xt((_Sr,Ugt)=>{var rlr=Object.prototype.toString,gwe=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function nlr(l){return rlr.call(l).slice(8,-1)==="ArrayBuffer"}function ilr(l,c,f){c>>>=0;var y=l.byteLength-c;if(y<0)throw new RangeError("'offset' is out of bounds");if(f===void 0)f=y;else if(f>>>=0,f>y)throw new RangeError("'length' is out of bounds");return gwe?Buffer.from(l.slice(c,c+f)):new Buffer(new Uint8Array(l.slice(c,c+f)))}function slr(l,c){if((typeof c!="string"||c==="")&&(c="utf8"),!Buffer.isEncoding(c))throw new TypeError('"encoding" must be a valid string encoding');return gwe?Buffer.from(l,c):new Buffer(l,c)}function olr(l,c,f){if(typeof l=="number")throw new TypeError('"value" argument must not be a number');return nlr(l)?ilr(l,c,f):typeof l=="string"?slr(l,c):gwe?Buffer.from(l):new Buffer(l)}Ugt.exports=olr});var Ygt=xt((o3,Swe)=>{var alr=Bgt().SourceMapConsumer,hwe=Ru("path"),DC;try{DC=Ru("fs"),(!DC.existsSync||!DC.readFileSync)&&(DC=null)}catch{}var clr=Vgt();function Jgt(l,c){return l.require(c)}var qgt=!1,zgt=!1,ywe=!1,bW="auto",s3={},EW={},llr=/^data:application\/json[^,]+base64,/,LI=[],FI=[];function Twe(){return bW==="browser"?!0:bW==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function ulr(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function _lr(){return typeof process=="object"&&process!==null?process.version:""}function flr(){if(typeof process=="object"&&process!==null)return process.stderr}function plr(l){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(l)}function Oae(l){return function(c){for(var f=0;f";var f=this.getLineNumber();if(f!=null){c+=":"+f;var y=this.getColumnNumber();y&&(c+=":"+y)}}var b="",k=this.getFunctionName(),g=!0,p=this.isConstructor(),A=!(this.isToplevel()||p);if(A){var j=this.getTypeName();j==="[object Object]"&&(j="null");var se=this.getMethodName();k?(j&&k.indexOf(j)!=0&&(b+=j+"."),b+=k,se&&k.indexOf("."+se)!=k.length-se.length-1&&(b+=" [as "+se+"]")):b+=j+"."+(se||"")}else p?b+="new "+(k||""):k?b+=k:(b+=c,g=!1);return g&&(b+=" ("+c+")"),b}function Wgt(l){var c={};return Object.getOwnPropertyNames(Object.getPrototypeOf(l)).forEach(function(f){c[f]=/^(?:is|get)/.test(f)?function(){return l[f].call(l)}:l[f]}),c.toString=mlr,c}function Hgt(l,c){if(c===void 0&&(c={nextPosition:null,curPosition:null}),l.isNative())return c.curPosition=null,l;var f=l.getFileName()||l.getScriptNameOrSourceURL();if(f){var y=l.getLineNumber(),b=l.getColumnNumber()-1,k=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,g=k.test(_lr())?0:62;y===1&&b>g&&!Twe()&&!l.isEval()&&(b-=g);var p=xwe({source:f,line:y,column:b});c.curPosition=p,l=Wgt(l);var A=l.getFunctionName;return l.getFunctionName=function(){return c.nextPosition==null?A():c.nextPosition.name||A()},l.getFileName=function(){return p.source},l.getLineNumber=function(){return p.line},l.getColumnNumber=function(){return p.column+1},l.getScriptNameOrSourceURL=function(){return p.source},l}var j=l.isEval()&&l.getEvalOrigin();return j&&(j=Ggt(j),l=Wgt(l),l.getEvalOrigin=function(){return j}),l}function glr(l,c){ywe&&(s3={},EW={});for(var f=l.name||"Error",y=l.message||"",b=f+": "+y,k={nextPosition:null,curPosition:null},g=[],p=c.length-1;p>=0;p--)g.push(`
    at `+Hgt(c[p],k)),k.nextPosition=k.curPosition;return k.curPosition=k.nextPosition=null,b+g.reverse().join("")}function $gt(l){var c=/\n    at [^(]+ \((.*):(\d+):(\d+)\)/.exec(l.stack);if(c){var f=c[1],y=+c[2],b=+c[3],k=s3[f];if(!k&&DC&&DC.existsSync(f))try{k=DC.readFileSync(f,"utf8")}catch{k=""}if(k){var g=k.split(/(?:\r\n|\r|\n)/)[y-1];if(g)return f+":"+y+`
`+g+`
`+new Array(b).join(" ")+"^"}}return null}function hlr(l){var c=$gt(l),f=flr();f&&f._handle&&f._handle.setBlocking&&f._handle.setBlocking(!0),c&&(console.error(),console.error(c)),console.error(l.stack),plr(1)}function ylr(){var l=process.emit;process.emit=function(c){if(c==="uncaughtException"){var f=arguments[1]&&arguments[1].stack,y=this.listeners(c).length>0;if(f&&!y)return hlr(arguments[1])}return l.apply(this,arguments)}}var vlr=LI.slice(0),Slr=FI.slice(0);o3.wrapCallSite=Hgt;o3.getErrorSource=$gt;o3.mapSourcePosition=xwe;o3.retrieveSourceMap=Ewe;o3.install=function(l){if(l=l||{},l.environment&&(bW=l.environment,["node","browser","auto"].indexOf(bW)===-1))throw new Error("environment "+bW+" was unknown. Available options are {auto, browser, node}");if(l.retrieveFile&&(l.overrideRetrieveFile&&(LI.length=0),LI.unshift(l.retrieveFile)),l.retrieveSourceMap&&(l.overrideRetrieveSourceMap&&(FI.length=0),FI.unshift(l.retrieveSourceMap)),l.hookRequire&&!Twe()){var c=Jgt(Swe,"module"),f=c.prototype._compile;f.__sourceMapSupport||(c.prototype._compile=function(k,g){return s3[g]=k,EW[g]=void 0,f.call(this,k,g)},c.prototype._compile.__sourceMapSupport=!0)}if(ywe||(ywe="emptyCacheBetweenOperations"in l?l.emptyCacheBetweenOperations:!1),qgt||(qgt=!0,Error.prepareStackTrace=glr),!zgt){var y="handleUncaughtExceptions"in l?l.handleUncaughtExceptions:!0;try{var b=Jgt(Swe,"worker_threads");b.isMainThread===!1&&(y=!1)}catch{}y&&ulr()&&(zgt=!0,ylr())}};o3.resetRetrieveHandlers=function(){LI.length=0,FI.length=0,LI=vlr.slice(0),FI=Slr.slice(0),Ewe=Oae(FI),bwe=Oae(LI)}});var D1=xt((fSr,Mae)=>{var Kgt={};(l=>{"use strict";var c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,b=Object.prototype.hasOwnProperty,k=(e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})},g=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of y(t))!b.call(e,s)&&s!==n&&c(e,s,{get:()=>t[s],enumerable:!(i=f(t,s))||i.enumerable});return e},p=e=>e,A={};k(A,{ANONYMOUS:()=>nZ,AccessFlags:()=>Mle,AssertionLevel:()=>Wce,AssignmentDeclarationKind:()=>zle,AssignmentKind:()=>dfe,Associativity:()=>Efe,BreakpointResolver:()=>ree,BuilderFileEmit:()=>Qhe,BuilderProgramKind:()=>sye,BuilderState:()=>cg,CallHierarchy:()=>_k,CharacterCodes:()=>tue,CheckFlags:()=>Ile,CheckMode:()=>EK,ClassificationType:()=>uQ,ClassificationTypeNames:()=>_0e,CommentDirectiveType:()=>gle,Comparison:()=>We,CompletionInfoFlags:()=>i0e,CompletionTriggerKind:()=>cQ,Completions:()=>hk,ContainerFlags:()=>kge,ContextFlags:()=>Ele,Debug:()=>M,DiagnosticCategory:()=>m5,Diagnostics:()=>v,DocumentHighlights:()=>yV,ElementFlags:()=>Rle,EmitFlags:()=>gG,EmitHint:()=>oue,EmitOnly:()=>yle,EndOfLineState:()=>a0e,ExitStatus:()=>vle,ExportKind:()=>cve,Extension:()=>rue,ExternalEmitHelpers:()=>sue,FileIncludeKind:()=>oG,FilePreprocessingDiagnosticsKind:()=>hle,FileSystemEntryKind:()=>mue,FileWatcherEventKind:()=>fue,FindAllReferences:()=>lc,FlattenLevel:()=>ehe,FlowFlags:()=>d5,ForegroundColorEscapeSequences:()=>zhe,FunctionFlags:()=>Sfe,GeneratedIdentifierFlags:()=>sG,GetLiteralTextFlags:()=>P_e,GoToDefinition:()=>cD,HighlightSpanKind:()=>r0e,IdentifierNameMap:()=>FN,IdentifierNameMultiMap:()=>Hge,ImportKind:()=>ave,ImportsNotUsedAsValues:()=>Kle,IndentStyle:()=>n0e,IndexFlags:()=>Lle,IndexKind:()=>Ble,InferenceFlags:()=>Jle,InferencePriority:()=>Vle,InlayHintKind:()=>t0e,InlayHints:()=>Hee,InternalEmitFlags:()=>nue,InternalSymbolName:()=>wle,IntersectionFlags:()=>ble,InvalidatedProjectKind:()=>Nye,JSDocParsingMode:()=>_ue,JsDoc:()=>BT,JsTyping:()=>Zg,JsxEmit:()=>Yle,JsxFlags:()=>ple,JsxReferenceKind:()=>Fle,LanguageFeatureMinimumTarget:()=>iue,LanguageServiceMode:()=>Zye,LanguageVariant:()=>Zle,LexicalEnvironmentFlags:()=>cue,ListFormat:()=>lue,LogLevel:()=>rle,MapCode:()=>$ee,MemberOverrideStatus:()=>Sle,ModifierFlags:()=>nG,ModuleDetectionKind:()=>Wle,ModuleInstanceState:()=>Cge,ModuleKind:()=>E3,ModuleResolutionKind:()=>ew,ModuleSpecifierEnding:()=>bpe,NavigateTo:()=>Dve,NavigationBar:()=>wve,NewLineKind:()=>Xle,NodeBuilderFlags:()=>xle,NodeCheckFlags:()=>lG,NodeFactoryFlags:()=>$pe,NodeFlags:()=>rG,NodeResolutionFeatures:()=>mge,ObjectFlags:()=>_G,OperationCanceledException:()=>ZI,OperatorPrecedence:()=>xfe,OrganizeImports:()=>UT,OrganizeImportsMode:()=>aQ,OuterExpressionKinds:()=>aue,OutliningElementsCollector:()=>Xee,OutliningSpanKind:()=>s0e,OutputFileType:()=>o0e,PackageJsonAutoImportPreference:()=>Qye,PackageJsonDependencyGroup:()=>Xye,PatternMatchKind:()=>EZ,PollingInterval:()=>hG,PollingWatchKind:()=>$le,PragmaKindFlags:()=>uue,PrivateIdentifierKind:()=>sde,ProcessLevel:()=>ohe,ProgramUpdateLevel:()=>Bhe,QuotePreference:()=>M0e,RegularExpressionFlags:()=>dle,RelationComparisonResult:()=>iG,Rename:()=>nJ,ScriptElementKind:()=>l0e,ScriptElementKindModifier:()=>u0e,ScriptKind:()=>pG,ScriptSnapshot:()=>CU,ScriptTarget:()=>Qle,SemanticClassificationFormat:()=>e0e,SemanticMeaning:()=>f0e,SemicolonPreference:()=>lQ,SignatureCheckMode:()=>xK,SignatureFlags:()=>fG,SignatureHelp:()=>eL,SignatureInfo:()=>Xhe,SignatureKind:()=>jle,SmartSelectionRange:()=>ete,SnippetKind:()=>mG,StatisticType:()=>Vye,StructureIsReused:()=>aG,SymbolAccessibility:()=>kle,SymbolDisplay:()=>Wv,SymbolDisplayPartKind:()=>kU,SymbolFlags:()=>cG,SymbolFormatFlags:()=>Ale,SyntaxKind:()=>tG,SyntheticSymbolKind:()=>Ple,Ternary:()=>qle,ThrottledCancellationToken:()=>V1e,TokenClass:()=>c0e,TokenFlags:()=>mle,TransformFlags:()=>dG,TypeFacts:()=>bK,TypeFlags:()=>uG,TypeFormatFlags:()=>Cle,TypeMapKind:()=>Ule,TypePredicateKind:()=>Nle,TypeReferenceSerializationKind:()=>Dle,UnionReduction:()=>Tle,UpToDateStatusType:()=>bye,VarianceFlags:()=>Ole,Version:()=>Ym,VersionRange:()=>f5,WatchDirectoryFlags:()=>eue,WatchDirectoryKind:()=>Hle,WatchFileKind:()=>Gle,WatchLogLevel:()=>Vhe,WatchType:()=>Eu,accessPrivateIdentifier:()=>Qge,addDisposableResourceHelper:()=>Ode,addEmitFlags:()=>qg,addEmitHelper:()=>DA,addEmitHelpers:()=>x0,addInternalEmitFlags:()=>PA,addNodeFactoryPatcher:()=>a4e,addObjectAllocatorPatcher:()=>G6e,addRange:()=>On,addRelatedInfo:()=>lo,addSyntheticLeadingComment:()=>hO,addSyntheticTrailingComment:()=>Nj,addToSeen:()=>tm,advancedAsyncSuperHelper:()=>Oj,affectsDeclarationPathOptionDeclarations:()=>Lme,affectsEmitOptionDeclarations:()=>Mme,allKeysStartWithDot:()=>NB,altDirectorySeparator:()=>v5,and:()=>l5,append:()=>Ut,appendIfUnique:()=>Ga,arrayFrom:()=>Os,arrayIsEqualTo:()=>Jp,arrayIsHomogeneous:()=>Ipe,arrayIsSorted:()=>jW,arrayOf:()=>Uce,arrayReverseIterator:()=>Lo,arrayToMap:()=>CP,arrayToMultiMap:()=>h3,arrayToNumericMap:()=>Jce,arraysEqual:()=>Ub,assertType:()=>uOe,assign:()=>Mx,assignHelper:()=>pde,asyncDelegator:()=>mde,asyncGeneratorHelper:()=>dde,asyncSuperHelper:()=>wj,asyncValues:()=>gde,attachFileToDiagnostics:()=>vA,awaitHelper:()=>yO,awaiterHelper:()=>yde,base64decode:()=>Yfe,base64encode:()=>$fe,binarySearch:()=>gv,binarySearchKey:()=>UC,bindSourceFile:()=>Pge,breakIntoCharacterSpans:()=>bve,breakIntoWordSpans:()=>Eve,buildLinkParts:()=>z0e,buildOpts:()=>IM,buildOverload:()=>Hqe,bundlerModuleNameResolver:()=>gge,canBeConvertedToAsync:()=>NZ,canHaveDecorators:()=>bE,canHaveExportModifier:()=>rM,canHaveFlowNode:()=>PR,canHaveIllegalDecorators:()=>wY,canHaveIllegalModifiers:()=>gme,canHaveIllegalType:()=>O4e,canHaveIllegalTypeParameters:()=>mme,canHaveJSDoc:()=>NR,canHaveLocals:()=>Mh,canHaveModifiers:()=>Im,canHaveSymbol:()=>Qm,canIncludeBindAndCheckDiagnsotics:()=>tM,canJsonReportNoInputFiles:()=>BO,canProduceDiagnostics:()=>qB,canUsePropertyAccess:()=>J$,canWatchAffectingLocation:()=>pye,canWatchAtTypes:()=>fye,canWatchDirectoryOrFile:()=>aU,cartesianProduct:()=>ele,cast:()=>ao,chainBundle:()=>ag,chainDiagnosticMessages:()=>Bs,changeAnyExtension:()=>A3,changeCompilerHostLikeToUseCache:()=>i6,changeExtension:()=>Y1,changeFullExtension:()=>vue,changesAffectModuleResolution:()=>H5,changesAffectingProgramStructure:()=>T_e,characterToRegularExpressionFlag:()=>NG,childIsDecorated:()=>Nw,classElementOrClassElementParameterIsDecorated:()=>kH,classHasClassThisAssignment:()=>BK,classHasDeclaredOrExplicitlyAssignedName:()=>UK,classHasExplicitlyAssignedName:()=>UB,classOrConstructorParameterIsDecorated:()=>Av,classPrivateFieldGetHelper:()=>Dde,classPrivateFieldInHelper:()=>wde,classPrivateFieldSetHelper:()=>Ide,classicNameResolver:()=>Ege,classifier:()=>W1e,cleanExtendedConfigCache:()=>XB,clear:()=>$m,clearMap:()=>qf,clearSharedExtendedConfigFileWatcher:()=>ZK,climbPastPropertyAccess:()=>DU,climbPastPropertyOrElementAccess:()=>g0e,clone:()=>qce,cloneCompilerOptions:()=>NQ,closeFileWatcher:()=>Dm,closeFileWatcherOf:()=>Dd,codefix:()=>P_,collapseTextChangeRangesAcrossMultipleVersions:()=>Rue,collectExternalModuleInfo:()=>MK,combine:()=>Ss,combinePaths:()=>ii,commandLineOptionOfCustomType:()=>Vme,commentPragmas:()=>g5,commonOptionsWithBuild:()=>cB,commonPackageFolders:()=>gpe,compact:()=>un,compareBooleans:()=>XS,compareDataObjects:()=>h$,compareDiagnostics:()=>eO,compareDiagnosticsSkipRelatedInformation:()=>X9,compareEmitHelpers:()=>ade,compareNumberOfDirectorySeparators:()=>ZR,comparePaths:()=>f0,comparePathsCaseInsensitive:()=>OOe,comparePathsCaseSensitive:()=>wOe,comparePatternKeys:()=>yK,compareProperties:()=>Kce,compareStringsCaseInsensitive:()=>v3,compareStringsCaseInsensitiveEslintCompatible:()=>Gce,compareStringsCaseSensitive:()=>u_,compareStringsCaseSensitiveUI:()=>S3,compareTextSpans:()=>a5,compareValues:()=>tc,compileOnSaveCommandLineOption:()=>oB,compilerOptionsAffectDeclarationPath:()=>dpe,compilerOptionsAffectEmit:()=>ppe,compilerOptionsAffectSemanticDiagnostics:()=>fpe,compilerOptionsDidYouMeanDiagnostics:()=>fB,compilerOptionsIndicateEsModules:()=>LQ,compose:()=>cOe,computeCommonSourceDirectoryOfFilenames:()=>Jhe,computeLineAndCharacterOfPosition:()=>DP,computeLineOfPosition:()=>sw,computeLineStarts:()=>HC,computePositionOfLineAndCharacter:()=>x5,computeSignature:()=>oye,computeSignatureWithDiagnostics:()=>TX,computeSuggestionDiagnostics:()=>AZ,computedOptions:()=>Zl,concatenate:()=>ds,concatenateDiagnosticMessageChains:()=>cpe,configDirTemplateSubstitutionOptions:()=>Bme,configDirTemplateSubstitutionWatchOptions:()=>Ume,consumesNodeCoreModules:()=>cV,contains:()=>xs,containsIgnoredPath:()=>_O,containsObjectRestOrSpread:()=>kM,containsParseError:()=>JP,containsPath:()=>Cm,convertCompilerOptionsForTelemetry:()=>nge,convertCompilerOptionsFromJson:()=>q3e,convertJsonOption:()=>g2,convertToBase64:()=>Hfe,convertToJson:()=>RM,convertToObject:()=>Kme,convertToOptionsWithAbsolutePaths:()=>gB,convertToRelativePath:()=>nw,convertToTSConfig:()=>eK,convertTypeAcquisitionFromJson:()=>z3e,copyComments:()=>b2,copyEntries:()=>$5,copyLeadingComments:()=>ZN,copyProperties:()=>JW,copyTrailingAsLeadingComments:()=>k8,copyTrailingComments:()=>v6,couldStartTrivia:()=>xue,countWhere:()=>yy,createAbstractBuilder:()=>WMe,createAccessorPropertyBackingField:()=>MY,createAccessorPropertyGetRedirector:()=>xme,createAccessorPropertySetRedirector:()=>Cme,createBaseNodeFactory:()=>qpe,createBinaryExpressionTrampoline:()=>nB,createBindingHelper:()=>Ij,createBuildInfo:()=>HB,createBuilderProgram:()=>bX,createBuilderProgramUsingProgramBuildInfo:()=>uye,createBuilderStatusReporter:()=>gU,createCacheWithRedirects:()=>uK,createCacheableExportInfoMap:()=>dZ,createCachedDirectoryStructureHost:()=>YB,createClassNamedEvaluationHelperBlock:()=>she,createClassThisAssignmentBlock:()=>nhe,createClassifier:()=>xLe,createCommentDirectivesMap:()=>k_e,createCompilerDiagnostic:()=>Pc,createCompilerDiagnosticForInvalidCustomType:()=>Jme,createCompilerDiagnosticFromMessageChain:()=>K9,createCompilerHost:()=>qhe,createCompilerHostFromProgramHost:()=>JX,createCompilerHostWorker:()=>QB,createDetachedDiagnostic:()=>yA,createDiagnosticCollection:()=>qw,createDiagnosticForFileFromMessageChain:()=>bH,createDiagnosticForNode:()=>mn,createDiagnosticForNodeArray:()=>zP,createDiagnosticForNodeArrayFromMessageChain:()=>iR,createDiagnosticForNodeFromMessageChain:()=>Ay,createDiagnosticForNodeInSourceFile:()=>bd,createDiagnosticForRange:()=>V_e,createDiagnosticMessageChainFromDiagnostic:()=>U_e,createDiagnosticReporter:()=>nk,createDocumentPositionMapper:()=>Wge,createDocumentRegistry:()=>_ve,createDocumentRegistryInternal:()=>SZ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>AX,createEmitHelperFactory:()=>ode,createEmptyExports:()=>SM,createEvaluator:()=>Upe,createExpressionForJsxElement:()=>cme,createExpressionForJsxFragment:()=>lme,createExpressionForObjectLiteralElementLike:()=>ume,createExpressionForPropertyName:()=>AY,createExpressionFromEntityName:()=>TM,createExternalHelpersImportDeclarationIfNeeded:()=>NY,createFileDiagnostic:()=>bu,createFileDiagnosticFromMessageChain:()=>i9,createFlowNode:()=>zh,createForOfBindingStatement:()=>CY,createFutureSourceFile:()=>gV,createGetCanonicalFileName:()=>__,createGetIsolatedDeclarationErrors:()=>Nhe,createGetSourceFile:()=>iX,createGetSymbolAccessibilityDiagnosticForNode:()=>jv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Phe,createGetSymbolWalker:()=>Nge,createIncrementalCompilerHost:()=>mU,createIncrementalProgram:()=>Tye,createJsxFactoryExpression:()=>xY,createLanguageService:()=>J1e,createLanguageServiceSourceFile:()=>RV,createMemberAccessForPropertyName:()=>d2,createModeAwareCache:()=>wN,createModeAwareCacheKey:()=>qO,createModuleNotFoundChain:()=>Y5,createModuleResolutionCache:()=>ON,createModuleResolutionLoader:()=>fX,createModuleResolutionLoaderUsingGlobalCache:()=>hye,createModuleSpecifierResolutionHost:()=>ak,createMultiMap:()=>vd,createNameResolver:()=>H$,createNodeConverters:()=>Gpe,createNodeFactory:()=>oM,createOptionNameMap:()=>uB,createOverload:()=>pte,createPackageJsonImportFilter:()=>eD,createPackageJsonInfo:()=>oZ,createParenthesizerRules:()=>zpe,createPatternMatcher:()=>gve,createPrinter:()=>aS,createPrinterWithDefaults:()=>Fhe,createPrinterWithRemoveComments:()=>v2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>jhe,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>$B,createProgram:()=>r8,createProgramHost:()=>qX,createPropertyNameNodeForIdentifierOrLiteral:()=>Sj,createQueue:()=>y3,createRange:()=>Ed,createRedirectedBuilderProgram:()=>CX,createResolutionCache:()=>PX,createRuntimeTypeSerializer:()=>_he,createScanner:()=>Ey,createSemanticDiagnosticsBuilderProgram:()=>zMe,createSet:()=>qW,createSolutionBuilder:()=>Aye,createSolutionBuilderHost:()=>xye,createSolutionBuilderWithWatch:()=>kye,createSolutionBuilderWithWatchHost:()=>Cye,createSortedArray:()=>Rx,createSourceFile:()=>$A,createSourceMapGenerator:()=>Bge,createSourceMapSource:()=>_4e,createSuperAccessVariableStatement:()=>JB,createSymbolTable:()=>po,createSymlinkCache:()=>P$,createSyntacticTypeNodeBuilder:()=>$ye,createSystemWatchFunctions:()=>gue,createTextChange:()=>v8,createTextChangeFromStartLength:()=>zU,createTextChangeRange:()=>M3,createTextRangeFromNode:()=>wQ,createTextRangeFromSpan:()=>qU,createTextSpan:()=>Gu,createTextSpanFromBounds:()=>wl,createTextSpanFromNode:()=>gf,createTextSpanFromRange:()=>lS,createTextSpanFromStringLiteralLikeContent:()=>IQ,createTextWriter:()=>UR,createTokenRange:()=>p$,createTypeChecker:()=>Fge,createTypeReferenceDirectiveResolutionCache:()=>CB,createTypeReferenceResolutionLoader:()=>ZB,createWatchCompilerHost:()=>t8e,createWatchCompilerHostOfConfigFile:()=>zX,createWatchCompilerHostOfFilesAndCompilerOptions:()=>WX,createWatchFactory:()=>VX,createWatchHost:()=>UX,createWatchProgram:()=>GX,createWatchStatusReporter:()=>DX,createWriteFileMeasuringIO:()=>sX,declarationNameToString:()=>Ya,decodeMappings:()=>wK,decodedTextSpanIntersectsWith:()=>R3,decorateHelper:()=>cde,deduplicate:()=>w1,defaultIncludeSpec:()=>nK,defaultInitCompilerOptions:()=>HY,defaultMaximumTruncationLength:()=>bw,diagnosticCategoryName:()=>Bx,diagnosticToString:()=>IE,diagnosticsEqualityComparer:()=>Q9,directoryProbablyExists:()=>tg,directorySeparator:()=>bc,displayPart:()=>zf,displayPartsToString:()=>U8,disposeEmitNodes:()=>K$,disposeResourcesHelper:()=>Rde,documentSpansEqual:()=>qQ,dumpTracingLegend:()=>fle,elementAt:()=>Dl,elideNodes:()=>Eme,emitComments:()=>Lfe,emitDetachedComments:()=>Ffe,emitFiles:()=>XK,emitFilesAndReportErrors:()=>_U,emitFilesAndReportErrorsAndGetExitStatus:()=>BX,emitModuleKindIsNonNodeESM:()=>ej,emitNewLineBeforeLeadingCommentOfPosition:()=>Mfe,emitNewLineBeforeLeadingComments:()=>Ofe,emitNewLineBeforeLeadingCommentsOfPosition:()=>Rfe,emitResolverSkipsTypeChecking:()=>KK,emitSkippedWithNoDiagnostics:()=>yX,emptyArray:()=>ve,emptyFileSystemEntries:()=>R$,emptyMap:()=>lr,emptyOptions:()=>am,emptySet:()=>Rr,endsWith:()=>Wc,ensurePathIsNonModuleName:()=>Vx,ensureScriptKind:()=>uj,ensureTrailingDirectorySeparator:()=>vu,entityNameToString:()=>lp,enumerateInsertsAndDeletes:()=>_5,equalOwnProperties:()=>Vce,equateStringsCaseInsensitive:()=>KS,equateStringsCaseSensitive:()=>Lx,equateValues:()=>hv,esDecorateHelper:()=>_de,escapeJsxAttributeString:()=>QH,escapeLeadingUnderscores:()=>Uc,escapeNonAsciiString:()=>D9,escapeSnippetText:()=>_E,escapeString:()=>Uh,escapeTemplateSubstitution:()=>KH,evaluatorResult:()=>fu,every:()=>Oi,executeCommandLine:()=>L8e,expandPreOrPostfixIncrementOrDecrementExpression:()=>Xj,explainFiles:()=>RX,explainIfFileIsRedirectAndImpliedFormat:()=>MX,exportAssignmentIsAlias:()=>eN,exportStarHelper:()=>Nde,expressionResultIsUnused:()=>Ope,extend:()=>o5,extendsHelper:()=>vde,extensionFromPath:()=>oO,extensionIsTS:()=>gj,extensionsNotSupportingExtensionlessResolution:()=>dj,externalHelpersModuleNameText:()=>oT,factory:()=>U,fileExtensionIs:()=>wc,fileExtensionIsOneOf:()=>Il,fileIncludeReasonToDiagnostics:()=>jX,fileShouldUseJavaScriptRequire:()=>pZ,filter:()=>ti,filterMutate:()=>JI,filterSemanticDiagnostics:()=>nU,find:()=>jn,findAncestor:()=>Dr,findBestPatternMatch:()=>$W,findChildOfKind:()=>Ma,findComputedPropertyNameCacheAssignment:()=>iB,findConfigFile:()=>rX,findConstructorDeclaration:()=>sM,findContainingList:()=>MU,findDiagnosticForNode:()=>rve,findFirstNonJsxWhitespaceToken:()=>T0e,findIndex:()=>Va,findLast:()=>xm,findLastIndex:()=>dv,findListItemInfo:()=>S0e,findMap:()=>UI,findModifier:()=>KN,findNextToken:()=>NE,findPackageJson:()=>eve,findPackageJsons:()=>sZ,findPrecedingMatchingToken:()=>VU,findPrecedingToken:()=>su,findSuperStatementIndexPath:()=>FB,findTokenOnLeftOfPosition:()=>jU,findUseStrictPrologue:()=>PY,first:()=>Fo,firstDefined:()=>di,firstDefinedIterator:()=>ra,firstIterator:()=>g3,firstOrOnly:()=>uZ,firstOrUndefined:()=>Aa,firstOrUndefinedIterator:()=>Ph,fixupCompilerOptions:()=>DZ,flatMap:()=>To,flatMapIterator:()=>p3,flatMapToMutable:()=>L_,flatten:()=>rf,flattenCommaList:()=>Ame,flattenDestructuringAssignment:()=>y2,flattenDestructuringBinding:()=>CE,flattenDiagnosticMessageText:()=>Qg,forEach:()=>Et,forEachAncestor:()=>b_e,forEachAncestorDirectory:()=>Am,forEachChild:()=>qs,forEachChildRecursively:()=>HA,forEachEmittedFile:()=>GK,forEachEnclosingBlockScopeContainer:()=>F_e,forEachEntry:()=>Iu,forEachExternalModuleToImportFrom:()=>gZ,forEachImportClauseDeclaration:()=>ffe,forEachKey:()=>m0,forEachLeadingCommentRange:()=>N3,forEachNameInAccessChainWalkingLeft:()=>npe,forEachNameOfDefaultExport:()=>hZ,forEachPropertyAssignment:()=>HP,forEachResolvedProjectReference:()=>dX,forEachReturnStatement:()=>Cv,forEachRight:()=>pi,forEachTrailingCommentRange:()=>D3,forEachTsConfigPropArray:()=>lR,forEachUnique:()=>WQ,forEachYieldExpression:()=>H_e,forSomeAncestorDirectory:()=>z6e,formatColorAndReset:()=>AE,formatDiagnostic:()=>oX,formatDiagnostics:()=>bMe,formatDiagnosticsWithColorAndContext:()=>Hhe,formatGeneratedName:()=>xT,formatGeneratedNamePart:()=>PN,formatLocation:()=>aX,formatMessage:()=>SA,formatStringFromArgs:()=>Dy,formatting:()=>zl,fullTripleSlashAMDReferencePathRegEx:()=>G_e,fullTripleSlashReferencePathRegEx:()=>W_e,generateDjb2Hash:()=>tw,generateTSConfig:()=>Qme,generatorHelper:()=>Ade,getAdjustedReferenceLocation:()=>EQ,getAdjustedRenameLocation:()=>FU,getAliasDeclarationFromName:()=>BH,getAllAccessorDeclarations:()=>W1,getAllDecoratorsOfClass:()=>FK,getAllDecoratorsOfClassElement:()=>BB,getAllJSDocTags:()=>w5,getAllJSDocTagsOfKind:()=>t6e,getAllKeys:()=>iOe,getAllProjectOutputs:()=>GB,getAllSuperTypeNodes:()=>Fw,getAllowJSCompilerOption:()=>H1,getAllowSyntheticDefaultImports:()=>TA,getAncestor:()=>pT,getAnyExtensionFromPath:()=>NP,getAreDeclarationMapsEnabled:()=>Z9,getAssignedExpandoInitializer:()=>sA,getAssignedName:()=>D5,getAssignedNameOfIdentifier:()=>ZO,getAssignmentDeclarationKind:()=>ll,getAssignmentDeclarationPropertyAccessKind:()=>ER,getAssignmentTargetKind:()=>fT,getAutomaticTypeDirectiveNames:()=>EB,getBaseFileName:()=>Ul,getBinaryOperatorPrecedence:()=>jR,getBuildInfo:()=>QK,getBuildInfoFileVersionMap:()=>xX,getBuildInfoText:()=>Mhe,getBuildOrderFromAnyBuildOrder:()=>o8,getBuilderCreationParameters:()=>sU,getBuilderFileEmit:()=>cS,getCanonicalDiagnostic:()=>J_e,getCheckFlags:()=>ul,getClassExtendsHeritageElement:()=>nE,getClassLikeDeclarationOfSymbol:()=>T0,getCombinedLocalAndExportSymbolFlags:()=>lN,getCombinedModifierFlags:()=>eT,getCombinedNodeFlags:()=>p0,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>MG,getCommentRange:()=>zg,getCommonSourceDirectory:()=>n6,getCommonSourceDirectoryOfConfig:()=>rk,getCompilerOptionValue:()=>nj,getCompilerOptionsDiffValue:()=>Xme,getConditions:()=>sS,getConfigFileParsingDiagnostics:()=>kE,getConstantValue:()=>Qpe,getContainerFlags:()=>SK,getContainerNode:()=>T2,getContainingClass:()=>Lu,getContainingClassExcludingClassDecorators:()=>f9,getContainingClassStaticBlock:()=>nfe,getContainingFunction:()=>Ip,getContainingFunctionDeclaration:()=>rfe,getContainingFunctionOrClassStaticBlock:()=>_9,getContainingNodeArray:()=>Rpe,getContainingObjectLiteralElement:()=>V8,getContextualTypeFromParent:()=>eV,getContextualTypeFromParentOrAncestorTypeNode:()=>LU,getCurrentTime:()=>s8,getDeclarationDiagnostics:()=>Dhe,getDeclarationEmitExtensionForPath:()=>O9,getDeclarationEmitOutputFilePath:()=>Pfe,getDeclarationEmitOutputFilePathWorker:()=>w9,getDeclarationFileExtension:()=>BY,getDeclarationFromName:()=>Lw,getDeclarationModifierFlagsFromSymbol:()=>Cd,getDeclarationOfKind:()=>kc,getDeclarationsOfKind:()=>v_e,getDeclaredExpandoInitializer:()=>ww,getDecorators:()=>F1,getDefaultCompilerOptions:()=>OV,getDefaultFormatCodeSettings:()=>AU,getDefaultLibFileName:()=>w3,getDefaultLibFilePath:()=>q1e,getDefaultLikeExportInfo:()=>hV,getDefaultLikeExportNameFromDeclaration:()=>uV,getDiagnosticText:()=>wf,getDiagnosticsWithinSpan:()=>nve,getDirectoryPath:()=>yi,getDirectoryToWatchFailedLookupLocation:()=>kX,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>mye,getDocumentPositionMapper:()=>CZ,getDocumentSpansEqualityComparer:()=>zQ,getESModuleInterop:()=>Iy,getEditsForFileRename:()=>pve,getEffectiveBaseTypeNode:()=>Lg,getEffectiveConstraintOfTypeParameter:()=>MP,getEffectiveContainerForJSDocTemplateTag:()=>C9,getEffectiveImplementsTypeNodes:()=>tN,getEffectiveInitializer:()=>vR,getEffectiveJSDocHost:()=>_T,getEffectiveModifierFlags:()=>V_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Vfe,getEffectiveModifierFlagsNoCache:()=>Jfe,getEffectiveReturnTypeNode:()=>_p,getEffectiveSetAccessorTypeAnnotationNode:()=>wfe,getEffectiveTypeAnnotationNode:()=>Vl,getEffectiveTypeParameterDeclarations:()=>j1,getEffectiveTypeRoots:()=>JO,getElementOrPropertyAccessArgumentExpressionOrName:()=>x9,getElementOrPropertyAccessName:()=>g0,getElementsOfBindingOrAssignmentPattern:()=>kN,getEmitDeclarations:()=>Hp,getEmitFlags:()=>Ko,getEmitHelpers:()=>Dj,getEmitModuleDetectionKind:()=>lpe,getEmitModuleKind:()=>J_,getEmitModuleResolutionKind:()=>cf,getEmitScriptTarget:()=>Qo,getEmitStandardClassFields:()=>A$,getEnclosingBlockScopeContainer:()=>Zm,getEnclosingContainer:()=>n9,getEncodedSemanticClassifications:()=>yZ,getEncodedSyntacticClassifications:()=>vZ,getEndLinePosition:()=>Z3,getEntityNameFromTypeNode:()=>fR,getEntrypointsFromPackageJsonInfo:()=>mK,getErrorCountForSummary:()=>lU,getErrorSpanForNode:()=>Yx,getErrorSummaryText:()=>wX,getEscapedTextOfIdentifierOrLiteral:()=>Uw,getEscapedTextOfJsxAttributeName:()=>dO,getEscapedTextOfJsxNamespacedName:()=>CA,getExpandoInitializer:()=>lT,getExportAssignmentExpression:()=>UH,getExportInfoMap:()=>O8,getExportNeedsImportStarHelper:()=>Gge,getExpressionAssociativity:()=>HH,getExpressionPrecedence:()=>Jw,getExternalHelpersModuleName:()=>eB,getExternalModuleImportEqualsDeclarationExpression:()=>Dw,getExternalModuleName:()=>oA,getExternalModuleNameFromDeclaration:()=>Afe,getExternalModuleNameFromPath:()=>t$,getExternalModuleNameLiteral:()=>GA,getExternalModuleRequireArgument:()=>NH,getFallbackOptions:()=>QM,getFileEmitOutput:()=>Khe,getFileMatcherPatterns:()=>lj,getFileNamesFromConfigSpecs:()=>UO,getFileWatcherEventKind:()=>SG,getFilesInErrorForSummary:()=>uU,getFirstConstructorWithBody:()=>Py,getFirstIdentifier:()=>pp,getFirstNonSpaceCharacterPosition:()=>H0e,getFirstProjectOutput:()=>YK,getFixableErrorSpanExpression:()=>cZ,getFormatCodeSettingsForWriting:()=>dV,getFullWidth:()=>Q3,getFunctionFlags:()=>Rl,getHeritageClause:()=>RR,getHostSignatureFromJSDoc:()=>uT,getIdentifierAutoGenerate:()=>d4e,getIdentifierGeneratedImportReference:()=>ide,getIdentifierTypeArguments:()=>i2,getImmediatelyInvokedFunctionExpression:()=>Qb,getImpliedNodeFormatForFile:()=>t8,getImpliedNodeFormatForFileWorker:()=>rU,getImportNeedsImportDefaultHelper:()=>RK,getImportNeedsImportStarHelper:()=>MB,getIndentSize:()=>sN,getIndentString:()=>I9,getInferredLibraryNameResolveFrom:()=>tU,getInitializedVariables:()=>Xw,getInitializerOfBinaryExpression:()=>wH,getInitializerOfBindingOrAssignmentElement:()=>xM,getInterfaceBaseTypeNodes:()=>jw,getInternalEmitFlags:()=>Pm,getInvokedExpression:()=>m9,getIsolatedModules:()=>Ad,getJSDocAugmentsTag:()=>zue,getJSDocClassTag:()=>jG,getJSDocCommentRanges:()=>xH,getJSDocCommentsAndTags:()=>RH,getJSDocDeprecatedTag:()=>BG,getJSDocDeprecatedTagNoCache:()=>Xue,getJSDocEnumTag:()=>UG,getJSDocHost:()=>tE,getJSDocImplementsTags:()=>Wue,getJSDocOverloadTags:()=>LH,getJSDocOverrideTagNoCache:()=>Kue,getJSDocParameterTags:()=>RP,getJSDocParameterTagsNoCache:()=>Uue,getJSDocPrivateTag:()=>KOe,getJSDocPrivateTagNoCache:()=>Hue,getJSDocProtectedTag:()=>XOe,getJSDocProtectedTagNoCache:()=>$ue,getJSDocPublicTag:()=>YOe,getJSDocPublicTagNoCache:()=>Gue,getJSDocReadonlyTag:()=>QOe,getJSDocReadonlyTagNoCache:()=>Yue,getJSDocReturnTag:()=>Que,getJSDocReturnType:()=>F3,getJSDocRoot:()=>ZP,getJSDocSatisfiesExpressionType:()=>z$,getJSDocSatisfiesTag:()=>VG,getJSDocTags:()=>nT,getJSDocTagsNoCache:()=>e6e,getJSDocTemplateTag:()=>ZOe,getJSDocThisTag:()=>I5,getJSDocType:()=>rT,getJSDocTypeAliasName:()=>IY,getJSDocTypeAssertionType:()=>MO,getJSDocTypeParameterDeclarations:()=>j9,getJSDocTypeParameterTags:()=>Vue,getJSDocTypeParameterTagsNoCache:()=>Jue,getJSDocTypeTag:()=>tT,getJSXImplicitImportBase:()=>sj,getJSXRuntimeImport:()=>oj,getJSXTransformEnabled:()=>ij,getKeyForCompilerOptions:()=>lK,getLanguageVariant:()=>YR,getLastChild:()=>y$,getLeadingCommentRanges:()=>Ty,getLeadingCommentRangesOfNode:()=>EH,getLeftmostAccessExpression:()=>uN,getLeftmostExpression:()=>_N,getLibraryNameFromLibFileName:()=>mX,getLineAndCharacterOfPosition:()=>Eo,getLineInfo:()=>IK,getLineOfLocalPosition:()=>zw,getLineOfLocalPositionFromLineMap:()=>r2,getLineStartPositionForPosition:()=>cm,getLineStarts:()=>vy,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>epe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Zfe,getLinesBetweenPositions:()=>ow,getLinesBetweenRangeEndAndRangeStart:()=>d$,getLinesBetweenRangeEndPositions:()=>q6e,getLiteralText:()=>N_e,getLocalNameForExternalImport:()=>AN,getLocalSymbolForExportDefault:()=>$w,getLocaleSpecificMessage:()=>Ls,getLocaleTimeString:()=>i8,getMappedContextSpan:()=>GQ,getMappedDocumentSpan:()=>KU,getMappedLocation:()=>g6,getMatchedFileSpec:()=>LX,getMatchedIncludeSpec:()=>FX,getMeaningFromDeclaration:()=>PU,getMeaningFromLocation:()=>S2,getMembersOfDeclaration:()=>$_e,getModeForFileReference:()=>ZM,getModeForResolutionAtIndex:()=>$he,getModeForUsageLocation:()=>lX,getModifiedTime:()=>WC,getModifiers:()=>qb,getModuleInstanceState:()=>D0,getModuleNameStringLiteralAt:()=>n8,getModuleSpecifierEndingPreference:()=>xpe,getModuleSpecifierResolverHost:()=>FQ,getNameForExportedSymbol:()=>lV,getNameFromImportAttribute:()=>xj,getNameFromIndexInfo:()=>j_e,getNameFromPropertyName:()=>T8,getNameOfAccessExpression:()=>S$,getNameOfCompilerOptionValue:()=>tK,getNameOfDeclaration:()=>Ns,getNameOfExpando:()=>DH,getNameOfJSDocTypedef:()=>Bue,getNameOfScriptTarget:()=>rj,getNameOrArgument:()=>bR,getNameTable:()=>tee,getNamesForExportedSymbol:()=>ive,getNamespaceDeclarationNode:()=>XP,getNewLineCharacter:()=>wv,getNewLineKind:()=>w8,getNewLineOrDefaultFromHost:()=>Jv,getNewTargetContainer:()=>sfe,getNextJSDocCommentLocation:()=>MH,getNodeChildren:()=>bY,getNodeForGeneratedName:()=>AM,getNodeId:()=>Sa,getNodeKind:()=>PE,getNodeModifiers:()=>p6,getNodeModulePathParts:()=>Tj,getNonAssignedNameOfDeclaration:()=>N5,getNonAssignmentOperatorForCompoundAssignment:()=>KO,getNonAugmentationDeclaration:()=>gH,getNonDecoratorTokenPosOfNode:()=>uH,getNormalizedAbsolutePath:()=>Cs,getNormalizedAbsolutePathWithoutRoot:()=>xG,getNormalizedPathComponents:()=>C3,getObjectFlags:()=>Qn,getOperator:()=>YH,getOperatorAssociativity:()=>$H,getOperatorPrecedence:()=>FR,getOptionFromName:()=>YY,getOptionsForLibraryResolution:()=>_K,getOptionsNameMap:()=>DN,getOrCreateEmitNode:()=>d_,getOrCreateExternalHelpersModuleNameIfNeeded:()=>dme,getOrUpdate:()=>mv,getOriginalNode:()=>Bc,getOriginalNodeId:()=>mf,getOriginalSourceFile:()=>w6e,getOutputDeclarationFileName:()=>BN,getOutputDeclarationFileNameWorker:()=>HK,getOutputExtension:()=>WB,getOutputFileNames:()=>SMe,getOutputJSFileNameWorker:()=>$K,getOutputPathsFor:()=>r6,getOutputPathsForBundle:()=>zB,getOwnEmitOutputFilePath:()=>kfe,getOwnKeys:()=>Pg,getOwnValues:()=>VC,getPackageJsonInfo:()=>DT,getPackageJsonTypesVersionsPaths:()=>bB,getPackageJsonsVisibleToFile:()=>tve,getPackageNameFromTypesPackageName:()=>GO,getPackageScopeForPath:()=>WO,getParameterSymbolFromJSDoc:()=>DR,getParameterTypeNode:()=>s4e,getParentNodeInSpan:()=>E8,getParseTreeNode:()=>Ps,getParsedCommandLineOfConfigFile:()=>wM,getPathComponents:()=>yu,getPathComponentsRelativeTo:()=>kG,getPathFromPathComponents:()=>_0,getPathUpdater:()=>bZ,getPathsBasePath:()=>R9,getPatternFromSpec:()=>vpe,getPendingEmitKind:()=>qN,getPositionOfLineAndCharacter:()=>k3,getPossibleGenericSignatures:()=>CQ,getPossibleOriginalInputExtensionForExtension:()=>Nfe,getPossibleTypeArgumentsInfo:()=>AQ,getPreEmitDiagnostics:()=>TMe,getPrecedingNonSpaceCharacterPosition:()=>QU,getPrivateIdentifier:()=>jK,getProperties:()=>LK,getProperty:()=>s5,getPropertyArrayElementValue:()=>tfe,getPropertyAssignmentAliasLikeExpression:()=>vfe,getPropertyNameForPropertyNameNode:()=>e2,getPropertyNameForUniqueESSymbol:()=>D6e,getPropertyNameFromType:()=>nm,getPropertyNameOfBindingOrAssignmentElement:()=>DY,getPropertySymbolFromBindingElement:()=>YU,getPropertySymbolsFromContextualType:()=>MV,getQuoteFromPreference:()=>BQ,getQuotePreference:()=>td,getRangesWhere:()=>zI,getRefactorContextSpan:()=>ck,getReferencedFileLocation:()=>o6,getRegexFromPattern:()=>$1,getRegularExpressionForWildcard:()=>rO,getRegularExpressionsForWildcards:()=>aj,getRelativePathFromDirectory:()=>Km,getRelativePathFromFile:()=>iw,getRelativePathToDirectoryOrUrl:()=>GC,getRenameLocation:()=>A8,getReplacementSpanForContextToken:()=>DQ,getResolutionDiagnostic:()=>SX,getResolutionModeOverride:()=>UN,getResolveJsonModule:()=>cE,getResolvePackageJsonExports:()=>x$,getResolvePackageJsonImports:()=>C$,getResolvedExternalModuleName:()=>e$,getRestIndicatorOfBindingOrAssignmentElement:()=>tB,getRestParameterElementType:()=>CH,getRightMostAssignedExpression:()=>SR,getRootDeclaration:()=>jg,getRootDirectoryOfResolutionCache:()=>gye,getRootLength:()=>Oh,getRootPathSplitLength:()=>YMe,getScriptKind:()=>XQ,getScriptKindFromFileName:()=>_j,getScriptTargetFeatures:()=>_H,getSelectedEffectiveModifierFlags:()=>pA,getSelectedSyntacticModifierFlags:()=>Bfe,getSemanticClassifications:()=>lve,getSemanticJsxChildren:()=>nN,getSetAccessorTypeAnnotationNode:()=>Dfe,getSetAccessorValueParameter:()=>aN,getSetExternalModuleIndicator:()=>KR,getShebang:()=>A5,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>OH,getSingleVariableOfVariableStatement:()=>lA,getSnapshotText:()=>ok,getSnippetElement:()=>X$,getSourceFileOfModule:()=>X5,getSourceFileOfNode:()=>Jr,getSourceFilePathInNewDir:()=>L9,getSourceFilePathInNewDirWorker:()=>F9,getSourceFileVersionAsHashFromText:()=>fU,getSourceFilesToEmit:()=>M9,getSourceMapRange:()=>Rv,getSourceMapper:()=>Cve,getSourceTextOfNodeFromSourceFile:()=>$b,getSpanOfTokenAtPosition:()=>jh,getSpellingSuggestion:()=>Fx,getStartPositionOfLine:()=>q1,getStartPositionOfRange:()=>Kw,getStartsOnNewLine:()=>gO,getStaticPropertiesAndClassStaticBlock:()=>jB,getStrictOptionValue:()=>q_,getStringComparer:()=>AP,getSubPatternFromSpec:()=>cj,getSuperCallFromStatement:()=>LB,getSuperContainer:()=>uR,getSupportedCodeFixes:()=>ZZ,getSupportedExtensions:()=>iO,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>QR,getSwitchedType:()=>rZ,getSymbolId:()=>Po,getSymbolNameForPrivateIdentifier:()=>MR,getSymbolParentOrFail:()=>_V,getSymbolTarget:()=>QQ,getSyntacticClassifications:()=>uve,getSyntacticModifierFlags:()=>Dv,getSyntacticModifierFlagsNoCache:()=>o$,getSynthesizedDeepClone:()=>ka,getSynthesizedDeepCloneWithReplacements:()=>C8,getSynthesizedDeepClones:()=>DE,getSynthesizedDeepClonesWithReplacements:()=>ZQ,getSyntheticLeadingComments:()=>gN,getSyntheticTrailingComments:()=>uM,getTargetLabel:()=>IU,getTargetOfBindingOrAssignmentElement:()=>iS,getTemporaryModuleResolutionState:()=>zO,getTextOfConstantValue:()=>D_e,getTextOfIdentifierOrLiteral:()=>Zd,getTextOfJSDocComment:()=>B3,getTextOfJsxAttributeName:()=>iM,getTextOfJsxNamespacedName:()=>mO,getTextOfNode:()=>Hc,getTextOfNodeFromSourceText:()=>Cw,getTextOfPropertyName:()=>rA,getThisContainer:()=>of,getThisParameter:()=>iE,getTokenAtPosition:()=>Ki,getTokenPosOfNode:()=>aT,getTokenSourceMapRange:()=>f4e,getTouchingPropertyName:()=>Of,getTouchingToken:()=>$N,getTrailingCommentRanges:()=>L1,getTrailingSemicolonDeferringWriter:()=>ZH,getTransformFlagsSubtreeExclusions:()=>Ype,getTransformers:()=>Ohe,getTsBuildInfoEmitOutputFilePath:()=>Bv,getTsConfigObjectLiteralExpression:()=>Pw,getTsConfigPropArrayElementValue:()=>u9,getTypeAnnotationNode:()=>Ife,getTypeArgumentOrTypeParameterList:()=>N0e,getTypeKeywordOfTypeOnlyImport:()=>JQ,getTypeNode:()=>rde,getTypeNodeIfAccessible:()=>T6,getTypeParameterFromJsDoc:()=>pfe,getTypeParameterOwner:()=>WOe,getTypesPackageName:()=>DB,getUILocale:()=>$ce,getUniqueName:()=>E2,getUniqueSymbolId:()=>G0e,getUseDefineForClassFields:()=>XR,getWatchErrorSummaryDiagnosticMessage:()=>IX,getWatchFactory:()=>tX,group:()=>WI,groupBy:()=>VW,guessIndentation:()=>h_e,handleNoEmitOptions:()=>vX,handleWatchOptionsConfigDirTemplateSubstitution:()=>hB,hasAbstractModifier:()=>aE,hasAccessorModifier:()=>Bg,hasAmbientModifier:()=>s$,hasChangesInResolutions:()=>aH,hasChildOfKind:()=>g8,hasContextSensitiveParameters:()=>vj,hasDecorators:()=>Gp,hasDocComment:()=>k0e,hasDynamicName:()=>y0,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>i$,hasEffectiveReadonlyModifier:()=>Ww,hasExtension:()=>PP,hasIndexSignature:()=>tZ,hasInferredType:()=>Jpe,hasInitializer:()=>bv,hasInvalidEscape:()=>XH,hasJSDocNodes:()=>Np,hasJSDocParameterTags:()=>que,hasJSFileExtension:()=>wy,hasJsonModuleEmitEnabled:()=>tj,hasOnlyExpressionInitializer:()=>Hx,hasOverrideModifier:()=>B9,hasPossibleExternalModuleReference:()=>L_e,hasProperty:()=>Ha,hasPropertyAccessExpressionWithName:()=>_8,hasQuestionToken:()=>cA,hasRecordedExternalHelpers:()=>pme,hasResolutionModeOverride:()=>Bpe,hasRestParameter:()=>nH,hasScopeMarker:()=>l_e,hasStaticModifier:()=>Jl,hasSyntacticModifier:()=>_i,hasSyntacticModifiers:()=>jfe,hasTSFileExtension:()=>EA,hasTabstop:()=>Lpe,hasTrailingDirectorySeparator:()=>yv,hasType:()=>z5,hasTypeArguments:()=>C6e,hasZeroOrOneAsteriskCharacter:()=>k$,helperString:()=>eY,hostGetCanonicalFileName:()=>Nv,hostUsesCaseSensitiveFileNames:()=>oN,idText:()=>In,identifierIsThisKeyword:()=>n$,identifierToKeywordKind:()=>Jx,identity:()=>ec,identitySourceMapConsumer:()=>OK,ignoreSourceNewlines:()=>Z$,ignoredPaths:()=>y5,importDefaultHelper:()=>Pde,importFromModuleSpecifier:()=>Rw,importStarHelper:()=>tY,indexOfAnyCharCode:()=>VI,indexOfNode:()=>qP,indicesOf:()=>Ox,inferredTypesContainingFile:()=>s6,injectClassNamedEvaluationHelperBlockIfMissing:()=>VB,injectClassThisAssignmentIfMissing:()=>ihe,insertImports:()=>VQ,insertLeadingStatement:()=>N4e,insertSorted:()=>u0,insertStatementAfterCustomPrologue:()=>$x,insertStatementAfterStandardPrologue:()=>g6e,insertStatementsAfterCustomPrologue:()=>cH,insertStatementsAfterStandardPrologue:()=>Cy,intersperse:()=>Ef,intrinsicTagNameToString:()=>W$,introducesArgumentsExoticObject:()=>Q_e,inverseJsxOptionMap:()=>DM,isAbstractConstructorSymbol:()=>tpe,isAbstractModifier:()=>Ude,isAccessExpression:()=>ac,isAccessibilityModifier:()=>PQ,isAccessor:()=>U1,isAccessorModifier:()=>Jde,isAliasSymbolDeclaration:()=>k6e,isAliasableExpression:()=>OR,isAmbientModule:()=>U_,isAmbientPropertyDeclaration:()=>yH,isAnonymousFunctionDefinition:()=>Vw,isAnyDirectorySeparator:()=>TG,isAnyImportOrBareOrAccessedRequire:()=>R_e,isAnyImportOrReExport:()=>rR,isAnyImportOrRequireStatement:()=>M_e,isAnyImportSyntax:()=>tA,isAnySupportedFileExtension:()=>n4e,isApplicableVersionedTypesKey:()=>BM,isArgumentExpressionOfElementAccess:()=>hQ,isArray:()=>Ms,isArrayBindingElement:()=>j5,isArrayBindingOrAssignmentElement:()=>G3,isArrayBindingOrAssignmentPattern:()=>XG,isArrayBindingPattern:()=>Fv,isArrayLiteralExpression:()=>Ku,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Vv,isArrayTypeNode:()=>gM,isArrowFunction:()=>fc,isAsExpression:()=>EO,isAssertClause:()=>$de,isAssertEntry:()=>T4e,isAssertionExpression:()=>sT,isAssertsKeyword:()=>jde,isAssignmentDeclaration:()=>Iw,isAssignmentExpression:()=>Tu,isAssignmentOperator:()=>v0,isAssignmentPattern:()=>Sw,isAssignmentTarget:()=>Pv,isAsteriskToken:()=>pM,isAsyncFunction:()=>Bw,isAsyncModifier:()=>SO,isAutoAccessorPropertyDeclaration:()=>Cf,isAwaitExpression:()=>eS,isAwaitKeyword:()=>oY,isBigIntLiteral:()=>fM,isBinaryExpression:()=>Dn,isBinaryOperatorToken:()=>bme,isBindableObjectDefinePropertyCall:()=>Qx,isBindableStaticAccessExpression:()=>eE,isBindableStaticElementAccessExpression:()=>E9,isBindableStaticNameExpression:()=>Zx,isBindingElement:()=>Zo,isBindingElementOfBareOrAccessedRequire:()=>cfe,isBindingName:()=>Wx,isBindingOrAssignmentElement:()=>i_e,isBindingOrAssignmentPattern:()=>z3,isBindingPattern:()=>$s,isBlock:()=>Js,isBlockLike:()=>rD,isBlockOrCatchScoped:()=>fH,isBlockScope:()=>vH,isBlockScopedContainerTopLevel:()=>O_e,isBooleanLiteral:()=>vw,isBreakOrContinueStatement:()=>dw,isBreakStatement:()=>y4e,isBuild:()=>Jye,isBuildInfoFile:()=>Rhe,isBuilderProgram:()=>vye,isBundle:()=>Xde,isCallChain:()=>qx,isCallExpression:()=>to,isCallExpressionTarget:()=>_Q,isCallLikeExpression:()=>Hb,isCallLikeOrFunctionLikeExpression:()=>QG,isCallOrNewExpression:()=>Ig,isCallOrNewExpressionTarget:()=>fQ,isCallSignatureDeclaration:()=>LA,isCallToHelper:()=>vO,isCaseBlock:()=>PO,isCaseClause:()=>TN,isCaseKeyword:()=>qde,isCaseOrDefaultClause:()=>J5,isCatchClause:()=>TE,isCatchClauseVariableDeclaration:()=>Mpe,isCatchClauseVariableDeclarationOrBindingElement:()=>pH,isCheckJsEnabledForFile:()=>aO,isChildOfNodeWithKind:()=>y6e,isCircularBuildOrder:()=>ik,isClassDeclaration:()=>ru,isClassElement:()=>_u,isClassExpression:()=>tu,isClassInstanceProperty:()=>r_e,isClassLike:()=>vi,isClassMemberModifier:()=>$G,isClassNamedEvaluationHelperBlock:()=>tk,isClassOrTypeElement:()=>F5,isClassStaticBlockDeclaration:()=>$c,isClassThisAssignmentBlock:()=>QO,isCollapsedRange:()=>J6e,isColonToken:()=>Lde,isCommaExpression:()=>bM,isCommaListExpression:()=>CO,isCommaSequence:()=>RO,isCommaToken:()=>Mde,isComment:()=>JU,isCommonJsExportPropertyAssignment:()=>c9,isCommonJsExportedExpression:()=>K_e,isCompoundAssignment:()=>YO,isComputedNonLiteralName:()=>nR,isComputedPropertyName:()=>Go,isConciseBody:()=>U5,isConditionalExpression:()=>VA,isConditionalTypeNode:()=>dE,isConstAssertion:()=>G$,isConstTypeReference:()=>Xm,isConstructSignatureDeclaration:()=>mM,isConstructorDeclaration:()=>Vc,isConstructorTypeNode:()=>hN,isContextualKeyword:()=>k9,isContinueStatement:()=>h4e,isCustomPrologue:()=>cR,isDebuggerStatement:()=>v4e,isDeclaration:()=>f_,isDeclarationBindingElement:()=>q3,isDeclarationFileName:()=>ju,isDeclarationName:()=>Bh,isDeclarationNameOfEnumOrNamespace:()=>m$,isDeclarationReadonly:()=>sR,isDeclarationStatement:()=>p_e,isDeclarationWithTypeParameterChildren:()=>TH,isDeclarationWithTypeParameters:()=>SH,isDecorator:()=>pu,isDecoratorTarget:()=>d0e,isDefaultClause:()=>DO,isDefaultImport:()=>aA,isDefaultModifier:()=>Fj,isDefaultedExpandoInitializer:()=>lfe,isDeleteExpression:()=>Wde,isDeleteTarget:()=>jH,isDeprecatedDeclaration:()=>fV,isDestructuringAssignment:()=>Iv,isDiagnosticWithLocation:()=>aZ,isDiskPathRoot:()=>bG,isDoStatement:()=>g4e,isDocumentRegistryEntry:()=>R8,isDotDotDotToken:()=>Mj,isDottedName:()=>zR,isDynamicName:()=>N9,isESSymbolIdentifier:()=>I6e,isEffectiveExternalModule:()=>eA,isEffectiveModuleDeclaration:()=>w_e,isEffectiveStrictModeSourceFile:()=>hH,isElementAccessChain:()=>JG,isElementAccessExpression:()=>cc,isEmittedFileOfProgram:()=>Uhe,isEmptyArrayLiteral:()=>Gfe,isEmptyBindingElement:()=>Lue,isEmptyBindingPattern:()=>Mue,isEmptyObjectLiteral:()=>_$,isEmptyStatement:()=>uY,isEmptyStringLiteral:()=>PH,isEntityName:()=>xf,isEntityNameExpression:()=>nc,isEnumConst:()=>Kb,isEnumDeclaration:()=>TT,isEnumMember:()=>nS,isEqualityOperatorKind:()=>tV,isEqualsGreaterThanToken:()=>Fde,isExclamationToken:()=>dM,isExcludedFile:()=>ege,isExclusivelyTypeOnlyImportOrExport:()=>cX,isExpandoPropertyDeclaration:()=>AA,isExportAssignment:()=>pc,isExportDeclaration:()=>Cl,isExportModifier:()=>RA,isExportName:()=>Qj,isExportNamespaceAsDefaultDeclaration:()=>e9,isExportOrDefaultModifier:()=>CM,isExportSpecifier:()=>E_,isExportsIdentifier:()=>Xx,isExportsOrModuleExportsOrAlias:()=>EE,isExpression:()=>Pt,isExpressionNode:()=>eg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>y0e,isExpressionOfOptionalChainRoot:()=>R5,isExpressionStatement:()=>wu,isExpressionWithTypeArguments:()=>C0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>U9,isExternalModule:()=>iu,isExternalModuleAugmentation:()=>Yb,isExternalModuleImportEqualsDeclaration:()=>cT,isExternalModuleIndicator:()=>$3,isExternalModuleNameRelative:()=>Su,isExternalModuleReference:()=>A0,isExternalModuleSymbol:()=>UP,isExternalOrCommonJsModule:()=>Jf,isFileLevelReservedGeneratedIdentifier:()=>J3,isFileLevelUniqueName:()=>Q5,isFileProbablyExternalModule:()=>PM,isFirstDeclarationOfSymbolParameter:()=>HQ,isFixablePromiseHandler:()=>PZ,isForInOrOfStatement:()=>Gx,isForInStatement:()=>zj,isForInitializer:()=>Td,isForOfStatement:()=>hM,isForStatement:()=>ST,isFullSourceFile:()=>kv,isFunctionBlock:()=>Xb,isFunctionBody:()=>eH,isFunctionDeclaration:()=>El,isFunctionExpression:()=>ic,isFunctionExpressionOrArrowFunction:()=>K1,isFunctionLike:()=>Us,isFunctionLikeDeclaration:()=>$a,isFunctionLikeKind:()=>KC,isFunctionLikeOrClassStaticBlockDeclaration:()=>FP,isFunctionOrConstructorTypeNode:()=>n_e,isFunctionOrModuleBlock:()=>YG,isFunctionSymbol:()=>_fe,isFunctionTypeNode:()=>Vh,isFutureReservedKeyword:()=>P6e,isGeneratedIdentifier:()=>Ec,isGeneratedPrivateIdentifier:()=>zx,isGetAccessor:()=>Tv,isGetAccessorDeclaration:()=>$p,isGetOrSetAccessorDeclaration:()=>U3,isGlobalDeclaration:()=>TLe,isGlobalScopeAugmentation:()=>Og,isGlobalSourceFile:()=>Ev,isGrammarError:()=>A_e,isHeritageClause:()=>mp,isHoistedFunction:()=>o9,isHoistedVariableStatement:()=>a9,isIdentifier:()=>$e,isIdentifierANonContextualKeyword:()=>qH,isIdentifierName:()=>yfe,isIdentifierOrThisTypeNode:()=>yme,isIdentifierPart:()=>vv,isIdentifierStart:()=>by,isIdentifierText:()=>ap,isIdentifierTypePredicate:()=>Z_e,isIdentifierTypeReference:()=>Dpe,isIfStatement:()=>vT,isIgnoredFileFromWildCardWatching:()=>XM,isImplicitGlob:()=>D$,isImportAttribute:()=>Yde,isImportAttributeName:()=>t_e,isImportAttributes:()=>l2,isImportCall:()=>Dp,isImportClause:()=>ng,isImportDeclaration:()=>Yc,isImportEqualsDeclaration:()=>nu,isImportKeyword:()=>bO,isImportMeta:()=>GP,isImportOrExportSpecifier:()=>YC,isImportOrExportSpecifierName:()=>W0e,isImportSpecifier:()=>pf,isImportTypeAssertionContainer:()=>S4e,isImportTypeNode:()=>Jh,isImportableFile:()=>mZ,isInComment:()=>Uv,isInCompoundLikeAssignment:()=>FH,isInExpressionContext:()=>g9,isInJSDoc:()=>mR,isInJSFile:()=>vn,isInJSXText:()=>C0e,isInJsonFile:()=>y9,isInNonReferenceComment:()=>w0e,isInReferenceComment:()=>I0e,isInRightSideOfInternalImportEqualsDeclaration:()=>NU,isInString:()=>sk,isInTemplateString:()=>xQ,isInTopLevelContext:()=>p9,isInTypeQuery:()=>fA,isIncrementalCompilation:()=>tO,isIndexSignatureDeclaration:()=>fE,isIndexedAccessTypeNode:()=>mE,isInferTypeNode:()=>s2,isInfinityOrNaNString:()=>fO,isInitializedProperty:()=>zM,isInitializedVariable:()=>$R,isInsideJsxElement:()=>UU,isInsideJsxElementOrAttribute:()=>x0e,isInsideNodeModules:()=>D8,isInsideTemplateLiteral:()=>y8,isInstanceOfExpression:()=>V9,isInstantiatedModule:()=>AK,isInterfaceDeclaration:()=>Xu,isInternalDeclaration:()=>y_e,isInternalModuleImportEqualsDeclaration:()=>iA,isInternalName:()=>kY,isIntersectionTypeNode:()=>BA,isIntrinsicJsxName:()=>iN,isIterationStatement:()=>V1,isJSDoc:()=>sg,isJSDocAllType:()=>eme,isJSDocAugmentsTag:()=>WA,isJSDocAuthorTag:()=>C4e,isJSDocCallbackTag:()=>mY,isJSDocClassTag:()=>rme,isJSDocCommentContainingNode:()=>q5,isJSDocConstructSignature:()=>QP,isJSDocDeprecatedTag:()=>SY,isJSDocEnumTag:()=>vM,isJSDocFunctionType:()=>EN,isJSDocImplementsTag:()=>Yj,isJSDocImportTag:()=>Kg,isJSDocIndexSignature:()=>S9,isJSDocLikeText:()=>LY,isJSDocLink:()=>Qde,isJSDocLinkCode:()=>Zde,isJSDocLinkLike:()=>ZC,isJSDocLinkPlain:()=>E4e,isJSDocMemberName:()=>ET,isJSDocNameReference:()=>IO,isJSDocNamepathType:()=>x4e,isJSDocNamespaceBody:()=>l6e,isJSDocNode:()=>jP,isJSDocNonNullableType:()=>Wj,isJSDocNullableType:()=>bN,isJSDocOptionalParameter:()=>bj,isJSDocOptionalType:()=>dY,isJSDocOverloadTag:()=>xN,isJSDocOverrideTag:()=>Hj,isJSDocParameterTag:()=>Nd,isJSDocPrivateTag:()=>hY,isJSDocPropertyLikeTag:()=>mw,isJSDocPropertyTag:()=>nme,isJSDocProtectedTag:()=>yY,isJSDocPublicTag:()=>gY,isJSDocReadonlyTag:()=>vY,isJSDocReturnTag:()=>$j,isJSDocSatisfiesExpression:()=>q$,isJSDocSatisfiesTag:()=>Kj,isJSDocSeeTag:()=>A4e,isJSDocSignature:()=>k0,isJSDocTag:()=>BP,isJSDocTemplateTag:()=>om,isJSDocThisTag:()=>TY,isJSDocThrowsTag:()=>P4e,isJSDocTypeAlias:()=>Qd,isJSDocTypeAssertion:()=>m2,isJSDocTypeExpression:()=>bT,isJSDocTypeLiteral:()=>f2,isJSDocTypeTag:()=>wO,isJSDocTypedefTag:()=>p2,isJSDocUnknownTag:()=>k4e,isJSDocUnknownType:()=>tme,isJSDocVariadicType:()=>Gj,isJSXTagName:()=>YP,isJsonEqual:()=>hj,isJsonSourceFile:()=>Xd,isJsxAttribute:()=>Yg,isJsxAttributeLike:()=>V5,isJsxAttributeName:()=>jpe,isJsxAttributes:()=>SE,isJsxChild:()=>X3,isJsxClosingElement:()=>yE,isJsxClosingFragment:()=>Kde,isJsxElement:()=>My,isJsxExpression:()=>NO,isJsxFragment:()=>vE,isJsxNamespacedName:()=>ig,isJsxOpeningElement:()=>$g,isJsxOpeningFragment:()=>_2,isJsxOpeningLikeElement:()=>p_,isJsxOpeningLikeElementTagName:()=>m0e,isJsxSelfClosingElement:()=>u2,isJsxSpreadAttribute:()=>zA,isJsxTagNameExpression:()=>Tw,isJsxText:()=>IA,isJumpStatementTarget:()=>f8,isKeyword:()=>af,isKeywordOrPunctuation:()=>A9,isKnownSymbol:()=>LR,isLabelName:()=>mQ,isLabelOfLabeledStatement:()=>dQ,isLabeledStatement:()=>rS,isLateVisibilityPaintedStatement:()=>r9,isLeftHandSideExpression:()=>Af,isLeftHandSideOfAssignment:()=>V6e,isLet:()=>s9,isLineBreak:()=>T_,isLiteralComputedPropertyDeclarationName:()=>wR,isLiteralExpression:()=>Wb,isLiteralExpressionOfObject:()=>GG,isLiteralImportTypeNode:()=>xv,isLiteralKind:()=>gw,isLiteralLikeAccess:()=>b9,isLiteralLikeElementAccess:()=>TR,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>wU,isLiteralTypeLikeExpression:()=>R4e,isLiteralTypeLiteral:()=>a_e,isLiteralTypeNode:()=>Lv,isLocalName:()=>P0,isLogicalOperator:()=>qfe,isLogicalOrCoalescingAssignmentExpression:()=>a$,isLogicalOrCoalescingAssignmentOperator:()=>Gw,isLogicalOrCoalescingBinaryExpression:()=>qR,isLogicalOrCoalescingBinaryOperator:()=>JR,isMappedTypeNode:()=>a2,isMemberName:()=>xy,isMetaProperty:()=>xO,isMethodDeclaration:()=>_l,isMethodOrAccessor:()=>XC,isMethodSignature:()=>Wg,isMinusToken:()=>sY,isMissingDeclaration:()=>b4e,isMissingPackageJsonInfo:()=>fge,isModifier:()=>Do,isModifierKind:()=>Sv,isModifierLike:()=>xc,isModuleAugmentationExternal:()=>mH,isModuleBlock:()=>Gg,isModuleBody:()=>u_e,isModuleDeclaration:()=>xl,isModuleExportsAccessExpression:()=>ky,isModuleIdentifier:()=>IH,isModuleName:()=>Tme,isModuleOrEnumDeclaration:()=>Y3,isModuleReference:()=>m_e,isModuleSpecifierLike:()=>$U,isModuleWithStringLiteralName:()=>t9,isNameOfFunctionDeclaration:()=>vQ,isNameOfModuleDeclaration:()=>yQ,isNamedClassElement:()=>i6e,isNamedDeclaration:()=>Hu,isNamedEvaluation:()=>up,isNamedEvaluationSource:()=>zH,isNamedExportBindings:()=>zG,isNamedExports:()=>Pd,isNamedImportBindings:()=>tH,isNamedImports:()=>Hg,isNamedImportsOrExports:()=>$9,isNamedTupleMember:()=>yN,isNamespaceBody:()=>c6e,isNamespaceExport:()=>qh,isNamespaceExportDeclaration:()=>yM,isNamespaceImport:()=>Ry,isNamespaceReexportDeclaration:()=>afe,isNewExpression:()=>gE,isNewExpressionTarget:()=>_6,isNoSubstitutionTemplateLiteral:()=>wA,isNode:()=>r6e,isNodeArray:()=>zb,isNodeArrayMultiLine:()=>Qfe,isNodeDescendantOf:()=>rE,isNodeKind:()=>V3,isNodeLikeSystem:()=>XW,isNodeModulesDirectory:()=>T5,isNodeWithPossibleHoistedDeclaration:()=>gfe,isNonContextualKeyword:()=>JH,isNonExportDefaultModifier:()=>L4e,isNonGlobalAmbientModule:()=>dH,isNonGlobalDeclaration:()=>ove,isNonNullAccess:()=>Fpe,isNonNullChain:()=>M5,isNonNullExpression:()=>JA,isNonStaticMethodOrAccessorWithPrivateName:()=>$ge,isNotEmittedOrPartiallyEmittedNode:()=>a6e,isNotEmittedStatement:()=>pY,isNullishCoalesce:()=>qG,isNumber:()=>O1,isNumericLiteral:()=>Df,isNumericLiteralName:()=>Oy,isObjectBindingElementWithoutPropertyName:()=>b8,isObjectBindingOrAssignmentElement:()=>W3,isObjectBindingOrAssignmentPattern:()=>KG,isObjectBindingPattern:()=>Kp,isObjectLiteralElement:()=>rH,isObjectLiteralElementLike:()=>d0,isObjectLiteralExpression:()=>ko,isObjectLiteralMethod:()=>Nm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>l9,isObjectTypeDeclaration:()=>hA,isOctalDigit:()=>C5,isOmittedExpression:()=>du,isOptionalChain:()=>b_,isOptionalChainRoot:()=>fw,isOptionalDeclaration:()=>mN,isOptionalJSDocPropertyLikeTag:()=>nM,isOptionalTypeNode:()=>jj,isOuterExpression:()=>Zj,isOutermostOptionalChain:()=>pw,isOverrideModifier:()=>Vde,isPackageJsonInfo:()=>xB,isPackedArrayLiteral:()=>V$,isParameter:()=>is,isParameterPropertyDeclaration:()=>cp,isParameterPropertyModifier:()=>yw,isParenthesizedExpression:()=>ff,isParenthesizedTypeNode:()=>o2,isParseTreeNode:()=>_w,isPartOfParameterDeclaration:()=>dT,isPartOfTypeNode:()=>Mg,isPartOfTypeQuery:()=>h9,isPartiallyEmittedExpression:()=>qj,isPatternMatch:()=>c5,isPinnedComment:()=>Z5,isPlainJsFile:()=>xw,isPlusToken:()=>iY,isPossiblyTypeArgumentPosition:()=>h8,isPostfixUnaryExpression:()=>lY,isPrefixUnaryExpression:()=>tS,isPrimitiveLiteralValue:()=>Cj,isPrivateIdentifier:()=>es,isPrivateIdentifierClassElementDeclaration:()=>B_,isPrivateIdentifierPropertyAccessExpression:()=>LP,isPrivateIdentifierSymbol:()=>Tfe,isProgramBundleEmitBuildInfo:()=>iye,isProgramUptoDate:()=>gX,isPrologueDirective:()=>Rg,isPropertyAccessChain:()=>O5,isPropertyAccessEntityNameExpression:()=>WR,isPropertyAccessExpression:()=>Hn,isPropertyAccessOrQualifiedName:()=>H3,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>s_e,isPropertyAssignment:()=>ql,isPropertyDeclaration:()=>Ds,isPropertyName:()=>Ol,isPropertyNameLiteral:()=>Fg,isPropertySignature:()=>If,isProtoSetter:()=>bfe,isPrototypeAccess:()=>G1,isPrototypePropertyAssignment:()=>xR,isPunctuation:()=>VH,isPushOrUnshiftIdentifier:()=>WH,isQualifiedName:()=>uf,isQuestionDotToken:()=>Lj,isQuestionOrExclamationToken:()=>hme,isQuestionOrPlusOrMinusToken:()=>Sme,isQuestionToken:()=>Q1,isRawSourceMap:()=>Jge,isReadonlyKeyword:()=>Bde,isReadonlyKeywordOrPlusOrMinusToken:()=>vme,isRecognizedTripleSlashComment:()=>lH,isReferenceFileLocation:()=>VN,isReferencedFile:()=>wT,isRegularExpressionLiteral:()=>rY,isRequireCall:()=>Nf,isRequireVariableStatement:()=>hR,isRestParameter:()=>Lh,isRestTypeNode:()=>Bj,isReturnStatement:()=>im,isReturnStatementWithFixablePromiseHandler:()=>vV,isRightSideOfAccessExpression:()=>u$,isRightSideOfInstanceofExpression:()=>Wfe,isRightSideOfPropertyAccess:()=>GN,isRightSideOfQualifiedName:()=>h0e,isRightSideOfQualifiedNameOrPropertyAccess:()=>Hw,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>zfe,isRootedDiskPath:()=>op,isSameEntityName:()=>KP,isSatisfiesExpression:()=>Jj,isScopeMarker:()=>c_e,isSemicolonClassElement:()=>Gde,isSetAccessor:()=>wg,isSetAccessorDeclaration:()=>dp,isShebangTrivia:()=>IG,isShiftOperatorOrHigher:()=>OY,isShorthandAmbientModuleSymbol:()=>tR,isShorthandPropertyAssignment:()=>m_,isSignedNumericLiteral:()=>P9,isSimpleCopiableExpression:()=>xE,isSimpleInlineableExpression:()=>Xg,isSimpleParameter:()=>Zge,isSimpleParameterList:()=>WM,isSingleOrDoubleQuote:()=>yR,isSourceFile:()=>qi,isSourceFileFromLibrary:()=>tD,isSourceFileJS:()=>Pf,isSourceFileNotJS:()=>S6e,isSourceFileNotJson:()=>v9,isSourceMapping:()=>zge,isSpecialPropertyDeclaration:()=>ufe,isSpreadAssignment:()=>Ly,isSpreadElement:()=>kd,isStatement:()=>Ji,isStatementButNotDeclaration:()=>K3,isStatementOrBlock:()=>d_e,isStatementWithLocals:()=>C_e,isStatic:()=>co,isStaticModifier:()=>MA,isString:()=>bs,isStringAKeyword:()=>N6e,isStringANonContextualKeyword:()=>_A,isStringAndEmptyAnonymousObjectIntersection:()=>D0e,isStringDoubleQuoted:()=>T9,isStringLiteral:()=>jo,isStringLiteralLike:()=>Ia,isStringLiteralOrJsxExpression:()=>g_e,isStringLiteralOrTemplate:()=>X0e,isStringOrNumericLiteralLike:()=>Wp,isStringOrRegularExpressionOrTemplateLiteral:()=>kQ,isStringTextContainingNode:()=>HG,isSuperCall:()=>Kx,isSuperKeyword:()=>TO,isSuperOrSuperProperty:()=>v6e,isSuperProperty:()=>kf,isSupportedSourceFileName:()=>Cpe,isSwitchStatement:()=>kO,isSyntaxList:()=>CN,isSyntheticExpression:()=>m4e,isSyntheticReference:()=>qA,isTagName:()=>gQ,isTaggedTemplateExpression:()=>hE,isTaggedTemplateTag:()=>p0e,isTemplateExpression:()=>Uj,isTemplateHead:()=>OA,isTemplateLiteral:()=>QC,isTemplateLiteralKind:()=>B1,isTemplateLiteralToken:()=>Zue,isTemplateLiteralTypeNode:()=>zde,isTemplateLiteralTypeSpan:()=>aY,isTemplateMiddle:()=>nY,isTemplateMiddleOrTemplateTail:()=>L5,isTemplateSpan:()=>AO,isTemplateTail:()=>Rj,isTextWhiteSpaceLike:()=>L0e,isThis:()=>HN,isThisContainerOrFunctionBlock:()=>ife,isThisIdentifier:()=>z1,isThisInTypeQuery:()=>oE,isThisInitializedDeclaration:()=>d9,isThisInitializedObjectBindingExpression:()=>ofe,isThisProperty:()=>_R,isThisTypeNode:()=>vN,isThisTypeParameter:()=>pO,isThisTypePredicate:()=>efe,isThrowStatement:()=>fY,isToken:()=>$C,isTokenKind:()=>WG,isTraceEnabled:()=>N0,isTransientSymbol:()=>Fh,isTrivia:()=>rN,isTryStatement:()=>c2,isTupleTypeNode:()=>jA,isTypeAlias:()=>kR,isTypeAliasDeclaration:()=>sm,isTypeAssertionExpression:()=>cY,isTypeDeclaration:()=>xA,isTypeElement:()=>Gb,isTypeKeyword:()=>d6,isTypeKeywordToken:()=>RQ,isTypeKeywordTokenOrIdentifier:()=>WU,isTypeLiteralNode:()=>_f,isTypeNode:()=>wi,isTypeNodeKind:()=>v$,isTypeOfExpression:()=>SN,isTypeOnlyExportDeclaration:()=>e_e,isTypeOnlyImportDeclaration:()=>hw,isTypeOnlyImportOrExportDeclaration:()=>iT,isTypeOperatorNode:()=>yT,isTypeParameterDeclaration:()=>Cc,isTypePredicateNode:()=>FA,isTypeQueryNode:()=>pE,isTypeReferenceNode:()=>Yp,isTypeReferenceType:()=>W5,isTypeUsableAsPropertyName:()=>rm,isUMDExportSymbol:()=>H9,isUnaryExpression:()=>ZG,isUnaryExpressionWithWrite:()=>o_e,isUnicodeIdentifierStart:()=>E5,isUnionTypeNode:()=>Z1,isUrl:()=>yue,isValidBigIntString:()=>yj,isValidESSymbolDeclaration:()=>X_e,isValidTypeOnlyAliasUseSite:()=>gT,isValueSignatureDeclaration:()=>uA,isVarAwaitUsing:()=>oR,isVarConst:()=>WP,isVarConstLike:()=>z_e,isVarUsing:()=>aR,isVariableDeclaration:()=>Ci,isVariableDeclarationInVariableStatement:()=>kw,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Zb,isVariableDeclarationInitializedToRequire:()=>gR,isVariableDeclarationList:()=>Fu,isVariableLike:()=>nA,isVariableLikeOrAccessor:()=>Y_e,isVariableStatement:()=>fl,isVoidExpression:()=>UA,isWatchSet:()=>g$,isWhileStatement:()=>_Y,isWhiteSpaceLike:()=>Sy,isWhiteSpaceSingleLine:()=>Dg,isWithStatement:()=>Hde,isWriteAccess:()=>gA,isWriteOnlyAccess:()=>G9,isYieldExpression:()=>Vj,jsxModeNeedsExplicitImport:()=>fZ,keywordPart:()=>hp,last:()=>qo,lastOrUndefined:()=>yc,length:()=>kt,libMap:()=>JY,libs:()=>aB,lineBreakPart:()=>QN,linkNamePart:()=>q0e,linkPart:()=>YQ,linkTextPart:()=>XU,listFiles:()=>OX,loadModuleFromGlobalCache:()=>xge,loadWithModeAwareCache:()=>e8,makeIdentifierFromModuleName:()=>I_e,makeImport:()=>uS,makeStringLiteral:()=>m6,mangleScopedPackageName:()=>MN,map:()=>kr,mapAllOrFail:()=>qI,mapDefined:()=>Yi,mapDefinedEntries:()=>d3,mapDefinedIterator:()=>Vp,mapEntries:()=>m3,mapIterator:()=>wx,mapOneOrMany:()=>lZ,mapToDisplayParts:()=>_S,matchFiles:()=>I$,matchPatternOrExact:()=>M$,matchedText:()=>Zce,matchesExclude:()=>SB,maybeBind:()=>so,maybeSetLocalizedDiagnosticMessages:()=>ape,memoize:()=>nf,memoizeCached:()=>aOe,memoizeOne:()=>Ih,memoizeWeak:()=>oOe,metadataHelper:()=>lde,min:()=>zW,minAndMax:()=>Ppe,missingFileModifiedTime:()=>sp,modifierToFlag:()=>dA,modifiersToFlags:()=>Ug,moduleOptionDeclaration:()=>wme,moduleResolutionIsEqualTo:()=>E_e,moduleResolutionNameAndModeGetter:()=>_X,moduleResolutionOptionDeclarations:()=>zY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>bA,moduleResolutionUsesNodeModules:()=>GU,moduleSpecifierToValidIdentifier:()=>I8,moduleSpecifiers:()=>IT,moduleSymbolToValidIdentifier:()=>b6,moveEmitHelpers:()=>ede,moveRangeEnd:()=>z9,moveRangePastDecorators:()=>S0,moveRangePastModifiers:()=>Vg,moveRangePos:()=>mT,moveSyntheticComments:()=>Xpe,mutateMap:()=>Zw,mutateMapSkippingNewValues:()=>Ny,needsParentheses:()=>ZU,needsScopeMarker:()=>B5,newCaseClauseTracker:()=>mV,newPrivateEnvironment:()=>Xge,noEmitNotification:()=>HM,noEmitSubstitution:()=>t6,noTransformers:()=>whe,noTruncationMaximumTruncationLength:()=>sH,nodeCanBeDecorated:()=>pR,nodeHasName:()=>L3,nodeIsDecorated:()=>$P,nodeIsMissing:()=>Gc,nodeIsPresent:()=>Kd,nodeIsSynthesized:()=>Ka,nodeModuleNameResolver:()=>hge,nodeModulesPathPart:()=>Fy,nodeNextJsonConfigResolver:()=>yge,nodeOrChildIsDecorated:()=>dR,nodeOverlapsWithStartEnd:()=>OU,nodePosToString:()=>f6e,nodeSeenTracker:()=>YN,nodeStartsNewLexicalEnvironment:()=>GH,nodeToDisplayParts:()=>gLe,noop:()=>aa,noopFileWatcher:()=>a6,normalizePath:()=>eo,normalizeSlashes:()=>Wu,not:()=>u5,notImplemented:()=>fo,notImplementedResolver:()=>Lhe,nullNodeConverters:()=>Hpe,nullParenthesizerRules:()=>Wpe,nullTransformationContext:()=>YM,objectAllocator:()=>Yu,operatorPart:()=>h6,optionDeclarations:()=>og,optionMapToObject:()=>dB,optionsAffectingProgramStructure:()=>Fme,optionsForBuild:()=>GY,optionsForWatch:()=>KA,optionsHaveChanges:()=>VP,optionsHaveModuleResolutionChanges:()=>S_e,or:()=>qp,orderedRemoveItem:()=>GI,orderedRemoveItemAt:()=>M1,packageIdToPackageName:()=>K5,packageIdToString:()=>J1,paramHelper:()=>ude,parameterIsThisKeyword:()=>sE,parameterNamePart:()=>B0e,parseBaseNodeFactory:()=>kme,parseBigInt:()=>Npe,parseBuildCommand:()=>Hme,parseCommandLine:()=>Wme,parseCommandLineWorker:()=>$Y,parseConfigFileTextToJson:()=>KY,parseConfigFileWithSystem:()=>yye,parseConfigHostFromCompilerHostLike:()=>iU,parseCustomTypeOption:()=>_B,parseIsolatedEntityName:()=>YA,parseIsolatedJSDocComment:()=>Nme,parseJSDocTypeExpressionForTests:()=>n3e,parseJsonConfigFileContent:()=>w3e,parseJsonSourceFileConfigFileContent:()=>MM,parseJsonText:()=>NM,parseListTypeOption:()=>qme,parseNodeFactory:()=>CT,parseNodeModuleFromPath:()=>jM,parsePackageName:()=>PB,parsePseudoBigInt:()=>lO,parseValidBigInt:()=>B$,pasteEdits:()=>fte,patchWriteFileEnsuringDirectory:()=>hue,pathContainsNodeModules:()=>NT,pathIsAbsolute:()=>rw,pathIsBareSpecifier:()=>EG,pathIsRelative:()=>zp,patternText:()=>Qce,perfLogger:()=>sf,performIncrementalCompilation:()=>Sye,performance:()=>ale,plainJSErrors:()=>hX,positionBelongsToNode:()=>TQ,positionIsASICandidate:()=>nV,positionIsSynthesized:()=>rg,positionsAreOnSameLine:()=>xd,preProcessFile:()=>jLe,probablyUsesSemicolons:()=>P8,processCommentPragmas:()=>UY,processPragmasIntoFields:()=>VY,processTaggedTemplateExpression:()=>VK,programContainsEsModules:()=>R0e,programContainsModules:()=>O0e,projectReferenceIsEqualTo:()=>oH,propKeyHelper:()=>Ede,propertyNamePart:()=>U0e,pseudoBigIntToString:()=>uE,punctuationPart:()=>k_,pushIfUnique:()=>cl,quote:()=>S6,quotePreferenceFromString:()=>jQ,rangeContainsPosition:()=>p8,rangeContainsPositionExclusive:()=>d8,rangeContainsRange:()=>ed,rangeContainsRangeExclusive:()=>v0e,rangeContainsStartEnd:()=>m8,rangeEndIsOnSameLineAsRangeStart:()=>HR,rangeEndPositionsAreOnSameLine:()=>Kfe,rangeEquals:()=>yl,rangeIsOnSingleLine:()=>n2,rangeOfNode:()=>F$,rangeOfTypeParameters:()=>j$,rangeOverlapsWithStartEnd:()=>f6,rangeStartIsOnSameLineAsRangeEnd:()=>Xfe,rangeStartPositionsAreOnSameLine:()=>W9,readBuilderProgram:()=>dU,readConfigFile:()=>OM,readHelper:()=>Tde,readJson:()=>Yw,readJsonConfigFile:()=>$me,readJsonOrUndefined:()=>f$,reduceEachLeadingCommentRange:()=>Aue,reduceEachTrailingCommentRange:()=>kue,reduceLeft:()=>F_,reduceLeftIterator:()=>Ql,reducePathComponents:()=>Ux,refactor:()=>uk,regExpEscape:()=>Q6e,regularExpressionFlagToCharacter:()=>FOe,relativeComplement:()=>Jn,removeAllComments:()=>cM,removeEmitHelper:()=>p4e,removeExtension:()=>eM,removeFileExtension:()=>lf,removeIgnoredPath:()=>oU,removeMinAndVersionNumbers:()=>GW,removeOptionality:()=>A0e,removePrefix:()=>HI,removeSuffix:()=>kP,removeTrailingDirectorySeparator:()=>ZS,repeatString:()=>S8,replaceElement:()=>UW,replaceFirstStar:()=>kA,resolutionExtensionIsTSOrJson:()=>sO,resolveConfigFileProjectName:()=>HX,resolveJSModule:()=>dge,resolveLibrary:()=>AB,resolveModuleName:()=>ZA,resolveModuleNameFromCache:()=>oRe,resolvePackageNameToPackageJson:()=>cK,resolvePath:()=>QS,resolveProjectReferencePath:()=>JN,resolveTripleslashReference:()=>nX,resolveTypeReferenceDirective:()=>uge,resolvingEmptyArray:()=>iH,restHelper:()=>hde,returnFalse:()=>Ng,returnNoopFileWatcher:()=>c6,returnTrue:()=>YS,returnUndefined:()=>Vb,returnsPromise:()=>kZ,runInitializersHelper:()=>fde,sameFlatMap:()=>n5,sameMap:()=>js,sameMapping:()=>KRe,scanShebangTrivia:()=>wG,scanTokenAtPosition:()=>q_e,scanner:()=>z_,screenStartingMessageCodes:()=>NX,semanticDiagnosticsOptionDeclarations:()=>Rme,serializeCompilerOptions:()=>mB,server:()=>Lze,servicesVersion:()=>RFe,setCommentRange:()=>eu,setConfigFileInOptions:()=>rK,setConstantValue:()=>Zpe,setEachParent:()=>i4e,setEmitFlags:()=>xn,setFunctionNameHelper:()=>xde,setGetSourceFileAsHashVersioned:()=>pU,setIdentifierAutoGenerate:()=>_M,setIdentifierGeneratedImportReference:()=>nde,setIdentifierTypeArguments:()=>Mv,setInternalEmitFlags:()=>lM,setLocalizedDiagnosticMessages:()=>ope,setModuleDefaultHelper:()=>kde,setNodeChildren:()=>ime,setNodeFlags:()=>wpe,setObjectAllocator:()=>spe,setOriginalNode:()=>Gn,setParent:()=>fa,setParentRecursive:()=>E0,setPrivateIdentifier:()=>h2,setSnippetElement:()=>Q$,setSourceMapRange:()=>Wo,setStackTraceLimit:()=>bOe,setStartsOnNewLine:()=>Pj,setSyntheticLeadingComments:()=>hT,setSyntheticTrailingComments:()=>NA,setSys:()=>POe,setSysLog:()=>due,setTextRange:()=>At,setTextRangeEnd:()=>dN,setTextRangePos:()=>uO,setTextRangePosEnd:()=>Jg,setTextRangePosWidth:()=>U$,setTokenSourceMapRange:()=>Kpe,setTypeNode:()=>tde,setUILocale:()=>Yce,setValueDeclaration:()=>CR,shouldAllowImportingTsExtension:()=>LN,shouldPreserveConstEnums:()=>lE,shouldUseUriStyleNodeCoreModules:()=>pV,showModuleSpecifier:()=>rpe,signatureHasLiteralTypes:()=>kK,signatureHasRestParameter:()=>C_,signatureToDisplayParts:()=>KQ,single:()=>BW,singleElementArray:()=>zC,singleIterator:()=>i5,singleOrMany:()=>Dh,singleOrUndefined:()=>Nh,skipAlias:()=>$u,skipAssertions:()=>I4e,skipConstraint:()=>MQ,skipOuterExpressions:()=>Ml,skipParentheses:()=>ba,skipPartiallyEmittedExpressions:()=>km,skipTrivia:()=>zo,skipTypeChecking:()=>cO,skipTypeParentheses:()=>Mw,skipWhile:()=>tle,sliceAfter:()=>L$,some:()=>Dt,sort:()=>mo,sortAndDeduplicate:()=>BC,sortAndDeduplicateDiagnostics:()=>wP,sourceFileAffectingCompilerOptions:()=>WY,sourceFileMayBeEmitted:()=>t2,sourceMapCommentRegExp:()=>NK,sourceMapCommentRegExpDontCareLineStart:()=>Uge,spacePart:()=>Zc,spanMap:()=>xP,spreadArrayHelper:()=>bde,stableSort:()=>Zs,startEndContainsRange:()=>SQ,startEndOverlapsWithStartEnd:()=>RU,startOnNewLine:()=>x_,startTracing:()=>_le,startsWith:()=>fs,startsWithDirectory:()=>AG,startsWithUnderscore:()=>_Z,startsWithUseStrict:()=>_me,stringContainsAt:()=>sve,stringToToken:()=>Jb,stripQuotes:()=>em,supportedDeclarationExtensions:()=>fj,supportedJSExtensions:()=>Tpe,supportedJSExtensionsFlat:()=>fN,supportedLocaleDirectories:()=>jue,supportedTSExtensions:()=>nO,supportedTSExtensionsFlat:()=>w$,supportedTSImplementationExtensions:()=>pj,suppressLeadingAndTrailingTrivia:()=>yp,suppressLeadingTrivia:()=>eZ,suppressTrailingTrivia:()=>$0e,symbolEscapedNameNoDefault:()=>HU,symbolName:()=>Qc,symbolNameNoDefault:()=>UQ,symbolPart:()=>j0e,symbolToDisplayParts:()=>y6,syntaxMayBeASICandidate:()=>Z0e,syntaxRequiresTrailingSemicolonOrASI:()=>rV,sys:()=>uu,sysLog:()=>x3,tagNamesAreEquivalent:()=>kT,takeWhile:()=>KW,targetOptionDeclaration:()=>qY,templateObjectHelper:()=>Sde,testFormatSettings:()=>aLe,textChangeRangeIsUnchanged:()=>Oue,textChangeRangeNewSpan:()=>uw,textChanges:()=>bn,textOrKeywordPart:()=>$Q,textPart:()=>rd,textRangeContainsPositionInclusive:()=>O3,textSpanContainsPosition:()=>RG,textSpanContainsTextSpan:()=>Nue,textSpanEnd:()=>bl,textSpanIntersection:()=>wue,textSpanIntersectsWith:()=>k5,textSpanIntersectsWithPosition:()=>Iue,textSpanIntersectsWithTextSpan:()=>zOe,textSpanIsEmpty:()=>Pue,textSpanOverlap:()=>Due,textSpanOverlapsWith:()=>qOe,textSpansEqual:()=>XN,textToKeywordObj:()=>b5,timestamp:()=>Tc,toArray:()=>JC,toBuilderFileEmit:()=>cye,toBuilderStateFileInfoForMultiEmit:()=>aye,toEditorSettings:()=>B8,toFileNameLowerCase:()=>R1,toLowerCase:()=>zce,toPath:()=>rc,toProgramEmitPending:()=>lye,tokenIsIdentifierOrKeyword:()=>j_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Tue,tokenToString:()=>bo,trace:()=>ms,tracing:()=>kn,tracingEnabled:()=>b3,transferSourceFileChildren:()=>sme,transform:()=>zFe,transformClassFields:()=>uhe,transformDeclarations:()=>WK,transformECMAScriptModule:()=>zK,transformES2015:()=>xhe,transformES2016:()=>Ehe,transformES2017:()=>dhe,transformES2018:()=>mhe,transformES2019:()=>ghe,transformES2020:()=>hhe,transformES2021:()=>yhe,transformESDecorators:()=>phe,transformESNext:()=>vhe,transformGenerators:()=>Che,transformJsx:()=>bhe,transformLegacyDecorators:()=>fhe,transformModule:()=>qK,transformNamedEvaluation:()=>gp,transformNodeModule:()=>khe,transformNodes:()=>$M,transformSystemModule:()=>Ahe,transformTypeScript:()=>lhe,transpile:()=>HLe,transpileDeclaration:()=>WLe,transpileModule:()=>kve,transpileOptionValueCompilerOptions:()=>jme,tryAddToSet:()=>kg,tryAndIgnoreErrors:()=>oV,tryCast:()=>ci,tryDirectoryExists:()=>sV,tryExtractTSExtension:()=>J9,tryFileExists:()=>N8,tryGetClassExtendingExpressionWithTypeArguments:()=>c$,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>l$,tryGetDirectories:()=>iV,tryGetExtensionFromPath:()=>b0,tryGetImportFromModuleSpecifier:()=>AR,tryGetJSDocSatisfiesTypeNode:()=>Ej,tryGetModuleNameFromFile:()=>EM,tryGetModuleSpecifierFromDeclaration:()=>Ow,tryGetNativePerformanceHooks:()=>ole,tryGetPropertyAccessOrIdentifierToString:()=>GR,tryGetPropertyNameOfBindingOrAssignmentElement:()=>rB,tryGetSourceMappingURL:()=>Vge,tryGetTextOfPropertyName:()=>Aw,tryIOAndConsumeErrors:()=>aV,tryParseJson:()=>q9,tryParsePattern:()=>pN,tryParsePatterns:()=>mj,tryParseRawSourceMap:()=>qge,tryReadDirectory:()=>iZ,tryReadFile:()=>jO,tryRemoveDirectoryPrefix:()=>N$,tryRemoveExtension:()=>kpe,tryRemovePrefix:()=>YW,tryRemoveSuffix:()=>Xce,typeAcquisitionDeclarations:()=>lB,typeAliasNamePart:()=>V0e,typeDirectiveIsEqualTo:()=>x_e,typeKeywords:()=>OQ,typeParameterNamePart:()=>J0e,typeToDisplayParts:()=>x8,unchangedPollThresholds:()=>h5,unchangedTextChangeRange:()=>P5,unescapeLeadingUnderscores:()=>Zi,unmangleScopedPackageName:()=>UM,unorderedRemoveItem:()=>qC,unorderedRemoveItemAt:()=>HW,unreachableCodeIsError:()=>upe,unsetNodeChildren:()=>EY,unusedLabelIsError:()=>_pe,unwrapInnermostStatementOfLabel:()=>AH,unwrapParenthesizedExpression:()=>Vpe,updateErrorForNoInputFiles:()=>vB,updateLanguageServiceSourceFile:()=>eee,updateMissingFilePathsWatch:()=>eX,updateResolutionField:()=>IN,updateSharedExtendedConfigFileWatcher:()=>KB,updateSourceFile:()=>FY,updateWatchingWildcardDirectories:()=>KM,usesExtensionsOnImports:()=>Epe,usingSingleLineStringWriter:()=>Ew,utf16EncodeAsString:()=>lw,validateLocaleAndSetLanguage:()=>LG,valuesHelper:()=>Cde,version:()=>se,versionMajorMinor:()=>j,visitArray:()=>JM,visitCommaListElements:()=>qM,visitEachChild:()=>jr,visitFunctionBody:()=>Zp,visitIterationBody:()=>df,visitLexicalEnvironment:()=>PK,visitNode:()=>ct,visitNodes:()=>Qr,visitParameterList:()=>Kc,walkUpBindingElementsAndPatterns:()=>OP,walkUpLexicalEnvironments:()=>Kge,walkUpOuterExpressions:()=>fme,walkUpParenthesizedExpressions:()=>h0,walkUpParenthesizedTypes:()=>IR,walkUpParenthesizedTypesAndGetParentAndChild:()=>hfe,whitespaceOrMapCommentRegExp:()=>DK,writeCommentRange:()=>cN,writeFile:()=>VR,writeFileEnsuringDirectories:()=>r$,zipWith:()=>va}),l.exports=p(A);var j="5.5",se="5.5.4",We=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(We||{}),ve=[],lr=new Map,Rr=new Set;function kt(e){return e?e.length:0}function Et(e,t){if(e)for(let n=0;n=0;n--){let i=t(e[n],n);if(i)return i}}function di(e,t){if(e!==void 0)for(let n=0;n=0;i--){let s=e[i];if(t(s,i))return s}}function Va(e,t,n){if(e===void 0)return-1;for(let i=n??0;i=0;i--)if(t(e[i],i))return i;return-1}function UI(e,t){for(let n=0;nn(i,t[s]))}function VI(e,t,n){for(let i=n||0;i{let a=t(s,i);if(a!==void 0){let[u,m]=a;u!==void 0&&m!==void 0&&n.set(u,m)}}),n}function mv(e,t,n){if(e.has(t))return e.get(t);let i=n();return e.set(t,i),i}function kg(e,t){return e.has(t)?!1:(e.add(t),!0)}function*i5(e){yield e}function xP(e,t,n){let i;if(e){i=[];let s=e.length,a,u,m=0,d=0;for(;m{let[a,u]=t(s,i);n.set(a,u)}),n}function Dt(e,t){if(e)if(t){for(let n of e)if(t(n))return!0}else return e.length>0;return!1}function zI(e,t,n){let i;for(let s=0;se[u])}function jce(e,t){let n=[];for(let i of e)cl(n,i,t);return n}function w1(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?Fce(e,t,n):jce(e,t)}function Bce(e,t){if(e.length===0)return ve;let n=e[0],i=[n];for(let s=1;s0&&i(t,e[u-1]))return!1;if(u0&&M.assertGreaterThanOrEqual(n(t[a],t[a-1]),0);t:for(let u=s;su&&M.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[a],e[s])){case-1:i.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return i}function Ut(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Ss(e,t){return e===void 0?t:t===void 0?e:Ms(e)?Ms(t)?ds(e,t):Ut(e,t):Ms(t)?Ut(t,e):[e,t]}function Ca(e,t){return t<0?e.length+t:t}function On(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:Ca(t,n),i=i===void 0?t.length:Ca(t,i);for(let s=n;sn(e[i],e[s])||tc(i,s))}function mo(e,t){return e.length===0?e:e.slice().sort(t)}function*Lo(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Zs(e,t){let n=Ox(e);return io(e,n,t),n.map(i=>e[i])}function yl(e,t,n,i){for(;ne?.at(t):(e,t)=>{if(e&&(t=Ca(e,t),t>1),d=n(e[m],m);switch(i(d,t)){case-1:a=m+1;break;case 0:return m;case 1:u=m-1;break}}return~a}function F_(e,t,n,i,s){if(e&&e.length>0){let a=e.length;if(a>0){let u=i===void 0||i<0?0:i,m=s===void 0||u+s>a-1?a-1:u+s,d;for(arguments.length<=2?(d=e[u],u++):d=n;u<=m;)d=t(d,e[u],u),u++;return d}}return n}var $S=Object.prototype.hasOwnProperty;function Ha(e,t){return $S.call(e,t)}function s5(e,t){return $S.call(e,t)?e[t]:void 0}function Pg(e){let t=[];for(let n in e)$S.call(e,n)&&t.push(n);return t}function iOe(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let i of n)cl(t,i)}while(e=Object.getPrototypeOf(e));return t}function VC(e){let t=[];for(let n in e)$S.call(e,n)&&t.push(e[n]);return t}function Uce(e,t){let n=new Array(e);for(let i=0;i100&&n>t.length>>1){let m=t.length-n;t.copyWithin(0,n),t.length=m,n=0}return u}return{enqueue:s,dequeue:a,isEmpty:i}}function qW(e,t){let n=new Map,i=0;function*s(){for(let u of n.values())Ms(u)?yield*u:yield u}let a={has(u){let m=e(u);if(!n.has(m))return!1;let d=n.get(m);if(!Ms(d))return t(d,u);for(let S of d)if(t(S,u))return!0;return!1},add(u){let m=e(u);if(n.has(m)){let d=n.get(m);if(Ms(d))xs(d,u,t)||(d.push(u),i++);else{let S=d;t(S,u)||(n.set(m,[S,u]),i++)}}else n.set(m,u),i++;return this},delete(u){let m=e(u);if(!n.has(m))return!1;let d=n.get(m);if(Ms(d)){for(let S=0;Ss(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return a}function Ms(e){return Array.isArray(e)}function JC(e){return Ms(e)?e:[e]}function bs(e){return typeof e=="string"}function O1(e){return typeof e=="number"}function ci(e,t){return e!==void 0&&t(e)?e:void 0}function ao(e,t){return e!==void 0&&t(e)?e:M.fail(`Invalid cast. The supplied value ${e} did not pass the test '${M.getFunctionName(t)}'.`)}function aa(e){}function Ng(){return!1}function YS(){return!0}function Vb(){}function ec(e){return e}function zce(e){return e.toLowerCase()}var sOe=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g;function R1(e){return sOe.test(e)?e.replace(sOe,zce):e}function fo(){throw new Error("Not implemented")}function nf(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Ih(e){let t=new Map;return n=>{let i=`${typeof n}:${n}`,s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}function oOe(e){let t=new WeakMap;return n=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(n),t.set(n,i)),i}}function aOe(e,t){return(...n)=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(...n),t.set(n,i)),i}}function cOe(e,t,n,i,s){if(s){let a=[];for(let u=0;uF_(a,(m,d)=>d(m),u)}else return i?a=>i(n(t(e(a)))):n?a=>n(t(e(a))):t?a=>t(e(a)):e?a=>e(a):a=>a}var Wce=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(Wce||{});function hv(e,t){return e===t}function KS(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Lx(e,t){return hv(e,t)}function lOe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(n,i)===-1?n:i)}function v3(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function Gce(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function u_(e,t){return lOe(e,t)}function AP(e){return e?v3:u_}var tvt=(()=>{return t;function e(n,i,s){if(n===i)return 0;if(n===void 0)return-1;if(i===void 0)return 1;let a=s(n,i);return a<0?-1:a>0?1:0}function t(n){let i=new Intl.Collator(n,{usage:"sort",sensitivity:"variant",numeric:!0}).compare;return(s,a)=>e(s,a,i)}})(),Hce,WW;function $ce(){return WW}function Yce(e){WW!==e&&(WW=e,Hce=void 0)}function S3(e,t){return(Hce||(Hce=tvt(WW)))(e,t)}function Kce(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function XS(e,t){return tc(e?1:0,t?1:0)}function Fx(e,t,n){let i=Math.max(2,Math.floor(e.length*.34)),s=Math.floor(e.length*.4)+1,a;for(let u of t){let m=n(u);if(m!==void 0&&Math.abs(m.length-e.length)<=i){if(m===e||m.length<3&&m.toLowerCase()!==e.toLowerCase())continue;let d=rvt(e,m,s-.1);if(d===void 0)continue;M.assert(dn?m-n:1),E=Math.floor(t.length>n+m?n+m:t.length);s[0]=m;let x=m;for(let I=1;In)return;let D=i;i=s,s=D}let u=i[t.length];return u>n?void 0:u}function Wc(e,t,n){let i=e.length-t.length;return i>=0&&(n?KS(e.slice(i),t):e.indexOf(t,i)===i)}function kP(e,t){return Wc(e,t)?e.slice(0,e.length-t.length):e}function Xce(e,t){return Wc(e,t)?e.slice(0,e.length-t.length):void 0}function GW(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function GI(e,t){for(let n=0;nn===t)}function nvt(e,t){for(let n=0;ns&&(s=u.prefix.length,i=a)}return i}function fs(e,t,n){return n?KS(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function HI(e,t){return fs(e,t)?e.substr(t.length):e}function YW(e,t,n=ec){return fs(n(e),n(t))?e.substring(t.length):void 0}function c5({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&fs(n,e)&&Wc(n,t)}function l5(e,t){return n=>e(n)&&t(n)}function qp(...e){return(...t)=>{let n;for(let i of e)if(n=i(...t),n)return n;return n}}function u5(e){return(...t)=>!e(...t)}function uOe(e){}function zC(e){return e===void 0?void 0:[e]}function _5(e,t,n,i,s,a){a=a||aa;let u=0,m=0,d=e.length,S=t.length,E=!1;for(;u(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(rle||{}),M;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(He){return e.currentLogLevel<=He}e.shouldLog=n;function i(He,Xt){e.loggingHost&&n(He)&&e.loggingHost.log(He,Xt)}function s(He){i(3,He)}e.log=s,(He=>{function Xt(ki){i(1,ki)}He.error=Xt;function qr(ki){i(2,ki)}He.warn=qr;function Pn(ki){i(3,ki)}He.log=Pn;function Ti(ki){i(4,ki)}He.trace=Ti})(s=e.log||(e.log={}));let a={};function u(){return t}e.getAssertionLevel=u;function m(He){let Xt=t;if(t=He,He>Xt)for(let qr of Pg(a)){let Pn=a[qr];Pn!==void 0&&e[qr]!==Pn.assertion&&He>=Pn.level&&(e[qr]=Pn,a[qr]=void 0)}}e.setAssertionLevel=m;function d(He){return t>=He}e.shouldAssert=d;function S(He,Xt){return d(He)?!0:(a[Xt]={level:He,assertion:e[Xt]},e[Xt]=aa,!1)}function E(He,Xt){debugger;let qr=new Error(He?`Debug Failure. ${He}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(qr,Xt||E),qr}e.fail=E;function x(He,Xt,qr){return E(`${Xt||"Unexpected node."}\r
Node ${he(He.kind)} was unexpected.`,qr||x)}e.failBadSyntaxKind=x;function D(He,Xt,qr,Pn){He||(Xt=Xt?`False expression: ${Xt}`:"False expression.",qr&&(Xt+=`\r
Verbose Debug Information: `+(typeof qr=="string"?qr:qr())),E(Xt,Pn||D))}e.assert=D;function I(He,Xt,qr,Pn,Ti){if(He!==Xt){let ki=qr?Pn?`${qr} ${Pn}`:qr:"";E(`Expected ${He} === ${Xt}. ${ki}`,Ti||I)}}e.assertEqual=I;function R(He,Xt,qr,Pn){He>=Xt&&E(`Expected ${He} < ${Xt}. ${qr||""}`,Pn||R)}e.assertLessThan=R;function L(He,Xt,qr){He>Xt&&E(`Expected ${He} <= ${Xt}`,qr||L)}e.assertLessThanOrEqual=L;function F(He,Xt,qr){He= ${Xt}`,qr||F)}e.assertGreaterThanOrEqual=F;function J(He,Xt,qr){He==null&&E(Xt,qr||J)}e.assertIsDefined=J;function $(He,Xt,qr){return J(He,Xt,qr||$),He}e.checkDefined=$;function q(He,Xt,qr){for(let Pn of He)J(Pn,Xt,qr||q)}e.assertEachIsDefined=q;function ee(He,Xt,qr){return q(He,Xt,qr||ee),He}e.checkEachDefined=ee;function W(He,Xt="Illegal value:",qr){let Pn=typeof He=="object"&&Ha(He,"kind")&&Ha(He,"pos")?"SyntaxKind: "+he(He.kind):JSON.stringify(He);return E(`${Xt} ${Pn}`,qr||W)}e.assertNever=W;function pe(He,Xt,qr,Pn){S(1,"assertEachNode")&&D(Xt===void 0||Oi(He,Xt),qr||"Unexpected node.",()=>`Node array did not pass test '${me(Xt)}'.`,Pn||pe)}e.assertEachNode=pe;function K(He,Xt,qr,Pn){S(1,"assertNode")&&D(He!==void 0&&(Xt===void 0||Xt(He)),qr||"Unexpected node.",()=>`Node ${he(He?.kind)} did not pass test '${me(Xt)}'.`,Pn||K)}e.assertNode=K;function re(He,Xt,qr,Pn){S(1,"assertNotNode")&&D(He===void 0||Xt===void 0||!Xt(He),qr||"Unexpected node.",()=>`Node ${he(He.kind)} should not have passed test '${me(Xt)}'.`,Pn||re)}e.assertNotNode=re;function ue(He,Xt,qr,Pn){S(1,"assertOptionalNode")&&D(Xt===void 0||He===void 0||Xt(He),qr||"Unexpected node.",()=>`Node ${he(He?.kind)} did not pass test '${me(Xt)}'.`,Pn||ue)}e.assertOptionalNode=ue;function ce(He,Xt,qr,Pn){S(1,"assertOptionalToken")&&D(Xt===void 0||He===void 0||He.kind===Xt,qr||"Unexpected node.",()=>`Node ${he(He?.kind)} was not a '${he(Xt)}' token.`,Pn||ce)}e.assertOptionalToken=ce;function ne(He,Xt,qr){S(1,"assertMissingNode")&&D(He===void 0,Xt||"Unexpected node.",()=>`Node ${he(He.kind)} was unexpected'.`,qr||ne)}e.assertMissingNode=ne;function le(He){}e.type=le;function me(He){if(typeof He!="function")return"";if(Ha(He,"name"))return He.name;{let Xt=Function.prototype.toString.call(He),qr=/^function\s+([\w$]+)\s*\(/.exec(Xt);return qr?qr[1]:""}}e.getFunctionName=me;function de(He){return`{ name: ${Zi(He.escapedName)}; flags: ${ze(He.flags)}; declarations: ${kr(He.declarations,Xt=>he(Xt.kind))} }`}e.formatSymbol=de;function Ae(He=0,Xt,qr){let Pn=te(Xt);if(He===0)return Pn.length>0&&Pn[0][0]===0?Pn[0][1]:"0";if(qr){let Ti=[],ki=He;for(let[Vi,uo]of Pn){if(Vi>He)break;Vi!==0&&Vi&He&&(Ti.push(uo),ki&=~Vi)}if(ki===0)return Ti.join("|")}else for(let[Ti,ki]of Pn)if(Ti===He)return ki;return He.toString()}e.formatEnum=Ae;let xe=new Map;function te(He){let Xt=xe.get(He);if(Xt)return Xt;let qr=[];for(let Ti in He){let ki=He[Ti];typeof ki=="number"&&qr.push([ki,Ti])}let Pn=Zs(qr,(Ti,ki)=>tc(Ti[0],ki[0]));return xe.set(He,Pn),Pn}function he(He){return Ae(He,tG,!1)}e.formatSyntaxKind=he;function Te(He){return Ae(He,mG,!1)}e.formatSnippetKind=Te;function Ve(He){return Ae(He,pG,!1)}e.formatScriptKind=Ve;function Pe(He){return Ae(He,rG,!0)}e.formatNodeFlags=Pe;function ke(He){return Ae(He,lG,!0)}e.formatNodeCheckFlags=ke;function De(He){return Ae(He,nG,!0)}e.formatModifierFlags=De;function Be(He){return Ae(He,dG,!0)}e.formatTransformFlags=Be;function lt(He){return Ae(He,gG,!0)}e.formatEmitFlags=lt;function ze(He){return Ae(He,cG,!0)}e.formatSymbolFlags=ze;function tt(He){return Ae(He,uG,!0)}e.formatTypeFlags=tt;function we(He){return Ae(He,fG,!0)}e.formatSignatureFlags=we;function ft(He){return Ae(He,_G,!0)}e.formatObjectFlags=ft;function gt(He){return Ae(He,d5,!0)}e.formatFlowFlags=gt;function Qe(He){return Ae(He,iG,!0)}e.formatRelationComparisonResult=Qe;function yt(He){return Ae(He,EK,!0)}e.formatCheckMode=yt;function ir(He){return Ae(He,xK,!0)}e.formatSignatureCheckMode=ir;function Tr(He){return Ae(He,bK,!0)}e.formatTypeFacts=Tr;let Ar=!1,Vr;function fr(He){"__debugFlowFlags"in He||Object.defineProperties(He,{__tsDebuggerDisplay:{value(){let Xt=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",qr=this.flags&-2048;return`${Xt}${qr?` (${gt(qr)})`:""}`}},__debugFlowFlags:{get(){return Ae(this.flags,d5,!0)}},__debugToString:{value(){return Qs(this)}}})}function ur(He){return Ar&&(typeof Object.setPrototypeOf=="function"?(Vr||(Vr=Object.create(Object.prototype),fr(Vr)),Object.setPrototypeOf(He,Vr)):fr(He)),He}e.attachFlowNodeDebugInfo=ur;let tn;function Mi(He){"__tsDebuggerDisplay"in He||Object.defineProperties(He,{__tsDebuggerDisplay:{value(Xt){return Xt=String(Xt).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Xt}`}}})}function br(He){Ar&&(typeof Object.setPrototypeOf=="function"?(tn||(tn=Object.create(Array.prototype),Mi(tn)),Object.setPrototypeOf(He,tn)):Mi(He))}e.attachNodeArrayDebugInfo=br;function Di(){if(Ar)return;let He=new WeakMap,Xt=new WeakMap;Object.defineProperties(Yu.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Pn=this.flags&33554432?"TransientSymbol":"Symbol",Ti=this.flags&-33554433;return`${Pn} '${Qc(this)}'${Ti?` (${ze(Ti)})`:""}`}},__debugFlags:{get(){return ze(this.flags)}}}),Object.defineProperties(Yu.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Pn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Ti=this.flags&524288?this.objectFlags&-1344:0;return`${Pn}${this.symbol?` '${Qc(this.symbol)}'`:""}${Ti?` (${ft(Ti)})`:""}`}},__debugFlags:{get(){return tt(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?ft(this.objectFlags):""}},__debugTypeToString:{value(){let Pn=He.get(this);return Pn===void 0&&(Pn=this.checker.typeToString(this),He.set(this,Pn)),Pn}}}),Object.defineProperties(Yu.getSignatureConstructor().prototype,{__debugFlags:{get(){return we(this.flags)}},__debugSignatureToString:{value(){var Pn;return(Pn=this.checker)==null?void 0:Pn.signatureToString(this)}}});let qr=[Yu.getNodeConstructor(),Yu.getIdentifierConstructor(),Yu.getTokenConstructor(),Yu.getSourceFileConstructor()];for(let Pn of qr)Ha(Pn.prototype,"__debugKind")||Object.defineProperties(Pn.prototype,{__tsDebuggerDisplay:{value(){return`${Ec(this)?"GeneratedIdentifier":$e(this)?`Identifier '${In(this)}'`:es(this)?`PrivateIdentifier '${In(this)}'`:jo(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Df(this)?`NumericLiteral ${this.text}`:fM(this)?`BigIntLiteral ${this.text}n`:Cc(this)?"TypeParameterDeclaration":is(this)?"ParameterDeclaration":Vc(this)?"ConstructorDeclaration":$p(this)?"GetAccessorDeclaration":dp(this)?"SetAccessorDeclaration":LA(this)?"CallSignatureDeclaration":mM(this)?"ConstructSignatureDeclaration":fE(this)?"IndexSignatureDeclaration":FA(this)?"TypePredicateNode":Yp(this)?"TypeReferenceNode":Vh(this)?"FunctionTypeNode":hN(this)?"ConstructorTypeNode":pE(this)?"TypeQueryNode":_f(this)?"TypeLiteralNode":gM(this)?"ArrayTypeNode":jA(this)?"TupleTypeNode":jj(this)?"OptionalTypeNode":Bj(this)?"RestTypeNode":Z1(this)?"UnionTypeNode":BA(this)?"IntersectionTypeNode":dE(this)?"ConditionalTypeNode":s2(this)?"InferTypeNode":o2(this)?"ParenthesizedTypeNode":vN(this)?"ThisTypeNode":yT(this)?"TypeOperatorNode":mE(this)?"IndexedAccessTypeNode":a2(this)?"MappedTypeNode":Lv(this)?"LiteralTypeNode":yN(this)?"NamedTupleMember":Jh(this)?"ImportTypeNode":he(this.kind)}${this.flags?` (${Pe(this.flags)})`:""}`}},__debugKind:{get(){return he(this.kind)}},__debugNodeFlags:{get(){return Pe(this.flags)}},__debugModifierFlags:{get(){return De(Jfe(this))}},__debugTransformFlags:{get(){return Be(this.transformFlags)}},__debugIsParseTreeNode:{get(){return _w(this)}},__debugEmitFlags:{get(){return lt(Ko(this))}},__debugGetText:{value(Ti){if(Ka(this))return"";let ki=Xt.get(this);if(ki===void 0){let Vi=Ps(this),uo=Vi&&Jr(Vi);ki=uo?$b(uo,Vi,Ti):"",Xt.set(this,ki)}return ki}}});Ar=!0}e.enableDebugInfo=Di;function As(He){let Xt=He&7,qr=Xt===0?"in out":Xt===3?"[bivariant]":Xt===2?"in":Xt===1?"out":Xt===4?"[independent]":"";return He&8?qr+=" (unmeasurable)":He&16&&(qr+=" (unreliable)"),qr}e.formatVariance=As;class os{__debugToString(){var Xt;switch(this.kind){case 3:return((Xt=this.debugInfo)==null?void 0:Xt.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return va(this.sources,this.targets||kr(this.sources,()=>"any"),(qr,Pn)=>`${qr.__debugTypeToString()} -> ${typeof Pn=="string"?Pn:Pn.__debugTypeToString()}`).join(", ");case 2:return va(this.sources,this.targets,(qr,Pn)=>`${qr.__debugTypeToString()} -> ${Pn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
    `)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
    `)}`;default:return W(this)}}}e.DebugTypeMapper=os;function Ri(He){return e.isDebugging?Object.setPrototypeOf(He,os.prototype):He}e.attachDebugPrototypeIfDebug=Ri;function $r(He){return console.log(Qs(He))}e.printControlFlowGraph=$r;function Qs(He){let Xt=-1;function qr(z){return z.id||(z.id=Xt,Xt--),z.id}let Pn;(z=>{z.lr="\u2500",z.ud="\u2502",z.dr="\u256D",z.dl="\u256E",z.ul="\u256F",z.ur="\u2570",z.udr="\u251C",z.udl="\u2524",z.dlr="\u252C",z.ulr="\u2534",z.udlr="\u256B"})(Pn||(Pn={}));let Ti;(z=>{z[z.None=0]="None",z[z.Up=1]="Up",z[z.Down=2]="Down",z[z.Left=4]="Left",z[z.Right=8]="Right",z[z.UpDown=3]="UpDown",z[z.LeftRight=12]="LeftRight",z[z.UpLeft=5]="UpLeft",z[z.UpRight=9]="UpRight",z[z.DownLeft=6]="DownLeft",z[z.DownRight=10]="DownRight",z[z.UpDownLeft=7]="UpDownLeft",z[z.UpDownRight=11]="UpDownRight",z[z.UpLeftRight=13]="UpLeftRight",z[z.DownLeftRight=14]="DownLeftRight",z[z.UpDownLeftRight=15]="UpDownLeftRight",z[z.NoChildren=16]="NoChildren"})(Ti||(Ti={}));let ki=2032,Vi=882,uo=Object.create(null),Ys=[],Sr=[],ia=pt(He,new Set);for(let z of Ys)z.text=Z(z.flowNode,z.circular),Oe(z);let ut=Nt(ia),Tt=It(ut);return Vt(ia,0),Ye();function fe(z){return!!(z.flags&128)}function St(z){return!!(z.flags&12)&&!!z.antecedent}function Ce(z){return!!(z.flags&ki)}function it(z){return!!(z.flags&Vi)}function Me(z){let Ue=[];for(let be of z.edges)be.source===z&&Ue.push(be.target);return Ue}function rt(z){let Ue=[];for(let be of z.edges)be.target===z&&Ue.push(be.source);return Ue}function pt(z,Ue){let be=qr(z),Re=uo[be];if(Re&&Ue.has(z))return Re.circular=!0,Re={id:-1,flowNode:z,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Ys.push(Re),Re;if(Ue.add(z),!Re)if(uo[be]=Re={id:be,flowNode:z,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Ys.push(Re),St(z))for(let Ot of z.antecedent)nr(Re,Ot,Ue);else Ce(z)&&nr(Re,z.antecedent,Ue);return Ue.delete(z),Re}function nr(z,Ue,be){let Re=pt(Ue,be),Ot={source:z,target:Re};Sr.push(Ot),z.edges.push(Ot),Re.edges.push(Ot)}function Oe(z){if(z.level!==-1)return z.level;let Ue=0;for(let be of rt(z))Ue=Math.max(Ue,Oe(be)+1);return z.level=Ue}function Nt(z){let Ue=0;for(let be of Me(z))Ue=Math.max(Ue,Nt(be));return Ue+1}function It(z){let Ue=Q(Array(z),0);for(let be of Ys)Ue[be.level]=Math.max(Ue[be.level],be.text.length);return Ue}function Vt(z,Ue){if(z.lane===-1){z.lane=Ue,z.endLane=Ue;let be=Me(z);for(let Re=0;Re0&&Ue++;let Ot=be[Re];Vt(Ot,Ue),Ot.endLane>z.endLane&&(Ue=Ot.endLane)}z.endLane=Ue}}function Mt(z){if(z&2)return"Start";if(z&4)return"Branch";if(z&8)return"Loop";if(z&16)return"Assignment";if(z&32)return"True";if(z&64)return"False";if(z&128)return"SwitchClause";if(z&256)return"ArrayMutation";if(z&512)return"Call";if(z&1024)return"ReduceLabel";if(z&1)return"Unreachable";throw new Error}function sr(z){let Ue=Jr(z);return $b(Ue,z,!1)}function Z(z,Ue){let be=Mt(z.flags);if(Ue&&(be=`${be}#${qr(z)}`),fe(z)){let Re=[],{switchStatement:Ot,clauseStart:Ht,clauseEnd:$t}=z.node;for(let gr=Ht;gr<$t;gr++){let Wr=Ot.caseBlock.clauses[gr];DO(Wr)?Re.push("default"):Re.push(sr(Wr.expression))}be+=` (${Re.join(", ")})`}else it(z)&&z.node&&(be+=` (${sr(z.node)})`);return Ue==="circularity"?`Circular(${be})`:be}function Ye(){let z=Tt.length,Ue=Ys.reduce(($t,gr)=>Math.max($t,gr.lane),0)+1,be=Q(Array(Ue),""),Re=Tt.map(()=>Array(Ue)),Ot=Tt.map(()=>Q(Array(Ue),0));for(let $t of Ys){Re[$t.level][$t.lane]=$t;let gr=Me($t);for(let Yr=0;Yr0&&(Pr|=1),Yr0&&(Pr|=1),Yr0?Ot[$t-1][gr]:0,Yr=gr>0?Ot[$t][gr-1]:0,gn=Ot[$t][gr];gn||(Wr&8&&(gn|=12),Yr&2&&(gn|=3),Ot[$t][gr]=gn)}for(let $t=0;$t0?z.repeat(Ue):"";let be="";for(;be.length=0,"Invalid argument: major"),M.assert(n>=0,"Invalid argument: minor"),M.assert(i>=0,"Invalid argument: patch");let u=s?Ms(s)?s:s.split("."):ve,m=a?Ms(a)?a:a.split("."):ve;M.assert(Oi(u,d=>ovt.test(d)),"Invalid argument: prerelease"),M.assert(Oi(m,d=>cvt.test(d)),"Invalid argument: build"),this.major=t,this.minor=n,this.patch=i,this.prerelease=u,this.build=m}static tryParse(t){let n=pOe(t);if(!n)return;let{major:i,minor:s,patch:a,prerelease:u,build:m}=n;return new UF(i,s,a,u,m)}compareTo(t){return this===t?0:t===void 0?1:tc(this.major,t.major)||tc(this.minor,t.minor)||tc(this.patch,t.patch)||lvt(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new UF(this.major+1,0,0);case"minor":return new UF(this.major,this.minor+1,0);case"patch":return new UF(this.major,this.minor,this.patch+1);default:return M.assertNever(t)}}with(t){let{major:n=this.major,minor:i=this.minor,patch:s=this.patch,prerelease:a=this.prerelease,build:u=this.build}=t;return new UF(n,i,s,a,u)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return Dt(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),Dt(this.build)&&(t+=`+${this.build.join(".")}`),t}};nle.zero=new nle(0,0,0,["0"]);var Ym=nle;function pOe(e){let t=ivt.exec(e);if(!t)return;let[,n,i="0",s="0",a="",u=""]=t;if(!(a&&!svt.test(a))&&!(u&&!avt.test(u)))return{major:parseInt(n,10),minor:parseInt(i,10),patch:parseInt(s,10),prerelease:a,build:u}}function lvt(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;let n=Math.min(e.length,t.length);for(let i=0;i|>=|=)?\s*([a-z0-9-+.*]+)$/i;function dOe(e){let t=[];for(let n of e.trim().split(uvt)){if(!n)continue;let i=[];n=n.trim();let s=pvt.exec(n);if(s){if(!mvt(s[1],s[2],i))return}else for(let a of n.split(_vt)){let u=dvt.exec(a.trim());if(!u||!gvt(u[1],u[2],i))return}t.push(i)}return t}function ile(e){let t=fvt.exec(e);if(!t)return;let[,n,i="*",s="*",a,u]=t;return{version:new Ym($d(n)?0:parseInt(n,10),$d(n)||$d(i)?0:parseInt(i,10),$d(n)||$d(i)||$d(s)?0:parseInt(s,10),a,u),major:n,minor:i,patch:s}}function mvt(e,t,n){let i=ile(e);if(!i)return!1;let s=ile(t);return s?($d(i.major)||n.push(wh(">=",i.version)),$d(s.major)||n.push($d(s.minor)?wh("<",s.version.increment("major")):$d(s.patch)?wh("<",s.version.increment("minor")):wh("<=",s.version)),!0):!1}function gvt(e,t,n){let i=ile(t);if(!i)return!1;let{version:s,major:a,minor:u,patch:m}=i;if($d(a))(e==="<"||e===">")&&n.push(wh("<",Ym.zero));else switch(e){case"~":n.push(wh(">=",s)),n.push(wh("<",s.increment($d(u)?"major":"minor")));break;case"^":n.push(wh(">=",s)),n.push(wh("<",s.increment(s.major>0||$d(u)?"major":s.minor>0||$d(m)?"minor":"patch")));break;case"<":case">=":n.push($d(u)||$d(m)?wh(e,s.with({prerelease:"0"})):wh(e,s));break;case"<=":case">":n.push($d(u)?wh(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):$d(m)?wh(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):wh(e,s));break;case"=":case void 0:$d(u)||$d(m)?(n.push(wh(">=",s.with({prerelease:"0"}))),n.push(wh("<",s.increment($d(u)?"major":"minor").with({prerelease:"0"})))):n.push(wh("=",s));break;default:return!1}return!0}function $d(e){return e==="*"||e==="x"||e==="X"}function wh(e,t){return{operator:e,operand:t}}function hvt(e,t){if(t.length===0)return!0;for(let n of t)if(yvt(e,n))return!0;return!1}function yvt(e,t){for(let n of t)if(!vvt(e,n.operator,n.operand))return!1;return!0}function vvt(e,t,n){let i=e.compareTo(n);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return M.assertNever(t)}}function Svt(e){return kr(e,Tvt).join(" || ")||"*"}function Tvt(e){return kr(e,bvt).join(" ")}function bvt(e){return`${e.operator}${e.operand}`}function Evt(){if(XW())try{let{performance:e}=Ru("perf_hooks");if(e)return{shouldWriteNativeEvents:!1,performance:e}}catch{}if(typeof performance=="object")return{shouldWriteNativeEvents:!0,performance}}function xvt(){let e=Evt();if(!e)return;let{shouldWriteNativeEvents:t,performance:n}=e,i={shouldWriteNativeEvents:t,performance:void 0,performanceTime:void 0};return typeof n.timeOrigin=="number"&&typeof n.now=="function"&&(i.performanceTime=n),i.performanceTime&&typeof n.mark=="function"&&typeof n.measure=="function"&&typeof n.clearMarks=="function"&&typeof n.clearMeasures=="function"&&(i.performance=n),i}var sle=xvt(),mOe=sle?.performanceTime;function ole(){return sle}var Tc=mOe?()=>mOe.now():Date.now,p5;try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";p5=Ru(e)}catch{p5=void 0}var sf=p5?.logEvent?p5:void 0,ale={};k(ale,{clearMarks:()=>TOe,clearMeasures:()=>SOe,createTimer:()=>QW,createTimerIf:()=>gOe,disable:()=>ule,enable:()=>eG,forEachMark:()=>vOe,forEachMeasure:()=>ZW,getCount:()=>yOe,getDuration:()=>QI,isEnabled:()=>lle,mark:()=>jc,measure:()=>Sd,nullTimer:()=>cle});var $I,jx;function gOe(e,t,n,i){return e?QW(t,n,i):cle}function QW(e,t,n){let i=0;return{enter:s,exit:a};function s(){++i===1&&jc(t)}function a(){--i===0?(jc(n),Sd(e,t,n)):i<0&&M.fail("enter/exit count does not match.")}}var cle={enter:aa,exit:aa},YI=!1,hOe=Tc(),KI=new Map,T3=new Map,XI=new Map;function jc(e){if(YI){let t=T3.get(e)??0;T3.set(e,t+1),KI.set(e,Tc()),jx?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Sd(e,t,n){if(YI){let i=(n!==void 0?KI.get(n):void 0)??Tc(),s=(t!==void 0?KI.get(t):void 0)??hOe,a=XI.get(e)||0;XI.set(e,a+(i-s)),jx?.measure(e,t,n)}}function yOe(e){return T3.get(e)||0}function QI(e){return XI.get(e)||0}function ZW(e){XI.forEach((t,n)=>e(n,t))}function vOe(e){KI.forEach((t,n)=>e(n))}function SOe(e){e!==void 0?XI.delete(e):XI.clear(),jx?.clearMeasures(e)}function TOe(e){e!==void 0?(T3.delete(e),KI.delete(e)):(T3.clear(),KI.clear()),jx?.clearMarks(e)}function lle(){return YI}function eG(e=uu){var t;return YI||(YI=!0,$I||($I=ole()),$I?.performance&&(hOe=$I.performance.timeOrigin,($I.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(jx=$I.performance))),!0}function ule(){YI&&(KI.clear(),T3.clear(),XI.clear(),jx=void 0,YI=!1)}var kn,b3;(e=>{let t,n=0,i=0,s,a=[],u,m=[];function d(K,re,ue){if(M.assert(!kn,"Tracing already started"),t===void 0)try{t=Ru("fs")}catch(de){throw new Error(`tracing requires having fs
(original error: ${de.message||de})`)}s=K,a.length=0,u===void 0&&(u=ii(re,"legend.json")),t.existsSync(re)||t.mkdirSync(re,{recursive:!0});let ce=s==="build"?`.${process.pid}-${++n}`:s==="server"?`.${process.pid}`:"",ne=ii(re,`trace${ce}.json`),le=ii(re,`types${ce}.json`);m.push({configFilePath:ue,tracePath:ne,typesPath:le}),i=t.openSync(ne,"w"),kn=e;let me={cat:"__metadata",ph:"M",ts:1e3*Tc(),pid:1,tid:1};t.writeSync(i,`[
`+[{name:"process_name",args:{name:"tsc"},...me},{name:"thread_name",args:{name:"Main"},...me},{name:"TracingStartedInBrowser",...me,cat:"disabled-by-default-devtools.timeline"}].map(de=>JSON.stringify(de)).join(`,
`))}e.startTracing=d;function S(){M.assert(kn,"Tracing is not in progress"),M.assert(!!a.length==(s!=="server")),t.writeSync(i,`
]
`),t.closeSync(i),kn=void 0,a.length?W(a):m[m.length-1].typesPath=void 0}e.stopTracing=S;function E(K){s!=="server"&&a.push(K)}e.recordType=E;let x;(K=>{K.Parse="parse",K.Program="program",K.Bind="bind",K.Check="check",K.CheckTypes="checkTypes",K.Emit="emit",K.Session="session"})(x=e.Phase||(e.Phase={}));function D(K,re,ue){q("I",K,re,ue,'"s":"g"')}e.instant=D;let I=[];function R(K,re,ue,ce=!1){ce&&q("B",K,re,ue),I.push({phase:K,name:re,args:ue,time:1e3*Tc(),separateBeginAndEnd:ce})}e.push=R;function L(K){M.assert(I.length>0),$(I.length-1,1e3*Tc(),K),I.length--}e.pop=L;function F(){let K=1e3*Tc();for(let re=I.length-1;re>=0;re--)$(re,K);I.length=0}e.popAll=F;let J=1e3*10;function $(K,re,ue){let{phase:ce,name:ne,args:le,time:me,separateBeginAndEnd:de}=I[K];de?(M.assert(!ue,"`results` are not supported for events with `separateBeginAndEnd`"),q("E",ce,ne,le,void 0,re)):J-me%J<=re-me&&q("X",ce,ne,{...le,results:ue},`"dur":${re-me}`,me)}function q(K,re,ue,ce,ne,le=1e3*Tc()){s==="server"&&re==="checkTypes"||(jc("beginTracing"),t.writeSync(i,`,
{"pid":1,"tid":1,"ph":"${K}","cat":"${re}","ts":${le},"name":"${ue}"`),ne&&t.writeSync(i,`,${ne}`),ce&&t.writeSync(i,`,"args":${JSON.stringify(ce)}`),t.writeSync(i,"}"),jc("endTracing"),Sd("Tracing","beginTracing","endTracing"))}function ee(K){let re=Jr(K);return re?{path:re.path,start:ue(Eo(re,K.pos)),end:ue(Eo(re,K.end))}:void 0;function ue(ce){return{line:ce.line+1,character:ce.character+1}}}function W(K){var re,ue,ce,ne,le,me,de,Ae,xe,te,he,Te,Ve,Pe,ke,De,Be,lt,ze;jc("beginDumpTypes");let tt=m[m.length-1].typesPath,we=t.openSync(tt,"w"),ft=new Map;t.writeSync(we,"[");let gt=K.length;for(let Qe=0;Qe$r.id),referenceLocation:ee(Ri.node)}}let ur={};if(yt.flags&16777216){let Ri=yt;ur={conditionalCheckType:(me=Ri.checkType)==null?void 0:me.id,conditionalExtendsType:(de=Ri.extendsType)==null?void 0:de.id,conditionalTrueType:((Ae=Ri.resolvedTrueType)==null?void 0:Ae.id)??-1,conditionalFalseType:((xe=Ri.resolvedFalseType)==null?void 0:xe.id)??-1}}let tn={};if(yt.flags&33554432){let Ri=yt;tn={substitutionBaseType:(te=Ri.baseType)==null?void 0:te.id,constraintType:(he=Ri.constraint)==null?void 0:he.id}}let Mi={};if(ir&1024){let Ri=yt;Mi={reverseMappedSourceType:(Te=Ri.source)==null?void 0:Te.id,reverseMappedMappedType:(Ve=Ri.mappedType)==null?void 0:Ve.id,reverseMappedConstraintType:(Pe=Ri.constraintType)==null?void 0:Pe.id}}let br={};if(ir&256){let Ri=yt;br={evolvingArrayElementType:Ri.elementType.id,evolvingArrayFinalType:(ke=Ri.finalArrayType)==null?void 0:ke.id}}let Di,As=yt.checker.getRecursionIdentity(yt);As&&(Di=ft.get(As),Di||(Di=ft.size,ft.set(As,Di)));let os={id:yt.id,intrinsicName:yt.intrinsicName,symbolName:Tr?.escapedName&&Zi(Tr.escapedName),recursionId:Di,isTuple:ir&8?!0:void 0,unionTypes:yt.flags&1048576?(De=yt.types)==null?void 0:De.map(Ri=>Ri.id):void 0,intersectionTypes:yt.flags&2097152?yt.types.map(Ri=>Ri.id):void 0,aliasTypeArguments:(Be=yt.aliasTypeArguments)==null?void 0:Be.map(Ri=>Ri.id),keyofType:yt.flags&4194304?(lt=yt.type)==null?void 0:lt.id:void 0,...Vr,...fr,...ur,...tn,...Mi,...br,destructuringPattern:ee(yt.pattern),firstDeclaration:ee((ze=Tr?.declarations)==null?void 0:ze[0]),flags:M.formatTypeFlags(yt.flags).split("|"),display:Ar};t.writeSync(we,JSON.stringify(os)),Qe(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.PartiallyEmittedExpression=354]="PartiallyEmittedExpression",e[e.CommaListExpression=355]="CommaListExpression",e[e.SyntheticReferenceExpression=356]="SyntheticReferenceExpression",e[e.Count=357]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(tG||{}),rG=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(rG||{}),nG=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(nG||{}),ple=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(ple||{}),iG=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(iG||{}),sG=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(sG||{}),dle=(e=>(e[e.None=0]="None",e[e.HasIndices=1]="HasIndices",e[e.Global=2]="Global",e[e.IgnoreCase=4]="IgnoreCase",e[e.Multiline=8]="Multiline",e[e.DotAll=16]="DotAll",e[e.Unicode=32]="Unicode",e[e.UnicodeSets=64]="UnicodeSets",e[e.Sticky=128]="Sticky",e[e.AnyUnicodeMode=96]="AnyUnicodeMode",e[e.Modifiers=28]="Modifiers",e))(dle||{}),mle=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(mle||{}),d5=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(d5||{}),gle=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(gle||{}),ZI=class{},oG=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(oG||{}),hle=(e=>(e[e.FilePreprocessingLibReferenceDiagnostic=0]="FilePreprocessingLibReferenceDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(hle||{}),yle=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(yle||{}),aG=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(aG||{}),vle=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(vle||{}),Sle=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(Sle||{}),Tle=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(Tle||{}),ble=(e=>(e[e.None=0]="None",e[e.NoSupertypeReduction=1]="NoSupertypeReduction",e[e.NoConstraintReduction=2]="NoConstraintReduction",e))(ble||{}),Ele=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(Ele||{}),xle=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.NoSyntacticPrinter=-2147483648]="NoSyntacticPrinter",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.AllowUnresolvedNames=1]="AllowUnresolvedNames",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(xle||{}),Cle=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330095]="NodeBuilderFlagsMask",e))(Cle||{}),Ale=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(Ale||{}),kle=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e[e.NotResolved=3]="NotResolved",e))(kle||{}),Ple=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(Ple||{}),Nle=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(Nle||{}),Dle=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(Dle||{}),cG=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(cG||{}),Ile=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(Ile||{}),wle=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e.InstantiationExpression="__instantiationExpression",e.ImportAttributes="__importAttributes",e))(wle||{}),lG=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.LazyFlags=539358128]="LazyFlags",e))(lG||{}),uG=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(uG||{}),_G=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(_G||{}),Ole=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(Ole||{}),Rle=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(Rle||{}),Mle=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(Mle||{}),Lle=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(Lle||{}),Fle=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(Fle||{}),jle=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(jle||{}),fG=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(fG||{}),Ble=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(Ble||{}),Ule=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(Ule||{}),Vle=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(Vle||{}),Jle=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(Jle||{}),qle=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(qle||{}),zle=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(zle||{}),m5=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(m5||{});function Bx(e,t=!0){let n=m5[e.category];return t?n.toLowerCase():n}var ew=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(ew||{}),Wle=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(Wle||{}),Gle=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(Gle||{}),Hle=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(Hle||{}),$le=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))($le||{}),E3=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e[e.Preserve=200]="Preserve",e))(E3||{}),Yle=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(Yle||{}),Kle=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(Kle||{}),Xle=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(Xle||{}),pG=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(pG||{}),Qle=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Qle||{}),Zle=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(Zle||{}),eue=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(eue||{}),tue=(e=>(e[e.EOF=-1]="EOF",e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(tue||{}),rue=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(rue||{}),dG=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(dG||{}),mG=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(mG||{}),gG=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(gG||{}),nue=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(nue||{}),iue=(e=>(e[e.Classes=2]="Classes",e[e.ForOf=2]="ForOf",e[e.Generators=2]="Generators",e[e.Iteration=2]="Iteration",e[e.SpreadElements=2]="SpreadElements",e[e.RestElements=2]="RestElements",e[e.TaggedTemplates=2]="TaggedTemplates",e[e.DestructuringAssignment=2]="DestructuringAssignment",e[e.BindingPatterns=2]="BindingPatterns",e[e.ArrowFunctions=2]="ArrowFunctions",e[e.BlockScopedVariables=2]="BlockScopedVariables",e[e.ObjectAssign=2]="ObjectAssign",e[e.RegularExpressionFlagsUnicode=2]="RegularExpressionFlagsUnicode",e[e.RegularExpressionFlagsSticky=2]="RegularExpressionFlagsSticky",e[e.Exponentiation=3]="Exponentiation",e[e.AsyncFunctions=4]="AsyncFunctions",e[e.ForAwaitOf=5]="ForAwaitOf",e[e.AsyncGenerators=5]="AsyncGenerators",e[e.AsyncIteration=5]="AsyncIteration",e[e.ObjectSpreadRest=5]="ObjectSpreadRest",e[e.RegularExpressionFlagsDotAll=5]="RegularExpressionFlagsDotAll",e[e.BindinglessCatch=6]="BindinglessCatch",e[e.BigInt=7]="BigInt",e[e.NullishCoalesce=7]="NullishCoalesce",e[e.OptionalChaining=7]="OptionalChaining",e[e.LogicalAssignment=8]="LogicalAssignment",e[e.TopLevelAwait=9]="TopLevelAwait",e[e.ClassFields=9]="ClassFields",e[e.PrivateNamesAndClassStaticBlocks=9]="PrivateNamesAndClassStaticBlocks",e[e.RegularExpressionFlagsHasIndices=9]="RegularExpressionFlagsHasIndices",e[e.ShebangComments=99]="ShebangComments",e[e.UsingAndAwaitUsing=99]="UsingAndAwaitUsing",e[e.ClassAndClassElementDecorators=99]="ClassAndClassElementDecorators",e[e.RegularExpressionFlagsUnicodeSets=99]="RegularExpressionFlagsUnicodeSets",e))(iue||{}),sue=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.SetFunctionName=4194304]="SetFunctionName",e[e.PropKey=8388608]="PropKey",e[e.AddDisposableResourceAndDisposeResources=16777216]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=16777216]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(sue||{}),oue=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e[e.ImportTypeNodeAttributes=7]="ImportTypeNodeAttributes",e))(oue||{}),aue=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(aue||{}),cue=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(cue||{}),lue=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(lue||{}),uue=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(uue||{}),g5={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},_ue=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(_ue||{});function tw(e){let t=5381;for(let n=0;n(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(fue||{}),hG=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(hG||{}),sp=new Date(0);function WC(e,t){return e.getModifiedTime(t)||sp}function pue(e){return{250:e.Low,500:e.Medium,2e3:e.High}}var yG={Low:32,Medium:64,High:256},vG=pue(yG),h5=pue(yG);function Cvt(e){if(!e.getEnvironmentVariable)return;let t=s("TSC_WATCH_POLLINGINTERVAL",hG);vG=a("TSC_WATCH_POLLINGCHUNKSIZE",yG)||vG,h5=a("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",yG)||h5;function n(u,m){return e.getEnvironmentVariable(`${u}_${m.toUpperCase()}`)}function i(u){let m;return d("Low"),d("Medium"),d("High"),m;function d(S){let E=n(u,S);E&&((m||(m={}))[S]=Number(E))}}function s(u,m){let d=i(u);if(d)return S("Low"),S("Medium"),S("High"),!0;return!1;function S(E){m[E]=d[E]||m[E]}}function a(u,m){let d=i(u);return(t||d)&&pue(d?{...m,...d}:m)}}function EOe(e,t,n,i,s){let a=n;for(let m=t.length;i&&m;u(),m--){let d=t[n];if(d){if(d.isClosed){t[n]=void 0;continue}}else continue;i--;let S=Nvt(d,WC(e,d.fileName));if(d.isClosed){t[n]=void 0;continue}s?.(d,n,S),t[n]&&(a{q.isClosed=!0,qC(t,q)}}}function m(F){let J=[];return J.pollingInterval=F,J.pollIndex=0,J.pollScheduled=!1,J}function d(F,J){J.pollIndex=E(J,J.pollingInterval,J.pollIndex,vG[J.pollingInterval]),J.length?L(J.pollingInterval):(M.assert(J.pollIndex===0),J.pollScheduled=!1)}function S(F,J){E(n,250,0,n.length),d(F,J),!J.pollScheduled&&n.length&&L(250)}function E(F,J,$,q){return EOe(e,F,$,q,ee);function ee(W,pe,K){K?(W.unchangedPolls=0,F!==n&&(F[pe]=void 0,I(W))):W.unchangedPolls!==h5[J]?W.unchangedPolls++:F===n?(W.unchangedPolls=1,F[pe]=void 0,D(W,250)):J!==2e3&&(W.unchangedPolls++,F[pe]=void 0,D(W,J===250?500:2e3))}}function x(F){switch(F){case 250:return i;case 500:return s;case 2e3:return a}}function D(F,J){x(J).push(F),R(J)}function I(F){n.push(F),R(250)}function R(F){x(F).pollScheduled||L(F)}function L(F){x(F).pollScheduled=e.setTimeout(F===250?S:d,F,F===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",x(F))}}function kvt(e,t,n,i){let s=vd(),a=i?new Map:void 0,u=new Map,m=__(t);return d;function d(E,x,D,I){let R=m(E);s.add(R,x).length===1&&a&&a.set(R,n(E)||sp);let L=yi(R)||".",F=u.get(L)||S(yi(E)||".",L,I);return F.referenceCount++,{close:()=>{F.referenceCount===1?(F.close(),u.delete(L)):F.referenceCount--,s.remove(R,x)}}}function S(E,x,D){let I=e(E,1,(R,L)=>{if(!bs(L))return;let F=Cs(L,E),J=m(F),$=F&&s.get(J);if($){let q,ee=1;if(a){let W=a.get(J);if(R==="change"&&(q=n(F)||sp,q.getTime()===W.getTime()))return;q||(q=n(F)||sp),a.set(J,q),W===sp?ee=0:q===sp&&(ee=2)}for(let W of $)W(F,ee,q)}},!1,500,D);return I.referenceCount=0,u.set(x,I),I}}function Pvt(e){let t=[],n=0,i;return s;function s(m,d){let S={fileName:m,callback:d,mtime:WC(e,m)};return t.push(S),u(),{close:()=>{S.isClosed=!0,qC(t,S)}}}function a(){i=void 0,n=EOe(e,t,n,vG[250]),u()}function u(){!t.length||i||(i=e.setTimeout(a,2e3,"pollQueue"))}}function xOe(e,t,n,i,s){let u=__(t)(n),m=e.get(u);return m?m.callbacks.push(i):e.set(u,{watcher:s((d,S,E)=>{var x;return(x=e.get(u))==null?void 0:x.callbacks.slice().forEach(D=>D(d,S,E))}),callbacks:[i]}),{close:()=>{let d=e.get(u);d&&(!GI(d.callbacks,i)||d.callbacks.length||(e.delete(u),Dd(d)))}}}function Nvt(e,t){let n=e.mtime.getTime(),i=t.getTime();return n!==i?(e.mtime=t,e.callback(e.fileName,SG(n,i),t),!0):!1}function SG(e,t){return e===0?0:t===0?2:1}var y5=["/node_modules/.","/.git","/.#"],COe=aa;function x3(e){return COe(e)}function due(e){COe=e}function Dvt({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:a,setTimeout:u,clearTimeout:m}){let d=new Map,S=vd(),E=new Map,x,D=AP(!t),I=__(t);return(re,ue,ce,ne)=>ce?R(re,ne,ue):e(re,ue,ce,ne);function R(re,ue,ce,ne){let le=I(re),me=d.get(le);me?me.refCount++:(me={watcher:e(re,Ae=>{var xe;pe(Ae,ue)||(ue?.synchronousWatchDirectory?((xe=d.get(le))!=null&&xe.targetWatcher||L(re,le,Ae),W(re,le,ue)):F(re,le,Ae,ue))},!1,ue),refCount:1,childWatches:ve,targetWatcher:void 0,links:void 0},d.set(le,me),W(re,le,ue)),ne&&(me.links??(me.links=new Set)).add(ne);let de=ce&&{dirName:re,callback:ce};return de&&S.add(le,de),{dirName:re,close:()=>{var Ae;let xe=M.checkDefined(d.get(le));de&&S.remove(le,de),ne&&((Ae=xe.links)==null||Ae.delete(ne)),xe.refCount--,!xe.refCount&&(d.delete(le),xe.links=void 0,Dd(xe),ee(xe),xe.childWatches.forEach(Dm))}}}function L(re,ue,ce,ne){var le,me;let de,Ae;bs(ce)?de=ce:Ae=ce,S.forEach((xe,te)=>{if(!(Ae&&Ae.get(te)===!0)&&(te===ue||fs(ue,te)&&ue[te.length]===bc))if(Ae)if(ne){let he=Ae.get(te);he?he.push(...ne):Ae.set(te,ne.slice())}else Ae.set(te,!0);else xe.forEach(({callback:he})=>he(de))}),(me=(le=d.get(ue))==null?void 0:le.links)==null||me.forEach(xe=>{let te=he=>ii(xe,Km(re,he,I));Ae?L(xe,I(xe),Ae,ne?.map(te)):L(xe,I(xe),te(de))})}function F(re,ue,ce,ne){let le=d.get(ue);if(le&&s(re,1)){J(re,ue,ce,ne);return}L(re,ue,ce),ee(le),q(le)}function J(re,ue,ce,ne){let le=E.get(ue);le?le.fileNames.push(ce):E.set(ue,{dirName:re,options:ne,fileNames:[ce]}),x&&(m(x),x=void 0),x=u($,1e3,"timerToUpdateChildWatches")}function $(){var re;x=void 0,x3(`sysLog:: onTimerToUpdateChildWatches:: ${E.size}`);let ue=Tc(),ce=new Map;for(;!x&&E.size;){let le=E.entries().next();M.assert(!le.done);let{value:[me,{dirName:de,options:Ae,fileNames:xe}]}=le;E.delete(me);let te=W(de,me,Ae);(re=d.get(me))!=null&&re.targetWatcher||L(de,me,ce,te?void 0:xe)}x3(`sysLog:: invokingWatchers:: Elapsed:: ${Tc()-ue}ms:: ${E.size}`),S.forEach((le,me)=>{let de=ce.get(me);de&&le.forEach(({callback:Ae,dirName:xe})=>{Ms(de)?de.forEach(Ae):Ae(xe)})});let ne=Tc()-ue;x3(`sysLog:: Elapsed:: ${ne}ms:: onTimerToUpdateChildWatches:: ${E.size} ${x}`)}function q(re){if(!re)return;let ue=re.childWatches;re.childWatches=ve;for(let ce of ue)ce.close(),q(d.get(I(ce.dirName)))}function ee(re){re?.targetWatcher&&(re.targetWatcher.close(),re.targetWatcher=void 0)}function W(re,ue,ce){let ne=d.get(ue);if(!ne)return!1;let le=eo(a(re)),me,de;return D(le,re)===0?me=_5(s(re,1)?Yi(i(re),te=>{let he=Cs(te,re);return!pe(he,ce)&&D(he,eo(a(he)))===0?he:void 0}):ve,ne.childWatches,(te,he)=>D(te,he.dirName),Ae,Dm,xe):ne.targetWatcher&&D(le,ne.targetWatcher.dirName)===0?(me=!1,M.assert(ne.childWatches===ve)):(ee(ne),ne.targetWatcher=R(le,ce,void 0,re),ne.childWatches.forEach(Dm),me=!0),ne.childWatches=de||ve,me;function Ae(te){let he=R(te,ce);xe(he)}function xe(te){(de||(de=[])).push(te)}}function pe(re,ue){return Dt(y5,ce=>K(re,ce))||AOe(re,ue,t,n)}function K(re,ue){return re.includes(ue)?!0:t?!1:I(re).includes(ue)}}var mue=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(mue||{});function Ivt(e){return(t,n,i)=>e(n===1?"change":"rename","",i)}function wvt(e,t,n){return(i,s,a)=>{i==="rename"?(a||(a=n(e)||sp),t(e,a!==sp?0:2,a)):t(e,1,a)}}function AOe(e,t,n,i){return(t?.excludeDirectories||t?.excludeFiles)&&(SB(e,t?.excludeFiles,n,i())||SB(e,t?.excludeDirectories,n,i()))}function kOe(e,t,n,i,s){return(a,u)=>{if(a==="rename"){let m=u?eo(ii(e,u)):e;(!u||!AOe(m,n,i,s))&&t(m)}}}function gue({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:a,useCaseSensitiveFileNames:u,getCurrentDirectory:m,fsSupportsRecursiveFsWatch:d,getAccessibleSortedChildDirectories:S,realpath:E,tscWatchFile:x,useNonPollingWatchers:D,tscWatchDirectory:I,inodeWatching:R,fsWatchWithTimestamp:L,sysLog:F}){let J=new Map,$=new Map,q=new Map,ee,W,pe,K,re=!1;return{watchFile:ue,watchDirectory:de};function ue(Pe,ke,De,Be){Be=le(Be,D);let lt=M.checkDefined(Be.watchFile);switch(lt){case 0:return te(Pe,ke,250,void 0);case 1:return te(Pe,ke,De,void 0);case 2:return ce()(Pe,ke,De,void 0);case 3:return ne()(Pe,ke,void 0,void 0);case 4:return he(Pe,0,wvt(Pe,ke,t),!1,De,QM(Be));case 5:return pe||(pe=kvt(he,u,t,L)),pe(Pe,ke,De,QM(Be));default:M.assertNever(lt)}}function ce(){return ee||(ee=Avt({getModifiedTime:t,setTimeout:n}))}function ne(){return W||(W=Pvt({getModifiedTime:t,setTimeout:n}))}function le(Pe,ke){if(Pe&&Pe.watchFile!==void 0)return Pe;switch(x){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return me(4,1,Pe);case"UseFsEventsWithFallbackDynamicPolling":return me(4,2,Pe);case"UseFsEventsOnParentDirectory":ke=!0;default:return ke?me(5,1,Pe):{watchFile:4}}}function me(Pe,ke,De){let Be=De?.fallbackPolling;return{watchFile:Pe,fallbackPolling:Be===void 0?ke:Be}}function de(Pe,ke,De,Be){return d?he(Pe,1,kOe(Pe,ke,Be,u,m),De,500,QM(Be)):(K||(K=Dvt({useCaseSensitiveFileNames:u,getCurrentDirectory:m,fileSystemEntryExists:a,getAccessibleSortedChildDirectories:S,watchDirectory:Ae,realpath:E,setTimeout:n,clearTimeout:i})),K(Pe,ke,De,Be))}function Ae(Pe,ke,De,Be){M.assert(!De);let lt=xe(Be),ze=M.checkDefined(lt.watchDirectory);switch(ze){case 1:return te(Pe,()=>ke(Pe),500,void 0);case 2:return ce()(Pe,()=>ke(Pe),500,void 0);case 3:return ne()(Pe,()=>ke(Pe),void 0,void 0);case 0:return he(Pe,1,kOe(Pe,ke,Be,u,m),De,500,QM(lt));default:M.assertNever(ze)}}function xe(Pe){if(Pe&&Pe.watchDirectory!==void 0)return Pe;switch(I){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let ke=Pe?.fallbackPolling;return{watchDirectory:0,fallbackPolling:ke!==void 0?ke:void 0}}}function te(Pe,ke,De,Be){return xOe(J,u,Pe,ke,lt=>e(Pe,lt,De,Be))}function he(Pe,ke,De,Be,lt,ze){return xOe(Be?q:$,u,Pe,De,tt=>Te(Pe,ke,tt,Be,lt,ze))}function Te(Pe,ke,De,Be,lt,ze){let tt,we;R&&(tt=Pe.substring(Pe.lastIndexOf(bc)),we=tt.slice(bc.length));let ft=a(Pe,ke)?Qe():Tr();return{close:()=>{ft&&(ft.close(),ft=void 0)}};function gt(Ar){ft&&(F(`sysLog:: ${Pe}:: Changing watcher to ${Ar===Qe?"Present":"Missing"}FileSystemEntryWatcher`),ft.close(),ft=Ar())}function Qe(){if(re)return F(`sysLog:: ${Pe}:: Defaulting to watchFile`),ir();try{let Ar=(ke===1||!L?s:Ve)(Pe,Be,R?yt:De);return Ar.on("error",()=>{De("rename",""),gt(Tr)}),Ar}catch(Ar){return re||(re=Ar.code==="ENOSPC"),F(`sysLog:: ${Pe}:: Changing to watchFile`),ir()}}function yt(Ar,Vr){let fr;if(Vr&&Wc(Vr,"~")&&(fr=Vr,Vr=Vr.slice(0,Vr.length-1)),Ar==="rename"&&(!Vr||Vr===we||Wc(Vr,tt))){let ur=t(Pe)||sp;fr&&De(Ar,fr,ur),De(Ar,Vr,ur),R?gt(ur===sp?Tr:Qe):ur===sp&>(Tr)}else fr&&De(Ar,fr),De(Ar,Vr)}function ir(){return ue(Pe,Ivt(De),lt,ze)}function Tr(){return ue(Pe,(Ar,Vr,fr)=>{Vr===0&&(fr||(fr=t(Pe)||sp),fr!==sp&&(De("rename","",fr),gt(Qe)))},lt,ze)}}function Ve(Pe,ke,De){let Be=t(Pe)||sp;return s(Pe,ke,(lt,ze,tt)=>{lt==="change"&&(tt||(tt=t(Pe)||sp),tt.getTime()===Be.getTime())||(Be=tt||t(Pe)||sp,De(lt,ze,Be))})}}function hue(e){let t=e.writeFile;e.writeFile=(n,i,s)=>r$(n,i,!!s,(a,u,m)=>t.call(e,a,u,m),a=>e.createDirectory(a),a=>e.directoryExists(a))}var uu=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,s=Ru("fs"),a=Ru("path"),u=Ru("os"),m;try{m=Ru("crypto")}catch{m=void 0}let d,S="./profile.cpuprofile",E=process.platform==="darwin",x=process.platform==="linux"||E,D=u.platform(),I=ue(),R=s.realpathSync.native?process.platform==="win32"?ke:s.realpathSync.native:s.realpathSync,L=__filename.endsWith("sys.js")?a.join(a.dirname(__dirname),"__fake__.js"):__filename,F=process.platform==="win32"||E,J=nf(()=>process.cwd()),{watchFile:$,watchDirectory:q}=gue({pollingWatchFileWorker:ne,getModifiedTime:Be,setTimeout,clearTimeout,fsWatchWorker:le,useCaseSensitiveFileNames:I,getCurrentDirectory:J,fileSystemEntryExists:he,fsSupportsRecursiveFsWatch:F,getAccessibleSortedChildDirectories:we=>xe(we).directories,realpath:De,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:x,fsWatchWithTimestamp:E,sysLog:x3}),ee={args:process.argv.slice(2),newLine:u.EOL,useCaseSensitiveFileNames:I,write(we){process.stdout.write(we)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:de,writeFile:Ae,watchFile:$,watchDirectory:q,resolvePath:we=>a.resolve(we),fileExists:Te,directoryExists:Ve,getAccessibleFileSystemEntries:xe,createDirectory(we){if(!ee.directoryExists(we))try{s.mkdirSync(we)}catch(ft){if(ft.code!=="EEXIST")throw ft}},getExecutingFilePath(){return L},getCurrentDirectory:J,getDirectories:Pe,getEnvironmentVariable(we){return process.env[we]||""},readDirectory:te,getModifiedTime:Be,setModifiedTime:lt,deleteFile:ze,createHash:m?tt:tw,createSHA256Hash:m?tt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(we){try{let ft=W(we);if(ft?.isFile())return ft.size}catch{}return 0},exit(we){re(()=>process.exit(we))},enableCPUProfiler:pe,disableCPUProfiler:re,cpuProfilingEnabled:()=>!!d||xs(process.execArgv,"--cpu-prof")||xs(process.execArgv,"--prof"),realpath:De,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||Dt(process.execArgv,we=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(we))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{Ygt().install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var we;let ft=(we=process.stdout)==null?void 0:we._handle;ft&&ft.setBlocking&&ft.setBlocking(!0)},base64decode:we=>Buffer.from(we,"base64").toString("utf8"),base64encode:we=>Buffer.from(we).toString("base64"),require:(we,ft)=>{try{let gt=dge(ft,we,ee);return{module:Ru(gt),modulePath:gt,error:void 0}}catch(gt){return{module:void 0,modulePath:void 0,error:gt}}}};return ee;function W(we){return s.statSync(we,{throwIfNoEntry:!1})}function pe(we,ft){if(d)return ft(),!1;let gt=Ru("inspector");if(!gt||!gt.Session)return ft(),!1;let Qe=new gt.Session;return Qe.connect(),Qe.post("Profiler.enable",()=>{Qe.post("Profiler.start",()=>{d=Qe,S=we,ft()})}),!0}function K(we){let ft=0,gt=new Map,Qe=Wu(a.dirname(L)),yt=`file://${Oh(Qe)===1?"":"/"}${Qe}`;for(let ir of we.nodes)if(ir.callFrame.url){let Tr=Wu(ir.callFrame.url);Cm(yt,Tr,I)?ir.callFrame.url=GC(yt,Tr,yt,__(I),!0):i.test(Tr)||(ir.callFrame.url=(gt.has(Tr)?gt:gt.set(Tr,`external${ft}.js`)).get(Tr),ft++)}return we}function re(we){if(d&&d!=="stopping"){let ft=d;return d.post("Profiler.stop",(gt,{profile:Qe})=>{var yt;if(!gt){try{(yt=W(S))!=null&&yt.isDirectory()&&(S=a.join(S,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{s.mkdirSync(a.dirname(S),{recursive:!0})}catch{}s.writeFileSync(S,JSON.stringify(K(Qe)))}d=void 0,ft.disconnect(),we()}),d="stopping",!0}else return we(),!1}function ue(){return D==="win32"||D==="win64"?!1:!Te(ce(__filename))}function ce(we){return we.replace(/\w/g,ft=>{let gt=ft.toUpperCase();return ft===gt?ft.toLowerCase():gt})}function ne(we,ft,gt){s.watchFile(we,{persistent:!0,interval:gt},yt);let Qe;return{close:()=>s.unwatchFile(we,yt)};function yt(ir,Tr){let Ar=+Tr.mtime==0||Qe===2;if(+ir.mtime==0){if(Ar)return;Qe=2}else if(Ar)Qe=0;else{if(+ir.mtime==+Tr.mtime)return;Qe=1}ft(we,Qe,ir.mtime)}}function le(we,ft,gt){return s.watch(we,F?{persistent:!0,recursive:!!ft}:{persistent:!0},gt)}function me(we,ft){let gt;try{gt=s.readFileSync(we)}catch{return}let Qe=gt.length;if(Qe>=2&>[0]===254&>[1]===255){Qe&=-2;for(let yt=0;yt=2&>[0]===255&>[1]===254?gt.toString("utf16le",2):Qe>=3&>[0]===239&>[1]===187&>[2]===191?gt.toString("utf8",3):gt.toString("utf8")}function de(we,ft){var gt,Qe;(gt=sf)==null||gt.logStartReadFile(we);let yt=me(we,ft);return(Qe=sf)==null||Qe.logStopReadFile(),yt}function Ae(we,ft,gt){var Qe;(Qe=sf)==null||Qe.logEvent("WriteFile: "+we),gt&&(ft=e+ft);let yt;try{yt=s.openSync(we,"w"),s.writeSync(yt,ft,void 0,"utf8")}finally{yt!==void 0&&s.closeSync(yt)}}function xe(we){var ft;(ft=sf)==null||ft.logEvent("ReadDir: "+(we||"."));try{let gt=s.readdirSync(we||".",{withFileTypes:!0}),Qe=[],yt=[];for(let ir of gt){let Tr=typeof ir=="string"?ir:ir.name;if(Tr==="."||Tr==="..")continue;let Ar;if(typeof ir=="string"||ir.isSymbolicLink()){let Vr=ii(we,Tr);try{if(Ar=W(Vr),!Ar)continue}catch{continue}}else Ar=ir;Ar.isFile()?Qe.push(Tr):Ar.isDirectory()&&yt.push(Tr)}return Qe.sort(),yt.sort(),{files:Qe,directories:yt}}catch{return R$}}function te(we,ft,gt,Qe,yt){return I$(we,ft,gt,Qe,I,process.cwd(),yt,xe,De)}function he(we,ft){let gt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let Qe=W(we);if(!Qe)return!1;switch(ft){case 0:return Qe.isFile();case 1:return Qe.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=gt}}function Te(we){return he(we,0)}function Ve(we){return he(we,1)}function Pe(we){return xe(we).directories.slice()}function ke(we){return we.length<260?s.realpathSync.native(we):s.realpathSync(we)}function De(we){try{return R(we)}catch{return we}}function Be(we){var ft;let gt=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(ft=W(we))==null?void 0:ft.mtime}catch{return}finally{Error.stackTraceLimit=gt}}function lt(we,ft){try{s.utimesSync(we,ft,ft)}catch{return}}function ze(we){try{return s.unlinkSync(we)}catch{return}}function tt(we){let ft=m.createHash("sha256");return ft.update(we),ft.digest("hex")}}let n;return XW()&&(n=t()),n&&hue(n),n})();function POe(e){uu=e}uu&&uu.getEnvironmentVariable&&(Cvt(uu),M.setAssertionLevel(/^development$/i.test(uu.getEnvironmentVariable("NODE_ENV"))?1:0)),uu&&uu.debugMode&&(M.isDebugging=!0);var bc="/",v5="\\",NOe="://",Ovt=/\\/g;function TG(e){return e===47||e===92}function yue(e){return S5(e)<0}function op(e){return S5(e)>0}function bG(e){let t=S5(e);return t>0&&t===e.length}function rw(e){return S5(e)!==0}function zp(e){return/^\.\.?($|[\\/])/.test(e)}function EG(e){return!rw(e)&&!zp(e)}function PP(e){return Ul(e).includes(".")}function wc(e,t){return e.length>t.length&&Wc(e,t)}function Il(e,t){for(let n of t)if(wc(e,n))return!0;return!1}function yv(e){return e.length>0&&TG(e.charCodeAt(e.length-1))}function DOe(e){return e>=97&&e<=122||e>=65&&e<=90}function Rvt(e,t){let n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function S5(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?bc:v5,2);return i<0?e.length:i+1}if(DOe(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let n=e.indexOf(NOe);if(n!==-1){let i=n+NOe.length,s=e.indexOf(bc,i);if(s!==-1){let a=e.slice(0,n),u=e.slice(i,s);if(a==="file"&&(u===""||u==="localhost")&&DOe(e.charCodeAt(s+1))){let m=Rvt(e,s+2);if(m!==-1){if(e.charCodeAt(m)===47)return~(m+1);if(m===e.length)return~m}}return~(s+1)}return~e.length}return 0}function Oh(e){let t=S5(e);return t<0?~t:t}function yi(e){e=Wu(e);let t=Oh(e);return t===e.length?e:(e=ZS(e),e.slice(0,Math.max(t,e.lastIndexOf(bc))))}function Ul(e,t,n){if(e=Wu(e),Oh(e)===e.length)return"";e=ZS(e);let s=e.slice(Math.max(Oh(e),e.lastIndexOf(bc)+1)),a=t!==void 0&&n!==void 0?NP(s,t,n):void 0;return a?s.slice(0,s.length-a.length):s}function IOe(e,t,n){if(fs(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(n(i,t))return i}}function Mvt(e,t,n){if(typeof t=="string")return IOe(e,t,n)||"";for(let i of t){let s=IOe(e,i,n);if(s)return s}return""}function NP(e,t,n){if(t)return Mvt(ZS(e),t,n?KS:Lx);let i=Ul(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function Lvt(e,t){let n=e.substring(0,t),i=e.substring(t).split(bc);return i.length&&!yc(i)&&i.pop(),[n,...i]}function yu(e,t=""){return e=ii(t,e),Lvt(e,Oh(e))}function _0(e,t){return e.length===0?"":(e[0]&&vu(e[0]))+e.slice(1,t).join(bc)}function Wu(e){return e.includes("\\")?e.replace(Ovt,bc):e}function Ux(e){if(!Dt(e))return[];let t=[e[0]];for(let n=1;n1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function ii(e,...t){e&&(e=Wu(e));for(let n of t)n&&(n=Wu(n),!e||Oh(n)!==0?e=n:e=vu(e)+n);return e}function QS(e,...t){return eo(Dt(t)?ii(e,...t):Wu(e))}function C3(e,t){return Ux(yu(e,t))}function Cs(e,t){return _0(C3(e,t))}function eo(e){if(e=Wu(e),!CG.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!CG.test(e)))return e;let n=_0(Ux(yu(e)));return n&&yv(e)?vu(n):n}function Fvt(e){return e.length===0?"":e.slice(1).join(bc)}function xG(e,t){return Fvt(C3(e,t))}function rc(e,t,n){let i=op(e)?eo(e):Cs(e,t);return n(i)}function ZS(e){return yv(e)?e.substr(0,e.length-1):e}function vu(e){return yv(e)?e:e+bc}function Vx(e){return!rw(e)&&!zp(e)?"./"+e:e}function A3(e,t,n,i){let s=n!==void 0&&i!==void 0?NP(e,n,i):NP(e);return s?e.slice(0,e.length-s.length)+(fs(t,".")?t:"."+t):e}function vue(e,t){let n=BY(e);return n?e.slice(0,e.length-n.length)+(fs(t,".")?t:"."+t):A3(e,t)}var CG=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function Sue(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,Oh(e)),s=t.substring(0,Oh(t)),a=v3(i,s);if(a!==0)return a;let u=e.substring(i.length),m=t.substring(s.length);if(!CG.test(u)&&!CG.test(m))return n(u,m);let d=Ux(yu(e)),S=Ux(yu(t)),E=Math.min(d.length,S.length);for(let x=1;x0==Oh(t)>0,"Paths must either both be absolute or both be relative");let a=kG(e,t,(typeof n=="boolean"?n:!1)?KS:Lx,typeof n=="function"?n:ec);return _0(a)}function nw(e,t,n){return op(e)?GC(t,e,t,n,!1):e}function iw(e,t,n){return Vx(Km(yi(e),t,n))}function GC(e,t,n,i,s){let a=kG(QS(n,e),QS(n,t),Lx,i),u=a[0];if(s&&op(u)){let m=u.charAt(0)===bc?"file://":"file:///";a[0]=m+u}return _0(a)}function Am(e,t){for(;;){let n=t(e);if(n!==void 0)return n;let i=yi(e);if(i===e)return;e=i}}function T5(e){return Wc(e,"/node_modules")}function N(e,t,n,i,s,a,u){return{code:e,category:t,key:n,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:a,reportsDeprecated:u}}var v={Unterminated_string_literal:N(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:N(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:N(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:N(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:N(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:N(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:N(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:N(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:N(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:N(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:N(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:N(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:N(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:N(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:N(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:N(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:N(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:N(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:N(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:N(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:N(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:N(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:N(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:N(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:N(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:N(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:N(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:N(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:N(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:N(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:N(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:N(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:N(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:N(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:N(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:N(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:N(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:N(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:N(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:N(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:N(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:N(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compa_1055","Type '{0}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:N(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:N(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:N(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:N(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:N(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:N(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:N(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:N(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:N(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:N(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:N(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:N(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:N(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:N(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:N(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:N(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:N(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:N(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:N(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:N(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:N(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:N(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:N(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:N(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:N(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:N(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:N(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:N(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:N(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:N(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:N(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:N(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:N(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:N(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:N(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:N(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:N(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:N(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:N(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:N(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:N(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:N(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:N(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:N(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:N(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:N(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:N(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:N(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:N(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:N(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:N(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:N(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:N(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:N(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:N(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:N(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:N(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:N(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:N(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:N(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:N(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:N(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:N(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:N(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:N(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:N(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:N(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:N(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:N(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:N(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:N(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:N(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:N(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:N(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:N(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:N(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:N(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:N(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:N(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:N(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:N(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:N(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:N(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:N(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:N(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:N(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:N(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:N(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:N(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:N(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:N(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:N(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:N(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:N(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:N(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:N(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:N(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:N(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:N(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:N(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:N(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:N(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:N(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:N(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:N(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:N(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:N(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:N(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:N(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:N(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:N(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:N(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:N(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:N(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:N(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:N(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:N(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:N(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:N(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:N(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:N(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:N(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:N(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:N(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:N(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:N(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:N(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:N(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:N(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:N(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:N(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:N(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:N(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:N(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:N(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:N(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:N(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:N(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:N(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:N(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:N(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:N(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:N(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:N(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:N(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:N(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:N(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:N(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:N(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:N(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:N(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:N(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:N(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5:N(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:N(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definiti_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:N(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_au_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:N(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:N(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:N(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:N(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:N(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:N(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:N(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:N(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:N(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:N(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:N(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:N(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:N(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:N(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:N(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:N(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:N(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:N(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:N(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:N(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:N(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:N(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:N(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:N(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:N(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:N(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:N(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:N(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:N(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:N(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:N(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:N(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:N(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:N(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:N(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:N(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:N(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:N(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:N(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:N(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:N(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:N(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:N(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:N(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:N(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:N(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:N(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:N(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:N(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:N(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:N(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:N(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:N(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:N(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:N(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:N(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:N(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:N(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:N(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:N(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:N(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:N(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:N(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:N(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:N(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:N(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:N(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:N(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:N(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:N(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:N(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:N(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:N(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:N(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:N(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:N(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:N(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:N(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:N(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:N(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:N(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:N(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:N(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:N(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:N(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:N(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:N(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:N(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:N(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:N(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:N(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:N(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:N(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:N(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:N(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:N(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:N(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:N(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:N(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:N(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:N(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:N(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:N(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:N(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:N(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:N(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:N(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:N(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:N(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:N(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:N(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:N(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:N(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:N(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:N(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:N(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:N(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:N(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:N(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:N(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:N(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:N(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:N(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:N(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:N(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:N(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:N(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:N(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:N(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:N(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:N(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:N(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:N(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:N(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:N(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:N(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:N(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:N(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:N(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:N(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:N(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:N(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:N(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:N(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:N(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:N(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:N(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:N(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:N(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:N(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:N(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:N(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:N(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:N(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:N(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:N(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:N(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:N(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:N(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:N(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:N(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:N(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:N(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:N(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:N(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:N(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:N(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:N(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:N(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:N(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:N(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:N(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:N(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:N(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:N(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:N(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:N(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:N(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:N(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:N(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:N(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:N(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:N(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:N(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:N(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:N(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:N(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:N(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:N(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:N(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:N(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:N(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:N(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:N(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:N(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:N(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:N(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:N(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:N(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:N(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator:N(1497,1,"Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator_1497","Expression must be enclosed in parentheses to be used as a decorator."),Invalid_syntax_in_decorator:N(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:N(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:N(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:N(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:N(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:N(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:N(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:N(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:N(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:N(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:N(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:N(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:N(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:N(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:N(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:N(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:N(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:N(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:N(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:N(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:N(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:N(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:N(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:N(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:N(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:N(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:N(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:N(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:N(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:N(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:N(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:N(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:N(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:N(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:N(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:N(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:N(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:N(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead:N(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '{0}' instead."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:N(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),The_types_of_0_are_incompatible_between_these_types:N(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:N(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:N(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:N(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:N(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:N(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:N(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:N(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:N(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:N(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:N(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:N(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:N(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:N(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:N(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:N(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:N(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:N(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:N(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:N(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:N(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:N(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:N(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:N(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:N(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:N(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:N(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:N(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:N(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:N(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:N(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:N(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:N(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:N(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:N(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:N(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:N(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:N(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:N(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:N(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:N(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:N(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:N(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:N(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:N(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:N(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_a_static_property_initializer:N(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:N(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:N(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:N(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:N(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:N(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:N(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:N(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:N(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:N(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:N(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:N(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:N(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:N(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:N(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:N(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:N(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:N(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:N(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:N(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:N(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:N(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:N(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:N(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:N(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:N(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:N(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:N(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:N(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:N(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:N(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:N(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:N(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:N(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:N(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:N(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:N(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:N(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:N(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:N(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:N(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:N(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:N(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:N(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:N(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:N(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:N(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:N(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:N(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:N(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:N(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:N(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:N(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:N(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:N(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:N(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:N(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:N(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:N(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:N(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:N(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:N(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:N(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type.  Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:N(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:N(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:N(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:N(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:N(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:N(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:N(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:N(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:N(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:N(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:N(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:N(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:N(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:N(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:N(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:N(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:N(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:N(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:N(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:N(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:N(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:N(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:N(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:N(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:N(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:N(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:N(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:N(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:N(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:N(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:N(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:N(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:N(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:N(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:N(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:N(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:N(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:N(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:N(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:N(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:N(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:N(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:N(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:N(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:N(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:N(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:N(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:N(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:N(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:N(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:N(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:N(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:N(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:N(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:N(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:N(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:N(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:N(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:N(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:N(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:N(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:N(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:N(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:N(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:N(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:N(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:N(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:N(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:N(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:N(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:N(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:N(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:N(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:N(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:N(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:N(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:N(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:N(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:N(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:N(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:N(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression:N(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_func_2496","The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:N(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:N(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:N(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:N(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:N(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:N(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:N(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:N(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:N(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:N(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:N(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:N(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:N(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:N(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:N(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:N(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:N(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:N(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:N(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:N(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:N(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:N(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:N(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:N(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method:N(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_sta_2522","The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:N(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:N(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:N(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:N(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:N(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:N(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:N(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:N(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:N(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:N(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:N(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:N(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:N(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:N(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:N(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:N(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:N(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:N(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:N(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:N(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:N(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:N(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:N(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:N(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:N(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:N(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:N(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:N(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:N(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:N(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:N(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:N(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:N(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:N(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:N(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:N(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:N(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:N(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:N(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:N(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:N(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:N(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:N(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:N(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:N(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:N(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:N(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:N(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:N(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:N(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:N(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:N(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:N(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:N(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:N(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:N(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:N(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:N(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:N(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:N(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:N(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:N(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:N(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:N(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:N(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:N(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:N(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:N(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:N(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:N(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:N(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:N(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:N(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:N(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:N(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:N(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:N(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:N(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:N(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:N(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:N(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:N(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:N(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:N(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:N(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:N(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:N(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:N(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:N(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:N(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:N(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:N(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:N(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:N(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:N(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:N(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:N(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:N(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:N(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:N(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:N(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:N(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:N(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more:N(2650,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650","Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:N(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:N(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:N(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2:N(2654,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more:N(2655,1,"Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655","Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1:N(2656,1,"Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656","Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),JSX_expressions_must_have_one_parent_element:N(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:N(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:N(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:N(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:N(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:N(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:N(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:N(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:N(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:N(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:N(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:N(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:N(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:N(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:N(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:N(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:N(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:N(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:N(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:N(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:N(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:N(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:N(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:N(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:N(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:N(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:N(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:N(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:N(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:N(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:N(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:N(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:N(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:N(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:N(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:N(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:N(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:N(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:N(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:N(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:N(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:N(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:N(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:N(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:N(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:N(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:N(2705,1,"An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_2705","An async function or method in ES5 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:N(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:N(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:N(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:N(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:N(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:N(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:N(2712,1,"A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_t_2712","A dynamic import call in ES5 requires the 'Promise' constructor.  Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:N(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:N(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:N(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:N(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:N(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type.  Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:N(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:N(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:N(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:N(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:N(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:N(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:N(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:N(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:N(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:N(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:N(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:N(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:N(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:N(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:N(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:N(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:N(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:N(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:N(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:N(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:N(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:N(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:N(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:N(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:N(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:N(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:N(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:N(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:N(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:N(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:N(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:N(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:N(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:N(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:N(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:N(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:N(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:N(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:N(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:N(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:N(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:N(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:N(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:N(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:N(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:N(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:N(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:N(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:N(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:N(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:N(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:N(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:N(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:N(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:N(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:N(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:N(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:N(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:N(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:N(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:N(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:N(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:N(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:N(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:N(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:N(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:N(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:N(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:N(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:N(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:N(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:N(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:N(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:N(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:N(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:N(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:N(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:N(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:N(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:N(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:N(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:N(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:N(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:N(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:N(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:N(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:N(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:N(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:N(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:N(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:N(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:N(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:N(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:N(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:N(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:N(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:N(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:N(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:N(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:N(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:N(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:N(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:N(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:N(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:N(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:N(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:N(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:N(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:N(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:N(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:N(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:N(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:N(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:N(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:N(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:N(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:N(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:N(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:N(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:N(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:N(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:N(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:N(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:N(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:N(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:N(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:N(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:N(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:N(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:N(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:N(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:N(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:N(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:N(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:N(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:N(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:N(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:N(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:N(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:N(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:N(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:N(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:N(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:N(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:N(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:N(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:N(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:N(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:N(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:N(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:N(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:N(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:N(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:N(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:N(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:N(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:N(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:N(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:N(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:N(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:N(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:N(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:N(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:N(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:N(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:N(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:N(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:N(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:N(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:N(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:N(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:N(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:N(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:N(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:N(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:N(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:N(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:N(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:N(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:N(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:N(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:N(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:N(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:N(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:N(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:N(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:N(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:N(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:N(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:N(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:N(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:N(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:N(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:N(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:N(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:N(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:N(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:N(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:N(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:N(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:N(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:N(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:N(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:N(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:N(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:N(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:N(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:N(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:N(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:N(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:N(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:N(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:N(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:N(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:N(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:N(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:N(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:N(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:N(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:N(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:N(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:N(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:N(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:N(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:N(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:N(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:N(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:N(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:N(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:N(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:N(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:N(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:N(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:N(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:N(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:N(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:N(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:N(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:N(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:N(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:N(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:N(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:N(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:N(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:N(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:N(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:N(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:N(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:N(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:N(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:N(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:N(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:N(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:N(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:N(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:N(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:N(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:N(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:N(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:N(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:N(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:N(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:N(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:N(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:N(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:N(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:N(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:N(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:N(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:N(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:N(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:N(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:N(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:N(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:N(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:N(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:N(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:N(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:N(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:N(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:N(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:N(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:N(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:N(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:N(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:N(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:N(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:N(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:N(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:N(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:N(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:N(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:N(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:N(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:N(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:N(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:N(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:N(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:N(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:N(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:N(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:N(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:N(6024,3,"options_6024","options"),file:N(6025,3,"file_6025","file"),Examples_Colon_0:N(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:N(6027,3,"Options_Colon_6027","Options:"),Version_0:N(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:N(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:N(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:N(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:N(6034,3,"KIND_6034","KIND"),FILE:N(6035,3,"FILE_6035","FILE"),VERSION:N(6036,3,"VERSION_6036","VERSION"),LOCATION:N(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:N(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:N(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:N(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:N(6041,3,"Errors_Files_6041","Errors  Files"),Generates_corresponding_map_file:N(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:N(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:N(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:N(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:N(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form  or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:N(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:N(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:N(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:N(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:N(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:N(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:N(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:N(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:N(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:N(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:N(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:N(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:N(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:N(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:N(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:N(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:N(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:N(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:N(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:N(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:N(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:N(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:N(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:N(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:N(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:N(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:N(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:N(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:N(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:N(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:N(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:N(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:N(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:N(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:N(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:N(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:N(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:N(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:N(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:N(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:N(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:N(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:N(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:N(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:N(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:N(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:N(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:N(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:N(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:N(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:N(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:N(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:N(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:N(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:N(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:N(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:N(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:N(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:N(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:N(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:N(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:N(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:N(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:N(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:N(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:N(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:N(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:N(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:N(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:N(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:N(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:N(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:N(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:N(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:N(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:N(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:N(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:N(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:N(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:N(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:N(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:N(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:N(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:N(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:N(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:N(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:N(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:N(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:N(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:N(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:N(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:N(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:N(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:N(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:N(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:N(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:N(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:N(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:N(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:N(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:N(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:N(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:N(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:N(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:N(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:N(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:N(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:N(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:N(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:N(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:N(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5'."),Enable_all_strict_type_checking_options:N(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:N(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:N(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:N(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:N(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:N(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:N(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:N(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:N(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:N(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:N(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:N(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:N(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:N(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:N(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:N(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:N(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:N(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:N(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:N(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:N(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:N(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:N(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:N(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:N(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:N(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:N(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:N(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:N(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:N(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:N(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:N(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:N(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:N(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:N(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:N(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:N(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:N(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:N(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:N(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:N(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:N(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:N(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:N(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:N(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:N(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:N(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:N(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:N(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:N(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:N(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:N(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:N(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:N(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:N(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:N(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:N(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:N(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:N(6244,3,"Modules_6244","Modules"),File_Management:N(6245,3,"File_Management_6245","File Management"),Emit:N(6246,3,"Emit_6246","Emit"),JavaScript_Support:N(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:N(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:N(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:N(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:N(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:N(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:N(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:N(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:N(6255,3,"Projects_6255","Projects"),Output_Formatting:N(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:N(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:N(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:N(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:N(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:N(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:N(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:N(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:N(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:N(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:N(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:N(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:N(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:N(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:N(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:N(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:N(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:N(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:N(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:N(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:N(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:N(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),package_json_has_a_peerDependencies_field:N(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:N(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:N(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:N(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:N(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:N(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:N(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:N(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Referenced_project_0_may_not_disable_emit:N(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:N(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:N(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:N(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:N(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:N(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:N(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:N(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:N(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:N(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:N(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:N(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:N(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:N(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:N(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:N(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:N(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:N(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:N(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:N(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:N(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:N(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:N(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:N(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:N(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:N(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:N(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:N(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:N(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:N(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:N(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:N(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:N(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:N(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:N(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:N(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:N(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:N(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:N(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:N(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:N(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:N(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:N(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:N(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:N(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:N(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:N(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:N(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:N(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:N(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:N(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:N(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:N(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:N(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:N(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:N(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:N(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:N(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:N(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:N(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:N(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:N(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:N(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:N(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:N(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:N(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:N(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:N(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:N(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:N(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:N(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:N(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:N(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:N(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:N(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:N(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:N(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:N(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:N(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:N(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:N(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:N(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:N(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:N(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:N(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:N(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:N(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:N(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:N(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:N(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:N(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:N(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:N(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:N(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:N(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:N(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:N(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:N(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:N(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:N(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:N(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:N(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:N(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:N(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:N(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:N(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:N(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:N(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:N(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:N(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:N(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:N(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:N(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:N(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:N(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:N(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:N(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:N(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:N(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:N(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:N(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:N(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:N(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:N(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:N(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:N(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:N(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:N(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:N(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:N(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:N(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:N(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:N(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:N(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:N(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:N(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:N(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:N(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:N(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:N(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:N(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:N(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:N(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:N(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:N(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:N(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:N(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:N(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:N(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:N(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:N(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:N(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:N(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:N(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:N(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:N(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:N(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:N(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:N(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:N(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:N(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:N(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:N(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:N(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:N(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:N(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:N(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:N(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:N(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:N(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:N(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:N(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:N(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:N(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:N(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:N(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:N(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:N(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:N(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:N(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:N(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:N(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:N(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files:N(6719,3,"Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719","Require sufficient annotation on exports so other tools can trivially generate declaration files."),Default_catch_clause_variables_as_unknown_instead_of_any:N(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:N(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported:N(6805,3,"Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805","Disable full type checking (only critical parse and emit errors will be reported)."),one_of_Colon:N(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:N(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:N(6902,3,"type_Colon_6902","type:"),default_Colon:N(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:N(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:N(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:N(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:N(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:N(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:N(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:N(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:N(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:N(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:N(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:N(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:N(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:N(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:N(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:N(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:N(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:N(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:N(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:N(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:N(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:N(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:N(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:N(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:N(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:N(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:N(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:N(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:N(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:N(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:N(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:N(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:N(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:N(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:N(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:N(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:N(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:N(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:N(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:N(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:N(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:N(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:N(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:N(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:N(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:N(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:N(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:N(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:N(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:N(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:N(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:N(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:N(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:N(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:N(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:N(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:N(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:N(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:N(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:N(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:N(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:N(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:N(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:N(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:N(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:N(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:N(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:N(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:N(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:N(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:N(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:N(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:N(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:N(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:N(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:N(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:N(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:N(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:N(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:N(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:N(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:N(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:N(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:N(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:N(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:N(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:N(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:N(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:N(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:N(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:N(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:N(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:N(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:N(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:N(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:N(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:N(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:N(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:N(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:N(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:N(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:N(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:N(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:N(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:N(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:N(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:N(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:N(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:N(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:N(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:N(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:N(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:N(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:N(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:N(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:N(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:N(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:N(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:N(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:N(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:N(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:N(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9007,1,"Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9007","Function must have an explicit return type annotation with --isolatedDeclarations."),Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9008,1,"Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9008","Method must have an explicit return type annotation with --isolatedDeclarations."),At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations:N(9009,1,"At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations_9009","At least one accessor must have an explicit return type annotation with --isolatedDeclarations."),Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9010,1,"Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9010","Variable must have an explicit type annotation with --isolatedDeclarations."),Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9011,1,"Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9011","Parameter must have an explicit type annotation with --isolatedDeclarations."),Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations:N(9012,1,"Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations_9012","Property must have an explicit type annotation with --isolatedDeclarations."),Expression_type_can_t_be_inferred_with_isolatedDeclarations:N(9013,1,"Expression_type_can_t_be_inferred_with_isolatedDeclarations_9013","Expression type can't be inferred with --isolatedDeclarations."),Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations:N(9014,1,"Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedD_9014","Computed properties must be number or string literals, variables or dotted expressions with --isolatedDeclarations."),Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations:N(9015,1,"Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations_9015","Objects that contain spread assignments can't be inferred with --isolatedDeclarations."),Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations:N(9016,1,"Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations_9016","Objects that contain shorthand properties can't be inferred with --isolatedDeclarations."),Only_const_arrays_can_be_inferred_with_isolatedDeclarations:N(9017,1,"Only_const_arrays_can_be_inferred_with_isolatedDeclarations_9017","Only const arrays can be inferred with --isolatedDeclarations."),Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations:N(9018,1,"Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations_9018","Arrays with spread elements can't inferred with --isolatedDeclarations."),Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations:N(9019,1,"Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations_9019","Binding elements can't be exported directly with --isolatedDeclarations."),Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations:N(9020,1,"Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDecl_9020","Enum member initializers must be computable without references to external symbols with --isolatedDeclarations."),Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations:N(9021,1,"Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations_9021","Extends clause can't contain an expression with --isolatedDeclarations."),Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations:N(9022,1,"Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations_9022","Inference from class expressions is not supported with --isolatedDeclarations."),Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function:N(9023,1,"Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations__9023","Assigning properties to functions without declaring them is not supported with --isolatedDeclarations. Add an explicit declaration for the properties assigned to this function."),Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:N(9025,1,"Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_su_9025","Declaration emit for this parameter requires implicitly adding undefined to it's type. This is not supported with --isolatedDeclarations."),Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations:N(9026,1,"Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_support_9026","Declaration emit for this file requires preserving this import for augmentations. This is not supported with --isolatedDeclarations."),Add_a_type_annotation_to_the_variable_0:N(9027,1,"Add_a_type_annotation_to_the_variable_0_9027","Add a type annotation to the variable {0}."),Add_a_type_annotation_to_the_parameter_0:N(9028,1,"Add_a_type_annotation_to_the_parameter_0_9028","Add a type annotation to the parameter {0}."),Add_a_type_annotation_to_the_property_0:N(9029,1,"Add_a_type_annotation_to_the_property_0_9029","Add a type annotation to the property {0}."),Add_a_return_type_to_the_function_expression:N(9030,1,"Add_a_return_type_to_the_function_expression_9030","Add a return type to the function expression."),Add_a_return_type_to_the_function_declaration:N(9031,1,"Add_a_return_type_to_the_function_declaration_9031","Add a return type to the function declaration."),Add_a_return_type_to_the_get_accessor_declaration:N(9032,1,"Add_a_return_type_to_the_get_accessor_declaration_9032","Add a return type to the get accessor declaration."),Add_a_type_to_parameter_of_the_set_accessor_declaration:N(9033,1,"Add_a_type_to_parameter_of_the_set_accessor_declaration_9033","Add a type to parameter of the set accessor declaration."),Add_a_return_type_to_the_method:N(9034,1,"Add_a_return_type_to_the_method_9034","Add a return type to the method"),Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit:N(9035,1,"Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit_9035","Add satisfies and a type assertion to this expression (satisfies T as T) to make the type explicit."),Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it:N(9036,1,"Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it_9036","Move the expression in default export to a variable and add a type annotation to it."),Default_exports_can_t_be_inferred_with_isolatedDeclarations:N(9037,1,"Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037","Default exports can't be inferred with --isolatedDeclarations."),Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations:N(9038,1,"Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038","Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations:N(9039,1,"Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039","Type containing private name '{0}' can't be used with --isolatedDeclarations."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:N(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:N(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:N(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:N(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:N(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:N(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:N(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:N(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:N(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:N(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:N(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:N(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:N(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:N(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:N(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:N(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:N(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:N(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:N(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:N(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:N(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:N(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:N(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:N(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:N(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:N(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:N(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:N(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:N(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:N(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:N(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:N(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:N(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:N(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:N(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:N(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:N(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:N(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:N(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:N(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:N(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:N(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:N(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:N(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:N(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:N(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:N(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:N(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:N(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:N(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:N(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:N(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:N(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:N(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:N(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:N(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:N(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:N(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:N(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:N(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:N(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:N(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:N(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:N(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:N(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:N(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:N(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:N(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:N(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:N(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:N(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:N(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:N(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:N(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:N(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:N(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:N(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:N(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:N(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:N(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:N(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:N(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:N(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:N(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:N(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:N(90068,3,"Add_satisfies_and_an_inline_type_assertion_with_0_90068","Add satisfies and an inline type assertion with '{0}'"),Extract_to_variable_and_replace_with_0_as_typeof_0:N(90069,3,"Extract_to_variable_and_replace_with_0_as_typeof_0_90069","Extract to variable and replace with '{0} as typeof {0}'"),Mark_array_literal_as_const:N(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:N(90071,3,"Annotate_types_of_properties_expando_function_in_a_namespace_90071","Annotate types of properties expando function in a namespace"),Convert_function_to_an_ES2015_class:N(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:N(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:N(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:N(95005,3,"Extract_function_95005","Extract function"),Extract_constant:N(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:N(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:N(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:N(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:N(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:N(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:N(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:N(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:N(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:N(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:N(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:N(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:N(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:N(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:N(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:N(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:N(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:N(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:N(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:N(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:N(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:N(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:N(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:N(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:N(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:N(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:N(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:N(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:N(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:N(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:N(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:N(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:N(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:N(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:N(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:N(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:N(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:N(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:N(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:N(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:N(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:N(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:N(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:N(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:N(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:N(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:N(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:N(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:N(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:N(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:N(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:N(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:N(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:N(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:N(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:N(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:N(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:N(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:N(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:N(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:N(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:N(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:N(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:N(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:N(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:N(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:N(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:N(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:N(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:N(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:N(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:N(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:N(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:N(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:N(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:N(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:N(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:N(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:N(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:N(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:N(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:N(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:N(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:N(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:N(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:N(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:N(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:N(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:N(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:N(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:N(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:N(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:N(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:N(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:N(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:N(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:N(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:N(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:N(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:N(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:N(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:N(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:N(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:N(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:N(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:N(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:N(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:N(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:N(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:N(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:N(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:N(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:N(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:N(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:N(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:N(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:N(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:N(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:N(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:N(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:N(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:N(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:N(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:N(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:N(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:N(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:N(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:N(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:N(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:N(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:N(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:N(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:N(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:N(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:N(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:N(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:N(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:N(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:N(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:N(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:N(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:N(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:N(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:N(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:N(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:N(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:N(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:N(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:N(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:N(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:N(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:N(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:N(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:N(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:N(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:N(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:N(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:N(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:N(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:N(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:N(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:N(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:N(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:N(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:N(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:N(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:N(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:N(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:N(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:N(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:N(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:N(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:N(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:N(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:N(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:N(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:N(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:N(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:N(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:N(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:N(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:N(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:N(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:N(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:N(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:N(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:N(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:N(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:N(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:N(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:N(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:N(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:N(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:N(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:N(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:N(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:N(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:N(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:N(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:N(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:N(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:N(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:N(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:N(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:N(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:N(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:N(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:N(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:N(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:N(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:N(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:N(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:N(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:N(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:N(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:N(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:N(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:N(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:N(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:N(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:N(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:N(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:N(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:N(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:N(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:N(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Its_type_0_is_not_a_valid_JSX_element_type:N(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:N(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block."),_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled:N(18055,1,"_0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is__18055","'{0}' has a string type, but must have syntactically recognizable string syntax when 'isolatedModules' is enabled."),Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled:N(18056,1,"Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056","Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.")};function j_(e){return e>=80}function Tue(e){return e===32||j_(e)}var b5={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},jvt=new Map(Object.entries(b5)),ROe=new Map(Object.entries({...b5,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),MOe=new Map(Object.entries({d:1,g:2,i:4,m:8,s:16,u:32,v:64,y:128})),Bvt=new Map([[1,9],[16,5],[32,2],[64,99],[128,2]]),Uvt=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Vvt=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Jvt=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],qvt=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],zvt=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Wvt=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Gvt=/@(?:see|link)/i;function PG(e,t){if(e=2?PG(e,Jvt):PG(e,Uvt)}function Hvt(e,t){return t>=2?PG(e,qvt):PG(e,Vvt)}function LOe(e){let t=[];return e.forEach((n,i)=>{t[n]=i}),t}var $vt=LOe(ROe);function bo(e){return $vt[e]}function Jb(e){return ROe.get(e)}var Yvt=LOe(MOe);function FOe(e){return Yvt[e]}function NG(e){return MOe.get(e)}function HC(e){let t=[],n=0,i=0;for(;n127&&T_(s)&&(t.push(i),i=n);break}}return t.push(i),t}function k3(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):x5(vy(e),t,n,e.text,i)}function x5(e,t,n,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:M.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?Ub(e,HC(i)):"unknown"}`));let a=e[t]+n;return s?a>e[t+1]?e[t+1]:typeof i=="string"&&a>i.length?i.length:a:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function T_(e){return e===10||e===13||e===8232||e===8233}function IP(e){return e>=48&&e<=57}function bue(e){return IP(e)||e>=65&&e<=70||e>=97&&e<=102}function Eue(e){return e>=65&&e<=90||e>=97&&e<=122}function jOe(e){return Eue(e)||IP(e)||e===95}function C5(e){return e>=48&&e<=55}function xue(e,t){let n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return n>127}}function zo(e,t,n,i,s){if(rg(t))return t;let a=!1;for(;;){let u=e.charCodeAt(t);switch(u){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;a=!!s;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Sy(u)){t++;continue}break}return t}}var DG=7;function aw(e,t){if(M.assert(t>=0),t===0||T_(e.charCodeAt(t-1))){let n=e.charCodeAt(t);if(t+DG=0&&n127&&Sy(R)){x&&T_(R)&&(E=!0),n++;continue}break e}}return x&&(I=s(m,d,S,E,a,I)),I}function N3(e,t,n,i){return OG(!1,e,t,!1,n,i)}function D3(e,t,n,i){return OG(!1,e,t,!0,n,i)}function Aue(e,t,n,i,s){return OG(!0,e,t,!1,n,i,s)}function kue(e,t,n,i,s){return OG(!0,e,t,!0,n,i,s)}function BOe(e,t,n,i,s,a=[]){return a.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),a}function Ty(e,t){return Aue(e,t,BOe,void 0,void 0)}function L1(e,t){return kue(e,t,BOe,void 0,void 0)}function A5(e){let t=Cue.exec(e);if(t)return t[0]}function by(e,t){return Eue(e)||e===36||e===95||e>127&&E5(e,t)}function vv(e,t,n){return jOe(e)||e===36||(n===1?e===45||e===58:!1)||e>127&&Hvt(e,t)}function ap(e,t,n){let i=cw(e,0);if(!by(i,t))return!1;for(let s=Rh(i);sE,getStartPos:()=>E,getTokenEnd:()=>d,getTextPos:()=>d,getToken:()=>D,getTokenStart:()=>x,getTokenPos:()=>x,getTokenText:()=>m.substring(x,d),getTokenValue:()=>I,hasUnicodeEscape:()=>(R&1024)!==0,hasExtendedUnicodeEscape:()=>(R&8)!==0,hasPrecedingLineBreak:()=>(R&1)!==0,hasPrecedingJSDocComment:()=>(R&2)!==0,isIdentifier:()=>D===80||D>118,isReservedWord:()=>D>=83&&D<=118,isUnterminated:()=>(R&4)!==0,getCommentDirectives:()=>L,getNumericLiteralFlags:()=>R&25584,getTokenFlags:()=>R,reScanGreaterToken:Qe,reScanAsteriskEqualsToken:yt,reScanSlashToken:ir,reScanTemplateToken:ur,reScanTemplateHeadOrNoSubstitutionTemplate:tn,scanJsxIdentifier:Ri,scanJsxAttributeValue:$r,reScanJsxAttributeValue:Qs,reScanJsxToken:Mi,reScanLessThanToken:br,reScanHashToken:Di,reScanQuestionToken:As,reScanInvalidIdentifier:ft,scanJsxToken:os,scanJsDocToken:Xt,scanJSDocCommentTextToken:He,scan:tt,getText:Vi,clearCommentDirectives:uo,setText:Ys,setScriptTarget:ia,setLanguageVariant:ut,setScriptKind:Tt,setJSDocParsingMode:fe,setOnError:Sr,resetTokenState:St,setTextPos:St,setSkipJsDocLeadingAsterisks:Ce,hasLeadingAsterisks:it,tryScan:ki,lookAhead:Ti,scanRange:Pn};return M.isDebugging&&Object.defineProperty(ee,"__debugShowCurrentPositionInText",{get:()=>{let Me=ee.getText();return Me.slice(0,ee.getTokenFullStart())+"\u2551"+Me.slice(ee.getTokenFullStart())}}),ee;function W(Me){return cw(m,Me)}function pe(Me){return Me>=0&&Me=0&&Me=65&&It<=70)It+=32;else if(!(It>=48&&It<=57||It>=97&&It<=102))break;nr.push(It),d++,Nt=!1}return nr.length=S){pt+=m.substring(nr,d),R|=4,ue(v.Unterminated_string_literal);break}let Oe=K(d);if(Oe===rt){pt+=m.substring(nr,d),d++;break}if(Oe===92&&!Me){pt+=m.substring(nr,d),pt+=Te(3),nr=d;continue}if((Oe===10||Oe===13)&&!Me){pt+=m.substring(nr,d),R|=4,ue(v.Unterminated_string_literal);break}d++}return pt}function he(Me){let rt=K(d)===96;d++;let pt=d,nr="",Oe;for(;;){if(d>=S){nr+=m.substring(pt,d),R|=4,ue(v.Unterminated_template_literal),Oe=rt?15:18;break}let Nt=K(d);if(Nt===96){nr+=m.substring(pt,d),d++,Oe=rt?15:18;break}if(Nt===36&&d+1=S)return ue(v.Unexpected_end_of_text),"";let pt=K(d);switch(d++,pt){case 48:if(d>=S||!IP(K(d)))return"\0";case 49:case 50:case 51:d=55296&&nr<=56319&&d+6=56320&&Vt<=57343)return d=It,Oe+String.fromCharCode(Vt)}return Oe;case 120:for(;d1114111&&(Me&&ue(v.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,pt,d-pt),Nt=!0),d>=S?(Me&&ue(v.Unexpected_end_of_text),Nt=!0):K(d)===125?d++:(Me&&ue(v.Unterminated_Unicode_escape_sequence),Nt=!0),Nt?(R|=2048,m.substring(rt,d)):(R|=8,lw(Oe))}function Pe(){if(d+5=0&&vv(pt,e)){Me+=Ve(!0),rt=d;continue}if(pt=Pe(),!(pt>=0&&vv(pt,e)))break;R|=1024,Me+=m.substring(rt,d),Me+=lw(pt),d+=6,rt=d}else break}return Me+=m.substring(rt,d),Me}function Be(){let Me=I.length;if(Me>=2&&Me<=12){let rt=I.charCodeAt(0);if(rt>=97&&rt<=122){let pt=jvt.get(I);if(pt!==void 0)return D=pt}}return D=80}function lt(Me){let rt="",pt=!1,nr=!1;for(;;){let Oe=K(d);if(Oe===95){R|=512,pt?(pt=!1,nr=!0):ue(nr?v.Multiple_consecutive_numeric_separators_are_not_permitted:v.Numeric_separators_are_not_allowed_here,d,1),d++;continue}if(pt=!0,!IP(Oe)||Oe-48>=Me)break;rt+=m[d],d++,nr=!1}return K(d-1)===95&&ue(v.Numeric_separators_are_not_allowed_here,d-1,1),rt}function ze(){return K(d)===110?(I+="n",R&384&&(I=lO(I)+"n"),d++,10):(I=""+(R&128?parseInt(I.slice(2),2):R&256?parseInt(I.slice(2),8):+I),9)}function tt(){for(E=d,R=0,J=!1;;){if(x=d,d>=S)return D=1;let Me=W(d);if(d===0&&Me===35&&IG(m,d)){if(d=wG(m,d),t)continue;return D=6}switch(Me){case 10:case 13:if(R|=1,t){d++;continue}else return Me===13&&d+1=0&&by(rt,e))return I=Ve(!0)+De(),D=Be();let pt=Pe();return pt>=0&&by(pt,e)?(d+=6,R|=1024,I=String.fromCharCode(pt)+De(),D=Be()):(ue(v.Invalid_character),d++,D=0);case 35:if(d!==0&&m[d+1]==="!")return ue(v.can_only_be_used_at_the_start_of_a_file,d,2),d++,D=0;let nr=W(d+1);if(nr===92){d++;let It=ke();if(It>=0&&by(It,e))return I="#"+Ve(!0)+De(),D=81;let Vt=Pe();if(Vt>=0&&by(Vt,e))return d+=6,R|=1024,I="#"+String.fromCharCode(Vt)+De(),D=81;d--}return by(nr,e)?(d++,gt(nr,e)):(I="#",ue(v.Invalid_character,d++,Rh(Me))),D=81;case 65533:return ue(v.File_appears_to_be_binary,0,0),d=S,D=8;default:let Oe=gt(Me,e);if(Oe)return D=Oe;if(Dg(Me)){d+=Rh(Me);continue}else if(T_(Me)){R|=1,d+=Rh(Me);continue}let Nt=Rh(Me);return ue(v.Invalid_character,d,Nt),d+=Nt,D=0}}}function we(){switch(q){case 0:return!0;case 1:return!1}return $!==3&&$!==4?!0:q===3?!1:Gvt.test(m.slice(E,d))}function ft(){M.assert(D===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),d=x=E,R=0;let Me=W(d),rt=gt(Me,99);return rt?D=rt:(d+=Rh(Me),D)}function gt(Me,rt){let pt=Me;if(by(pt,rt)){for(d+=Rh(pt);d=S)return D=1;let rt=K(d);if(rt===60)return K(d+1)===47?(d+=2,D=31):(d++,D=30);if(rt===123)return d++,D=19;let pt=0;for(;d0)break;Sy(rt)||(pt=d)}d++}return I=m.substring(E,d),pt===-1?13:12}function Ri(){if(j_(D)){for(;d=S)return D=1;for(let rt=K(d);d=0&&Dg(K(d-1))&&!(d+1=S)return D=1;let Me=W(d);switch(d+=Rh(Me),Me){case 9:case 11:case 12:case 32:for(;d=0&&by(rt,e))return I=Ve(!0)+De(),D=Be();let pt=Pe();return pt>=0&&by(pt,e)?(d+=6,R|=1024,I=String.fromCharCode(pt)+De(),D=Be()):(d++,D=0)}if(by(Me,e)){let rt=Me;for(;d=0),d=Me,E=Me,x=Me,D=0,I=void 0,R=0}function Ce(Me){F+=Me?1:-1}function it(){return J}}function cw(e,t){return e.codePointAt(t)}function Rh(e){return e>=65536?2:e===-1?0:1}function Kvt(e){if(M.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}var Xvt=String.fromCodePoint?e=>String.fromCodePoint(e):Kvt;function lw(e){return Xvt(e)}var UOe=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),VOe=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),JOe=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),I3={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};I3.Script_Extensions=I3.Script;function Su(e){return zp(e)||op(e)}function wP(e){return BC(e,eO,Q9)}function w3(e){switch(Qo(e)){case 99:return"lib.esnext.full.d.ts";case 10:return"lib.es2023.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function bl(e){return e.start+e.length}function Pue(e){return e.length===0}function RG(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function Nue(e,t){return t.start>=e.start&&bl(t)<=bl(e)}function qOe(e,t){return Due(e,t)!==void 0}function Due(e,t){let n=wue(e,t);return n&&n.length===0?void 0:n}function zOe(e,t){return R3(e.start,e.length,t.start,t.length)}function k5(e,t,n){return R3(e.start,e.length,t,n)}function R3(e,t,n,i){let s=e+t,a=n+i;return n<=s&&a>=e}function Iue(e,t){return t<=bl(e)&&t>=e.start}function wue(e,t){let n=Math.max(e.start,t.start),i=Math.min(bl(e),bl(t));return n<=i?wl(n,i):void 0}function Gu(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function wl(e,t){return Gu(e,t-e)}function uw(e){return Gu(e.span.start,e.newLength)}function Oue(e){return Pue(e.span)&&e.newLength===0}function M3(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var P5=M3(Gu(0,0),0);function Rue(e){if(e.length===0)return P5;if(e.length===1)return e[0];let t=e[0],n=t.span.start,i=bl(t.span),s=n+t.newLength;for(let a=1;a=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Zi(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function In(e){return Zi(e.escapedText)}function Jx(e){let t=Jb(e.escapedText);return t?ci(t,af):void 0}function Qc(e){return e.valueDeclaration&&B_(e.valueDeclaration)?In(e.valueDeclaration.name):Zi(e.escapedName)}function GOe(e){let t=e.parent.parent;if(t){if(f_(t))return FG(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return FG(t.declarationList.declarations[0]);break;case 244:let n=t.expression;switch(n.kind===226&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 211:return n.name;case 212:let i=n.argumentExpression;if($e(i))return i}break;case 217:return FG(t.expression);case 256:{if(f_(t.statement)||Pt(t.statement))return FG(t.statement);break}}}}function FG(e){let t=Ns(e);return t&&$e(t)?t:void 0}function L3(e,t){return!!(Hu(e)&&$e(e.name)&&In(e.name)===In(t)||fl(e)&&Dt(e.declarationList.declarations,n=>L3(n,t)))}function Bue(e){return e.name||GOe(e)}function Hu(e){return!!e.name}function N5(e){switch(e.kind){case 80:return e;case 348:case 341:{let{name:n}=e;if(n.kind===166)return n.right;break}case 213:case 226:{let n=e;switch(ll(n)){case 1:case 4:case 5:case 3:return x9(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 346:return Bue(e);case 340:return GOe(e);case 277:{let{expression:n}=e;return $e(n)?n:void 0}case 212:let t=e;if(E9(t))return t.argumentExpression}return e.name}function Ns(e){if(e!==void 0)return N5(e)||(ic(e)||fc(e)||tu(e)?D5(e):void 0)}function D5(e){if(e.parent){if(ql(e.parent)||Zo(e.parent))return e.parent.name;if(Dn(e.parent)&&e===e.parent.right){if($e(e.parent.left))return e.parent.left;if(ac(e.parent.left))return x9(e.parent.left)}else if(Ci(e.parent)&&$e(e.parent.name))return e.parent.name}else return}function F1(e){if(Gp(e))return ti(e.modifiers,pu)}function qb(e){if(_i(e,98303))return ti(e.modifiers,Do)}function HOe(e,t){if(e.name)if($e(e.name)){let n=e.name.escapedText;return j3(e.parent,t).filter(i=>Nd(i)&&$e(i.name)&&i.name.escapedText===n)}else{let n=e.parent.parameters.indexOf(e);M.assert(n>-1,"Parameters should always be in their parents' parameter list");let i=j3(e.parent,t).filter(Nd);if(nom(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function Vue(e){return $Oe(e,!1)}function Jue(e){return $Oe(e,!0)}function que(e){return!!Yd(e,Nd)}function zue(e){return Yd(e,WA)}function Wue(e){return w5(e,Yj)}function jG(e){return Yd(e,rme)}function YOe(e){return Yd(e,gY)}function Gue(e){return Yd(e,gY,!0)}function KOe(e){return Yd(e,hY)}function Hue(e){return Yd(e,hY,!0)}function XOe(e){return Yd(e,yY)}function $ue(e){return Yd(e,yY,!0)}function QOe(e){return Yd(e,vY)}function Yue(e){return Yd(e,vY,!0)}function Kue(e){return Yd(e,Hj,!0)}function BG(e){return Yd(e,SY)}function Xue(e){return Yd(e,SY,!0)}function UG(e){return Yd(e,vM)}function I5(e){return Yd(e,TY)}function Que(e){return Yd(e,$j)}function ZOe(e){return Yd(e,om)}function VG(e){return Yd(e,Kj)}function tT(e){let t=Yd(e,wO);if(t&&t.typeExpression&&t.typeExpression.type)return t}function rT(e){let t=Yd(e,wO);return!t&&is(e)&&(t=jn(RP(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function F3(e){let t=Que(e);if(t&&t.typeExpression)return t.typeExpression.type;let n=tT(e);if(n&&n.typeExpression){let i=n.typeExpression.type;if(_f(i)){let s=jn(i.members,LA);return s&&s.type}if(Vh(i)||EN(i))return i.type}}function j3(e,t){var n;if(!NR(e))return ve;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){let s=RH(e,t);M.assert(s.length<2||s[0]!==s[1]),i=To(s,a=>sg(a)?a.tags:a),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function nT(e){return j3(e,!1)}function e6e(e){return j3(e,!0)}function Yd(e,t,n){return jn(j3(e,n),t)}function w5(e,t){return nT(e).filter(t)}function t6e(e,t){return nT(e).filter(n=>n.kind===t)}function B3(e){return typeof e=="string"?e:e?.map(t=>t.kind===321?t.text:Zvt(t)).join("")}function Zvt(e){let t=e.kind===324?"link":e.kind===325?"linkcode":"linkplain",n=e.name?lp(e.name):"",i=e.name&&(e.text===""||e.text.startsWith("://"))?"":" ";return`{@${t} ${n}${i}${e.text}}`}function j1(e){if(k0(e)){if(xN(e.parent)){let t=ZP(e.parent);if(t&&kt(t.tags))return To(t.tags,n=>om(n)?n.typeParameters:void 0)}return ve}if(Qd(e))return M.assert(e.parent.kind===320),To(e.parent.tags,t=>om(t)?t.typeParameters:void 0);if(e.typeParameters||mme(e)&&e.typeParameters)return e.typeParameters;if(vn(e)){let t=j9(e);if(t.length)return t;let n=rT(e);if(n&&Vh(n)&&n.typeParameters)return n.typeParameters}return ve}function MP(e){return e.constraint?e.constraint:om(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function xy(e){return e.kind===80||e.kind===81}function U3(e){return e.kind===178||e.kind===177}function O5(e){return Hn(e)&&!!(e.flags&64)}function JG(e){return cc(e)&&!!(e.flags&64)}function qx(e){return to(e)&&!!(e.flags&64)}function b_(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function fw(e){return b_(e)&&!JA(e)&&!!e.questionDotToken}function R5(e){return fw(e.parent)&&e.parent.expression===e}function pw(e){return!b_(e.parent)||fw(e.parent)||e!==e.parent.expression}function qG(e){return e.kind===226&&e.operatorToken.kind===61}function Xm(e){return Yp(e)&&$e(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function km(e){return Ml(e,8)}function M5(e){return JA(e)&&!!(e.flags&64)}function dw(e){return e.kind===252||e.kind===251}function zG(e){return e.kind===280||e.kind===279}function mw(e){return e.kind===348||e.kind===341}function r6e(e){return V3(e.kind)}function V3(e){return e>=166}function WG(e){return e>=0&&e<=165}function $C(e){return WG(e.kind)}function zb(e){return Ha(e,"pos")&&Ha(e,"end")}function gw(e){return 9<=e&&e<=15}function Wb(e){return gw(e.kind)}function GG(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function B1(e){return 15<=e&&e<=18}function Zue(e){return B1(e.kind)}function L5(e){let t=e.kind;return t===17||t===18}function YC(e){return pf(e)||E_(e)}function hw(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function e_e(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function iT(e){return hw(e)||e_e(e)}function HG(e){return e.kind===11||B1(e.kind)}function t_e(e){return jo(e)||$e(e)}function Ec(e){var t;return $e(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function zx(e){var t;return es(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function J3(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function B_(e){return(Ds(e)||XC(e))&&es(e.name)}function LP(e){return Hn(e)&&es(e.name)}function Sv(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function yw(e){return!!(dA(e)&31)}function $G(e){return yw(e)||e===126||e===164||e===129}function Do(e){return Sv(e.kind)}function xf(e){let t=e.kind;return t===166||t===80}function Ol(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function Wx(e){let t=e.kind;return t===80||t===206||t===207}function Us(e){return!!e&&KC(e.kind)}function FP(e){return!!e&&(KC(e.kind)||$c(e))}function $a(e){return e&&n6e(e.kind)}function vw(e){return e.kind===112||e.kind===97}function n6e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function KC(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return n6e(e)}}function YG(e){return qi(e)||Gg(e)||Js(e)&&Us(e.parent)}function _u(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function vi(e){return e&&(e.kind===263||e.kind===231)}function U1(e){return e&&(e.kind===177||e.kind===178)}function Cf(e){return Ds(e)&&Bg(e)}function r_e(e){return vn(e)&&AA(e)?(!eE(e)||!G1(e.expression))&&!Zx(e,!0):e.parent&&vi(e.parent)&&Ds(e)&&!Bg(e)}function XC(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function i6e(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function xc(e){return Do(e)||pu(e)}function Gb(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function F5(e){return Gb(e)||_u(e)}function d0(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function wi(e){return v$(e.kind)}function n_e(e){switch(e.kind){case 184:case 185:return!0}return!1}function $s(e){if(e){let t=e.kind;return t===207||t===206}return!1}function Sw(e){let t=e.kind;return t===209||t===210}function j5(e){let t=e.kind;return t===208||t===232}function q3(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function i_e(e){return Ci(e)||is(e)||W3(e)||G3(e)}function z3(e){return KG(e)||XG(e)}function KG(e){switch(e.kind){case 206:case 210:return!0}return!1}function W3(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function XG(e){switch(e.kind){case 207:case 209:return!0}return!1}function G3(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return Tu(e,!0)}function s_e(e){let t=e.kind;return t===211||t===166||t===205}function H3(e){let t=e.kind;return t===211||t===166}function QG(e){return Hb(e)||K1(e)}function Hb(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function Ig(e){return e.kind===213||e.kind===214}function QC(e){let t=e.kind;return t===228||t===15}function Af(e){return s6e(km(e).kind)}function s6e(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function ZG(e){return o6e(km(e).kind)}function o6e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return s6e(e)}}function o_e(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function a_e(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Wb(e)}}function Pt(e){return e1t(km(e).kind)}function e1t(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 355:case 354:case 238:return!0;default:return o6e(e)}}function sT(e){let t=e.kind;return t===216||t===234}function a6e(e){return pY(e)||qj(e)}function V1(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&V1(e.statement,t)}return!1}function c_e(e){return pc(e)||Cl(e)}function l_e(e){return Dt(e,c_e)}function B5(e){return!rR(e)&&!pc(e)&&!_i(e,32)&&!U_(e)}function $3(e){return rR(e)||pc(e)||_i(e,32)}function Gx(e){return e.kind===249||e.kind===250}function U5(e){return Js(e)||Pt(e)}function eH(e){return Js(e)}function Td(e){return Fu(e)||Pt(e)}function u_e(e){let t=e.kind;return t===268||t===267||t===80}function c6e(e){let t=e.kind;return t===268||t===267}function l6e(e){let t=e.kind;return t===80||t===267}function tH(e){let t=e.kind;return t===275||t===274}function Y3(e){return e.kind===267||e.kind===266}function Qm(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Mh(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function t1t(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===346||e===338||e===348||e===202}function __e(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function f_e(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===353}function f_(e){return e.kind===168?e.parent&&e.parent.kind!==345||vn(e):t1t(e.kind)}function p_e(e){return __e(e.kind)}function K3(e){return f_e(e.kind)}function Ji(e){let t=e.kind;return f_e(t)||__e(t)||r1t(e)}function r1t(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!Xb(e)}function d_e(e){let t=e.kind;return f_e(t)||__e(t)||t===241}function m_e(e){let t=e.kind;return t===283||t===166||t===80}function Tw(e){let t=e.kind;return t===110||t===80||t===211||t===295}function X3(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function V5(e){let t=e.kind;return t===291||t===293}function g_e(e){let t=e.kind;return t===11||t===294}function p_(e){let t=e.kind;return t===286||t===285}function J5(e){let t=e.kind;return t===296||t===297}function jP(e){return e.kind>=309&&e.kind<=351}function q5(e){return e.kind===320||e.kind===319||e.kind===321||ZC(e)||BP(e)||f2(e)||k0(e)}function BP(e){return e.kind>=327&&e.kind<=351}function wg(e){return e.kind===178}function Tv(e){return e.kind===177}function Np(e){if(!NR(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function z5(e){return!!e.type}function bv(e){return!!e.initializer}function Hx(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function rH(e){return e.kind===291||e.kind===293||d0(e)}function W5(e){return e.kind===183||e.kind===233}var u6e=1073741823;function h_e(e){let t=u6e;for(let n of e){if(!n.length)continue;let i=0;for(;i0?n.parent.parameters[s-1]:void 0,u=t.text,m=a?ds(L1(u,zo(u,a.end+1,!1,!0)),Ty(u,e.pos)):L1(u,zo(u,e.pos,!1,!0));return Dt(m)&&_6e(qo(m),t)}let i=n&&EH(n,t);return!!Et(i,s=>_6e(s,t))}var iH=[],oT="tslib",bw=160,sH=1e6;function kc(e,t){let n=e.declarations;if(n){for(let i of n)if(i.kind===t)return i}}function v_e(e,t){return ti(e.declarations||ve,n=>n.kind===t)}function po(e){let t=new Map;if(e)for(let n of e)t.set(n.escapedName,n);return t}function Fh(e){return(e.flags&33554432)!==0}function UP(e){return!!(e.flags&1536)&&e.escapedName.charCodeAt(0)===34}var G5=n1t();function n1t(){var e="";let t=n=>e+=n;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(n,i)=>t(n),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Sy(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:aa,decreaseIndent:aa,clear:()=>e=""}}function H5(e,t){return e.configFilePath!==t.configFilePath||S_e(e,t)}function S_e(e,t){return VP(e,t,zY)}function T_e(e,t){return VP(e,t,Fme)}function VP(e,t,n){return e!==t&&n.some(i=>!hj(nj(e,i),nj(t,i)))}function b_e(e,t){for(;;){let n=t(e);if(n==="quit")return;if(n!==void 0)return n;if(qi(e))return;e=e.parent}}function Iu(e,t){let n=e.entries();for(let[i,s]of n){let a=t(s,i);if(a)return a}}function m0(e,t){let n=e.keys();for(let i of n){let s=t(i);if(s)return s}}function $5(e,t){e.forEach((n,i)=>{t.set(i,n)})}function Ew(e){let t=G5.getText();try{return e(G5),G5.getText()}finally{G5.clear(),G5.writeKeyword(t)}}function Q3(e){return e.end-e.pos}function oH(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function E_e(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&i1t(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function Y5(e,t,n,i,s){var a;let u=(a=t.getResolvedModule(e,n,i))==null?void 0:a.alternateResult,m=u&&(cf(t.getCompilerOptions())===2?[v.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[u]]:[v.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[u,u.includes(Fy+"@types/")?`@types/${MN(s)}`:s]]),d=m?Bs(void 0,m[0],...m[1]):t.typesPackageExists(s)?Bs(void 0,v.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s,MN(s)):t.packageBundlesTypes(s)?Bs(void 0,v.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):Bs(void 0,v.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,MN(s));return d&&(d.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),d}function i1t(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version&&e.peerDependencies===t.peerDependencies}function K5({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function J1(e){return`${K5(e)}@${e.version}${e.peerDependencies??""}`}function x_e(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function aH(e,t,n,i){M.assert(e.length===t.length);for(let s=0;s=0),vy(t)[e]}function f6e(e){let t=Jr(e),n=Eo(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Z3(e,t){M.assert(e>=0);let n=vy(t),i=e,s=t.text;if(i+1===n.length)return s.length-1;{let a=n[i],u=n[i+1]-1;for(M.assert(T_(s.charCodeAt(u)));a<=u&&T_(s.charCodeAt(u));)u--;return u}}function Q5(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function Gc(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function Kd(e){return!Gc(e)}function A_e(e,t){return Cc(e)?t===e.expression:$c(e)?t===e.modifiers:If(e)?t===e.initializer:Ds(e)?t===e.questionToken&&Cf(e):ql(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||eR(e.modifiers,t,xc):m_(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||eR(e.modifiers,t,xc):_l(e)?t===e.exclamationToken:Vc(e)?t===e.typeParameters||t===e.type||eR(e.typeParameters,t,Cc):$p(e)?t===e.typeParameters||eR(e.typeParameters,t,Cc):dp(e)?t===e.typeParameters||t===e.type||eR(e.typeParameters,t,Cc):yM(e)?t===e.modifiers||eR(e.modifiers,t,xc):!1}function eR(e,t,n){return!e||Ms(t)||!n(t)?!1:xs(e,t)}function p6e(e,t,n){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Eo(e,u.range.end).line}`,u])),i=new Map;return{getUnusedExpectations:s,markUsed:a};function s(){return Os(n.entries()).filter(([u,m])=>m.type===0&&!i.get(u)).map(([u,m])=>m)}function a(u){return n.has(`${u}`)?(i.set(`${u}`,!0),!0):!1}}function aT(e,t,n){if(Gc(e))return e.pos;if(jP(e)||e.kind===12)return zo((t??Jr(e)).text,e.pos,!1,!0);if(n&&Np(e))return aT(e.jsDoc[0],t);if(e.kind===352){t??(t=Jr(e));let i=Aa(bY(e,t));if(i)return aT(i,t,n)}return zo((t??Jr(e)).text,e.pos,!1,!1,mR(e))}function uH(e,t){let n=!Gc(e)&&Im(e)?xm(e.modifiers,pu):void 0;return n?zo((t||Jr(e)).text,n.end):aT(e,t)}function $b(e,t,n=!1){return Cw(e.text,t,n)}function o1t(e){return!!Dr(e,bT)}function e9(e){return!!(Cl(e)&&e.exportClause&&qh(e.exportClause)&&e.exportClause.name.escapedText==="default")}function Cw(e,t,n=!1){if(Gc(t))return"";let i=e.substring(n?t.pos:zo(e,t.pos),t.end);return o1t(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>s.replace(/^\s*\*/,"").trimStart()).join(`
`)),i}function Hc(e,t=!1){return $b(Jr(e),e,t)}function a1t(e){return e.pos}function qP(e,t){return gv(e,t,a1t,tc)}function Ko(e){let t=e.emitNode;return t&&t.flags||0}function Pm(e){let t=e.emitNode;return t&&t.internalFlags||0}var _H=nf(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:ve})),AsyncIterator:new Map(Object.entries({es2015:ve})),Atomics:new Map(Object.entries({es2017:ve})),SharedArrayBuffer:new Map(Object.entries({es2017:ve})),AsyncIterable:new Map(Object.entries({es2018:ve})),AsyncIterableIterator:new Map(Object.entries({es2018:ve})),AsyncGenerator:new Map(Object.entries({es2018:ve})),AsyncGeneratorFunction:new Map(Object.entries({es2018:ve})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"],esnext:["fromAsync"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"],esnext:["isWellFormed","toWellFormed"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:ve,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:ve})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),P_e=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(P_e||{});function N_e(e,t,n){if(t&&c1t(e,n))return $b(t,e);switch(e.kind){case 11:{let i=n&2?QH:n&1||Ko(e)&16777216?Uh:D9;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=n&1||Ko(e)&16777216?Uh:D9,s=e.rawText??KH(i(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return M.fail(`Literal kind '${e.kind}' not accounted for.`)}function c1t(e,t){if(Ka(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(Df(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!fM(e)}function D_e(e){return bs(e)?`"${Uh(e)}"`:""+e}function I_e(e){return Ul(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function fH(e){return(p0(e)&7)!==0||pH(e)}function pH(e){let t=jg(e);return t.kind===260&&t.parent.kind===299}function U_(e){return xl(e)&&(e.name.kind===11||Og(e))}function t9(e){return xl(e)&&e.name.kind===11}function dH(e){return xl(e)&&jo(e.name)}function w_e(e){return xl(e)||$e(e)}function tR(e){return l1t(e.valueDeclaration)}function l1t(e){return!!e&&e.kind===267&&!e.body}function O_e(e){return e.kind===307||e.kind===267||FP(e)}function Og(e){return!!(e.flags&2048)}function Yb(e){return U_(e)&&mH(e)}function mH(e){switch(e.parent.kind){case 307:return iu(e.parent);case 268:return U_(e.parent.parent)&&qi(e.parent.parent.parent)&&!iu(e.parent.parent.parent)}return!1}function gH(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!Yb(n)&&!(xl(n)&&Og(n)))}function u1t(e){return e===1||e===100||e===199}function eA(e,t){return iu(e)||u1t(J_(t))&&!!e.commonJsModuleIndicator}function hH(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:!!(q_(t,"alwaysStrict")||_me(e.statements)||iu(e)||Ad(t))}function yH(e){return!!(e.flags&33554432)||_i(e,128)}function vH(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!FP(t)}return!1}function SH(e){switch(M.type(e),e.kind){case 338:case 346:case 323:return!0;default:return TH(e)}}function TH(e){switch(M.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function tA(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function R_e(e){return tA(e)||Zb(e)}function M_e(e){return tA(e)||hR(e)}function r9(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function L_e(e){return rR(e)||xl(e)||Jh(e)||Dp(e)}function rR(e){return tA(e)||Cl(e)}function n9(e){return Dr(e.parent,t=>!!(SK(t)&1))}function Zm(e){return Dr(e.parent,t=>vH(t,t.parent))}function F_e(e,t){let n=Zm(e);for(;n;)t(n),n=Zm(n)}function Ya(e){return!e||Q3(e)===0?"(Missing)":Hc(e)}function j_e(e){return e.declaration?Ya(e.declaration.parameters[0].name):void 0}function nR(e){return e.kind===167&&!Wp(e.expression)}function Aw(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Uc(e.text);case 167:return Wp(e.expression)?Uc(e.expression.text):void 0;case 295:return CA(e);default:return M.assertNever(e)}}function rA(e){return M.checkDefined(Aw(e))}function lp(e){switch(e.kind){case 110:return"this";case 81:case 80:return Q3(e)===0?In(e):Hc(e);case 166:return lp(e.left)+"."+lp(e.right);case 211:return $e(e.name)||es(e.name)?lp(e.expression)+"."+lp(e.name):M.assertNever(e.name);case 311:return lp(e.left)+"#"+lp(e.right);case 295:return lp(e.namespace)+":"+lp(e.name);default:return M.assertNever(e)}}function mn(e,t,...n){let i=Jr(e);return bd(i,e,t,...n)}function zP(e,t,n,...i){let s=zo(e.text,t.pos);return bu(e,s,t.end-s,n,...i)}function bd(e,t,n,...i){let s=Yx(e,t);return bu(e,s.start,s.length,n,...i)}function Ay(e,t,n,i){let s=Yx(e,t);return i9(e,s.start,s.length,n,i)}function iR(e,t,n,i){let s=zo(e.text,t.pos);return i9(e,s,t.end-s,n,i)}function B_e(e,t,n){M.assertGreaterThanOrEqual(t,0),M.assertGreaterThanOrEqual(n,0),M.assertLessThanOrEqual(t,e.length),M.assertLessThanOrEqual(t+n,e.length)}function i9(e,t,n,i,s){return B_e(e.text,t,n),{file:e,start:t,length:n,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s,canonicalHead:i.canonicalHead}}function bH(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function U_e(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function V_e(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function J_e(e,...t){return{code:e.code,messageText:SA(e,...t)}}function jh(e,t){let n=Ey(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();let i=n.getTokenStart();return wl(i,n.getTokenEnd())}function q_e(e,t){let n=Ey(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function _1t(e,t){let n=zo(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=Eo(e,t.body.pos),{line:s}=Eo(e,t.body.end);if(i0?t.statements[0].pos:t.end;return wl(a,u)}case 253:case 229:{let a=zo(e.text,t.pos);return jh(e,a)}case 238:{let a=zo(e.text,t.expression.end);return jh(e,a)}case 350:{let a=zo(e.text,t.tagName.pos);return jh(e,a)}case 176:{let a=t,u=zo(e.text,a.pos),m=Ey(e.languageVersion,!0,e.languageVariant,e.text,void 0,u),d=m.scan();for(;d!==137&&d!==1;)d=m.scan();let S=m.getTokenEnd();return wl(u,S)}}if(n===void 0)return jh(e,t.pos);M.assert(!sg(n));let i=Gc(n),s=i||IA(t)?n.pos:zo(e.text,n.pos);return i?(M.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),M.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(M.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),M.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),wl(s,n.end)}function Ev(e){return e.kind===307&&!Jf(e)}function Jf(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function Xd(e){return e.scriptKind===6}function Kb(e){return!!(eT(e)&4096)}function sR(e){return!!(eT(e)&8&&!cp(e,e.parent))}function oR(e){return(p0(e)&7)===6}function aR(e){return(p0(e)&7)===4}function WP(e){return(p0(e)&7)===2}function z_e(e){let t=p0(e)&7;return t===2||t===4||t===6}function s9(e){return(p0(e)&7)===1}function Kx(e){return e.kind===213&&e.expression.kind===108}function Dp(e){return e.kind===213&&e.expression.kind===102}function GP(e){return xO(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function xv(e){return Jh(e)&&Lv(e.argument)&&jo(e.argument.literal)}function Rg(e){return e.kind===244&&e.expression.kind===11}function cR(e){return!!(Ko(e)&2097152)}function o9(e){return cR(e)&&El(e)}function f1t(e){return $e(e.name)&&!e.initializer}function a9(e){return cR(e)&&fl(e)&&Oi(e.declarationList.declarations,f1t)}function EH(e,t){return e.kind!==12?Ty(t.text,e.pos):void 0}function xH(e,t){let n=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?ds(L1(t,e.pos),Ty(t,e.pos)):Ty(t,e.pos);return ti(n,i=>i.end<=e.end&&t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}var W_e=/^(\/\/\/\s*/,p1t=/^(\/\/\/\s*/,d1t=/^(\/\/\/\s*/,G_e=/^(\/\/\/\s*/,m1t=/^\/\/\/\s*/,g1t=/^(\/\/\/\s*/;function Mg(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return h6e(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),M.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return h6e(t);case 168:return e===t.constraint;case 345:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return xs(t.typeArguments,e)}}}return!1}function h6e(e){return Yj(e.parent)||WA(e.parent)||mp(e.parent)&&!U9(e)}function y6e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function Cv(e,t){return n(e);function n(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return qs(i,n)}}}function H_e(e,t){return n(e);function n(i){switch(i.kind){case 229:t(i);let s=i.expression;s&&n(s);return;case 266:case 264:case 267:case 265:return;default:if(Us(i)){if(i.name&&i.name.kind===167){n(i.name.expression);return}}else Mg(i)||qs(i,n)}}}function CH(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?Nh(e.typeArguments):void 0}function $_e(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function nA(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Y_e(e){return nA(e)||U1(e)}function kw(e){return e.parent.kind===261&&e.parent.parent.kind===243}function K_e(e){return vn(e)?ko(e.parent)&&Dn(e.parent.parent)&&ll(e.parent.parent)===2||c9(e.parent):!1}function c9(e){return vn(e)?Dn(e)&&ll(e)===1:!1}function X_e(e){return(Ci(e)?WP(e)&&$e(e.name)&&kw(e):Ds(e)?Ww(e)&&Jl(e):If(e)&&Ww(e))||c9(e)}function Q_e(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function AH(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function Xb(e){return e&&e.kind===241&&Us(e.parent)}function Nm(e){return e&&e.kind===174&&e.parent.kind===210}function l9(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Z_e(e){return e&&e.kind===1}function efe(e){return e&&e.kind===0}function HP(e,t,n,i){return Et(e?.properties,s=>{if(!ql(s))return;let a=Aw(s.name);return t===a||i&&i===a?n(s):void 0})}function tfe(e,t,n){return HP(e,t,i=>Ku(i.initializer)?jn(i.initializer.elements,s=>jo(s)&&s.text===n):void 0)}function Pw(e){if(e&&e.statements.length){let t=e.statements[0].expression;return ci(t,ko)}}function u9(e,t,n){return lR(e,t,i=>Ku(i.initializer)?jn(i.initializer.elements,s=>jo(s)&&s.text===n):void 0)}function lR(e,t,n){return HP(Pw(e),t,n)}function Ip(e){return Dr(e.parent,Us)}function rfe(e){return Dr(e.parent,$a)}function Lu(e){return Dr(e.parent,vi)}function nfe(e){return Dr(e.parent,t=>vi(t)||Us(t)?"quit":$c(t))}function _9(e){return Dr(e.parent,FP)}function f9(e){let t=Dr(e.parent,n=>vi(n)?"quit":pu(n));return t&&vi(t.parent)?Lu(t.parent):Lu(t??e)}function of(e,t,n){for(M.assert(e.kind!==307);;){if(e=e.parent,!e)return M.fail();switch(e.kind){case 167:if(n&&vi(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&_u(e.parent.parent)?e=e.parent.parent:_u(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function ife(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function p9(e){$e(e)&&(ru(e.parent)||El(e.parent))&&e.parent.name===e&&(e=e.parent);let t=of(e,!0,!1);return qi(t)}function sfe(e){let t=of(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function uR(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&_u(e.parent.parent)?e=e.parent.parent:_u(e.parent)&&(e=e.parent);break}}}function Qb(e){if(e.kind===218||e.kind===219){let t=e,n=e.parent;for(;n.kind===217;)t=n,n=n.parent;if(n.kind===213&&n.expression===t)return n}}function v6e(e){return e.kind===108||kf(e)}function kf(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function _R(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function d9(e){var t;return!!e&&Ci(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function ofe(e){return!!e&&(m_(e)||ql(e))&&Dn(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function fR(e){switch(e.kind){case 183:return e.typeName;case 233:return nc(e.expression)?e.expression:void 0;case 80:case 166:return e}}function m9(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function pR(e,t,n,i){if(e&&Hu(t)&&es(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return n!==void 0&&(e?ru(n):vi(n)&&!aE(t)&&!s$(t));case 177:case 178:case 174:return t.body!==void 0&&n!==void 0&&(e?ru(n):vi(n));case 169:return e?n!==void 0&&n.body!==void 0&&(n.kind===176||n.kind===174||n.kind===178)&&iE(n)!==t&&i!==void 0&&i.kind===263:!1}return!1}function $P(e,t,n,i){return Gp(t)&&pR(e,t,n,i)}function dR(e,t,n,i){return $P(e,t,n,i)||Nw(e,t,n)}function Nw(e,t,n){switch(t.kind){case 263:return Dt(t.members,i=>dR(e,i,t,n));case 231:return!e&&Dt(t.members,i=>dR(e,i,t,n));case 174:case 178:case 176:return Dt(t.parameters,i=>$P(e,i,t,n));default:return!1}}function Av(e,t){if($P(e,t))return!0;let n=Py(t);return!!n&&Nw(e,n,t)}function kH(e,t,n){let i;if(U1(t)){let{firstAccessor:s,secondAccessor:a,setAccessor:u}=W1(n.members,t),m=Gp(s)?s:a&&Gp(a)?a:void 0;if(!m||t!==m)return!1;i=u?.parameters}else _l(t)&&(i=t.parameters);if($P(e,t,n))return!0;if(i){for(let s of i)if(!sE(s)&&$P(e,s,t,n))return!0}return!1}function PH(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return PH(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function YP(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function eg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!mp(e.parent)&&!WA(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||ZC(e.parent)||IO(e.parent)||ET(e.parent)||YP(e);case 311:for(;ET(e.parent);)e=e.parent;return e.parent.kind===186||ZC(e.parent)||IO(e.parent)||ET(e.parent)||YP(e);case 81:return Dn(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||ZC(e.parent)||IO(e.parent)||ET(e.parent)||YP(e))return!0;case 9:case 10:case 11:case 15:case 110:return g9(e);default:return!1}}function g9(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let n=t;return n.initializer===e&&n.initializer.kind!==261||n.condition===e||n.incrementor===e;case 249:case 250:let i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Mg(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return eg(t)}}function h9(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function afe(e){return qh(e)&&!!e.parent.moduleSpecifier}function cT(e){return e.kind===271&&e.moduleReference.kind===283}function Dw(e){return M.assert(cT(e)),e.moduleReference.expression}function NH(e){return Zb(e)&&uN(e.initializer).arguments[0]}function iA(e){return e.kind===271&&e.moduleReference.kind!==283}function kv(e){return e?.kind===307}function Pf(e){return vn(e)}function S6e(e){return!vn(e)}function vn(e){return!!e&&!!(e.flags&524288)}function y9(e){return!!e&&!!(e.flags&134217728)}function v9(e){return!Xd(e)}function mR(e){return!!e&&!!(e.flags&16777216)}function S9(e){return Yp(e)&&$e(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Nf(e,t){if(e.kind!==213)return!1;let{expression:n,arguments:i}=e;if(n.kind!==80||n.escapedText!=="require"||i.length!==1)return!1;let s=i[0];return!t||Ia(s)}function gR(e){return T6e(e,!1)}function Zb(e){return T6e(e,!0)}function cfe(e){return Zo(e)&&Zb(e.parent.parent)}function T6e(e,t){return Ci(e)&&!!e.initializer&&Nf(t?uN(e.initializer):e.initializer,!0)}function hR(e){return fl(e)&&e.declarationList.declarations.length>0&&Oi(e.declarationList.declarations,t=>gR(t))}function yR(e){return e===39||e===34}function T9(e,t){return $b(t,e).charCodeAt(0)===34}function Iw(e){return Dn(e)||ac(e)||$e(e)||to(e)}function vR(e){return vn(e)&&e.initializer&&Dn(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&nc(e.name)&&KP(e.name,e.initializer.left)?e.initializer.right:e.initializer}function ww(e){let t=vR(e);return t&&lT(t,G1(e.name))}function h1t(e,t){return Et(e.properties,n=>ql(n)&&$e(n.name)&&n.name.escapedText==="value"&&n.initializer&&lT(n.initializer,t))}function sA(e){if(e&&e.parent&&Dn(e.parent)&&e.parent.operatorToken.kind===64){let t=G1(e.parent.left);return lT(e.parent.right,t)||y1t(e.parent.left,e.parent.right,t)}if(e&&to(e)&&Qx(e)){let t=h1t(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function lT(e,t){if(to(e)){let n=ba(e.expression);return n.kind===218||n.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||ko(e)&&(e.properties.length===0||t))return e}function y1t(e,t,n){let i=Dn(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&lT(t.right,n);if(i&&KP(e,t.left))return i}function lfe(e){let t=Ci(e.parent)?e.parent.name:Dn(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&lT(e.right,G1(t))&&nc(t)&&KP(t,e.left)}function DH(e){if(Dn(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Dn(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&$e(t.left))return t.left}else if(Ci(e.parent))return e.parent.name}function KP(e,t){return Fg(e)&&Fg(t)?Zd(e)===Zd(t):xy(e)&&b9(t)&&(t.expression.kind===110||$e(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?KP(e,bR(t)):b9(e)&&b9(t)?g0(e)===g0(t)&&KP(e.expression,t.expression):!1}function SR(e){for(;Tu(e,!0);)e=e.right;return e}function Xx(e){return $e(e)&&e.escapedText==="exports"}function IH(e){return $e(e)&&e.escapedText==="module"}function ky(e){return(Hn(e)||TR(e))&&IH(e.expression)&&g0(e)==="exports"}function ll(e){let t=v1t(e);return t===5||vn(e)?t:0}function Qx(e){return kt(e.arguments)===3&&Hn(e.expression)&&$e(e.expression.expression)&&In(e.expression.expression)==="Object"&&In(e.expression.name)==="defineProperty"&&Wp(e.arguments[1])&&Zx(e.arguments[0],!0)}function b9(e){return Hn(e)||TR(e)}function TR(e){return cc(e)&&Wp(e.argumentExpression)}function eE(e,t){return Hn(e)&&(!t&&e.expression.kind===110||$e(e.name)&&Zx(e.expression,!0))||E9(e,t)}function E9(e,t){return TR(e)&&(!t&&e.expression.kind===110||nc(e.expression)||eE(e.expression,!0))}function Zx(e,t){return nc(e)||eE(e,t)}function bR(e){return Hn(e)?e.name:e.argumentExpression}function v1t(e){if(to(e)){if(!Qx(e))return 0;let t=e.arguments[0];return Xx(t)||ky(t)?8:eE(t)&&g0(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!ac(e.left)||S1t(SR(e))?0:Zx(e.left.expression,!0)&&g0(e.left)==="prototype"&&ko(wH(e))?6:ER(e.left)}function S1t(e){return UA(e)&&Df(e.expression)&&e.expression.text==="0"}function x9(e){if(Hn(e))return e.name;let t=ba(e.argumentExpression);return Df(t)||Ia(t)?t:e}function g0(e){let t=x9(e);if(t){if($e(t))return t.escapedText;if(Ia(t)||Df(t))return Uc(t.text)}}function ER(e){if(e.expression.kind===110)return 4;if(ky(e))return 2;if(Zx(e.expression,!0)){if(G1(e.expression))return 3;let t=e;for(;!$e(t.expression);)t=t.expression;let n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&g0(t)==="exports")&&eE(e))return 1;if(Zx(e,!0)||cc(e)&&N9(e))return 5}return 0}function wH(e){for(;Dn(e.right);)e=e.right;return e.right}function xR(e){return Dn(e)&&ll(e)===3}function ufe(e){return vn(e)&&e.parent&&e.parent.kind===244&&(!cc(e)||TR(e))&&!!tT(e.parent)}function CR(e,t){let{valueDeclaration:n}=e;(!n||!(t.flags&33554432&&!vn(t)&&!(n.flags&33554432))&&Iw(n)&&!Iw(t)||n.kind!==t.kind&&w_e(n))&&(e.valueDeclaration=t)}function _fe(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||Ci(t)&&t.initializer&&Us(t.initializer)}function Ow(e){var t,n;switch(e.kind){case 260:case 208:return(t=Dr(e.initializer,i=>Nf(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:case 351:return ci(e.moduleSpecifier,Ia);case 271:return ci((n=ci(e.moduleReference,A0))==null?void 0:n.expression,Ia);case 273:case 280:return ci(e.parent.moduleSpecifier,Ia);case 274:case 281:return ci(e.parent.parent.moduleSpecifier,Ia);case 276:return ci(e.parent.parent.parent.moduleSpecifier,Ia);case 205:return xv(e)?e.argument.literal:void 0;default:M.assertNever(e)}}function Rw(e){return AR(e)||M.failBadSyntaxKind(e.parent)}function AR(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return Dp(e.parent)||Nf(e.parent,!1)?e.parent:void 0;case 201:return M.assert(jo(e)),ci(e.parent.parent,Jh);default:return}}function oA(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return xv(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return M.assertNever(e)}}function XP(e){switch(e.kind){case 272:return e.importClause&&ci(e.importClause.namedBindings,Ry);case 271:return e;case 278:return e.exportClause&&ci(e.exportClause,qh);default:return M.assertNever(e)}}function aA(e){return(e.kind===272||e.kind===351)&&!!e.importClause&&!!e.importClause.name}function ffe(e,t){if(e.name){let n=t(e);if(n)return n}if(e.namedBindings){let n=Ry(e.namedBindings)?t(e.namedBindings):Et(e.namedBindings.elements,t);if(n)return n}}function cA(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function QP(e){let t=EN(e)?Aa(e.parameters):void 0,n=ci(t&&t.name,$e);return!!n&&n.escapedText==="new"}function Qd(e){return e.kind===346||e.kind===338||e.kind===340}function kR(e){return Qd(e)||sm(e)}function T1t(e){return wu(e)&&Dn(e.expression)&&e.expression.operatorToken.kind===64?SR(e.expression):void 0}function b6e(e){return wu(e)&&Dn(e.expression)&&ll(e.expression)!==0&&Dn(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function OH(e){switch(e.kind){case 243:let t=lA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function lA(e){return fl(e)?Aa(e.declarationList.declarations):void 0}function E6e(e){return xl(e)&&e.body&&e.body.kind===267?e.body:void 0}function PR(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function NR(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function RH(e,t){let n;nA(e)&&bv(e)&&Np(e.initializer)&&(n=On(n,x6e(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(Np(i)&&(n=On(n,x6e(e,i.jsDoc))),i.kind===169){n=On(n,(t?Uue:RP)(i));break}if(i.kind===168){n=On(n,(t?Jue:Vue)(i));break}i=MH(i)}return n||ve}function x6e(e,t){let n=qo(t);return To(t,i=>{if(i===n){let s=ti(i.tags,a=>b1t(e,a));return i.tags===s?[i]:s}else return ti(i.tags,xN)})}function b1t(e,t){return!(wO(t)||Kj(t))||!t.parent||!sg(t.parent)||!ff(t.parent.parent)||t.parent.parent===e}function MH(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||E6e(t)||Tu(e))return t;if(t.parent&&(lA(t.parent)===e||Tu(t)))return t.parent;if(t.parent&&t.parent.parent&&(lA(t.parent.parent)||OH(t.parent.parent)===e||b6e(t.parent.parent)))return t.parent.parent}function DR(e){if(e.symbol)return e.symbol;if(!$e(e.name))return;let t=e.name.escapedText,n=uT(e);if(!n)return;let i=jn(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function C9(e){if(sg(e.parent)&&e.parent.tags){let t=jn(e.parent.tags,Qd);if(t)return t}return uT(e)}function LH(e){return w5(e,xN)}function uT(e){let t=_T(e);if(t)return If(t)&&t.type&&Us(t.type)?t.type:Us(t)?t:void 0}function _T(e){let t=tE(e);if(t)return b6e(t)||T1t(t)||OH(t)||lA(t)||E6e(t)||t}function tE(e){let t=ZP(e);if(!t)return;let n=t.parent;if(n&&n.jsDoc&&t===yc(n.jsDoc))return n}function ZP(e){return Dr(e.parent,sg)}function pfe(e){let t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&jn(n,i=>i.name.escapedText===t)}function C6e(e){return!!e.typeArguments}var dfe=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(dfe||{});function mfe(e){let t=e.parent;for(;;){switch(t.kind){case 226:let n=t,i=n.operatorToken.kind;return v0(i)&&n.left===e?n:void 0;case 224:case 225:let s=t,a=s.operator;return a===46||a===47?s:void 0;case 249:case 250:let u=t;return u.initializer===e?u:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function fT(e){let t=mfe(e);if(!t)return 0;switch(t.kind){case 226:let n=t.operatorToken.kind;return n===64||Gw(n)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Pv(e){return!!mfe(e)}function E1t(e){let t=ba(e.right);return t.kind===226&&OY(t.operatorToken.kind)}function FH(e){let t=mfe(e);return!!t&&Tu(t,!0)&&E1t(t)}function gfe(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function uA(e){return ic(e)||fc(e)||XC(e)||El(e)||Vc(e)}function A6e(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function IR(e){return A6e(e,196)}function h0(e){return A6e(e,217)}function hfe(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function Mw(e){for(;o2(e);)e=e.type;return e}function ba(e,t){return Ml(e,t?17:1)}function jH(e){return e.kind!==211&&e.kind!==212?!1:(e=h0(e.parent),e&&e.kind===220)}function rE(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function Bh(e){return!qi(e)&&!$s(e)&&f_(e.parent)&&e.parent.name===e}function Lw(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Go(t))return t.parent;case 80:if(f_(t))return t.name===e?t:void 0;if(uf(t)){let n=t.parent;return Nd(n)&&n.name===t?n:void 0}else{let n=t.parent;return Dn(n)&&ll(n)!==0&&(n.left.symbol||n.symbol)&&Ns(n)===e?n:void 0}case 81:return f_(t)&&t.name===e?t:void 0;default:return}}function wR(e){return Wp(e)&&e.parent.kind===167&&f_(e.parent.parent)}function yfe(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function k6e(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&eN(e)?!0:vn(e)&&(Dn(e)&&ll(e)===2&&eN(e)||Hn(e)&&Dn(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&OR(e.parent.right))}function BH(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return BH(e)}}function OR(e){return nc(e)||tu(e)}function eN(e){let t=UH(e);return OR(t)}function UH(e){return pc(e)?e.expression:e.right}function vfe(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function Lg(e){let t=nE(e);if(t&&vn(e)){let n=zue(e);if(n)return n.class}return t}function nE(e){let t=RR(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function tN(e){if(vn(e))return Wue(e).map(t=>t.class);{let t=RR(e.heritageClauses,119);return t?.types}}function Fw(e){return Xu(e)?jw(e)||ve:vi(e)&&ds(zC(Lg(e)),tN(e))||ve}function jw(e){let t=RR(e.heritageClauses,96);return t?t.types:void 0}function RR(e,t){if(e){for(let n of e)if(n.token===t)return n}}function pT(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function af(e){return 83<=e&&e<=165}function VH(e){return 19<=e&&e<=79}function A9(e){return af(e)||VH(e)}function k9(e){return 128<=e&&e<=165}function JH(e){return af(e)&&!k9(e)}function P6e(e){return 119<=e&&e<=127}function _A(e){let t=Jb(e);return t!==void 0&&JH(t)}function N6e(e){let t=Jb(e);return t!==void 0&&af(t)}function qH(e){let t=Jx(e);return!!t&&!k9(t)}function rN(e){return 2<=e&&e<=7}var Sfe=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(Sfe||{});function Rl(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:_i(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function Bw(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&_i(e,1024)}return!1}function Wp(e){return Ia(e)||Df(e)}function P9(e){return tS(e)&&(e.operator===40||e.operator===41)&&Df(e.operand)}function y0(e){let t=Ns(e);return!!t&&N9(t)}function N9(e){if(!(e.kind===167||e.kind===212))return!1;let t=cc(e)?ba(e.argumentExpression):e.expression;return!Wp(t)&&!P9(t)}function e2(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Uc(e.text);case 167:let t=e.expression;return Wp(t)?Uc(t.text):P9(t)?t.operator===41?bo(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return CA(e);default:return M.assertNever(e)}}function Fg(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Zd(e){return xy(e)?In(e):ig(e)?mO(e):e.text}function Uw(e){return xy(e)?e.escapedText:ig(e)?CA(e):Uc(e.text)}function D6e(e){return`__@${Po(e)}@${e.escapedName}`}function MR(e,t){return`__#${Po(e)}@${t}`}function LR(e){return fs(e.escapedName,"__@")}function Tfe(e){return fs(e.escapedName,"__#")}function I6e(e){return e.kind===80&&e.escapedText==="Symbol"}function bfe(e){return $e(e)?In(e)==="__proto__":jo(e)&&e.text==="__proto__"}function Vw(e,t){switch(e=Ml(e),e.kind){case 231:if(UK(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function zH(e){switch(e.kind){case 303:return!bfe(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return $e(e.name)&&!!e.initializer;case 169:return $e(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return $e(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return $e(e.left)}break;case 277:return!0}return!1}function up(e,t){if(!zH(e))return!1;switch(e.kind){case 303:return Vw(e.initializer,t);case 304:return Vw(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return Vw(e.initializer,t);case 226:return Vw(e.right,t);case 277:return Vw(e.expression,t)}}function WH(e){return e.escapedText==="push"||e.escapedText==="unshift"}function dT(e){return jg(e).kind===169}function jg(e){for(;e.kind===208;)e=e.parent.parent;return e}function GH(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===307}function Ka(e){return rg(e.pos)||rg(e.end)}function w6e(e){return Ps(e,qi)||e}var Efe=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(Efe||{});function HH(e){let t=YH(e),n=e.kind===214&&e.arguments!==void 0;return $H(e.kind,t,n)}function $H(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function Jw(e){let t=YH(e),n=e.kind===214&&e.arguments!==void 0;return FR(e.kind,t,n)}function YH(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}var xfe=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(xfe||{});function FR(e,t,n){switch(e){case 355:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return jR(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function jR(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function nN(e){return ti(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function qw(){let e=[],t=[],n=new Map,i=!1;return{add:a,lookup:s,getGlobalDiagnostics:u,getDiagnostics:m};function s(d){let S;if(d.file?S=n.get(d.file.fileName):S=e,!S)return;let E=gv(S,d,ec,X9);if(E>=0)return S[E];if(~E>0&&Q9(d,S[~E-1]))return S[~E-1]}function a(d){let S;d.file?(S=n.get(d.file.fileName),S||(S=[],n.set(d.file.fileName,S),u0(t,d.file.fileName,u_))):(i&&(i=!1,e=e.slice()),S=e),u0(S,d,X9,Q9)}function u(){return i=!0,e}function m(d){if(d)return n.get(d)||[];let S=L_(t,E=>n.get(E));return e.length&&S.unshift(...e),S}}var x1t=/\$\{/g;function KH(e){return e.replace(x1t,"\\${")}function Cfe(e){return!!((e.templateFlags||0)&2048)}function XH(e){return e&&!!(wA(e)?Cfe(e):Cfe(e.head)||Dt(e.templateSpans,t=>Cfe(t.literal)))}var C1t=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,A1t=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,k1t=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,P1t=new Map(Object.entries({"	":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"}));function O6e(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function N1t(e,t,n){if(e.charCodeAt(0)===0){let i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return P1t.get(e)||O6e(e.charCodeAt(0))}function Uh(e,t){let n=t===96?k1t:t===39?A1t:C1t;return e.replace(n,N1t)}var R6e=/[^\u0000-\u007F]/g;function D9(e,t){return e=Uh(e,t),R6e.test(e)?e.replace(R6e,n=>O6e(n.charCodeAt(0))):e}var D1t=/["\u0000-\u001f\u2028\u2029\u0085]/g,I1t=/['\u0000-\u001f\u2028\u2029\u0085]/g,w1t=new Map(Object.entries({'"':""","'":"'"}));function O1t(e){return"&#x"+e.toString(16).toUpperCase()+";"}function R1t(e){return e.charCodeAt(0)===0?"�":w1t.get(e)||O1t(e.charCodeAt(0))}function QH(e,t){let n=t===39?I1t:D1t;return e.replace(n,R1t)}function em(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&M1t(e.charCodeAt(0))?e.substring(1,t-1):e}function M1t(e){return e===39||e===34||e===96}function iN(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var BR=["","    "];function I9(e){let t=BR[1];for(let n=BR.length;n<=e;n++)BR.push(BR[n-1]+t);return BR[e]}function sN(){return BR[1].length}function UR(e){var t,n,i,s,a,u=!1;function m(L){let F=HC(L);F.length>1?(s=s+F.length-1,a=t.length-L.length+qo(F),i=a-t.length===0):i=!1}function d(L){L&&L.length&&(i&&(L=I9(n)+L,i=!1),t+=L,m(L))}function S(L){L&&(u=!1),d(L)}function E(L){L&&(u=!0),d(L)}function x(){t="",n=0,i=!0,s=0,a=0,u=!1}function D(L){L!==void 0&&(t+=L,m(L),u=!1)}function I(L){L&&L.length&&S(L)}function R(L){(!i||L)&&(t+=e,s++,a=t.length,i=!0,u=!1)}return x(),{write:S,rawWrite:D,writeLiteral:I,writeLine:R,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?n*sN():t.length-a,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>u,hasTrailingWhitespace:()=>!!t.length&&Sy(t.charCodeAt(t.length-1)),clear:x,writeKeyword:S,writeOperator:S,writeParameter:S,writeProperty:S,writePunctuation:S,writeSpace:S,writeStringLiteral:S,writeSymbol:(L,F)=>S(L),writeTrailingSemicolon:S,writeComment:E}}function ZH(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){n(),e.writeLiteral(i)},writeStringLiteral(i){n(),e.writeStringLiteral(i)},writeSymbol(i,s){n(),e.writeSymbol(i,s)},writePunctuation(i){n(),e.writePunctuation(i)},writeKeyword(i){n(),e.writeKeyword(i)},writeOperator(i){n(),e.writeOperator(i)},writeParameter(i){n(),e.writeParameter(i)},writeSpace(i){n(),e.writeSpace(i)},writeProperty(i){n(),e.writeProperty(i)},writeComment(i){n(),e.writeComment(i)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function oN(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function Nv(e){return __(oN(e))}function e$(e,t,n){return t.moduleName||t$(e,t.fileName,n&&n.fileName)}function M6e(e,t){return e.getCanonicalFileName(Cs(t,e.getCurrentDirectory()))}function Afe(e,t,n){let i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;let s=oA(n);if(!(s&&Ia(s)&&!zp(s.text)&&!M6e(e,i.path).includes(M6e(e,vu(e.getCommonSourceDirectory())))))return e$(e,i)}function t$(e,t,n){let i=d=>e.getCanonicalFileName(d),s=rc(n?yi(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),a=Cs(t,e.getCurrentDirectory()),u=GC(s,a,s,i,!1),m=lf(u);return n?Vx(m):m}function kfe(e,t,n){let i=t.getCompilerOptions(),s;return i.outDir?s=lf(L9(e,t,i.outDir)):s=lf(e),s+n}function Pfe(e,t){return w9(e,t.getCompilerOptions(),t)}function w9(e,t,n){let i=t.declarationDir||t.outDir,s=i?F9(e,i,n.getCurrentDirectory(),n.getCommonSourceDirectory(),u=>n.getCanonicalFileName(u)):e,a=O9(s);return lf(s)+a}function O9(e){return Il(e,[".mjs",".mts"])?".d.mts":Il(e,[".cjs",".cts"])?".d.cts":Il(e,[".json"])?".d.json.ts":".d.ts"}function Nfe(e){return Il(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Il(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Il(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function R9(e,t){var n;if(e.paths)return e.baseUrl??M.checkDefined(e.pathsBasePath||((n=t.getCurrentDirectory)==null?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function M9(e,t,n){let i=e.getCompilerOptions();if(i.outFile){let s=J_(i),a=i.emitDeclarationOnly||s===2||s===4;return ti(e.getSourceFiles(),u=>(a||!iu(u))&&t2(u,e,n))}else{let s=t===void 0?e.getSourceFiles():[t];return ti(s,a=>t2(a,e,n))}}function t2(e,t,n){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&Pf(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!Xd(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(i.outFile)return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let s=Cs(n6(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),a=F9(e.fileName,i.outDir,t.getCurrentDirectory(),s,t.getCanonicalFileName);if(f0(e.fileName,a,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function L9(e,t,n){return F9(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function F9(e,t,n,i,s){let a=Cs(e,n);return a=s(a).indexOf(s(i))===0?a.substring(i.length):a,ii(t,a)}function VR(e,t,n,i,s,a,u){e.writeFile(n,i,s,m=>{t.add(Pc(v.Could_not_write_file_0_Colon_1,n,m))},a,u)}function L6e(e,t,n){if(e.length>Oh(e)&&!n(e)){let i=yi(e);L6e(i,t,n),t(e)}}function r$(e,t,n,i,s,a){try{i(e,t,n)}catch{L6e(yi(eo(e)),s,a),i(e,t,n)}}function zw(e,t){let n=vy(e);return sw(n,t)}function r2(e,t){return sw(e,t)}function Py(e){return jn(e.members,t=>Vc(t)&&Kd(t.body))}function aN(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&sE(e.parameters[0]);return e.parameters[t?1:0]}}function Dfe(e){let t=aN(e);return t&&t.type}function iE(e){if(e.parameters.length&&!k0(e)){let t=e.parameters[0];if(sE(t))return t}}function sE(e){return z1(e.name)}function z1(e){return!!e&&e.kind===80&&n$(e)}function fA(e){return!!Dr(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function oE(e){if(!z1(e))return!1;for(;uf(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function n$(e){return e.escapedText==="this"}function W1(e,t){let n,i,s,a;return y0(t)?(n=t,t.kind===177?s=t:t.kind===178?a=t:M.fail("Accessor has wrong kind")):Et(e,u=>{if(U1(u)&&co(u)===co(t)){let m=e2(u.name),d=e2(t.name);m===d&&(n?i||(i=u):n=u,u.kind===177&&!s&&(s=u),u.kind===178&&!a&&(a=u))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:a}}function Vl(e){if(!vn(e)&&El(e)||sm(e))return;let t=e.type;return t||!vn(e)?t:mw(e)?e.typeExpression&&e.typeExpression.type:rT(e)}function Ife(e){return e.type}function _p(e){return k0(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(vn(e)?F3(e):void 0)}function j9(e){return To(nT(e),t=>L1t(t)?t.typeParameters:void 0)}function L1t(e){return om(e)&&!(e.parent.kind===320&&(e.parent.tags.some(Qd)||e.parent.tags.some(xN)))}function wfe(e){let t=aN(e);return t&&Vl(t)}function Ofe(e,t,n,i){Rfe(e,t,n.pos,i)}function Rfe(e,t,n,i){i&&i.length&&n!==i[0].pos&&r2(e,n)!==r2(e,i[0].pos)&&t.writeLine()}function Mfe(e,t,n,i){n!==i&&r2(e,n)!==r2(e,i)&&t.writeLine()}function Lfe(e,t,n,i,s,a,u,m){if(i&&i.length>0){s&&n.writeSpace(" ");let d=!1;for(let S of i)d&&(n.writeSpace(" "),d=!1),m(e,t,n,S.pos,S.end,u),S.hasTrailingNewLine?n.writeLine():d=!0;d&&a&&n.writeSpace(" ")}}function Ffe(e,t,n,i,s,a,u){let m,d;if(u?s.pos===0&&(m=ti(Ty(e,s.pos),S)):m=Ty(e,s.pos),m){let E=[],x;for(let D of m){if(x){let I=r2(t,x.end);if(r2(t,D.pos)>=I+2)break}E.push(D),x=D}if(E.length){let D=r2(t,qo(E).end);r2(t,zo(e,s.pos))>=D+2&&(Ofe(t,n,s,m),Lfe(e,t,n,E,!1,!0,a,i),d={nodePos:s.pos,detachedCommentEndPos:qo(E).end})}}return d;function S(E){return Z5(e,E.pos)}}function cN(e,t,n,i,s,a){if(e.charCodeAt(i+1)===42){let u=DP(t,i),m=t.length,d;for(let S=i,E=u.line;S0){let R=I%sN(),L=I9((I-R)/sN());for(n.rawWrite(L);R;)n.rawWrite(" "),R--}else n.rawWrite("")}F1t(e,s,n,a,S,x),S=x}}else n.writeComment(e.substring(i,s))}function F1t(e,t,n,i,s,a){let u=Math.min(t,a-1),m=e.substring(s,u).trim();m?(n.writeComment(m),u!==t&&n.writeLine()):n.rawWrite(i)}function F6e(e,t,n){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=o$(e)|536870912),n||t&&vn(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=j6e(e)|268435456),B6e(e.modifierFlagsCache)):j1t(e.modifierFlagsCache))}function V_(e){return Ufe(e,!0)}function Vfe(e){return Ufe(e,!0,!0)}function Dv(e){return Ufe(e,!1)}function j6e(e){let t=0;return e.parent&&!is(e)&&(vn(e)&&(Gue(e)&&(t|=8388608),Hue(e)&&(t|=16777216),$ue(e)&&(t|=33554432),Yue(e)&&(t|=67108864),Kue(e)&&(t|=134217728)),Xue(e)&&(t|=65536)),t}function j1t(e){return e&65535}function B6e(e){return e&131071|(e&260046848)>>>23}function B1t(e){return B6e(j6e(e))}function Jfe(e){return o$(e)|B1t(e)}function o$(e){let t=Im(e)?Ug(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Ug(e){let t=0;if(e)for(let n of e)t|=dA(n.kind);return t}function dA(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function U6e(e){return e===57||e===56}function qfe(e){return U6e(e)||e===54}function Gw(e){return e===76||e===77||e===78}function a$(e){return Dn(e)&&Gw(e.operatorToken.kind)}function JR(e){return U6e(e)||e===61}function qR(e){return Dn(e)&&JR(e.operatorToken.kind)}function v0(e){return e>=64&&e<=79}function c$(e){let t=l$(e);return t&&!t.isImplements?t.class:void 0}function l$(e){if(C0(e)){if(mp(e.parent)&&vi(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(WA(e.parent)){let t=_T(e.parent);if(t&&vi(t))return{class:t,isImplements:!1}}}}function Tu(e,t){return Dn(e)&&(t?e.operatorToken.kind===64:v0(e.operatorToken.kind))&&Af(e.left)}function V6e(e){return Tu(e.parent)&&e.parent.left===e}function Iv(e){if(Tu(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function U9(e){return c$(e)!==void 0}function nc(e){return e.kind===80||WR(e)}function pp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function zR(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&zR(e.expression)||e.kind===217&&zR(e.expression)}function WR(e){return Hn(e)&&$e(e.name)&&nc(e.expression)}function GR(e){if(Hn(e)){let t=GR(e.expression);if(t!==void 0)return t+"."+lp(e.name)}else if(cc(e)){let t=GR(e.expression);if(t!==void 0&&Ol(e.argumentExpression))return t+"."+e2(e.argumentExpression)}else{if($e(e))return Zi(e.escapedText);if(ig(e))return mO(e)}}function G1(e){return eE(e)&&g0(e)==="prototype"}function Hw(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function u$(e){return!!e.parent&&(Hn(e.parent)&&e.parent.name===e||cc(e.parent)&&e.parent.argumentExpression===e)}function zfe(e){return uf(e.parent)&&e.parent.right===e||Hn(e.parent)&&e.parent.name===e||ET(e.parent)&&e.parent.right===e}function V9(e){return Dn(e)&&e.operatorToken.kind===104}function Wfe(e){return V9(e.parent)&&e===e.parent.right}function _$(e){return e.kind===210&&e.properties.length===0}function Gfe(e){return e.kind===209&&e.elements.length===0}function $w(e){if(!(!U1t(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function U1t(e){return e&&kt(e.declarations)>0&&_i(e.declarations[0],2048)}function J9(e){return jn(pSt,t=>wc(e,t))}function V1t(e){let t=[],n=e.length;for(let i=0;i>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):M.assert(!1,"Unexpected code point")}return t}var mA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Hfe(e){let t="",n=V1t(e),i=0,s=n.length,a,u,m,d;for(;i>2,u=(n[i]&3)<<4|n[i+1]>>4,m=(n[i+1]&15)<<2|n[i+2]>>6,d=n[i+2]&63,i+1>=s?m=d=64:i+2>=s&&(d=64),t+=mA.charAt(a)+mA.charAt(u)+mA.charAt(m)+mA.charAt(d),i+=3;return t}function J1t(e){let t="",n=0,i=e.length;for(;n>4&3,E=(u&15)<<4|m>>2&15,x=(m&3)<<6|d&63;E===0&&m!==0?i.push(S):x===0&&d!==0?i.push(S,E):i.push(S,E,x),s+=4}return J1t(i)}function f$(e,t){let n=bs(t)?t:t.readFile(e);if(!n)return;let i=KY(e,n);return i.error?void 0:i.config}function Yw(e,t){return f$(e,t)||{}}function q9(e){try{return JSON.parse(e)}catch{return}}function tg(e,t){return!t.directoryExists||t.directoryExists(e)}var q1t=`\r
`,z1t=`
`;function wv(e){switch(e.newLine){case 0:return q1t;case 1:case void 0:return z1t}}function Ed(e,t=e){return M.assert(t>=e||t===-1),{pos:e,end:t}}function z9(e,t){return Ed(e.pos,t)}function mT(e,t){return Ed(t,e.end)}function S0(e){let t=Im(e)?xm(e.modifiers,pu):void 0;return t&&!rg(t.end)?mT(e,t.end):e}function Vg(e){if(Ds(e)||_l(e))return mT(e,e.name.pos);let t=Im(e)?yc(e.modifiers):void 0;return t&&!rg(t.end)?mT(e,t.end):S0(e)}function J6e(e){return e.pos===e.end}function p$(e,t){return Ed(e,e+bo(t).length)}function n2(e,t){return Xfe(e,e,t)}function W9(e,t,n){return xd(Kw(e,n,!1),Kw(t,n,!1),n)}function Kfe(e,t,n){return xd(e.end,t.end,n)}function Xfe(e,t,n){return xd(Kw(e,n,!1),t.end,n)}function HR(e,t,n){return xd(e.end,Kw(t,n,!1),n)}function d$(e,t,n,i){let s=Kw(t,n,i);return ow(n,e.end,s)}function q6e(e,t,n){return ow(n,e.end,t.end)}function Qfe(e,t){return!xd(e.pos,e.end,t)}function xd(e,t,n){return ow(n,e,t)===0}function Kw(e,t,n){return rg(e.pos)?-1:zo(t.text,e.pos,!1,n)}function Zfe(e,t,n,i){let s=zo(n.text,e,!1,i),a=W1t(s,t,n);return ow(n,a??t,s)}function epe(e,t,n,i){let s=zo(n.text,e,!1,i);return ow(n,e,Math.min(t,s))}function W1t(e,t=0,n){for(;e-- >t;)if(!Sy(n.text.charCodeAt(e)))return e}function m$(e){let t=Ps(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function Xw(e){return ti(e.declarations,$R)}function $R(e){return Ci(e)&&e.initializer!==void 0}function g$(e){return e.watch&&Ha(e,"watch")}function Dm(e){e.close()}function ul(e){return e.flags&33554432?e.links.checkFlags:0}function Cd(e,t=!1){if(e.valueDeclaration){let n=t&&e.declarations&&jn(e.declarations,dp)||e.flags&32768&&jn(e.declarations,$p)||e.valueDeclaration,i=eT(n);return e.parent&&e.parent.flags&32?i:i&-8}if(ul(e)&6){let n=e.links.checkFlags,i=n&1024?2:n&256?1:4,s=n&2048?256:0;return i|s}return e.flags&4194304?257:0}function $u(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function lN(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function G9(e){return Qw(e)===1}function gA(e){return Qw(e)!==0}function Qw(e){let{parent:t}=e;switch(t?.kind){case 217:return Qw(t);case 225:case 224:let{operator:n}=t;return n===46||n===47?2:0;case 226:let{left:i,operatorToken:s}=t;return i===e&&v0(s.kind)?s.kind===64?1:2:0;case 211:return t.name!==e?0:Qw(t);case 303:{let a=Qw(t.parent);return e===t.name?G1t(a):a}case 304:return e===t.objectAssignmentInitializer?0:Qw(t.parent);case 209:return Qw(t);default:return 0}}function G1t(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return M.assertNever(e)}}function h$(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(typeof e[n]=="object"){if(!h$(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function qf(e,t){e.forEach(t),e.clear()}function Ny(e,t,n){let{onDeleteValue:i,onExistingValue:s}=n;e.forEach((a,u)=>{var m;t?.has(u)?s&&s(a,(m=t.get)==null?void 0:m.call(t,u),u):(e.delete(u),i(a,u))})}function Zw(e,t,n){Ny(e,t,n);let{createNewValue:i}=n;t?.forEach((s,a)=>{e.has(a)||e.set(a,i(a,s))})}function tpe(e){if(e.flags&32){let t=T0(e);return!!t&&_i(t,64)}return!1}function T0(e){var t;return(t=e.declarations)==null?void 0:t.find(vi)}function Qn(e){return e.flags&3899393?e.objectFlags:0}function z6e(e,t){return!!Am(e,n=>t(n)?!0:void 0)}function H9(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&yM(e.declarations[0])}function rpe({moduleSpecifier:e}){return jo(e)?e.text:Hc(e)}function y$(e){let t;return qs(e,n=>{Kd(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(Kd(n[i])){t=n[i];break}}),t}function tm(e,t,n=!0){return e.has(t)?!1:(e.set(t,n),!0)}function hA(e){return vi(e)||Xu(e)||_f(e)}function v$(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===312||e===313||e===314||e===315||e===316||e===317||e===318}function ac(e){return e.kind===211||e.kind===212}function S$(e){return e.kind===211?e.name:(M.assert(e.kind===212),e.argumentExpression)}function $9(e){return e.kind===275||e.kind===279}function uN(e){for(;ac(e);)e=e.expression;return e}function npe(e,t){if(ac(e.parent)&&u$(e))return n(e.parent);function n(i){if(i.kind===211){let s=t(i.name);if(s!==void 0)return s}else if(i.kind===212)if($e(i.argumentExpression)||Ia(i.argumentExpression)){let s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(ac(i.expression))return n(i.expression);if($e(i.expression))return t(i.expression)}}function _N(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 354:case 238:e=e.expression;continue}return e}}function H1t(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function $1t(e,t){this.flags=t,(M.isDebugging||kn)&&(this.checker=e)}function Y1t(e,t){this.flags=t,M.isDebugging&&(this.checker=e)}function ipe(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function K1t(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function X1t(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function Q1t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}var Yu={getNodeConstructor:()=>ipe,getTokenConstructor:()=>K1t,getIdentifierConstructor:()=>X1t,getPrivateIdentifierConstructor:()=>ipe,getSourceFileConstructor:()=>ipe,getSymbolConstructor:()=>H1t,getTypeConstructor:()=>$1t,getSignatureConstructor:()=>Y1t,getSourceMapSourceConstructor:()=>Q1t},W6e=[];function G6e(e){W6e.push(e),e(Yu)}function spe(e){Object.assign(Yu,e),Et(W6e,t=>t(Yu))}function Dy(e,t){return e.replace(/{(\d+)}/g,(n,i)=>""+M.checkDefined(t[+i]))}var Y9;function ope(e){Y9=e}function ape(e){!Y9&&e&&(Y9=e())}function Ls(e){return Y9&&Y9[e.key]||e.message}function yA(e,t,n,i,s,...a){n+i>t.length&&(i=t.length-n),B_e(t,n,i);let u=Ls(s);return Dt(a)&&(u=Dy(u,a)),{file:void 0,start:n,length:i,messageText:u,category:s.category,code:s.code,reportsUnnecessary:s.reportsUnnecessary,fileName:e}}function Z1t(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function H6e(e,t){let n=t.fileName||"",i=t.text.length;M.assertEqual(e.fileName,n),M.assertLessThanOrEqual(e.start,i),M.assertLessThanOrEqual(e.start+e.length,i);let s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(let a of e.relatedInformation)Z1t(a)&&a.fileName===n?(M.assertLessThanOrEqual(a.start,i),M.assertLessThanOrEqual(a.start+a.length,i),s.relatedInformation.push(H6e(a,t))):s.relatedInformation.push(a)}return s}function vA(e,t){let n=[];for(let i of e)n.push(H6e(i,t));return n}function bu(e,t,n,i,...s){B_e(e.text,t,n);let a=Ls(i);return Dt(s)&&(a=Dy(a,s)),{file:e,start:t,length:n,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function SA(e,...t){let n=Ls(e);return Dt(t)&&(n=Dy(n,t)),n}function Pc(e,...t){let n=Ls(e);return Dt(t)&&(n=Dy(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function K9(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function Bs(e,t,...n){let i=Ls(t);return Dt(n)&&(i=Dy(i,n)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function cpe(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function T$(e){return e.file?e.file.path:void 0}function eO(e,t){return X9(e,t)||eSt(e,t)||0}function X9(e,t){let n=b$(e),i=b$(t);return u_(T$(e),T$(t))||tc(e.start,t.start)||tc(e.length,t.length)||tc(n,i)||tSt(e,t)||0}function eSt(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?tc(t.relatedInformation.length,e.relatedInformation.length)||Et(e.relatedInformation,(n,i)=>{let s=t.relatedInformation[i];return eO(n,s)})||0:e.relatedInformation?-1:1}function tSt(e,t){let n=E$(e),i=E$(t);typeof n!="string"&&(n=n.messageText),typeof i!="string"&&(i=i.messageText);let s=typeof e.messageText!="string"?e.messageText.next:void 0,a=typeof t.messageText!="string"?t.messageText.next:void 0,u=u_(n,i);return u||(u=rSt(s,a),u)?u:e.canonicalHead&&!t.canonicalHead?-1:t.canonicalHead&&!e.canonicalHead?1:0}function rSt(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:$6e(e,t)||Y6e(e,t)}function $6e(e,t){if(e===void 0&&t===void 0)return 0;if(e===void 0)return 1;if(t===void 0)return-1;let n=tc(t.length,e.length);if(n)return n;for(let i=0;i{s.externalModuleIndicator=PM(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=PM(s)};case 2:let t=[PM];(e.jsx===4||e.jsx===5)&&t.push(iSt),t.push(sSt);let n=qp(...t);return s=>void(s.externalModuleIndicator=n(s))}}function Bfr(e){return e}var Zl={target:{dependencies:["module"],computeValue:e=>(e.target===0?void 0:e.target)??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Zl.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Zl.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(Zl.module.computeValue(e)===100||Zl.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Zl.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Zl.esModuleInterop.computeValue(e)||Zl.module.computeValue(e)===4||Zl.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=Zl.moduleResolution.computeValue(e);if(!bA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=Zl.moduleResolution.computeValue(e);if(!bA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:Zl.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Zl.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Zl.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Zl.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>q_(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>q_(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>q_(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>q_(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>q_(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>q_(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>q_(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>q_(e,"useUnknownInCatchVariables")}},Qo=Zl.target.computeValue,J_=Zl.module.computeValue,cf=Zl.moduleResolution.computeValue,lpe=Zl.moduleDetection.computeValue,Ad=Zl.isolatedModules.computeValue,Iy=Zl.esModuleInterop.computeValue,TA=Zl.allowSyntheticDefaultImports.computeValue,x$=Zl.resolvePackageJsonExports.computeValue,C$=Zl.resolvePackageJsonImports.computeValue,cE=Zl.resolveJsonModule.computeValue,Hp=Zl.declaration.computeValue,lE=Zl.preserveConstEnums.computeValue,tO=Zl.incremental.computeValue,Z9=Zl.declarationMap.computeValue,H1=Zl.allowJs.computeValue,XR=Zl.useDefineForClassFields.computeValue;function ej(e){return e>=5&&e<=99}function tj(e){switch(J_(e)){case 0:case 4:case 3:return!1}return!0}function upe(e){return e.allowUnreachableCode===!1}function _pe(e){return e.allowUnusedLabels===!1}function bA(e){return e>=3&&e<=99||e===100}function q_(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function rj(e){return Iu(qY.type,(t,n)=>t===e?n:void 0)}function A$(e){return e.useDefineForClassFields!==!1&&Qo(e)>=9}function fpe(e,t){return VP(t,e,Rme)}function ppe(e,t){return VP(t,e,Mme)}function dpe(e,t){return VP(t,e,Lme)}function nj(e,t){return t.strictFlag?q_(e,t.name):t.allowJsFlag?H1(e):e[t.name]}function ij(e){let t=e.jsx;return t===2||t===4||t===5}function sj(e,t){let n=t?.pragmas.get("jsximportsource"),i=Ms(n)?n[n.length-1]:n;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function oj(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function k$(e){let t=!1;for(let n=0;ns,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(d,S)=>(s||(s=new Map)).set(d,S),setSymlinkedDirectory:(d,S)=>{let E=rc(d,e,t);_O(E)||(E=vu(E),S!==!1&&!n?.has(E)&&(i||(i=vd())).add(S.realPath,d),(n||(n=new Map)).set(E,S))},setSymlinksFromResolutions(d,S,E){M.assert(!a),a=!0,d(x=>m(this,x.resolvedModule)),S(x=>m(this,x.resolvedTypeReferenceDirective)),E.forEach(x=>m(this,x.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>a,setSymlinksFromResolution(d){m(this,d)},hasAnySymlinks:u};function u(){return!!s?.size||!!n&&!!Iu(n,d=>!!d)}function m(d,S){if(!S||!S.originalPath||!S.resolvedFileName)return;let{resolvedFileName:E,originalPath:x}=S;d.setSymlinkedFile(rc(x,e,t),E);let[D,I]=oSt(E,x,e,t)||ve;D&&I&&d.setSymlinkedDirectory(I,{real:vu(D),realPath:vu(rc(D,e,t))})}}function oSt(e,t,n,i){let s=yu(Cs(e,n)),a=yu(Cs(t,n)),u=!1;for(;s.length>=2&&a.length>=2&&!X6e(s[s.length-2],i)&&!X6e(a[a.length-2],i)&&i(s[s.length-1])===i(a[a.length-1]);)s.pop(),a.pop(),u=!0;return u?[_0(s),_0(a)]:void 0}function X6e(e,t){return e!==void 0&&(t(e)==="node_modules"||fs(e,"@"))}function aSt(e){return TG(e.charCodeAt(0))?e.slice(1):void 0}function N$(e,t,n){let i=YW(e,t,n);return i===void 0?void 0:aSt(i)}var mpe=/[^\w\s/]/g;function Q6e(e){return e.replace(mpe,cSt)}function cSt(e){return"\\"+e}var lSt=[42,63],gpe=["node_modules","bower_components","jspm_packages"],hpe=`(?!(${gpe.join("|")})(/|$))`,Z6e={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${hpe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Spe(e,Z6e.singleAsteriskRegexFragment)},e4e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${hpe}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>Spe(e,e4e.singleAsteriskRegexFragment)},t4e={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>Spe(e,t4e.singleAsteriskRegexFragment)},ype={files:Z6e,directories:e4e,exclude:t4e};function rO(e,t,n){let i=aj(e,t,n);return!i||!i.length?void 0:`^(${i.map(u=>`(${u})`).join("|")})${n==="exclude"?"($|/)":"$"}`}function aj(e,t,n){if(!(e===void 0||e.length===0))return To(e,i=>i&&cj(i,t,n,ype[n]))}function D$(e){return!/[.*?]/.test(e)}function vpe(e,t,n){let i=e&&cj(e,t,n,ype[n]);return i&&`^(${i})${n==="exclude"?"($|/)":"$"}`}function cj(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:a}=ype[n]){let u="",m=!1,d=C3(e,t),S=qo(d);if(n!=="exclude"&&S==="**")return;d[0]=ZS(d[0]),D$(S)&&d.push("**","*");let E=0;for(let x of d){if(x==="**")u+=s;else if(n==="directories"&&(u+="(",E++),m&&(u+=bc),n!=="exclude"){let D="";x.charCodeAt(0)===42?(D+="([^./]"+i+")?",x=x.substr(1)):x.charCodeAt(0)===63&&(D+="[^./]",x=x.substr(1)),D+=x.replace(mpe,a),D!==x&&(u+=hpe),u+=D}else u+=x.replace(mpe,a);m=!0}for(;E>0;)u+=")?",E--;return u}function Spe(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function lj(e,t,n,i,s){e=eo(e),s=eo(s);let a=ii(s,e);return{includeFilePatterns:kr(aj(n,a,"files"),u=>`^${u}$`),includeFilePattern:rO(n,a,"files"),includeDirectoryPattern:rO(n,a,"directories"),excludePattern:rO(t,a,"exclude"),basePaths:uSt(e,n,i)}}function $1(e,t){return new RegExp(e,t?"":"i")}function I$(e,t,n,i,s,a,u,m,d){e=eo(e),a=eo(a);let S=lj(e,n,i,s,a),E=S.includeFilePatterns&&S.includeFilePatterns.map(J=>$1(J,s)),x=S.includeDirectoryPattern&&$1(S.includeDirectoryPattern,s),D=S.excludePattern&&$1(S.excludePattern,s),I=E?E.map(()=>[]):[[]],R=new Map,L=__(s);for(let J of S.basePaths)F(J,ii(a,J),u);return rf(I);function F(J,$,q){let ee=L(d($));if(R.has(ee))return;R.set(ee,!0);let{files:W,directories:pe}=m(J);for(let K of mo(W,u_)){let re=ii(J,K),ue=ii($,K);if(!(t&&!Il(re,t))&&!(D&&D.test(ue)))if(!E)I[0].push(re);else{let ce=Va(E,ne=>ne.test(ue));ce!==-1&&I[ce].push(re)}}if(!(q!==void 0&&(q--,q===0)))for(let K of mo(pe,u_)){let re=ii(J,K),ue=ii($,K);(!x||x.test(ue))&&(!D||!D.test(ue))&&F(re,ue,q)}}}function uSt(e,t,n){let i=[e];if(t){let s=[];for(let a of t){let u=op(a)?a:eo(ii(e,a));s.push(_St(u))}s.sort(AP(!n));for(let a of s)Oi(i,u=>!Cm(u,a,e,!n))&&i.push(a)}return i}function _St(e){let t=VI(e,lSt);return t<0?PP(e)?ZS(yi(e)):e:e.substring(0,e.lastIndexOf(bc,t))}function uj(e,t){return t||_j(e)||3}function _j(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var nO=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],w$=rf(nO),fSt=[...nO,[".json"]],pSt=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Tpe=[[".js",".jsx"],[".mjs"],[".cjs"]],fN=rf(Tpe),O$=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],dSt=[...O$,[".json"]],fj=[".d.ts",".d.cts",".d.mts"],pj=[".ts",".cts",".mts",".tsx"],dj=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function iO(e,t){let n=e&&H1(e);if(!t||t.length===0)return n?O$:nO;let i=n?O$:nO,s=rf(i);return[...i,...Yi(t,u=>u.scriptKind===7||n&&mSt(u.scriptKind)&&!s.includes(u.extension)?[u.extension]:void 0)]}function QR(e,t){return!e||!cE(e)?t:t===O$?dSt:t===nO?fSt:[...t,[".json"]]}function mSt(e){return e===1||e===2}function wy(e){return Dt(fN,t=>wc(e,t))}function EA(e){return Dt(w$,t=>wc(e,t))}var bpe=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(bpe||{});function Epe({imports:e},t=qp(wy,EA)){return di(e,({text:n})=>zp(n)&&!Il(n,dj)?t(n):void 0)||!1}function xpe(e,t,n,i){let s=cf(n),a=3<=s&&s<=99;if(e==="js"||t===99&&a)return LN(n)&&u()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!LN(n))return i&&Epe(i)?2:0;return u();function u(){let m=!1,d=i?.imports.length?i.imports:i&&Pf(i)?gSt(i).map(S=>S.arguments[0]):ve;for(let S of d)if(zp(S.text)){if(a&&t===1&&lX(i,S,n)===99||Il(S.text,dj))continue;if(EA(S.text))return 3;wy(S.text)&&(m=!0)}return m?2:0}}function gSt(e){let t=0,n;for(let i of e.statements){if(t>3)break;hR(i)?n=ds(n,i.declarationList.declarations.map(s=>s.initializer)):wu(i)&&Nf(i.expression,!0)?n=Ut(n,i.expression):t++}return n||ve}function Cpe(e,t,n){if(!e)return!1;let i=iO(t,n);for(let s of rf(QR(t,i)))if(wc(e,s))return!0;return!1}function r4e(e){let t=e.match(/\//g);return t?t.length:0}function ZR(e,t){return tc(r4e(e),r4e(t))}var Ape=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function lf(e){for(let t of Ape){let n=kpe(e,t);if(n!==void 0)return n}return e}function kpe(e,t){return wc(e,t)?eM(e,t):void 0}function eM(e,t){return e.substring(0,e.length-t.length)}function Y1(e,t){return A3(e,t,Ape,!1)}function pN(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function mj(e){return Yi(Pg(e),t=>pN(t))}function rg(e){return!(e>=0)}function gj(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||fs(e,".d.")&&Wc(e,".ts")}function sO(e){return gj(e)||e===".json"}function oO(e){let t=b0(e);return t!==void 0?t:M.fail(`File ${e} has unknown extension.`)}function n4e(e){return b0(e)!==void 0}function b0(e){return jn(Ape,t=>wc(e,t))}function aO(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var R$={files:ve,directories:ve};function M$(e,t){let n=[];for(let i of e){if(i===t)return t;bs(i)||n.push(i)}return $W(n,i=>i,t)}function L$(e,t){let n=e.indexOf(t);return M.assert(n!==-1),e.slice(n)}function lo(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),M.assert(e.relatedInformation!==ve,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Ppe(e,t){M.assert(e.length!==0);let n=t(e[0]),i=n;for(let s=1;si&&(i=a)}return{min:n,max:i}}function F$(e){return{pos:aT(e),end:e.end}}function j$(e,t){let n=t.pos-1,i=Math.min(e.text.length,zo(e.text,t.end)+1);return{pos:n,end:i}}function cO(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!tM(e,t)}function tM(e,t){if(e.checkJsDirective&&e.checkJsDirective.enabled===!1)return!1;if(e.scriptKind===3||e.scriptKind===4||e.scriptKind===5)return!0;let i=(e.scriptKind===1||e.scriptKind===2)&&aO(e,t);return xw(e,t.checkJs)||i||e.scriptKind===7}function hj(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&Vce(e,t,hj)}function lO(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let S=e.length-1,E=0;for(;e.charCodeAt(E)===48;)E++;return e.slice(E,S)||"0"}let n=2,i=e.length-1,s=(i-n)*t,a=new Uint16Array((s>>>4)+(s&15?1:0));for(let S=i-1,E=0;S>=n;S--,E+=t){let x=E>>>4,D=e.charCodeAt(S),R=(D<=57?D-48:10+D-(D<=70?65:97))<<(E&15);a[x]|=R;let L=R>>>16;L&&(a[x+1]|=L)}let u="",m=a.length-1,d=!0;for(;d;){let S=0;d=!1;for(let E=m;E>=0;E--){let x=S<<16|a[E],D=x/10|0;a[E]=D,S=x-D*10,D&&!d&&(m=E,d=!0)}u=S+u}return u}function uE({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Npe(e){if(yj(e,!1))return B$(e)}function B$(e){let t=e.startsWith("-"),n=lO(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function yj(e,t){if(e==="")return!1;let n=Ey(99,!1),i=!0;n.setOnError(()=>i=!1),n.setText(e+"n");let s=n.scan(),a=s===41;a&&(s=n.scan());let u=n.getTokenFlags();return i&&s===10&&n.getTokenEnd()===e.length+1&&!(u&512)&&(!t||e===uE({negative:a,base10Value:lO(n.getTokenValue())}))}function gT(e){return!!(e.flags&33554432)||h9(e)||vSt(e)||ySt(e)||!(eg(e)||hSt(e))}function hSt(e){return $e(e)&&m_(e.parent)&&e.parent.name===e}function ySt(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(_i(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function vSt(e){if(e.kind!==80)return!1;let t=Dr(e.parent,n=>{switch(n.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function Dpe(e){return Yp(e)&&$e(e.typeName)}function Ipe(e,t=hv){if(e.length<2)return!0;let n=e[0];for(let i=1,s=e.length;ie.includes(t))}function Rpe(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:n}=e;return n.kind===195?void 0:n.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:i}=e;return bE(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(BP(e))return f2(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return Gb(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 355:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return wi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return X3(e)?t.children:void 0;case 286:case 285:return wi(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return _u(e)?t.members:void 0;case 266:return nS(e)?t.members:void 0;case 307:return t.statements}}function vj(e){if(!e.typeParameters){if(Dt(e.parameters,t=>!Vl(t)))return!0;if(e.kind!==219){let t=Aa(e.parameters);if(!(t&&sE(t)))return!0}}return!1}function fO(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Mpe(e){return e.kind===260&&e.parent.kind===299}function K1(e){return e.kind===218||e.kind===219}function _E(e){return e.replace(/\$/gm,()=>"\\$")}function Oy(e){return(+e).toString()===e}function Sj(e,t,n,i,s){let a=s&&e==="new";return!a&&ap(e,t)?U.createIdentifier(e):!i&&!a&&Oy(e)&&+e>=0?U.createNumericLiteral(+e):U.createStringLiteral(e,!!n)}function pO(e){return!!(e.flags&262144&&e.isThisType)}function Tj(e){let t=0,n=0,i=0,s=0,a;(S=>{S[S.BeforeNodeModules=0]="BeforeNodeModules",S[S.NodeModules=1]="NodeModules",S[S.Scope=2]="Scope",S[S.PackageContent=3]="PackageContent"})(a||(a={}));let u=0,m=0,d=0;for(;m>=0;)switch(u=m,m=e.indexOf("/",u+1),d){case 0:e.indexOf(Fy,u)===u&&(t=u,n=m,d=1);break;case 1:case 2:d===1&&e.charAt(u+1)==="@"?d=2:(i=m,d=3);break;case 3:e.indexOf(Fy,u)===u?d=1:d=3;break}return s=u,d>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function s4e(e){var t;return e.kind===341?(t=e.typeExpression)==null?void 0:t.type:e.type}function xA(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function rM(e){return TT(e)||fl(e)||El(e)||ru(e)||Xu(e)||xA(e)||xl(e)&&!Yb(e)&&!Og(e)}function nM(e){if(!mw(e))return!1;let{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===316}function J$(e,t){if(e.length===0)return!1;let n=e.charCodeAt(0);return n===35?e.length>1&&by(e.charCodeAt(1),t):by(n,t)}function Lpe(e){var t;return((t=X$(e))==null?void 0:t.kind)===0}function bj(e){return vn(e)&&(e.type&&e.type.kind===316||RP(e).some(nM))}function mN(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||bj(e);case 348:case 341:return nM(e);default:return!1}}function Fpe(e){let t=e.kind;return(t===211||t===212)&&JA(e.expression)}function q$(e){return vn(e)&&ff(e)&&Np(e)&&!!VG(e)}function z$(e){return M.checkDefined(Ej(e))}function Ej(e){let t=VG(e);return t&&t.typeExpression&&t.typeExpression.type}function dO(e){return $e(e)?e.escapedText:CA(e)}function iM(e){return $e(e)?In(e):mO(e)}function jpe(e){let t=e.kind;return t===80||t===295}function CA(e){return`${e.namespace.escapedText}:${In(e.name)}`}function mO(e){return`${In(e.namespace)}:${In(e.name)}`}function W$(e){return $e(e)?In(e):mO(e)}function rm(e){return!!(e.flags&8576)}function nm(e){return e.flags&8192?e.escapedName:e.flags&384?Uc(""+e.value):M.fail()}function AA(e){return!!e&&(Hn(e)||cc(e)||Dn(e))}function Bpe(e){return e===void 0?!1:!!UN(e.attributes)}var TSt=String.prototype.replace;function kA(e,t){return TSt.call(e,"*",t)}function xj(e){return $e(e.name)?e.name.escapedText:Uc(e.name.text)}function fu(e,t=!1,n=!1,i=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:i}}function Upe({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(s,a){let u=!1,m=!1,d=!1;switch(s=ba(s),s.kind){case 224:let S=n(s.operand,a);if(m=S.resolvedOtherFiles,d=S.hasExternalReferences,typeof S.value=="number")switch(s.operator){case 40:return fu(S.value,u,m,d);case 41:return fu(-S.value,u,m,d);case 55:return fu(~S.value,u,m,d)}break;case 226:{let E=n(s.left,a),x=n(s.right,a);if(u=(E.isSyntacticallyString||x.isSyntacticallyString)&&s.operatorToken.kind===40,m=E.resolvedOtherFiles||x.resolvedOtherFiles,d=E.hasExternalReferences||x.hasExternalReferences,typeof E.value=="number"&&typeof x.value=="number")switch(s.operatorToken.kind){case 52:return fu(E.value|x.value,u,m,d);case 51:return fu(E.value&x.value,u,m,d);case 49:return fu(E.value>>x.value,u,m,d);case 50:return fu(E.value>>>x.value,u,m,d);case 48:return fu(E.value<=2)break;case 174:case 176:case 177:case 178:case 262:if(pe&3&&Pe==="arguments"){de=n;break e}break;case 218:if(pe&3&&Pe==="arguments"){de=n;break e}if(pe&16){let Be=ee.name;if(Be&&Pe===Be.escapedText){de=ee.symbol;break e}}break;case 170:ee.parent&&ee.parent.kind===169&&(ee=ee.parent),ee.parent&&(_u(ee.parent)||ee.parent.kind===263)&&(ee=ee.parent);break;case 346:case 338:case 340:case 351:let De=ZP(ee);De&&(ee=De.parent);break;case 169:Ae&&(Ae===ee.initializer||Ae===ee.name&&$s(Ae))&&(he||(he=ee));break;case 208:Ae&&(Ae===ee.initializer||Ae===ee.name&&$s(Ae))&&dT(ee)&&!he&&(he=ee);break;case 195:if(pe&262144){let Be=ee.typeParameter.name;if(Be&&Pe===Be.escapedText){de=ee.typeParameter.symbol;break e}}break;case 281:Ae&&Ae===ee.propertyName&&ee.parent.parent.moduleSpecifier&&(ee=ee.parent.parent.parent);break}$(ee,Ae)&&(xe=ee),Ae=ee,ee=om(ee)?C9(ee)||ee.parent:(Nd(ee)||$j(ee))&&uT(ee)||ee.parent}if(re&&de&&(!xe||de!==xe.symbol)&&(de.isReferenced|=pe),!de){if(Ae&&(M.assertNode(Ae,qi),Ae.commonJsModuleIndicator&&Pe==="exports"&&pe&Ae.symbol.flags))return Ae.symbol;ue||(de=u(a,Pe,pe))}if(!de&&me&&vn(me)&&me.parent&&Nf(me.parent,!1))return t;if(K){if(te&&S(me,Pe,te,de))return;de?x(me,de,pe,Ae,he,Te):E(me,W,pe,K)}return de}function F(ee,W,pe){let K=Qo(e),re=W;if(is(pe)&&re.body&&ee.valueDeclaration&&ee.valueDeclaration.pos>=re.body.pos&&ee.valueDeclaration.end<=re.body.end&&K>=2){let ne=d(re);return ne===void 0&&(ne=Et(re.parameters,ue)||!1,m(re,ne)),!ne}return!1;function ue(ne){return ce(ne.name)||!!ne.initializer&&ce(ne.initializer)}function ce(ne){switch(ne.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return ce(ne.name);case 172:return Jl(ne)?!I:ce(ne.name);default:return qG(ne)||b_(ne)?K<7:Zo(ne)&&ne.dotDotDotToken&&Kp(ne.parent)?K<4:wi(ne)?!1:qs(ne,ce)||!1}}}function J(ee,W){return ee.kind!==219&&ee.kind!==218?pE(ee)||($a(ee)||ee.kind===172&&!co(ee))&&(!W||W!==ee.name):W&&W===ee.name?!1:ee.asteriskToken||_i(ee,1024)?!0:!Qb(ee)}function $(ee,W){switch(ee.kind){case 169:return!!W&&W===ee.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function q(ee,W){if(ee.declarations){for(let pe of ee.declarations)if(pe.kind===168&&(om(pe.parent)?tE(pe.parent):pe.parent)===W)return!(om(pe.parent)&&jn(pe.parent.parent.tags,Qd))}return!1}}function Cj(e,t=!0){switch(M.type(e),e.kind){case 112:case 97:case 9:case 11:case 15:return!0;case 10:return t;case 224:return e.operator===41?Df(e.operand)||t&&fM(e.operand):e.operator===40?Df(e.operand):!1;default:return!1}}function Vpe(e){for(;e.kind===217;)e=e.expression;return e}function Jpe(e){switch(M.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:return!0;default:return!1}}function qpe(){let e,t,n,i,s;return{createBaseSourceFileNode:a,createBaseIdentifierNode:u,createBasePrivateIdentifierNode:m,createBaseTokenNode:d,createBaseNode:S};function a(E){return new(s||(s=Yu.getSourceFileConstructor()))(E,-1,-1)}function u(E){return new(n||(n=Yu.getIdentifierConstructor()))(E,-1,-1)}function m(E){return new(i||(i=Yu.getPrivateIdentifierConstructor()))(E,-1,-1)}function d(E){return new(t||(t=Yu.getTokenConstructor()))(E,-1,-1)}function S(E){return new(e||(e=Yu.getNodeConstructor()))(E,-1,-1)}}function zpe(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:S,parenthesizeRightSideOfBinary:E,parenthesizeExpressionOfComputedPropertyName:x,parenthesizeConditionOfConditionalExpression:D,parenthesizeBranchOfConditionalExpression:I,parenthesizeExpressionOfExportDefault:R,parenthesizeExpressionOfNew:L,parenthesizeLeftSideOfAccess:F,parenthesizeOperandOfPostfixUnary:J,parenthesizeOperandOfPrefixUnary:$,parenthesizeExpressionsOfCommaDelimitedList:q,parenthesizeExpressionForDisallowedComma:ee,parenthesizeExpressionOfExpressionStatement:W,parenthesizeConciseBodyOfArrowFunction:pe,parenthesizeCheckTypeOfConditionalType:K,parenthesizeExtendsTypeOfConditionalType:re,parenthesizeConstituentTypesOfUnionType:ce,parenthesizeConstituentTypeOfUnionType:ue,parenthesizeConstituentTypesOfIntersectionType:le,parenthesizeConstituentTypeOfIntersectionType:ne,parenthesizeOperandOfTypeOperator:me,parenthesizeOperandOfReadonlyTypeOperator:de,parenthesizeNonArrayTypeOfPostfixType:Ae,parenthesizeElementTypesOfTupleType:xe,parenthesizeElementTypeOfTupleType:te,parenthesizeTypeOfOptionalType:Te,parenthesizeTypeArguments:ke,parenthesizeLeadingTypeArgument:Ve};function i(De){t||(t=new Map);let Be=t.get(De);return Be||(Be=lt=>S(De,lt),t.set(De,Be)),Be}function s(De){n||(n=new Map);let Be=n.get(De);return Be||(Be=lt=>E(De,void 0,lt),n.set(De,Be)),Be}function a(De,Be,lt,ze){let tt=FR(226,De),we=$H(226,De),ft=km(Be);if(!lt&&Be.kind===219&&tt>3)return!0;let gt=Jw(ft);switch(tc(gt,tt)){case-1:return!(!lt&&we===1&&Be.kind===229);case 1:return!1;case 0:if(lt)return we===1;if(Dn(ft)&&ft.operatorToken.kind===De){if(u(De))return!1;if(De===40){let yt=ze?m(ze):0;if(gw(yt)&&yt===m(ft))return!1}}return HH(ft)===0}}function u(De){return De===42||De===52||De===51||De===53||De===28}function m(De){if(De=km(De),gw(De.kind))return De.kind;if(De.kind===226&&De.operatorToken.kind===40){if(De.cachedLiteralKind!==void 0)return De.cachedLiteralKind;let Be=m(De.left),lt=gw(Be)&&Be===m(De.right)?Be:0;return De.cachedLiteralKind=lt,lt}return 0}function d(De,Be,lt,ze){return km(Be).kind===217?Be:a(De,Be,lt,ze)?e.createParenthesizedExpression(Be):Be}function S(De,Be){return d(De,Be,!0)}function E(De,Be,lt){return d(De,lt,!1,Be)}function x(De){return RO(De)?e.createParenthesizedExpression(De):De}function D(De){let Be=FR(227,58),lt=km(De),ze=Jw(lt);return tc(ze,Be)!==1?e.createParenthesizedExpression(De):De}function I(De){let Be=km(De);return RO(Be)?e.createParenthesizedExpression(De):De}function R(De){let Be=km(De),lt=RO(Be);if(!lt)switch(_N(Be,!1).kind){case 231:case 218:lt=!0}return lt?e.createParenthesizedExpression(De):De}function L(De){let Be=_N(De,!0);switch(Be.kind){case 213:return e.createParenthesizedExpression(De);case 214:return Be.arguments?De:e.createParenthesizedExpression(De)}return F(De)}function F(De,Be){let lt=km(De);return Af(lt)&&(lt.kind!==214||lt.arguments)&&(Be||!b_(lt))?De:At(e.createParenthesizedExpression(De),De)}function J(De){return Af(De)?De:At(e.createParenthesizedExpression(De),De)}function $(De){return ZG(De)?De:At(e.createParenthesizedExpression(De),De)}function q(De){let Be=js(De,ee);return At(e.createNodeArray(Be,De.hasTrailingComma),De)}function ee(De){let Be=km(De),lt=Jw(Be),ze=FR(226,28);return lt>ze?De:At(e.createParenthesizedExpression(De),De)}function W(De){let Be=km(De);if(to(Be)){let ze=Be.expression,tt=km(ze).kind;if(tt===218||tt===219){let we=e.updateCallExpression(Be,At(e.createParenthesizedExpression(ze),ze),Be.typeArguments,Be.arguments);return e.restoreOuterExpressions(De,we,8)}}let lt=_N(Be,!1).kind;return lt===210||lt===218?At(e.createParenthesizedExpression(De),De):De}function pe(De){return!Js(De)&&(RO(De)||_N(De,!1).kind===210)?At(e.createParenthesizedExpression(De),De):De}function K(De){switch(De.kind){case 184:case 185:case 194:return e.createParenthesizedType(De)}return De}function re(De){switch(De.kind){case 194:return e.createParenthesizedType(De)}return De}function ue(De){switch(De.kind){case 192:case 193:return e.createParenthesizedType(De)}return K(De)}function ce(De){return e.createNodeArray(js(De,ue))}function ne(De){switch(De.kind){case 192:case 193:return e.createParenthesizedType(De)}return ue(De)}function le(De){return e.createNodeArray(js(De,ne))}function me(De){switch(De.kind){case 193:return e.createParenthesizedType(De)}return ne(De)}function de(De){switch(De.kind){case 198:return e.createParenthesizedType(De)}return me(De)}function Ae(De){switch(De.kind){case 195:case 198:case 186:return e.createParenthesizedType(De)}return me(De)}function xe(De){return e.createNodeArray(js(De,te))}function te(De){return he(De)?e.createParenthesizedType(De):De}function he(De){return bN(De)?De.postfix:yN(De)||Vh(De)||hN(De)||yT(De)?he(De.type):dE(De)?he(De.falseType):Z1(De)||BA(De)?he(qo(De.types)):s2(De)?!!De.typeParameter.constraint&&he(De.typeParameter.constraint):!1}function Te(De){return he(De)?e.createParenthesizedType(De):Ae(De)}function Ve(De){return n_e(De)&&De.typeParameters?e.createParenthesizedType(De):De}function Pe(De,Be){return Be===0?Ve(De):De}function ke(De){if(Dt(De))return e.createNodeArray(js(De,Pe))}}var Wpe={getParenthesizeLeftSideOfBinaryForOperator:e=>ec,getParenthesizeRightSideOfBinaryForOperator:e=>ec,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:ec,parenthesizeConditionOfConditionalExpression:ec,parenthesizeBranchOfConditionalExpression:ec,parenthesizeExpressionOfExportDefault:ec,parenthesizeExpressionOfNew:e=>ao(e,Af),parenthesizeLeftSideOfAccess:e=>ao(e,Af),parenthesizeOperandOfPostfixUnary:e=>ao(e,Af),parenthesizeOperandOfPrefixUnary:e=>ao(e,ZG),parenthesizeExpressionsOfCommaDelimitedList:e=>ao(e,zb),parenthesizeExpressionForDisallowedComma:ec,parenthesizeExpressionOfExpressionStatement:ec,parenthesizeConciseBodyOfArrowFunction:ec,parenthesizeCheckTypeOfConditionalType:ec,parenthesizeExtendsTypeOfConditionalType:ec,parenthesizeConstituentTypesOfUnionType:e=>ao(e,zb),parenthesizeConstituentTypeOfUnionType:ec,parenthesizeConstituentTypesOfIntersectionType:e=>ao(e,zb),parenthesizeConstituentTypeOfIntersectionType:ec,parenthesizeOperandOfTypeOperator:ec,parenthesizeOperandOfReadonlyTypeOperator:ec,parenthesizeNonArrayTypeOfPostfixType:ec,parenthesizeElementTypesOfTupleType:e=>ao(e,zb),parenthesizeElementTypeOfTupleType:ec,parenthesizeTypeOfOptionalType:ec,parenthesizeTypeArguments:e=>e&&ao(e,zb),parenthesizeLeadingTypeArgument:ec};function Gpe(e){return{convertToFunctionBlock:t,convertToFunctionExpression:n,convertToClassExpression:i,convertToArrayAssignmentElement:s,convertToObjectAssignmentElement:a,convertToAssignmentPattern:u,convertToObjectAssignmentPattern:m,convertToArrayAssignmentPattern:d,convertToAssignmentElementTarget:S};function t(E,x){if(Js(E))return E;let D=e.createReturnStatement(E);At(D,E);let I=e.createBlock([D],x);return At(I,E),I}function n(E){var x;if(!E.body)return M.fail("Cannot convert a FunctionDeclaration without a body");let D=e.createFunctionExpression((x=qb(E))==null?void 0:x.filter(I=>!RA(I)&&!Fj(I)),E.asteriskToken,E.name,E.typeParameters,E.parameters,E.type,E.body);return Gn(D,E),At(D,E),gO(E)&&Pj(D,!0),D}function i(E){var x;let D=e.createClassExpression((x=E.modifiers)==null?void 0:x.filter(I=>!RA(I)&&!Fj(I)),E.name,E.typeParameters,E.heritageClauses,E.members);return Gn(D,E),At(D,E),gO(E)&&Pj(D,!0),D}function s(E){if(Zo(E)){if(E.dotDotDotToken)return M.assertNode(E.name,$e),Gn(At(e.createSpreadElement(E.name),E),E);let x=S(E.name);return E.initializer?Gn(At(e.createAssignment(x,E.initializer),E),E):x}return ao(E,Pt)}function a(E){if(Zo(E)){if(E.dotDotDotToken)return M.assertNode(E.name,$e),Gn(At(e.createSpreadAssignment(E.name),E),E);if(E.propertyName){let x=S(E.name);return Gn(At(e.createPropertyAssignment(E.propertyName,E.initializer?e.createAssignment(x,E.initializer):x),E),E)}return M.assertNode(E.name,$e),Gn(At(e.createShorthandPropertyAssignment(E.name,E.initializer),E),E)}return ao(E,d0)}function u(E){switch(E.kind){case 207:case 209:return d(E);case 206:case 210:return m(E)}}function m(E){return Kp(E)?Gn(At(e.createObjectLiteralExpression(kr(E.elements,a)),E),E):ao(E,ko)}function d(E){return Fv(E)?Gn(At(e.createArrayLiteralExpression(kr(E.elements,s)),E),E):ao(E,Ku)}function S(E){return $s(E)?u(E):ao(E,Pt)}}var Hpe={convertToFunctionBlock:fo,convertToFunctionExpression:fo,convertToClassExpression:fo,convertToArrayAssignmentElement:fo,convertToObjectAssignmentElement:fo,convertToAssignmentPattern:fo,convertToObjectAssignmentPattern:fo,convertToArrayAssignmentPattern:fo,convertToAssignmentElementTarget:fo},$$=0,$pe=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))($pe||{}),o4e=[];function a4e(e){o4e.push(e)}function oM(e,t){let n=e&8?ec:Gn,i=nf(()=>e&1?Wpe:zpe(J)),s=nf(()=>e&2?Hpe:Gpe(J)),a=Ih(P=>(B,Y)=>on(B,P,Y)),u=Ih(P=>B=>vt(P,B)),m=Ih(P=>B=>Zt(B,P)),d=Ih(P=>()=>Fs(P)),S=Ih(P=>B=>M2(P,B)),E=Ih(P=>(B,Y)=>Sn(P,B,Y)),x=Ih(P=>(B,Y)=>V0(P,B,Y)),D=Ih(P=>(B,Y)=>Sp(P,B,Y)),I=Ih(P=>(B,Y)=>lh(P,B,Y)),R=Ih(P=>(B,Y,ge)=>gS(P,B,Y,ge)),L=Ih(P=>(B,Y,ge)=>ED(P,B,Y,ge)),F=Ih(P=>(B,Y,ge,nt)=>nl(P,B,Y,ge,nt)),J={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:$,createNumericLiteral:pe,createBigIntLiteral:K,createStringLiteral:ue,createStringLiteralFromNode:ce,createRegularExpressionLiteral:ne,createLiteralLikeNode:le,createIdentifier:Ae,createTempVariable:xe,createLoopVariable:te,createUniqueName:he,getGeneratedNameForNode:Te,createPrivateIdentifier:Pe,createUniquePrivateName:De,getGeneratedPrivateNameForNode:Be,createToken:ze,createSuper:tt,createThis:we,createNull:ft,createTrue:gt,createFalse:Qe,createModifier:yt,createModifiersFromModifierFlags:ir,createQualifiedName:Tr,updateQualifiedName:Ar,createComputedPropertyName:Vr,updateComputedPropertyName:fr,createTypeParameterDeclaration:ur,updateTypeParameterDeclaration:tn,createParameterDeclaration:Mi,updateParameterDeclaration:br,createDecorator:Di,updateDecorator:As,createPropertySignature:os,updatePropertySignature:Ri,createPropertyDeclaration:Qs,updatePropertyDeclaration:He,createMethodSignature:Xt,updateMethodSignature:qr,createMethodDeclaration:Pn,updateMethodDeclaration:Ti,createConstructorDeclaration:Sr,updateConstructorDeclaration:ia,createGetAccessorDeclaration:Tt,updateGetAccessorDeclaration:fe,createSetAccessorDeclaration:Ce,updateSetAccessorDeclaration:it,createCallSignature:rt,updateCallSignature:pt,createConstructSignature:nr,updateConstructSignature:Oe,createIndexSignature:Nt,updateIndexSignature:It,createClassStaticBlockDeclaration:Vi,updateClassStaticBlockDeclaration:uo,createTemplateLiteralTypeSpan:Vt,updateTemplateLiteralTypeSpan:Mt,createKeywordTypeNode:sr,createTypePredicateNode:Z,updateTypePredicateNode:Ye,createTypeReferenceNode:bt,updateTypeReferenceNode:Q,createFunctionTypeNode:Xe,updateFunctionTypeNode:z,createConstructorTypeNode:be,updateConstructorTypeNode:Ht,createTypeQueryNode:Wr,updateTypeQueryNode:Yr,createTypeLiteralNode:gn,updateTypeLiteralNode:Pr,createArrayTypeNode:Rn,updateArrayTypeNode:Xi,createTupleTypeNode:us,updateTupleTypeNode:Xn,createNamedTupleMember:hi,updateNamedTupleMember:Cr,createOptionalTypeNode:nn,updateOptionalTypeNode:rr,createRestTypeNode:zs,updateRestTypeNode:pa,createUnionTypeNode:gs,updateUnionTypeNode:oo,createIntersectionTypeNode:vc,updateIntersectionTypeNode:rs,createConditionalTypeNode:Wi,updateConditionalTypeNode:xu,createInferTypeNode:Ac,updateInferTypeNode:D_,createImportTypeNode:Bo,updateImportTypeNode:Sc,createParenthesizedType:ja,updateParenthesizedType:ga,createThisTypeNode:pr,createTypeOperatorNode:Jc,updateTypeOperatorNode:W_,createIndexedAccessTypeNode:G_,updateIndexedAccessTypeNode:Wf,createMappedTypeNode:dc,updateMappedTypeNode:tl,createLiteralTypeNode:Se,updateLiteralTypeNode:oe,createTemplateLiteralType:el,updateTemplateLiteralType:Zu,createObjectBindingPattern:Ke,updateObjectBindingPattern:Rt,createArrayBindingPattern:xr,updateArrayBindingPattern:qn,createBindingElement:mr,updateBindingElement:zn,createArrayLiteralExpression:Li,updateArrayLiteralExpression:Pi,createObjectLiteralExpression:Io,updateObjectLiteralExpression:mc,createPropertyAccessExpression:e&4?(P,B)=>xn(Oc(P,B),262144):Oc,updatePropertyAccessExpression:mu,createPropertyAccessChain:e&4?(P,B,Y)=>xn(gc(P,B,Y),262144):gc,updatePropertyAccessChain:gu,createElementAccessExpression:rl,updateElementAccessExpression:Gl,createElementAccessChain:id,updateElementAccessChain:Je,createCallExpression:Kr,updateCallExpression:hs,createCallChain:ea,updateCallChain:ca,createNewExpression:pl,updateNewExpression:au,createTaggedTemplateExpression:Ja,updateTaggedTemplateExpression:Ba,createTypeAssertion:Al,updateTypeAssertion:Hf,createParenthesizedExpression:_g,updateParenthesizedExpression:sd,createFunctionExpression:Rf,updateFunctionExpression:wd,createArrowFunction:od,updateArrowFunction:Hh,createDeleteExpression:$h,updateDeleteExpression:Mf,createTypeOfExpression:Hl,updateTypeOfExpression:Yh,createVoidExpression:$f,updateVoidExpression:rh,createAwaitExpression:ad,updateAwaitExpression:ae,createPrefixUnaryExpression:vt,updatePrefixUnaryExpression:Kt,createPostfixUnaryExpression:Zt,updatePostfixUnaryExpression:Ur,createBinaryExpression:on,updateBinaryExpression:bi,createConditionalExpression:G,updateConditionalExpression:Fe,createTemplateExpression:Bt,updateTemplateExpression:Zr,createTemplateHead:Ho,createTemplateMiddle:qc,createTemplateTail:Od,createNoSubstitutionTemplateLiteral:Om,createTemplateLiteralLikeNode:Ta,createYieldExpression:Kh,updateYieldExpression:Uy,createSpreadElement:Hv,updateSpreadElement:Vy,createClassExpression:Rd,updateClassExpression:cd,createOmittedExpression:qa,createExpressionWithTypeArguments:g_,updateExpressionWithTypeArguments:H_,createAsExpression:Rm,updateAsExpression:$v,createNonNullExpression:R0,updateNonNullExpression:pS,createSatisfiesExpression:lm,updateSatisfiesExpression:dS,createNonNullChain:um,updateNonNullChain:VT,createMetaProperty:fg,updateMetaProperty:ld,createTemplateSpan:M0,updateTemplateSpan:Ge,createSemicolonClassElement:ot,createBlock:qt,updateBlock:ar,createVariableStatement:Nr,updateVariableStatement:pn,createEmptyStatement:Mr,createExpressionStatement:Nn,updateExpressionStatement:Bi,createIfStatement:Cn,updateIfStatement:Ii,createDoStatement:cn,updateDoStatement:Is,createWhileStatement:Oo,updateWhileStatement:Cu,createForStatement:I_,updateForStatement:_m,createForInStatement:Yv,updateForInStatement:fm,createForOfStatement:Tk,updateForOfStatement:gD,createContinueStatement:bk,updateContinueStatement:FE,createBreakStatement:JT,updateBreakStatement:qT,createReturnStatement:zT,updateReturnStatement:P2,createWithStatement:Kv,updateWithStatement:jE,createSwitchStatement:Jy,updateSwitchStatement:BE,createLabeledStatement:da,updateLabeledStatement:N2,createThrowStatement:D2,updateThrowStatement:WT,createTryStatement:L0,updateTryStatement:nh,createDebuggerStatement:Md,createVariableDeclaration:Lf,updateVariableDeclaration:vp,createVariableDeclarationList:Yf,updateVariableDeclarationList:Xv,createFunctionDeclaration:Ek,updateFunctionDeclaration:xk,createClassDeclaration:Qv,updateClassDeclaration:HT,createInterfaceDeclaration:Ck,updateInterfaceDeclaration:cu,createTypeAliasDeclaration:Zv,updateTypeAliasDeclaration:Ak,createEnumDeclaration:pg,updateEnumDeclaration:I2,createModuleDeclaration:Ze,updateModuleDeclaration:Mm,createModuleBlock:Au,updateModuleBlock:$T,createCaseBlock:Xh,updateCaseBlock:Ld,createNamespaceExportDeclaration:ih,updateNamespaceExportDeclaration:F0,createImportEqualsDeclaration:ta,updateImportEqualsDeclaration:Lm,createImportDeclaration:UE,updateImportDeclaration:w2,createImportClause:O2,updateImportClause:YT,createAssertClause:j0,updateAssertClause:B0,createAssertEntry:KT,updateAssertEntry:ud,createImportTypeAssertionContainer:Op,updateImportTypeAssertionContainer:e1,createImportAttributes:t1,updateImportAttributes:as,createImportAttribute:Wn,updateImportAttribute:h_,createNamespaceImport:hD,updateNamespaceImport:Fm,createNamespaceExport:kk,updateNamespaceExport:Qh,createNamedImports:r1,updateNamedImports:U0,createImportSpecifier:yD,updateImportSpecifier:XT,createExportAssignment:Rp,updateExportAssignment:VE,createExportDeclaration:sc,updateExportDeclaration:qy,createNamedExports:R2,updateNamedExports:JE,createExportSpecifier:Pk,updateExportSpecifier:U6,createMissingDeclaration:SD,createExternalModuleReference:Fn,updateExternalModuleReference:w_,get createJSDocAllType(){return d(312)},get createJSDocUnknownType(){return d(313)},get createJSDocNonNullableType(){return x(315)},get updateJSDocNonNullableType(){return D(315)},get createJSDocNullableType(){return x(314)},get updateJSDocNullableType(){return D(314)},get createJSDocOptionalType(){return S(316)},get updateJSDocOptionalType(){return E(316)},get createJSDocVariadicType(){return S(318)},get updateJSDocVariadicType(){return E(318)},get createJSDocNamepathType(){return S(319)},get updateJSDocNamepathType(){return E(319)},createJSDocFunctionType:Nk,updateJSDocFunctionType:Dk,createJSDocTypeLiteral:$_,updateJSDocTypeLiteral:jm,createJSDocTypeExpression:pm,updateJSDocTypeExpression:n1,createJSDocSignature:qE,updateJSDocSignature:sh,createJSDocTemplateTag:zy,updateJSDocTemplateTag:QT,createJSDocTypedefTag:Ik,updateJSDocTypedefTag:L2,createJSDocParameterTag:zE,updateJSDocParameterTag:TD,createJSDocPropertyTag:F2,updateJSDocPropertyTag:ZT,createJSDocCallbackTag:Bm,updateJSDocCallbackTag:bD,createJSDocOverloadTag:eb,updateJSDocOverloadTag:mS,createJSDocAugmentsTag:J0,updateJSDocAugmentsTag:i1,createJSDocImplementsTag:dm,updateJSDocImplementsTag:Ok,createJSDocSeeTag:s1,updateJSDocSeeTag:tb,createJSDocImportTag:Y_,updateJSDocImportTag:j2,createJSDocNameReference:Ou,updateJSDocNameReference:q0,createJSDocMemberName:ah,updateJSDocMemberName:dl,createJSDocLink:ku,updateJSDocLink:z0,createJSDocLinkCode:Kf,updateJSDocLinkCode:jd,createJSDocLinkPlain:wk,updateJSDocLinkPlain:ch,get createJSDocTypeTag(){return L(344)},get updateJSDocTypeTag(){return F(344)},get createJSDocReturnTag(){return L(342)},get updateJSDocReturnTag(){return F(342)},get createJSDocThisTag(){return L(343)},get updateJSDocThisTag(){return F(343)},get createJSDocAuthorTag(){return I(330)},get updateJSDocAuthorTag(){return R(330)},get createJSDocClassTag(){return I(332)},get updateJSDocClassTag(){return R(332)},get createJSDocPublicTag(){return I(333)},get updateJSDocPublicTag(){return R(333)},get createJSDocPrivateTag(){return I(334)},get updateJSDocPrivateTag(){return R(334)},get createJSDocProtectedTag(){return I(335)},get updateJSDocProtectedTag(){return R(335)},get createJSDocReadonlyTag(){return I(336)},get updateJSDocReadonlyTag(){return R(336)},get createJSDocOverrideTag(){return I(337)},get updateJSDocOverrideTag(){return R(337)},get createJSDocDeprecatedTag(){return I(331)},get updateJSDocDeprecatedTag(){return R(331)},get createJSDocThrowsTag(){return L(349)},get updateJSDocThrowsTag(){return F(349)},get createJSDocSatisfiesTag(){return L(350)},get updateJSDocSatisfiesTag(){return F(350)},createJSDocEnumTag:rb,updateJSDocEnumTag:V6,createJSDocUnknownTag:xD,updateJSDocUnknownTag:CD,createJSDocText:WE,updateJSDocText:nb,createJSDocComment:Ff,updateJSDocComment:J6,createJsxElement:ib,updateJsxElement:AD,createJsxSelfClosingElement:sb,updateJsxSelfClosingElement:GE,createJsxOpeningElement:Rk,updateJsxOpeningElement:B2,createJsxClosingElement:_d,updateJsxClosingElement:kD,createJsxFragment:hS,createJsxText:dg,updateJsxText:U2,createJsxOpeningFragment:V2,createJsxJsxClosingFragment:sa,updateJsxFragment:Mp,createJsxAttribute:Un,updateJsxAttribute:fd,createJsxAttributes:e_,updateJsxAttributes:PD,createJsxSpreadAttribute:ND,updateJsxSpreadAttribute:ob,createJsxExpression:yS,updateJsxExpression:DD,createJsxNamespacedName:vS,updateJsxNamespacedName:Um,createCaseClause:Lp,updateCaseClause:Zh,createDefaultClause:uh,updateDefaultClause:W0,createHeritageClause:J2,updateHeritageClause:Ll,createCatchClause:Vm,updateCatchClause:Fp,createPropertyAssignment:o1,updatePropertyAssignment:pd,createShorthandPropertyAssignment:SS,updateShorthandPropertyAssignment:O,createSpreadAssignment:wt,updateSpreadAssignment:tr,createEnumMember:Ei,updateEnumMember:vs,createSourceFile:ps,updateSourceFile:HE,createRedirectedSourceFile:ks,createBundle:bp,updateBundle:mg,createSyntheticExpression:G0,createSyntaxList:$E,createNotEmittedStatement:ID,createPartiallyEmittedExpression:H0,updatePartiallyEmittedExpression:ab,createCommaListExpression:TS,updateCommaListExpression:ns,createSyntheticReferenceExpression:bS,updateSyntheticReferenceExpression:_n,cloneNode:RD,get createComma(){return a(28)},get createAssignment(){return a(64)},get createLogicalOr(){return a(57)},get createLogicalAnd(){return a(56)},get createBitwiseOr(){return a(52)},get createBitwiseXor(){return a(53)},get createBitwiseAnd(){return a(51)},get createStrictEquality(){return a(37)},get createStrictInequality(){return a(38)},get createEquality(){return a(35)},get createInequality(){return a(36)},get createLessThan(){return a(30)},get createLessThanEquals(){return a(33)},get createGreaterThan(){return a(32)},get createGreaterThanEquals(){return a(34)},get createLeftShift(){return a(48)},get createRightShift(){return a(49)},get createUnsignedRightShift(){return a(50)},get createAdd(){return a(40)},get createSubtract(){return a(41)},get createMultiply(){return a(42)},get createDivide(){return a(44)},get createModulo(){return a(45)},get createExponent(){return a(43)},get createPrefixPlus(){return u(40)},get createPrefixMinus(){return u(41)},get createPrefixIncrement(){return u(46)},get createPrefixDecrement(){return u(47)},get createBitwiseNot(){return u(55)},get createLogicalNot(){return u(54)},get createPostfixIncrement(){return m(46)},get createPostfixDecrement(){return m(47)},createImmediatelyInvokedFunctionExpression:pJ,createImmediatelyInvokedArrowFunction:dJ,createVoidZero:ey,createExportDefault:yL,createExternalModuleExport:z6,createTypeCheck:W6,createIsNotTypeCheck:vL,createMethodCall:cb,createGlobalMethodCall:KE,createFunctionBindCall:SL,createFunctionCallCall:YE,createFunctionApplyCall:$0,createArraySliceCall:mm,createArrayConcatCall:MD,createObjectDefinePropertyCall:TL,createObjectGetOwnPropertyDescriptorCall:ty,createReflectGetCall:z2,createReflectSetCall:bL,createPropertyDescriptor:G6,createCallBinding:Le,createAssignmentTargetWrapper:st,inlineExpressions:Ft,getInternalName:Fr,getLocalName:si,getExportName:Qi,getDeclarationName:ji,getNamespaceMemberName:Ai,getExternalModuleOrNamespaceExportName:_s,restoreOuterExpressions:Lk,restoreEnclosingLabel:Fk,createUseStrictPrologue:$o,copyPrologue:za,copyStandardPrologue:dd,copyCustomPrologue:gg,ensureUseStrict:Y0,liftToBlock:ES,mergeLexicalEnvironment:lb,replaceModifiers:H6,replaceDecoratorsAndModifiers:LD,replacePropertyName:EL};return Et(o4e,P=>P(J)),J;function $(P,B){if(P===void 0||P===ve)P=[];else if(zb(P)){if(B===void 0||P.hasTrailingComma===B)return P.transformFlags===void 0&&l4e(P),M.attachNodeArrayDebugInfo(P),P;let nt=P.slice();return nt.pos=P.pos,nt.end=P.end,nt.hasTrailingComma=B,nt.transformFlags=P.transformFlags,M.attachNodeArrayDebugInfo(nt),nt}let Y=P.length,ge=Y>=1&&Y<=4?P.slice():P;return ge.pos=-1,ge.end=-1,ge.hasTrailingComma=!!B,ge.transformFlags=0,l4e(ge),M.attachNodeArrayDebugInfo(ge),ge}function q(P){return t.createBaseNode(P)}function ee(P){let B=q(P);return B.symbol=void 0,B.localSymbol=void 0,B}function W(P,B){return P!==B&&(P.typeArguments=B.typeArguments),Tn(P,B)}function pe(P,B=0){let Y=typeof P=="number"?P+"":P;M.assert(Y.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let ge=ee(9);return ge.text=Y,ge.numericLiteralFlags=B,B&384&&(ge.transformFlags|=1024),ge}function K(P){let B=lt(10);return B.text=typeof P=="string"?P:uE(P)+"n",B.transformFlags|=32,B}function re(P,B){let Y=ee(11);return Y.text=P,Y.singleQuote=B,Y}function ue(P,B,Y){let ge=re(P,B);return ge.hasExtendedUnicodeEscape=Y,Y&&(ge.transformFlags|=1024),ge}function ce(P){let B=re(Zd(P),void 0);return B.textSourceNode=P,B}function ne(P){let B=lt(14);return B.text=P,B}function le(P,B){switch(P){case 9:return pe(B,0);case 10:return K(B);case 11:return ue(B,void 0);case 12:return dg(B,!1);case 13:return dg(B,!0);case 14:return ne(B);case 15:return Ta(P,B,void 0,0)}}function me(P){let B=t.createBaseIdentifierNode(80);return B.escapedText=P,B.jsDoc=void 0,B.flowNode=void 0,B.symbol=void 0,B}function de(P,B,Y,ge){let nt=me(Uc(P));return _M(nt,{flags:B,id:$$,prefix:Y,suffix:ge}),$$++,nt}function Ae(P,B,Y){B===void 0&&P&&(B=Jb(P)),B===80&&(B=void 0);let ge=me(Uc(P));return Y&&(ge.flags|=256),ge.escapedText==="await"&&(ge.transformFlags|=67108864),ge.flags&256&&(ge.transformFlags|=1024),ge}function xe(P,B,Y,ge){let nt=1;B&&(nt|=8);let er=de("",nt,Y,ge);return P&&P(er),er}function te(P){let B=2;return P&&(B|=8),de("",B,void 0,void 0)}function he(P,B=0,Y,ge){return M.assert(!(B&7),"Argument out of range: flags"),M.assert((B&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),de(P,3|B,Y,ge)}function Te(P,B=0,Y,ge){M.assert(!(B&7),"Argument out of range: flags");let nt=P?xy(P)?xT(!1,Y,P,ge,In):`generated@${Sa(P)}`:"";(Y||ge)&&(B|=16);let er=de(nt,4|B,Y,ge);return er.original=P,er}function Ve(P){let B=t.createBasePrivateIdentifierNode(81);return B.escapedText=P,B.transformFlags|=16777216,B}function Pe(P){return fs(P,"#")||M.fail("First character of private identifier must be #: "+P),Ve(Uc(P))}function ke(P,B,Y,ge){let nt=Ve(Uc(P));return _M(nt,{flags:B,id:$$,prefix:Y,suffix:ge}),$$++,nt}function De(P,B,Y){P&&!fs(P,"#")&&M.fail("First character of private identifier must be #: "+P);let ge=8|(P?3:1);return ke(P??"",ge,B,Y)}function Be(P,B,Y){let ge=xy(P)?xT(!0,B,P,Y,In):`#generated@${Sa(P)}`,er=ke(ge,4|(B||Y?16:0),B,Y);return er.original=P,er}function lt(P){return t.createBaseTokenNode(P)}function ze(P){M.assert(P>=0&&P<=165,"Invalid token"),M.assert(P<=15||P>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),M.assert(P<=9||P>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),M.assert(P!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let B=lt(P),Y=0;switch(P){case 134:Y=384;break;case 160:Y=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:Y=1;break;case 108:Y=134218752,B.flowNode=void 0;break;case 126:Y=1024;break;case 129:Y=16777216;break;case 110:Y=16384,B.flowNode=void 0;break}return Y&&(B.transformFlags|=Y),B}function tt(){return ze(108)}function we(){return ze(110)}function ft(){return ze(106)}function gt(){return ze(112)}function Qe(){return ze(97)}function yt(P){return ze(P)}function ir(P){let B=[];return P&32&&B.push(yt(95)),P&128&&B.push(yt(138)),P&2048&&B.push(yt(90)),P&4096&&B.push(yt(87)),P&1&&B.push(yt(125)),P&2&&B.push(yt(123)),P&4&&B.push(yt(124)),P&64&&B.push(yt(128)),P&256&&B.push(yt(126)),P&16&&B.push(yt(164)),P&8&&B.push(yt(148)),P&512&&B.push(yt(129)),P&1024&&B.push(yt(134)),P&8192&&B.push(yt(103)),P&16384&&B.push(yt(147)),B.length?B:void 0}function Tr(P,B){let Y=q(166);return Y.left=P,Y.right=lu(B),Y.transformFlags|=Ln(Y.left)|aM(Y.right),Y.flowNode=void 0,Y}function Ar(P,B,Y){return P.left!==B||P.right!==Y?Tn(Tr(B,Y),P):P}function Vr(P){let B=q(167);return B.expression=i().parenthesizeExpressionOfComputedPropertyName(P),B.transformFlags|=Ln(B.expression)|1024|131072,B}function fr(P,B){return P.expression!==B?Tn(Vr(B),P):P}function ur(P,B,Y,ge){let nt=ee(168);return nt.modifiers=ua(P),nt.name=lu(B),nt.constraint=Y,nt.default=ge,nt.transformFlags=1,nt.expression=void 0,nt.jsDoc=void 0,nt}function tn(P,B,Y,ge,nt){return P.modifiers!==B||P.name!==Y||P.constraint!==ge||P.default!==nt?Tn(ur(B,Y,ge,nt),P):P}function Mi(P,B,Y,ge,nt,er){let dn=ee(169);return dn.modifiers=ua(P),dn.dotDotDotToken=B,dn.name=lu(Y),dn.questionToken=ge,dn.type=nt,dn.initializer=hg(er),z1(dn.name)?dn.transformFlags=1:dn.transformFlags=na(dn.modifiers)|Ln(dn.dotDotDotToken)|X1(dn.name)|Ln(dn.questionToken)|Ln(dn.initializer)|(dn.questionToken??dn.type?1:0)|(dn.dotDotDotToken??dn.initializer?1024:0)|(Ug(dn.modifiers)&31?8192:0),dn.jsDoc=void 0,dn}function br(P,B,Y,ge,nt,er,dn){return P.modifiers!==B||P.dotDotDotToken!==Y||P.name!==ge||P.questionToken!==nt||P.type!==er||P.initializer!==dn?Tn(Mi(B,Y,ge,nt,er,dn),P):P}function Di(P){let B=q(170);return B.expression=i().parenthesizeLeftSideOfAccess(P,!1),B.transformFlags|=Ln(B.expression)|1|8192|33554432,B}function As(P,B){return P.expression!==B?Tn(Di(B),P):P}function os(P,B,Y,ge){let nt=ee(171);return nt.modifiers=ua(P),nt.name=lu(B),nt.type=ge,nt.questionToken=Y,nt.transformFlags=1,nt.initializer=void 0,nt.jsDoc=void 0,nt}function Ri(P,B,Y,ge,nt){return P.modifiers!==B||P.name!==Y||P.questionToken!==ge||P.type!==nt?$r(os(B,Y,ge,nt),P):P}function $r(P,B){return P!==B&&(P.initializer=B.initializer),Tn(P,B)}function Qs(P,B,Y,ge,nt){let er=ee(172);er.modifiers=ua(P),er.name=lu(B),er.questionToken=Y&&Q1(Y)?Y:void 0,er.exclamationToken=Y&&dM(Y)?Y:void 0,er.type=ge,er.initializer=hg(nt);let dn=er.flags&33554432||Ug(er.modifiers)&128;return er.transformFlags=na(er.modifiers)|X1(er.name)|Ln(er.initializer)|(dn||er.questionToken||er.exclamationToken||er.type?1:0)|(Go(er.name)||Ug(er.modifiers)&256&&er.initializer?8192:0)|16777216,er.jsDoc=void 0,er}function He(P,B,Y,ge,nt,er){return P.modifiers!==B||P.name!==Y||P.questionToken!==(ge!==void 0&&Q1(ge)?ge:void 0)||P.exclamationToken!==(ge!==void 0&&dM(ge)?ge:void 0)||P.type!==nt||P.initializer!==er?Tn(Qs(B,Y,ge,nt,er),P):P}function Xt(P,B,Y,ge,nt,er){let dn=ee(173);return dn.modifiers=ua(P),dn.name=lu(B),dn.questionToken=Y,dn.typeParameters=ua(ge),dn.parameters=ua(nt),dn.type=er,dn.transformFlags=1,dn.jsDoc=void 0,dn.locals=void 0,dn.nextContainer=void 0,dn.typeArguments=void 0,dn}function qr(P,B,Y,ge,nt,er,dn){return P.modifiers!==B||P.name!==Y||P.questionToken!==ge||P.typeParameters!==nt||P.parameters!==er||P.type!==dn?W(Xt(B,Y,ge,nt,er,dn),P):P}function Pn(P,B,Y,ge,nt,er,dn,Es){let Xa=ee(174);if(Xa.modifiers=ua(P),Xa.asteriskToken=B,Xa.name=lu(Y),Xa.questionToken=ge,Xa.exclamationToken=void 0,Xa.typeParameters=ua(nt),Xa.parameters=$(er),Xa.type=dn,Xa.body=Es,!Xa.body)Xa.transformFlags=1;else{let Jm=Ug(Xa.modifiers)&1024,qm=!!Xa.asteriskToken,ry=Jm&&qm;Xa.transformFlags=na(Xa.modifiers)|Ln(Xa.asteriskToken)|X1(Xa.name)|Ln(Xa.questionToken)|na(Xa.typeParameters)|na(Xa.parameters)|Ln(Xa.type)|Ln(Xa.body)&-67108865|(ry?128:Jm?256:qm?2048:0)|(Xa.questionToken||Xa.typeParameters||Xa.type?1:0)|1024}return Xa.typeArguments=void 0,Xa.jsDoc=void 0,Xa.locals=void 0,Xa.nextContainer=void 0,Xa.flowNode=void 0,Xa.endFlowNode=void 0,Xa.returnFlowNode=void 0,Xa}function Ti(P,B,Y,ge,nt,er,dn,Es,Xa){return P.modifiers!==B||P.asteriskToken!==Y||P.name!==ge||P.questionToken!==nt||P.typeParameters!==er||P.parameters!==dn||P.type!==Es||P.body!==Xa?ki(Pn(B,Y,ge,nt,er,dn,Es,Xa),P):P}function ki(P,B){return P!==B&&(P.exclamationToken=B.exclamationToken),Tn(P,B)}function Vi(P){let B=ee(175);return B.body=P,B.transformFlags=Ln(P)|16777216,B.modifiers=void 0,B.jsDoc=void 0,B.locals=void 0,B.nextContainer=void 0,B.endFlowNode=void 0,B.returnFlowNode=void 0,B}function uo(P,B){return P.body!==B?Ys(Vi(B),P):P}function Ys(P,B){return P!==B&&(P.modifiers=B.modifiers),Tn(P,B)}function Sr(P,B,Y){let ge=ee(176);return ge.modifiers=ua(P),ge.parameters=$(B),ge.body=Y,ge.transformFlags=na(ge.modifiers)|na(ge.parameters)|Ln(ge.body)&-67108865|1024,ge.typeParameters=void 0,ge.type=void 0,ge.typeArguments=void 0,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.endFlowNode=void 0,ge.returnFlowNode=void 0,ge}function ia(P,B,Y,ge){return P.modifiers!==B||P.parameters!==Y||P.body!==ge?ut(Sr(B,Y,ge),P):P}function ut(P,B){return P!==B&&(P.typeParameters=B.typeParameters,P.type=B.type),W(P,B)}function Tt(P,B,Y,ge,nt){let er=ee(177);return er.modifiers=ua(P),er.name=lu(B),er.parameters=$(Y),er.type=ge,er.body=nt,er.body?er.transformFlags=na(er.modifiers)|X1(er.name)|na(er.parameters)|Ln(er.type)|Ln(er.body)&-67108865|(er.type?1:0):er.transformFlags=1,er.typeArguments=void 0,er.typeParameters=void 0,er.jsDoc=void 0,er.locals=void 0,er.nextContainer=void 0,er.flowNode=void 0,er.endFlowNode=void 0,er.returnFlowNode=void 0,er}function fe(P,B,Y,ge,nt,er){return P.modifiers!==B||P.name!==Y||P.parameters!==ge||P.type!==nt||P.body!==er?St(Tt(B,Y,ge,nt,er),P):P}function St(P,B){return P!==B&&(P.typeParameters=B.typeParameters),W(P,B)}function Ce(P,B,Y,ge){let nt=ee(178);return nt.modifiers=ua(P),nt.name=lu(B),nt.parameters=$(Y),nt.body=ge,nt.body?nt.transformFlags=na(nt.modifiers)|X1(nt.name)|na(nt.parameters)|Ln(nt.body)&-67108865|(nt.type?1:0):nt.transformFlags=1,nt.typeArguments=void 0,nt.typeParameters=void 0,nt.type=void 0,nt.jsDoc=void 0,nt.locals=void 0,nt.nextContainer=void 0,nt.flowNode=void 0,nt.endFlowNode=void 0,nt.returnFlowNode=void 0,nt}function it(P,B,Y,ge,nt){return P.modifiers!==B||P.name!==Y||P.parameters!==ge||P.body!==nt?Me(Ce(B,Y,ge,nt),P):P}function Me(P,B){return P!==B&&(P.typeParameters=B.typeParameters,P.type=B.type),W(P,B)}function rt(P,B,Y){let ge=ee(179);return ge.typeParameters=ua(P),ge.parameters=ua(B),ge.type=Y,ge.transformFlags=1,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.typeArguments=void 0,ge}function pt(P,B,Y,ge){return P.typeParameters!==B||P.parameters!==Y||P.type!==ge?W(rt(B,Y,ge),P):P}function nr(P,B,Y){let ge=ee(180);return ge.typeParameters=ua(P),ge.parameters=ua(B),ge.type=Y,ge.transformFlags=1,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.typeArguments=void 0,ge}function Oe(P,B,Y,ge){return P.typeParameters!==B||P.parameters!==Y||P.type!==ge?W(nr(B,Y,ge),P):P}function Nt(P,B,Y){let ge=ee(181);return ge.modifiers=ua(P),ge.parameters=ua(B),ge.type=Y,ge.transformFlags=1,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.typeArguments=void 0,ge}function It(P,B,Y,ge){return P.parameters!==Y||P.type!==ge||P.modifiers!==B?W(Nt(B,Y,ge),P):P}function Vt(P,B){let Y=q(204);return Y.type=P,Y.literal=B,Y.transformFlags=1,Y}function Mt(P,B,Y){return P.type!==B||P.literal!==Y?Tn(Vt(B,Y),P):P}function sr(P){return ze(P)}function Z(P,B,Y){let ge=q(182);return ge.assertsModifier=P,ge.parameterName=lu(B),ge.type=Y,ge.transformFlags=1,ge}function Ye(P,B,Y,ge){return P.assertsModifier!==B||P.parameterName!==Y||P.type!==ge?Tn(Z(B,Y,ge),P):P}function bt(P,B){let Y=q(183);return Y.typeName=lu(P),Y.typeArguments=B&&i().parenthesizeTypeArguments($(B)),Y.transformFlags=1,Y}function Q(P,B,Y){return P.typeName!==B||P.typeArguments!==Y?Tn(bt(B,Y),P):P}function Xe(P,B,Y){let ge=ee(184);return ge.typeParameters=ua(P),ge.parameters=ua(B),ge.type=Y,ge.transformFlags=1,ge.modifiers=void 0,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.typeArguments=void 0,ge}function z(P,B,Y,ge){return P.typeParameters!==B||P.parameters!==Y||P.type!==ge?Ue(Xe(B,Y,ge),P):P}function Ue(P,B){return P!==B&&(P.modifiers=B.modifiers),W(P,B)}function be(...P){return P.length===4?Re(...P):P.length===3?Ot(...P):M.fail("Incorrect number of arguments specified.")}function Re(P,B,Y,ge){let nt=ee(185);return nt.modifiers=ua(P),nt.typeParameters=ua(B),nt.parameters=ua(Y),nt.type=ge,nt.transformFlags=1,nt.jsDoc=void 0,nt.locals=void 0,nt.nextContainer=void 0,nt.typeArguments=void 0,nt}function Ot(P,B,Y){return Re(void 0,P,B,Y)}function Ht(...P){return P.length===5?$t(...P):P.length===4?gr(...P):M.fail("Incorrect number of arguments specified.")}function $t(P,B,Y,ge,nt){return P.modifiers!==B||P.typeParameters!==Y||P.parameters!==ge||P.type!==nt?W(be(B,Y,ge,nt),P):P}function gr(P,B,Y,ge){return $t(P,P.modifiers,B,Y,ge)}function Wr(P,B){let Y=q(186);return Y.exprName=P,Y.typeArguments=B&&i().parenthesizeTypeArguments(B),Y.transformFlags=1,Y}function Yr(P,B,Y){return P.exprName!==B||P.typeArguments!==Y?Tn(Wr(B,Y),P):P}function gn(P){let B=ee(187);return B.members=$(P),B.transformFlags=1,B}function Pr(P,B){return P.members!==B?Tn(gn(B),P):P}function Rn(P){let B=q(188);return B.elementType=i().parenthesizeNonArrayTypeOfPostfixType(P),B.transformFlags=1,B}function Xi(P,B){return P.elementType!==B?Tn(Rn(B),P):P}function us(P){let B=q(189);return B.elements=$(i().parenthesizeElementTypesOfTupleType(P)),B.transformFlags=1,B}function Xn(P,B){return P.elements!==B?Tn(us(B),P):P}function hi(P,B,Y,ge){let nt=ee(202);return nt.dotDotDotToken=P,nt.name=B,nt.questionToken=Y,nt.type=ge,nt.transformFlags=1,nt.jsDoc=void 0,nt}function Cr(P,B,Y,ge,nt){return P.dotDotDotToken!==B||P.name!==Y||P.questionToken!==ge||P.type!==nt?Tn(hi(B,Y,ge,nt),P):P}function nn(P){let B=q(190);return B.type=i().parenthesizeTypeOfOptionalType(P),B.transformFlags=1,B}function rr(P,B){return P.type!==B?Tn(nn(B),P):P}function zs(P){let B=q(191);return B.type=P,B.transformFlags=1,B}function pa(P,B){return P.type!==B?Tn(zs(B),P):P}function Fa(P,B,Y){let ge=q(P);return ge.types=J.createNodeArray(Y(B)),ge.transformFlags=1,ge}function wa(P,B,Y){return P.types!==B?Tn(Fa(P.kind,B,Y),P):P}function gs(P){return Fa(192,P,i().parenthesizeConstituentTypesOfUnionType)}function oo(P,B){return wa(P,B,i().parenthesizeConstituentTypesOfUnionType)}function vc(P){return Fa(193,P,i().parenthesizeConstituentTypesOfIntersectionType)}function rs(P,B){return wa(P,B,i().parenthesizeConstituentTypesOfIntersectionType)}function Wi(P,B,Y,ge){let nt=q(194);return nt.checkType=i().parenthesizeCheckTypeOfConditionalType(P),nt.extendsType=i().parenthesizeExtendsTypeOfConditionalType(B),nt.trueType=Y,nt.falseType=ge,nt.transformFlags=1,nt.locals=void 0,nt.nextContainer=void 0,nt}function xu(P,B,Y,ge,nt){return P.checkType!==B||P.extendsType!==Y||P.trueType!==ge||P.falseType!==nt?Tn(Wi(B,Y,ge,nt),P):P}function Ac(P){let B=q(195);return B.typeParameter=P,B.transformFlags=1,B}function D_(P,B){return P.typeParameter!==B?Tn(Ac(B),P):P}function el(P,B){let Y=q(203);return Y.head=P,Y.templateSpans=$(B),Y.transformFlags=1,Y}function Zu(P,B,Y){return P.head!==B||P.templateSpans!==Y?Tn(el(B,Y),P):P}function Bo(P,B,Y,ge,nt=!1){let er=q(205);return er.argument=P,er.attributes=B,er.assertions&&er.assertions.assertClause&&er.attributes&&(er.assertions.assertClause=er.attributes),er.qualifier=Y,er.typeArguments=ge&&i().parenthesizeTypeArguments(ge),er.isTypeOf=nt,er.transformFlags=1,er}function Sc(P,B,Y,ge,nt,er=P.isTypeOf){return P.argument!==B||P.attributes!==Y||P.qualifier!==ge||P.typeArguments!==nt||P.isTypeOf!==er?Tn(Bo(B,Y,ge,nt,er),P):P}function ja(P){let B=q(196);return B.type=P,B.transformFlags=1,B}function ga(P,B){return P.type!==B?Tn(ja(B),P):P}function pr(){let P=q(197);return P.transformFlags=1,P}function Jc(P,B){let Y=q(198);return Y.operator=P,Y.type=P===148?i().parenthesizeOperandOfReadonlyTypeOperator(B):i().parenthesizeOperandOfTypeOperator(B),Y.transformFlags=1,Y}function W_(P,B){return P.type!==B?Tn(Jc(P.operator,B),P):P}function G_(P,B){let Y=q(199);return Y.objectType=i().parenthesizeNonArrayTypeOfPostfixType(P),Y.indexType=B,Y.transformFlags=1,Y}function Wf(P,B,Y){return P.objectType!==B||P.indexType!==Y?Tn(G_(B,Y),P):P}function dc(P,B,Y,ge,nt,er){let dn=ee(200);return dn.readonlyToken=P,dn.typeParameter=B,dn.nameType=Y,dn.questionToken=ge,dn.type=nt,dn.members=er&&$(er),dn.transformFlags=1,dn.locals=void 0,dn.nextContainer=void 0,dn}function tl(P,B,Y,ge,nt,er,dn){return P.readonlyToken!==B||P.typeParameter!==Y||P.nameType!==ge||P.questionToken!==nt||P.type!==er||P.members!==dn?Tn(dc(B,Y,ge,nt,er,dn),P):P}function Se(P){let B=q(201);return B.literal=P,B.transformFlags=1,B}function oe(P,B){return P.literal!==B?Tn(Se(B),P):P}function Ke(P){let B=q(206);return B.elements=$(P),B.transformFlags|=na(B.elements)|1024|524288,B.transformFlags&32768&&(B.transformFlags|=65664),B}function Rt(P,B){return P.elements!==B?Tn(Ke(B),P):P}function xr(P){let B=q(207);return B.elements=$(P),B.transformFlags|=na(B.elements)|1024|524288,B}function qn(P,B){return P.elements!==B?Tn(xr(B),P):P}function mr(P,B,Y,ge){let nt=ee(208);return nt.dotDotDotToken=P,nt.propertyName=lu(B),nt.name=lu(Y),nt.initializer=hg(ge),nt.transformFlags|=Ln(nt.dotDotDotToken)|X1(nt.propertyName)|X1(nt.name)|Ln(nt.initializer)|(nt.dotDotDotToken?32768:0)|1024,nt.flowNode=void 0,nt}function zn(P,B,Y,ge,nt){return P.propertyName!==Y||P.dotDotDotToken!==B||P.name!==ge||P.initializer!==nt?Tn(mr(B,Y,ge,nt),P):P}function Li(P,B){let Y=q(209),ge=P&&yc(P),nt=$(P,ge&&du(ge)?!0:void 0);return Y.elements=i().parenthesizeExpressionsOfCommaDelimitedList(nt),Y.multiLine=B,Y.transformFlags|=na(Y.elements),Y}function Pi(P,B){return P.elements!==B?Tn(Li(B,P.multiLine),P):P}function Io(P,B){let Y=ee(210);return Y.properties=$(P),Y.multiLine=B,Y.transformFlags|=na(Y.properties),Y.jsDoc=void 0,Y}function mc(P,B){return P.properties!==B?Tn(Io(B,P.multiLine),P):P}function Wl(P,B,Y){let ge=ee(211);return ge.expression=P,ge.questionDotToken=B,ge.name=Y,ge.transformFlags=Ln(ge.expression)|Ln(ge.questionDotToken)|($e(ge.name)?aM(ge.name):Ln(ge.name)|536870912),ge.jsDoc=void 0,ge.flowNode=void 0,ge}function Oc(P,B){let Y=Wl(i().parenthesizeLeftSideOfAccess(P,!1),void 0,lu(B));return TO(P)&&(Y.transformFlags|=384),Y}function mu(P,B,Y){return O5(P)?gu(P,B,P.questionDotToken,ao(Y,$e)):P.expression!==B||P.name!==Y?Tn(Oc(B,Y),P):P}function gc(P,B,Y){let ge=Wl(i().parenthesizeLeftSideOfAccess(P,!0),B,lu(Y));return ge.flags|=64,ge.transformFlags|=32,ge}function gu(P,B,Y,ge){return M.assert(!!(P.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),P.expression!==B||P.questionDotToken!==Y||P.name!==ge?Tn(gc(B,Y,ge),P):P}function Gf(P,B,Y){let ge=ee(212);return ge.expression=P,ge.questionDotToken=B,ge.argumentExpression=Y,ge.transformFlags|=Ln(ge.expression)|Ln(ge.questionDotToken)|Ln(ge.argumentExpression),ge.jsDoc=void 0,ge.flowNode=void 0,ge}function rl(P,B){let Y=Gf(i().parenthesizeLeftSideOfAccess(P,!1),void 0,xS(B));return TO(P)&&(Y.transformFlags|=384),Y}function Gl(P,B,Y){return JG(P)?Je(P,B,P.questionDotToken,Y):P.expression!==B||P.argumentExpression!==Y?Tn(rl(B,Y),P):P}function id(P,B,Y){let ge=Gf(i().parenthesizeLeftSideOfAccess(P,!0),B,xS(Y));return ge.flags|=64,ge.transformFlags|=32,ge}function Je(P,B,Y,ge){return M.assert(!!(P.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),P.expression!==B||P.questionDotToken!==Y||P.argumentExpression!==ge?Tn(id(B,Y,ge),P):P}function zt(P,B,Y,ge){let nt=ee(213);return nt.expression=P,nt.questionDotToken=B,nt.typeArguments=Y,nt.arguments=ge,nt.transformFlags|=Ln(nt.expression)|Ln(nt.questionDotToken)|na(nt.typeArguments)|na(nt.arguments),nt.typeArguments&&(nt.transformFlags|=1),kf(nt.expression)&&(nt.transformFlags|=16384),nt}function Kr(P,B,Y){let ge=zt(i().parenthesizeLeftSideOfAccess(P,!1),void 0,ua(B),i().parenthesizeExpressionsOfCommaDelimitedList($(Y)));return bO(ge.expression)&&(ge.transformFlags|=8388608),ge}function hs(P,B,Y,ge){return qx(P)?ca(P,B,P.questionDotToken,Y,ge):P.expression!==B||P.typeArguments!==Y||P.arguments!==ge?Tn(Kr(B,Y,ge),P):P}function ea(P,B,Y,ge){let nt=zt(i().parenthesizeLeftSideOfAccess(P,!0),B,ua(Y),i().parenthesizeExpressionsOfCommaDelimitedList($(ge)));return nt.flags|=64,nt.transformFlags|=32,nt}function ca(P,B,Y,ge,nt){return M.assert(!!(P.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),P.expression!==B||P.questionDotToken!==Y||P.typeArguments!==ge||P.arguments!==nt?Tn(ea(B,Y,ge,nt),P):P}function pl(P,B,Y){let ge=ee(214);return ge.expression=i().parenthesizeExpressionOfNew(P),ge.typeArguments=ua(B),ge.arguments=Y?i().parenthesizeExpressionsOfCommaDelimitedList(Y):void 0,ge.transformFlags|=Ln(ge.expression)|na(ge.typeArguments)|na(ge.arguments)|32,ge.typeArguments&&(ge.transformFlags|=1),ge}function au(P,B,Y,ge){return P.expression!==B||P.typeArguments!==Y||P.arguments!==ge?Tn(pl(B,Y,ge),P):P}function Ja(P,B,Y){let ge=q(215);return ge.tag=i().parenthesizeLeftSideOfAccess(P,!1),ge.typeArguments=ua(B),ge.template=Y,ge.transformFlags|=Ln(ge.tag)|na(ge.typeArguments)|Ln(ge.template)|1024,ge.typeArguments&&(ge.transformFlags|=1),XH(ge.template)&&(ge.transformFlags|=128),ge}function Ba(P,B,Y,ge){return P.tag!==B||P.typeArguments!==Y||P.template!==ge?Tn(Ja(B,Y,ge),P):P}function Al(P,B){let Y=q(216);return Y.expression=i().parenthesizeOperandOfPrefixUnary(B),Y.type=P,Y.transformFlags|=Ln(Y.expression)|Ln(Y.type)|1,Y}function Hf(P,B,Y){return P.type!==B||P.expression!==Y?Tn(Al(B,Y),P):P}function _g(P){let B=q(217);return B.expression=P,B.transformFlags=Ln(B.expression),B.jsDoc=void 0,B}function sd(P,B){return P.expression!==B?Tn(_g(B),P):P}function Rf(P,B,Y,ge,nt,er,dn){let Es=ee(218);Es.modifiers=ua(P),Es.asteriskToken=B,Es.name=lu(Y),Es.typeParameters=ua(ge),Es.parameters=$(nt),Es.type=er,Es.body=dn;let Xa=Ug(Es.modifiers)&1024,Jm=!!Es.asteriskToken,qm=Xa&&Jm;return Es.transformFlags=na(Es.modifiers)|Ln(Es.asteriskToken)|X1(Es.name)|na(Es.typeParameters)|na(Es.parameters)|Ln(Es.type)|Ln(Es.body)&-67108865|(qm?128:Xa?256:Jm?2048:0)|(Es.typeParameters||Es.type?1:0)|4194304,Es.typeArguments=void 0,Es.jsDoc=void 0,Es.locals=void 0,Es.nextContainer=void 0,Es.flowNode=void 0,Es.endFlowNode=void 0,Es.returnFlowNode=void 0,Es}function wd(P,B,Y,ge,nt,er,dn,Es){return P.name!==ge||P.modifiers!==B||P.asteriskToken!==Y||P.typeParameters!==nt||P.parameters!==er||P.type!==dn||P.body!==Es?W(Rf(B,Y,ge,nt,er,dn,Es),P):P}function od(P,B,Y,ge,nt,er){let dn=ee(219);dn.modifiers=ua(P),dn.typeParameters=ua(B),dn.parameters=$(Y),dn.type=ge,dn.equalsGreaterThanToken=nt??ze(39),dn.body=i().parenthesizeConciseBodyOfArrowFunction(er);let Es=Ug(dn.modifiers)&1024;return dn.transformFlags=na(dn.modifiers)|na(dn.typeParameters)|na(dn.parameters)|Ln(dn.type)|Ln(dn.equalsGreaterThanToken)|Ln(dn.body)&-67108865|(dn.typeParameters||dn.type?1:0)|(Es?16640:0)|1024,dn.typeArguments=void 0,dn.jsDoc=void 0,dn.locals=void 0,dn.nextContainer=void 0,dn.flowNode=void 0,dn.endFlowNode=void 0,dn.returnFlowNode=void 0,dn}function Hh(P,B,Y,ge,nt,er,dn){return P.modifiers!==B||P.typeParameters!==Y||P.parameters!==ge||P.type!==nt||P.equalsGreaterThanToken!==er||P.body!==dn?W(od(B,Y,ge,nt,er,dn),P):P}function $h(P){let B=q(220);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Ln(B.expression),B}function Mf(P,B){return P.expression!==B?Tn($h(B),P):P}function Hl(P){let B=q(221);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Ln(B.expression),B}function Yh(P,B){return P.expression!==B?Tn(Hl(B),P):P}function $f(P){let B=q(222);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Ln(B.expression),B}function rh(P,B){return P.expression!==B?Tn($f(B),P):P}function ad(P){let B=q(223);return B.expression=i().parenthesizeOperandOfPrefixUnary(P),B.transformFlags|=Ln(B.expression)|256|128|2097152,B}function ae(P,B){return P.expression!==B?Tn(ad(B),P):P}function vt(P,B){let Y=q(224);return Y.operator=P,Y.operand=i().parenthesizeOperandOfPrefixUnary(B),Y.transformFlags|=Ln(Y.operand),(P===46||P===47)&&$e(Y.operand)&&!Ec(Y.operand)&&!P0(Y.operand)&&(Y.transformFlags|=268435456),Y}function Kt(P,B){return P.operand!==B?Tn(vt(P.operator,B),P):P}function Zt(P,B){let Y=q(225);return Y.operator=B,Y.operand=i().parenthesizeOperandOfPostfixUnary(P),Y.transformFlags|=Ln(Y.operand),$e(Y.operand)&&!Ec(Y.operand)&&!P0(Y.operand)&&(Y.transformFlags|=268435456),Y}function Ur(P,B){return P.operand!==B?Tn(Zt(B,P.operator),P):P}function on(P,B,Y){let ge=ee(226),nt=ub(B),er=nt.kind;return ge.left=i().parenthesizeLeftSideOfBinary(er,P),ge.operatorToken=nt,ge.right=i().parenthesizeRightSideOfBinary(er,ge.left,Y),ge.transformFlags|=Ln(ge.left)|Ln(ge.operatorToken)|Ln(ge.right),er===61?ge.transformFlags|=32:er===64?ko(ge.left)?ge.transformFlags|=5248|Yn(ge.left):Ku(ge.left)&&(ge.transformFlags|=5120|Yn(ge.left)):er===43||er===68?ge.transformFlags|=512:Gw(er)&&(ge.transformFlags|=16),er===103&&es(ge.left)&&(ge.transformFlags|=536870912),ge.jsDoc=void 0,ge}function Yn(P){return kM(P)?65536:0}function bi(P,B,Y,ge){return P.left!==B||P.operatorToken!==Y||P.right!==ge?Tn(on(B,Y,ge),P):P}function G(P,B,Y,ge,nt){let er=q(227);return er.condition=i().parenthesizeConditionOfConditionalExpression(P),er.questionToken=B??ze(58),er.whenTrue=i().parenthesizeBranchOfConditionalExpression(Y),er.colonToken=ge??ze(59),er.whenFalse=i().parenthesizeBranchOfConditionalExpression(nt),er.transformFlags|=Ln(er.condition)|Ln(er.questionToken)|Ln(er.whenTrue)|Ln(er.colonToken)|Ln(er.whenFalse),er}function Fe(P,B,Y,ge,nt,er){return P.condition!==B||P.questionToken!==Y||P.whenTrue!==ge||P.colonToken!==nt||P.whenFalse!==er?Tn(G(B,Y,ge,nt,er),P):P}function Bt(P,B){let Y=q(228);return Y.head=P,Y.templateSpans=$(B),Y.transformFlags|=Ln(Y.head)|na(Y.templateSpans)|1024,Y}function Zr(P,B,Y){return P.head!==B||P.templateSpans!==Y?Tn(Bt(B,Y),P):P}function Fi(P,B,Y,ge=0){M.assert(!(ge&-7177),"Unsupported template flags.");let nt;if(Y!==void 0&&Y!==B&&(nt=bSt(P,Y),typeof nt=="object"))return M.fail("Invalid raw text");if(B===void 0){if(nt===void 0)return M.fail("Arguments 'text' and 'rawText' may not both be undefined.");B=nt}else nt!==void 0&&M.assert(B===nt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return B}function Vs(P){let B=1024;return P&&(B|=128),B}function Ts(P,B,Y,ge){let nt=lt(P);return nt.text=B,nt.rawText=Y,nt.templateFlags=ge&7176,nt.transformFlags=Vs(nt.templateFlags),nt}function Ws(P,B,Y,ge){let nt=ee(P);return nt.text=B,nt.rawText=Y,nt.templateFlags=ge&7176,nt.transformFlags=Vs(nt.templateFlags),nt}function Ta(P,B,Y,ge){return P===15?Ws(P,B,Y,ge):Ts(P,B,Y,ge)}function Ho(P,B,Y){return P=Fi(16,P,B,Y),Ta(16,P,B,Y)}function qc(P,B,Y){return P=Fi(16,P,B,Y),Ta(17,P,B,Y)}function Od(P,B,Y){return P=Fi(16,P,B,Y),Ta(18,P,B,Y)}function Om(P,B,Y){return P=Fi(16,P,B,Y),Ws(15,P,B,Y)}function Kh(P,B){M.assert(!P||!!B,"A `YieldExpression` with an asteriskToken must have an expression.");let Y=q(229);return Y.expression=B&&i().parenthesizeExpressionForDisallowedComma(B),Y.asteriskToken=P,Y.transformFlags|=Ln(Y.expression)|Ln(Y.asteriskToken)|1024|128|1048576,Y}function Uy(P,B,Y){return P.expression!==Y||P.asteriskToken!==B?Tn(Kh(B,Y),P):P}function Hv(P){let B=q(230);return B.expression=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Ln(B.expression)|1024|32768,B}function Vy(P,B){return P.expression!==B?Tn(Hv(B),P):P}function Rd(P,B,Y,ge,nt){let er=ee(231);return er.modifiers=ua(P),er.name=lu(B),er.typeParameters=ua(Y),er.heritageClauses=ua(ge),er.members=$(nt),er.transformFlags|=na(er.modifiers)|X1(er.name)|na(er.typeParameters)|na(er.heritageClauses)|na(er.members)|(er.typeParameters?1:0)|1024,er.jsDoc=void 0,er}function cd(P,B,Y,ge,nt,er){return P.modifiers!==B||P.name!==Y||P.typeParameters!==ge||P.heritageClauses!==nt||P.members!==er?Tn(Rd(B,Y,ge,nt,er),P):P}function qa(){return q(232)}function g_(P,B){let Y=q(233);return Y.expression=i().parenthesizeLeftSideOfAccess(P,!1),Y.typeArguments=B&&i().parenthesizeTypeArguments(B),Y.transformFlags|=Ln(Y.expression)|na(Y.typeArguments)|1024,Y}function H_(P,B,Y){return P.expression!==B||P.typeArguments!==Y?Tn(g_(B,Y),P):P}function Rm(P,B){let Y=q(234);return Y.expression=P,Y.type=B,Y.transformFlags|=Ln(Y.expression)|Ln(Y.type)|1,Y}function $v(P,B,Y){return P.expression!==B||P.type!==Y?Tn(Rm(B,Y),P):P}function R0(P){let B=q(235);return B.expression=i().parenthesizeLeftSideOfAccess(P,!1),B.transformFlags|=Ln(B.expression)|1,B}function pS(P,B){return M5(P)?VT(P,B):P.expression!==B?Tn(R0(B),P):P}function lm(P,B){let Y=q(238);return Y.expression=P,Y.type=B,Y.transformFlags|=Ln(Y.expression)|Ln(Y.type)|1,Y}function dS(P,B,Y){return P.expression!==B||P.type!==Y?Tn(lm(B,Y),P):P}function um(P){let B=q(235);return B.flags|=64,B.expression=i().parenthesizeLeftSideOfAccess(P,!0),B.transformFlags|=Ln(B.expression)|1,B}function VT(P,B){return M.assert(!!(P.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),P.expression!==B?Tn(um(B),P):P}function fg(P,B){let Y=q(236);switch(Y.keywordToken=P,Y.name=B,Y.transformFlags|=Ln(Y.name),P){case 105:Y.transformFlags|=1024;break;case 102:Y.transformFlags|=32;break;default:return M.assertNever(P)}return Y.flowNode=void 0,Y}function ld(P,B){return P.name!==B?Tn(fg(P.keywordToken,B),P):P}function M0(P,B){let Y=q(239);return Y.expression=P,Y.literal=B,Y.transformFlags|=Ln(Y.expression)|Ln(Y.literal)|1024,Y}function Ge(P,B,Y){return P.expression!==B||P.literal!==Y?Tn(M0(B,Y),P):P}function ot(){let P=q(240);return P.transformFlags|=1024,P}function qt(P,B){let Y=q(241);return Y.statements=$(P),Y.multiLine=B,Y.transformFlags|=na(Y.statements),Y.jsDoc=void 0,Y.locals=void 0,Y.nextContainer=void 0,Y}function ar(P,B){return P.statements!==B?Tn(qt(B,P.multiLine),P):P}function Nr(P,B){let Y=q(243);return Y.modifiers=ua(P),Y.declarationList=Ms(B)?Yf(B):B,Y.transformFlags|=na(Y.modifiers)|Ln(Y.declarationList),Ug(Y.modifiers)&128&&(Y.transformFlags=1),Y.jsDoc=void 0,Y.flowNode=void 0,Y}function pn(P,B,Y){return P.modifiers!==B||P.declarationList!==Y?Tn(Nr(B,Y),P):P}function Mr(){let P=q(242);return P.jsDoc=void 0,P}function Nn(P){let B=q(244);return B.expression=i().parenthesizeExpressionOfExpressionStatement(P),B.transformFlags|=Ln(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function Bi(P,B){return P.expression!==B?Tn(Nn(B),P):P}function Cn(P,B,Y){let ge=q(245);return ge.expression=P,ge.thenStatement=Wy(B),ge.elseStatement=Wy(Y),ge.transformFlags|=Ln(ge.expression)|Ln(ge.thenStatement)|Ln(ge.elseStatement),ge.jsDoc=void 0,ge.flowNode=void 0,ge}function Ii(P,B,Y,ge){return P.expression!==B||P.thenStatement!==Y||P.elseStatement!==ge?Tn(Cn(B,Y,ge),P):P}function cn(P,B){let Y=q(246);return Y.statement=Wy(P),Y.expression=B,Y.transformFlags|=Ln(Y.statement)|Ln(Y.expression),Y.jsDoc=void 0,Y.flowNode=void 0,Y}function Is(P,B,Y){return P.statement!==B||P.expression!==Y?Tn(cn(B,Y),P):P}function Oo(P,B){let Y=q(247);return Y.expression=P,Y.statement=Wy(B),Y.transformFlags|=Ln(Y.expression)|Ln(Y.statement),Y.jsDoc=void 0,Y.flowNode=void 0,Y}function Cu(P,B,Y){return P.expression!==B||P.statement!==Y?Tn(Oo(B,Y),P):P}function I_(P,B,Y,ge){let nt=q(248);return nt.initializer=P,nt.condition=B,nt.incrementor=Y,nt.statement=Wy(ge),nt.transformFlags|=Ln(nt.initializer)|Ln(nt.condition)|Ln(nt.incrementor)|Ln(nt.statement),nt.jsDoc=void 0,nt.locals=void 0,nt.nextContainer=void 0,nt.flowNode=void 0,nt}function _m(P,B,Y,ge,nt){return P.initializer!==B||P.condition!==Y||P.incrementor!==ge||P.statement!==nt?Tn(I_(B,Y,ge,nt),P):P}function Yv(P,B,Y){let ge=q(249);return ge.initializer=P,ge.expression=B,ge.statement=Wy(Y),ge.transformFlags|=Ln(ge.initializer)|Ln(ge.expression)|Ln(ge.statement),ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge.flowNode=void 0,ge}function fm(P,B,Y,ge){return P.initializer!==B||P.expression!==Y||P.statement!==ge?Tn(Yv(B,Y,ge),P):P}function Tk(P,B,Y,ge){let nt=q(250);return nt.awaitModifier=P,nt.initializer=B,nt.expression=i().parenthesizeExpressionForDisallowedComma(Y),nt.statement=Wy(ge),nt.transformFlags|=Ln(nt.awaitModifier)|Ln(nt.initializer)|Ln(nt.expression)|Ln(nt.statement)|1024,P&&(nt.transformFlags|=128),nt.jsDoc=void 0,nt.locals=void 0,nt.nextContainer=void 0,nt.flowNode=void 0,nt}function gD(P,B,Y,ge,nt){return P.awaitModifier!==B||P.initializer!==Y||P.expression!==ge||P.statement!==nt?Tn(Tk(B,Y,ge,nt),P):P}function bk(P){let B=q(251);return B.label=lu(P),B.transformFlags|=Ln(B.label)|4194304,B.jsDoc=void 0,B.flowNode=void 0,B}function FE(P,B){return P.label!==B?Tn(bk(B),P):P}function JT(P){let B=q(252);return B.label=lu(P),B.transformFlags|=Ln(B.label)|4194304,B.jsDoc=void 0,B.flowNode=void 0,B}function qT(P,B){return P.label!==B?Tn(JT(B),P):P}function zT(P){let B=q(253);return B.expression=P,B.transformFlags|=Ln(B.expression)|128|4194304,B.jsDoc=void 0,B.flowNode=void 0,B}function P2(P,B){return P.expression!==B?Tn(zT(B),P):P}function Kv(P,B){let Y=q(254);return Y.expression=P,Y.statement=Wy(B),Y.transformFlags|=Ln(Y.expression)|Ln(Y.statement),Y.jsDoc=void 0,Y.flowNode=void 0,Y}function jE(P,B,Y){return P.expression!==B||P.statement!==Y?Tn(Kv(B,Y),P):P}function Jy(P,B){let Y=q(255);return Y.expression=i().parenthesizeExpressionForDisallowedComma(P),Y.caseBlock=B,Y.transformFlags|=Ln(Y.expression)|Ln(Y.caseBlock),Y.jsDoc=void 0,Y.flowNode=void 0,Y.possiblyExhaustive=!1,Y}function BE(P,B,Y){return P.expression!==B||P.caseBlock!==Y?Tn(Jy(B,Y),P):P}function da(P,B){let Y=q(256);return Y.label=lu(P),Y.statement=Wy(B),Y.transformFlags|=Ln(Y.label)|Ln(Y.statement),Y.jsDoc=void 0,Y.flowNode=void 0,Y}function N2(P,B,Y){return P.label!==B||P.statement!==Y?Tn(da(B,Y),P):P}function D2(P){let B=q(257);return B.expression=P,B.transformFlags|=Ln(B.expression),B.jsDoc=void 0,B.flowNode=void 0,B}function WT(P,B){return P.expression!==B?Tn(D2(B),P):P}function L0(P,B,Y){let ge=q(258);return ge.tryBlock=P,ge.catchClause=B,ge.finallyBlock=Y,ge.transformFlags|=Ln(ge.tryBlock)|Ln(ge.catchClause)|Ln(ge.finallyBlock),ge.jsDoc=void 0,ge.flowNode=void 0,ge}function nh(P,B,Y,ge){return P.tryBlock!==B||P.catchClause!==Y||P.finallyBlock!==ge?Tn(L0(B,Y,ge),P):P}function Md(){let P=q(259);return P.jsDoc=void 0,P.flowNode=void 0,P}function Lf(P,B,Y,ge){let nt=ee(260);return nt.name=lu(P),nt.exclamationToken=B,nt.type=Y,nt.initializer=hg(ge),nt.transformFlags|=X1(nt.name)|Ln(nt.initializer)|(nt.exclamationToken??nt.type?1:0),nt.jsDoc=void 0,nt}function vp(P,B,Y,ge,nt){return P.name!==B||P.type!==ge||P.exclamationToken!==Y||P.initializer!==nt?Tn(Lf(B,Y,ge,nt),P):P}function Yf(P,B=0){let Y=q(261);return Y.flags|=B&7,Y.declarations=$(P),Y.transformFlags|=na(Y.declarations)|4194304,B&7&&(Y.transformFlags|=263168),B&4&&(Y.transformFlags|=4),Y}function Xv(P,B){return P.declarations!==B?Tn(Yf(B,P.flags),P):P}function Ek(P,B,Y,ge,nt,er,dn){let Es=ee(262);if(Es.modifiers=ua(P),Es.asteriskToken=B,Es.name=lu(Y),Es.typeParameters=ua(ge),Es.parameters=$(nt),Es.type=er,Es.body=dn,!Es.body||Ug(Es.modifiers)&128)Es.transformFlags=1;else{let Xa=Ug(Es.modifiers)&1024,Jm=!!Es.asteriskToken,qm=Xa&&Jm;Es.transformFlags=na(Es.modifiers)|Ln(Es.asteriskToken)|X1(Es.name)|na(Es.typeParameters)|na(Es.parameters)|Ln(Es.type)|Ln(Es.body)&-67108865|(qm?128:Xa?256:Jm?2048:0)|(Es.typeParameters||Es.type?1:0)|4194304}return Es.typeArguments=void 0,Es.jsDoc=void 0,Es.locals=void 0,Es.nextContainer=void 0,Es.endFlowNode=void 0,Es.returnFlowNode=void 0,Es}function xk(P,B,Y,ge,nt,er,dn,Es){return P.modifiers!==B||P.asteriskToken!==Y||P.name!==ge||P.typeParameters!==nt||P.parameters!==er||P.type!==dn||P.body!==Es?GT(Ek(B,Y,ge,nt,er,dn,Es),P):P}function GT(P,B){return P!==B&&P.modifiers===B.modifiers&&(P.modifiers=B.modifiers),W(P,B)}function Qv(P,B,Y,ge,nt){let er=ee(263);return er.modifiers=ua(P),er.name=lu(B),er.typeParameters=ua(Y),er.heritageClauses=ua(ge),er.members=$(nt),Ug(er.modifiers)&128?er.transformFlags=1:(er.transformFlags|=na(er.modifiers)|X1(er.name)|na(er.typeParameters)|na(er.heritageClauses)|na(er.members)|(er.typeParameters?1:0)|1024,er.transformFlags&8192&&(er.transformFlags|=1)),er.jsDoc=void 0,er}function HT(P,B,Y,ge,nt,er){return P.modifiers!==B||P.name!==Y||P.typeParameters!==ge||P.heritageClauses!==nt||P.members!==er?Tn(Qv(B,Y,ge,nt,er),P):P}function Ck(P,B,Y,ge,nt){let er=ee(264);return er.modifiers=ua(P),er.name=lu(B),er.typeParameters=ua(Y),er.heritageClauses=ua(ge),er.members=$(nt),er.transformFlags=1,er.jsDoc=void 0,er}function cu(P,B,Y,ge,nt,er){return P.modifiers!==B||P.name!==Y||P.typeParameters!==ge||P.heritageClauses!==nt||P.members!==er?Tn(Ck(B,Y,ge,nt,er),P):P}function Zv(P,B,Y,ge){let nt=ee(265);return nt.modifiers=ua(P),nt.name=lu(B),nt.typeParameters=ua(Y),nt.type=ge,nt.transformFlags=1,nt.jsDoc=void 0,nt.locals=void 0,nt.nextContainer=void 0,nt}function Ak(P,B,Y,ge,nt){return P.modifiers!==B||P.name!==Y||P.typeParameters!==ge||P.type!==nt?Tn(Zv(B,Y,ge,nt),P):P}function pg(P,B,Y){let ge=ee(266);return ge.modifiers=ua(P),ge.name=lu(B),ge.members=$(Y),ge.transformFlags|=na(ge.modifiers)|Ln(ge.name)|na(ge.members)|1,ge.transformFlags&=-67108865,ge.jsDoc=void 0,ge}function I2(P,B,Y,ge){return P.modifiers!==B||P.name!==Y||P.members!==ge?Tn(pg(B,Y,ge),P):P}function Ze(P,B,Y,ge=0){let nt=ee(267);return nt.modifiers=ua(P),nt.flags|=ge&2088,nt.name=B,nt.body=Y,Ug(nt.modifiers)&128?nt.transformFlags=1:nt.transformFlags|=na(nt.modifiers)|Ln(nt.name)|Ln(nt.body)|1,nt.transformFlags&=-67108865,nt.jsDoc=void 0,nt.locals=void 0,nt.nextContainer=void 0,nt}function Mm(P,B,Y,ge){return P.modifiers!==B||P.name!==Y||P.body!==ge?Tn(Ze(B,Y,ge,P.flags),P):P}function Au(P){let B=q(268);return B.statements=$(P),B.transformFlags|=na(B.statements),B.jsDoc=void 0,B}function $T(P,B){return P.statements!==B?Tn(Au(B),P):P}function Xh(P){let B=q(269);return B.clauses=$(P),B.transformFlags|=na(B.clauses),B.locals=void 0,B.nextContainer=void 0,B}function Ld(P,B){return P.clauses!==B?Tn(Xh(B),P):P}function ih(P){let B=ee(270);return B.name=lu(P),B.transformFlags|=aM(B.name)|1,B.modifiers=void 0,B.jsDoc=void 0,B}function F0(P,B){return P.name!==B?B6(ih(B),P):P}function B6(P,B){return P!==B&&(P.modifiers=B.modifiers),Tn(P,B)}function ta(P,B,Y,ge){let nt=ee(271);return nt.modifiers=ua(P),nt.name=lu(Y),nt.isTypeOnly=B,nt.moduleReference=ge,nt.transformFlags|=na(nt.modifiers)|aM(nt.name)|Ln(nt.moduleReference),A0(nt.moduleReference)||(nt.transformFlags|=1),nt.transformFlags&=-67108865,nt.jsDoc=void 0,nt}function Lm(P,B,Y,ge,nt){return P.modifiers!==B||P.isTypeOnly!==Y||P.name!==ge||P.moduleReference!==nt?Tn(ta(B,Y,ge,nt),P):P}function UE(P,B,Y,ge){let nt=q(272);return nt.modifiers=ua(P),nt.importClause=B,nt.moduleSpecifier=Y,nt.attributes=nt.assertClause=ge,nt.transformFlags|=Ln(nt.importClause)|Ln(nt.moduleSpecifier),nt.transformFlags&=-67108865,nt.jsDoc=void 0,nt}function w2(P,B,Y,ge,nt){return P.modifiers!==B||P.importClause!==Y||P.moduleSpecifier!==ge||P.attributes!==nt?Tn(UE(B,Y,ge,nt),P):P}function O2(P,B,Y){let ge=ee(273);return ge.isTypeOnly=P,ge.name=B,ge.namedBindings=Y,ge.transformFlags|=Ln(ge.name)|Ln(ge.namedBindings),P&&(ge.transformFlags|=1),ge.transformFlags&=-67108865,ge}function YT(P,B,Y,ge){return P.isTypeOnly!==B||P.name!==Y||P.namedBindings!==ge?Tn(O2(B,Y,ge),P):P}function j0(P,B){let Y=q(300);return Y.elements=$(P),Y.multiLine=B,Y.token=132,Y.transformFlags|=4,Y}function B0(P,B,Y){return P.elements!==B||P.multiLine!==Y?Tn(j0(B,Y),P):P}function KT(P,B){let Y=q(301);return Y.name=P,Y.value=B,Y.transformFlags|=4,Y}function ud(P,B,Y){return P.name!==B||P.value!==Y?Tn(KT(B,Y),P):P}function Op(P,B){let Y=q(302);return Y.assertClause=P,Y.multiLine=B,Y}function e1(P,B,Y){return P.assertClause!==B||P.multiLine!==Y?Tn(Op(B,Y),P):P}function t1(P,B,Y){let ge=q(300);return ge.token=Y??118,ge.elements=$(P),ge.multiLine=B,ge.transformFlags|=4,ge}function as(P,B,Y){return P.elements!==B||P.multiLine!==Y?Tn(t1(B,Y,P.token),P):P}function Wn(P,B){let Y=q(301);return Y.name=P,Y.value=B,Y.transformFlags|=4,Y}function h_(P,B,Y){return P.name!==B||P.value!==Y?Tn(Wn(B,Y),P):P}function hD(P){let B=ee(274);return B.name=P,B.transformFlags|=Ln(B.name),B.transformFlags&=-67108865,B}function Fm(P,B){return P.name!==B?Tn(hD(B),P):P}function kk(P){let B=ee(280);return B.name=P,B.transformFlags|=Ln(B.name)|32,B.transformFlags&=-67108865,B}function Qh(P,B){return P.name!==B?Tn(kk(B),P):P}function r1(P){let B=q(275);return B.elements=$(P),B.transformFlags|=na(B.elements),B.transformFlags&=-67108865,B}function U0(P,B){return P.elements!==B?Tn(r1(B),P):P}function yD(P,B,Y){let ge=ee(276);return ge.isTypeOnly=P,ge.propertyName=B,ge.name=Y,ge.transformFlags|=Ln(ge.propertyName)|Ln(ge.name),ge.transformFlags&=-67108865,ge}function XT(P,B,Y,ge){return P.isTypeOnly!==B||P.propertyName!==Y||P.name!==ge?Tn(yD(B,Y,ge),P):P}function Rp(P,B,Y){let ge=ee(277);return ge.modifiers=ua(P),ge.isExportEquals=B,ge.expression=B?i().parenthesizeRightSideOfBinary(64,void 0,Y):i().parenthesizeExpressionOfExportDefault(Y),ge.transformFlags|=na(ge.modifiers)|Ln(ge.expression),ge.transformFlags&=-67108865,ge.jsDoc=void 0,ge}function VE(P,B,Y){return P.modifiers!==B||P.expression!==Y?Tn(Rp(B,P.isExportEquals,Y),P):P}function sc(P,B,Y,ge,nt){let er=ee(278);return er.modifiers=ua(P),er.isTypeOnly=B,er.exportClause=Y,er.moduleSpecifier=ge,er.attributes=er.assertClause=nt,er.transformFlags|=na(er.modifiers)|Ln(er.exportClause)|Ln(er.moduleSpecifier),er.transformFlags&=-67108865,er.jsDoc=void 0,er}function qy(P,B,Y,ge,nt,er){return P.modifiers!==B||P.isTypeOnly!==Y||P.exportClause!==ge||P.moduleSpecifier!==nt||P.attributes!==er?vD(sc(B,Y,ge,nt,er),P):P}function vD(P,B){return P!==B&&P.modifiers===B.modifiers&&(P.modifiers=B.modifiers),Tn(P,B)}function R2(P){let B=q(279);return B.elements=$(P),B.transformFlags|=na(B.elements),B.transformFlags&=-67108865,B}function JE(P,B){return P.elements!==B?Tn(R2(B),P):P}function Pk(P,B,Y){let ge=q(281);return ge.isTypeOnly=P,ge.propertyName=lu(B),ge.name=lu(Y),ge.transformFlags|=Ln(ge.propertyName)|Ln(ge.name),ge.transformFlags&=-67108865,ge.jsDoc=void 0,ge}function U6(P,B,Y,ge){return P.isTypeOnly!==B||P.propertyName!==Y||P.name!==ge?Tn(Pk(B,Y,ge),P):P}function SD(){let P=ee(282);return P.jsDoc=void 0,P}function Fn(P){let B=q(283);return B.expression=P,B.transformFlags|=Ln(B.expression),B.transformFlags&=-67108865,B}function w_(P,B){return P.expression!==B?Tn(Fn(B),P):P}function Fs(P){return q(P)}function V0(P,B,Y=!1){let ge=M2(P,Y?B&&i().parenthesizeNonArrayTypeOfPostfixType(B):B);return ge.postfix=Y,ge}function M2(P,B){let Y=q(P);return Y.type=B,Y}function Sp(P,B,Y){return B.type!==Y?Tn(V0(P,Y,B.postfix),B):B}function Sn(P,B,Y){return B.type!==Y?Tn(M2(P,Y),B):B}function Nk(P,B){let Y=ee(317);return Y.parameters=ua(P),Y.type=B,Y.transformFlags=na(Y.parameters)|(Y.type?1:0),Y.jsDoc=void 0,Y.locals=void 0,Y.nextContainer=void 0,Y.typeArguments=void 0,Y}function Dk(P,B,Y){return P.parameters!==B||P.type!==Y?Tn(Nk(B,Y),P):P}function $_(P,B=!1){let Y=ee(322);return Y.jsDocPropertyTags=ua(P),Y.isArrayType=B,Y}function jm(P,B,Y){return P.jsDocPropertyTags!==B||P.isArrayType!==Y?Tn($_(B,Y),P):P}function pm(P){let B=q(309);return B.type=P,B}function n1(P,B){return P.type!==B?Tn(pm(B),P):P}function qE(P,B,Y){let ge=ee(323);return ge.typeParameters=ua(P),ge.parameters=$(B),ge.type=Y,ge.jsDoc=void 0,ge.locals=void 0,ge.nextContainer=void 0,ge}function sh(P,B,Y,ge){return P.typeParameters!==B||P.parameters!==Y||P.type!==ge?Tn(qE(B,Y,ge),P):P}function Tp(P){let B=Y$(P.kind);return P.tagName.escapedText===Uc(B)?P.tagName:Ae(B)}function oh(P,B,Y){let ge=q(P);return ge.tagName=B,ge.comment=Y,ge}function Fd(P,B,Y){let ge=ee(P);return ge.tagName=B,ge.comment=Y,ge}function zy(P,B,Y,ge){let nt=oh(345,P??Ae("template"),ge);return nt.constraint=B,nt.typeParameters=$(Y),nt}function QT(P,B=Tp(P),Y,ge,nt){return P.tagName!==B||P.constraint!==Y||P.typeParameters!==ge||P.comment!==nt?Tn(zy(B,Y,ge,nt),P):P}function Ik(P,B,Y,ge){let nt=Fd(346,P??Ae("typedef"),ge);return nt.typeExpression=B,nt.fullName=Y,nt.name=IY(Y),nt.locals=void 0,nt.nextContainer=void 0,nt}function L2(P,B=Tp(P),Y,ge,nt){return P.tagName!==B||P.typeExpression!==Y||P.fullName!==ge||P.comment!==nt?Tn(Ik(B,Y,ge,nt),P):P}function zE(P,B,Y,ge,nt,er){let dn=Fd(341,P??Ae("param"),er);return dn.typeExpression=ge,dn.name=B,dn.isNameFirst=!!nt,dn.isBracketed=Y,dn}function TD(P,B=Tp(P),Y,ge,nt,er,dn){return P.tagName!==B||P.name!==Y||P.isBracketed!==ge||P.typeExpression!==nt||P.isNameFirst!==er||P.comment!==dn?Tn(zE(B,Y,ge,nt,er,dn),P):P}function F2(P,B,Y,ge,nt,er){let dn=Fd(348,P??Ae("prop"),er);return dn.typeExpression=ge,dn.name=B,dn.isNameFirst=!!nt,dn.isBracketed=Y,dn}function ZT(P,B=Tp(P),Y,ge,nt,er,dn){return P.tagName!==B||P.name!==Y||P.isBracketed!==ge||P.typeExpression!==nt||P.isNameFirst!==er||P.comment!==dn?Tn(F2(B,Y,ge,nt,er,dn),P):P}function Bm(P,B,Y,ge){let nt=Fd(338,P??Ae("callback"),ge);return nt.typeExpression=B,nt.fullName=Y,nt.name=IY(Y),nt.locals=void 0,nt.nextContainer=void 0,nt}function bD(P,B=Tp(P),Y,ge,nt){return P.tagName!==B||P.typeExpression!==Y||P.fullName!==ge||P.comment!==nt?Tn(Bm(B,Y,ge,nt),P):P}function eb(P,B,Y){let ge=oh(339,P??Ae("overload"),Y);return ge.typeExpression=B,ge}function mS(P,B=Tp(P),Y,ge){return P.tagName!==B||P.typeExpression!==Y||P.comment!==ge?Tn(eb(B,Y,ge),P):P}function J0(P,B,Y){let ge=oh(328,P??Ae("augments"),Y);return ge.class=B,ge}function i1(P,B=Tp(P),Y,ge){return P.tagName!==B||P.class!==Y||P.comment!==ge?Tn(J0(B,Y,ge),P):P}function dm(P,B,Y){let ge=oh(329,P??Ae("implements"),Y);return ge.class=B,ge}function s1(P,B,Y){let ge=oh(347,P??Ae("see"),Y);return ge.name=B,ge}function tb(P,B,Y,ge){return P.tagName!==B||P.name!==Y||P.comment!==ge?Tn(s1(B,Y,ge),P):P}function Ou(P){let B=q(310);return B.name=P,B}function q0(P,B){return P.name!==B?Tn(Ou(B),P):P}function ah(P,B){let Y=q(311);return Y.left=P,Y.right=B,Y.transformFlags|=Ln(Y.left)|Ln(Y.right),Y}function dl(P,B,Y){return P.left!==B||P.right!==Y?Tn(ah(B,Y),P):P}function ku(P,B){let Y=q(324);return Y.name=P,Y.text=B,Y}function z0(P,B,Y){return P.name!==B?Tn(ku(B,Y),P):P}function Kf(P,B){let Y=q(325);return Y.name=P,Y.text=B,Y}function jd(P,B,Y){return P.name!==B?Tn(Kf(B,Y),P):P}function wk(P,B){let Y=q(326);return Y.name=P,Y.text=B,Y}function ch(P,B,Y){return P.name!==B?Tn(wk(B,Y),P):P}function Ok(P,B=Tp(P),Y,ge){return P.tagName!==B||P.class!==Y||P.comment!==ge?Tn(dm(B,Y,ge),P):P}function lh(P,B,Y){return oh(P,B??Ae(Y$(P)),Y)}function gS(P,B,Y=Tp(B),ge){return B.tagName!==Y||B.comment!==ge?Tn(lh(P,Y,ge),B):B}function ED(P,B,Y,ge){let nt=oh(P,B??Ae(Y$(P)),ge);return nt.typeExpression=Y,nt}function nl(P,B,Y=Tp(B),ge,nt){return B.tagName!==Y||B.typeExpression!==ge||B.comment!==nt?Tn(ED(P,Y,ge,nt),B):B}function xD(P,B){return oh(327,P,B)}function CD(P,B,Y){return P.tagName!==B||P.comment!==Y?Tn(xD(B,Y),P):P}function rb(P,B,Y){let ge=Fd(340,P??Ae(Y$(340)),Y);return ge.typeExpression=B,ge.locals=void 0,ge.nextContainer=void 0,ge}function V6(P,B=Tp(P),Y,ge){return P.tagName!==B||P.typeExpression!==Y||P.comment!==ge?Tn(rb(B,Y,ge),P):P}function Y_(P,B,Y,ge,nt){let er=oh(351,P??Ae("import"),nt);return er.importClause=B,er.moduleSpecifier=Y,er.attributes=ge,er.comment=nt,er}function j2(P,B,Y,ge,nt,er){return P.tagName!==B||P.comment!==er||P.importClause!==Y||P.moduleSpecifier!==ge||P.attributes!==nt?Tn(Y_(B,Y,ge,nt,er),P):P}function WE(P){let B=q(321);return B.text=P,B}function nb(P,B){return P.text!==B?Tn(WE(B),P):P}function Ff(P,B){let Y=q(320);return Y.comment=P,Y.tags=ua(B),Y}function J6(P,B,Y){return P.comment!==B||P.tags!==Y?Tn(Ff(B,Y),P):P}function ib(P,B,Y){let ge=q(284);return ge.openingElement=P,ge.children=$(B),ge.closingElement=Y,ge.transformFlags|=Ln(ge.openingElement)|na(ge.children)|Ln(ge.closingElement)|2,ge}function AD(P,B,Y,ge){return P.openingElement!==B||P.children!==Y||P.closingElement!==ge?Tn(ib(B,Y,ge),P):P}function sb(P,B,Y){let ge=q(285);return ge.tagName=P,ge.typeArguments=ua(B),ge.attributes=Y,ge.transformFlags|=Ln(ge.tagName)|na(ge.typeArguments)|Ln(ge.attributes)|2,ge.typeArguments&&(ge.transformFlags|=1),ge}function GE(P,B,Y,ge){return P.tagName!==B||P.typeArguments!==Y||P.attributes!==ge?Tn(sb(B,Y,ge),P):P}function Rk(P,B,Y){let ge=q(286);return ge.tagName=P,ge.typeArguments=ua(B),ge.attributes=Y,ge.transformFlags|=Ln(ge.tagName)|na(ge.typeArguments)|Ln(ge.attributes)|2,B&&(ge.transformFlags|=1),ge}function B2(P,B,Y,ge){return P.tagName!==B||P.typeArguments!==Y||P.attributes!==ge?Tn(Rk(B,Y,ge),P):P}function _d(P){let B=q(287);return B.tagName=P,B.transformFlags|=Ln(B.tagName)|2,B}function kD(P,B){return P.tagName!==B?Tn(_d(B),P):P}function hS(P,B,Y){let ge=q(288);return ge.openingFragment=P,ge.children=$(B),ge.closingFragment=Y,ge.transformFlags|=Ln(ge.openingFragment)|na(ge.children)|Ln(ge.closingFragment)|2,ge}function Mp(P,B,Y,ge){return P.openingFragment!==B||P.children!==Y||P.closingFragment!==ge?Tn(hS(B,Y,ge),P):P}function dg(P,B){let Y=q(12);return Y.text=P,Y.containsOnlyTriviaWhiteSpaces=!!B,Y.transformFlags|=2,Y}function U2(P,B,Y){return P.text!==B||P.containsOnlyTriviaWhiteSpaces!==Y?Tn(dg(B,Y),P):P}function V2(){let P=q(289);return P.transformFlags|=2,P}function sa(){let P=q(290);return P.transformFlags|=2,P}function Un(P,B){let Y=ee(291);return Y.name=P,Y.initializer=B,Y.transformFlags|=Ln(Y.name)|Ln(Y.initializer)|2,Y}function fd(P,B,Y){return P.name!==B||P.initializer!==Y?Tn(Un(B,Y),P):P}function e_(P){let B=ee(292);return B.properties=$(P),B.transformFlags|=na(B.properties)|2,B}function PD(P,B){return P.properties!==B?Tn(e_(B),P):P}function ND(P){let B=q(293);return B.expression=P,B.transformFlags|=Ln(B.expression)|2,B}function ob(P,B){return P.expression!==B?Tn(ND(B),P):P}function yS(P,B){let Y=q(294);return Y.dotDotDotToken=P,Y.expression=B,Y.transformFlags|=Ln(Y.dotDotDotToken)|Ln(Y.expression)|2,Y}function DD(P,B){return P.expression!==B?Tn(yS(P.dotDotDotToken,B),P):P}function vS(P,B){let Y=q(295);return Y.namespace=P,Y.name=B,Y.transformFlags|=Ln(Y.namespace)|Ln(Y.name)|2,Y}function Um(P,B,Y){return P.namespace!==B||P.name!==Y?Tn(vS(B,Y),P):P}function Lp(P,B){let Y=q(296);return Y.expression=i().parenthesizeExpressionForDisallowedComma(P),Y.statements=$(B),Y.transformFlags|=Ln(Y.expression)|na(Y.statements),Y.jsDoc=void 0,Y}function Zh(P,B,Y){return P.expression!==B||P.statements!==Y?Tn(Lp(B,Y),P):P}function uh(P){let B=q(297);return B.statements=$(P),B.transformFlags=na(B.statements),B}function W0(P,B){return P.statements!==B?Tn(uh(B),P):P}function J2(P,B){let Y=q(298);switch(Y.token=P,Y.types=$(B),Y.transformFlags|=na(Y.types),P){case 96:Y.transformFlags|=1024;break;case 119:Y.transformFlags|=1;break;default:return M.assertNever(P)}return Y}function Ll(P,B){return P.types!==B?Tn(J2(P.token,B),P):P}function Vm(P,B){let Y=q(299);return Y.variableDeclaration=Bd(P),Y.block=B,Y.transformFlags|=Ln(Y.variableDeclaration)|Ln(Y.block)|(P?0:64),Y.locals=void 0,Y.nextContainer=void 0,Y}function Fp(P,B,Y){return P.variableDeclaration!==B||P.block!==Y?Tn(Vm(B,Y),P):P}function o1(P,B){let Y=ee(303);return Y.name=lu(P),Y.initializer=i().parenthesizeExpressionForDisallowedComma(B),Y.transformFlags|=X1(Y.name)|Ln(Y.initializer),Y.modifiers=void 0,Y.questionToken=void 0,Y.exclamationToken=void 0,Y.jsDoc=void 0,Y}function pd(P,B,Y){return P.name!==B||P.initializer!==Y?q2(o1(B,Y),P):P}function q2(P,B){return P!==B&&(P.modifiers=B.modifiers,P.questionToken=B.questionToken,P.exclamationToken=B.exclamationToken),Tn(P,B)}function SS(P,B){let Y=ee(304);return Y.name=lu(P),Y.objectAssignmentInitializer=B&&i().parenthesizeExpressionForDisallowedComma(B),Y.transformFlags|=aM(Y.name)|Ln(Y.objectAssignmentInitializer)|1024,Y.equalsToken=void 0,Y.modifiers=void 0,Y.questionToken=void 0,Y.exclamationToken=void 0,Y.jsDoc=void 0,Y}function O(P,B,Y){return P.name!==B||P.objectAssignmentInitializer!==Y?ye(SS(B,Y),P):P}function ye(P,B){return P!==B&&(P.modifiers=B.modifiers,P.questionToken=B.questionToken,P.exclamationToken=B.exclamationToken,P.equalsToken=B.equalsToken),Tn(P,B)}function wt(P){let B=ee(305);return B.expression=i().parenthesizeExpressionForDisallowedComma(P),B.transformFlags|=Ln(B.expression)|128|65536,B.jsDoc=void 0,B}function tr(P,B){return P.expression!==B?Tn(wt(B),P):P}function Ei(P,B){let Y=ee(306);return Y.name=lu(P),Y.initializer=B&&i().parenthesizeExpressionForDisallowedComma(B),Y.transformFlags|=Ln(Y.name)|Ln(Y.initializer)|1,Y.jsDoc=void 0,Y}function vs(P,B,Y){return P.name!==B||P.initializer!==Y?Tn(Ei(B,Y),P):P}function ps(P,B,Y){let ge=t.createBaseSourceFileNode(307);return ge.statements=$(P),ge.endOfFileToken=B,ge.flags|=Y,ge.text="",ge.fileName="",ge.path="",ge.resolvedPath="",ge.originalFileName="",ge.languageVersion=1,ge.languageVariant=0,ge.scriptKind=0,ge.isDeclarationFile=!1,ge.hasNoDefaultLib=!1,ge.transformFlags|=na(ge.statements)|Ln(ge.endOfFileToken),ge.locals=void 0,ge.nextContainer=void 0,ge.endFlowNode=void 0,ge.nodeCount=0,ge.identifierCount=0,ge.symbolCount=0,ge.parseDiagnostics=void 0,ge.bindDiagnostics=void 0,ge.bindSuggestionDiagnostics=void 0,ge.lineMap=void 0,ge.externalModuleIndicator=void 0,ge.setExternalModuleIndicator=void 0,ge.pragmas=void 0,ge.checkJsDirective=void 0,ge.referencedFiles=void 0,ge.typeReferenceDirectives=void 0,ge.libReferenceDirectives=void 0,ge.amdDependencies=void 0,ge.commentDirectives=void 0,ge.identifiers=void 0,ge.packageJsonLocations=void 0,ge.packageJsonScope=void 0,ge.imports=void 0,ge.moduleAugmentations=void 0,ge.ambientModuleNames=void 0,ge.classifiableNames=void 0,ge.impliedNodeFormat=void 0,ge}function ks(P){let B=Object.create(P.redirectTarget);return Object.defineProperties(B,{id:{get(){return this.redirectInfo.redirectTarget.id},set(Y){this.redirectInfo.redirectTarget.id=Y}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(Y){this.redirectInfo.redirectTarget.symbol=Y}}}),B.redirectInfo=P,B}function Ro(P){let B=ks(P.redirectInfo);return B.flags|=P.flags&-17,B.fileName=P.fileName,B.path=P.path,B.resolvedPath=P.resolvedPath,B.originalFileName=P.originalFileName,B.packageJsonLocations=P.packageJsonLocations,B.packageJsonScope=P.packageJsonScope,B.emitNode=void 0,B}function K_(P){let B=t.createBaseSourceFileNode(307);B.flags|=P.flags&-17;for(let Y in P)if(!(Ha(B,Y)||!Ha(P,Y))){if(Y==="emitNode"){B.emitNode=void 0;continue}B[Y]=P[Y]}return B}function O_(P){let B=P.redirectInfo?Ro(P):K_(P);return n(B,P),B}function a1(P,B,Y,ge,nt,er,dn){let Es=O_(P);return Es.statements=$(B),Es.isDeclarationFile=Y,Es.referencedFiles=ge,Es.typeReferenceDirectives=nt,Es.hasNoDefaultLib=er,Es.libReferenceDirectives=dn,Es.transformFlags=na(Es.statements)|Ln(Es.endOfFileToken),Es}function HE(P,B,Y=P.isDeclarationFile,ge=P.referencedFiles,nt=P.typeReferenceDirectives,er=P.hasNoDefaultLib,dn=P.libReferenceDirectives){return P.statements!==B||P.isDeclarationFile!==Y||P.referencedFiles!==ge||P.typeReferenceDirectives!==nt||P.hasNoDefaultLib!==er||P.libReferenceDirectives!==dn?Tn(a1(P,B,Y,ge,nt,er,dn),P):P}function bp(P){let B=q(308);return B.sourceFiles=P,B.syntheticFileReferences=void 0,B.syntheticTypeReferences=void 0,B.syntheticLibReferences=void 0,B.hasNoDefaultLib=void 0,B}function mg(P,B){return P.sourceFiles!==B?Tn(bp(B),P):P}function G0(P,B=!1,Y){let ge=q(237);return ge.type=P,ge.isSpread=B,ge.tupleNameSource=Y,ge}function $E(P){let B=q(352);return B._children=P,B}function ID(P){let B=q(353);return B.original=P,At(B,P),B}function H0(P,B){let Y=q(354);return Y.expression=P,Y.original=B,Y.transformFlags|=Ln(Y.expression)|1,At(Y,B),Y}function ab(P,B){return P.expression!==B?Tn(H0(B,P.original),P):P}function c1(P){if(Ka(P)&&!_w(P)&&!P.original&&!P.emitNode&&!P.id){if(CO(P))return P.elements;if(Dn(P)&&Mde(P.operatorToken))return[P.left,P.right]}return P}function TS(P){let B=q(355);return B.elements=$(n5(P,c1)),B.transformFlags|=na(B.elements),B}function ns(P,B){return P.elements!==B?Tn(TS(B),P):P}function bS(P,B){let Y=q(356);return Y.expression=P,Y.thisArg=B,Y.transformFlags|=Ln(Y.expression)|Ln(Y.thisArg),Y}function _n(P,B,Y){return P.expression!==B||P.thisArg!==Y?Tn(bS(B,Y),P):P}function q6(P){let B=me(P.escapedText);return B.flags|=P.flags&-17,B.transformFlags=P.transformFlags,n(B,P),_M(B,{...P.emitNode.autoGenerate}),B}function wD(P){let B=me(P.escapedText);B.flags|=P.flags&-17,B.jsDoc=P.jsDoc,B.flowNode=P.flowNode,B.symbol=P.symbol,B.transformFlags=P.transformFlags,n(B,P);let Y=i2(P);return Y&&Mv(B,Y),B}function Mk(P){let B=Ve(P.escapedText);return B.flags|=P.flags&-17,B.transformFlags=P.transformFlags,n(B,P),_M(B,{...P.emitNode.autoGenerate}),B}function OD(P){let B=Ve(P.escapedText);return B.flags|=P.flags&-17,B.transformFlags=P.transformFlags,n(B,P),B}function RD(P){if(P===void 0)return P;if(qi(P))return O_(P);if(Ec(P))return q6(P);if($e(P))return wD(P);if(zx(P))return Mk(P);if(es(P))return OD(P);let B=V3(P.kind)?t.createBaseNode(P.kind):t.createBaseTokenNode(P.kind);B.flags|=P.flags&-17,B.transformFlags=P.transformFlags,n(B,P);for(let Y in P)Ha(B,Y)||!Ha(P,Y)||(B[Y]=P[Y]);return B}function pJ(P,B,Y){return Kr(Rf(void 0,void 0,void 0,void 0,B?[B]:[],void 0,qt(P,!0)),void 0,Y?[Y]:[])}function dJ(P,B,Y){return Kr(od(void 0,void 0,B?[B]:[],void 0,void 0,qt(P,!0)),void 0,Y?[Y]:[])}function ey(){return $f(pe("0"))}function yL(P){return Rp(void 0,!1,P)}function z6(P){return sc(void 0,!1,R2([Pk(!1,void 0,P)]))}function W6(P,B){return B==="null"?J.createStrictEquality(P,ft()):B==="undefined"?J.createStrictEquality(P,ey()):J.createStrictEquality(Hl(P),ue(B))}function vL(P,B){return B==="null"?J.createStrictInequality(P,ft()):B==="undefined"?J.createStrictInequality(P,ey()):J.createStrictInequality(Hl(P),ue(B))}function cb(P,B,Y){return qx(P)?ea(gc(P,void 0,B),void 0,void 0,Y):Kr(Oc(P,B),void 0,Y)}function SL(P,B,Y){return cb(P,"bind",[B,...Y])}function YE(P,B,Y){return cb(P,"call",[B,...Y])}function $0(P,B,Y){return cb(P,"apply",[B,Y])}function KE(P,B,Y){return cb(Ae(P),B,Y)}function mm(P,B){return cb(P,"slice",B===void 0?[]:[xS(B)])}function MD(P,B){return cb(P,"concat",B)}function TL(P,B,Y){return KE("Object","defineProperty",[P,xS(B),Y])}function ty(P,B){return KE("Object","getOwnPropertyDescriptor",[P,xS(B)])}function z2(P,B,Y){return KE("Reflect","get",Y?[P,B,Y]:[P,B])}function bL(P,B,Y,ge){return KE("Reflect","set",ge?[P,B,Y,ge]:[P,B,Y])}function il(P,B,Y){return Y?(P.push(o1(B,Y)),!0):!1}function G6(P,B){let Y=[];il(Y,"enumerable",xS(P.enumerable)),il(Y,"configurable",xS(P.configurable));let ge=il(Y,"writable",xS(P.writable));ge=il(Y,"value",P.value)||ge;let nt=il(Y,"get",P.get);return nt=il(Y,"set",P.set)||nt,M.assert(!(ge&&nt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Io(Y,!B)}function Pa(P,B){switch(P.kind){case 217:return sd(P,B);case 216:return Hf(P,P.type,B);case 234:return $v(P,B,P.type);case 238:return dS(P,B,P.type);case 235:return pS(P,B);case 354:return ab(P,B)}}function la(P){return ff(P)&&Ka(P)&&Ka(Rv(P))&&Ka(zg(P))&&!Dt(gN(P))&&!Dt(uM(P))}function Lk(P,B,Y=15){return P&&Zj(P,Y)&&!la(P)?Pa(P,Lk(P.expression,B)):B}function Fk(P,B,Y){if(!B)return P;let ge=N2(B,B.label,rS(B.statement)?Fk(P,B.statement):P);return Y&&Y(B),ge}function ie(P,B){let Y=ba(P);switch(Y.kind){case 80:return B;case 110:case 9:case 10:case 11:return!1;case 209:return Y.elements.length!==0;case 210:return Y.properties.length>0;default:return!0}}function Le(P,B,Y,ge=!1){let nt=Ml(P,15),er,dn;return kf(nt)?(er=we(),dn=nt):TO(nt)?(er=we(),dn=Y!==void 0&&Y<2?At(Ae("_super"),nt):nt):Ko(nt)&8192?(er=ey(),dn=i().parenthesizeLeftSideOfAccess(nt,!1)):Hn(nt)?ie(nt.expression,ge)?(er=xe(B),dn=Oc(At(J.createAssignment(er,nt.expression),nt.expression),nt.name),At(dn,nt)):(er=nt.expression,dn=nt):cc(nt)?ie(nt.expression,ge)?(er=xe(B),dn=rl(At(J.createAssignment(er,nt.expression),nt.expression),nt.argumentExpression),At(dn,nt)):(er=nt.expression,dn=nt):(er=ey(),dn=i().parenthesizeLeftSideOfAccess(P,!1)),{target:dn,thisArg:er}}function st(P,B){return Oc(_g(Io([Ce(void 0,"value",[Mi(void 0,void 0,P,void 0,void 0,void 0)],qt([Nn(B)]))])),"value")}function Ft(P){return P.length>10?TS(P):F_(P,J.createComma)}function Qt(P,B,Y,ge=0,nt){let er=nt?P&&N5(P):Ns(P);if(er&&$e(er)&&!Ec(er)){let dn=fa(At(RD(er),er),er.parent);return ge|=Ko(er),Y||(ge|=96),B||(ge|=3072),ge&&xn(dn,ge),dn}return Te(P)}function Fr(P,B,Y){return Qt(P,B,Y,98304)}function si(P,B,Y,ge){return Qt(P,B,Y,32768,ge)}function Qi(P,B,Y){return Qt(P,B,Y,16384)}function ji(P,B,Y){return Qt(P,B,Y)}function Ai(P,B,Y,ge){let nt=Oc(P,Ka(B)?B:RD(B));At(nt,B);let er=0;return ge||(er|=96),Y||(er|=3072),er&&xn(nt,er),nt}function _s(P,B,Y,ge){return P&&_i(B,32)?Ai(P,Qt(B),Y,ge):Qi(B,Y,ge)}function za(P,B,Y,ge){let nt=dd(P,B,0,Y);return gg(P,B,nt,ge)}function go(P){return jo(P.expression)&&P.expression.text==="use strict"}function $o(){return x_(Nn(ue("use strict")))}function dd(P,B,Y=0,ge){M.assert(B.length===0,"Prologue directives should be at the first statement in the target statements array");let nt=!1,er=P.length;for(;YEs&&Jm.splice(nt,0,...B.slice(Es,Xa)),Es>dn&&Jm.splice(ge,0,...B.slice(dn,Es)),dn>er&&Jm.splice(Y,0,...B.slice(er,dn)),er>0)if(Y===0)Jm.splice(0,0,...B.slice(0,er));else{let qm=new Map;for(let ry=0;ry=0;ry--){let jk=B[ry];qm.has(jk.expression.text)||Jm.unshift(jk)}}return zb(P)?At($(Jm,P.hasTrailingComma),P):P}function H6(P,B){let Y;return typeof B=="number"?Y=ir(B):Y=B,Cc(P)?tn(P,Y,P.name,P.constraint,P.default):is(P)?br(P,Y,P.dotDotDotToken,P.name,P.questionToken,P.type,P.initializer):hN(P)?$t(P,Y,P.typeParameters,P.parameters,P.type):If(P)?Ri(P,Y,P.name,P.questionToken,P.type):Ds(P)?He(P,Y,P.name,P.questionToken??P.exclamationToken,P.type,P.initializer):Wg(P)?qr(P,Y,P.name,P.questionToken,P.typeParameters,P.parameters,P.type):_l(P)?Ti(P,Y,P.asteriskToken,P.name,P.questionToken,P.typeParameters,P.parameters,P.type,P.body):Vc(P)?ia(P,Y,P.parameters,P.body):$p(P)?fe(P,Y,P.name,P.parameters,P.type,P.body):dp(P)?it(P,Y,P.name,P.parameters,P.body):fE(P)?It(P,Y,P.parameters,P.type):ic(P)?wd(P,Y,P.asteriskToken,P.name,P.typeParameters,P.parameters,P.type,P.body):fc(P)?Hh(P,Y,P.typeParameters,P.parameters,P.type,P.equalsGreaterThanToken,P.body):tu(P)?cd(P,Y,P.name,P.typeParameters,P.heritageClauses,P.members):fl(P)?pn(P,Y,P.declarationList):El(P)?xk(P,Y,P.asteriskToken,P.name,P.typeParameters,P.parameters,P.type,P.body):ru(P)?HT(P,Y,P.name,P.typeParameters,P.heritageClauses,P.members):Xu(P)?cu(P,Y,P.name,P.typeParameters,P.heritageClauses,P.members):sm(P)?Ak(P,Y,P.name,P.typeParameters,P.type):TT(P)?I2(P,Y,P.name,P.members):xl(P)?Mm(P,Y,P.name,P.body):nu(P)?Lm(P,Y,P.isTypeOnly,P.name,P.moduleReference):Yc(P)?w2(P,Y,P.importClause,P.moduleSpecifier,P.attributes):pc(P)?VE(P,Y,P.expression):Cl(P)?qy(P,Y,P.isTypeOnly,P.exportClause,P.moduleSpecifier,P.attributes):M.assertNever(P)}function LD(P,B){return is(P)?br(P,B,P.dotDotDotToken,P.name,P.questionToken,P.type,P.initializer):Ds(P)?He(P,B,P.name,P.questionToken??P.exclamationToken,P.type,P.initializer):_l(P)?Ti(P,B,P.asteriskToken,P.name,P.questionToken,P.typeParameters,P.parameters,P.type,P.body):$p(P)?fe(P,B,P.name,P.parameters,P.type,P.body):dp(P)?it(P,B,P.name,P.parameters,P.body):tu(P)?cd(P,B,P.name,P.typeParameters,P.heritageClauses,P.members):ru(P)?HT(P,B,P.name,P.typeParameters,P.heritageClauses,P.members):M.assertNever(P)}function EL(P,B){switch(P.kind){case 177:return fe(P,P.modifiers,B,P.parameters,P.type,P.body);case 178:return it(P,P.modifiers,B,P.parameters,P.body);case 174:return Ti(P,P.modifiers,P.asteriskToken,B,P.questionToken,P.typeParameters,P.parameters,P.type,P.body);case 173:return qr(P,P.modifiers,B,P.questionToken,P.typeParameters,P.parameters,P.type);case 172:return He(P,P.modifiers,B,P.questionToken??P.exclamationToken,P.type,P.initializer);case 171:return Ri(P,P.modifiers,B,P.questionToken,P.type);case 303:return pd(P,B,P.initializer)}}function ua(P){return P?$(P):void 0}function lu(P){return typeof P=="string"?Ae(P):P}function xS(P){return typeof P=="string"?ue(P):typeof P=="number"?pe(P):typeof P=="boolean"?P?gt():Qe():P}function hg(P){return P&&i().parenthesizeExpressionForDisallowedComma(P)}function ub(P){return typeof P=="number"?ze(P):P}function Wy(P){return P&&pY(P)?At(n(Mr(),P),P):P}function Bd(P){return typeof P=="string"||P&&!Ci(P)?Lf(P,void 0,void 0,void 0):P}function Tn(P,B){return P!==B&&(n(P,B),At(P,B)),P}}function Y$(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return M.fail(`Unsupported kind: ${M.formatSyntaxKind(e)}`)}}var Ov,c4e={};function bSt(e,t){switch(Ov||(Ov=Ey(99,!1,0)),e){case 15:Ov.setText("`"+t+"`");break;case 16:Ov.setText("`"+t+"${");break;case 17:Ov.setText("}"+t+"${");break;case 18:Ov.setText("}"+t+"`");break}let n=Ov.scan();if(n===20&&(n=Ov.reScanTemplateToken(!1)),Ov.isUnterminated())return Ov.setText(void 0),c4e;let i;switch(n){case 15:case 16:case 17:case 18:i=Ov.getTokenValue();break}return i===void 0||Ov.scan()!==1?(Ov.setText(void 0),c4e):(Ov.setText(void 0),i)}function X1(e){return e&&$e(e)?aM(e):Ln(e)}function aM(e){return Ln(e)&-67108865}function ESt(e,t){return t|e.transformFlags&134234112}function Ln(e){if(!e)return 0;let t=e.transformFlags&~Ype(e.kind);return Hu(e)&&Ol(e.name)?ESt(e.name,t):t}function na(e){return e?e.transformFlags:0}function l4e(e){let t=0;for(let n of e)t|=Ln(n);e.transformFlags=t}function Ype(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 354:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}var Aj=qpe();function kj(e){return e.flags|=16,e}var xSt={createBaseSourceFileNode:e=>kj(Aj.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>kj(Aj.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>kj(Aj.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>kj(Aj.createBaseTokenNode(e)),createBaseNode:e=>kj(Aj.createBaseNode(e))},U=oM(4,xSt),u4e;function _4e(e,t,n){return new(u4e||(u4e=Yu.getSourceMapSourceConstructor()))(e,t,n)}function Gn(e,t){if(e.original!==t&&(e.original=t,t)){let n=t.emitNode;n&&(e.emitNode=CSt(n,e.emitNode))}return e}function CSt(e,t){let{flags:n,internalFlags:i,leadingComments:s,trailingComments:a,commentRange:u,sourceMapRange:m,tokenSourceMapRanges:d,constantValue:S,helpers:E,startsOnNewLine:x,snippetElement:D,classThis:I,assignedName:R}=e;if(t||(t={}),n&&(t.flags=n),i&&(t.internalFlags=i&-9),s&&(t.leadingComments=On(s.slice(),t.leadingComments)),a&&(t.trailingComments=On(a.slice(),t.trailingComments)),u&&(t.commentRange=u),m&&(t.sourceMapRange=m),d&&(t.tokenSourceMapRanges=ASt(d,t.tokenSourceMapRanges)),S!==void 0&&(t.constantValue=S),E)for(let L of E)t.helpers=Ga(t.helpers,L);return x!==void 0&&(t.startsOnNewLine=x),D!==void 0&&(t.snippetElement=D),I&&(t.classThis=I),R&&(t.assignedName=R),t}function ASt(e,t){t||(t=[]);for(let n in e)t[n]=e[n];return t}function d_(e){if(e.emitNode)M.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(_w(e)){if(e.kind===307)return e.emitNode={annotatedNodes:[e]};let t=Jr(Ps(Jr(e)))??M.fail("Could not determine parsed source file.");d_(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function K$(e){var t,n;let i=(n=(t=Jr(Ps(e)))==null?void 0:t.emitNode)==null?void 0:n.annotatedNodes;if(i)for(let s of i)s.emitNode=void 0}function cM(e){let t=d_(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function xn(e,t){return d_(e).flags=t,e}function qg(e,t){let n=d_(e);return n.flags=n.flags|t,e}function lM(e,t){return d_(e).internalFlags=t,e}function PA(e,t){let n=d_(e);return n.internalFlags=n.internalFlags|t,e}function Rv(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Wo(e,t){return d_(e).sourceMapRange=t,e}function f4e(e,t){var n,i;return(i=(n=e.emitNode)==null?void 0:n.tokenSourceMapRanges)==null?void 0:i[t]}function Kpe(e,t,n){let i=d_(e),s=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return s[t]=n,e}function gO(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function Pj(e,t){return d_(e).startsOnNewLine=t,e}function zg(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function eu(e,t){return d_(e).commentRange=t,e}function gN(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function hT(e,t){return d_(e).leadingComments=t,e}function hO(e,t,n,i){return hT(e,Ut(gN(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function uM(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function NA(e,t){return d_(e).trailingComments=t,e}function Nj(e,t,n,i){return NA(e,Ut(uM(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function Xpe(e,t){hT(e,gN(t)),NA(e,uM(t));let n=d_(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Qpe(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Zpe(e,t){let n=d_(e);return n.constantValue=t,e}function DA(e,t){let n=d_(e);return n.helpers=Ut(n.helpers,t),e}function x0(e,t){if(Dt(t)){let n=d_(e);for(let i of t)n.helpers=Ga(n.helpers,i)}return e}function p4e(e,t){var n;let i=(n=e.emitNode)==null?void 0:n.helpers;return i?GI(i,t):!1}function Dj(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function ede(e,t,n){let i=e.emitNode,s=i&&i.helpers;if(!Dt(s))return;let a=d_(t),u=0;for(let m=0;m0&&(s[m-u]=d)}u>0&&(s.length-=u)}function X$(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function Q$(e,t){let n=d_(e);return n.snippetElement=t,e}function Z$(e){return d_(e).internalFlags|=4,e}function tde(e,t){let n=d_(e);return n.typeNode=t,e}function rde(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function Mv(e,t){return d_(e).identifierTypeArguments=t,e}function i2(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function _M(e,t){return d_(e).autoGenerate=t,e}function d4e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function nde(e,t){return d_(e).generatedImportReference=t,e}function ide(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var sde=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(sde||{});function ode(e){let t=e.factory,n=nf(()=>lM(t.createTrue(),8)),i=nf(()=>lM(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:a,createMetadataHelper:u,createParamHelper:m,createESDecorateHelper:L,createRunInitializersHelper:F,createAssignHelper:J,createAwaitHelper:$,createAsyncGeneratorHelper:q,createAsyncDelegatorHelper:ee,createAsyncValuesHelper:W,createRestHelper:pe,createAwaiterHelper:K,createExtendsHelper:re,createTemplateObjectHelper:ue,createSpreadArrayHelper:ce,createPropKeyHelper:ne,createSetFunctionNameHelper:le,createValuesHelper:me,createReadHelper:de,createGeneratorHelper:Ae,createImportStarHelper:xe,createImportStarCallbackHelper:te,createImportDefaultHelper:he,createExportStarHelper:Te,createClassPrivateFieldGetHelper:Ve,createClassPrivateFieldSetHelper:Pe,createClassPrivateFieldInHelper:ke,createAddDisposableResourceHelper:De,createDisposeResourcesHelper:Be};function s(lt){return xn(t.createIdentifier(lt),8196)}function a(lt,ze,tt,we){e.requestEmitHelper(cde);let ft=[];return ft.push(t.createArrayLiteralExpression(lt,!0)),ft.push(ze),tt&&(ft.push(tt),we&&ft.push(we)),t.createCallExpression(s("__decorate"),void 0,ft)}function u(lt,ze){return e.requestEmitHelper(lde),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral(lt),ze])}function m(lt,ze,tt){return e.requestEmitHelper(ude),At(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(ze+""),lt]),tt)}function d(lt){let ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),lt.name),t.createPropertyAssignment(t.createIdentifier("metadata"),lt.metadata)];return t.createObjectLiteralExpression(ze)}function S(lt){let ze=lt.computed?t.createElementAccessExpression(t.createIdentifier("obj"),lt.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),lt.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,ze))}function E(lt){let ze=lt.computed?t.createElementAccessExpression(t.createIdentifier("obj"),lt.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),lt.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(ze,t.createIdentifier("value")))])))}function x(lt){let ze=lt.computed?lt.name:$e(lt.name)?t.createStringLiteralFromNode(lt.name):lt.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(ze,103,t.createIdentifier("obj"))))}function D(lt,ze){let tt=[];return tt.push(x(lt)),ze.get&&tt.push(S(lt)),ze.set&&tt.push(E(lt)),t.createObjectLiteralExpression(tt)}function I(lt){let ze=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(lt.kind)),t.createPropertyAssignment(t.createIdentifier("name"),lt.name.computed?lt.name.name:t.createStringLiteralFromNode(lt.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),lt.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),lt.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),D(lt.name,lt.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),lt.metadata)];return t.createObjectLiteralExpression(ze)}function R(lt){return lt.kind==="class"?d(lt):I(lt)}function L(lt,ze,tt,we,ft,gt){return e.requestEmitHelper(_de),t.createCallExpression(s("__esDecorate"),void 0,[lt??t.createNull(),ze??t.createNull(),tt,R(we),ft,gt])}function F(lt,ze,tt){return e.requestEmitHelper(fde),t.createCallExpression(s("__runInitializers"),void 0,tt?[lt,ze,tt]:[lt,ze])}function J(lt){return Qo(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,lt):(e.requestEmitHelper(pde),t.createCallExpression(s("__assign"),void 0,lt))}function $(lt){return e.requestEmitHelper(yO),t.createCallExpression(s("__await"),void 0,[lt])}function q(lt,ze){return e.requestEmitHelper(yO),e.requestEmitHelper(dde),(lt.emitNode||(lt.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[ze?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),lt])}function ee(lt){return e.requestEmitHelper(yO),e.requestEmitHelper(mde),t.createCallExpression(s("__asyncDelegator"),void 0,[lt])}function W(lt){return e.requestEmitHelper(gde),t.createCallExpression(s("__asyncValues"),void 0,[lt])}function pe(lt,ze,tt,we){e.requestEmitHelper(hde);let ft=[],gt=0;for(let Qe=0;Qe{let i="";for(let s=0;s= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
                return c > 3 && r && Object.defineProperty(target, key, r), r;
            };`},lde={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
            var __metadata = (this && this.__metadata) || function (k, v) {
                if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
            };`},ude={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
            var __param = (this && this.__param) || function (paramIndex, decorator) {
                return function (target, key) { decorator(target, key, paramIndex); }
            };`},_de={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
        var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
            function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
            var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
            var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
            var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
            var _, done = false;
            for (var i = decorators.length - 1; i >= 0; i--) {
                var context = {};
                for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
                for (var p in contextIn.access) context.access[p] = contextIn.access[p];
                context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
                var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
                if (kind === "accessor") {
                    if (result === void 0) continue;
                    if (result === null || typeof result !== "object") throw new TypeError("Object expected");
                    if (_ = accept(result.get)) descriptor.get = _;
                    if (_ = accept(result.set)) descriptor.set = _;
                    if (_ = accept(result.init)) initializers.unshift(_);
                }
                else if (_ = accept(result)) {
                    if (kind === "field") initializers.unshift(_);
                    else descriptor[key] = _;
                }
            }
            if (target) Object.defineProperty(target, contextIn.name, descriptor);
            done = true;
        };`},fde={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:`
        var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
            var useValue = arguments.length > 2;
            for (var i = 0; i < initializers.length; i++) {
                value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
            }
            return useValue ? value : void 0;
        };`},pde={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
            var __assign = (this && this.__assign) || function () {
                __assign = Object.assign || function(t) {
                    for (var s, i = 1, n = arguments.length; i < n; i++) {
                        s = arguments[i];
                        for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                            t[p] = s[p];
                    }
                    return t;
                };
                return __assign.apply(this, arguments);
            };`},yO={name:"typescript:await",importName:"__await",scoped:!1,text:`
            var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},dde={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[yO],text:`
        var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
            if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
            var g = generator.apply(thisArg, _arguments || []), i, q = [];
            return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
            function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
            function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
            function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
            function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
            function fulfill(value) { resume("next", value); }
            function reject(value) { resume("throw", value); }
            function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
        };`},mde={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[yO],text:`
            var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
                var i, p;
                return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
                function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
            };`},gde={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
            var __asyncValues = (this && this.__asyncValues) || function (o) {
                if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
                var m = o[Symbol.asyncIterator], i;
                return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
                function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
                function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
            };`},hde={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
            var __rest = (this && this.__rest) || function (s, e) {
                var t = {};
                for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
                    t[p] = s[p];
                if (s != null && typeof Object.getOwnPropertySymbols === "function")
                    for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
                        if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                            t[p[i]] = s[p[i]];
                    }
                return t;
            };`},yde={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
            var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
                function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
                return new (P || (P = Promise))(function (resolve, reject) {
                    function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
                    function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
                    function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
                    step((generator = generator.apply(thisArg, _arguments || [])).next());
                });
            };`},vde={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
            var __extends = (this && this.__extends) || (function () {
                var extendStatics = function (d, b) {
                    extendStatics = Object.setPrototypeOf ||
                        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
                        function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
                    return extendStatics(d, b);
                };

                return function (d, b) {
                    if (typeof b !== "function" && b !== null)
                        throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
                    extendStatics(d, b);
                    function __() { this.constructor = d; }
                    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
                };
            })();`},Sde={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
            var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
                if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
                return cooked;
            };`},Tde={name:"typescript:read",importName:"__read",scoped:!1,text:`
            var __read = (this && this.__read) || function (o, n) {
                var m = typeof Symbol === "function" && o[Symbol.iterator];
                if (!m) return o;
                var i = m.call(o), r, ar = [], e;
                try {
                    while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
                }
                catch (error) { e = { error: error }; }
                finally {
                    try {
                        if (r && !r.done && (m = i["return"])) m.call(i);
                    }
                    finally { if (e) throw e.error; }
                }
                return ar;
            };`},bde={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
            var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
                if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
                    if (ar || !(i in from)) {
                        if (!ar) ar = Array.prototype.slice.call(from, 0, i);
                        ar[i] = from[i];
                    }
                }
                return to.concat(ar || Array.prototype.slice.call(from));
            };`},Ede={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
        var __propKey = (this && this.__propKey) || function (x) {
            return typeof x === "symbol" ? x : "".concat(x);
        };`},xde={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:`
        var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
            if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
            return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
        };`},Cde={name:"typescript:values",importName:"__values",scoped:!1,text:`
            var __values = (this && this.__values) || function(o) {
                var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
                if (m) return m.call(o);
                if (o && typeof o.length === "number") return {
                    next: function () {
                        if (o && i >= o.length) o = void 0;
                        return { value: o && o[i++], done: !o };
                    }
                };
                throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
            };`},Ade={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
            var __generator = (this && this.__generator) || function (thisArg, body) {
                var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
                return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
                function verb(n) { return function (v) { return step([n, v]); }; }
                function step(op) {
                    if (f) throw new TypeError("Generator is already executing.");
                    while (g && (g = 0, op[0] && (_ = 0)), _) try {
                        if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
                        if (y = 0, t) op = [op[0] & 2, t.value];
                        switch (op[0]) {
                            case 0: case 1: t = op; break;
                            case 4: _.label++; return { value: op[1], done: false };
                            case 5: _.label++; y = op[1]; op = [0]; continue;
                            case 7: op = _.ops.pop(); _.trys.pop(); continue;
                            default:
                                if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                                if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                                if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                                if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                                if (t[2]) _.ops.pop();
                                _.trys.pop(); continue;
                        }
                        op = body.call(thisArg, _);
                    } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
                    if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
                }
            };`},Ij={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
            var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
                if (k2 === undefined) k2 = k;
                var desc = Object.getOwnPropertyDescriptor(m, k);
                if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
                  desc = { enumerable: true, get: function() { return m[k]; } };
                }
                Object.defineProperty(o, k2, desc);
            }) : (function(o, m, k, k2) {
                if (k2 === undefined) k2 = k;
                o[k2] = m[k];
            }));`},kde={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
            var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
                Object.defineProperty(o, "default", { enumerable: true, value: v });
            }) : function(o, v) {
                o["default"] = v;
            });`},tY={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Ij,kde],priority:2,text:`
            var __importStar = (this && this.__importStar) || function (mod) {
                if (mod && mod.__esModule) return mod;
                var result = {};
                if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
                __setModuleDefault(result, mod);
                return result;
            };`},Pde={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
            var __importDefault = (this && this.__importDefault) || function (mod) {
                return (mod && mod.__esModule) ? mod : { "default": mod };
            };`},Nde={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Ij],priority:2,text:`
            var __exportStar = (this && this.__exportStar) || function(m, exports) {
                for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
            };`},Dde={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
            var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
                return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
            };`},Ide={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
            var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
                if (kind === "m") throw new TypeError("Private method is not writable");
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
                return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
            };`},wde={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
            var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
                if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
                return typeof state === "function" ? receiver === state : state.has(receiver);
            };`},Ode={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:`
        var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
            if (value !== null && value !== void 0) {
                if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
                var dispose, inner;
                if (async) {
                    if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
                    dispose = value[Symbol.asyncDispose];
                }
                if (dispose === void 0) {
                    if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
                    dispose = value[Symbol.dispose];
                    if (async) inner = dispose;
                }
                if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
                if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
                env.stack.push({ value: value, dispose: dispose, async: async });
            }
            else if (async) {
                env.stack.push({ async: true });
            }
            return value;
        };`},Rde={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:`
        var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
            return function (env) {
                function fail(e) {
                    env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
                    env.hasError = true;
                }
                function next() {
                    while (env.stack.length) {
                        var rec = env.stack.pop();
                        try {
                            var result = rec.dispose && rec.dispose.call(rec.value);
                            if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
                        }
                        catch (e) {
                            fail(e);
                        }
                    }
                    if (env.hasError) throw env.error;
                }
                return next();
            };
        })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
            var e = new Error(message);
            return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
        });`},wj={name:"typescript:async-super",scoped:!0,text:eY`
            const ${"_superIndex"} = name => super[name];`},Oj={name:"typescript:advanced-async-super",scoped:!0,text:eY`
            const ${"_superIndex"} = (function (geti, seti) {
                const cache = Object.create(null);
                return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
            })(name => super[name], (name, value) => super[name] = value);`};function vO(e,t){return to(e)&&$e(e.expression)&&(Ko(e.expression)&8192)!==0&&e.expression.escapedText===t}function Df(e){return e.kind===9}function fM(e){return e.kind===10}function jo(e){return e.kind===11}function IA(e){return e.kind===12}function rY(e){return e.kind===14}function wA(e){return e.kind===15}function OA(e){return e.kind===16}function nY(e){return e.kind===17}function Rj(e){return e.kind===18}function Mj(e){return e.kind===26}function Mde(e){return e.kind===28}function iY(e){return e.kind===40}function sY(e){return e.kind===41}function pM(e){return e.kind===42}function dM(e){return e.kind===54}function Q1(e){return e.kind===58}function Lde(e){return e.kind===59}function Lj(e){return e.kind===29}function Fde(e){return e.kind===39}function $e(e){return e.kind===80}function es(e){return e.kind===81}function RA(e){return e.kind===95}function Fj(e){return e.kind===90}function SO(e){return e.kind===134}function jde(e){return e.kind===131}function oY(e){return e.kind===135}function Bde(e){return e.kind===148}function MA(e){return e.kind===126}function Ude(e){return e.kind===128}function Vde(e){return e.kind===164}function Jde(e){return e.kind===129}function TO(e){return e.kind===108}function bO(e){return e.kind===102}function qde(e){return e.kind===84}function uf(e){return e.kind===166}function Go(e){return e.kind===167}function Cc(e){return e.kind===168}function is(e){return e.kind===169}function pu(e){return e.kind===170}function If(e){return e.kind===171}function Ds(e){return e.kind===172}function Wg(e){return e.kind===173}function _l(e){return e.kind===174}function $c(e){return e.kind===175}function Vc(e){return e.kind===176}function $p(e){return e.kind===177}function dp(e){return e.kind===178}function LA(e){return e.kind===179}function mM(e){return e.kind===180}function fE(e){return e.kind===181}function FA(e){return e.kind===182}function Yp(e){return e.kind===183}function Vh(e){return e.kind===184}function hN(e){return e.kind===185}function pE(e){return e.kind===186}function _f(e){return e.kind===187}function gM(e){return e.kind===188}function jA(e){return e.kind===189}function yN(e){return e.kind===202}function jj(e){return e.kind===190}function Bj(e){return e.kind===191}function Z1(e){return e.kind===192}function BA(e){return e.kind===193}function dE(e){return e.kind===194}function s2(e){return e.kind===195}function o2(e){return e.kind===196}function vN(e){return e.kind===197}function yT(e){return e.kind===198}function mE(e){return e.kind===199}function a2(e){return e.kind===200}function Lv(e){return e.kind===201}function Jh(e){return e.kind===205}function aY(e){return e.kind===204}function zde(e){return e.kind===203}function Kp(e){return e.kind===206}function Fv(e){return e.kind===207}function Zo(e){return e.kind===208}function Ku(e){return e.kind===209}function ko(e){return e.kind===210}function Hn(e){return e.kind===211}function cc(e){return e.kind===212}function to(e){return e.kind===213}function gE(e){return e.kind===214}function hE(e){return e.kind===215}function cY(e){return e.kind===216}function ff(e){return e.kind===217}function ic(e){return e.kind===218}function fc(e){return e.kind===219}function Wde(e){return e.kind===220}function SN(e){return e.kind===221}function UA(e){return e.kind===222}function eS(e){return e.kind===223}function tS(e){return e.kind===224}function lY(e){return e.kind===225}function Dn(e){return e.kind===226}function VA(e){return e.kind===227}function Uj(e){return e.kind===228}function Vj(e){return e.kind===229}function kd(e){return e.kind===230}function tu(e){return e.kind===231}function du(e){return e.kind===232}function C0(e){return e.kind===233}function EO(e){return e.kind===234}function Jj(e){return e.kind===238}function JA(e){return e.kind===235}function xO(e){return e.kind===236}function m4e(e){return e.kind===237}function qj(e){return e.kind===354}function CO(e){return e.kind===355}function AO(e){return e.kind===239}function Gde(e){return e.kind===240}function Js(e){return e.kind===241}function fl(e){return e.kind===243}function uY(e){return e.kind===242}function wu(e){return e.kind===244}function vT(e){return e.kind===245}function g4e(e){return e.kind===246}function _Y(e){return e.kind===247}function ST(e){return e.kind===248}function zj(e){return e.kind===249}function hM(e){return e.kind===250}function h4e(e){return e.kind===251}function y4e(e){return e.kind===252}function im(e){return e.kind===253}function Hde(e){return e.kind===254}function kO(e){return e.kind===255}function rS(e){return e.kind===256}function fY(e){return e.kind===257}function c2(e){return e.kind===258}function v4e(e){return e.kind===259}function Ci(e){return e.kind===260}function Fu(e){return e.kind===261}function El(e){return e.kind===262}function ru(e){return e.kind===263}function Xu(e){return e.kind===264}function sm(e){return e.kind===265}function TT(e){return e.kind===266}function xl(e){return e.kind===267}function Gg(e){return e.kind===268}function PO(e){return e.kind===269}function yM(e){return e.kind===270}function nu(e){return e.kind===271}function Yc(e){return e.kind===272}function ng(e){return e.kind===273}function S4e(e){return e.kind===302}function $de(e){return e.kind===300}function T4e(e){return e.kind===301}function l2(e){return e.kind===300}function Yde(e){return e.kind===301}function Ry(e){return e.kind===274}function qh(e){return e.kind===280}function Hg(e){return e.kind===275}function pf(e){return e.kind===276}function pc(e){return e.kind===277}function Cl(e){return e.kind===278}function Pd(e){return e.kind===279}function E_(e){return e.kind===281}function b4e(e){return e.kind===282}function pY(e){return e.kind===353}function qA(e){return e.kind===356}function A0(e){return e.kind===283}function My(e){return e.kind===284}function u2(e){return e.kind===285}function $g(e){return e.kind===286}function yE(e){return e.kind===287}function vE(e){return e.kind===288}function _2(e){return e.kind===289}function Kde(e){return e.kind===290}function Yg(e){return e.kind===291}function SE(e){return e.kind===292}function zA(e){return e.kind===293}function NO(e){return e.kind===294}function ig(e){return e.kind===295}function TN(e){return e.kind===296}function DO(e){return e.kind===297}function mp(e){return e.kind===298}function TE(e){return e.kind===299}function ql(e){return e.kind===303}function m_(e){return e.kind===304}function Ly(e){return e.kind===305}function nS(e){return e.kind===306}function qi(e){return e.kind===307}function Xde(e){return e.kind===308}function bT(e){return e.kind===309}function IO(e){return e.kind===310}function ET(e){return e.kind===311}function Qde(e){return e.kind===324}function Zde(e){return e.kind===325}function E4e(e){return e.kind===326}function eme(e){return e.kind===312}function tme(e){return e.kind===313}function bN(e){return e.kind===314}function Wj(e){return e.kind===315}function dY(e){return e.kind===316}function EN(e){return e.kind===317}function Gj(e){return e.kind===318}function x4e(e){return e.kind===319}function sg(e){return e.kind===320}function f2(e){return e.kind===322}function k0(e){return e.kind===323}function WA(e){return e.kind===328}function C4e(e){return e.kind===330}function rme(e){return e.kind===332}function mY(e){return e.kind===338}function gY(e){return e.kind===333}function hY(e){return e.kind===334}function yY(e){return e.kind===335}function vY(e){return e.kind===336}function Hj(e){return e.kind===337}function xN(e){return e.kind===339}function SY(e){return e.kind===331}function A4e(e){return e.kind===347}function vM(e){return e.kind===340}function Nd(e){return e.kind===341}function $j(e){return e.kind===342}function TY(e){return e.kind===343}function wO(e){return e.kind===344}function om(e){return e.kind===345}function p2(e){return e.kind===346}function k4e(e){return e.kind===327}function nme(e){return e.kind===348}function Yj(e){return e.kind===329}function Kj(e){return e.kind===350}function P4e(e){return e.kind===349}function Kg(e){return e.kind===351}function CN(e){return e.kind===352}var OO=new WeakMap;function bY(e,t){var n;let i=e.kind;return V3(i)?i===352?e._children:(n=OO.get(t))==null?void 0:n.get(e):ve}function ime(e,t,n){e.kind===352&&M.fail("Should not need to re-set the children of a SyntaxList.");let i=OO.get(t);return i===void 0&&(i=new WeakMap,OO.set(t,i)),i.set(e,n),n}function EY(e,t){var n;e.kind===352&&M.fail("Did not expect to unset the children of a SyntaxList."),(n=OO.get(t))==null||n.delete(e)}function sme(e,t){let n=OO.get(e);n!==void 0&&(OO.delete(e),OO.set(t,n))}function SM(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function d2(e,t,n,i){if(Go(n))return At(e.createElementAccessExpression(t,n.expression),i);{let s=At(xy(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return qg(s,128),s}}function ome(e,t){let n=CT.createIdentifier(e||"React");return fa(n,Ps(t)),n}function ame(e,t,n){if(uf(t)){let i=ame(e,t.left,n),s=e.createIdentifier(In(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return ome(In(t),n)}function xY(e,t,n,i){return t?ame(e,t,i):e.createPropertyAccessExpression(ome(n,i),"createElement")}function kSt(e,t,n,i){return t?ame(e,t,i):e.createPropertyAccessExpression(ome(n,i),"Fragment")}function cme(e,t,n,i,s,a){let u=[n];if(i&&u.push(i),s&&s.length>0)if(i||u.push(e.createNull()),s.length>1)for(let m of s)x_(m),u.push(m);else u.push(s[0]);return At(e.createCallExpression(t,void 0,u),a)}function lme(e,t,n,i,s,a,u){let d=[kSt(e,n,i,a),e.createNull()];if(s&&s.length>0)if(s.length>1)for(let S of s)x_(S),d.push(S);else d.push(s[0]);return At(e.createCallExpression(xY(e,t,i,a),void 0,d),u)}function CY(e,t,n){if(Fu(t)){let i=Fo(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return At(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{let i=At(e.createAssignment(t,n),t);return At(e.createExpressionStatement(i),t)}}function N4e(e,t,n){return Js(t)?e.updateBlock(t,At(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function TM(e,t){if(uf(t)){let n=TM(e,t.left),i=fa(At(e.cloneNode(t.right),t.right),t.right.parent);return At(e.createPropertyAccessExpression(n,i),t)}else return fa(At(e.cloneNode(t),t),t.parent)}function AY(e,t){return $e(t)?e.createStringLiteralFromNode(t):Go(t)?fa(At(e.cloneNode(t.expression),t.expression),t.expression.parent):fa(At(e.cloneNode(t),t),t.parent)}function PSt(e,t,n,i,s){let{firstAccessor:a,getAccessor:u,setAccessor:m}=W1(t,n);if(n===a)return At(e.createObjectDefinePropertyCall(i,AY(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:u&&At(Gn(e.createFunctionExpression(qb(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u),set:m&&At(Gn(e.createFunctionExpression(qb(m),void 0,void 0,void 0,m.parameters,void 0,m.body),m),m)},!s)),a)}function NSt(e,t,n){return Gn(At(e.createAssignment(d2(e,n,t.name,t.name),t.initializer),t),t)}function DSt(e,t,n){return Gn(At(e.createAssignment(d2(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function ISt(e,t,n){return Gn(At(e.createAssignment(d2(e,n,t.name,t.name),Gn(At(e.createFunctionExpression(qb(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function ume(e,t,n,i){switch(n.name&&es(n.name)&&M.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return PSt(e,t.properties,n,i,!!t.multiLine);case 303:return NSt(e,n,i);case 304:return DSt(e,n,i);case 174:return ISt(e,n,i)}}function Xj(e,t,n,i,s){let a=t.operator;M.assert(a===46||a===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let u=e.createTempVariable(i);n=e.createAssignment(u,n),At(n,t.operand);let m=tS(t)?e.createPrefixUnaryExpression(a,u):e.createPostfixUnaryExpression(u,a);return At(m,t),s&&(m=e.createAssignment(s,m),At(m,t)),n=e.createComma(n,m),At(n,t),lY(t)&&(n=e.createComma(n,u),At(n,t)),n}function kY(e){return(Ko(e)&65536)!==0}function P0(e){return(Ko(e)&32768)!==0}function Qj(e){return(Ko(e)&16384)!==0}function D4e(e){return jo(e.expression)&&e.expression.text==="use strict"}function PY(e){for(let t of e)if(Rg(t)){if(D4e(t))return t}else break}function _me(e){let t=Aa(e);return t!==void 0&&Rg(t)&&D4e(t)}function bM(e){return e.kind===226&&e.operatorToken.kind===28}function RO(e){return bM(e)||CO(e)}function m2(e){return ff(e)&&vn(e)&&!!tT(e)}function MO(e){let t=rT(e);return M.assertIsDefined(t),t}function Zj(e,t=15){switch(e.kind){case 217:return t&16&&m2(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 354:return(t&8)!==0}return!1}function Ml(e,t=15){for(;Zj(e,t);)e=e.expression;return e}function fme(e,t=15){let n=e.parent;for(;Zj(n,t);)n=n.parent,M.assert(n);return n}function I4e(e){return Ml(e,6)}function x_(e){return Pj(e,!0)}function eB(e){let t=Bc(e,qi),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function pme(e){let t=Bc(e,qi),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function NY(e,t,n,i,s,a,u){if(i.importHelpers&&eA(n,i)){let m,d=J_(i);if(d>=5&&d<=99||n.impliedNodeFormat===99){let S=Dj(n);if(S){let E=[];for(let x of S)if(!x.scoped){let D=x.importName;D&&cl(E,D)}if(Dt(E)){E.sort(u_),m=e.createNamedImports(kr(E,I=>Q5(n,I)?e.createImportSpecifier(!1,void 0,e.createIdentifier(I)):e.createImportSpecifier(!1,e.createIdentifier(I),t.getUnscopedHelperName(I))));let x=Bc(n,qi),D=d_(x);D.externalHelpers=!0}}}else{let S=dme(e,n,i,s,a||u);S&&(m=e.createNamespaceImport(S))}if(m){let S=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,m),e.createStringLiteral(oT),void 0);return PA(S,2),S}}}function dme(e,t,n,i,s){if(n.importHelpers&&eA(t,n)){let a=eB(t);if(a)return a;let u=J_(n),m=(i||Iy(n)&&s)&&u!==4&&(u<5||t.impliedNodeFormat===1);if(!m){let d=Dj(t);if(d){for(let S of d)if(!S.scoped){m=!0;break}}}if(m){let d=Bc(t,qi),S=d_(d);return S.externalHelpersModuleName||(S.externalHelpersModuleName=e.createUniqueName(oT))}}}function AN(e,t,n){let i=XP(t);if(i&&!aA(t)&&!e9(t)){let s=i.name;return Ec(s)?s:e.createIdentifier($b(n,s)||In(s))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function GA(e,t,n,i,s,a){let u=oA(t);if(u&&jo(u))return OSt(t,i,e,s,a)||wSt(e,u,n)||e.cloneNode(u)}function wSt(e,t,n){let i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function EM(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&i.outFile)return e.createStringLiteral(t$(n,t.fileName))}}function OSt(e,t,n,i,s){return EM(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function xM(e){if(q3(e))return e.initializer;if(ql(e)){let t=e.initializer;return Tu(t,!0)?t.right:void 0}if(m_(e))return e.objectAssignmentInitializer;if(Tu(e,!0))return e.right;if(kd(e))return xM(e.expression)}function iS(e){if(q3(e))return e.name;if(d0(e)){switch(e.kind){case 303:return iS(e.initializer);case 304:return e.name;case 305:return iS(e.expression)}return}return Tu(e,!0)?iS(e.left):kd(e)?iS(e.expression):e}function tB(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function DY(e){let t=rB(e);return M.assert(!!t||Ly(e),"Invalid property name for binding element."),t}function rB(e){switch(e.kind){case 208:if(e.propertyName){let n=e.propertyName;return es(n)?M.failBadSyntaxKind(n):Go(n)&&w4e(n.expression)?n.expression:n}break;case 303:if(e.name){let n=e.name;return es(n)?M.failBadSyntaxKind(n):Go(n)&&w4e(n.expression)?n.expression:n}break;case 305:return e.name&&es(e.name)?M.failBadSyntaxKind(e.name):e.name}let t=iS(e);if(t&&Ol(t))return t}function w4e(e){let t=e.kind;return t===11||t===9}function kN(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function IY(e){if(e){let t=e;for(;;){if($e(t)||!t.body)return $e(t)?t:t.name;t=t.body}}}function O4e(e){let t=e.kind;return t===176||t===178}function mme(e){let t=e.kind;return t===176||t===177||t===178}function wY(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function gme(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function hme(e){return Q1(e)||dM(e)}function yme(e){return $e(e)||vN(e)}function vme(e){return Bde(e)||iY(e)||sY(e)}function Sme(e){return Q1(e)||iY(e)||sY(e)}function Tme(e){return $e(e)||jo(e)}function R4e(e){let t=e.kind;return t===106||t===112||t===97||Wb(e)||tS(e)}function RSt(e){return e===43}function MSt(e){return e===42||e===44||e===45}function LSt(e){return RSt(e)||MSt(e)}function FSt(e){return e===40||e===41}function jSt(e){return FSt(e)||LSt(e)}function BSt(e){return e===48||e===49||e===50}function OY(e){return BSt(e)||jSt(e)}function USt(e){return e===30||e===33||e===32||e===34||e===104||e===103}function VSt(e){return USt(e)||OY(e)}function JSt(e){return e===35||e===37||e===36||e===38}function qSt(e){return JSt(e)||VSt(e)}function zSt(e){return e===51||e===52||e===53}function WSt(e){return zSt(e)||qSt(e)}function GSt(e){return e===56||e===57}function HSt(e){return GSt(e)||WSt(e)}function $St(e){return e===61||HSt(e)||v0(e)}function YSt(e){return $St(e)||e===28}function bme(e){return YSt(e.kind)}var RY;(e=>{function t(E,x,D,I,R,L,F){let J=x>0?R[x-1]:void 0;return M.assertEqual(D[x],t),R[x]=E.onEnter(I[x],J,F),D[x]=m(E,t),x}e.enter=t;function n(E,x,D,I,R,L,F){M.assertEqual(D[x],n),M.assertIsDefined(E.onLeft),D[x]=m(E,n);let J=E.onLeft(I[x].left,R[x],I[x]);return J?(S(x,I,J),d(x,D,I,R,J)):x}e.left=n;function i(E,x,D,I,R,L,F){return M.assertEqual(D[x],i),M.assertIsDefined(E.onOperator),D[x]=m(E,i),E.onOperator(I[x].operatorToken,R[x],I[x]),x}e.operator=i;function s(E,x,D,I,R,L,F){M.assertEqual(D[x],s),M.assertIsDefined(E.onRight),D[x]=m(E,s);let J=E.onRight(I[x].right,R[x],I[x]);return J?(S(x,I,J),d(x,D,I,R,J)):x}e.right=s;function a(E,x,D,I,R,L,F){M.assertEqual(D[x],a),D[x]=m(E,a);let J=E.onExit(I[x],R[x]);if(x>0){if(x--,E.foldState){let $=D[x]===a?"right":"left";R[x]=E.foldState(R[x],J,$)}}else L.value=J;return x}e.exit=a;function u(E,x,D,I,R,L,F){return M.assertEqual(D[x],u),x}e.done=u;function m(E,x){switch(x){case t:if(E.onLeft)return n;case n:if(E.onOperator)return i;case i:if(E.onRight)return s;case s:return a;case a:return u;case u:return u;default:M.fail("Invalid state")}}e.nextState=m;function d(E,x,D,I,R){return E++,x[E]=t,D[E]=R,I[E]=void 0,E}function S(E,x,D){if(M.shouldAssert(2))for(;E>=0;)M.assert(x[E]!==D,"Circular traversal detected."),E--}})(RY||(RY={}));var KSt=class{constructor(e,t,n,i,s,a){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=i,this.onExit=s,this.foldState=a}};function nB(e,t,n,i,s,a){let u=new KSt(e,t,n,i,s,a);return m;function m(d,S){let E={value:void 0},x=[RY.enter],D=[d],I=[void 0],R=0;for(;x[R]!==RY.done;)R=x[R](u,R,x,D,I,E,S);return M.assertEqual(R,0),E.value}}function M4e(e){return e===95||e===90}function CM(e){let t=e.kind;return M4e(t)}function L4e(e){let t=e.kind;return Sv(t)&&!M4e(t)}function Eme(e,t){if(t!==void 0)return t.length===0?t:At(e.createNodeArray([],t.hasTrailingComma),t)}function AM(e){var t;let n=e.emitNode.autoGenerate;if(n.flags&4){let i=n.id,s=e,a=s.original;for(;a;){s=a;let u=(t=s.emitNode)==null?void 0:t.autoGenerate;if(xy(s)&&(u===void 0||u.flags&4&&u.id!==i))break;a=s.original}return s}return e}function PN(e,t){return typeof e=="object"?xT(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function XSt(e,t){return typeof e=="string"?e:QSt(e,M.checkDefined(t))}function QSt(e,t){return zx(e)?t(e).slice(1):Ec(e)?t(e):es(e)?e.escapedText.slice(1):In(e)}function xT(e,t,n,i,s){return t=PN(t,s),i=PN(i,s),n=XSt(n,s),`${e?"#":""}${t}${n}${i}`}function MY(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function xme(e,t,n,i,s=e.createThis()){return e.createGetAccessorDeclaration(n,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Cme(e,t,n,i,s=e.createThis()){return e.createSetAccessorDeclaration(n,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function iB(e){let t=e.expression;for(;;){if(t=Ml(t),CO(t)){t=qo(t.elements);continue}if(bM(t)){t=t.right;continue}if(Tu(t,!0)&&Ec(t.left))return t;break}}function ZSt(e){return ff(e)&&Ka(e)&&!e.emitNode}function sB(e,t){if(ZSt(e))sB(e.expression,t);else if(bM(e))sB(e.left,t),sB(e.right,t);else if(CO(e))for(let n of e.elements)sB(n,t);else t.push(e)}function Ame(e){let t=[];return sB(e,t),t}function kM(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of kN(e)){let n=iS(t);if(n&&Sw(n)&&(n.transformFlags&65536||n.transformFlags&128&&kM(n)))return!0}return!1}function At(e,t){return t?Jg(e,t.pos,t.end):e}function Im(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function bE(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var F4e,j4e,B4e,U4e,V4e,kme={createBaseSourceFileNode:e=>new(V4e||(V4e=Yu.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(B4e||(B4e=Yu.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(U4e||(U4e=Yu.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(j4e||(j4e=Yu.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(F4e||(F4e=Yu.getNodeConstructor()))(e,-1,-1)},CT=oM(1,kme);function or(e,t){return t&&e(t)}function zi(e,t,n){if(n){if(t)return t(n);for(let i of n){let s=e(i);if(s)return s}}}function LY(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function PM(e){return Et(e.statements,eTt)||tTt(e)}function eTt(e){return Im(e)&&rTt(e,95)||nu(e)&&A0(e.moduleReference)||Yc(e)||pc(e)||Cl(e)?e:void 0}function tTt(e){return e.flags&8388608?J4e(e):void 0}function J4e(e){return nTt(e)?e:qs(e,J4e)}function rTt(e,t){return Dt(e.modifiers,n=>n.kind===t)}function nTt(e){return xO(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var iTt={166:function(t,n,i){return or(n,t.left)||or(n,t.right)},168:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||or(n,t.constraint)||or(n,t.default)||or(n,t.expression)},304:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||or(n,t.questionToken)||or(n,t.exclamationToken)||or(n,t.equalsToken)||or(n,t.objectAssignmentInitializer)},305:function(t,n,i){return or(n,t.expression)},169:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.dotDotDotToken)||or(n,t.name)||or(n,t.questionToken)||or(n,t.type)||or(n,t.initializer)},172:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||or(n,t.questionToken)||or(n,t.exclamationToken)||or(n,t.type)||or(n,t.initializer)},171:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||or(n,t.questionToken)||or(n,t.type)||or(n,t.initializer)},303:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||or(n,t.questionToken)||or(n,t.exclamationToken)||or(n,t.initializer)},260:function(t,n,i){return or(n,t.name)||or(n,t.exclamationToken)||or(n,t.type)||or(n,t.initializer)},208:function(t,n,i){return or(n,t.dotDotDotToken)||or(n,t.propertyName)||or(n,t.name)||or(n,t.initializer)},181:function(t,n,i){return zi(n,i,t.modifiers)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)},185:function(t,n,i){return zi(n,i,t.modifiers)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)},184:function(t,n,i){return zi(n,i,t.modifiers)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)},179:q4e,180:q4e,174:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.asteriskToken)||or(n,t.name)||or(n,t.questionToken)||or(n,t.exclamationToken)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)||or(n,t.body)},173:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||or(n,t.questionToken)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)},176:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)||or(n,t.body)},177:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)||or(n,t.body)},178:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)||or(n,t.body)},262:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.asteriskToken)||or(n,t.name)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)||or(n,t.body)},218:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.asteriskToken)||or(n,t.name)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)||or(n,t.body)},219:function(t,n,i){return zi(n,i,t.modifiers)||zi(n,i,t.typeParameters)||zi(n,i,t.parameters)||or(n,t.type)||or(n,t.equalsGreaterThanToken)||or(n,t.body)},175:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.body)},183:function(t,n,i){return or(n,t.typeName)||zi(n,i,t.typeArguments)},182:function(t,n,i){return or(n,t.assertsModifier)||or(n,t.parameterName)||or(n,t.type)},186:function(t,n,i){return or(n,t.exprName)||zi(n,i,t.typeArguments)},187:function(t,n,i){return zi(n,i,t.members)},188:function(t,n,i){return or(n,t.elementType)},189:function(t,n,i){return zi(n,i,t.elements)},192:z4e,193:z4e,194:function(t,n,i){return or(n,t.checkType)||or(n,t.extendsType)||or(n,t.trueType)||or(n,t.falseType)},195:function(t,n,i){return or(n,t.typeParameter)},205:function(t,n,i){return or(n,t.argument)||or(n,t.attributes)||or(n,t.qualifier)||zi(n,i,t.typeArguments)},302:function(t,n,i){return or(n,t.assertClause)},196:W4e,198:W4e,199:function(t,n,i){return or(n,t.objectType)||or(n,t.indexType)},200:function(t,n,i){return or(n,t.readonlyToken)||or(n,t.typeParameter)||or(n,t.nameType)||or(n,t.questionToken)||or(n,t.type)||zi(n,i,t.members)},201:function(t,n,i){return or(n,t.literal)},202:function(t,n,i){return or(n,t.dotDotDotToken)||or(n,t.name)||or(n,t.questionToken)||or(n,t.type)},206:G4e,207:G4e,209:function(t,n,i){return zi(n,i,t.elements)},210:function(t,n,i){return zi(n,i,t.properties)},211:function(t,n,i){return or(n,t.expression)||or(n,t.questionDotToken)||or(n,t.name)},212:function(t,n,i){return or(n,t.expression)||or(n,t.questionDotToken)||or(n,t.argumentExpression)},213:H4e,214:H4e,215:function(t,n,i){return or(n,t.tag)||or(n,t.questionDotToken)||zi(n,i,t.typeArguments)||or(n,t.template)},216:function(t,n,i){return or(n,t.type)||or(n,t.expression)},217:function(t,n,i){return or(n,t.expression)},220:function(t,n,i){return or(n,t.expression)},221:function(t,n,i){return or(n,t.expression)},222:function(t,n,i){return or(n,t.expression)},224:function(t,n,i){return or(n,t.operand)},229:function(t,n,i){return or(n,t.asteriskToken)||or(n,t.expression)},223:function(t,n,i){return or(n,t.expression)},225:function(t,n,i){return or(n,t.operand)},226:function(t,n,i){return or(n,t.left)||or(n,t.operatorToken)||or(n,t.right)},234:function(t,n,i){return or(n,t.expression)||or(n,t.type)},235:function(t,n,i){return or(n,t.expression)},238:function(t,n,i){return or(n,t.expression)||or(n,t.type)},236:function(t,n,i){return or(n,t.name)},227:function(t,n,i){return or(n,t.condition)||or(n,t.questionToken)||or(n,t.whenTrue)||or(n,t.colonToken)||or(n,t.whenFalse)},230:function(t,n,i){return or(n,t.expression)},241:$4e,268:$4e,307:function(t,n,i){return zi(n,i,t.statements)||or(n,t.endOfFileToken)},243:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.declarationList)},261:function(t,n,i){return zi(n,i,t.declarations)},244:function(t,n,i){return or(n,t.expression)},245:function(t,n,i){return or(n,t.expression)||or(n,t.thenStatement)||or(n,t.elseStatement)},246:function(t,n,i){return or(n,t.statement)||or(n,t.expression)},247:function(t,n,i){return or(n,t.expression)||or(n,t.statement)},248:function(t,n,i){return or(n,t.initializer)||or(n,t.condition)||or(n,t.incrementor)||or(n,t.statement)},249:function(t,n,i){return or(n,t.initializer)||or(n,t.expression)||or(n,t.statement)},250:function(t,n,i){return or(n,t.awaitModifier)||or(n,t.initializer)||or(n,t.expression)||or(n,t.statement)},251:Y4e,252:Y4e,253:function(t,n,i){return or(n,t.expression)},254:function(t,n,i){return or(n,t.expression)||or(n,t.statement)},255:function(t,n,i){return or(n,t.expression)||or(n,t.caseBlock)},269:function(t,n,i){return zi(n,i,t.clauses)},296:function(t,n,i){return or(n,t.expression)||zi(n,i,t.statements)},297:function(t,n,i){return zi(n,i,t.statements)},256:function(t,n,i){return or(n,t.label)||or(n,t.statement)},257:function(t,n,i){return or(n,t.expression)},258:function(t,n,i){return or(n,t.tryBlock)||or(n,t.catchClause)||or(n,t.finallyBlock)},299:function(t,n,i){return or(n,t.variableDeclaration)||or(n,t.block)},170:function(t,n,i){return or(n,t.expression)},263:K4e,231:K4e,264:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||zi(n,i,t.typeParameters)||zi(n,i,t.heritageClauses)||zi(n,i,t.members)},265:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||zi(n,i,t.typeParameters)||or(n,t.type)},266:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||zi(n,i,t.members)},306:function(t,n,i){return or(n,t.name)||or(n,t.initializer)},267:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||or(n,t.body)},271:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)||or(n,t.moduleReference)},272:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.importClause)||or(n,t.moduleSpecifier)||or(n,t.attributes)},273:function(t,n,i){return or(n,t.name)||or(n,t.namedBindings)},300:function(t,n,i){return zi(n,i,t.elements)},301:function(t,n,i){return or(n,t.name)||or(n,t.value)},270:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.name)},274:function(t,n,i){return or(n,t.name)},280:function(t,n,i){return or(n,t.name)},275:X4e,279:X4e,278:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.exportClause)||or(n,t.moduleSpecifier)||or(n,t.attributes)},276:Q4e,281:Q4e,277:function(t,n,i){return zi(n,i,t.modifiers)||or(n,t.expression)},228:function(t,n,i){return or(n,t.head)||zi(n,i,t.templateSpans)},239:function(t,n,i){return or(n,t.expression)||or(n,t.literal)},203:function(t,n,i){return or(n,t.head)||zi(n,i,t.templateSpans)},204:function(t,n,i){return or(n,t.type)||or(n,t.literal)},167:function(t,n,i){return or(n,t.expression)},298:function(t,n,i){return zi(n,i,t.types)},233:function(t,n,i){return or(n,t.expression)||zi(n,i,t.typeArguments)},283:function(t,n,i){return or(n,t.expression)},282:function(t,n,i){return zi(n,i,t.modifiers)},355:function(t,n,i){return zi(n,i,t.elements)},284:function(t,n,i){return or(n,t.openingElement)||zi(n,i,t.children)||or(n,t.closingElement)},288:function(t,n,i){return or(n,t.openingFragment)||zi(n,i,t.children)||or(n,t.closingFragment)},285:Z4e,286:Z4e,292:function(t,n,i){return zi(n,i,t.properties)},291:function(t,n,i){return or(n,t.name)||or(n,t.initializer)},293:function(t,n,i){return or(n,t.expression)},294:function(t,n,i){return or(n,t.dotDotDotToken)||or(n,t.expression)},287:function(t,n,i){return or(n,t.tagName)},295:function(t,n,i){return or(n,t.namespace)||or(n,t.name)},190:LO,191:LO,309:LO,315:LO,314:LO,316:LO,318:LO,317:function(t,n,i){return zi(n,i,t.parameters)||or(n,t.type)},320:function(t,n,i){return(typeof t.comment=="string"?void 0:zi(n,i,t.comment))||zi(n,i,t.tags)},347:function(t,n,i){return or(n,t.tagName)||or(n,t.name)||(typeof t.comment=="string"?void 0:zi(n,i,t.comment))},310:function(t,n,i){return or(n,t.name)},311:function(t,n,i){return or(n,t.left)||or(n,t.right)},341:e3e,348:e3e,330:function(t,n,i){return or(n,t.tagName)||(typeof t.comment=="string"?void 0:zi(n,i,t.comment))},329:function(t,n,i){return or(n,t.tagName)||or(n,t.class)||(typeof t.comment=="string"?void 0:zi(n,i,t.comment))},328:function(t,n,i){return or(n,t.tagName)||or(n,t.class)||(typeof t.comment=="string"?void 0:zi(n,i,t.comment))},345:function(t,n,i){return or(n,t.tagName)||or(n,t.constraint)||zi(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:zi(n,i,t.comment))},346:function(t,n,i){return or(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===309?or(n,t.typeExpression)||or(n,t.fullName)||(typeof t.comment=="string"?void 0:zi(n,i,t.comment)):or(n,t.fullName)||or(n,t.typeExpression)||(typeof t.comment=="string"?void 0:zi(n,i,t.comment)))},338:function(t,n,i){return or(n,t.tagName)||or(n,t.fullName)||or(n,t.typeExpression)||(typeof t.comment=="string"?void 0:zi(n,i,t.comment))},342:FO,344:FO,343:FO,340:FO,350:FO,349:FO,339:FO,323:function(t,n,i){return Et(t.typeParameters,n)||Et(t.parameters,n)||or(n,t.type)},324:Pme,325:Pme,326:Pme,322:function(t,n,i){return Et(t.jsDocPropertyTags,n)},327:NN,332:NN,333:NN,334:NN,335:NN,336:NN,331:NN,337:NN,351:sTt,354:oTt};function q4e(e,t,n){return zi(t,n,e.typeParameters)||zi(t,n,e.parameters)||or(t,e.type)}function z4e(e,t,n){return zi(t,n,e.types)}function W4e(e,t,n){return or(t,e.type)}function G4e(e,t,n){return zi(t,n,e.elements)}function H4e(e,t,n){return or(t,e.expression)||or(t,e.questionDotToken)||zi(t,n,e.typeArguments)||zi(t,n,e.arguments)}function $4e(e,t,n){return zi(t,n,e.statements)}function Y4e(e,t,n){return or(t,e.label)}function K4e(e,t,n){return zi(t,n,e.modifiers)||or(t,e.name)||zi(t,n,e.typeParameters)||zi(t,n,e.heritageClauses)||zi(t,n,e.members)}function X4e(e,t,n){return zi(t,n,e.elements)}function Q4e(e,t,n){return or(t,e.propertyName)||or(t,e.name)}function Z4e(e,t,n){return or(t,e.tagName)||zi(t,n,e.typeArguments)||or(t,e.attributes)}function LO(e,t,n){return or(t,e.type)}function e3e(e,t,n){return or(t,e.tagName)||(e.isNameFirst?or(t,e.name)||or(t,e.typeExpression):or(t,e.typeExpression)||or(t,e.name))||(typeof e.comment=="string"?void 0:zi(t,n,e.comment))}function FO(e,t,n){return or(t,e.tagName)||or(t,e.typeExpression)||(typeof e.comment=="string"?void 0:zi(t,n,e.comment))}function Pme(e,t,n){return or(t,e.name)}function NN(e,t,n){return or(t,e.tagName)||(typeof e.comment=="string"?void 0:zi(t,n,e.comment))}function sTt(e,t,n){return or(t,e.tagName)||or(t,e.importClause)||or(t,e.moduleSpecifier)||or(t,e.attributes)||(typeof e.comment=="string"?void 0:zi(t,n,e.comment))}function oTt(e,t,n){return or(t,e.expression)}function qs(e,t,n){if(e===void 0||e.kind<=165)return;let i=iTt[e.kind];return i===void 0?void 0:i(e,t,n)}function HA(e,t,n){let i=t3e(e),s=[];for(;s.length=0;--m)i.push(a[m]),s.push(u)}else{let m=t(a,u);if(m){if(m==="skip")continue;return m}if(a.kind>=166)for(let d of t3e(a))i.push(d),s.push(a)}}}function t3e(e){let t=[];return qs(e,n,n),t;function n(i){t.unshift(i)}}function r3e(e){e.externalModuleIndicator=PM(e)}function $A(e,t,n,i=!1,s){var a,u,m,d;(a=kn)==null||a.push(kn.Phase.Parse,"createSourceFile",{path:e},!0),jc("beforeParse");let S;(u=sf)==null||u.logStartParseSourceFile(e);let{languageVersion:E,setExternalModuleIndicator:x,impliedNodeFormat:D,jsDocParsingMode:I}=typeof n=="object"?n:{languageVersion:n};if(E===100)S=AT.parseSourceFile(e,t,E,void 0,i,6,aa,I);else{let R=D===void 0?x:L=>(L.impliedNodeFormat=D,(x||r3e)(L));S=AT.parseSourceFile(e,t,E,void 0,i,s,R,I)}return(m=sf)==null||m.logStopParseSourceFile(),jc("afterParse"),Sd("Parse","beforeParse","afterParse"),(d=kn)==null||d.pop(),S}function YA(e,t){return AT.parseIsolatedEntityName(e,t)}function NM(e,t){return AT.parseJsonText(e,t)}function iu(e){return e.externalModuleIndicator!==void 0}function FY(e,t,n,i=!1){let s=jY.updateSourceFile(e,t,n,i);return s.flags|=e.flags&12582912,s}function Nme(e,t,n){let i=AT.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&AT.fixupParentReferences(i.jsDoc),i}function n3e(e,t,n){return AT.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}var AT;(e=>{var t=Ey(99,!0),n=40960,i,s,a,u,m;function d(ie){return Qe++,ie}var S={createBaseSourceFileNode:ie=>d(new m(ie,0,0)),createBaseIdentifierNode:ie=>d(new a(ie,0,0)),createBasePrivateIdentifierNode:ie=>d(new u(ie,0,0)),createBaseTokenNode:ie=>d(new s(ie,0,0)),createBaseNode:ie=>d(new i(ie,0,0))},E=oM(11,S),{createNodeArray:x,createNumericLiteral:D,createStringLiteral:I,createLiteralLikeNode:R,createIdentifier:L,createPrivateIdentifier:F,createToken:J,createArrayLiteralExpression:$,createObjectLiteralExpression:q,createPropertyAccessExpression:ee,createPropertyAccessChain:W,createElementAccessExpression:pe,createElementAccessChain:K,createCallExpression:re,createCallChain:ue,createNewExpression:ce,createParenthesizedExpression:ne,createBlock:le,createVariableStatement:me,createExpressionStatement:de,createIfStatement:Ae,createWhileStatement:xe,createForStatement:te,createForOfStatement:he,createVariableDeclaration:Te,createVariableDeclarationList:Ve}=E,Pe,ke,De,Be,lt,ze,tt,we,ft,gt,Qe,yt,ir,Tr,Ar,Vr,fr=!0,ur=!1;function tn(ie,Le,st,Ft,Qt=!1,Fr,si,Qi=0){var ji;if(Fr=uj(ie,Fr),Fr===6){let _s=br(ie,Le,st,Ft,Qt);return RM(_s,(ji=_s.statements[0])==null?void 0:ji.expression,_s.parseDiagnostics,!1,void 0),_s.referencedFiles=ve,_s.typeReferenceDirectives=ve,_s.libReferenceDirectives=ve,_s.amdDependencies=ve,_s.hasNoDefaultLib=!1,_s.pragmas=lr,_s}Di(ie,Le,st,Ft,Fr,Qi);let Ai=os(st,Qt,Fr,si||r3e,Qi);return As(),Ai}e.parseSourceFile=tn;function Mi(ie,Le){Di("",ie,Le,void 0,1,0),Re();let st=ae(!0),Ft=z()===1&&!tt.length;return As(),Ft?st:void 0}e.parseIsolatedEntityName=Mi;function br(ie,Le,st=2,Ft,Qt=!1){Di(ie,Le,st,Ft,6,0),ke=Vr,Re();let Fr=Q(),si,Qi;if(z()===1)si=ga([],Fr,Fr),Qi=el();else{let _s;for(;z()!==1;){let $o;switch(z()){case 23:$o=Bm();break;case 112:case 97:case 106:$o=el();break;case 41:Xn(()=>Re()===9&&Re()!==59)?$o=Wn():$o=eb();break;case 9:case 11:if(Xn(()=>Re()!==59)){$o=Bt();break}default:$o=eb();break}_s&&Ms(_s)?_s.push($o):_s?_s=[_s,$o]:(_s=$o,z()!==1&&Mt(v.Unexpected_token))}let za=Ms(_s)?pr($(_s),Fr):M.checkDefined(_s),go=de(za);pr(go,Fr),si=ga([go],Fr),Qi=Ac(1,v.Unexpected_token)}let ji=Xt(ie,2,6,!1,si,Qi,ke,aa);Qt&&He(ji),ji.nodeCount=Qe,ji.identifierCount=ir,ji.identifiers=yt,ji.parseDiagnostics=vA(tt,ji),we&&(ji.jsDocDiagnostics=vA(we,ji));let Ai=ji;return As(),Ai}e.parseJsonText=br;function Di(ie,Le,st,Ft,Qt,Fr){switch(i=Yu.getNodeConstructor(),s=Yu.getTokenConstructor(),a=Yu.getIdentifierConstructor(),u=Yu.getPrivateIdentifierConstructor(),m=Yu.getSourceFileConstructor(),Pe=eo(ie),De=Le,Be=st,ft=Ft,lt=Qt,ze=YR(Qt),tt=[],Tr=0,yt=new Map,ir=0,Qe=0,ke=0,fr=!0,lt){case 1:case 2:Vr=524288;break;case 6:Vr=134742016;break;default:Vr=0;break}ur=!1,t.setText(De),t.setOnError(bt),t.setScriptTarget(Be),t.setLanguageVariant(ze),t.setScriptKind(lt),t.setJSDocParsingMode(Fr)}function As(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),De=void 0,Be=void 0,ft=void 0,lt=void 0,ze=void 0,ke=0,tt=void 0,we=void 0,Tr=0,yt=void 0,Ar=void 0,fr=!0}function os(ie,Le,st,Ft,Qt){let Fr=ju(Pe);Fr&&(Vr|=33554432),ke=Vr,Re();let si=ca(0,_d);M.assert(z()===1);let Qi=Xe(),ji=$r(el(),Qi),Ai=Xt(Pe,ie,st,Fr,si,ji,ke,Ft);return UY(Ai,De),VY(Ai,_s),Ai.commentDirectives=t.getCommentDirectives(),Ai.nodeCount=Qe,Ai.identifierCount=ir,Ai.identifiers=yt,Ai.parseDiagnostics=vA(tt,Ai),Ai.jsDocParsingMode=Qt,we&&(Ai.jsDocDiagnostics=vA(we,Ai)),Le&&He(Ai),Ai;function _s(za,go,$o){tt.push(yA(Pe,De,za,go,$o))}}let Ri=!1;function $r(ie,Le){if(!Le)return ie;M.assert(!ie.jsDoc);let st=Yi(xH(ie,De),Ft=>Fk.parseJSDocComment(ie,Ft.pos,Ft.end-Ft.pos));return st.length&&(ie.jsDoc=st),Ri&&(Ri=!1,ie.flags|=536870912),ie}function Qs(ie){let Le=ft,st=jY.createSyntaxCursor(ie);ft={currentNode:_s};let Ft=[],Qt=tt;tt=[];let Fr=0,si=ji(ie.statements,0);for(;si!==-1;){let za=ie.statements[Fr],go=ie.statements[si];On(Ft,ie.statements,Fr,si),Fr=Ai(ie.statements,si);let $o=Va(Qt,gg=>gg.start>=za.pos),dd=$o>=0?Va(Qt,gg=>gg.start>=go.pos,$o):-1;$o>=0&&On(tt,Qt,$o,dd>=0?dd:void 0),us(()=>{let gg=Vr;for(Vr|=65536,t.resetTokenState(go.pos),Re();z()!==1;){let Y0=t.getTokenFullStart(),ES=pl(0,_d);if(Ft.push(ES),Y0===t.getTokenFullStart()&&Re(),Fr>=0){let gm=ie.statements[Fr];if(ES.end===gm.pos)break;ES.end>gm.pos&&(Fr=Ai(ie.statements,Fr+1))}}Vr=gg},2),si=Fr>=0?ji(ie.statements,Fr):-1}if(Fr>=0){let za=ie.statements[Fr];On(Ft,ie.statements,Fr);let go=Va(Qt,$o=>$o.start>=za.pos);go>=0&&On(tt,Qt,go)}return ft=Le,E.updateSourceFile(ie,At(x(Ft),ie.statements));function Qi(za){return!(za.flags&65536)&&!!(za.transformFlags&67108864)}function ji(za,go){for(let $o=go;$o118}function nn(){return z()===80?!0:z()===127&&nr()||z()===135&&Vt()?!1:z()>118}function rr(ie,Le,st=!0){return z()===ie?(st&&Re(),!0):(Le?Mt(Le):Mt(v._0_expected,bo(ie)),!1)}let zs=Object.keys(b5).filter(ie=>ie.length>2);function pa(ie){if(hE(ie)){Z(zo(De,ie.template.pos),ie.template.end,v.Module_declaration_names_may_only_use_or_quoted_strings);return}let Le=$e(ie)?In(ie):void 0;if(!Le||!ap(Le,Be)){Mt(v._0_expected,bo(27));return}let st=zo(De,ie.pos);switch(Le){case"const":case"let":case"var":Z(st,ie.end,v.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Fa(v.Interface_name_cannot_be_0,v.Interface_must_be_given_a_name,19);return;case"is":Z(st,t.getTokenStart(),v.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Fa(v.Namespace_name_cannot_be_0,v.Namespace_must_be_given_a_name,19);return;case"type":Fa(v.Type_alias_name_cannot_be_0,v.Type_alias_must_be_given_a_name,64);return}let Ft=Fx(Le,zs,ec)??wa(Le);if(Ft){Z(st,ie.end,v.Unknown_keyword_or_identifier_Did_you_mean_0,Ft);return}z()!==0&&Z(st,ie.end,v.Unexpected_keyword_or_identifier)}function Fa(ie,Le,st){z()===st?Mt(Le):Mt(ie,t.getTokenValue())}function wa(ie){for(let Le of zs)if(ie.length>Le.length+2&&fs(ie,Le))return`${Le} ${ie.slice(Le.length)}`}function gs(ie,Le,st){if(z()===60&&!t.hasPrecedingLineBreak()){Mt(v.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(z()===21){Mt(v.Cannot_start_a_function_call_in_a_type_annotation),Re();return}if(Le&&!Bo()){st?Mt(v._0_expected,bo(27)):Mt(v.Expected_for_property_initializer);return}if(!Sc()){if(st){Mt(v._0_expected,bo(27));return}pa(ie)}}function oo(ie){return z()===ie?(Ot(),!0):(M.assert(A9(ie)),Mt(v._0_expected,bo(ie)),!1)}function vc(ie,Le,st,Ft){if(z()===Le){Re();return}let Qt=Mt(v._0_expected,bo(Le));st&&Qt&&lo(Qt,yA(Pe,De,Ft,1,v.The_parser_expected_to_find_a_1_to_match_the_0_token_here,bo(ie),bo(Le)))}function rs(ie){return z()===ie?(Re(),!0):!1}function Wi(ie){if(z()===ie)return el()}function xu(ie){if(z()===ie)return Zu()}function Ac(ie,Le,st){return Wi(ie)||Jc(ie,!1,Le||v._0_expected,st||bo(ie))}function D_(ie){let Le=xu(ie);return Le||(M.assert(A9(ie)),Jc(ie,!1,v._0_expected,bo(ie)))}function el(){let ie=Q(),Le=z();return Re(),pr(J(Le),ie)}function Zu(){let ie=Q(),Le=z();return Ot(),pr(J(Le),ie)}function Bo(){return z()===27?!0:z()===20||z()===1||t.hasPrecedingLineBreak()}function Sc(){return Bo()?(z()===27&&Re(),!0):!1}function ja(){return Sc()||rr(27)}function ga(ie,Le,st,Ft){let Qt=x(ie,Ft);return Jg(Qt,Le,st??t.getTokenFullStart()),Qt}function pr(ie,Le,st){return Jg(ie,Le,st??t.getTokenFullStart()),Vr&&(ie.flags|=Vr),ur&&(ur=!1,ie.flags|=262144),ie}function Jc(ie,Le,st,...Ft){Le?sr(t.getTokenFullStart(),0,st,...Ft):st&&Mt(st,...Ft);let Qt=Q(),Fr=ie===80?L("",void 0):B1(ie)?E.createTemplateLiteralLikeNode(ie,"","",void 0):ie===9?D("",void 0):ie===11?I("",void 0):ie===282?E.createMissingDeclaration():J(ie);return pr(Fr,Qt)}function W_(ie){let Le=yt.get(ie);return Le===void 0&&yt.set(ie,Le=ie),Le}function G_(ie,Le,st){if(ie){ir++;let Qi=t.hasLeadingAsterisks()?t.getTokenStart():Q(),ji=z(),Ai=W_(t.getTokenValue()),_s=t.hasExtendedUnicodeEscape();return Ue(),pr(L(Ai,ji,_s),Qi)}if(z()===81)return Mt(st||v.Private_identifiers_are_not_allowed_outside_class_bodies),G_(!0);if(z()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return G_(!0);ir++;let Ft=z()===1,Qt=t.isReservedWord(),Fr=t.getTokenText(),si=Qt?v.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:v.Identifier_expected;return Jc(80,Ft,Le||si,Fr)}function Wf(ie){return G_(Cr(),void 0,ie)}function dc(ie,Le){return G_(nn(),ie,Le)}function tl(ie){return G_(j_(z()),ie)}function Se(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Mt(v.Unicode_escape_sequence_cannot_appear_here),G_(j_(z()))}function oe(){return j_(z())||z()===11||z()===9}function Ke(){return j_(z())||z()===11}function Rt(ie){if(z()===11||z()===9){let Le=Bt();return Le.text=W_(Le.text),Le}return ie&&z()===23?qn():z()===81?mr():tl()}function xr(){return Rt(!0)}function qn(){let ie=Q();rr(23);let Le=Sr(Ze);return rr(24),pr(E.createComputedPropertyName(Le),ie)}function mr(){let ie=Q(),Le=F(W_(t.getTokenValue()));return Re(),pr(Le,ie)}function zn(ie){return z()===ie&&hi(Pi)}function Li(){return Re(),t.hasPrecedingLineBreak()?!1:Oc()}function Pi(){switch(z()){case 87:return Re()===94;case 95:return Re(),z()===90?Xn(mu):z()===156?Xn(mc):Io();case 90:return mu();case 126:case 139:case 153:return Re(),Oc();default:return Li()}}function Io(){return z()===60||z()!==42&&z()!==130&&z()!==19&&Oc()}function mc(){return Re(),Io()}function Wl(){return Sv(z())&&hi(Pi)}function Oc(){return z()===23||z()===19||z()===42||z()===26||oe()}function mu(){return Re(),z()===86||z()===100||z()===120||z()===60||z()===128&&Xn(V6)||z()===134&&Xn(Y_)}function gc(ie,Le){if(au(ie))return!0;switch(ie){case 0:case 1:case 3:return!(z()===27&&Le)&&Ff();case 2:return z()===84||z()===90;case 4:return Xn(pn);case 5:return Xn(pd)||z()===27&&!Le;case 6:return z()===23||oe();case 12:switch(z()){case 23:case 42:case 26:case 25:return!0;default:return oe()}case 18:return oe();case 9:return z()===23||z()===26||oe();case 24:return Ke();case 7:return z()===19?Xn(gu):Le?nn()&&!id():Ak()&&!id();case 8:return ob();case 10:return z()===28||z()===26||ob();case 19:return z()===103||z()===87||nn();case 15:switch(z()){case 28:case 25:return!0}case 11:return z()===26||pg();case 16:return Rm(!1);case 17:return Rm(!0);case 20:case 21:return z()===28||Jy();case 22:return $E();case 23:return z()===161&&Xn(U2)?!1:j_(z());case 13:return j_(z())||z()===19;case 14:return!0;case 25:return!0;case 26:return M.fail("ParsingContext.Count used as a context");default:M.assertNever(ie,"Non-exhaustive case in 'isListElement'.")}}function gu(){if(M.assert(z()===19),Re()===20){let ie=Re();return ie===28||ie===19||ie===96||ie===119}return!0}function Gf(){return Re(),nn()}function rl(){return Re(),j_(z())}function Gl(){return Re(),Tue(z())}function id(){return z()===119||z()===96?Xn(Je):!1}function Je(){return Re(),pg()}function zt(){return Re(),Jy()}function Kr(ie){if(z()===1)return!0;switch(ie){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return z()===20;case 3:return z()===20||z()===84||z()===90;case 7:return z()===19||z()===96||z()===119;case 8:return hs();case 19:return z()===32||z()===21||z()===19||z()===96||z()===119;case 11:return z()===22||z()===27;case 15:case 21:case 10:return z()===24;case 17:case 16:case 18:return z()===22||z()===24;case 20:return z()!==28;case 22:return z()===19||z()===20;case 13:return z()===32||z()===44;case 14:return z()===30&&Xn(RD);default:return!1}}function hs(){return!!(Bo()||KT(z())||z()===39)}function ea(){M.assert(Tr,"Missing parsing context");for(let ie=0;ie<26;ie++)if(Tr&1<=0)}function Yh(ie){return ie===6?v.An_enum_member_name_must_be_followed_by_a_or:void 0}function $f(){let ie=ga([],Q());return ie.isMissingList=!0,ie}function rh(ie){return!!ie.isMissingList}function ad(ie,Le,st,Ft){if(rr(st)){let Qt=Hl(ie,Le);return rr(Ft),Qt}return $f()}function ae(ie,Le){let st=Q(),Ft=ie?tl(Le):dc(Le);for(;rs(25)&&z()!==30;)Ft=pr(E.createQualifiedName(Ft,Kt(ie,!1,!0)),st);return Ft}function vt(ie,Le){return pr(E.createQualifiedName(ie,Le),ie.pos)}function Kt(ie,Le,st){if(t.hasPrecedingLineBreak()&&j_(z())&&Xn(rb))return Jc(80,!0,v.Identifier_expected);if(z()===81){let Ft=mr();return Le?Ft:Jc(80,!0,v.Identifier_expected)}return ie?st?tl():Se():dc()}function Zt(ie){let Le=Q(),st=[],Ft;do Ft=Fe(ie),st.push(Ft);while(Ft.literal.kind===17);return ga(st,Le)}function Ur(ie){let Le=Q();return pr(E.createTemplateExpression(Zr(ie),Zt(ie)),Le)}function on(){let ie=Q();return pr(E.createTemplateLiteralType(Zr(!1),Yn()),ie)}function Yn(){let ie=Q(),Le=[],st;do st=bi(),Le.push(st);while(st.literal.kind===17);return ga(Le,ie)}function bi(){let ie=Q();return pr(E.createTemplateLiteralTypeSpan(cu(),G(!1)),ie)}function G(ie){return z()===20?(Wr(ie),Fi()):Ac(18,v._0_expected,bo(20))}function Fe(ie){let Le=Q();return pr(E.createTemplateSpan(Sr(Ze),G(ie)),Le)}function Bt(){return Ts(z())}function Zr(ie){!ie&&t.getTokenFlags()&26656&&Wr(!1);let Le=Ts(z());return M.assert(Le.kind===16,"Template head has wrong token kind"),Le}function Fi(){let ie=Ts(z());return M.assert(ie.kind===17||ie.kind===18,"Template fragment has wrong token kind"),ie}function Vs(ie){let Le=ie===15||ie===18,st=t.getTokenText();return st.substring(1,st.length-(t.isUnterminated()?0:Le?1:2))}function Ts(ie){let Le=Q(),st=B1(ie)?E.createTemplateLiteralLikeNode(ie,t.getTokenValue(),Vs(ie),t.getTokenFlags()&7176):ie===9?D(t.getTokenValue(),t.getNumericLiteralFlags()):ie===11?I(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):gw(ie)?R(ie,t.getTokenValue()):M.fail();return t.hasExtendedUnicodeEscape()&&(st.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(st.isUnterminated=!0),Re(),pr(st,Le)}function Ws(){return ae(!0,v.Type_expected)}function Ta(){if(!t.hasPrecedingLineBreak()&&Yr()===30)return ad(20,cu,30,32)}function Ho(){let ie=Q();return pr(E.createTypeReferenceNode(Ws(),Ta()),ie)}function qc(ie){switch(ie.kind){case 183:return Gc(ie.typeName);case 184:case 185:{let{parameters:Le,type:st}=ie;return rh(Le)||qc(st)}case 196:return qc(ie.type);default:return!1}}function Od(ie){return Re(),pr(E.createTypePredicateNode(void 0,ie,cu()),ie.pos)}function Om(){let ie=Q();return Re(),pr(E.createThisTypeNode(),ie)}function Kh(){let ie=Q();return Re(),pr(E.createJSDocAllType(),ie)}function Uy(){let ie=Q();return Re(),pr(E.createJSDocNonNullableType(jE(),!1),ie)}function Hv(){let ie=Q();return Re(),z()===28||z()===20||z()===22||z()===32||z()===64||z()===52?pr(E.createJSDocUnknownType(),ie):pr(E.createJSDocNullableType(cu(),!1),ie)}function Vy(){let ie=Q(),Le=Xe();if(hi(Mk)){let st=ld(36),Ft=um(59,!1);return $r(pr(E.createJSDocFunctionType(st,Ft),ie),Le)}return pr(E.createTypeReferenceNode(tl(),void 0),ie)}function Rd(){let ie=Q(),Le;return(z()===110||z()===105)&&(Le=tl(),rr(59)),pr(E.createParameterDeclaration(void 0,void 0,Le,void 0,cd(),void 0),ie)}function cd(){t.setSkipJsDocLeadingAsterisks(!0);let ie=Q();if(rs(144)){let Ft=E.createJSDocNamepathType(void 0);e:for(;;)switch(z()){case 20:case 1:case 28:case 5:break e;default:Ot()}return t.setSkipJsDocLeadingAsterisks(!1),pr(Ft,ie)}let Le=rs(26),st=Qv();return t.setSkipJsDocLeadingAsterisks(!1),Le&&(st=pr(E.createJSDocVariadicType(st),ie)),z()===64?(Re(),pr(E.createJSDocOptionalType(st),ie)):st}function qa(){let ie=Q();rr(114);let Le=ae(!0),st=t.hasPrecedingLineBreak()?void 0:G0();return pr(E.createTypeQueryNode(Le,st),ie)}function g_(){let ie=Q(),Le=tr(!1,!0),st=dc(),Ft,Qt;rs(96)&&(Jy()||!pg()?Ft=cu():Qt=r1());let Fr=rs(64)?cu():void 0,si=E.createTypeParameterDeclaration(Le,st,Ft,Fr);return si.expression=Qt,pr(si,ie)}function H_(){if(z()===30)return ad(19,g_,30,32)}function Rm(ie){return z()===26||ob()||Sv(z())||z()===60||Jy(!ie)}function $v(ie){let Le=yS(v.Private_identifiers_cannot_be_used_as_parameters);return Q3(Le)===0&&!Dt(ie)&&Sv(z())&&Re(),Le}function R0(){return Cr()||z()===23||z()===19}function pS(ie){return dS(ie)}function lm(ie){return dS(ie,!1)}function dS(ie,Le=!0){let st=Q(),Ft=Xe(),Qt=ie?Ce(()=>tr(!0)):it(()=>tr(!0));if(z()===110){let ji=E.createParameterDeclaration(Qt,void 0,G_(!0),void 0,Zv(),void 0),Ai=Aa(Qt);return Ai&&Ye(Ai,v.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),$r(pr(ji,st),Ft)}let Fr=fr;fr=!1;let si=Wi(26);if(!Le&&!R0())return;let Qi=$r(pr(E.createParameterDeclaration(Qt,si,$v(Qt),Wi(58),Zv(),Mm()),st),Ft);return fr=Fr,Qi}function um(ie,Le){if(VT(ie,Le))return ut(Qv)}function VT(ie,Le){return ie===39?(rr(ie),!0):rs(59)?!0:Le&&z()===39?(Mt(v._0_expected,bo(59)),Re(),!0):!1}function fg(ie,Le){let st=nr(),Ft=Vt();Ti(!!(ie&1)),Vi(!!(ie&2));let Qt=ie&32?Hl(17,Rd):Hl(16,()=>Le?pS(Ft):lm(Ft));return Ti(st),Vi(Ft),Qt}function ld(ie){if(!rr(21))return $f();let Le=fg(ie,!0);return rr(22),Le}function M0(){rs(28)||ja()}function Ge(ie){let Le=Q(),st=Xe();ie===180&&rr(105);let Ft=H_(),Qt=ld(4),Fr=um(59,!0);M0();let si=ie===179?E.createCallSignature(Ft,Qt,Fr):E.createConstructSignature(Ft,Qt,Fr);return $r(pr(si,Le),st)}function ot(){return z()===23&&Xn(qt)}function qt(){if(Re(),z()===26||z()===24)return!0;if(Sv(z())){if(Re(),nn())return!0}else if(nn())Re();else return!1;return z()===59||z()===28?!0:z()!==58?!1:(Re(),z()===59||z()===28||z()===24)}function ar(ie,Le,st){let Ft=ad(16,()=>pS(!1),23,24),Qt=Zv();M0();let Fr=E.createIndexSignature(st,Ft,Qt);return $r(pr(Fr,ie),Le)}function Nr(ie,Le,st){let Ft=xr(),Qt=Wi(58),Fr;if(z()===21||z()===30){let si=H_(),Qi=ld(4),ji=um(59,!0);Fr=E.createMethodSignature(st,Ft,Qt,si,Qi,ji)}else{let si=Zv();Fr=E.createPropertySignature(st,Ft,Qt,si),z()===64&&(Fr.initializer=Mm())}return M0(),$r(pr(Fr,ie),Le)}function pn(){if(z()===21||z()===30||z()===139||z()===153)return!0;let ie=!1;for(;Sv(z());)ie=!0,Re();return z()===23?!0:(oe()&&(ie=!0,Re()),ie?z()===21||z()===30||z()===58||z()===59||z()===28||Bo():!1)}function Mr(){if(z()===21||z()===30)return Ge(179);if(z()===105&&Xn(Nn))return Ge(180);let ie=Q(),Le=Xe(),st=tr(!1);return zn(139)?o1(ie,Le,st,177,4):zn(153)?o1(ie,Le,st,178,4):ot()?ar(ie,Le,st):Nr(ie,Le,st)}function Nn(){return Re(),z()===21||z()===30}function Bi(){return Re()===25}function Cn(){switch(Re()){case 21:case 30:case 25:return!0}return!1}function Ii(){let ie=Q();return pr(E.createTypeLiteralNode(cn()),ie)}function cn(){let ie;return rr(19)?(ie=ca(4,Mr),rr(20)):ie=$f(),ie}function Is(){return Re(),z()===40||z()===41?Re()===148:(z()===148&&Re(),z()===23&&Gf()&&Re()===103)}function Oo(){let ie=Q(),Le=tl();rr(103);let st=cu();return pr(E.createTypeParameterDeclaration(void 0,Le,st,void 0),ie)}function Cu(){let ie=Q();rr(19);let Le;(z()===148||z()===40||z()===41)&&(Le=el(),Le.kind!==148&&rr(148)),rr(23);let st=Oo(),Ft=rs(130)?cu():void 0;rr(24);let Qt;(z()===58||z()===40||z()===41)&&(Qt=el(),Qt.kind!==58&&rr(58));let Fr=Zv();ja();let si=ca(4,Mr);return rr(20),pr(E.createMappedTypeNode(Le,st,Ft,Qt,Fr,si),ie)}function I_(){let ie=Q();if(rs(26))return pr(E.createRestTypeNode(cu()),ie);let Le=cu();if(bN(Le)&&Le.pos===Le.type.pos){let st=E.createOptionalTypeNode(Le.type);return At(st,Le),st.flags=Le.flags,st}return Le}function _m(){return Re()===59||z()===58&&Re()===59}function Yv(){return z()===26?j_(Re())&&_m():j_(z())&&_m()}function fm(){if(Xn(Yv)){let ie=Q(),Le=Xe(),st=Wi(26),Ft=tl(),Qt=Wi(58);rr(59);let Fr=I_(),si=E.createNamedTupleMember(st,Ft,Qt,Fr);return $r(pr(si,ie),Le)}return I_()}function Tk(){let ie=Q();return pr(E.createTupleTypeNode(ad(21,fm,23,24)),ie)}function gD(){let ie=Q();rr(21);let Le=cu();return rr(22),pr(E.createParenthesizedType(Le),ie)}function bk(){let ie;if(z()===128){let Le=Q();Re();let st=pr(J(128),Le);ie=ga([st],Le)}return ie}function FE(){let ie=Q(),Le=Xe(),st=bk(),Ft=rs(105);M.assert(!st||Ft,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Qt=H_(),Fr=ld(4),si=um(39,!1),Qi=Ft?E.createConstructorTypeNode(st,Qt,Fr,si):E.createFunctionTypeNode(Qt,Fr,si);return $r(pr(Qi,ie),Le)}function JT(){let ie=el();return z()===25?void 0:ie}function qT(ie){let Le=Q();ie&&Re();let st=z()===112||z()===97||z()===106?el():Ts(z());return ie&&(st=pr(E.createPrefixUnaryExpression(41,st),Le)),pr(E.createLiteralTypeNode(st),Le)}function zT(){return Re(),z()===102}function P2(){ke|=4194304;let ie=Q(),Le=rs(114);rr(102),rr(21);let st=cu(),Ft;if(rs(28)){let si=t.getTokenStart();rr(19);let Qi=z();if(Qi===118||Qi===132?Re():Mt(v._0_expected,bo(118)),rr(59),Ft=W6(Qi,!0),!rr(20)){let ji=yc(tt);ji&&ji.code===v._0_expected.code&&lo(ji,yA(Pe,De,si,1,v.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}rr(22);let Qt=rs(25)?Ws():void 0,Fr=Ta();return pr(E.createImportTypeNode(st,Ft,Qt,Fr,Le),ie)}function Kv(){return Re(),z()===9||z()===10}function jE(){switch(z()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return hi(JT)||Ho();case 67:t.reScanAsteriskEqualsToken();case 42:return Kh();case 61:t.reScanQuestionToken();case 58:return Hv();case 100:return Vy();case 54:return Uy();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return qT();case 41:return Xn(Kv)?qT(!0):Ho();case 116:return el();case 110:{let ie=Om();return z()===142&&!t.hasPrecedingLineBreak()?Od(ie):ie}case 114:return Xn(zT)?P2():qa();case 19:return Xn(Is)?Cu():Ii();case 23:return Tk();case 21:return gD();case 102:return P2();case 131:return Xn(rb)?Ck():Ho();case 16:return on();default:return Ho()}}function Jy(ie){switch(z()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!ie;case 41:return!ie&&Xn(Kv);case 21:return!ie&&Xn(BE);default:return nn()}}function BE(){return Re(),z()===22||Rm(!1)||Jy()}function da(){let ie=Q(),Le=jE();for(;!t.hasPrecedingLineBreak();)switch(z()){case 54:Re(),Le=pr(E.createJSDocNonNullableType(Le,!0),ie);break;case 58:if(Xn(zt))return Le;Re(),Le=pr(E.createJSDocNullableType(Le,!0),ie);break;case 23:if(rr(23),Jy()){let st=cu();rr(24),Le=pr(E.createIndexedAccessTypeNode(Le,st),ie)}else rr(24),Le=pr(E.createArrayTypeNode(Le),ie);break;default:return Le}return Le}function N2(ie){let Le=Q();return rr(ie),pr(E.createTypeOperatorNode(ie,nh()),Le)}function D2(){if(rs(96)){let ie=Tt(cu);if(Nt()||z()!==58)return ie}}function WT(){let ie=Q(),Le=dc(),st=hi(D2),Ft=E.createTypeParameterDeclaration(void 0,Le,st);return pr(Ft,ie)}function L0(){let ie=Q();return rr(140),pr(E.createInferTypeNode(WT()),ie)}function nh(){let ie=z();switch(ie){case 143:case 158:case 148:return N2(ie);case 140:return L0()}return ut(da)}function Md(ie){if(Ek()){let Le=FE(),st;return Vh(Le)?st=ie?v.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:v.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:st=ie?v.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:v.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Ye(Le,st),Le}}function Lf(ie,Le,st){let Ft=Q(),Qt=ie===52,Fr=rs(ie),si=Fr&&Md(Qt)||Le();if(z()===ie||Fr){let Qi=[si];for(;rs(ie);)Qi.push(Md(Qt)||Le());si=pr(st(ga(Qi,Ft)),Ft)}return si}function vp(){return Lf(51,nh,E.createIntersectionTypeNode)}function Yf(){return Lf(52,vp,E.createUnionTypeNode)}function Xv(){return Re(),z()===105}function Ek(){return z()===30||z()===21&&Xn(GT)?!0:z()===105||z()===128&&Xn(Xv)}function xk(){if(Sv(z())&&tr(!1),nn()||z()===110)return Re(),!0;if(z()===23||z()===19){let ie=tt.length;return yS(),ie===tt.length}return!1}function GT(){return Re(),!!(z()===22||z()===26||xk()&&(z()===59||z()===28||z()===58||z()===64||z()===22&&(Re(),z()===39)))}function Qv(){let ie=Q(),Le=nn()&&hi(HT),st=cu();return Le?pr(E.createTypePredicateNode(void 0,Le,st),ie):st}function HT(){let ie=dc();if(z()===142&&!t.hasPrecedingLineBreak())return Re(),ie}function Ck(){let ie=Q(),Le=Ac(131),st=z()===110?Om():dc(),Ft=rs(142)?cu():void 0;return pr(E.createTypePredicateNode(Le,st,Ft),ie)}function cu(){if(Vr&81920)return uo(81920,cu);if(Ek())return FE();let ie=Q(),Le=Yf();if(!Nt()&&!t.hasPrecedingLineBreak()&&rs(96)){let st=Tt(cu);rr(58);let Ft=ut(cu);rr(59);let Qt=ut(cu);return pr(E.createConditionalTypeNode(Le,st,Ft,Qt),ie)}return Le}function Zv(){return rs(59)?cu():void 0}function Ak(){switch(z()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Xn(Cn);default:return nn()}}function pg(){if(Ak())return!0;switch(z()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return Op()?!0:nn()}}function I2(){return z()!==19&&z()!==100&&z()!==86&&z()!==60&&pg()}function Ze(){let ie=It();ie&&ki(!1);let Le=Q(),st=Au(!0),Ft;for(;Ft=Wi(28);)st=t1(st,Ft,Au(!0),Le);return ie&&ki(!0),st}function Mm(){return rs(64)?Au(!0):void 0}function Au(ie){if($T())return Ld();let Le=F0(ie)||UE(ie);if(Le)return Le;let st=Q(),Ft=Xe(),Qt=B0(0);return Qt.kind===80&&z()===39?ih(st,Qt,ie,Ft,void 0):Af(Qt)&&v0($t())?t1(Qt,el(),Au(ie),st):j0(Qt,st,ie)}function $T(){return z()===127?nr()?!0:Xn(j2):!1}function Xh(){return Re(),!t.hasPrecedingLineBreak()&&nn()}function Ld(){let ie=Q();return Re(),!t.hasPrecedingLineBreak()&&(z()===42||pg())?pr(E.createYieldExpression(Wi(42),Au(!0)),ie):pr(E.createYieldExpression(void 0,void 0),ie)}function ih(ie,Le,st,Ft,Qt){M.assert(z()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Fr=E.createParameterDeclaration(void 0,void 0,Le,void 0,void 0,void 0);pr(Fr,Le.pos);let si=ga([Fr],Fr.pos,Fr.end),Qi=Ac(39),ji=YT(!!Qt,st),Ai=E.createArrowFunction(Qt,void 0,si,void 0,Qi,ji);return $r(pr(Ai,ie),Ft)}function F0(ie){let Le=B6();if(Le!==0)return Le===1?O2(!0,!0):hi(()=>Lm(ie))}function B6(){return z()===21||z()===30||z()===134?Xn(ta):z()===39?1:0}function ta(){if(z()===134&&(Re(),t.hasPrecedingLineBreak()||z()!==21&&z()!==30))return 0;let ie=z(),Le=Re();if(ie===21){if(Le===22)switch(Re()){case 39:case 59:case 19:return 1;default:return 0}if(Le===23||Le===19)return 2;if(Le===26)return 1;if(Sv(Le)&&Le!==134&&Xn(Gf))return Re()===130?0:1;if(!nn()&&Le!==110)return 0;switch(Re()){case 59:return 1;case 58:return Re(),z()===59||z()===28||z()===64||z()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return M.assert(ie===30),!nn()&&z()!==87?0:ze===1?Xn(()=>{rs(87);let Ft=Re();if(Ft===96)switch(Re()){case 64:case 32:case 44:return!1;default:return!0}else if(Ft===28||Ft===64)return!0;return!1})?1:0:2}function Lm(ie){let Le=t.getTokenStart();if(Ar?.has(Le))return;let st=O2(!1,ie);return st||(Ar||(Ar=new Set)).add(Le),st}function UE(ie){if(z()===134&&Xn(w2)===1){let Le=Q(),st=Xe(),Ft=Ei(),Qt=B0(0);return ih(Le,Qt,ie,st,Ft)}}function w2(){if(z()===134){if(Re(),t.hasPrecedingLineBreak()||z()===39)return 0;let ie=B0(0);if(!t.hasPrecedingLineBreak()&&ie.kind===80&&z()===39)return 1}return 0}function O2(ie,Le){let st=Q(),Ft=Xe(),Qt=Ei(),Fr=Dt(Qt,SO)?2:0,si=H_(),Qi;if(rr(21)){if(ie)Qi=fg(Fr,ie);else{let Y0=fg(Fr,ie);if(!Y0)return;Qi=Y0}if(!rr(22)&&!ie)return}else{if(!ie)return;Qi=$f()}let ji=z()===59,Ai=um(59,!1);if(Ai&&!ie&&qc(Ai))return;let _s=Ai;for(;_s?.kind===196;)_s=_s.type;let za=_s&&EN(_s);if(!ie&&z()!==39&&(za||z()!==19))return;let go=z(),$o=Ac(39),dd=go===39||go===19?YT(Dt(Qt,SO),Le):dc();if(!Le&&ji&&z()!==59)return;let gg=E.createArrowFunction(Qt,si,Qi,Ai,$o,dd);return $r(pr(gg,st),Ft)}function YT(ie,Le){if(z()===19)return s1(ie?2:0);if(z()!==27&&z()!==100&&z()!==86&&Ff()&&!I2())return s1(16|(ie?2:0));let st=fr;fr=!1;let Ft=ie?Ce(()=>Au(Le)):it(()=>Au(Le));return fr=st,Ft}function j0(ie,Le,st){let Ft=Wi(58);if(!Ft)return ie;let Qt;return pr(E.createConditionalExpression(ie,Ft,uo(n,()=>Au(!1)),Qt=Ac(59),Kd(Qt)?Au(st):Jc(80,!1,v._0_expected,bo(59))),Le)}function B0(ie){let Le=Q(),st=r1();return ud(ie,st,Le)}function KT(ie){return ie===103||ie===165}function ud(ie,Le,st){for(;;){$t();let Ft=jR(z());if(!(z()===43?Ft>=ie:Ft>ie)||z()===103&&Oe())break;if(z()===130||z()===152){if(t.hasPrecedingLineBreak())break;{let Fr=z();Re(),Le=Fr===152?e1(Le,cu()):as(Le,cu())}}else Le=t1(Le,el(),B0(Ft),st)}return Le}function Op(){return Oe()&&z()===103?!1:jR(z())>0}function e1(ie,Le){return pr(E.createSatisfiesExpression(ie,Le),ie.pos)}function t1(ie,Le,st,Ft){return pr(E.createBinaryExpression(ie,Le,st),Ft)}function as(ie,Le){return pr(E.createAsExpression(ie,Le),ie.pos)}function Wn(){let ie=Q();return pr(E.createPrefixUnaryExpression(z(),be(U0)),ie)}function h_(){let ie=Q();return pr(E.createDeleteExpression(be(U0)),ie)}function hD(){let ie=Q();return pr(E.createTypeOfExpression(be(U0)),ie)}function Fm(){let ie=Q();return pr(E.createVoidExpression(be(U0)),ie)}function kk(){return z()===135?Vt()?!0:Xn(j2):!1}function Qh(){let ie=Q();return pr(E.createAwaitExpression(be(U0)),ie)}function r1(){if(yD()){let st=Q(),Ft=XT();return z()===43?ud(jR(z()),Ft,st):Ft}let ie=z(),Le=U0();if(z()===43){let st=zo(De,Le.pos),{end:Ft}=Le;Le.kind===216?Z(st,Ft,v.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(M.assert(A9(ie)),Z(st,Ft,v.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,bo(ie)))}return Le}function U0(){switch(z()){case 40:case 41:case 55:case 54:return Wn();case 91:return h_();case 114:return hD();case 116:return Fm();case 30:return ze===1?qy(!0,void 0,void 0,!0):Dk();case 135:if(kk())return Qh();default:return XT()}}function yD(){switch(z()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(ze!==1)return!1;default:return!0}}function XT(){if(z()===46||z()===47){let Le=Q();return pr(E.createPrefixUnaryExpression(z(),be(Rp)),Le)}else if(ze===1&&z()===30&&Xn(Gl))return qy(!0);let ie=Rp();if(M.assert(Af(ie)),(z()===46||z()===47)&&!t.hasPrecedingLineBreak()){let Le=z();return Re(),pr(E.createPostfixUnaryExpression(ie,Le),ie.pos)}return ie}function Rp(){let ie=Q(),Le;return z()===102?Xn(Nn)?(ke|=4194304,Le=el()):Xn(Bi)?(Re(),Re(),Le=pr(E.createMetaProperty(102,tl()),ie),ke|=8388608):Le=VE():Le=z()===108?sc():VE(),Fd(ie,Le)}function VE(){let ie=Q(),Le=L2();return sh(ie,Le,!0)}function sc(){let ie=Q(),Le=el();if(z()===30){let st=Q(),Ft=hi(QT);Ft!==void 0&&(Z(st,Q(),v.super_may_not_use_type_arguments),Tp()||(Le=E.createExpressionWithTypeArguments(Le,Ft)))}return z()===21||z()===25||z()===23?Le:(Ac(25,v.super_must_be_followed_by_an_argument_list_or_member_access),pr(ee(Le,Kt(!0,!0,!0)),ie))}function qy(ie,Le,st,Ft=!1){let Qt=Q(),Fr=U6(ie),si;if(Fr.kind===286){let Qi=JE(Fr),ji,Ai=Qi[Qi.length-1];if(Ai?.kind===284&&!kT(Ai.openingElement.tagName,Ai.closingElement.tagName)&&kT(Fr.tagName,Ai.closingElement.tagName)){let _s=Ai.children.end,za=pr(E.createJsxElement(Ai.openingElement,Ai.children,pr(E.createJsxClosingElement(pr(L(""),_s,_s)),_s,_s)),Ai.openingElement.pos,_s);Qi=ga([...Qi.slice(0,Qi.length-1),za],Qi.pos,_s),ji=Ai.closingElement}else ji=Sn(Fr,ie),kT(Fr.tagName,ji.tagName)||(st&&$g(st)&&kT(ji.tagName,st.tagName)?Ye(Fr.tagName,v.JSX_element_0_has_no_corresponding_closing_tag,Cw(De,Fr.tagName)):Ye(ji.tagName,v.Expected_corresponding_JSX_closing_tag_for_0,Cw(De,Fr.tagName)));si=pr(E.createJsxElement(Fr,Qi,ji),Qt)}else Fr.kind===289?si=pr(E.createJsxFragment(Fr,JE(Fr),Nk(ie)),Qt):(M.assert(Fr.kind===285),si=Fr);if(!Ft&&ie&&z()===30){let Qi=typeof Le>"u"?si.pos:Le,ji=hi(()=>qy(!0,Qi));if(ji){let Ai=Jc(28,!1);return U$(Ai,ji.pos,0),Z(zo(De,Qi),ji.end,v.JSX_expressions_must_have_one_parent_element),pr(E.createBinaryExpression(si,Ai,ji),Qt)}}return si}function vD(){let ie=Q(),Le=E.createJsxText(t.getTokenValue(),gt===13);return gt=t.scanJsxToken(),pr(Le,ie)}function R2(ie,Le){switch(Le){case 1:if(_2(ie))Ye(ie,v.JSX_fragment_has_no_corresponding_closing_tag);else{let st=ie.tagName,Ft=Math.min(zo(De,st.pos),st.end);Z(Ft,st.end,v.JSX_element_0_has_no_corresponding_closing_tag,Cw(De,ie.tagName))}return;case 31:case 7:return;case 12:case 13:return vD();case 19:return w_(!1);case 30:return qy(!1,void 0,ie);default:return M.assertNever(Le)}}function JE(ie){let Le=[],st=Q(),Ft=Tr;for(Tr|=16384;;){let Qt=R2(ie,gt=t.reScanJsxToken());if(!Qt||(Le.push(Qt),$g(ie)&&Qt?.kind===284&&!kT(Qt.openingElement.tagName,Qt.closingElement.tagName)&&kT(ie.tagName,Qt.closingElement.tagName)))break}return Tr=Ft,ga(Le,st)}function Pk(){let ie=Q();return pr(E.createJsxAttributes(ca(13,Fs)),ie)}function U6(ie){let Le=Q();if(rr(30),z()===32)return Rn(),pr(E.createJsxOpeningFragment(),Le);let st=SD(),Ft=Vr&524288?void 0:G0(),Qt=Pk(),Fr;return z()===32?(Rn(),Fr=E.createJsxOpeningElement(st,Ft,Qt)):(rr(44),rr(32,void 0,!1)&&(ie?Re():Rn()),Fr=E.createJsxSelfClosingElement(st,Ft,Qt)),pr(Fr,Le)}function SD(){let ie=Q(),Le=Fn();if(ig(Le))return Le;let st=Le;for(;rs(25);)st=pr(ee(st,Kt(!0,!1,!1)),ie);return st}function Fn(){let ie=Q();Pr();let Le=z()===110,st=Se();return rs(59)?(Pr(),pr(E.createJsxNamespacedName(st,Se()),ie)):Le?pr(E.createToken(110),ie):st}function w_(ie){let Le=Q();if(!rr(19))return;let st,Ft;return z()!==20&&(ie||(st=Wi(26)),Ft=Ze()),ie?rr(20):rr(20,void 0,!1)&&Rn(),pr(E.createJsxExpression(st,Ft),Le)}function Fs(){if(z()===19)return Sp();let ie=Q();return pr(E.createJsxAttribute(M2(),V0()),ie)}function V0(){if(z()===64){if(Xi()===11)return Bt();if(z()===19)return w_(!0);if(z()===30)return qy(!0);Mt(v.or_JSX_element_expected)}}function M2(){let ie=Q();Pr();let Le=Se();return rs(59)?(Pr(),pr(E.createJsxNamespacedName(Le,Se()),ie)):Le}function Sp(){let ie=Q();rr(19),rr(26);let Le=Ze();return rr(20),pr(E.createJsxSpreadAttribute(Le),ie)}function Sn(ie,Le){let st=Q();rr(31);let Ft=SD();return rr(32,void 0,!1)&&(Le||!kT(ie.tagName,Ft)?Re():Rn()),pr(E.createJsxClosingElement(Ft),st)}function Nk(ie){let Le=Q();return rr(31),rr(32,v.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(ie?Re():Rn()),pr(E.createJsxJsxClosingFragment(),Le)}function Dk(){M.assert(ze!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let ie=Q();rr(30);let Le=cu();rr(32);let st=U0();return pr(E.createTypeAssertion(Le,st),ie)}function $_(){return Re(),j_(z())||z()===23||Tp()}function jm(){return z()===29&&Xn($_)}function pm(ie){if(ie.flags&64)return!0;if(JA(ie)){let Le=ie.expression;for(;JA(Le)&&!(Le.flags&64);)Le=Le.expression;if(Le.flags&64){for(;JA(ie);)ie.flags|=64,ie=ie.expression;return!0}}return!1}function n1(ie,Le,st){let Ft=Kt(!0,!0,!0),Qt=st||pm(Le),Fr=Qt?W(Le,st,Ft):ee(Le,Ft);if(Qt&&es(Fr.name)&&Ye(Fr.name,v.An_optional_chain_cannot_contain_private_identifiers),C0(Le)&&Le.typeArguments){let si=Le.typeArguments.pos-1,Qi=zo(De,Le.typeArguments.end)+1;Z(si,Qi,v.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return pr(Fr,ie)}function qE(ie,Le,st){let Ft;if(z()===24)Ft=Jc(80,!0,v.An_element_access_expression_should_take_an_argument);else{let Fr=Sr(Ze);Wp(Fr)&&(Fr.text=W_(Fr.text)),Ft=Fr}rr(24);let Qt=st||pm(Le)?K(Le,st,Ft):pe(Le,Ft);return pr(Qt,ie)}function sh(ie,Le,st){for(;;){let Ft,Qt=!1;if(st&&jm()?(Ft=Ac(29),Qt=j_(z())):Qt=rs(25),Qt){Le=n1(ie,Le,Ft);continue}if((Ft||!It())&&rs(23)){Le=qE(ie,Le,Ft);continue}if(Tp()){Le=!Ft&&Le.kind===233?oh(ie,Le.expression,Ft,Le.typeArguments):oh(ie,Le,Ft,void 0);continue}if(!Ft){if(z()===54&&!t.hasPrecedingLineBreak()){Re(),Le=pr(E.createNonNullExpression(Le),ie);continue}let Fr=hi(QT);if(Fr){Le=pr(E.createExpressionWithTypeArguments(Le,Fr),ie);continue}}return Le}}function Tp(){return z()===15||z()===16}function oh(ie,Le,st,Ft){let Qt=E.createTaggedTemplateExpression(Le,Ft,z()===15?(Wr(!0),Bt()):Ur(!0));return(st||Le.flags&64)&&(Qt.flags|=64),Qt.questionDotToken=st,pr(Qt,ie)}function Fd(ie,Le){for(;;){Le=sh(ie,Le,!0);let st,Ft=Wi(29);if(Ft&&(st=hi(QT),Tp())){Le=oh(ie,Le,Ft,st);continue}if(st||z()===21){!Ft&&Le.kind===233&&(st=Le.typeArguments,Le=Le.expression);let Qt=zy(),Fr=Ft||pm(Le)?ue(Le,Ft,st,Qt):re(Le,st,Qt);Le=pr(Fr,ie);continue}if(Ft){let Qt=Jc(80,!1,v.Identifier_expected);Le=pr(W(Le,Ft,Qt),ie)}break}return Le}function zy(){rr(21);let ie=Hl(11,ZT);return rr(22),ie}function QT(){if(Vr&524288||Yr()!==30)return;Re();let ie=Hl(20,cu);if($t()===32)return Re(),ie&&Ik()?ie:void 0}function Ik(){switch(z()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Op()||!pg()}function L2(){switch(z()){case 15:t.getTokenFlags()&26656&&Wr(!1);case 9:case 10:case 11:return Bt();case 110:case 108:case 106:case 112:case 97:return el();case 21:return zE();case 23:return Bm();case 19:return eb();case 134:if(!Xn(Y_))break;return mS();case 60:return ps();case 86:return ks();case 100:return mS();case 105:return i1();case 44:case 69:if(gr()===14)return Bt();break;case 16:return Ur(!1);case 81:return mr()}return dc(v.Expression_expected)}function zE(){let ie=Q(),Le=Xe();rr(21);let st=Sr(Ze);return rr(22),$r(pr(ne(st),ie),Le)}function TD(){let ie=Q();rr(26);let Le=Au(!0);return pr(E.createSpreadElement(Le),ie)}function F2(){return z()===26?TD():z()===28?pr(E.createOmittedExpression(),Q()):Au(!0)}function ZT(){return uo(n,F2)}function Bm(){let ie=Q(),Le=t.getTokenStart(),st=rr(23),Ft=t.hasPrecedingLineBreak(),Qt=Hl(15,F2);return vc(23,24,st,Le),pr($(Qt,Ft),ie)}function bD(){let ie=Q(),Le=Xe();if(Wi(26)){let _s=Au(!0);return $r(pr(E.createSpreadAssignment(_s),ie),Le)}let st=tr(!0);if(zn(139))return o1(ie,Le,st,177,0);if(zn(153))return o1(ie,Le,st,178,0);let Ft=Wi(42),Qt=nn(),Fr=xr(),si=Wi(58),Qi=Wi(54);if(Ft||z()===21||z()===30)return Ll(ie,Le,st,Ft,Fr,si,Qi);let ji;if(Qt&&z()!==59){let _s=Wi(64),za=_s?Sr(()=>Au(!0)):void 0;ji=E.createShorthandPropertyAssignment(Fr,za),ji.equalsToken=_s}else{rr(59);let _s=Sr(()=>Au(!0));ji=E.createPropertyAssignment(Fr,_s)}return ji.modifiers=st,ji.questionToken=si,ji.exclamationToken=Qi,$r(pr(ji,ie),Le)}function eb(){let ie=Q(),Le=t.getTokenStart(),st=rr(19),Ft=t.hasPrecedingLineBreak(),Qt=Hl(12,bD,!0);return vc(19,20,st,Le),pr(q(Qt,Ft),ie)}function mS(){let ie=It();ki(!1);let Le=Q(),st=Xe(),Ft=tr(!1);rr(100);let Qt=Wi(42),Fr=Qt?1:0,si=Dt(Ft,SO)?2:0,Qi=Fr&&si?Me(J0):Fr?fe(J0):si?Ce(J0):J0(),ji=H_(),Ai=ld(Fr|si),_s=um(59,!1),za=s1(Fr|si);ki(ie);let go=E.createFunctionExpression(Ft,Qt,Qi,ji,Ai,_s,za);return $r(pr(go,Le),st)}function J0(){return Cr()?Wf():void 0}function i1(){let ie=Q();if(rr(105),rs(25)){let Fr=tl();return pr(E.createMetaProperty(105,Fr),ie)}let Le=Q(),st=sh(Le,L2(),!1),Ft;st.kind===233&&(Ft=st.typeArguments,st=st.expression),z()===29&&Mt(v.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Cw(De,st));let Qt=z()===21?zy():void 0;return pr(ce(st,Ft,Qt),ie)}function dm(ie,Le){let st=Q(),Ft=Xe(),Qt=t.getTokenStart(),Fr=rr(19,Le);if(Fr||ie){let si=t.hasPrecedingLineBreak(),Qi=ca(1,_d);vc(19,20,Fr,Qt);let ji=$r(pr(le(Qi,si),st),Ft);return z()===64&&(Mt(v.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Re()),ji}else{let si=$f();return $r(pr(le(si,void 0),st),Ft)}}function s1(ie,Le){let st=nr();Ti(!!(ie&1));let Ft=Vt();Vi(!!(ie&2));let Qt=fr;fr=!1;let Fr=It();Fr&&ki(!1);let si=dm(!!(ie&16),Le);return Fr&&ki(!0),fr=Qt,Ti(st),Vi(Ft),si}function tb(){let ie=Q(),Le=Xe();return rr(27),$r(pr(E.createEmptyStatement(),ie),Le)}function Ou(){let ie=Q(),Le=Xe();rr(101);let st=t.getTokenStart(),Ft=rr(21),Qt=Sr(Ze);vc(21,22,Ft,st);let Fr=_d(),si=rs(93)?_d():void 0;return $r(pr(Ae(Qt,Fr,si),ie),Le)}function q0(){let ie=Q(),Le=Xe();rr(92);let st=_d();rr(117);let Ft=t.getTokenStart(),Qt=rr(21),Fr=Sr(Ze);return vc(21,22,Qt,Ft),rs(27),$r(pr(E.createDoStatement(st,Fr),ie),Le)}function ah(){let ie=Q(),Le=Xe();rr(117);let st=t.getTokenStart(),Ft=rr(21),Qt=Sr(Ze);vc(21,22,Ft,st);let Fr=_d();return $r(pr(xe(Qt,Fr),ie),Le)}function dl(){let ie=Q(),Le=Xe();rr(99);let st=Wi(135);rr(21);let Ft;z()!==27&&(z()===115||z()===121||z()===87||z()===160&&Xn(AD)||z()===135&&Xn(Rk)?Ft=Um(!0):Ft=ia(Ze));let Qt;if(st?rr(165):rs(165)){let Fr=Sr(()=>Au(!0));rr(22),Qt=he(st,Ft,Fr,_d())}else if(rs(103)){let Fr=Sr(Ze);rr(22),Qt=E.createForInStatement(Ft,Fr,_d())}else{rr(27);let Fr=z()!==27&&z()!==22?Sr(Ze):void 0;rr(27);let si=z()!==22?Sr(Ze):void 0;rr(22),Qt=te(Ft,Fr,si,_d())}return $r(pr(Qt,ie),Le)}function ku(ie){let Le=Q(),st=Xe();rr(ie===252?83:88);let Ft=Bo()?void 0:dc();ja();let Qt=ie===252?E.createBreakStatement(Ft):E.createContinueStatement(Ft);return $r(pr(Qt,Le),st)}function z0(){let ie=Q(),Le=Xe();rr(107);let st=Bo()?void 0:Sr(Ze);return ja(),$r(pr(E.createReturnStatement(st),ie),Le)}function Kf(){let ie=Q(),Le=Xe();rr(118);let st=t.getTokenStart(),Ft=rr(21),Qt=Sr(Ze);vc(21,22,Ft,st);let Fr=Ys(67108864,_d);return $r(pr(E.createWithStatement(Qt,Fr),ie),Le)}function jd(){let ie=Q(),Le=Xe();rr(84);let st=Sr(Ze);rr(59);let Ft=ca(3,_d);return $r(pr(E.createCaseClause(st,Ft),ie),Le)}function wk(){let ie=Q();rr(90),rr(59);let Le=ca(3,_d);return pr(E.createDefaultClause(Le),ie)}function ch(){return z()===84?jd():wk()}function Ok(){let ie=Q();rr(19);let Le=ca(2,ch);return rr(20),pr(E.createCaseBlock(Le),ie)}function lh(){let ie=Q(),Le=Xe();rr(109),rr(21);let st=Sr(Ze);rr(22);let Ft=Ok();return $r(pr(E.createSwitchStatement(st,Ft),ie),Le)}function gS(){let ie=Q(),Le=Xe();rr(111);let st=t.hasPrecedingLineBreak()?void 0:Sr(Ze);return st===void 0&&(ir++,st=pr(L(""),Q())),Sc()||pa(st),$r(pr(E.createThrowStatement(st),ie),Le)}function ED(){let ie=Q(),Le=Xe();rr(113);let st=dm(!1),Ft=z()===85?nl():void 0,Qt;return(!Ft||z()===98)&&(rr(98,v.catch_or_finally_expected),Qt=dm(!1)),$r(pr(E.createTryStatement(st,Ft,Qt),ie),Le)}function nl(){let ie=Q();rr(85);let Le;rs(21)?(Le=vS(),rr(22)):Le=void 0;let st=dm(!1);return pr(E.createCatchClause(Le,st),ie)}function xD(){let ie=Q(),Le=Xe();return rr(89),ja(),$r(pr(E.createDebuggerStatement(),ie),Le)}function CD(){let ie=Q(),Le=Xe(),st,Ft=z()===21,Qt=Sr(Ze);return $e(Qt)&&rs(59)?st=E.createLabeledStatement(Qt,_d()):(Sc()||pa(Qt),st=de(Qt),Ft&&(Le=!1)),$r(pr(st,ie),Le)}function rb(){return Re(),j_(z())&&!t.hasPrecedingLineBreak()}function V6(){return Re(),z()===86&&!t.hasPrecedingLineBreak()}function Y_(){return Re(),z()===100&&!t.hasPrecedingLineBreak()}function j2(){return Re(),(j_(z())||z()===9||z()===10||z()===11)&&!t.hasPrecedingLineBreak()}function WE(){for(;;)switch(z()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return GE();case 135:return B2();case 120:case 156:return Xh();case 144:case 145:return sa();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let ie=z();if(Re(),t.hasPrecedingLineBreak())return!1;if(ie===138&&z()===156)return!0;continue;case 162:return Re(),z()===19||z()===80||z()===95;case 102:return Re(),z()===11||z()===42||z()===19||j_(z());case 95:let Le=Re();if(Le===156&&(Le=Xn(Re)),Le===64||Le===42||Le===19||Le===90||Le===130||Le===60)return!0;continue;case 126:Re();continue;default:return!1}}function nb(){return Xn(WE)}function Ff(){switch(z()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return nb()||Xn(Cn);case 87:case 95:return nb();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return nb()||!Xn(rb);default:return pg()}}function J6(){return Re(),Cr()||z()===19||z()===23}function ib(){return Xn(J6)}function AD(){return sb(!0)}function sb(ie){return Re(),ie&&z()===165?!1:(Cr()||z()===19)&&!t.hasPrecedingLineBreak()}function GE(){return Xn(sb)}function Rk(ie){return Re()===160?sb(ie):!1}function B2(){return Xn(Rk)}function _d(){switch(z()){case 27:return tb();case 19:return dm(!1);case 115:return Zh(Q(),Xe(),void 0);case 121:if(ib())return Zh(Q(),Xe(),void 0);break;case 135:if(B2())return Zh(Q(),Xe(),void 0);break;case 160:if(GE())return Zh(Q(),Xe(),void 0);break;case 100:return uh(Q(),Xe(),void 0);case 86:return Ro(Q(),Xe(),void 0);case 101:return Ou();case 92:return q0();case 117:return ah();case 99:return dl();case 88:return ku(251);case 83:return ku(252);case 107:return z0();case 118:return Kf();case 109:return lh();case 111:return gS();case 113:case 85:case 98:return ED();case 89:return xD();case 60:return hS();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(nb())return hS();break}return CD()}function kD(ie){return ie.kind===138}function hS(){let ie=Q(),Le=Xe(),st=tr(!0);if(Dt(st,kD)){let Qt=Mp(ie);if(Qt)return Qt;for(let Fr of st)Fr.flags|=33554432;return Ys(33554432,()=>dg(ie,Le,st))}else return dg(ie,Le,st)}function Mp(ie){return Ys(33554432,()=>{let Le=au(Tr,ie);if(Le)return Ja(Le)})}function dg(ie,Le,st){switch(z()){case 115:case 121:case 87:case 160:case 135:return Zh(ie,Le,st);case 100:return uh(ie,Le,st);case 86:return Ro(ie,Le,st);case 120:return H0(ie,Le,st);case 156:return ab(ie,Le,st);case 94:return TS(ie,Le,st);case 162:case 144:case 145:return q6(ie,Le,st);case 102:return dJ(ie,Le,st);case 95:switch(Re(),z()){case 90:case 64:return Pa(ie,Le,st);case 130:return pJ(ie,Le,st);default:return G6(ie,Le,st)}default:if(st){let Ft=Jc(282,!0,v.Declaration_expected);return uO(Ft,ie),Ft.modifiers=st,Ft}return}}function U2(){return Re()===11}function V2(){return Re(),z()===161||z()===64}function sa(){return Re(),!t.hasPrecedingLineBreak()&&(nn()||z()===11)}function Un(ie,Le){if(z()!==19){if(ie&4){M0();return}if(Bo()){ja();return}}return s1(ie,Le)}function fd(){let ie=Q();if(z()===28)return pr(E.createOmittedExpression(),ie);let Le=Wi(26),st=yS(),Ft=Mm();return pr(E.createBindingElement(Le,void 0,st,Ft),ie)}function e_(){let ie=Q(),Le=Wi(26),st=Cr(),Ft=xr(),Qt;st&&z()!==59?(Qt=Ft,Ft=void 0):(rr(59),Qt=yS());let Fr=Mm();return pr(E.createBindingElement(Le,Ft,Qt,Fr),ie)}function PD(){let ie=Q();rr(19);let Le=Sr(()=>Hl(9,e_));return rr(20),pr(E.createObjectBindingPattern(Le),ie)}function ND(){let ie=Q();rr(23);let Le=Sr(()=>Hl(10,fd));return rr(24),pr(E.createArrayBindingPattern(Le),ie)}function ob(){return z()===19||z()===23||z()===81||Cr()}function yS(ie){return z()===23?ND():z()===19?PD():Wf(ie)}function DD(){return vS(!0)}function vS(ie){let Le=Q(),st=Xe(),Ft=yS(v.Private_identifiers_are_not_allowed_in_variable_declarations),Qt;ie&&Ft.kind===80&&z()===54&&!t.hasPrecedingLineBreak()&&(Qt=el());let Fr=Zv(),si=KT(z())?void 0:Mm(),Qi=Te(Ft,Qt,Fr,si);return $r(pr(Qi,Le),st)}function Um(ie){let Le=Q(),st=0;switch(z()){case 115:break;case 121:st|=1;break;case 87:st|=2;break;case 160:st|=4;break;case 135:M.assert(B2()),st|=6,Re();break;default:M.fail()}Re();let Ft;if(z()===165&&Xn(Lp))Ft=$f();else{let Qt=Oe();Pn(ie),Ft=Hl(8,ie?vS:DD),Pn(Qt)}return pr(Ve(Ft,st),Le)}function Lp(){return Gf()&&Re()===22}function Zh(ie,Le,st){let Ft=Um(!1);ja();let Qt=me(st,Ft);return $r(pr(Qt,ie),Le)}function uh(ie,Le,st){let Ft=Vt(),Qt=Ug(st);rr(100);let Fr=Wi(42),si=Qt&2048?J0():Wf(),Qi=Fr?1:0,ji=Qt&1024?2:0,Ai=H_();Qt&32&&Vi(!0);let _s=ld(Qi|ji),za=um(59,!1),go=Un(Qi|ji,v.or_expected);Vi(Ft);let $o=E.createFunctionDeclaration(st,Fr,si,Ai,_s,za,go);return $r(pr($o,ie),Le)}function W0(){if(z()===137)return rr(137);if(z()===11&&Xn(Re)===21)return hi(()=>{let ie=Bt();return ie.text==="constructor"?ie:void 0})}function J2(ie,Le,st){return hi(()=>{if(W0()){let Ft=H_(),Qt=ld(0),Fr=um(59,!1),si=Un(0,v.or_expected),Qi=E.createConstructorDeclaration(st,Qt,si);return Qi.typeParameters=Ft,Qi.type=Fr,$r(pr(Qi,ie),Le)}})}function Ll(ie,Le,st,Ft,Qt,Fr,si,Qi){let ji=Ft?1:0,Ai=Dt(st,SO)?2:0,_s=H_(),za=ld(ji|Ai),go=um(59,!1),$o=Un(ji|Ai,Qi),dd=E.createMethodDeclaration(st,Ft,Qt,Fr,_s,za,go,$o);return dd.exclamationToken=si,$r(pr(dd,ie),Le)}function Vm(ie,Le,st,Ft,Qt){let Fr=!Qt&&!t.hasPrecedingLineBreak()?Wi(54):void 0,si=Zv(),Qi=uo(90112,Mm);gs(Ft,si,Qi);let ji=E.createPropertyDeclaration(st,Ft,Qt||Fr,si,Qi);return $r(pr(ji,ie),Le)}function Fp(ie,Le,st){let Ft=Wi(42),Qt=xr(),Fr=Wi(58);return Ft||z()===21||z()===30?Ll(ie,Le,st,Ft,Qt,Fr,void 0,v.or_expected):Vm(ie,Le,st,Qt,Fr)}function o1(ie,Le,st,Ft,Qt){let Fr=xr(),si=H_(),Qi=ld(0),ji=um(59,!1),Ai=Un(Qt),_s=Ft===177?E.createGetAccessorDeclaration(st,Fr,Qi,ji,Ai):E.createSetAccessorDeclaration(st,Fr,Qi,Ai);return _s.typeParameters=si,dp(_s)&&(_s.type=ji),$r(pr(_s,ie),Le)}function pd(){let ie;if(z()===60)return!0;for(;Sv(z());){if(ie=z(),$G(ie))return!0;Re()}if(z()===42||(oe()&&(ie=z(),Re()),z()===23))return!0;if(ie!==void 0){if(!af(ie)||ie===153||ie===139)return!0;switch(z()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Bo()}}return!1}function q2(ie,Le,st){Ac(126);let Ft=SS(),Qt=$r(pr(E.createClassStaticBlockDeclaration(Ft),ie),Le);return Qt.modifiers=st,Qt}function SS(){let ie=nr(),Le=Vt();Ti(!1),Vi(!0);let st=dm(!1);return Ti(ie),Vi(Le),st}function O(){if(Vt()&&z()===135){let ie=Q(),Le=dc(v.Expression_expected);Re();let st=sh(ie,Le,!0);return Fd(ie,st)}return Rp()}function ye(){let ie=Q();if(!rs(60))return;let Le=St(O);return pr(E.createDecorator(Le),ie)}function wt(ie,Le,st){let Ft=Q(),Qt=z();if(z()===87&&Le){if(!hi(Li))return}else{if(st&&z()===126&&Xn(OD))return;if(ie&&z()===126)return;if(!Wl())return}return pr(J(Qt),Ft)}function tr(ie,Le,st){let Ft=Q(),Qt,Fr,si,Qi=!1,ji=!1,Ai=!1;if(ie&&z()===60)for(;Fr=ye();)Qt=Ut(Qt,Fr);for(;si=wt(Qi,Le,st);)si.kind===126&&(Qi=!0),Qt=Ut(Qt,si),ji=!0;if(ji&&ie&&z()===60)for(;Fr=ye();)Qt=Ut(Qt,Fr),Ai=!0;if(Ai)for(;si=wt(Qi,Le,st);)si.kind===126&&(Qi=!0),Qt=Ut(Qt,si);return Qt&&ga(Qt,Ft)}function Ei(){let ie;if(z()===134){let Le=Q();Re();let st=pr(J(134),Le);ie=ga([st],Le)}return ie}function vs(){let ie=Q(),Le=Xe();if(z()===27)return Re(),$r(pr(E.createSemicolonClassElement(),ie),Le);let st=tr(!0,!0,!0);if(z()===126&&Xn(OD))return q2(ie,Le,st);if(zn(139))return o1(ie,Le,st,177,0);if(zn(153))return o1(ie,Le,st,178,0);if(z()===137||z()===11){let Ft=J2(ie,Le,st);if(Ft)return Ft}if(ot())return ar(ie,Le,st);if(j_(z())||z()===11||z()===9||z()===42||z()===23)if(Dt(st,kD)){for(let Qt of st)Qt.flags|=33554432;return Ys(33554432,()=>Fp(ie,Le,st))}else return Fp(ie,Le,st);if(st){let Ft=Jc(80,!0,v.Declaration_expected);return Vm(ie,Le,st,Ft,void 0)}return M.fail("Should not have attempted to parse class member declaration.")}function ps(){let ie=Q(),Le=Xe(),st=tr(!0);if(z()===86)return K_(ie,Le,st,231);let Ft=Jc(282,!0,v.Expression_expected);return uO(Ft,ie),Ft.modifiers=st,Ft}function ks(){return K_(Q(),Xe(),void 0,231)}function Ro(ie,Le,st){return K_(ie,Le,st,263)}function K_(ie,Le,st,Ft){let Qt=Vt();rr(86);let Fr=O_(),si=H_();Dt(st,RA)&&Vi(!0);let Qi=HE(),ji;rr(19)?(ji=ID(),rr(20)):ji=$f(),Vi(Qt);let Ai=Ft===263?E.createClassDeclaration(st,Fr,si,Qi,ji):E.createClassExpression(st,Fr,si,Qi,ji);return $r(pr(Ai,ie),Le)}function O_(){return Cr()&&!a1()?G_(Cr()):void 0}function a1(){return z()===119&&Xn(rl)}function HE(){if($E())return ca(22,bp)}function bp(){let ie=Q(),Le=z();M.assert(Le===96||Le===119),Re();let st=Hl(7,mg);return pr(E.createHeritageClause(Le,st),ie)}function mg(){let ie=Q(),Le=Rp();if(Le.kind===233)return Le;let st=G0();return pr(E.createExpressionWithTypeArguments(Le,st),ie)}function G0(){return z()===30?ad(20,cu,30,32):void 0}function $E(){return z()===96||z()===119}function ID(){return ca(5,vs)}function H0(ie,Le,st){rr(120);let Ft=dc(),Qt=H_(),Fr=HE(),si=cn(),Qi=E.createInterfaceDeclaration(st,Ft,Qt,Fr,si);return $r(pr(Qi,ie),Le)}function ab(ie,Le,st){rr(156),t.hasPrecedingLineBreak()&&Mt(v.Line_break_not_permitted_here);let Ft=dc(),Qt=H_();rr(64);let Fr=z()===141&&hi(JT)||cu();ja();let si=E.createTypeAliasDeclaration(st,Ft,Qt,Fr);return $r(pr(si,ie),Le)}function c1(){let ie=Q(),Le=Xe(),st=xr(),Ft=Sr(Mm);return $r(pr(E.createEnumMember(st,Ft),ie),Le)}function TS(ie,Le,st){rr(94);let Ft=dc(),Qt;rr(19)?(Qt=rt(()=>Hl(6,c1)),rr(20)):Qt=$f();let Fr=E.createEnumDeclaration(st,Ft,Qt);return $r(pr(Fr,ie),Le)}function ns(){let ie=Q(),Le;return rr(19)?(Le=ca(1,_d),rr(20)):Le=$f(),pr(E.createModuleBlock(Le),ie)}function bS(ie,Le,st,Ft){let Qt=Ft&32,Fr=Ft&8?tl():dc(),si=rs(25)?bS(Q(),!1,void 0,8|Qt):ns(),Qi=E.createModuleDeclaration(st,Fr,si,Ft);return $r(pr(Qi,ie),Le)}function _n(ie,Le,st){let Ft=0,Qt;z()===162?(Qt=dc(),Ft|=2048):(Qt=Bt(),Qt.text=W_(Qt.text));let Fr;z()===19?Fr=ns():ja();let si=E.createModuleDeclaration(st,Qt,Fr,Ft);return $r(pr(si,ie),Le)}function q6(ie,Le,st){let Ft=0;if(z()===162)return _n(ie,Le,st);if(rs(145))Ft|=32;else if(rr(144),z()===11)return _n(ie,Le,st);return bS(ie,Le,st,Ft)}function wD(){return z()===149&&Xn(Mk)}function Mk(){return Re()===21}function OD(){return Re()===19}function RD(){return Re()===44}function pJ(ie,Le,st){rr(130),rr(145);let Ft=dc();ja();let Qt=E.createNamespaceExportDeclaration(Ft);return Qt.modifiers=st,$r(pr(Qt,ie),Le)}function dJ(ie,Le,st){rr(102);let Ft=t.getTokenFullStart(),Qt;nn()&&(Qt=dc());let Fr=!1;if(Qt?.escapedText==="type"&&(z()!==161||nn()&&Xn(V2))&&(nn()||vL())&&(Fr=!0,Qt=nn()?dc():void 0),Qt&&!cb())return SL(ie,Le,st,Qt,Fr);let si=ey(Qt,Ft,Fr),Qi=mm(),ji=yL();ja();let Ai=E.createImportDeclaration(st,si,Qi,ji);return $r(pr(Ai,ie),Le)}function ey(ie,Le,st,Ft=!1){let Qt;return(ie||z()===42||z()===19)&&(Qt=YE(ie,Le,st,Ft),rr(161)),Qt}function yL(){let ie=z();if((ie===118||ie===132)&&!t.hasPrecedingLineBreak())return W6(ie)}function z6(){let ie=Q(),Le=j_(z())?tl():Ts(11);rr(59);let st=Au(!0);return pr(E.createImportAttribute(Le,st),ie)}function W6(ie,Le){let st=Q();Le||rr(ie);let Ft=t.getTokenStart();if(rr(19)){let Qt=t.hasPrecedingLineBreak(),Fr=Hl(24,z6,!0);if(!rr(20)){let si=yc(tt);si&&si.code===v._0_expected.code&&lo(si,yA(Pe,De,Ft,1,v.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return pr(E.createImportAttributes(Fr,Qt,ie),st)}else{let Qt=ga([],Q(),void 0,!1);return pr(E.createImportAttributes(Qt,!1,ie),st)}}function vL(){return z()===42||z()===19}function cb(){return z()===28||z()===161}function SL(ie,Le,st,Ft,Qt){rr(64);let Fr=$0();ja();let si=E.createImportEqualsDeclaration(st,Qt,Ft,Fr);return $r(pr(si,ie),Le)}function YE(ie,Le,st,Ft){let Qt;return(!ie||rs(28))&&(Ft&&t.setSkipJsDocLeadingAsterisks(!0),Qt=z()===42?MD():TL(275),Ft&&t.setSkipJsDocLeadingAsterisks(!1)),pr(E.createImportClause(st,ie,Qt),Le)}function $0(){return wD()?KE():ae(!1)}function KE(){let ie=Q();rr(149),rr(21);let Le=mm();return rr(22),pr(E.createExternalModuleReference(Le),ie)}function mm(){if(z()===11){let ie=Bt();return ie.text=W_(ie.text),ie}else return Ze()}function MD(){let ie=Q();rr(42),rr(130);let Le=dc();return pr(E.createNamespaceImport(Le),ie)}function TL(ie){let Le=Q(),st=ie===275?E.createNamedImports(ad(23,z2,19,20)):E.createNamedExports(ad(23,ty,19,20));return pr(st,Le)}function ty(){let ie=Xe();return $r(bL(281),ie)}function z2(){return bL(276)}function bL(ie){let Le=Q(),st=af(z())&&!nn(),Ft=t.getTokenStart(),Qt=t.getTokenEnd(),Fr=!1,si,Qi=!0,ji=tl();if(ji.escapedText==="type")if(z()===130){let za=tl();if(z()===130){let go=tl();j_(z())?(Fr=!0,si=za,ji=_s(),Qi=!1):(si=ji,ji=go,Qi=!1)}else j_(z())?(si=ji,Qi=!1,ji=_s()):(Fr=!0,ji=za)}else j_(z())&&(Fr=!0,ji=_s());Qi&&z()===130&&(si=ji,rr(130),ji=_s()),ie===276&&st&&Z(Ft,Qt,v.Identifier_expected);let Ai=ie===276?E.createImportSpecifier(Fr,si,ji):E.createExportSpecifier(Fr,si,ji);return pr(Ai,Le);function _s(){return st=af(z())&&!nn(),Ft=t.getTokenStart(),Qt=t.getTokenEnd(),tl()}}function il(ie){return pr(E.createNamespaceExport(tl()),ie)}function G6(ie,Le,st){let Ft=Vt();Vi(!0);let Qt,Fr,si,Qi=rs(156),ji=Q();rs(42)?(rs(130)&&(Qt=il(ji)),rr(161),Fr=mm()):(Qt=TL(279),(z()===161||z()===11&&!t.hasPrecedingLineBreak())&&(rr(161),Fr=mm()));let Ai=z();Fr&&(Ai===118||Ai===132)&&!t.hasPrecedingLineBreak()&&(si=W6(Ai)),ja(),Vi(Ft);let _s=E.createExportDeclaration(st,Qi,Qt,Fr,si);return $r(pr(_s,ie),Le)}function Pa(ie,Le,st){let Ft=Vt();Vi(!0);let Qt;rs(64)?Qt=!0:rr(90);let Fr=Au(!0);ja(),Vi(Ft);let si=E.createExportAssignment(st,Qt,Fr);return $r(pr(si,ie),Le)}let la;(ie=>{ie[ie.SourceElements=0]="SourceElements",ie[ie.BlockStatements=1]="BlockStatements",ie[ie.SwitchClauses=2]="SwitchClauses",ie[ie.SwitchClauseStatements=3]="SwitchClauseStatements",ie[ie.TypeMembers=4]="TypeMembers",ie[ie.ClassMembers=5]="ClassMembers",ie[ie.EnumMembers=6]="EnumMembers",ie[ie.HeritageClauseElement=7]="HeritageClauseElement",ie[ie.VariableDeclarations=8]="VariableDeclarations",ie[ie.ObjectBindingElements=9]="ObjectBindingElements",ie[ie.ArrayBindingElements=10]="ArrayBindingElements",ie[ie.ArgumentExpressions=11]="ArgumentExpressions",ie[ie.ObjectLiteralMembers=12]="ObjectLiteralMembers",ie[ie.JsxAttributes=13]="JsxAttributes",ie[ie.JsxChildren=14]="JsxChildren",ie[ie.ArrayLiteralMembers=15]="ArrayLiteralMembers",ie[ie.Parameters=16]="Parameters",ie[ie.JSDocParameters=17]="JSDocParameters",ie[ie.RestProperties=18]="RestProperties",ie[ie.TypeParameters=19]="TypeParameters",ie[ie.TypeArguments=20]="TypeArguments",ie[ie.TupleElementTypes=21]="TupleElementTypes",ie[ie.HeritageClauses=22]="HeritageClauses",ie[ie.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",ie[ie.ImportAttributes=24]="ImportAttributes",ie[ie.JSDocComment=25]="JSDocComment",ie[ie.Count=26]="Count"})(la||(la={}));let Lk;(ie=>{ie[ie.False=0]="False",ie[ie.True=1]="True",ie[ie.Unknown=2]="Unknown"})(Lk||(Lk={}));let Fk;(ie=>{function Le(Ai,_s,za){Di("file.js",Ai,99,void 0,1,0),t.setText(Ai,_s,za),gt=t.scan();let go=st(),$o=Xt("file.js",99,1,!1,[],J(1),0,aa),dd=vA(tt,$o);return we&&($o.jsDocDiagnostics=vA(we,$o)),As(),go?{jsDocTypeExpression:go,diagnostics:dd}:void 0}ie.parseJSDocTypeExpressionForTests=Le;function st(Ai){let _s=Q(),za=(Ai?rs:rr)(19),go=Ys(16777216,cd);(!Ai||za)&&oo(20);let $o=E.createJSDocTypeExpression(go);return He($o),pr($o,_s)}ie.parseJSDocTypeExpression=st;function Ft(){let Ai=Q(),_s=rs(19),za=Q(),go=ae(!1);for(;z()===81;)gn(),Ot(),go=pr(E.createJSDocMemberName(go,dc()),za);_s&&oo(20);let $o=E.createJSDocNameReference(go);return He($o),pr($o,Ai)}ie.parseJSDocNameReference=Ft;function Qt(Ai,_s,za){Di("",Ai,99,void 0,1,0);let go=Ys(16777216,()=>ji(_s,za)),dd=vA(tt,{languageVariant:0,text:Ai});return As(),go?{jsDoc:go,diagnostics:dd}:void 0}ie.parseIsolatedJSDocComment=Qt;function Fr(Ai,_s,za){let go=gt,$o=tt.length,dd=ur,gg=Ys(16777216,()=>ji(_s,za));return fa(gg,Ai),Vr&524288&&(we||(we=[]),On(we,tt,$o)),gt=go,tt.length=$o,ur=dd,gg}ie.parseJSDocComment=Fr;let si;(Ai=>{Ai[Ai.BeginningOfLine=0]="BeginningOfLine",Ai[Ai.SawAsterisk=1]="SawAsterisk",Ai[Ai.SavingComments=2]="SavingComments",Ai[Ai.SavingBackticks=3]="SavingBackticks"})(si||(si={}));let Qi;(Ai=>{Ai[Ai.Property=1]="Property",Ai[Ai.Parameter=2]="Parameter",Ai[Ai.CallbackParameter=4]="CallbackParameter"})(Qi||(Qi={}));function ji(Ai=0,_s){let za=De,go=_s===void 0?za.length:Ai+_s;if(_s=go-Ai,M.assert(Ai>=0),M.assert(Ai<=go),M.assert(go<=za.length),!LY(za,Ai))return;let $o,dd,gg,Y0,ES,gm=[],lb=[],H6=Tr;Tr|=1<<25;let LD=t.scanRange(Ai+3,_s-5,EL);return Tr=H6,LD;function EL(){let Br=1,Zn,ri=Ai-(za.lastIndexOf(`
`,Ai)+1)+4;function mi(Qa){Zn||(Zn=ri),gm.push(Qa),ri+=Qa.length}for(Ot();fb(5););fb(4)&&(Br=0,ri=0);e:for(;;){switch(z()){case 60:lu(gm),ES||(ES=Q()),er(Wy(ri)),Br=0,Zn=void 0;break;case 4:gm.push(t.getTokenText()),Br=0,ri=0;break;case 42:let Qa=t.getTokenText();Br===1?(Br=2,mi(Qa)):(M.assert(Br===0),Br=1,ri+=Qa.length);break;case 5:M.assert(Br!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Pu=t.getTokenText();Zn!==void 0&&ri+Pu.length>Zn&&gm.push(Pu.slice(Zn-ri)),ri+=Pu.length;break;case 1:break e;case 82:Br=2,mi(t.getTokenValue());break;case 19:Br=2;let ny=t.getTokenFullStart(),_h=t.getTokenEnd()-1,kl=P(_h);if(kl){Y0||ua(gm),lb.push(pr(E.createJSDocText(gm.join("")),Y0??Ai,ny)),lb.push(kl),gm=[],Y0=t.getTokenEnd();break}default:Br=2,mi(t.getTokenText());break}Br===2?Ht(!1):Ot()}let Ui=gm.join("").trimEnd();lb.length&&Ui.length&&lb.push(pr(E.createJSDocText(Ui),Y0??Ai,ES)),lb.length&&$o&&M.assertIsDefined(ES,"having parsed tags implies that the end of the comment span should be set");let ha=$o&&ga($o,dd,gg);return pr(E.createJSDocComment(lb.length?ga(lb,Ai,ES):Ui.length?Ui:void 0,ha),Ai,go)}function ua(Br){for(;Br.length&&(Br[0]===`
`||Br[0]==="\r");)Br.shift()}function lu(Br){for(;Br.length;){let Zn=Br[Br.length-1].trimEnd();if(Zn==="")Br.pop();else if(Zn.lengthPu&&(mi.push(K0.slice(Pu-Br)),Qa=2),Br+=K0.length;break;case 19:Qa=2;let Bk=t.getTokenFullStart(),Uk=t.getTokenEnd()-1,Y6=P(Uk);Y6?(Ui.push(pr(E.createJSDocText(mi.join("")),ha??ri,Bk)),Ui.push(Y6),mi=[],ha=t.getTokenEnd()):ny(t.getTokenText());break;case 62:Qa===3?Qa=2:Qa=3,ny(t.getTokenText());break;case 82:Qa!==3&&(Qa=2),ny(t.getTokenValue());break;case 42:if(Qa===0){Qa=1,Br+=1;break}default:Qa!==3&&(Qa=2),ny(t.getTokenText());break}Qa===2||Qa===3?_h=Ht(Qa===3):_h=Ot()}ua(mi);let kl=mi.join("").trimEnd();if(Ui.length)return kl.length&&Ui.push(pr(E.createJSDocText(kl),ha??ri)),ga(Ui,ri,t.getTokenEnd());if(kl.length)return kl}function P(Br){let Zn=hi(Y);if(!Zn)return;Ot(),hg();let ri=B(),mi=[];for(;z()!==20&&z()!==4&&z()!==1;)mi.push(t.getTokenText()),Ot();let Ui=Zn==="link"?E.createJSDocLink:Zn==="linkcode"?E.createJSDocLinkCode:E.createJSDocLinkPlain;return pr(Ui(ri,mi.join("")),Br,t.getTokenEnd())}function B(){if(j_(z())){let Br=Q(),Zn=tl();for(;rs(25);)Zn=pr(E.createQualifiedName(Zn,z()===81?Jc(80,!1):tl()),Br);for(;z()===81;)gn(),Ot(),Zn=pr(E.createJSDocMemberName(Zn,dc()),Br);return Zn}}function Y(){if(ub(),z()===19&&Ot()===60&&j_(Ot())){let Br=t.getTokenValue();if(ge(Br))return Br}}function ge(Br){return Br==="link"||Br==="linkcode"||Br==="linkplain"}function nt(Br,Zn,ri,mi){return pr(E.createJSDocUnknownTag(Zn,Bd(Br,Q(),ri,mi)),Br)}function er(Br){Br&&($o?$o.push(Br):($o=[Br],dd=Br.pos),gg=Br.end)}function dn(){return ub(),z()===19?st():void 0}function Es(){let Br=fb(23);Br&&hg();let Zn=fb(62),ri=zte();return Zn&&D_(62),Br&&(hg(),Wi(64)&&Ze(),rr(24)),{name:ri,isBracketed:Br}}function Xa(Br){switch(Br.kind){case 151:return!0;case 188:return Xa(Br.elementType);default:return Yp(Br)&&$e(Br.typeName)&&Br.typeName.escapedText==="Object"&&!Br.typeArguments}}function Jm(Br,Zn,ri,mi){let Ui=dn(),ha=!Ui;ub();let{name:Qa,isBracketed:Pu}=Es(),ny=ub();ha&&!Xn(Y)&&(Ui=dn());let _h=Bd(Br,Q(),mi,ny),kl=qm(Ui,Qa,ri,mi);kl&&(Ui=kl,ha=!0);let K0=ri===1?E.createJSDocPropertyTag(Zn,Qa,Pu,Ui,ha,_h):E.createJSDocParameterTag(Zn,Qa,Pu,Ui,ha,_h);return pr(K0,Br)}function qm(Br,Zn,ri,mi){if(Br&&Xa(Br.type)){let Ui=Q(),ha,Qa;for(;ha=hi(()=>CL(ri,mi,Zn));)ha.kind===341||ha.kind===348?Qa=Ut(Qa,ha):ha.kind===345&&Ye(ha.tagName,v.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Qa){let Pu=pr(E.createJSDocTypeLiteral(Qa,Br.type.kind===188),Ui);return pr(E.createJSDocTypeExpression(Pu),Ui)}}}function ry(Br,Zn,ri,mi){Dt($o,$j)&&Z(Zn.pos,t.getTokenStart(),v._0_tag_already_specified,Zi(Zn.escapedText));let Ui=dn();return pr(E.createJSDocReturnTag(Zn,Ui,Bd(Br,Q(),ri,mi)),Br)}function jk(Br,Zn,ri,mi){Dt($o,wO)&&Z(Zn.pos,t.getTokenStart(),v._0_tag_already_specified,Zi(Zn.escapedText));let Ui=st(!0),ha=ri!==void 0&&mi!==void 0?Bd(Br,Q(),ri,mi):void 0;return pr(E.createJSDocTypeTag(Zn,Ui,ha),Br)}function OEe(Br,Zn,ri,mi){let ha=z()===23||Xn(()=>Ot()===60&&j_(Ot())&&ge(t.getTokenValue()))?void 0:Ft(),Qa=ri!==void 0&&mi!==void 0?Bd(Br,Q(),ri,mi):void 0;return pr(E.createJSDocSeeTag(Zn,ha,Qa),Br)}function xL(Br,Zn,ri,mi){let Ui=dn(),ha=Bd(Br,Q(),ri,mi);return pr(E.createJSDocThrowsTag(Zn,Ui,ha),Br)}function Ute(Br,Zn,ri,mi){let Ui=Q(),ha=Vte(),Qa=t.getTokenFullStart(),Pu=Bd(Br,Qa,ri,mi);Pu||(Qa=t.getTokenFullStart());let ny=typeof Pu!="string"?ga(ds([pr(ha,Ui,Qa)],Pu),Ui):ha.text+Pu;return pr(E.createJSDocAuthorTag(Zn,ny),Br)}function Vte(){let Br=[],Zn=!1,ri=t.getToken();for(;ri!==1&&ri!==4;){if(ri===30)Zn=!0;else{if(ri===60&&!Zn)break;if(ri===32&&Zn){Br.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}Br.push(t.getTokenText()),ri=Ot()}return E.createJSDocText(Br.join(""))}function $6(Br,Zn,ri,mi){let Ui=qte();return pr(E.createJSDocImplementsTag(Zn,Ui,Bd(Br,Q(),ri,mi)),Br)}function REe(Br,Zn,ri,mi){let Ui=qte();return pr(E.createJSDocAugmentsTag(Zn,Ui,Bd(Br,Q(),ri,mi)),Br)}function Jte(Br,Zn,ri,mi){let Ui=st(!1),ha=ri!==void 0&&mi!==void 0?Bd(Br,Q(),ri,mi):void 0;return pr(E.createJSDocSatisfiesTag(Zn,Ui,ha),Br)}function MEe(Br,Zn,ri,mi){let Ui=t.getTokenFullStart(),ha;nn()&&(ha=dc());let Qa=ey(ha,Ui,!0,!0),Pu=mm(),ny=yL(),_h=ri!==void 0&&mi!==void 0?Bd(Br,Q(),ri,mi):void 0;return pr(E.createJSDocImportTag(Zn,Qa,Pu,ny,_h),Br)}function qte(){let Br=rs(19),Zn=Q(),ri=LEe();t.setSkipJsDocLeadingAsterisks(!0);let mi=G0();t.setSkipJsDocLeadingAsterisks(!1);let Ui=E.createExpressionWithTypeArguments(ri,mi),ha=pr(Ui,Zn);return Br&&rr(20),ha}function LEe(){let Br=Q(),Zn=pb();for(;rs(25);){let ri=pb();Zn=pr(ee(Zn,ri),Br)}return Zn}function l1(Br,Zn,ri,mi,Ui){return pr(Zn(ri,Bd(Br,Q(),mi,Ui)),Br)}function mJ(Br,Zn,ri,mi){let Ui=st(!0);return hg(),pr(E.createJSDocThisTag(Zn,Ui,Bd(Br,Q(),ri,mi)),Br)}function FEe(Br,Zn,ri,mi){let Ui=st(!0);return hg(),pr(E.createJSDocEnumTag(Zn,Ui,Bd(Br,Q(),ri,mi)),Br)}function _b(Br,Zn,ri,mi){let Ui=dn();ub();let ha=yn();hg();let Qa=Tn(ri),Pu;if(!Ui||Xa(Ui.type)){let _h,kl,K0,Bk=!1;for(;(_h=hi(()=>BD(ri)))&&_h.kind!==345;)if(Bk=!0,_h.kind===344)if(kl){let Uk=Mt(v.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Uk&&lo(Uk,yA(Pe,De,0,0,v.The_tag_was_first_specified_here));break}else kl=_h;else K0=Ut(K0,_h);if(Bk){let Uk=Ui&&Ui.type.kind===188,Y6=E.createJSDocTypeLiteral(K0,Uk);Ui=kl&&kl.typeExpression&&!Xa(kl.typeExpression.type)?kl.typeExpression:pr(Y6,Br),Pu=Ui.end}}Pu=Pu||Qa!==void 0?Q():(ha??Ui??Zn).end,Qa||(Qa=Bd(Br,Pu,ri,mi));let ny=E.createJSDocTypedefTag(Zn,Ui,ha,Qa);return pr(ny,Br,Pu)}function yn(Br){let Zn=t.getTokenStart();if(!j_(z()))return;let ri=pb();if(rs(25)){let mi=yn(!0),Ui=E.createModuleDeclaration(void 0,ri,mi,Br?8:void 0);return pr(Ui,Zn)}return Br&&(ri.flags|=4096),ri}function CS(Br){let Zn=Q(),ri,mi;for(;ri=hi(()=>CL(4,Br));){if(ri.kind===345){Ye(ri.tagName,v.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}mi=Ut(mi,ri)}return ga(mi||[],Zn)}function AS(Br,Zn){let ri=CS(Zn),mi=hi(()=>{if(fb(60)){let Ui=Wy(Zn);if(Ui&&Ui.kind===342)return Ui}});return pr(E.createJSDocSignature(void 0,ri,mi),Br)}function FD(Br,Zn,ri,mi){let Ui=yn();hg();let ha=Tn(ri),Qa=AS(Br,ri);ha||(ha=Bd(Br,Q(),ri,mi));let Pu=ha!==void 0?Q():Qa.end;return pr(E.createJSDocCallbackTag(Zn,Qa,Ui,ha),Br,Pu)}function jD(Br,Zn,ri,mi){hg();let Ui=Tn(ri),ha=AS(Br,ri);Ui||(Ui=Bd(Br,Q(),ri,mi));let Qa=Ui!==void 0?Q():ha.end;return pr(E.createJSDocOverloadTag(Zn,ha,Ui),Br,Qa)}function gJ(Br,Zn){for(;!$e(Br)||!$e(Zn);)if(!$e(Br)&&!$e(Zn)&&Br.right.escapedText===Zn.right.escapedText)Br=Br.left,Zn=Zn.left;else return!1;return Br.escapedText===Zn.escapedText}function BD(Br){return CL(1,Br)}function CL(Br,Zn,ri){let mi=!0,Ui=!1;for(;;)switch(Ot()){case 60:if(mi){let ha=u1(Br,Zn);return ha&&(ha.kind===341||ha.kind===348)&&ri&&($e(ha.name)||!gJ(ri,ha.name.left))?!1:ha}Ui=!1;break;case 4:mi=!0,Ui=!1;break;case 42:Ui&&(mi=!1),Ui=!0;break;case 80:mi=!1;break;case 1:return!1}}function u1(Br,Zn){M.assert(z()===60);let ri=t.getTokenFullStart();Ot();let mi=pb(),Ui=ub(),ha;switch(mi.escapedText){case"type":return Br===1&&jk(ri,mi);case"prop":case"property":ha=1;break;case"arg":case"argument":case"param":ha=6;break;case"template":return AL(ri,mi,Zn,Ui);case"this":return mJ(ri,mi,Zn,Ui);default:return!1}return Br&ha?Jm(ri,mi,Br,Zn):!1}function jEe(){let Br=Q(),Zn=fb(23);Zn&&hg();let ri=tr(!1,!0),mi=pb(v.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Ui;if(Zn&&(hg(),rr(64),Ui=Ys(16777216,cd),rr(24)),!Gc(mi))return pr(E.createTypeParameterDeclaration(ri,mi,void 0,Ui),Br)}function hJ(){let Br=Q(),Zn=[];do{hg();let ri=jEe();ri!==void 0&&Zn.push(ri),ub()}while(fb(28));return ga(Zn,Br)}function AL(Br,Zn,ri,mi){let Ui=z()===19?st():void 0,ha=hJ();return pr(E.createJSDocTemplateTag(Zn,Ui,ha,Bd(Br,Q(),ri,mi)),Br)}function fb(Br){return z()===Br?(Ot(),!0):!1}function zte(){let Br=pb();for(rs(23)&&rr(24);rs(25);){let Zn=pb();rs(23)&&rr(24),Br=vt(Br,Zn)}return Br}function pb(Br){if(!j_(z()))return Jc(80,!Br,Br||v.Identifier_expected);ir++;let Zn=t.getTokenStart(),ri=t.getTokenEnd(),mi=z(),Ui=W_(t.getTokenValue()),ha=pr(L(Ui,mi),Zn,ri);return Ot(),ha}}})(Fk=e.JSDocParser||(e.JSDocParser={}))})(AT||(AT={}));var i3e=new WeakSet;function aTt(e){i3e.has(e)&&M.fail("Source file has already been incrementally parsed"),i3e.add(e)}var s3e=new WeakSet;function cTt(e){return s3e.has(e)}function Dme(e){s3e.add(e)}var jY;(e=>{function t(I,R,L,F){if(F=F||M.shouldAssert(2),E(I,R,L,F),Oue(L))return I;if(I.statements.length===0)return AT.parseSourceFile(I.fileName,R,I.languageVersion,void 0,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);aTt(I),AT.fixupParentReferences(I);let J=I.text,$=x(I),q=d(I,L);E(I,R,q,F),M.assert(q.span.start<=L.span.start),M.assert(bl(q.span)===bl(L.span)),M.assert(bl(uw(q))===bl(uw(L)));let ee=uw(q).length-q.span.length;m(I,q.span.start,bl(q.span),bl(uw(q)),ee,J,R,F);let W=AT.parseSourceFile(I.fileName,R,I.languageVersion,$,!0,I.scriptKind,I.setExternalModuleIndicator,I.jsDocParsingMode);return W.commentDirectives=n(I.commentDirectives,W.commentDirectives,q.span.start,bl(q.span),ee,J,R,F),W.impliedNodeFormat=I.impliedNodeFormat,sme(I,W),W}e.updateSourceFile=t;function n(I,R,L,F,J,$,q,ee){if(!I)return R;let W,pe=!1;for(let re of I){let{range:ue,type:ce}=re;if(ue.endF){K();let ne={range:{pos:ue.pos+J,end:ue.end+J},type:ce};W=Ut(W,ne),ee&&M.assert($.substring(ue.pos,ue.end)===q.substring(ne.range.pos,ne.range.end))}}return K(),W;function K(){pe||(pe=!0,W?R&&W.push(...R):W=R)}}function i(I,R,L,F,J,$,q){L?W(I):ee(I);return;function ee(pe){let K="";if(q&&s(pe)&&(K=J.substring(pe.pos,pe.end)),EY(pe,R),Jg(pe,pe.pos+F,pe.end+F),q&&s(pe)&&M.assert(K===$.substring(pe.pos,pe.end)),qs(pe,ee,W),Np(pe))for(let re of pe.jsDoc)ee(re);u(pe,q)}function W(pe){Jg(pe,pe.pos+F,pe.end+F);for(let K of pe)ee(K)}}function s(I){switch(I.kind){case 11:case 9:case 80:return!0}return!1}function a(I,R,L,F,J){M.assert(I.end>=R,"Adjusting an element that was entirely before the change range"),M.assert(I.pos<=L,"Adjusting an element that was entirely after the change range"),M.assert(I.pos<=I.end);let $=Math.min(I.pos,F),q=I.end>=L?I.end+J:Math.min(I.end,F);if(M.assert($<=q),I.parent){let ee=I.parent;M.assertGreaterThanOrEqual($,ee.pos),M.assertLessThanOrEqual(q,ee.end)}Jg(I,$,q)}function u(I,R){if(R){let L=I.pos,F=J=>{M.assert(J.pos>=L),L=J.end};if(Np(I))for(let J of I.jsDoc)F(J);qs(I,F),M.assert(L<=I.end)}}function m(I,R,L,F,J,$,q,ee){W(I);return;function W(K){if(M.assert(K.pos<=K.end),K.pos>L){i(K,I,!1,J,$,q,ee);return}let re=K.end;if(re>=R){if(Dme(K),EY(K,I),a(K,R,L,F,J),qs(K,W,pe),Np(K))for(let ue of K.jsDoc)W(ue);u(K,ee);return}M.assert(reL){i(K,I,!0,J,$,q,ee);return}let re=K.end;if(re>=R){Dme(K),a(K,R,L,F,J);for(let ue of K)W(ue);return}M.assert(re0&&q<=1;q++){let ee=S(I,F);M.assert(ee.pos<=F);let W=ee.pos;F=Math.max(0,W-1)}let J=wl(F,bl(R.span)),$=R.newLength+(R.span.start-F);return M3(J,$)}function S(I,R){let L=I,F;if(qs(I,$),F){let q=J(F);q.pos>L.pos&&(L=q)}return L;function J(q){for(;;){let ee=y$(q);if(ee)q=ee;else return q}}function $(q){if(!Gc(q))if(q.pos<=R){if(q.pos>=L.pos&&(L=q),RR),!0}}function E(I,R,L,F){let J=I.text;if(L&&(M.assert(J.length-L.span.length+L.newLength===R.length),F||M.shouldAssert(3))){let $=J.substr(0,L.span.start),q=R.substr(0,L.span.start);M.assert($===q);let ee=J.substring(bl(L.span),J.length),W=R.substring(bl(uw(L)),R.length);M.assert(ee===W)}}function x(I){let R=I.statements,L=0;M.assert(L=pe.pos&&q=pe.pos&&q{I[I.Value=-1]="Value"})(D||(D={}))})(jY||(jY={}));function ju(e){return BY(e)!==void 0}function BY(e){let t=NP(e,fj,!1);if(t)return t;if(wc(e,".ts")){let n=Ul(e).lastIndexOf(".d.");if(n>=0)return e.substring(n)}}function lTt(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,v.resolution_mode_should_be_either_require_or_import)}}function UY(e,t){let n=[];for(let i of Ty(t,0)||ve){let s=t.substring(i.pos,i.end);pTt(n,i,s)}e.pragmas=new Map;for(let i of n){if(e.pragmas.has(i.name)){let s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function VY(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,i)=>{switch(i){case"reference":{let s=e.referencedFiles,a=e.typeReferenceDirectives,u=e.libReferenceDirectives;Et(JC(n),m=>{let{types:d,lib:S,path:E,["resolution-mode"]:x,preserve:D}=m.arguments,I=D==="true"?!0:void 0;if(m.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(d){let R=lTt(x,d.pos,d.end,t);a.push({pos:d.pos,end:d.end,fileName:d.value,...R?{resolutionMode:R}:{},...I?{preserve:I}:{}})}else S?u.push({pos:S.pos,end:S.end,fileName:S.value,...I?{preserve:I}:{}}):E?s.push({pos:E.pos,end:E.end,fileName:E.value,...I?{preserve:I}:{}}):t(m.range.pos,m.range.end-m.range.pos,v.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=kr(JC(n),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(n instanceof Array)for(let s of n)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,v.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=n.arguments.name;break}case"ts-nocheck":case"ts-check":{Et(JC(n),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:M.fail("Unhandled pragma kind")}})}var Ime=new Map;function uTt(e){if(Ime.has(e))return Ime.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Ime.set(e,t),t}var _Tt=/^\/\/\/\s*<(\S+)\s.*?\/>/im,fTt=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im;function pTt(e,t,n){let i=t.kind===2&&_Tt.exec(n);if(i){let a=i[1].toLowerCase(),u=g5[a];if(!u||!(u.kind&1))return;if(u.args){let m={};for(let d of u.args){let E=uTt(d.name).exec(n);if(!E&&!d.optional)return;if(E){let x=E[2]||E[3];if(d.captureSpan){let D=t.pos+E.index+E[1].length+1;m[d.name]={value:x,pos:D,end:D+x.length}}else m[d.name]=x}}e.push({name:a,args:{arguments:m,range:t}})}else e.push({name:a,args:{arguments:{},range:t}});return}let s=t.kind===2&&fTt.exec(n);if(s)return o3e(e,t,2,s);if(t.kind===3){let a=/@(\S+)(\s+.*)?$/gim,u;for(;u=a.exec(n);)o3e(e,t,4,u)}}function o3e(e,t,n,i){if(!i)return;let s=i[1].toLowerCase(),a=g5[s];if(!a||!(a.kind&n))return;let u=i[2],m=dTt(a,u);m!=="fail"&&e.push({name:s,args:{arguments:m,range:t}})}function dTt(e,t){if(!t)return{};if(!e.args)return{};let n=t.trim().split(/\s+/),i={};for(let s=0;s[""+t,e])),c3e=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["es2023.intl","lib.es2023.intl.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.esnext.regexp.d.ts"],["esnext.string","lib.esnext.string.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],aB=c3e.map(e=>e[0]),JY=new Map(c3e),KA=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:v.Watch_and_Build_Modes,description:v.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:v.Watch_and_Build_Modes,description:v.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:v.Watch_and_Build_Modes,description:v.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:v.Watch_and_Build_Modes,description:v.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:tge},allowConfigDirTemplateSubstitution:!0,category:v.Watch_and_Build_Modes,description:v.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:tge},allowConfigDirTemplateSubstitution:!0,category:v.Watch_and_Build_Modes,description:v.Remove_a_list_of_files_from_the_watch_mode_s_processing}],cB=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:v.Command_line_Options,description:v.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:v.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:v.Command_line_Options,description:v.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:v.Output_Formatting,description:v.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:v.Compiler_Diagnostics,description:v.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:v.Compiler_Diagnostics,description:v.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:v.Compiler_Diagnostics,description:v.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:v.Output_Formatting,description:v.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:v.Compiler_Diagnostics,description:v.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:v.Compiler_Diagnostics,description:v.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:v.Compiler_Diagnostics,description:v.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:v.FILE_OR_DIRECTORY,category:v.Compiler_Diagnostics,description:v.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:v.DIRECTORY,category:v.Compiler_Diagnostics,description:v.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:v.Projects,description:v.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:v.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:v.Emit,transpileOptionValue:void 0,description:v.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:v.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:v.Emit,defaultValueDescription:!1,description:v.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:v.Emit,description:v.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:v.Emit,defaultValueDescription:!1,description:v.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:v.Emit,description:v.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:v.Watch_and_Build_Modes,description:v.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:v.Command_line_Options,isCommandLineOnly:!0,description:v.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:v.Platform_specific}],qY={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,es2023:10,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:v.VERSION,showInSimplifiedHelpView:!0,category:v.Language_and_Environment,description:v.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},wme={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:v.KIND,showInSimplifiedHelpView:!0,category:v.Modules,description:v.Specify_what_module_code_is_generated,defaultValueDescription:void 0},Ome=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:v.Command_line_Options,description:v.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:v.Command_line_Options,description:v.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:v.Command_line_Options,description:v.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:v.Command_line_Options,paramType:v.FILE_OR_DIRECTORY,description:v.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:v.Command_line_Options,description:v.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:v.Command_line_Options,isCommandLineOnly:!0,description:v.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:v.Command_line_Options,isCommandLineOnly:!0,description:v.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},qY,wme,{name:"lib",type:"list",element:{name:"lib",type:JY,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:v.Language_and_Environment,description:v.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:v.JavaScript_Support,description:v.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:v.JavaScript_Support,description:v.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:a3e,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:v.KIND,showInSimplifiedHelpView:!0,category:v.Language_and_Environment,description:v.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:v.FILE,showInSimplifiedHelpView:!0,category:v.Emit,description:v.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:v.DIRECTORY,showInSimplifiedHelpView:!0,category:v.Emit,description:v.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:v.LOCATION,category:v.Modules,description:v.Specify_the_root_folder_within_your_source_files,defaultValueDescription:v.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:v.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:v.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:v.FILE,category:v.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:v.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:v.Emit,defaultValueDescription:!1,description:v.Disable_emitting_comments},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:v.Compiler_Diagnostics,description:v.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,extraValidation(){return[v.Unknown_compiler_option_0,"noCheck"]}},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:v.Emit,description:v.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:v.Emit,description:v.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Backwards_Compatibility,description:v.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:v.Emit,description:v.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:v.Interop_Constraints,description:v.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Interop_Constraints,description:v.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"isolatedDeclarations",type:"boolean",category:v.Interop_Constraints,description:v.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:v.Type_Checking,description:v.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:v.Type_Checking,description:v.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:v.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:v.Type_Checking,description:v.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:v.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:v.Type_Checking,description:v.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:v.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:v.Type_Checking,description:v.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:v.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:v.Type_Checking,description:v.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:v.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:v.Type_Checking,description:v.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:v.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:v.Type_Checking,description:v.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:v.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:v.Type_Checking,description:v.Ensure_use_strict_is_always_emitted,defaultValueDescription:v.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Type_Checking,description:v.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Type_Checking,description:v.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Type_Checking,description:v.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Type_Checking,description:v.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Type_Checking,description:v.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Type_Checking,description:v.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Type_Checking,description:v.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:v.Type_Checking,description:v.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:v.STRATEGY,category:v.Modules,description:v.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:v.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:v.Modules,description:v.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:v.Modules,description:v.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:v.Modules,description:v.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:v.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:v.Modules,description:v.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:v.Modules,description:v.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Interop_Constraints,description:v.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:v.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:v.Interop_Constraints,description:v.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:v.Interop_Constraints,description:v.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Modules,description:v.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:v.Modules,description:v.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Modules,description:v.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:v.Modules,description:v.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:v.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:v.Modules,description:v.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:v.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:v.Modules,description:v.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:v.LOCATION,category:v.Emit,description:v.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:v.LOCATION,category:v.Emit,description:v.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:v.Emit,description:v.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Language_and_Environment,description:v.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:v.Language_and_Environment,description:v.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:v.Language_and_Environment,description:v.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:v.Language_and_Environment,description:v.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSourceFile:!0,category:v.Language_and_Environment,description:v.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:v.Modules,description:v.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:v.Modules,description:v.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:v.Backwards_Compatibility,paramType:v.FILE,transpileOptionValue:void 0,description:v.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:v.Language_and_Environment,description:v.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:v.Completeness,description:v.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:v.Backwards_Compatibility,description:v.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:v.Emit,description:v.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:v.NEWLINE,category:v.Emit,description:v.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Output_Formatting,description:v.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:v.Language_and_Environment,affectsProgramStructure:!0,description:v.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:v.Modules,description:v.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:v.Emit,description:v.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:v.Editor_Support,description:v.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:v.Projects,description:v.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:v.Projects,description:v.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:v.Projects,description:v.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Backwards_Compatibility,description:v.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:v.Emit,description:v.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:v.Emit,transpileOptionValue:void 0,description:v.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:v.Emit,description:v.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:v.DIRECTORY,category:v.Emit,transpileOptionValue:void 0,description:v.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:v.Completeness,description:v.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Type_Checking,description:v.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Type_Checking,description:v.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Backwards_Compatibility,description:v.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Backwards_Compatibility,description:v.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:v.Interop_Constraints,description:v.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:v.JavaScript_Support,description:v.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:v.Backwards_Compatibility,description:v.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:v.Language_and_Environment,description:v.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:v.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:v.Backwards_Compatibility,description:v.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:v.Backwards_Compatibility,description:v.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:v.Specify_a_list_of_language_service_plugins_to_include,category:v.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:v.Control_what_method_is_used_to_detect_module_format_JS_files,category:v.Language_and_Environment,defaultValueDescription:v.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],og=[...cB,...Ome],Rme=og.filter(e=>!!e.affectsSemanticDiagnostics),Mme=og.filter(e=>!!e.affectsEmit),Lme=og.filter(e=>!!e.affectsDeclarationPath),zY=og.filter(e=>!!e.affectsModuleResolution),WY=og.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),Fme=og.filter(e=>!!e.affectsProgramStructure),jme=og.filter(e=>Ha(e,"transpileOptionValue")),Bme=og.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Ume=KA.filter(e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath),Vme=og.filter(mTt);function mTt(e){return!bs(e.type)}var GY=[{name:"verbose",shortName:"v",category:v.Command_line_Options,description:v.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:v.Command_line_Options,description:v.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:v.Command_line_Options,description:v.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:v.Command_line_Options,description:v.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],IM=[...cB,...GY],lB=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}];function uB(e){let t=new Map,n=new Map;return Et(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&n.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:n}}var l3e;function DN(){return l3e||(l3e=uB(og))}var gTt={diagnostic:v.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:d3e},HY={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function Jme(e){return u3e(e,Pc)}function u3e(e,t){let n=Os(e.type.keys()),i=(e.deprecatedKeys?n.filter(s=>!e.deprecatedKeys.has(s)):n).map(s=>`'${s}'`).join(", ");return t(v.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function _B(e,t,n){return $3e(e,(t??"").trim(),n)}function qme(e,t="",n){if(t=t.trim(),fs(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return XA(e,t,n);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Yi(i,s=>XA(e.element,parseInt(s),n));case"string":return Yi(i,s=>XA(e.element,s||"",n));case"boolean":case"object":return M.fail(`List of ${e.element.type} is not yet supported.`);default:return Yi(i,s=>_B(e.element,s,n))}}function _3e(e){return e.name}function zme(e,t,n,i,s){var a;if((a=t.alternateMode)!=null&&a.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return PT(s,i,t.alternateMode.diagnostic,e);let u=Fx(e,t.optionDeclarations,_3e);return u?PT(s,i,t.unknownDidYouMeanDiagnostic,n||e,u.name):PT(s,i,t.unknownOptionDiagnostic,n||e)}function $Y(e,t,n){let i={},s,a=[],u=[];return m(t),{options:i,watchOptions:s,fileNames:a,errors:u};function m(S){let E=0;for(;Euu.readFile(I)));if(!bs(E)){u.push(E);return}let x=[],D=0;for(;;){for(;D=E.length)break;let I=D;if(E.charCodeAt(I)===34){for(D++;D32;)D++;x.push(E.substring(I,D))}}m(x)}}function f3e(e,t,n,i,s,a){if(i.isTSConfigOnly){let u=e[t];u==="null"?(s[i.name]=void 0,t++):i.type==="boolean"?u==="false"?(s[i.name]=XA(i,!1,a),t++):(u==="true"&&t++,a.push(Pc(v.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(a.push(Pc(v.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),u&&!fs(u,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&a.push(Pc(n.optionTypeMismatchDiagnostic,i.name,ZY(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=XA(i,parseInt(e[t]),a),t++;break;case"boolean":let u=e[t];s[i.name]=XA(i,u!=="false",a),(u==="false"||u==="true")&&t++;break;case"string":s[i.name]=XA(i,e[t]||"",a),t++;break;case"list":let m=qme(i,e[t],a);s[i.name]=m||[],m&&t++;break;case"listOrElement":M.fail("listOrElement not supported here");break;default:s[i.name]=_B(i,e[t],a),t++;break}else s[i.name]=void 0,t++;return t}var fB={alternateMode:gTt,getOptionsNameMap:DN,optionDeclarations:og,unknownOptionDiagnostic:v.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:v.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:v.Compiler_option_0_expects_an_argument};function Wme(e,t){return $Y(fB,e,t)}function YY(e,t){return Gme(DN,e,t)}function Gme(e,t,n=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:s}=e();if(n){let a=s.get(t);a!==void 0&&(t=a)}return i.get(t)}var p3e;function d3e(){return p3e||(p3e=uB(IM))}var hTt={diagnostic:v.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:DN},yTt={alternateMode:hTt,getOptionsNameMap:d3e,optionDeclarations:IM,unknownOptionDiagnostic:v.Unknown_build_option_0,unknownDidYouMeanDiagnostic:v.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:v.Build_option_0_requires_a_value_of_type_1};function Hme(e){let{options:t,watchOptions:n,fileNames:i,errors:s}=$Y(yTt,e),a=t;return i.length===0&&i.push("."),a.clean&&a.force&&s.push(Pc(v.Options_0_and_1_cannot_be_combined,"clean","force")),a.clean&&a.verbose&&s.push(Pc(v.Options_0_and_1_cannot_be_combined,"clean","verbose")),a.clean&&a.watch&&s.push(Pc(v.Options_0_and_1_cannot_be_combined,"clean","watch")),a.watch&&a.dry&&s.push(Pc(v.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:a,watchOptions:n,projects:i,errors:s}}function wf(e,...t){return ao(Pc(e,...t).messageText,bs)}function wM(e,t,n,i,s,a){let u=jO(e,S=>n.readFile(S));if(!bs(u)){n.onUnRecoverableConfigFileDiagnostic(u);return}let m=NM(e,u),d=n.getCurrentDirectory();return m.path=rc(e,d,__(n.useCaseSensitiveFileNames)),m.resolvedPath=m.path,m.originalFileName=m.fileName,MM(m,n,Cs(yi(e),d),t,Cs(e,d),void 0,a,i,s)}function OM(e,t){let n=jO(e,t);return bs(n)?KY(e,n):{config:{},error:n}}function KY(e,t){let n=NM(e,t);return{config:k3e(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function $me(e,t){let n=jO(e,t);return bs(n)?NM(e,n):{fileName:e,parseDiagnostics:[n]}}function jO(e,t){let n;try{n=t(e)}catch(i){return Pc(v.Cannot_read_file_0_Colon_1,e,i.message)}return n===void 0?Pc(v.Cannot_read_file_0,e):n}function XY(e){return CP(e,_3e)}var m3e={optionDeclarations:lB,unknownOptionDiagnostic:v.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:v.Unknown_type_acquisition_option_0_Did_you_mean_1},g3e;function h3e(){return g3e||(g3e=uB(KA))}var QY={getOptionsNameMap:h3e,optionDeclarations:KA,unknownOptionDiagnostic:v.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:v.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:v.Watch_option_0_requires_a_value_of_type_1},y3e;function v3e(){return y3e||(y3e=XY(og))}var S3e;function T3e(){return S3e||(S3e=XY(KA))}var b3e;function E3e(){return b3e||(b3e=XY(lB))}var pB={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:v.File_Management,disallowNullOrUndefined:!0},x3e={name:"compilerOptions",type:"object",elementOptions:v3e(),extraKeyDiagnostics:fB},C3e={name:"watchOptions",type:"object",elementOptions:T3e(),extraKeyDiagnostics:QY},A3e={name:"typeAcquisition",type:"object",elementOptions:E3e(),extraKeyDiagnostics:m3e},Yme;function vTt(){return Yme===void 0&&(Yme={name:void 0,type:"object",elementOptions:XY([x3e,C3e,A3e,pB,{name:"references",type:"list",element:{name:"references",type:"object"},category:v.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:v.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:v.File_Management,defaultValueDescription:v.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:v.File_Management,defaultValueDescription:v.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},oB])}),Yme}function k3e(e,t,n){var i;let s=(i=e.statements[0])==null?void 0:i.expression;if(s&&s.kind!==210){if(t.push(bd(e,s,v.The_root_value_of_a_0_file_must_be_an_object,Ul(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Ku(s)){let a=jn(s.elements,ko);if(a)return RM(e,a,t,!0,n)}return{}}return RM(e,s,t,!0,n)}function Kme(e,t){var n;return RM(e,(n=e.statements[0])==null?void 0:n.expression,t,!0,void 0)}function RM(e,t,n,i,s){if(!t)return i?{}:void 0;return m(t,s?.rootOptions);function a(S,E){var x;let D=i?{}:void 0;for(let I of S.properties){if(I.kind!==303){n.push(bd(e,I,v.Property_assignment_expected));continue}I.questionToken&&n.push(bd(e,I.questionToken,v.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),d(I.name)||n.push(bd(e,I.name,v.String_literal_with_double_quotes_expected));let R=nR(I.name)?void 0:rA(I.name),L=R&&Zi(R),F=L?(x=E?.elementOptions)==null?void 0:x.get(L):void 0,J=m(I.initializer,F);typeof L<"u"&&(i&&(D[L]=J),s?.onPropertySet(L,J,I,E,F))}return D}function u(S,E){if(!i){S.forEach(x=>m(x,E));return}return ti(S.map(x=>m(x,E)),x=>x!==void 0)}function m(S,E){switch(S.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return d(S)||n.push(bd(e,S,v.String_literal_with_double_quotes_expected)),S.text;case 9:return Number(S.text);case 224:if(S.operator!==41||S.operand.kind!==9)break;return-Number(S.operand.text);case 210:return a(S,E);case 209:return u(S.elements,E&&E.element)}E?n.push(bd(e,S,v.Compiler_option_0_requires_a_value_of_type_1,E.name,ZY(E))):n.push(bd(e,S,v.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function d(S){return jo(S)&&T9(S,e)}}function ZY(e){return e.type==="listOrElement"?`${ZY(e.element)} or Array`:e.type==="list"?"Array":bs(e.type)?e.type:"string"}function P3e(e,t){if(e){if(LM(t))return!e.disallowNullOrUndefined;if(e.type==="list")return Ms(t);if(e.type==="listOrElement")return Ms(t)||P3e(e.element,t);let n=bs(e.type)?e.type:"string";return typeof t===n}return!1}function eK(e,t,n){var i,s,a;let u=__(n.useCaseSensitiveFileNames),m=kr(ti(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?TTt(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):YS),R=>iw(Cs(t,n.getCurrentDirectory()),Cs(R,n.getCurrentDirectory()),u)),d={configFilePath:Cs(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},S=mB(e.options,d),E=e.watchOptions&&bTt(e.watchOptions),x={compilerOptions:{...dB(S),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:E&&dB(E),references:kr(e.projectReferences,R=>({...R,path:R.originalPath?R.originalPath:"",originalPath:void 0})),files:kt(m)?m:void 0,...(a=e.options.configFile)!=null&&a.configFileSpecs?{include:STt(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},D=new Set(S.keys()),I={};for(let R in Zl)if(!D.has(R)&&Dt(Zl[R].dependencies,L=>D.has(L))){let L=Zl[R].computeValue(e.options),F=Zl[R].computeValue({});L!==F&&(I[R]=Zl[R].computeValue(e.options))}return Mx(x.compilerOptions,dB(mB(I,d))),x}function dB(e){return{...Os(e.entries()).reduce((t,n)=>({...t,[n[0]]:n[1]}),{})}}function STt(e){if(kt(e)){if(kt(e)!==1)return e;if(e[0]!==nK)return e}}function TTt(e,t,n,i){if(!t)return YS;let s=lj(e,n,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),a=s.excludePattern&&$1(s.excludePattern,i.useCaseSensitiveFileNames),u=s.includeFilePattern&&$1(s.includeFilePattern,i.useCaseSensitiveFileNames);return u?a?m=>!(u.test(m)&&!a.test(m)):m=>!u.test(m):a?m=>a.test(m):YS}function N3e(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return N3e(e.element);default:return e.type}}function tK(e,t){return Iu(t,(n,i)=>{if(n===e)return i})}function mB(e,t){return D3e(e,DN(),t)}function bTt(e){return D3e(e,h3e())}function D3e(e,{optionsNameMap:t},n){let i=new Map,s=n&&__(n.useCaseSensitiveFileNames);for(let a in e)if(Ha(e,a)){if(t.has(a)&&(t.get(a).category===v.Command_line_Options||t.get(a).category===v.Output_Formatting))continue;let u=e[a],m=t.get(a.toLowerCase());if(m){M.assert(m.type!=="listOrElement");let d=N3e(m);d?m.type==="list"?i.set(a,u.map(S=>tK(S,d))):i.set(a,tK(u,d)):n&&m.isFilePath?i.set(a,iw(n.configFilePath,Cs(u,yi(n.configFilePath)),s)):n&&m.type==="list"&&m.element.isFilePath?i.set(a,u.map(S=>iw(n.configFilePath,Cs(S,yi(n.configFilePath)),s))):i.set(a,u)}}return i}function Xme(e,t){let n=I3e(e);return s();function i(a){return Array(a+1).join(" ")}function s(){let a=[],u=i(2);return Ome.forEach(m=>{if(!n.has(m.name))return;let d=n.get(m.name),S=sge(m);d!==S?a.push(`${u}${m.name}: ${d}`):Ha(HY,m.name)&&a.push(`${u}${m.name}: ${S}`)}),a.join(t)+t}}function I3e(e){let t=o5(e,HY);return mB(t)}function Qme(e,t,n){let i=I3e(e);return u();function s(m){return Array(m+1).join(" ")}function a({category:m,name:d,isCommandLineOnly:S}){let E=[v.Command_line_Options,v.Editor_Support,v.Compiler_Diagnostics,v.Backwards_Compatibility,v.Watch_and_Build_Modes,v.Output_Formatting];return!S&&m!==void 0&&(!E.includes(m)||i.has(d))}function u(){let m=new Map;m.set(v.Projects,[]),m.set(v.Language_and_Environment,[]),m.set(v.Modules,[]),m.set(v.JavaScript_Support,[]),m.set(v.Emit,[]),m.set(v.Interop_Constraints,[]),m.set(v.Type_Checking,[]),m.set(v.Completeness,[]);for(let I of og)if(a(I)){let R=m.get(I.category);R||m.set(I.category,R=[]),R.push(I)}let d=0,S=0,E=[];m.forEach((I,R)=>{E.length!==0&&E.push({value:""}),E.push({value:`/* ${Ls(R)} */`});for(let L of I){let F;i.has(L.name)?F=`"${L.name}": ${JSON.stringify(i.get(L.name))}${(S+=1)===i.size?"":","}`:F=`// "${L.name}": ${JSON.stringify(sge(L))},`,E.push({value:F,description:`/* ${L.description&&Ls(L.description)||L.name} */`}),d=Math.max(F.length,d)}});let x=s(2),D=[];D.push("{"),D.push(`${x}"compilerOptions": {`),D.push(`${x}${x}/* ${Ls(v.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),D.push("");for(let I of E){let{value:R,description:L=""}=I;D.push(R&&`${x}${x}${R}${L&&s(d-R.length+2)+L}`)}if(t.length){D.push(`${x}},`),D.push(`${x}"files": [`);for(let I=0;Itypeof Ve=="object","object"),ue=ee(W("files"));if(ue){let Ve=re==="no-prop"||Ms(re)&&re.length===0,Pe=Ha(D,"extends");if(ue.length===0&&Ve&&!Pe)if(t){let ke=u||"tsconfig.json",De=v.The_files_list_in_config_file_0_is_empty,Be=lR(t,"files",ze=>ze.initializer),lt=PT(t,Be,De,ke);E.push(lt)}else K(v.The_files_list_in_config_file_0_is_empty,u||"tsconfig.json")}let ce=ee(W("include")),ne=W("exclude"),le=!1,me=ee(ne);if(ne==="no-prop"){let Ve=I.outDir,Pe=I.declarationDir;(Ve||Pe)&&(me=ti([Ve,Pe],ke=>!!ke))}ue===void 0&&ce===void 0&&(ce=[nK],le=!0);let de,Ae,xe,te;ce&&(de=Q3e(ce,E,!0,t,"include"),xe=yB(de,L)||de),me&&(Ae=Q3e(me,E,!1,t,"exclude"),te=yB(Ae,L)||Ae);let he=ti(ue,bs),Te=yB(he,L)||he;return{filesSpecs:ue,includeSpecs:ce,excludeSpecs:me,validatedFilesSpec:Te,validatedIncludeSpecs:xe,validatedExcludeSpecs:te,validatedFilesSpecBeforeSubstitution:he,validatedIncludeSpecsBeforeSubstitution:de,validatedExcludeSpecsBeforeSubstitution:Ae,pathPatterns:void 0,isDefaultIncludeSpec:le}}function $(re){let ue=UO(F,re,I,n,d);return B3e(ue,BO(D),m)&&E.push(j3e(F,u)),ue}function q(re){let ue,ce=pe("references",ne=>typeof ne=="object","object");if(Ms(ce))for(let ne of ce)typeof ne.path!="string"?K(v.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ue||(ue=[])).push({path:Cs(ne.path,re),originalPath:ne.path,prepend:ne.prepend,circular:ne.circular});return ue}function ee(re){return Ms(re)?re:void 0}function W(re){return pe(re,bs,"string")}function pe(re,ue,ce){if(Ha(D,re)&&!LM(D[re]))if(Ms(D[re])){let ne=D[re];return!t&&!Oi(ne,ue)&&E.push(Pc(v.Compiler_option_0_requires_a_value_of_type_1,re,ce)),ne}else return K(v.Compiler_option_0_requires_a_value_of_type_1,re,"Array"),"not-array";return"no-prop"}function K(re,...ue){t||E.push(Pc(re,...ue))}}function hB(e,t){return M3e(e,Ume,t)}function M3e(e,t,n){if(!e)return e;let i;for(let a of t)if(e[a.name]!==void 0){let u=e[a.name];switch(a.type){case"string":M.assert(a.isFilePath),iK(u)&&s(a,F3e(u,n));break;case"list":M.assert(a.element.isFilePath);let m=yB(u,n);m&&s(a,m);break;case"object":M.assert(a.name==="paths");let d=xTt(u,n);d&&s(a,d);break;default:M.fail("option type not supported")}}return i||e;function s(a,u){(i??(i=Mx({},e)))[a.name]=u}}var L3e="${configDir}";function iK(e){return bs(e)&&fs(e,L3e,!0)}function F3e(e,t){return Cs(e.replace(L3e,"./"),t)}function yB(e,t){if(!e)return e;let n;return e.forEach((i,s)=>{iK(i)&&((n??(n=e.slice()))[s]=F3e(i,t))}),n}function xTt(e,t){let n;return Pg(e).forEach(s=>{if(!Ms(e[s]))return;let a=yB(e[s],t);a&&((n??(n=Mx({},e)))[s]=a)}),n}function CTt(e){return e.code===v.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function j3e({includeSpecs:e,excludeSpecs:t},n){return Pc(v.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function B3e(e,t,n){return e.length===0&&t&&(!n||n.length===0)}function BO(e){return!Ha(e,"files")&&!Ha(e,"references")}function vB(e,t,n,i,s){let a=i.length;return B3e(e,s)?i.push(j3e(n,t)):JI(i,u=>!CTt(u)),a!==i.length}function ATt(e){return!!e.options}function U3e(e,t,n,i,s,a,u,m){var d;i=Wu(i);let S=Cs(s||"",i);if(a.includes(S))return u.push(Pc(v.Circularity_detected_while_resolving_configuration_Colon_0,[...a,S].join(" -> "))),{raw:e||Kme(t,u)};let E=e?kTt(e,n,i,s,u):PTt(t,n,i,s,u);if((d=E.options)!=null&&d.paths&&(E.options.pathsBasePath=i),E.extendedConfigPath){a=a.concat([S]);let D={options:{}};bs(E.extendedConfigPath)?x(D,E.extendedConfigPath):E.extendedConfigPath.forEach(I=>x(D,I)),D.include&&(E.raw.include=D.include),D.exclude&&(E.raw.exclude=D.exclude),D.files&&(E.raw.files=D.files),E.raw.compileOnSave===void 0&&D.compileOnSave&&(E.raw.compileOnSave=D.compileOnSave),t&&D.extendedSourceFiles&&(t.extendedSourceFiles=Os(D.extendedSourceFiles.keys())),E.options=Mx(D.options,E.options),E.watchOptions=E.watchOptions&&D.watchOptions?Mx(D.watchOptions,E.watchOptions):E.watchOptions||D.watchOptions}return E;function x(D,I){let R=NTt(t,I,n,a,u,m,D);if(R&&ATt(R)){let L=R.raw,F,J=$=>{E.raw[$]||L[$]&&(D[$]=kr(L[$],q=>iK(q)||op(q)?q:ii(F||(F=nw(yi(I),i,__(n.useCaseSensitiveFileNames))),q)))};J("include"),J("exclude"),J("files"),L.compileOnSave!==void 0&&(D.compileOnSave=L.compileOnSave),Mx(D.options,R.options),D.watchOptions=D.watchOptions&&R.watchOptions?Mx({},D.watchOptions,R.watchOptions):D.watchOptions||R.watchOptions}}}function kTt(e,t,n,i,s){Ha(e,"excludes")&&s.push(Pc(v.Unknown_option_excludes_Did_you_mean_exclude));let a=G3e(e.compilerOptions,n,s,i),u=H3e(e.typeAcquisition,n,s,i),m=ITt(e.watchOptions,n,s);e.compileOnSave=DTt(e,n,s);let d=e.extends||e.extends===""?V3e(e.extends,t,n,i,s):void 0;return{raw:e,options:a,watchOptions:m,typeAcquisition:u,extendedConfigPath:d}}function V3e(e,t,n,i,s,a,u,m){let d,S=i?O3e(i,n):n;if(bs(e))d=J3e(e,t,S,s,u,m);else if(Ms(e)){d=[];for(let E=0;E$.name===I)&&(S=Ut(S,L.name))))}}function J3e(e,t,n,i,s,a){if(e=Wu(e),op(e)||fs(e,"./")||fs(e,"../")){let m=Cs(e,n);if(!t.fileExists(m)&&!Wc(m,".json")&&(m=`${m}.json`,!t.fileExists(m))){i.push(PT(a,s,v.File_0_not_found,e));return}return m}let u=yge(e,ii(n,"tsconfig.json"),t);if(u.resolvedModule)return u.resolvedModule.resolvedFileName;e===""?i.push(PT(a,s,v.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(PT(a,s,v.File_0_not_found,e))}function NTt(e,t,n,i,s,a,u){let m=n.useCaseSensitiveFileNames?t:R1(t),d,S,E;if(a&&(d=a.get(m))?{extendedResult:S,extendedConfig:E}=d:(S=$me(t,x=>n.readFile(x)),S.parseDiagnostics.length||(E=U3e(void 0,S,n,yi(t),Ul(t),i,s,a)),a&&a.set(m,{extendedResult:S,extendedConfig:E})),e&&((u.extendedSourceFiles??(u.extendedSourceFiles=new Set)).add(S.fileName),S.extendedSourceFiles))for(let x of S.extendedSourceFiles)u.extendedSourceFiles.add(x);if(S.parseDiagnostics.length){s.push(...S.parseDiagnostics);return}return E}function DTt(e,t,n){if(!Ha(e,oB.name))return!1;let i=g2(oB,e.compileOnSave,t,n);return typeof i=="boolean"&&i}function q3e(e,t,n){let i=[];return{options:G3e(e,t,i,n),errors:i}}function z3e(e,t,n){let i=[];return{options:H3e(e,t,i,n),errors:i}}function W3e(e){return e&&Ul(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function G3e(e,t,n,i){let s=W3e(i);return Zme(v3e(),e,t,s,fB,n),i&&(s.configFilePath=Wu(i)),s}function sK(e){return{enable:!!e&&Ul(e)==="jsconfig.json",include:[],exclude:[]}}function H3e(e,t,n,i){let s=sK(i);return Zme(E3e(),e,t,s,m3e,n),s}function ITt(e,t,n){return Zme(T3e(),e,t,void 0,QY,n)}function Zme(e,t,n,i,s,a){if(t){for(let u in t){let m=e.get(u);m?(i||(i={}))[m.name]=g2(m,t[u],n,a):a.push(zme(u,s))}return i}}function PT(e,t,n,...i){return e&&t?bd(e,t,n,...i):Pc(n,...i)}function g2(e,t,n,i,s,a,u){if(e.isCommandLineOnly){i.push(PT(u,s?.name,v.Option_0_can_only_be_specified_on_command_line,e.name));return}if(P3e(e,t)){let m=e.type;if(m==="list"&&Ms(t))return Y3e(e,t,n,i,s,a,u);if(m==="listOrElement")return Ms(t)?Y3e(e,t,n,i,s,a,u):g2(e.element,t,n,i,s,a,u);if(!bs(e.type))return $3e(e,t,i,a,u);let d=XA(e,t,i,a,u);return LM(d)?d:wTt(e,n,d)}else i.push(PT(u,a,v.Compiler_option_0_requires_a_value_of_type_1,e.name,ZY(e)))}function wTt(e,t,n){return e.isFilePath&&(n=Wu(n),n=iK(n)?n:Cs(n,t),n===""&&(n=".")),n}function XA(e,t,n,i,s){var a;if(LM(t))return;let u=(a=e.extraValidation)==null?void 0:a.call(e,t);if(!u)return t;n.push(PT(s,i,...u))}function $3e(e,t,n,i,s){if(LM(t))return;let a=t.toLowerCase(),u=e.type.get(a);if(u!==void 0)return XA(e,u,n,i,s);n.push(u3e(e,(m,...d)=>PT(s,i,m,...d)))}function Y3e(e,t,n,i,s,a,u){return ti(kr(t,(m,d)=>g2(e.element,m,n,i,s,a?.elements[d],u)),m=>e.listPreserveFalsyValues?!0:!!m)}var OTt=/(^|\/)\*\*\/?$/,RTt=/^[^*?]*(?=\/[^/]*[*?])/;function UO(e,t,n,i,s=ve){t=eo(t);let a=__(i.useCaseSensitiveFileNames),u=new Map,m=new Map,d=new Map,{validatedFilesSpec:S,validatedIncludeSpecs:E,validatedExcludeSpecs:x}=e,D=iO(n,s),I=QR(n,D);if(S)for(let J of S){let $=Cs(J,t);u.set(a($),$)}let R;if(E&&E.length>0)for(let J of i.readDirectory(t,rf(I),x,E,void 0)){if(wc(J,".json")){if(!R){let ee=E.filter(pe=>Wc(pe,".json")),W=kr(aj(ee,t,"files"),pe=>`^${pe}$`);R=W?W.map(pe=>$1(pe,i.useCaseSensitiveFileNames)):ve}if(Va(R,ee=>ee.test(J))!==-1){let ee=a(J);!u.has(ee)&&!d.has(ee)&&d.set(ee,J)}continue}if(FTt(J,u,m,D,a))continue;jTt(J,m,D,a);let $=a(J);!u.has($)&&!m.has($)&&m.set($,J)}let L=Os(u.values()),F=Os(m.values());return L.concat(F,Os(d.values()))}function ege(e,t,n,i,s){let{validatedFilesSpec:a,validatedIncludeSpecs:u,validatedExcludeSpecs:m}=t;if(!kt(u)||!kt(m))return!1;n=eo(n);let d=__(i);if(a){for(let S of a)if(d(Cs(S,n))===e)return!1}return X3e(e,m,i,s,n)}function K3e(e){let t=fs(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Wc(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function SB(e,t,n,i){return X3e(e,ti(t,s=>!K3e(s)),n,i)}function X3e(e,t,n,i,s){let a=rO(t,ii(eo(i),s),"exclude"),u=a&&$1(a,n);return u?u.test(e)?!0:!PP(e)&&u.test(vu(e)):!1}function Q3e(e,t,n,i,s){return e.filter(u=>{if(!bs(u))return!1;let m=tge(u,n);return m!==void 0&&t.push(a(...m)),m===void 0});function a(u,m){let d=u9(i,s,m);return PT(i,d,u,m)}}function tge(e,t){if(M.assert(typeof e=="string"),t&&OTt.test(e))return[v.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(K3e(e))return[v.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function MTt({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,i){let s=rO(t,n,"exclude"),a=s&&new RegExp(s,i?"":"i"),u={},m=new Map;if(e!==void 0){let d=[];for(let S of e){let E=eo(ii(n,S));if(a&&a.test(E))continue;let x=LTt(E,i);if(x){let{key:D,path:I,flags:R}=x,L=m.get(D),F=L!==void 0?u[L]:void 0;(F===void 0||FIl(e,u)?u:void 0);if(!a)return!1;for(let u of a){if(wc(e,u)&&(u!==".ts"||!wc(e,".d.ts")))return!1;let m=s(Y1(e,u));if(t.has(m)||n.has(m)){if(u===".d.ts"&&(wc(e,".js")||wc(e,".jsx")))continue;return!0}}return!1}function jTt(e,t,n,i){let s=Et(n,a=>Il(e,a)?a:void 0);if(s)for(let a=s.length-1;a>=0;a--){let u=s[a];if(wc(e,u))return;let m=i(Y1(e,u));t.delete(m)}}function nge(e){let t={};for(let n in e)if(Ha(e,n)){let i=YY(n);i!==void 0&&(t[n]=ige(e[n],i))}return t}function ige(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!Ms(e))return ige(e,t.element);case"list":let n=t.element;return Ms(e)?Yi(e,i=>ige(i,n)):"";default:return Iu(t.type,(i,s)=>{if(i===e)return s})}}function sge(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return sge(e.element);case"object":return{};default:let n=Ph(e.type.keys());return n!==void 0?n:M.fail("Expected 'option.type' to have entries.")}}function ms(e,t,...n){e.trace(SA(t,...n))}function N0(e,t){return!!e.traceResolution&&t.trace!==void 0}function QA(e,t,n){let i;if(t&&e){let s=e.contents.packageJsonContent;typeof s.name=="string"&&typeof s.version=="string"&&(i={name:s.name,subModuleName:t.path.slice(e.packageDirectory.length+bc.length),version:s.version,peerDependencies:obt(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:i,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function oK(e){return QA(void 0,e,void 0)}function Z3e(e){if(e)return M.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function TB(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function BTt(e){let t=[];return e&1&&t.push(...pj),e&2&&t.push(...fN),e&4&&t.push(...fj),e&8&&t.push(".json"),t}function oge(e){if(e)return M.assert(gj(e.extension)),{fileName:e.path,packageId:e.packageId}}function eRe(e,t,n,i,s,a,u,m,d){if(!u.resultFromCache&&!u.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Su(e)){let{resolvedFileName:S,originalPath:E}=rRe(t.path,u.host,u.traceEnabled);E&&(t={...t,path:S,originalPath:E})}return tRe(t,n,i,s,a,u.resultFromCache,m,d)}function tRe(e,t,n,i,s,a,u,m){return a?u?.isReadonly?{...a,failedLookupLocations:age(a.failedLookupLocations,n),affectingLocations:age(a.affectingLocations,i),resolutionDiagnostics:age(a.resolutionDiagnostics,s)}:(a.failedLookupLocations=IN(a.failedLookupLocations,n),a.affectingLocations=IN(a.affectingLocations,i),a.resolutionDiagnostics=IN(a.resolutionDiagnostics,s),a):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:VO(n),affectingLocations:VO(i),resolutionDiagnostics:VO(s),alternateResult:m}}function VO(e){return e.length?e:void 0}function IN(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function age(e,t){return e?.length?t.length?[...e,...t]:e.slice():VO(t)}function cge(e,t,n,i){if(!Ha(e,t)){i.traceEnabled&&ms(i.host,v.package_json_does_not_have_a_0_field,t);return}let s=e[t];if(typeof s!==n||s===null){i.traceEnabled&&ms(i.host,v.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,s===null?"null":typeof s);return}return s}function aK(e,t,n,i){let s=cge(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&ms(i.host,v.package_json_had_a_falsy_0_field,t);return}let a=eo(ii(n,s));return i.traceEnabled&&ms(i.host,v.package_json_has_0_field_1_that_references_2,t,s,a),a}function UTt(e,t,n){return aK(e,"typings",t,n)||aK(e,"types",t,n)}function VTt(e,t,n){return aK(e,"tsconfig",t,n)}function JTt(e,t,n){return aK(e,"main",t,n)}function qTt(e,t){let n=cge(e,"typesVersions","object",t);if(n!==void 0)return t.traceEnabled&&ms(t.host,v.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}function zTt(e,t){let n=qTt(e,t);if(n===void 0)return;if(t.traceEnabled)for(let u in n)Ha(n,u)&&!f5.tryParse(u)&&ms(t.host,v.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,u);let i=bB(n);if(!i){t.traceEnabled&&ms(t.host,v.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,j);return}let{version:s,paths:a}=i;if(typeof a!="object"){t.traceEnabled&&ms(t.host,v.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof a);return}return i}var lge;function bB(e){lge||(lge=new Ym(se));for(let t in e){if(!Ha(e,t))continue;let n=f5.tryParse(t);if(n!==void 0&&n.test(lge))return{version:t,paths:e[t]}}}function JO(e,t){if(e.typeRoots)return e.typeRoots;let n;if(e.configFilePath?n=yi(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==void 0)return WTt(n)}function WTt(e){let t;return Am(eo(e),n=>{let i=ii(n,GTt);(t??(t=[])).push(i)}),t}var GTt=ii("node_modules","@types");function HTt(e,t,n){let i=typeof n.useCaseSensitiveFileNames=="function"?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return f0(e,t,!i)===0}function rRe(e,t,n){let i=uRe(e,t,n),s=HTt(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function nRe(e,t,n){let i=Wc(e,"/node_modules/@types")||Wc(e,"/node_modules/@types/")?bRe(t,n):t;return ii(e,i)}function uge(e,t,n,i,s,a,u){M.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let m=N0(n,i);s&&(n=s.commandLine.options);let d=t?yi(t):void 0,S=d?a?.getFromDirectoryCache(e,u,d,s):void 0;if(!S&&d&&!Su(e)&&(S=a?.getFromNonRelativeNameCache(e,u,d,s)),S)return m&&(ms(i,v.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&ms(i,v.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),ms(i,v.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,d),W(S)),S;let E=JO(n,i);m&&(t===void 0?E===void 0?ms(i,v.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):ms(i,v.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,E):E===void 0?ms(i,v.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):ms(i,v.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,E),s&&ms(i,v.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let x=[],D=[],I=_ge(n);u!==void 0&&(I|=30);let R=cf(n);u===99&&3<=R&&R<=99&&(I|=32);let L=I&8?sS(n,u):[],F=[],J={compilerOptions:n,host:i,traceEnabled:m,failedLookupLocations:x,affectingLocations:D,packageJsonInfoCache:a,features:I,conditions:L,requestContainingDirectory:d,reportDiagnostic:re=>void F.push(re),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},$=pe(),q=!0;$||($=K(),q=!1);let ee;if($){let{fileName:re,packageId:ue}=$,ce=re,ne;n.preserveSymlinks||({resolvedFileName:ce,originalPath:ne}=rRe(re,i,m)),ee={primary:q,resolvedFileName:ce,originalPath:ne,packageId:ue,isExternalLibraryImport:NT(re)}}return S={resolvedTypeReferenceDirective:ee,failedLookupLocations:VO(x),affectingLocations:VO(D),resolutionDiagnostics:VO(F)},d&&a&&!a.isReadonly&&(a.getOrCreateCacheForDirectory(d,s).set(e,u,S),Su(e)||a.getOrCreateCacheForNonRelativeName(e,u,s).set(d,S)),m&&W(S),S;function W(re){var ue;(ue=re.resolvedTypeReferenceDirective)!=null&&ue.resolvedFileName?re.resolvedTypeReferenceDirective.packageId?ms(i,v.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,re.resolvedTypeReferenceDirective.resolvedFileName,J1(re.resolvedTypeReferenceDirective.packageId),re.resolvedTypeReferenceDirective.primary):ms(i,v.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,re.resolvedTypeReferenceDirective.resolvedFileName,re.resolvedTypeReferenceDirective.primary):ms(i,v.Type_reference_directive_0_was_not_resolved,e)}function pe(){if(E&&E.length)return m&&ms(i,v.Resolving_with_primary_search_path_0,E.join(", ")),di(E,re=>{let ue=nRe(re,e,J),ce=tg(re,i);if(!ce&&m&&ms(i,v.Directory_0_does_not_exist_skipping_all_lookups_in_it,re),n.typeRoots){let ne=RN(4,ue,!ce,J);if(ne){let le=jM(ne.path),me=le?DT(le,!1,J):void 0;return oge(QA(me,ne,J))}}return oge(Sge(4,ue,!ce,J))});m&&ms(i,v.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function K(){let re=t&&yi(t);if(re!==void 0){let ue;if(!n.typeRoots||!Wc(t,s6))if(m&&ms(i,v.Looking_up_in_node_modules_folder_initial_location_0,re),Su(e)){let{path:ce}=lRe(re,e);ue=fK(4,ce,!1,J,!0)}else{let ce=yRe(4,e,re,J,void 0,void 0);ue=ce&&ce.value}else m&&ms(i,v.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return oge(ue)}else m&&ms(i,v.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function _ge(e){let t=0;switch(cf(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function sS(e,t){let n=cf(e);if(t===void 0){if(n===100)t=99;else if(n===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),n!==100&&i.push("node"),ds(i,e.customConditions)}function cK(e,t,n,i,s){let a=zO(s?.getPackageJsonInfoCache(),i,n);return Am(t,u=>{if(Ul(u)!=="node_modules"){let m=ii(u,"node_modules"),d=ii(m,e);return DT(d,!1,a)}})}function EB(e,t){if(e.types)return e.types;let n=[];if(t.directoryExists&&t.getDirectories){let i=JO(e,t);if(i){for(let s of i)if(t.directoryExists(s))for(let a of t.getDirectories(s)){let u=eo(a),m=ii(s,u,"package.json");if(!(t.fileExists(m)&&Yw(m,t).typings===null)){let S=Ul(u);S.charCodeAt(0)!==46&&n.push(S)}}}}return n}function xB(e){return!!e?.contents}function fge(e){return!!e&&!e.contents}function pge(e){var t;if(e===null||typeof e!="object")return""+e;if(Ms(e))return`[${(t=e.map(i=>pge(i)))==null?void 0:t.join(",")}]`;let n="{";for(let i in e)Ha(e,i)&&(n+=`${i}: ${pge(e[i])}`);return n+"}"}function lK(e,t){return t.map(n=>pge(nj(e,n))).join("|")+`|${e.pathsBasePath}`}function uK(e,t){let n=new Map,i=new Map,s=new Map;return e&&n.set(e,s),{getMapOfCacheRedirects:a,getOrCreateMapOfCacheRedirects:u,update:m,clear:S,getOwnMap:()=>s};function a(x){return x?d(x.commandLine.options,!1):s}function u(x){return x?d(x.commandLine.options,!0):s}function m(x){e!==x&&(e?s=d(x,!0):n.set(x,s),e=x)}function d(x,D){let I=n.get(x);if(I)return I;let R=E(x);if(I=i.get(R),!I){if(e){let L=E(e);L===R?I=s:i.has(L)||i.set(L,s)}D&&(I??(I=new Map)),I&&i.set(R,I)}return I&&n.set(x,I),I}function S(){let x=e&&t.get(e);s.clear(),n.clear(),t.clear(),i.clear(),e&&(x&&t.set(e,x),n.set(e,s))}function E(x){let D=t.get(x);return D||t.set(x,D=lK(x,zY)),D}}function $Tt(e,t){let n;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:a,getInternalMap:u};function i(m){return n?.get(rc(m,e,t))}function s(m,d){(n||(n=new Map)).set(rc(m,e,t),d)}function a(){n=void 0}function u(){return n}}function iRe(e,t,n,i){let s=e.getOrCreateMapOfCacheRedirects(t),a=s.get(n);return a||(a=i(),s.set(n,a)),a}function YTt(e,t,n,i){let s=uK(n,i);return{getFromDirectoryCache:d,getOrCreateCacheForDirectory:m,clear:a,update:u,directoryToModuleNameMap:s};function a(){s.clear()}function u(S){s.update(S)}function m(S,E){let x=rc(S,e,t);return iRe(s,E,x,()=>wN())}function d(S,E,x,D){var I,R;let L=rc(x,e,t);return(R=(I=s.getMapOfCacheRedirects(D))==null?void 0:I.get(L))==null?void 0:R.get(S,E)}}function qO(e,t){return t===void 0?e:`${t}|${e}`}function wN(){let e=new Map,t=new Map,n={get(s,a){return e.get(i(s,a))},set(s,a,u){return e.set(i(s,a),u),n},delete(s,a){return e.delete(i(s,a)),n},has(s,a){return e.has(i(s,a))},forEach(s){return e.forEach((a,u)=>{let[m,d]=t.get(u);return s(a,m,d)})},size(){return e.size}};return n;function i(s,a){let u=qO(s,a);return t.set(u,[s,a]),u}}function KTt(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function XTt(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function QTt(e,t,n,i,s){let a=uK(n,s);return{getFromNonRelativeNameCache:d,getOrCreateCacheForNonRelativeName:S,clear:u,update:m};function u(){a.clear()}function m(x){a.update(x)}function d(x,D,I,R){var L,F;return M.assert(!Su(x)),(F=(L=a.getMapOfCacheRedirects(R))==null?void 0:L.get(qO(x,D)))==null?void 0:F.get(I)}function S(x,D,I){return M.assert(!Su(x)),iRe(a,I,qO(x,D),E)}function E(){let x=new Map;return{get:D,set:I};function D(L){return x.get(rc(L,e,t))}function I(L,F){let J=rc(L,e,t);if(x.has(J))return;x.set(J,F);let $=i(F),q=$&&R(J,$),ee=J;for(;ee!==q;){let W=yi(ee);if(W===ee||x.has(W))break;x.set(W,F),ee=W}}function R(L,F){let J=rc(yi(F),e,t),$=0,q=Math.min(L.length,J.length);for(;$i,clearAllExceptPackageJsonInfoCache:S,optionsToRedirectsKey:a};function d(){S(),i.clear()}function S(){u.clear(),m.clear()}function E(x){u.update(x),m.update(x)}}function ON(e,t,n,i,s){let a=sRe(e,t,n,i,KTt,s);return a.getOrCreateCacheForModuleName=(u,m,d)=>a.getOrCreateCacheForNonRelativeName(u,m,d),a}function CB(e,t,n,i,s){return sRe(e,t,n,i,XTt,s)}function _K(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function AB(e,t,n,i,s){return ZA(e,t,_K(n),i,s)}function oRe(e,t,n,i){let s=yi(t);return n.getFromDirectoryCache(e,i,s,void 0)}function ZA(e,t,n,i,s,a,u){var m,d,S;let E=N0(n,i);a&&(n=a.commandLine.options),E&&(ms(i,v.Resolving_module_0_from_1,e,t),a&&ms(i,v.Using_compiler_options_of_project_reference_redirect_0,a.sourceFile.fileName));let x=yi(t),D=s?.getFromDirectoryCache(e,u,x,a);if(D)E&&ms(i,v.Resolution_for_module_0_was_found_in_cache_from_location_1,e,x);else{let I=n.moduleResolution;switch(I===void 0?(I=cf(n),E&&ms(i,v.Module_resolution_kind_is_not_specified_using_0,ew[I])):E&&ms(i,v.Explicitly_specified_module_resolution_kind_Colon_0,ew[I]),(m=sf)==null||m.logStartResolveModule(e),I){case 3:D=rbt(e,t,n,i,s,a,u);break;case 99:D=nbt(e,t,n,i,s,a,u);break;case 2:D=hge(e,t,n,i,s,a,u?sS(n,u):void 0);break;case 1:D=Ege(e,t,n,i,s,a);break;case 100:D=gge(e,t,n,i,s,a,u?sS(n,u):void 0);break;default:return M.fail(`Unexpected moduleResolution: ${I}`)}D&&D.resolvedModule&&((d=sf)==null||d.logInfoEvent(`Module "${e}" resolved to "${D.resolvedModule.resolvedFileName}"`)),(S=sf)==null||S.logStopResolveModule(D&&D.resolvedModule?""+D.resolvedModule.resolvedFileName:"null"),s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(x,a).set(e,u,D),Su(e)||s.getOrCreateCacheForNonRelativeName(e,u,a).set(x,D))}return E&&(D.resolvedModule?D.resolvedModule.packageId?ms(i,v.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,D.resolvedModule.resolvedFileName,J1(D.resolvedModule.packageId)):ms(i,v.Module_name_0_was_successfully_resolved_to_1,e,D.resolvedModule.resolvedFileName):ms(i,v.Module_name_0_was_not_resolved,e)),D}function aRe(e,t,n,i,s){let a=ZTt(e,t,i,s);return a?a.value:Su(t)?ebt(e,t,n,i,s):tbt(e,t,i,s)}function ZTt(e,t,n,i){var s;let{baseUrl:a,paths:u,configFile:m}=i.compilerOptions;if(u&&!zp(t)){i.traceEnabled&&(a&&ms(i.host,v.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,a,t),ms(i.host,v.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let d=R9(i.compilerOptions,i.host),S=m?.configFileSpecs?(s=m.configFileSpecs).pathPatterns||(s.pathPatterns=mj(u)):void 0;return Tge(e,t,d,u,S,n,!1,i)}}function ebt(e,t,n,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&ms(s.host,v.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let a=eo(ii(n,t)),u,m;for(let d of s.compilerOptions.rootDirs){let S=eo(d);Wc(S,bc)||(S+=bc);let E=fs(a,S)&&(m===void 0||m.length(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(mge||{});function rbt(e,t,n,i,s,a,u){return cRe(30,e,t,n,i,s,a,u)}function nbt(e,t,n,i,s,a,u){return cRe(30,e,t,n,i,s,a,u)}function cRe(e,t,n,i,s,a,u,m,d){let S=yi(n),E=m===99?32:0,x=i.noDtsResolution?3:7;return cE(i)&&(x|=8),FM(e|E,t,S,i,s,a,x,!1,u,d)}function ibt(e,t,n){return FM(0,e,t,{moduleResolution:2,allowJs:!0},n,void 0,2,!1,void 0,void 0)}function gge(e,t,n,i,s,a,u){let m=yi(t),d=n.noDtsResolution?3:7;return cE(n)&&(d|=8),FM(_ge(n),e,m,n,i,s,d,!1,a,u)}function hge(e,t,n,i,s,a,u,m){let d;return m?d=8:n.noDtsResolution?(d=3,cE(n)&&(d|=8)):d=cE(n)?15:7,FM(u?30:0,e,yi(t),n,i,s,d,!!m,a,u)}function yge(e,t,n){return FM(30,e,yi(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function FM(e,t,n,i,s,a,u,m,d,S){var E,x,D,I,R;let L=N0(i,s),F=[],J=[],$=cf(i);S??(S=sS(i,$===100||$===2?void 0:e&32?99:1));let q=[],ee={compilerOptions:i,host:s,traceEnabled:L,failedLookupLocations:F,affectingLocations:J,packageJsonInfoCache:a,features:e,conditions:S??ve,requestContainingDirectory:n,reportDiagnostic:re=>void q.push(re),isConfigLookup:m,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};L&&bA($)&&ms(s,v.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",ee.conditions.map(re=>`'${re}'`).join(", "));let W;if($===2){let re=u&5,ue=u&-6;W=re&&K(re,ee)||ue&&K(ue,ee)||void 0}else W=K(u,ee);let pe;if(ee.resolvedPackageDirectory&&!m&&!Su(t)){let re=W?.value&&u&5&&!mRe(5,W.value.resolved.extension);if((E=W?.value)!=null&&E.isExternalLibraryImport&&re&&e&8&&S?.includes("import")){oS(ee,v.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let ue={...ee,features:ee.features&-9,reportDiagnostic:aa},ce=K(u&5,ue);(x=ce?.value)!=null&&x.isExternalLibraryImport&&(pe=ce.value.resolved.path)}else if((!W?.value||re)&&$===2){oS(ee,v.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let ue={...ee.compilerOptions,moduleResolution:100},ce={...ee,compilerOptions:ue,features:30,conditions:sS(ue),reportDiagnostic:aa},ne=K(u&5,ce);(D=ne?.value)!=null&&D.isExternalLibraryImport&&(pe=ne.value.resolved.path)}}return eRe(t,(I=W?.value)==null?void 0:I.resolved,(R=W?.value)==null?void 0:R.isExternalLibraryImport,F,J,q,ee,a,pe);function K(re,ue){let ne=aRe(re,t,n,(le,me,de,Ae)=>fK(le,me,de,Ae,!0),ue);if(ne)return Xp({resolved:ne,isExternalLibraryImport:NT(ne.path)});if(Su(t)){let{path:le,parts:me}=lRe(n,t),de=fK(re,le,!1,ue,!0);return de&&Xp({resolved:de,isExternalLibraryImport:xs(me,"node_modules")})}else{let le;if(e&2&&fs(t,"#")&&(le=ubt(re,t,n,ue,a,d)),!le&&e&4&&(le=lbt(re,t,n,ue,a,d)),!le){if(t.includes(":")){L&&ms(s,v.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,TB(re));return}L&&ms(s,v.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,TB(re)),le=yRe(re,t,n,ue,a,d)}return re&4&&(le??(le=xRe(t,ue))),le&&{value:le.value&&{resolved:le.value,isExternalLibraryImport:!0}}}}}function lRe(e,t){let n=ii(e,t),i=yu(n),s=yc(i);return{path:s==="."||s===".."?vu(eo(n)):eo(n),parts:i}}function uRe(e,t,n){if(!t.realpath)return e;let i=eo(t.realpath(e));return n&&ms(t,v.Resolving_real_path_for_0_result_1,e,i),i}function fK(e,t,n,i,s){if(i.traceEnabled&&ms(i.host,v.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,TB(e)),!yv(t)){if(!n){let u=yi(t);tg(u,i.host)||(i.traceEnabled&&ms(i.host,v.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),n=!0)}let a=RN(e,t,n,i);if(a){let u=s?jM(a.path):void 0,m=u?DT(u,!1,i):void 0;return QA(m,a,i)}}if(n||tg(t,i.host)||(i.traceEnabled&&ms(i.host,v.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(i.features&32))return Sge(e,t,n,i,s)}var Fy="/node_modules/";function NT(e){return e.includes(Fy)}function jM(e,t){let n=eo(e),i=n.lastIndexOf(Fy);if(i===-1)return;let s=i+Fy.length,a=_Re(n,s,t);return n.charCodeAt(s)===64&&(a=_Re(n,a,t)),n.slice(0,a)}function _Re(e,t,n){let i=e.indexOf(bc,t+1);return i===-1?n?e.length:t:i}function vge(e,t,n,i){return oK(RN(e,t,n,i))}function RN(e,t,n,i){let s=fRe(e,t,n,i);if(s)return s;if(!(i.features&32)){let a=pRe(t,e,"",n,i);if(a)return a}}function fRe(e,t,n,i){if(!Ul(t).includes("."))return;let a=lf(t);a===t&&(a=t.substring(0,t.lastIndexOf(".")));let u=t.substring(a.length);return i.traceEnabled&&ms(i.host,v.File_name_0_has_a_1_extension_stripping_it,t,u),pRe(a,e,u,n,i)}function pK(e,t,n,i){return e&1&&Il(t,pj)||e&4&&Il(t,fj)?dK(t,n,i)!==void 0?{path:t,ext:J9(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&wc(t,".json")?dK(t,n,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:fRe(e,t,n,i)}function pRe(e,t,n,i,s){if(!i){let u=yi(e);u&&(i=!tg(u,s.host))}switch(n){case".mjs":case".mts":case".d.mts":return t&1&&a(".mts",n===".mts"||n===".d.mts")||t&4&&a(".d.mts",n===".mts"||n===".d.mts")||t&2&&a(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&a(".cts",n===".cts"||n===".d.cts")||t&4&&a(".d.cts",n===".cts"||n===".d.cts")||t&2&&a(".cjs")||void 0;case".json":return t&4&&a(".d.json.ts")||t&8&&a(".json")||void 0;case".tsx":case".jsx":return t&1&&(a(".tsx",n===".tsx")||a(".ts",n===".tsx"))||t&4&&a(".d.ts",n===".tsx")||t&2&&(a(".jsx")||a(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(a(".ts",n===".ts"||n===".d.ts")||a(".tsx",n===".ts"||n===".d.ts"))||t&4&&a(".d.ts",n===".ts"||n===".d.ts")||t&2&&(a(".js")||a(".jsx"))||s.isConfigLookup&&a(".json")||void 0;default:return t&4&&!ju(e+n)&&a(`.d${n}.ts`)||void 0}function a(u,m){let d=dK(e+u,i,s);return d===void 0?void 0:{path:d,ext:u,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&m}}}function dK(e,t,n){var i;if(!((i=n.compilerOptions.moduleSuffixes)!=null&&i.length))return dRe(e,t,n);let s=b0(e)??"",a=s?eM(e,s):e;return Et(n.compilerOptions.moduleSuffixes,u=>dRe(a+u+s,t,n))}function dRe(e,t,n){var i;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&ms(n.host,v.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&ms(n.host,v.File_0_does_not_exist,e)}(i=n.failedLookupLocations)==null||i.push(e)}function Sge(e,t,n,i,s=!0){let a=s?DT(t,n,i):void 0,u=a&&a.contents.packageJsonContent,m=a&&kB(a,i);return QA(a,gK(e,t,n,i,u,m),i)}function mK(e,t,n,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let a,u=5|(s?2:0),m=_ge(t),d=zO(i?.getPackageJsonInfoCache(),n,t);d.conditions=sS(t),d.requestContainingDirectory=e.packageDirectory;let S=gK(u,e.packageDirectory,!1,d,e.contents.packageJsonContent,kB(e,d));if(a=Ut(a,S?.path),m&8&&e.contents.packageJsonContent.exports){let E=w1([sS(t,99),sS(t,1)],Jp);for(let x of E){let D={...d,failedLookupLocations:[],conditions:x,host:n},I=sbt(e,e.contents.packageJsonContent.exports,D,u);if(I)for(let R of I)a=Ga(a,R.path)}}return e.contents.resolvedEntrypoints=a||!1}function sbt(e,t,n,i){let s;if(Ms(t))for(let u of t)a(u);else if(typeof t=="object"&&t!==null&&NB(t))for(let u in t)a(t[u]);else a(t);return s;function a(u){var m,d;if(typeof u=="string"&&fs(u,"./"))if(u.includes("*")&&n.host.readDirectory){if(u.indexOf("*")!==u.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,BTt(i),void 0,[vue(kA(u,"**/*"),".*")]).forEach(S=>{s=Ga(s,{path:S,ext:NP(S),resolvedUsingTsExtension:void 0})})}else{let S=yu(u).slice(2);if(S.includes("..")||S.includes(".")||S.includes("node_modules"))return!1;let E=ii(e.packageDirectory,u),x=Cs(E,(d=(m=n.host).getCurrentDirectory)==null?void 0:d.call(m)),D=pK(i,x,!1,n);if(D)return s=Ga(s,D,(I,R)=>I.path===R.path),!0}else if(Array.isArray(u)){for(let S of u)if(a(S))return!0}else if(typeof u=="object"&&u!==null)return Et(Pg(u),S=>{if(S==="default"||xs(n.conditions,S)||BM(n.conditions,S))return a(u[S]),!0})}}function zO(e,t,n){return{host:t,compilerOptions:n,traceEnabled:N0(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:ve,requestContainingDirectory:void 0,reportDiagnostic:aa,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function WO(e,t){let n=yu(e);for(n.pop();n.length>0;){let i=DT(_0(n),!1,t);if(i)return i;n.pop()}}function kB(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=zTt(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function obt(e,t){return e.contents.peerDependencies===void 0&&(e.contents.peerDependencies=abt(e,t)||!1),e.contents.peerDependencies||void 0}function abt(e,t){let n=cge(e.contents.packageJsonContent,"peerDependencies","object",t);if(n===void 0)return;t.traceEnabled&&ms(t.host,v.package_json_has_a_peerDependencies_field);let i=uRe(e.packageDirectory,t.host,t.traceEnabled),s=i.substring(0,i.lastIndexOf("node_modules")+12)+bc,a="";for(let u in n)if(Ha(n,u)){let m=DT(s+u,!1,t);if(m){let d=m.contents.packageJsonContent.version;a+=`+${u}@${d}`,t.traceEnabled&&ms(t.host,v.Found_peerDependency_0_with_1_version,u,d)}else t.traceEnabled&&ms(t.host,v.Failed_to_find_peerDependency_0,u)}return a}function DT(e,t,n){var i,s,a,u,m,d;let{host:S,traceEnabled:E}=n,x=ii(e,"package.json");if(t){(i=n.failedLookupLocations)==null||i.push(x);return}let D=(s=n.packageJsonInfoCache)==null?void 0:s.getPackageJsonInfo(x);if(D!==void 0){if(xB(D))return E&&ms(S,v.File_0_exists_according_to_earlier_cached_lookups,x),(a=n.affectingLocations)==null||a.push(x),D.packageDirectory===e?D:{packageDirectory:e,contents:D.contents};D.directoryExists&&E&&ms(S,v.File_0_does_not_exist_according_to_earlier_cached_lookups,x),(u=n.failedLookupLocations)==null||u.push(x);return}let I=tg(e,S);if(I&&S.fileExists(x)){let R=Yw(x,S);E&&ms(S,v.Found_package_json_at_0,x);let L={packageDirectory:e,contents:{packageJsonContent:R,versionPaths:void 0,resolvedEntrypoints:void 0,peerDependencies:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(x,L),(m=n.affectingLocations)==null||m.push(x),L}else I&&E&&ms(S,v.File_0_does_not_exist,x),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(x,{packageDirectory:e,directoryExists:I}),(d=n.failedLookupLocations)==null||d.push(x)}function gK(e,t,n,i,s,a){let u;s&&(i.isConfigLookup?u=VTt(s,t,i):u=e&4&&UTt(s,t,i)||e&7&&JTt(s,t,i)||void 0);let m=(D,I,R,L)=>{let F=pK(D,I,R,L);if(F)return oK(F);let J=D===4?5:D,$=L.features,q=L.candidateIsFromPackageJsonField;L.candidateIsFromPackageJsonField=!0,s?.type!=="module"&&(L.features&=-33);let ee=fK(J,I,R,L,!1);return L.features=$,L.candidateIsFromPackageJsonField=q,ee},d=u?!tg(yi(u),i.host):void 0,S=n||!tg(t,i.host),E=ii(t,i.isConfigLookup?"tsconfig":"index");if(a&&(!u||Cm(t,u))){let D=Km(t,u||E,!1);i.traceEnabled&&ms(i.host,v.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,a.version,se,D);let I=Tge(e,D,t,a.paths,void 0,m,d||S,i);if(I)return Z3e(I.value)}let x=u&&Z3e(m(e,u,d,i));if(x)return x;if(!(i.features&32))return RN(e,E,S,i)}function mRe(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function PB(e){let t=e.indexOf(bc);return e[0]==="@"&&(t=e.indexOf(bc,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function NB(e){return Oi(Pg(e),t=>fs(t,"."))}function cbt(e){return!Dt(Pg(e),t=>fs(t,"."))}function lbt(e,t,n,i,s,a){var u,m;let d=Cs(ii(n,"dummy"),(m=(u=i.host).getCurrentDirectory)==null?void 0:m.call(u)),S=WO(d,i);if(!S||!S.contents.packageJsonContent.exports||typeof S.contents.packageJsonContent.name!="string")return;let E=yu(t),x=yu(S.contents.packageJsonContent.name);if(!Oi(x,(F,J)=>E[J]===F))return;let D=E.slice(x.length),I=kt(D)?`.${bc}${D.join(bc)}`:".";if(H1(i.compilerOptions)&&!NT(n))return hK(S,e,I,i,s,a);let R=e&5,L=e&-6;return hK(S,R,I,i,s,a)||hK(S,L,I,i,s,a)}function hK(e,t,n,i,s,a){if(e.contents.packageJsonContent.exports){if(n==="."){let u;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&cbt(e.contents.packageJsonContent.exports)?u=e.contents.packageJsonContent.exports:Ha(e.contents.packageJsonContent.exports,".")&&(u=e.contents.packageJsonContent.exports["."]),u)return hRe(t,i,s,a,n,e,!1)(u,"",!1,".")}else if(NB(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&ms(i.host,v.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),Xp(void 0);let u=gRe(t,i,s,a,n,e.contents.packageJsonContent.exports,e,!1);if(u)return u}return i.traceEnabled&&ms(i.host,v.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),Xp(void 0)}}function ubt(e,t,n,i,s,a){var u,m;if(t==="#"||fs(t,"#/"))return i.traceEnabled&&ms(i.host,v.Invalid_import_specifier_0_has_no_possible_resolutions,t),Xp(void 0);let d=Cs(ii(n,"dummy"),(m=(u=i.host).getCurrentDirectory)==null?void 0:m.call(u)),S=WO(d,i);if(!S)return i.traceEnabled&&ms(i.host,v.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),Xp(void 0);if(!S.contents.packageJsonContent.imports)return i.traceEnabled&&ms(i.host,v.package_json_scope_0_has_no_imports_defined,S.packageDirectory),Xp(void 0);let E=gRe(e,i,s,a,t,S.contents.packageJsonContent.imports,S,!0);return E||(i.traceEnabled&&ms(i.host,v.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,S.packageDirectory),Xp(void 0))}function yK(e,t){let n=e.indexOf("*"),i=t.indexOf("*"),s=n===-1?e.length:n+1,a=i===-1?t.length:i+1;return s>a?-1:a>s||n===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function gRe(e,t,n,i,s,a,u,m){let d=hRe(e,t,n,i,s,u,m);if(!Wc(s,bc)&&!s.includes("*")&&Ha(a,s)){let x=a[s];return d(x,"",!1,s)}let S=mo(ti(Pg(a),x=>_bt(x)||Wc(x,"/")),yK);for(let x of S)if(t.features&16&&E(x,s)){let D=a[x],I=x.indexOf("*"),R=s.substring(x.substring(0,I).length,s.length-(x.length-1-I));return d(D,R,!0,x)}else if(Wc(x,"*")&&fs(s,x.substring(0,x.length-1))){let D=a[x],I=s.substring(x.length-1);return d(D,I,!0,x)}else if(fs(s,x)){let D=a[x],I=s.substring(x.length);return d(D,I,!1,x)}function E(x,D){if(Wc(x,"*"))return!1;let I=x.indexOf("*");return I===-1?!1:fs(D,x.substring(0,I))&&Wc(D,x.substring(I+1))}}function _bt(e){let t=e.indexOf("*");return t!==-1&&t===e.lastIndexOf("*")}function hRe(e,t,n,i,s,a,u){return m;function m(d,S,E,x){if(typeof d=="string"){if(!E&&S.length>0&&!Wc(d,"/"))return t.traceEnabled&&ms(t.host,v.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,s),Xp(void 0);if(!fs(d,"./")){if(u&&!fs(d,"../")&&!fs(d,"/")&&!op(d)){let W=E?d.replace(/\*/g,S):d+S;oS(t,v.Using_0_subpath_1_with_target_2,"imports",x,W),oS(t,v.Resolving_module_0_from_1,W,a.packageDirectory+"/");let pe=FM(t.features,W,a.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,i,t.conditions);return Xp(pe.resolvedModule?{path:pe.resolvedModule.resolvedFileName,extension:pe.resolvedModule.extension,packageId:pe.resolvedModule.packageId,originalPath:pe.resolvedModule.originalPath,resolvedUsingTsExtension:pe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&ms(t.host,v.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,s),Xp(void 0)}let F=(zp(d)?yu(d).slice(1):yu(d)).slice(1);if(F.includes("..")||F.includes(".")||F.includes("node_modules"))return t.traceEnabled&&ms(t.host,v.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,s),Xp(void 0);let J=ii(a.packageDirectory,d),$=yu(S);if($.includes("..")||$.includes(".")||$.includes("node_modules"))return t.traceEnabled&&ms(t.host,v.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,s),Xp(void 0);t.traceEnabled&&ms(t.host,v.Using_0_subpath_1_with_target_2,u?"imports":"exports",x,E?d.replace(/\*/g,S):d+S);let q=D(E?J.replace(/\*/g,S):J+S),ee=R(q,S,ii(a.packageDirectory,"package.json"),u);return ee||Xp(QA(a,pK(e,q,!1,t),t))}else if(typeof d=="object"&&d!==null)if(Array.isArray(d)){if(!kt(d))return t.traceEnabled&&ms(t.host,v.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,s),Xp(void 0);for(let L of d){let F=m(L,S,E,x);if(F)return F}}else{oS(t,v.Entering_conditional_exports);for(let L of Pg(d))if(L==="default"||t.conditions.includes(L)||BM(t.conditions,L)){oS(t,v.Matched_0_condition_1,u?"imports":"exports",L);let F=d[L],J=m(F,S,E,x);if(J)return oS(t,v.Resolved_under_condition_0,L),oS(t,v.Exiting_conditional_exports),J;oS(t,v.Failed_to_resolve_under_condition_0,L)}else oS(t,v.Saw_non_matching_condition_0,L);oS(t,v.Exiting_conditional_exports);return}else if(d===null)return t.traceEnabled&&ms(t.host,v.package_json_scope_0_explicitly_maps_specifier_1_to_null,a.packageDirectory,s),Xp(void 0);return t.traceEnabled&&ms(t.host,v.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,a.packageDirectory,s),Xp(void 0);function D(L){var F,J;return L===void 0?L:Cs(L,(J=(F=t.host).getCurrentDirectory)==null?void 0:J.call(F))}function I(L,F){return vu(ii(L,F))}function R(L,F,J,$){var q,ee,W,pe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!L.includes("/node_modules/")&&(!t.compilerOptions.configFile||Cm(a.packageDirectory,D(t.compilerOptions.configFile.fileName),!vK(t)))){let re=Nv({useCaseSensitiveFileNames:()=>vK(t)}),ue=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let ce=D(n6(t.compilerOptions,()=>[],((ee=(q=t.host).getCurrentDirectory)==null?void 0:ee.call(q))||"",re));ue.push(ce)}else if(t.requestContainingDirectory){let ce=D(ii(t.requestContainingDirectory,"index.ts")),ne=D(n6(t.compilerOptions,()=>[ce,D(J)],((pe=(W=t.host).getCurrentDirectory)==null?void 0:pe.call(W))||"",re));ue.push(ne);let le=vu(ne);for(;le&&le.length>1;){let me=yu(le);me.pop();let de=_0(me);ue.unshift(de),le=vu(de)}}ue.length>1&&t.reportDiagnostic(Pc($?v.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:v.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,F===""?".":F,J));for(let ce of ue){let ne=K(ce);for(let le of ne)if(Cm(le,L,!vK(t))){let me=L.slice(le.length+1),de=ii(ce,me),Ae=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let xe of Ae)if(wc(de,xe)){let te=Nfe(de);for(let he of te){if(!mRe(e,he))continue;let Te=A3(de,he,xe,!vK(t));if(t.host.fileExists(Te))return Xp(QA(a,pK(e,Te,!1,t),t))}}}}}return;function K(re){var ue,ce;let ne=t.compilerOptions.configFile?((ce=(ue=t.host).getCurrentDirectory)==null?void 0:ce.call(ue))||"":re,le=[];return t.compilerOptions.declarationDir&&le.push(D(I(ne,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&le.push(D(I(ne,t.compilerOptions.outDir))),le}}}}function BM(e,t){if(!e.includes("types")||!fs(t,"types@"))return!1;let n=f5.tryParse(t.substring(6));return n?n.test(se):!1}function yRe(e,t,n,i,s,a){return vRe(e,t,n,i,!1,s,a)}function fbt(e,t,n){return vRe(4,e,t,n,!0,void 0,void 0)}function vRe(e,t,n,i,s,a,u){let m=i.features===0?void 0:i.features&32?99:1,d=e&5,S=e&-6;if(d){oS(i,v.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,TB(d));let x=E(d);if(x)return x}if(S&&!s)return oS(i,v.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,TB(S)),E(S);function E(x){return Am(Wu(n),D=>{if(Ul(D)!=="node_modules"){let I=ERe(a,t,m,D,u,i);return I||Xp(SRe(x,t,D,i,s,a,u))}})}}function SRe(e,t,n,i,s,a,u){let m=ii(n,"node_modules"),d=tg(m,i.host);if(!d&&i.traceEnabled&&ms(i.host,v.Directory_0_does_not_exist_skipping_all_lookups_in_it,m),!s){let S=TRe(e,t,m,d,i,a,u);if(S)return S}if(e&4){let S=ii(m,"@types"),E=d;return d&&!tg(S,i.host)&&(i.traceEnabled&&ms(i.host,v.Directory_0_does_not_exist_skipping_all_lookups_in_it,S),E=!1),TRe(4,bRe(t,i),S,E,i,a,u)}}function TRe(e,t,n,i,s,a,u){var m,d;let S=eo(ii(n,t)),{packageName:E,rest:x}=PB(t),D=ii(n,E),I,R=DT(S,!i,s);if(x!==""&&R&&(!(s.features&8)||!Ha(((m=I=DT(D,!i,s))==null?void 0:m.contents.packageJsonContent)??ve,"exports"))){let J=RN(e,S,!i,s);if(J)return oK(J);let $=gK(e,S,!i,s,R.contents.packageJsonContent,kB(R,s));return QA(R,$,s)}let L=(J,$,q,ee)=>{let W=(x||!(ee.features&32))&&RN(J,$,q,ee)||gK(J,$,q,ee,R&&R.contents.packageJsonContent,R&&kB(R,ee));return!W&&R&&(R.contents.packageJsonContent.exports===void 0||R.contents.packageJsonContent.exports===null)&&ee.features&32&&(W=RN(J,ii($,"index.js"),q,ee)),QA(R,W,ee)};if(x!==""&&(R=I??DT(D,!i,s)),R&&(s.resolvedPackageDirectory=!0),R&&R.contents.packageJsonContent.exports&&s.features&8)return(d=hK(R,e,ii(".",x),s,a,u))==null?void 0:d.value;let F=x!==""&&R?kB(R,s):void 0;if(F){s.traceEnabled&&ms(s.host,v.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,F.version,se,x);let J=i&&tg(D,s.host),$=Tge(e,x,D,F.paths,void 0,L,!J,s);if($)return $.value}return L(e,S,!i,s)}function Tge(e,t,n,i,s,a,u,m){s||(s=mj(i));let d=M$(s,t);if(d){let S=bs(d)?void 0:Zce(d,t),E=bs(d)?d:Qce(d);return m.traceEnabled&&ms(m.host,v.Module_name_0_matched_pattern_1,t,E),{value:Et(i[E],D=>{let I=S?kA(D,S):D,R=eo(ii(n,I));m.traceEnabled&&ms(m.host,v.Trying_substitution_0_candidate_module_location_Colon_1,D,I);let L=b0(D);if(L!==void 0){let F=dK(R,u,m);if(F!==void 0)return oK({path:F,ext:L,resolvedUsingTsExtension:void 0})}return a(e,R,u||!tg(yi(R),m.host),m)})}}}var bge="__";function bRe(e,t){let n=MN(e);return t.traceEnabled&&n!==e&&ms(t.host,v.Scoped_package_detected_looking_in_0,n),n}function DB(e){return`@types/${MN(e)}`}function MN(e){if(fs(e,"@")){let t=e.replace(bc,bge);if(t!==e)return t.slice(1)}return e}function GO(e){let t=HI(e,"@types/");return t!==e?UM(t):e}function UM(e){return e.includes(bge)?"@"+e.replace(bge,bc):e}function ERe(e,t,n,i,s,a){let u=e&&e.getFromNonRelativeNameCache(t,n,i,s);if(u)return a.traceEnabled&&ms(a.host,v.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),a.resultFromCache=u,{value:u.resolvedModule&&{path:u.resolvedModule.resolvedFileName,originalPath:u.resolvedModule.originalPath||!0,extension:u.resolvedModule.extension,packageId:u.resolvedModule.packageId,resolvedUsingTsExtension:u.resolvedModule.resolvedUsingTsExtension}}}function Ege(e,t,n,i,s,a){let u=N0(n,i),m=[],d=[],S=yi(t),E=[],x={compilerOptions:n,host:i,traceEnabled:u,failedLookupLocations:m,affectingLocations:d,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:S,reportDiagnostic:R=>void E.push(R),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},D=I(5)||I(2|(n.resolveJsonModule?8:0));return eRe(e,D&&D.value,D?.value&&NT(D.value.path),m,d,E,x,s);function I(R){let L=aRe(R,e,S,vge,x);if(L)return{value:L};if(Su(e)){let F=eo(ii(S,e));return Xp(vge(R,F,!1,x))}else{let F=Am(S,J=>{let $=ERe(s,e,void 0,J,a,x);if($)return $;let q=eo(ii(J,e));return Xp(vge(R,q,!1,x))});if(F)return F;if(R&5){let J=fbt(e,S,x);return R&4&&(J??(J=xRe(e,x))),J}}}}function xRe(e,t){if(t.compilerOptions.typeRoots)for(let n of t.compilerOptions.typeRoots){let i=nRe(n,e,t),s=tg(n,t.host);!s&&t.traceEnabled&&ms(t.host,v.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);let a=RN(4,i,!s,t);if(a){let m=jM(a.path),d=m?DT(m,!1,t):void 0;return Xp(QA(d,a,t))}let u=Sge(4,i,!s,t);if(u)return Xp(u)}}function LN(e,t){return!!e.allowImportingTsExtensions||t&&ju(t)}function xge(e,t,n,i,s,a){let u=N0(n,i);u&&ms(i,v.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);let m=[],d=[],S=[],E={compilerOptions:n,host:i,traceEnabled:u,failedLookupLocations:m,affectingLocations:d,packageJsonInfoCache:a,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:D=>void S.push(D),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},x=SRe(4,e,s,E,!1,void 0,void 0);return tRe(x,!0,m,d,S,E.resultFromCache,void 0)}function Xp(e){return e!==void 0?{value:e}:void 0}function oS(e,t,...n){e.traceEnabled&&ms(e.host,t,...n)}function vK(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Cge=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(Cge||{});function D0(e,t){return e.body&&!e.body.parent&&(fa(e.body,e),E0(e.body,!1)),e.body?Age(e.body,t):1}function Age(e,t=new Map){let n=Sa(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);let i=pbt(e,t);return t.set(n,i),i}function pbt(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(Kb(e))return 2;break;case 272:case 271:if(!_i(e,32))return 0;break;case 278:let n=e;if(!n.moduleSpecifier&&n.exportClause&&n.exportClause.kind===279){let i=0;for(let s of n.exportClause.elements){let a=dbt(s,t);if(a>i&&(i=a),i===1)return i}return i}break;case 268:{let i=0;return qs(e,s=>{let a=Age(s,t);switch(a){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:M.assertNever(a)}}),i}case 267:return D0(e,t);case 80:if(e.flags&4096)return 0}return 1}function dbt(e,t){let n=e.propertyName||e.name,i=e.parent;for(;i;){if(Js(i)||Gg(i)||qi(i)){let s=i.statements,a;for(let u of s)if(L3(u,n)){u.parent||(fa(u,i),E0(u,!1));let m=Age(u,t);if((a===void 0||m>a)&&(a=m),a===1)return a;u.kind===271&&(a=1)}if(a!==void 0)return a}i=i.parent}return 1}var kge=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(kge||{});function zh(e,t,n){return M.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var mbt=gbt();function Pge(e,t){var n,i;jc("beforeBind"),(n=sf)==null||n.logStartBindFile(""+e.fileName),mbt(e,t),(i=sf)==null||i.logStopBindFile(),jc("afterBind"),Sd("Bind","beforeBind","afterBind")}function gbt(){var e,t,n,i,s,a,u,m,d,S,E,x,D,I,R,L,F,J,$,q,ee,W,pe,K,re=!1,ue=0,ce,ne,le=zh(1,void 0,void 0),me=zh(1,void 0,void 0),de=bt();return xe;function Ae(G,Fe,...Bt){return bd(Jr(G)||e,G,Fe,...Bt)}function xe(G,Fe){var Bt,Zr;e=G,t=Fe,n=Qo(t),K=te(e,Fe),ne=new Set,ue=0,ce=Yu.getSymbolConstructor(),M.attachFlowNodeDebugInfo(le),M.attachFlowNodeDebugInfo(me),e.locals||((Bt=kn)==null||Bt.push(kn.Phase.Bind,"bindSourceFile",{path:e.path},!0),mr(e),(Zr=kn)==null||Zr.pop(),e.symbolCount=ue,e.classifiableNames=ne,xu(),Ac()),e=void 0,t=void 0,n=void 0,i=void 0,s=void 0,a=void 0,u=void 0,m=void 0,d=void 0,E=void 0,S=!1,x=void 0,D=void 0,I=void 0,R=void 0,L=void 0,F=void 0,J=void 0,q=void 0,ee=!1,W=!1,re=!1,pe=0}function te(G,Fe){return q_(Fe,"alwaysStrict")&&!G.isDeclarationFile?!0:!!G.externalModuleIndicator}function he(G,Fe){return ue++,new ce(G,Fe)}function Te(G,Fe,Bt){G.flags|=Bt,Fe.symbol=G,G.declarations=Ga(G.declarations,Fe),Bt&1955&&!G.exports&&(G.exports=po()),Bt&6240&&!G.members&&(G.members=po()),G.constEnumOnlyModule&&G.flags&304&&(G.constEnumOnlyModule=!1),Bt&111551&&CR(G,Fe)}function Ve(G){if(G.kind===277)return G.isExportEquals?"export=":"default";let Fe=Ns(G);if(Fe){if(U_(G)){let Bt=Zd(Fe);return Og(G)?"__global":`"${Bt}"`}if(Fe.kind===167){let Bt=Fe.expression;if(Wp(Bt))return Uc(Bt.text);if(P9(Bt))return bo(Bt.operator)+Bt.operand.text;M.fail("Only computed properties with literal names have declaration names")}if(es(Fe)){let Bt=Lu(G);if(!Bt)return;let Zr=Bt.symbol;return MR(Zr,Fe.escapedText)}return ig(Fe)?CA(Fe):Fg(Fe)?Uw(Fe):void 0}switch(G.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if(ll(G)===2)return"export=";M.fail("Unknown binary declaration kind");break;case 317:return QP(G)?"__new":"__call";case 169:return M.assert(G.parent.kind===317,"Impossible parameter parent kind",()=>`parent is: ${M.formatSyntaxKind(G.parent.kind)}, expected JSDocFunctionType`),"arg"+G.parent.parameters.indexOf(G)}}function Pe(G){return Hu(G)?Ya(G.name):Zi(M.checkDefined(Ve(G)))}function ke(G,Fe,Bt,Zr,Fi,Vs,Ts){M.assert(Ts||!y0(Bt));let Ws=_i(Bt,2048)||E_(Bt)&&Bt.name.escapedText==="default",Ta=Ts?"__computed":Ws&&Fe?"default":Ve(Bt),Ho;if(Ta===void 0)Ho=he(0,"__missing");else if(Ho=G.get(Ta),Zr&2885600&&ne.add(Ta),!Ho)G.set(Ta,Ho=he(0,Ta)),Vs&&(Ho.isReplaceableByMethod=!0);else{if(Vs&&!Ho.isReplaceableByMethod)return Ho;if(Ho.flags&Fi){if(Ho.isReplaceableByMethod)G.set(Ta,Ho=he(0,Ta));else if(!(Zr&3&&Ho.flags&67108864)){Hu(Bt)&&fa(Bt.name,Bt);let qc=Ho.flags&2?v.Cannot_redeclare_block_scoped_variable_0:v.Duplicate_identifier_0,Od=!0;(Ho.flags&384||Zr&384)&&(qc=v.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Od=!1);let Om=!1;kt(Ho.declarations)&&(Ws||Ho.declarations&&Ho.declarations.length&&Bt.kind===277&&!Bt.isExportEquals)&&(qc=v.A_module_cannot_have_multiple_default_exports,Od=!1,Om=!0);let Kh=[];sm(Bt)&&Gc(Bt.type)&&_i(Bt,32)&&Ho.flags&2887656&&Kh.push(Ae(Bt,v.Did_you_mean_0,`export type { ${Zi(Bt.name.escapedText)} }`));let Uy=Ns(Bt)||Bt;Et(Ho.declarations,(Vy,Rd)=>{let cd=Ns(Vy)||Vy,qa=Od?Ae(cd,qc,Pe(Vy)):Ae(cd,qc);e.bindDiagnostics.push(Om?lo(qa,Ae(Uy,Rd===0?v.Another_export_default_is_here:v.and_here)):qa),Om&&Kh.push(Ae(cd,v.The_first_export_default_is_here))});let Hv=Od?Ae(Uy,qc,Pe(Bt)):Ae(Uy,qc);e.bindDiagnostics.push(lo(Hv,...Kh)),Ho=he(0,Ta)}}}return Te(Ho,Bt,Zr),Ho.parent?M.assert(Ho.parent===Fe,"Existing symbol parent should match new one"):Ho.parent=Fe,Ho}function De(G,Fe,Bt){let Zr=!!(eT(G)&32)||Be(G);if(Fe&2097152)return G.kind===281||G.kind===271&&Zr?ke(s.symbol.exports,s.symbol,G,Fe,Bt):(M.assertNode(s,Mh),ke(s.locals,void 0,G,Fe,Bt));if(Qd(G)&&M.assert(vn(G)),!U_(G)&&(Zr||s.flags&128)){if(!Mh(s)||!s.locals||_i(G,2048)&&!Ve(G))return ke(s.symbol.exports,s.symbol,G,Fe,Bt);let Fi=Fe&111551?1048576:0,Vs=ke(s.locals,void 0,G,Fi,Bt);return Vs.exportSymbol=ke(s.symbol.exports,s.symbol,G,Fe,Bt),G.localSymbol=Vs,Vs}else return M.assertNode(s,Mh),ke(s.locals,void 0,G,Fe,Bt)}function Be(G){if(G.parent&&xl(G)&&(G=G.parent),!Qd(G))return!1;if(!vM(G)&&G.fullName)return!0;let Fe=Ns(G);return Fe?!!(WR(Fe.parent)&&wd(Fe.parent)||f_(Fe.parent)&&eT(Fe.parent)&32):!1}function lt(G,Fe){let Bt=s,Zr=a,Fi=u;if(Fe&1?(G.kind!==219&&(a=s),s=u=G,Fe&32&&(s.locals=po(),Xn(s))):Fe&2&&(u=G,Fe&32&&(u.locals=void 0)),Fe&4){let Vs=x,Ts=D,Ws=I,Ta=R,Ho=J,qc=q,Od=ee,Om=Fe&16&&!_i(G,1024)&&!G.asteriskToken&&!!Qb(G)||G.kind===175;Om||(x=zh(2,void 0,void 0),Fe&144&&(x.node=G)),R=Om||G.kind===176||vn(G)&&(G.kind===262||G.kind===218)?fr():void 0,J=void 0,D=void 0,I=void 0,q=void 0,ee=!1,ft(G),G.flags&=-5633,!(x.flags&1)&&Fe&8&&Kd(G.body)&&(G.flags|=512,ee&&(G.flags|=1024),G.endFlowNode=x),G.kind===307&&(G.flags|=pe,G.endFlowNode=x),R&&(br(R,x),x=$r(R),(G.kind===176||G.kind===175||vn(G)&&(G.kind===262||G.kind===218))&&(G.returnFlowNode=x)),Om||(x=Vs),D=Ts,I=Ws,R=Ta,J=Ho,q=qc,ee=Od}else Fe&64?(S=!1,ft(G),M.assertNotNode(G,$e),G.flags=S?G.flags|256:G.flags&-257):ft(G);s=Bt,a=Zr,u=Fi}function ze(G){tt(G,Fe=>Fe.kind===262?mr(Fe):void 0),tt(G,Fe=>Fe.kind!==262?mr(Fe):void 0)}function tt(G,Fe=mr){G!==void 0&&Et(G,Fe)}function we(G){qs(G,mr,tt)}function ft(G){let Fe=re;if(re=!1,bi(G)){we(G),zn(G),re=Fe;return}switch(G.kind>=243&&G.kind<=259&&(!t.allowUnreachableCode||G.kind===253)&&(G.flowNode=x),G.kind){case 247:uo(G);break;case 246:Ys(G);break;case 248:Sr(G);break;case 249:case 250:ia(G);break;case 245:ut(G);break;case 253:case 257:Tt(G);break;case 252:case 251:Ce(G);break;case 258:it(G);break;case 255:Me(G);break;case 269:rt(G);break;case 296:pt(G);break;case 244:nr(G);break;case 256:Nt(G);break;case 224:sr(G);break;case 225:Z(G);break;case 226:if(Iv(G)){re=Fe,Ye(G);return}de(G);break;case 220:Q(G);break;case 227:Xe(G);break;case 260:Ue(G);break;case 211:case 212:Xi(G);break;case 213:us(G);break;case 235:Rn(G);break;case 346:case 338:case 340:Ht(G);break;case 351:gr(G);break;case 307:{ze(G.statements),mr(G.endOfFileToken);break}case 241:case 268:ze(G.statements);break;case 208:be(G);break;case 169:Re(G);break;case 210:case 209:case 303:case 230:re=Fe;default:we(G);break}zn(G),re=Fe}function gt(G){switch(G.kind){case 80:case 110:return!0;case 211:case 212:return yt(G);case 213:return ir(G);case 217:if(m2(G))return!1;case 235:return gt(G.expression);case 226:return Ar(G);case 224:return G.operator===54&>(G.operand);case 221:return gt(G.expression)}return!1}function Qe(G){switch(G.kind){case 80:case 110:case 108:case 236:return!0;case 211:case 217:case 235:return Qe(G.expression);case 212:return(Wp(G.argumentExpression)||nc(G.argumentExpression))&&Qe(G.expression);case 226:return G.operatorToken.kind===28&&Qe(G.right)||v0(G.operatorToken.kind)&&Af(G.left)}return!1}function yt(G){return Qe(G)||b_(G)&&yt(G.expression)}function ir(G){if(G.arguments){for(let Fe of G.arguments)if(yt(Fe))return!0}return!!(G.expression.kind===211&&yt(G.expression.expression))}function Tr(G,Fe){return SN(G)&&Vr(G.expression)&&Ia(Fe)}function Ar(G){switch(G.operatorToken.kind){case 64:case 76:case 77:case 78:return yt(G.left);case 35:case 36:case 37:case 38:return Vr(G.left)||Vr(G.right)||Tr(G.right,G.left)||Tr(G.left,G.right)||vw(G.right)&>(G.left)||vw(G.left)&>(G.right);case 104:return Vr(G.left);case 103:return gt(G.right);case 28:return gt(G.right)}return!1}function Vr(G){switch(G.kind){case 217:return Vr(G.expression);case 226:switch(G.operatorToken.kind){case 64:return Vr(G.left);case 28:return Vr(G.right)}}return yt(G)}function fr(){return zh(4,void 0,void 0)}function ur(){return zh(8,void 0,void 0)}function tn(G,Fe,Bt){return zh(1024,{target:G,antecedents:Fe},Bt)}function Mi(G){G.flags|=G.flags&2048?4096:2048}function br(G,Fe){!(Fe.flags&1)&&!xs(G.antecedent,Fe)&&((G.antecedent||(G.antecedent=[])).push(Fe),Mi(Fe))}function Di(G,Fe,Bt){return Fe.flags&1?Fe:Bt?(Bt.kind===112&&G&64||Bt.kind===97&&G&32)&&!R5(Bt)&&!qG(Bt.parent)?le:gt(Bt)?(Mi(Fe),zh(G,Bt,Fe)):Fe:G&32?Fe:le}function As(G,Fe,Bt,Zr){return Mi(G),zh(128,{switchStatement:Fe,clauseStart:Bt,clauseEnd:Zr},G)}function os(G,Fe,Bt){Mi(Fe),W=!0;let Zr=zh(G,Bt,Fe);return J&&br(J,Zr),Zr}function Ri(G,Fe){return Mi(G),W=!0,zh(512,Fe,G)}function $r(G){let Fe=G.antecedent;return Fe?Fe.length===1?Fe[0]:G:le}function Qs(G){let Fe=G.parent;switch(Fe.kind){case 245:case 247:case 246:return Fe.expression===G;case 248:case 227:return Fe.condition===G}return!1}function He(G){for(;;)if(G.kind===217)G=G.expression;else if(G.kind===224&&G.operator===54)G=G.operand;else return qR(G)}function Xt(G){return a$(ba(G))}function qr(G){for(;ff(G.parent)||tS(G.parent)&&G.parent.operator===54;)G=G.parent;return!Qs(G)&&!He(G.parent)&&!(b_(G.parent)&&G.parent.expression===G)}function Pn(G,Fe,Bt,Zr){let Fi=L,Vs=F;L=Bt,F=Zr,G(Fe),L=Fi,F=Vs}function Ti(G,Fe,Bt){Pn(mr,G,Fe,Bt),(!G||!Xt(G)&&!He(G)&&!(b_(G)&&pw(G)))&&(br(Fe,Di(32,x,G)),br(Bt,Di(64,x,G)))}function ki(G,Fe,Bt){let Zr=D,Fi=I;D=Fe,I=Bt,mr(G),D=Zr,I=Fi}function Vi(G,Fe){let Bt=q;for(;Bt&&G.parent.kind===256;)Bt.continueTarget=Fe,Bt=Bt.next,G=G.parent;return Fe}function uo(G){let Fe=Vi(G,ur()),Bt=fr(),Zr=fr();br(Fe,x),x=Fe,Ti(G.expression,Bt,Zr),x=$r(Bt),ki(G.statement,Zr,Fe),br(Fe,x),x=$r(Zr)}function Ys(G){let Fe=ur(),Bt=Vi(G,fr()),Zr=fr();br(Fe,x),x=Fe,ki(G.statement,Zr,Bt),br(Bt,x),x=$r(Bt),Ti(G.expression,Fe,Zr),x=$r(Zr)}function Sr(G){let Fe=Vi(G,ur()),Bt=fr(),Zr=fr();mr(G.initializer),br(Fe,x),x=Fe,Ti(G.condition,Bt,Zr),x=$r(Bt),ki(G.statement,Zr,Fe),mr(G.incrementor),br(Fe,x),x=$r(Zr)}function ia(G){let Fe=Vi(G,ur()),Bt=fr();mr(G.expression),br(Fe,x),x=Fe,G.kind===250&&mr(G.awaitModifier),br(Bt,x),mr(G.initializer),G.initializer.kind!==261&&Vt(G.initializer),ki(G.statement,Bt,Fe),br(Fe,x),x=$r(Bt)}function ut(G){let Fe=fr(),Bt=fr(),Zr=fr();Ti(G.expression,Fe,Bt),x=$r(Fe),mr(G.thenStatement),br(Zr,x),x=$r(Bt),mr(G.elseStatement),br(Zr,x),x=$r(Zr)}function Tt(G){mr(G.expression),G.kind===253&&(ee=!0,R&&br(R,x)),x=le,W=!0}function fe(G){for(let Fe=q;Fe;Fe=Fe.next)if(Fe.name===G)return Fe}function St(G,Fe,Bt){let Zr=G.kind===252?Fe:Bt;Zr&&(br(Zr,x),x=le,W=!0)}function Ce(G){if(mr(G.label),G.label){let Fe=fe(G.label.escapedText);Fe&&(Fe.referenced=!0,St(G,Fe.breakTarget,Fe.continueTarget))}else St(G,D,I)}function it(G){let Fe=R,Bt=J,Zr=fr(),Fi=fr(),Vs=fr();if(G.finallyBlock&&(R=Fi),br(Vs,x),J=Vs,mr(G.tryBlock),br(Zr,x),G.catchClause&&(x=$r(Vs),Vs=fr(),br(Vs,x),J=Vs,mr(G.catchClause),br(Zr,x)),R=Fe,J=Bt,G.finallyBlock){let Ts=fr();Ts.antecedent=ds(ds(Zr.antecedent,Vs.antecedent),Fi.antecedent),x=Ts,mr(G.finallyBlock),x.flags&1?x=le:(R&&Fi.antecedent&&br(R,tn(Ts,Fi.antecedent,x)),J&&Vs.antecedent&&br(J,tn(Ts,Vs.antecedent,x)),x=Zr.antecedent?tn(Ts,Zr.antecedent,x):le)}else x=$r(Zr)}function Me(G){let Fe=fr();mr(G.expression);let Bt=D,Zr=$;D=Fe,$=x,mr(G.caseBlock),br(Fe,x);let Fi=Et(G.caseBlock.clauses,Vs=>Vs.kind===297);G.possiblyExhaustive=!Fi&&!Fe.antecedent,Fi||br(Fe,As($,G,0,0)),D=Bt,$=Zr,x=$r(Fe)}function rt(G){let Fe=G.clauses,Bt=G.parent.expression.kind===112||gt(G.parent.expression),Zr=le;for(let Fi=0;FiCl(Bt)||pc(Bt))}function zs(G){G.flags&33554432&&!rr(G)?G.flags|=128:G.flags&=-129}function pa(G){if(zs(G),U_(G))if(_i(G,32)&&Ke(G,v.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),mH(G))Fa(G);else{let Fe;if(G.name.kind===11){let{text:Zr}=G.name;Fe=pN(Zr),Fe===void 0&&Ke(G.name,v.Pattern_0_can_have_at_most_one_Asterisk_character,Zr)}let Bt=hi(G,512,110735);e.patternAmbientModules=Ut(e.patternAmbientModules,Fe&&!bs(Fe)?{pattern:Fe,symbol:Bt}:void 0)}else{let Fe=Fa(G);if(Fe!==0){let{symbol:Bt}=G;Bt.constEnumOnlyModule=!(Bt.flags&304)&&Fe===2&&Bt.constEnumOnlyModule!==!1}}}function Fa(G){let Fe=D0(G),Bt=Fe!==0;return hi(G,Bt?512:1024,Bt?110735:0),Fe}function wa(G){let Fe=he(131072,Ve(G));Te(Fe,G,131072);let Bt=he(2048,"__type");Te(Bt,G,2048),Bt.members=po(),Bt.members.set(Fe.escapedName,Fe)}function gs(G){return rs(G,4096,"__object")}function oo(G){return rs(G,4096,"__jsxAttributes")}function vc(G,Fe,Bt){return hi(G,Fe,Bt)}function rs(G,Fe,Bt){let Zr=he(Fe,Bt);return Fe&106508&&(Zr.parent=s.symbol),Te(Zr,G,Fe),Zr}function Wi(G,Fe,Bt){switch(u.kind){case 267:De(G,Fe,Bt);break;case 307:if(Jf(s)){De(G,Fe,Bt);break}default:M.assertNode(u,Mh),u.locals||(u.locals=po(),Xn(u)),ke(u.locals,void 0,G,Fe,Bt)}}function xu(){if(!d)return;let G=s,Fe=m,Bt=u,Zr=i,Fi=x;for(let Vs of d){let Ts=Vs.parent.parent;s=n9(Ts)||e,u=Zm(Ts)||e,x=zh(2,void 0,void 0),i=Vs,mr(Vs.typeExpression);let Ws=Ns(Vs);if((vM(Vs)||!Vs.fullName)&&Ws&&WR(Ws.parent)){let Ta=wd(Ws.parent);if(Ta){sd(e.symbol,Ws.parent,Ta,!!Dr(Ws,qc=>Hn(qc)&&qc.name.escapedText==="prototype"),!1);let Ho=s;switch(ER(Ws.parent)){case 1:case 2:Jf(e)?s=e:s=void 0;break;case 4:s=Ws.parent.expression;break;case 3:s=Ws.parent.expression.name;break;case 5:s=EE(e,Ws.parent.expression)?e:Hn(Ws.parent.expression)?Ws.parent.expression.name:Ws.parent.expression;break;case 0:return M.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&De(Vs,524288,788968),s=Ho}}else vM(Vs)||!Vs.fullName||Vs.fullName.kind===80?(i=Vs.parent,Wi(Vs,524288,788968)):mr(Vs.fullName)}s=G,m=Fe,u=Bt,i=Zr,x=Fi}function Ac(){if(E===void 0)return;let G=s,Fe=m,Bt=u,Zr=i,Fi=x;for(let Vs of E){let Ts=tE(Vs),Ws=Ts?n9(Ts):void 0,Ta=Ts?Zm(Ts):void 0;s=Ws||e,u=Ta||e,x=zh(2,void 0,void 0),i=Vs,mr(Vs.importClause)}s=G,m=Fe,u=Bt,i=Zr,x=Fi}function D_(G){if(!e.parseDiagnostics.length&&!(G.flags&33554432)&&!(G.flags&16777216)&&!yfe(G)){let Fe=Jx(G);if(Fe===void 0)return;K&&Fe>=119&&Fe<=127?e.bindDiagnostics.push(Ae(G,el(G),Ya(G))):Fe===135?iu(e)&&p9(G)?e.bindDiagnostics.push(Ae(G,v.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Ya(G))):G.flags&65536&&e.bindDiagnostics.push(Ae(G,v.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ya(G))):Fe===127&&G.flags&16384&&e.bindDiagnostics.push(Ae(G,v.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Ya(G)))}}function el(G){return Lu(G)?v.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?v.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:v.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Zu(G){G.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(Ae(G,v.constructor_is_a_reserved_word,Ya(G))))}function Bo(G){K&&Af(G.left)&&v0(G.operatorToken.kind)&&pr(G,G.left)}function Sc(G){K&&G.variableDeclaration&&pr(G,G.variableDeclaration.name)}function ja(G){if(K&&G.expression.kind===80){let Fe=Yx(e,G.expression);e.bindDiagnostics.push(bu(e,Fe.start,Fe.length,v.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function ga(G){return $e(G)&&(G.escapedText==="eval"||G.escapedText==="arguments")}function pr(G,Fe){if(Fe&&Fe.kind===80){let Bt=Fe;if(ga(Bt)){let Zr=Yx(e,Fe);e.bindDiagnostics.push(bu(e,Zr.start,Zr.length,Jc(G),In(Bt)))}}}function Jc(G){return Lu(G)?v.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?v.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:v.Invalid_use_of_0_in_strict_mode}function W_(G){K&&!(G.flags&33554432)&&pr(G,G.name)}function G_(G){return Lu(G)?v.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?v.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:v.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}function Wf(G){if(n<2&&u.kind!==307&&u.kind!==267&&!FP(u)){let Fe=Yx(e,G);e.bindDiagnostics.push(bu(e,Fe.start,Fe.length,G_(G)))}}function dc(G){K&&pr(G,G.operand)}function tl(G){K&&(G.operator===46||G.operator===47)&&pr(G,G.operand)}function Se(G){K&&Ke(G,v.with_statements_are_not_allowed_in_strict_mode)}function oe(G){K&&Qo(t)>=2&&(p_e(G.statement)||fl(G.statement))&&Ke(G.label,v.A_label_is_not_allowed_here)}function Ke(G,Fe,...Bt){let Zr=jh(e,G.pos);e.bindDiagnostics.push(bu(e,Zr.start,Zr.length,Fe,...Bt))}function Rt(G,Fe,Bt){xr(G,Fe,Fe,Bt)}function xr(G,Fe,Bt,Zr){qn(G,{pos:aT(Fe,e),end:Bt.end},Zr)}function qn(G,Fe,Bt){let Zr=bu(e,Fe.pos,Fe.end-Fe.pos,Bt);G?e.bindDiagnostics.push(Zr):e.bindSuggestionDiagnostics=Ut(e.bindSuggestionDiagnostics,{...Zr,category:2})}function mr(G){if(!G)return;fa(G,i),kn&&(G.tracingPath=e.path);let Fe=K;if(Io(G),G.kind>165){let Bt=i;i=G;let Zr=SK(G);Zr===0?ft(G):lt(G,Zr),i=Bt}else{let Bt=i;G.kind===1&&(i=G),zn(G),i=Bt}K=Fe}function zn(G){if(Np(G))if(vn(G))for(let Fe of G.jsDoc)mr(Fe);else for(let Fe of G.jsDoc)fa(Fe,G),E0(Fe,!1)}function Li(G){if(!K)for(let Fe of G){if(!Rg(Fe))return;if(Pi(Fe)){K=!0;return}}}function Pi(G){let Fe=$b(e,G.expression);return Fe==='"use strict"'||Fe==="'use strict'"}function Io(G){switch(G.kind){case 80:if(G.flags&4096){let Ts=G.parent;for(;Ts&&!Qd(Ts);)Ts=Ts.parent;Wi(Ts,524288,788968);break}case 110:return x&&(Pt(G)||i.kind===304)&&(G.flowNode=x),D_(G);case 166:x&&h9(G)&&(G.flowNode=x);break;case 236:case 108:G.flowNode=x;break;case 81:return Zu(G);case 211:case 212:let Fe=G;x&&Qe(Fe)&&(Fe.flowNode=x),ufe(Fe)&&pl(Fe),vn(Fe)&&e.commonJsModuleIndicator&&ky(Fe)&&!IB(u,"module")&&ke(e.locals,void 0,Fe.expression,134217729,111550);break;case 226:switch(ll(G)){case 1:Je(G);break;case 2:zt(G);break;case 3:Ba(G.left,G);break;case 6:au(G);break;case 4:hs(G);break;case 5:let Ts=G.left.expression;if(vn(G)&&$e(Ts)){let Ws=IB(u,Ts.escapedText);if(d9(Ws?.valueDeclaration)){hs(G);break}}Hf(G);break;case 0:break;default:M.fail("Unknown binary expression special property assignment kind")}return Bo(G);case 299:return Sc(G);case 220:return ja(G);case 225:return dc(G);case 224:return tl(G);case 254:return Se(G);case 256:return oe(G);case 197:S=!0;return;case 182:break;case 168:return on(G);case 169:return ae(G);case 260:return ad(G);case 208:return G.flowNode=x,ad(G);case 172:case 171:return mc(G);case 303:case 304:return Zt(G,4,0);case 306:return Zt(G,8,900095);case 179:case 180:case 181:return hi(G,131072,0);case 174:case 173:return Zt(G,8192|(G.questionToken?16777216:0),Nm(G)?0:103359);case 262:return vt(G);case 176:return hi(G,16384,0);case 177:return Zt(G,32768,46015);case 178:return Zt(G,65536,78783);case 184:case 317:case 323:case 185:return wa(G);case 187:case 322:case 200:return Wl(G);case 332:return $t(G);case 210:return gs(G);case 218:case 219:return Kt(G);case 213:switch(ll(G)){case 7:return Al(G);case 8:return id(G);case 9:return Ja(G);case 0:break;default:return M.fail("Unknown call expression assignment declaration kind")}vn(G)&&Yh(G);break;case 231:case 263:return K=!0,$f(G);case 264:return Wi(G,64,788872);case 265:return Wi(G,524288,788968);case 266:return rh(G);case 267:return pa(G);case 292:return oo(G);case 291:return vc(G,4,0);case 271:case 274:case 276:case 281:return hi(G,2097152,2097152);case 270:return gu(G);case 273:return rl(G);case 278:return Gf(G);case 277:return gc(G);case 307:return Li(G.statements),Oc();case 241:if(!FP(G.parent))return;case 268:return Li(G.statements);case 341:if(G.parent.kind===323)return ae(G);if(G.parent.kind!==322)break;case 348:let Fi=G,Vs=Fi.isBracketed||Fi.typeExpression&&Fi.typeExpression.type.kind===316?16777220:4;return hi(Fi,Vs,0);case 346:case 338:case 340:return(d||(d=[])).push(G);case 339:return mr(G.typeExpression);case 351:return(E||(E=[])).push(G)}}function mc(G){let Fe=Cf(G),Bt=Fe?98304:4,Zr=Fe?13247:0;return Zt(G,Bt|(G.questionToken?16777216:0),Zr)}function Wl(G){return rs(G,2048,"__type")}function Oc(){if(zs(e),iu(e))mu();else if(Xd(e)){mu();let G=e.symbol;ke(e.symbol.exports,e.symbol,e,4,-1),e.symbol=G}}function mu(){rs(e,512,`"${lf(e.fileName)}"`)}function gc(G){if(!s.symbol||!s.symbol.exports)rs(G,111551,Ve(G));else{let Fe=eN(G)?2097152:4,Bt=ke(s.symbol.exports,s.symbol,G,Fe,-1);G.isExportEquals&&CR(Bt,G)}}function gu(G){Dt(G.modifiers)&&e.bindDiagnostics.push(Ae(G,v.Modifiers_cannot_appear_here));let Fe=qi(G.parent)?iu(G.parent)?G.parent.isDeclarationFile?void 0:v.Global_module_exports_may_only_appear_in_declaration_files:v.Global_module_exports_may_only_appear_in_module_files:v.Global_module_exports_may_only_appear_at_top_level;Fe?e.bindDiagnostics.push(Ae(G,Fe)):(e.symbol.globalExports=e.symbol.globalExports||po(),ke(e.symbol.globalExports,e.symbol,G,2097152,2097152))}function Gf(G){!s.symbol||!s.symbol.exports?rs(G,8388608,Ve(G)):G.exportClause?qh(G.exportClause)&&(fa(G.exportClause,G),ke(s.symbol.exports,s.symbol,G.exportClause,2097152,2097152)):ke(s.symbol.exports,s.symbol,G,8388608,0)}function rl(G){G.name&&hi(G,2097152,2097152)}function Gl(G){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=G,e.externalModuleIndicator||mu()),!0)}function id(G){if(!Gl(G))return;let Fe=Hl(G.arguments[0],void 0,(Bt,Zr)=>(Zr&&Te(Zr,Bt,67110400),Zr));Fe&&ke(Fe.exports,Fe,G,1048580,0)}function Je(G){if(!Gl(G))return;let Fe=Hl(G.left.expression,void 0,(Bt,Zr)=>(Zr&&Te(Zr,Bt,67110400),Zr));if(Fe){let Zr=OR(G.right)&&(Xx(G.left.expression)||ky(G.left.expression))?2097152:1048580;fa(G.left,G),ke(Fe.exports,Fe,G.left,Zr,0)}}function zt(G){if(!Gl(G))return;let Fe=SR(G.right);if(_$(Fe)||s===e&&EE(e,Fe))return;if(ko(Fe)&&Oi(Fe.properties,m_)){Et(Fe.properties,Kr);return}let Bt=eN(G)?2097152:1049092,Zr=ke(e.symbol.exports,e.symbol,G,Bt|67108864,0);CR(Zr,G)}function Kr(G){ke(e.symbol.exports,e.symbol,G,69206016,0)}function hs(G){if(M.assert(vn(G)),Dn(G)&&Hn(G.left)&&es(G.left.name)||Hn(G)&&es(G.name))return;let Bt=of(G,!1,!1);switch(Bt.kind){case 262:case 218:let Zr=Bt.symbol;if(Dn(Bt.parent)&&Bt.parent.operatorToken.kind===64){let Ts=Bt.parent.left;eE(Ts)&&G1(Ts.expression)&&(Zr=Mf(Ts.expression.expression,a))}Zr&&Zr.valueDeclaration&&(Zr.members=Zr.members||po(),y0(G)?ea(G,Zr,Zr.members):ke(Zr.members,Zr,G,67108868,0),Te(Zr,Zr.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Fi=Bt.parent,Vs=co(Bt)?Fi.symbol.exports:Fi.symbol.members;y0(G)?ea(G,Fi.symbol,Vs):ke(Vs,Fi.symbol,G,67108868,0,!0);break;case 307:if(y0(G))break;Bt.commonJsModuleIndicator?ke(Bt.symbol.exports,Bt.symbol,G,1048580,0):hi(G,1,111550);break;case 267:break;default:M.failBadSyntaxKind(Bt)}}function ea(G,Fe,Bt){ke(Bt,Fe,G,4,0,!0,!0),ca(G,Fe)}function ca(G,Fe){Fe&&(Fe.assignmentDeclarationMembers||(Fe.assignmentDeclarationMembers=new Map)).set(Sa(G),G)}function pl(G){G.expression.kind===110?hs(G):eE(G)&&G.parent.parent.kind===307&&(G1(G.expression)?Ba(G,G.parent):_g(G))}function au(G){fa(G.left,G),fa(G.right,G),od(G.left.expression,G.left,!1,!0)}function Ja(G){let Fe=Mf(G.arguments[0].expression);Fe&&Fe.valueDeclaration&&Te(Fe,Fe.valueDeclaration,32),Rf(G,Fe,!0)}function Ba(G,Fe){let Bt=G.expression,Zr=Bt.expression;fa(Zr,Bt),fa(Bt,G),fa(G,Fe),od(Zr,G,!0,!0)}function Al(G){let Fe=Mf(G.arguments[0]),Bt=G.parent.parent.kind===307;Fe=sd(Fe,G.arguments[0],Bt,!1,!1),Rf(G,Fe,!1)}function Hf(G){var Fe;let Bt=Mf(G.left.expression,u)||Mf(G.left.expression,s);if(!vn(G)&&!_fe(Bt))return;let Zr=uN(G.left);if(!($e(Zr)&&((Fe=IB(s,Zr.escapedText))==null?void 0:Fe.flags)&2097152))if(fa(G.left,G),fa(G.right,G),$e(G.left.expression)&&s===e&&EE(e,G.left.expression))Je(G);else if(y0(G)){rs(G,67108868,"__computed");let Fi=sd(Bt,G.left.expression,wd(G.left),!1,!1);ca(G,Fi)}else _g(ao(G.left,Zx))}function _g(G){M.assert(!$e(G)),fa(G.expression,G),od(G.expression,G,!1,!1)}function sd(G,Fe,Bt,Zr,Fi){return G?.flags&2097152||(Bt&&!Zr&&(G=Hl(Fe,G,(Ws,Ta,Ho)=>{if(Ta)return Te(Ta,Ws,67110400),Ta;{let qc=Ho?Ho.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=po());return ke(qc,Ho,Ws,67110400,110735)}})),Fi&&G&&G.valueDeclaration&&Te(G,G.valueDeclaration,32)),G}function Rf(G,Fe,Bt){if(!Fe||!Hh(Fe))return;let Zr=Bt?Fe.members||(Fe.members=po()):Fe.exports||(Fe.exports=po()),Fi=0,Vs=0;$a(sA(G))?(Fi=8192,Vs=103359):to(G)&&Qx(G)&&(Dt(G.arguments[2].properties,Ts=>{let Ws=Ns(Ts);return!!Ws&&$e(Ws)&&In(Ws)==="set"})&&(Fi|=65540,Vs|=78783),Dt(G.arguments[2].properties,Ts=>{let Ws=Ns(Ts);return!!Ws&&$e(Ws)&&In(Ws)==="get"})&&(Fi|=32772,Vs|=46015)),Fi===0&&(Fi=4,Vs=0),ke(Zr,Fe,G,Fi|67108864,Vs&-67108865)}function wd(G){return Dn(G.parent)?$h(G.parent).parent.kind===307:G.parent.parent.kind===307}function od(G,Fe,Bt,Zr){let Fi=Mf(G,u)||Mf(G,s),Vs=wd(Fe);Fi=sd(Fi,Fe.expression,Vs,Bt,Zr),Rf(Fe,Fi,Bt)}function Hh(G){if(G.flags&1072)return!0;let Fe=G.valueDeclaration;if(Fe&&to(Fe))return!!sA(Fe);let Bt=Fe?Ci(Fe)?Fe.initializer:Dn(Fe)?Fe.right:Hn(Fe)&&Dn(Fe.parent)?Fe.parent.right:void 0:void 0;if(Bt=Bt&&SR(Bt),Bt){let Zr=G1(Ci(Fe)?Fe.name:Dn(Fe)?Fe.left:Fe);return!!lT(Dn(Bt)&&(Bt.operatorToken.kind===57||Bt.operatorToken.kind===61)?Bt.right:Bt,Zr)}return!1}function $h(G){for(;Dn(G.parent);)G=G.parent;return G.parent}function Mf(G,Fe=s){if($e(G))return IB(Fe,G.escapedText);{let Bt=Mf(G.expression);return Bt&&Bt.exports&&Bt.exports.get(g0(G))}}function Hl(G,Fe,Bt){if(EE(e,G))return e.symbol;if($e(G))return Bt(G,Mf(G),Fe);{let Zr=Hl(G.expression,Fe,Bt),Fi=bR(G);return es(Fi)&&M.fail("unexpected PrivateIdentifier"),Bt(Fi,Zr&&Zr.exports&&Zr.exports.get(g0(G)),Zr)}}function Yh(G){!e.commonJsModuleIndicator&&Nf(G,!1)&&Gl(G)}function $f(G){if(G.kind===263)Wi(G,32,899503);else{let Fi=G.name?G.name.escapedText:"__class";rs(G,32,Fi),G.name&&ne.add(G.name.escapedText)}let{symbol:Fe}=G,Bt=he(4194308,"prototype"),Zr=Fe.exports.get(Bt.escapedName);Zr&&(G.name&&fa(G.name,G),e.bindDiagnostics.push(Ae(Zr.declarations[0],v.Duplicate_identifier_0,Qc(Bt)))),Fe.exports.set(Bt.escapedName,Bt),Bt.parent=Fe}function rh(G){return Kb(G)?Wi(G,128,899967):Wi(G,256,899327)}function ad(G){if(K&&pr(G,G.name),!$s(G.name)){let Fe=G.kind===260?G:G.parent.parent;vn(G)&&Zb(Fe)&&!tT(G)&&!(eT(G)&32)?hi(G,2097152,2097152):fH(G)?Wi(G,2,111551):dT(G)?hi(G,1,111551):hi(G,1,111550)}}function ae(G){if(!(G.kind===341&&s.kind!==323)&&(K&&!(G.flags&33554432)&&pr(G,G.name),$s(G.name)?rs(G,1,"__"+G.parent.parameters.indexOf(G)):hi(G,1,111551),cp(G,G.parent))){let Fe=G.parent.parent;ke(Fe.symbol.members,Fe.symbol,G,4|(G.questionToken?16777216:0),0)}}function vt(G){!e.isDeclarationFile&&!(G.flags&33554432)&&Bw(G)&&(pe|=4096),W_(G),K?(Wf(G),Wi(G,16,110991)):hi(G,16,110991)}function Kt(G){!e.isDeclarationFile&&!(G.flags&33554432)&&Bw(G)&&(pe|=4096),x&&(G.flowNode=x),W_(G);let Fe=G.name?G.name.escapedText:"__function";return rs(G,16,Fe)}function Zt(G,Fe,Bt){return!e.isDeclarationFile&&!(G.flags&33554432)&&Bw(G)&&(pe|=4096),x&&l9(G)&&(G.flowNode=x),y0(G)?rs(G,Fe,"__computed"):hi(G,Fe,Bt)}function Ur(G){let Fe=Dr(G,Bt=>Bt.parent&&dE(Bt.parent)&&Bt.parent.extendsType===Bt);return Fe&&Fe.parent}function on(G){if(om(G.parent)){let Fe=C9(G.parent);Fe?(M.assertNode(Fe,Mh),Fe.locals??(Fe.locals=po()),ke(Fe.locals,void 0,G,262144,526824)):hi(G,262144,526824)}else if(G.parent.kind===195){let Fe=Ur(G.parent);Fe?(M.assertNode(Fe,Mh),Fe.locals??(Fe.locals=po()),ke(Fe.locals,void 0,G,262144,526824)):rs(G,262144,Ve(G))}else hi(G,262144,526824)}function Yn(G){let Fe=D0(G);return Fe===1||Fe===2&&lE(t)}function bi(G){if(!(x.flags&1))return!1;if(x===le&&(K3(G)&&G.kind!==242||G.kind===263||G.kind===267&&Yn(G))&&(x=me,!t.allowUnreachableCode)){let Bt=upe(t)&&!(G.flags&33554432)&&(!fl(G)||!!(p0(G.declarationList)&7)||G.declarationList.declarations.some(Zr=>!!Zr.initializer));hbt(G,(Zr,Fi)=>xr(Bt,Zr,Fi,v.Unreachable_code_detected))}return!0}}function hbt(e,t){if(Ji(e)&&CRe(e)&&Js(e.parent)){let{statements:n}=e.parent,i=L$(n,e);zI(i,CRe,(s,a)=>t(i[s],i[a-1]))}else t(e,e)}function CRe(e){return!El(e)&&!ybt(e)&&!TT(e)&&!(fl(e)&&!(p0(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function ybt(e){switch(e.kind){case 264:case 265:return!0;case 267:return D0(e)!==1;case 266:return _i(e,4096);default:return!1}}function EE(e,t){let n=0,i=y3();for(i.enqueue(t);!i.isEmpty()&&n<100;){if(n++,t=i.dequeue(),Xx(t)||ky(t))return!0;if($e(t)){let s=IB(e,t.escapedText);if(s&&s.valueDeclaration&&Ci(s.valueDeclaration)&&s.valueDeclaration.initializer){let a=s.valueDeclaration.initializer;i.enqueue(a),Tu(a,!0)&&(i.enqueue(a.left),i.enqueue(a.right))}}}return!1}function SK(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(l9(e))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Us(e.parent)||$c(e.parent)?0:34}return 0}function IB(e,t){var n,i,s,a;let u=(i=(n=ci(e,Mh))==null?void 0:n.locals)==null?void 0:i.get(t);if(u)return u.exportSymbol??u;if(qi(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Qm(e))return(a=(s=e.symbol)==null?void 0:s.exports)==null?void 0:a.get(t)}function Nge(e,t,n,i,s,a,u,m,d,S){return E;function E(x=()=>!0){let D=[],I=[];return{walkType:ue=>{try{return R(ue),{visitedTypes:VC(D),visitedSymbols:VC(I)}}finally{$m(D),$m(I)}},walkSymbol:ue=>{try{return re(ue),{visitedTypes:VC(D),visitedSymbols:VC(I)}}finally{$m(D),$m(I)}}};function R(ue){if(!(!ue||D[ue.id]||(D[ue.id]=ue,re(ue.symbol)))){if(ue.flags&524288){let ne=ue,le=ne.objectFlags;le&4&&L(ue),le&32&&ee(ue),le&3&&pe(ue),le&24&&K(ne)}ue.flags&262144&&F(ue),ue.flags&3145728&&J(ue),ue.flags&4194304&&$(ue),ue.flags&8388608&&q(ue)}}function L(ue){R(ue.target),Et(S(ue),R)}function F(ue){R(m(ue))}function J(ue){Et(ue.types,R)}function $(ue){R(ue.type)}function q(ue){R(ue.objectType),R(ue.indexType),R(ue.constraint)}function ee(ue){R(ue.typeParameter),R(ue.constraintType),R(ue.templateType),R(ue.modifiersType)}function W(ue){let ce=t(ue);ce&&R(ce.type),Et(ue.typeParameters,R);for(let ne of ue.parameters)re(ne);R(e(ue)),R(n(ue))}function pe(ue){K(ue),Et(ue.typeParameters,R),Et(i(ue),R),R(ue.thisType)}function K(ue){let ce=s(ue);for(let ne of ce.indexInfos)R(ne.keyType),R(ne.type);for(let ne of ce.callSignatures)W(ne);for(let ne of ce.constructSignatures)W(ne);for(let ne of ce.properties)re(ne)}function re(ue){if(!ue)return!1;let ce=Po(ue);if(I[ce])return!1;if(I[ce]=ue,!x(ue))return!0;let ne=a(ue);return R(ne),ue.exports&&ue.exports.forEach(re),Et(ue.declarations,le=>{if(le.type&&le.type.kind===186){let me=le.type,de=u(d(me.exprName));re(de)}}),!1}}}var IT={};k(IT,{RelativePreference:()=>ARe,countPathComponents:()=>OB,forEachFileNameOfModule:()=>ORe,getLocalModuleSpecifierBetweenFileNames:()=>bbt,getModuleSpecifier:()=>kRe,getModuleSpecifierPreferences:()=>HO,getModuleSpecifiers:()=>DRe,getModuleSpecifiersWithCacheInfo:()=>IRe,getNodeModulesPackageName:()=>Sbt,tryGetJSExtensionForFile:()=>Rge,tryGetModuleSpecifiersFromCache:()=>Tbt,tryGetRealFileNameForNonJsDeclarationFileName:()=>jRe,updateModuleSpecifier:()=>vbt});var ARe=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(ARe||{});function HO({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,i,s){let a=u();return{relativePreference:s!==void 0?Su(s)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:m=>{let d=m!==i.impliedNodeFormat?u(m):a;if((m??i.impliedNodeFormat)===99)return LN(n,i.fileName)?[3,2]:[2];if(cf(n)===1)return d===2?[2,1]:[1,2];let S=LN(n,i.fileName);switch(d){case 2:return S?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return S?[1,0,3,2]:[1,0,2];case 0:return S?[0,1,3,2]:[0,1,2];default:M.assertNever(d)}}};function u(m){if(s!==void 0){if(wy(s))return 2;if(Wc(s,"/index"))return 1}return xpe(t,m??i.impliedNodeFormat,n,kv(i)?i:void 0)}}function vbt(e,t,n,i,s,a,u={}){let m=PRe(e,t,n,i,s,HO({},e,t,a),{},u);if(m!==a)return m}function kRe(e,t,n,i,s,a={}){return PRe(e,t,n,i,s,HO({},e,t),{},a)}function Sbt(e,t,n,i,s,a={}){let u=wB(t.fileName,i),m=RRe(u,n,i,s,e,a);return di(m,d=>wge(d,u,t,i,e,s,!0,a.overrideImportMode))}function PRe(e,t,n,i,s,a,u,m={}){let d=wB(n,s),S=RRe(d,i,s,u,e,m);return di(S,E=>wge(E,d,t,s,e,u,void 0,m.overrideImportMode))||Dge(i,d,e,s,m.overrideImportMode||t.impliedNodeFormat,a)}function Tbt(e,t,n,i,s={}){let a=NRe(e,t,n,i,s);return a[1]&&{kind:a[0],moduleSpecifiers:a[1],computedWithoutCache:!1}}function NRe(e,t,n,i,s={}){var a;let u=X5(e);if(!u)return ve;let m=(a=n.getModuleSpecifierCache)==null?void 0:a.call(n),d=m?.get(t.path,u.path,i,s);return[d?.kind,d?.moduleSpecifiers,u,d?.modulePaths,m]}function DRe(e,t,n,i,s,a,u={}){return IRe(e,t,n,i,s,a,u,!1).moduleSpecifiers}function IRe(e,t,n,i,s,a,u={},m){let d=!1,S=kbt(e,t);if(S)return{kind:"ambient",moduleSpecifiers:[S],computedWithoutCache:d};let[E,x,D,I,R]=NRe(e,i,s,a,u);if(x)return{kind:E,moduleSpecifiers:x,computedWithoutCache:d};if(!D)return{kind:void 0,moduleSpecifiers:ve,computedWithoutCache:d};d=!0,I||(I=MRe(wB(i.fileName,s),D.originalFileName,s,n,u));let L=Ebt(I,n,i,s,a,u,m);return R?.set(i.path,D.path,a,u,L.kind,I,L.moduleSpecifiers),L}function bbt(e,t,n,i,s={}){let a=wB(e.fileName,i),u=s.overrideImportMode??e.impliedNodeFormat;return Dge(t,a,n,i,u,HO({},n,e))}function Ebt(e,t,n,i,s,a={},u){let m=wB(n.fileName,i),d=HO(s,t,n),S=kv(n)&&Et(e,L=>Et(i.getFileIncludeReasons().get(rc(L.path,i.getCurrentDirectory(),m.getCanonicalFileName)),F=>{if(F.kind!==3||F.file!==n.path||n.impliedNodeFormat&&n.impliedNodeFormat!==$he(n,F.index,t))return;let J=n8(n,F.index).text;return d.relativePreference!==1||!zp(J)?J:void 0}));if(S)return{kind:void 0,moduleSpecifiers:[S],computedWithoutCache:!0};let E=Dt(e,L=>L.isInNodeModules),x,D,I,R;for(let L of e){let F=L.isInNodeModules?wge(L,m,n,i,t,s,void 0,a.overrideImportMode):void 0;if(x=Ut(x,F),F&&L.isRedirect)return{kind:"node_modules",moduleSpecifiers:x,computedWithoutCache:!0};if(!F){let J=Dge(L.path,m,t,i,a.overrideImportMode||n.impliedNodeFormat,d,L.isRedirect);if(!J)continue;L.isRedirect?I=Ut(I,J):EG(J)?NT(J)?R=Ut(R,J):D=Ut(D,J):(u||!E||L.isInNodeModules)&&(R=Ut(R,J))}}return D?.length?{kind:"paths",moduleSpecifiers:D,computedWithoutCache:!0}:I?.length?{kind:"redirect",moduleSpecifiers:I,computedWithoutCache:!0}:x?.length?{kind:"node_modules",moduleSpecifiers:x,computedWithoutCache:!0}:{kind:"relative",moduleSpecifiers:M.checkDefined(R),computedWithoutCache:!0}}function wB(e,t){e=Cs(e,t.getCurrentDirectory());let n=__(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=yi(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:n(i)}}function Dge(e,t,n,i,s,{getAllowedEndingsInPreferredOrder:a,relativePreference:u},m){let{baseUrl:d,paths:S,rootDirs:E}=n;if(m&&!S)return;let{sourceDirectory:x,canonicalSourceDirectory:D,getCanonicalFileName:I}=t,R=a(s),L=E&&Dbt(E,e,x,I,R,n)||VM(Vx(Km(x,e,I)),R,n);if(!d&&!S&&!C$(n)||u===0)return m?void 0:L;let F=Cs(R9(n,i)||d,i.getCurrentDirectory()),J=BRe(e,F,I);if(!J)return m?void 0:L;let $=m?void 0:Nbt(e,x,n,i,s),q=m||$===void 0?S&&LRe(J,S,R,i,n):void 0;if(m)return q;let ee=$??(q===void 0&&d!==void 0?VM(J,R,n):q);if(!ee)return L;if(u===1&&!zp(ee))return ee;if(u===3&&!zp(ee)){let W=n.configFilePath?rc(yi(n.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),pe=rc(e,W,I),K=fs(D,W),re=fs(pe,W);if(K&&!re||!K&&re)return ee;let ue=Ige(i,yi(pe)),ce=Ige(i,x),ne=!oN(i);return xbt(ue,ce,ne)?L:ee}return URe(ee)||OB(L)e.fileExists(ii(n,"package.json"))?n:void 0)}function ORe(e,t,n,i,s){var a;let u=Nv(n),m=n.getCurrentDirectory(),d=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,S=rc(t,m,u),E=n.redirectTargetsMap.get(S)||ve,D=[...d?[d]:ve,t,...E].map(J=>Cs(J,m)),I=!Oi(D,_O);if(!i){let J=Et(D,$=>!(I&&_O($))&&s($,d===$));if(J)return J}let R=(a=n.getSymlinkCache)==null?void 0:a.call(n).getSymlinkedDirectoriesByRealpath(),L=Cs(t,m);return R&&Am(yi(L),J=>{let $=R.get(vu(rc(J,m,u)));if($)return AG(e,J,u)?!1:Et(D,q=>{if(!AG(q,J,u))return;let ee=Km(J,q,u);for(let W of $){let pe=QS(W,ee),K=s(pe,q===d);if(I=!0,K)return K}})})||(i?Et(D,J=>I&&_O(J)?void 0:s(J,J===d)):void 0)}function RRe(e,t,n,i,s,a={}){var u;let m=rc(e.importingSourceFileName,n.getCurrentDirectory(),Nv(n)),d=rc(t,n.getCurrentDirectory(),Nv(n)),S=(u=n.getModuleSpecifierCache)==null?void 0:u.call(n);if(S){let x=S.get(m,d,i,a);if(x?.modulePaths)return x.modulePaths}let E=MRe(e,t,n,s,a);return S&&S.setModulePaths(m,d,i,a,E),E}var Cbt=["dependencies","peerDependencies","optionalDependencies"];function Abt(e){let t;for(let n of Cbt){let i=e[n];i&&typeof i=="object"&&(t=ds(t,Pg(i)))}return t}function MRe(e,t,n,i,s){var a,u;let m=(a=n.getModuleResolutionCache)==null?void 0:a.call(n),d=(u=n.getSymlinkCache)==null?void 0:u.call(n);if(m&&d&&n.readFile&&!NT(e.importingSourceFileName)){M.type(n);let D=zO(m.getPackageJsonInfoCache(),n,{}),I=WO(e.importingSourceFileName,D);if(I){let R=Abt(I.contents.packageJsonContent);for(let L of R||ve){let F=ZA(L,ii(I.packageDirectory,"package.json"),i,n,m,void 0,s.overrideImportMode);d.setSymlinksFromResolution(F.resolvedModule)}}}let S=new Map,E=!1;ORe(e.importingSourceFileName,t,n,!0,(D,I)=>{let R=NT(D);S.set(D,{path:e.getCanonicalFileName(D),isRedirect:I,isInNodeModules:R}),E=E||R});let x=[];for(let D=e.canonicalSourceDirectory;S.size!==0;){let I=vu(D),R;S.forEach(({path:F,isRedirect:J,isInNodeModules:$},q)=>{fs(F,I)&&((R||(R=[])).push({path:q,isRedirect:J,isInNodeModules:$}),S.delete(q))}),R&&(R.length>1&&R.sort(wRe),x.push(...R));let L=yi(D);if(L===D)break;D=L}if(S.size){let D=Os(S.entries(),([I,{isRedirect:R,isInNodeModules:L}])=>({path:I,isRedirect:R,isInNodeModules:L}));D.length>1&&D.sort(wRe),x.push(...D)}return x}function kbt(e,t){var n;let i=(n=e.declarations)==null?void 0:n.find(u=>dH(u)&&(!Yb(u)||!Su(Zd(u.name))));if(i)return i.name.text;let a=Yi(e.declarations,u=>{var m,d,S,E;if(!xl(u))return;let x=L(u);if(!((m=x?.parent)!=null&&m.parent&&Gg(x.parent)&&U_(x.parent.parent)&&qi(x.parent.parent.parent)))return;let D=(E=(S=(d=x.parent.parent.symbol.exports)==null?void 0:d.get("export="))==null?void 0:S.valueDeclaration)==null?void 0:E.expression;if(!D)return;let I=t.getSymbolAtLocation(D);if(!I)return;if((I?.flags&2097152?t.getAliasedSymbol(I):I)===u.symbol)return x.parent.parent;function L(F){for(;F.flags&8;)F=F.parent;return F}})[0];if(a)return a.name.text}function LRe(e,t,n,i,s){for(let u in t)for(let m of t[u]){let d=eo(m),S=d.indexOf("*"),E=n.map(x=>({ending:x,value:VM(e,[x],s)}));if(b0(d)&&E.push({ending:void 0,value:e}),S!==-1){let x=d.substring(0,S),D=d.substring(S+1);for(let{ending:I,value:R}of E)if(R.length>=x.length+D.length&&fs(R,x)&&Wc(R,D)&&a({ending:I,value:R})){let L=R.substring(x.length,R.length-D.length);if(!zp(L))return kA(u,L)}}else if(Dt(E,x=>x.ending!==0&&d===x.value)||Dt(E,x=>x.ending===0&&d===x.value&&a(x)))return u}function a({ending:u,value:m}){return u!==0||m===VM(e,[u],s,i)}}function RB(e,t,n,i,s,a,u,m,d){if(typeof a=="string"){let S=!oN(t),E=()=>t.getCommonSourceDirectory(),x=d&&$K(n,e,S,E),D=d&&HK(n,e,S,E),I=Cs(ii(i,a),void 0),R=EA(n)?lf(n)+Rge(n,e):void 0;switch(m){case 0:if(R&&f0(R,I,S)===0||f0(n,I,S)===0||x&&f0(x,I,S)===0||D&&f0(D,I,S)===0)return{moduleFileToTry:s};break;case 1:if(R&&Cm(I,R,S)){let $=Km(I,R,!1);return{moduleFileToTry:Cs(ii(ii(s,a),$),void 0)}}if(Cm(I,n,S)){let $=Km(I,n,!1);return{moduleFileToTry:Cs(ii(ii(s,a),$),void 0)}}if(x&&Cm(I,x,S)){let $=Km(I,x,!1);return{moduleFileToTry:ii(s,$)}}if(D&&Cm(I,D,S)){let $=Km(I,D,!1);return{moduleFileToTry:ii(s,$)}}break;case 2:let L=I.indexOf("*"),F=I.slice(0,L),J=I.slice(L+1);if(R&&fs(R,F,S)&&Wc(R,J,S)){let $=R.slice(F.length,R.length-J.length);return{moduleFileToTry:kA(s,$)}}if(fs(n,F,S)&&Wc(n,J,S)){let $=n.slice(F.length,n.length-J.length);return{moduleFileToTry:kA(s,$)}}if(x&&fs(x,F,S)&&Wc(x,J,S)){let $=x.slice(F.length,x.length-J.length);return{moduleFileToTry:kA(s,$)}}if(D&&fs(D,F,S)&&Wc(D,J,S)){let $=D.slice(F.length,D.length-J.length);return{moduleFileToTry:kA(s,$)}}break}}else{if(Array.isArray(a))return Et(a,S=>RB(e,t,n,i,s,S,u,m,d));if(typeof a=="object"&&a!==null){for(let S of Pg(a))if(S==="default"||u.indexOf(S)>=0||BM(u,S)){let E=a[S],x=RB(e,t,n,i,s,E,u,m,d);if(x)return x}}}}function Pbt(e,t,n,i,s,a,u){return typeof a=="object"&&a!==null&&!Array.isArray(a)&&NB(a)?Et(Pg(a),m=>{let d=Cs(ii(s,m),void 0),S=Wc(m,"/")?1:m.includes("*")?2:0;return RB(e,t,n,i,d,a[m],u,S,!1)}):RB(e,t,n,i,s,a,u,0,!1)}function Nbt(e,t,n,i,s){var a,u,m;if(!i.readFile||!C$(n))return;let d=Ige(i,t);if(!d)return;let S=ii(d,"package.json"),E=(u=(a=i.getPackageJsonInfoCache)==null?void 0:a.call(i))==null?void 0:u.getPackageJsonInfo(S);if(fge(E)||!i.fileExists(S))return;let x=E?.contents.packageJsonContent||q9(i.readFile(S)),D=x?.imports;if(!D)return;let I=sS(n,s);return(m=Et(Pg(D),R=>{if(!fs(R,"#")||R==="#"||fs(R,"#/"))return;let L=Wc(R,"/")?1:R.includes("*")?2:0;return RB(n,i,e,d,R,D[R],I,L,!0)}))==null?void 0:m.moduleFileToTry}function Dbt(e,t,n,i,s,a){let u=FRe(t,e,i);if(u===void 0)return;let m=FRe(n,e,i),d=To(m,E=>kr(u,x=>Vx(Km(E,x,i)))),S=zW(d,ZR);if(S)return VM(S,s,a)}function wge({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:i},s,a,u,m,d,S){if(!a.fileExists||!a.readFile)return;let E=Tj(e);if(!E)return;let D=HO(m,u,s).getAllowedEndingsInPreferredOrder(),I=e,R=!1;if(!d){let ee=E.packageRootIndex,W;for(;;){let{moduleFileToTry:pe,packageRootPath:K,blockedByExports:re,verbatimFromExports:ue}=q(ee);if(cf(u)!==1){if(re)return;if(ue)return pe}if(K){I=K,R=!0;break}if(W||(W=pe),ee=e.indexOf(bc,ee+1),ee===-1){I=VM(W,D,u,a);break}}}if(t&&!R)return;let L=a.getGlobalTypingsCacheLocation&&a.getGlobalTypingsCacheLocation(),F=n(I.substring(0,E.topLevelNodeModulesIndex));if(!(fs(i,F)||L&&fs(n(L),F)))return;let J=I.substring(E.topLevelPackageNameIndex+1),$=GO(J);return cf(u)===1&&$===J?void 0:$;function q(ee){var W,pe;let K=e.substring(0,ee),re=ii(K,"package.json"),ue=e,ce=!1,ne=(pe=(W=a.getPackageJsonInfoCache)==null?void 0:W.call(a))==null?void 0:pe.getPackageJsonInfo(re);if(xB(ne)||ne===void 0&&a.fileExists(re)){let le=ne?.contents.packageJsonContent||q9(a.readFile(re)),me=S||s.impliedNodeFormat;if(x$(u)){let xe=K.substring(E.topLevelPackageNameIndex+1),te=GO(xe),he=sS(u,me),Te=le?.exports?Pbt(u,a,e,K,te,le.exports,he):void 0;if(Te)return{...Te,verbatimFromExports:!0};if(le?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let de=le?.typesVersions?bB(le.typesVersions):void 0;if(de){let xe=e.slice(K.length+1),te=LRe(xe,de.paths,D,a,u);te===void 0?ce=!0:ue=ii(K,te)}let Ae=le?.typings||le?.types||le?.main||"index.js";if(bs(Ae)&&!(ce&&M$(mj(de.paths),Ae))){let xe=rc(Ae,K,n),te=n(ue);if(lf(xe)===lf(te))return{packageRootPath:K,moduleFileToTry:ue};if(le?.type!=="module"&&!Il(te,dj)&&fs(te,xe)&&yi(te)===ZS(xe)&&lf(Ul(te))==="index")return{packageRootPath:K,moduleFileToTry:ue}}}else{let le=n(ue.substring(E.packageRootIndex+1));if(le==="index.d.ts"||le==="index.js"||le==="index.ts"||le==="index.tsx")return{moduleFileToTry:ue,packageRootPath:K}}return{moduleFileToTry:ue}}}function Ibt(e,t){if(!e.fileExists)return;let n=rf(iO({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of n){let s=t+i;if(e.fileExists(s))return s}}function FRe(e,t,n){return Yi(t,i=>{let s=BRe(e,i,n);return s!==void 0&&URe(s)?void 0:s})}function VM(e,t,n,i){if(Il(e,[".json",".mjs",".cjs"]))return e;let s=lf(e);if(e===s)return e;let a=t.indexOf(2),u=t.indexOf(3);if(Il(e,[".mts",".cts"])&&u!==-1&&uS===0||S===1);return d!==-1&&d(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(bK||{}),Lge=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),EK=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(EK||{}),xK=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(xK||{}),wbt=l5(GRe,Rbt),CK=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),WRe=class{};function Obt(){this.flags=0}function Sa(e){return e.id||(e.id=JRe,JRe++),e.id}function Po(e){return e.id||(e.id=VRe,VRe++),e.id}function AK(e,t){let n=D0(e);return n===1||t&&n===2}function Fge(e){var t=[],n=r=>{t.push(r)},i,s,a=Yu.getSymbolConstructor(),u=Yu.getTypeConstructor(),m=Yu.getSignatureConstructor(),d=0,S=0,E=0,x=0,D=0,I=0,R,L,F=!1,J=po(),$=[1],q=e.getCompilerOptions(),ee=Qo(q),W=J_(q),pe=!!q.experimentalDecorators,K=XR(q),re=A$(q),ue=TA(q),ce=q_(q,"strictNullChecks"),ne=q_(q,"strictFunctionTypes"),le=q_(q,"strictBindCallApply"),me=q_(q,"strictPropertyInitialization"),de=q_(q,"noImplicitAny"),Ae=q_(q,"noImplicitThis"),xe=q_(q,"useUnknownInCatchVariables"),te=q.exactOptionalPropertyTypes,he=Mjt(),Te=dJt(),Ve=dJ(),Pe=$ye(q,{isEntityNameVisible:TS,isExpandoFunctionDeclaration:BKe,getAllAccessorDeclarations:jq,requiresAddingImplicitUndefined:Lne,isUndefinedIdentifierExpression(r){return M.assert(eg(r)),Sm(r)===Be},isDefinitelyReferenceToGlobalSymbolObject:xk}),ke=Upe({evaluateElementAccessExpression:nVt,evaluateEntityNameExpression:SKe}),De=po(),Be=ta(4,"undefined");Be.declarations=[];var lt=ta(1536,"globalThis",8);lt.exports=De,lt.declarations=[],De.set(lt.escapedName,lt);var ze=ta(4,"arguments"),tt=ta(4,"require"),we=q.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",ft=!q.verbatimModuleSyntax,gt,Qe,yt=0,ir,Tr=0,Ar=H$({compilerOptions:q,requireSymbol:tt,argumentsSymbol:ze,globals:De,getSymbolOfDeclaration:Un,error:Ze,getRequiresScopeChangeCache:kk,setRequiresScopeChangeCache:Qh,lookup:h_,onPropertyWithInvalidInitializer:r1,onFailedToResolveSymbol:U0,onSuccessfullyResolvedSymbol:yD}),Vr=H$({compilerOptions:q,requireSymbol:tt,argumentsSymbol:ze,globals:De,getSymbolOfDeclaration:Un,error:Ze,getRequiresScopeChangeCache:kk,setRequiresScopeChangeCache:Qh,lookup:r9t});let fr={getNodeCount:()=>F_(e.getSourceFiles(),(r,o)=>r+o.nodeCount,0),getIdentifierCount:()=>F_(e.getSourceFiles(),(r,o)=>r+o.identifierCount,0),getSymbolCount:()=>F_(e.getSourceFiles(),(r,o)=>r+o.symbolCount,S),getTypeCount:()=>d,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:Lf.size,identity:Yf.size,subtype:nh.size,strictSubtype:Md.size}),isUndefinedSymbol:r=>r===Be,isArgumentsSymbol:r=>r===ze,isUnknownSymbol:r=>r===Tt,getMergedSymbol:sa,symbolIsValue:Zh,getDiagnostics:kKe,getGlobalDiagnostics:kVt,getRecursionIdentity:Ere,getUnmatchedProperties:f2e,getTypeOfSymbolAtLocation:(r,o)=>{let _=Ps(o);return _?yFt(r,_):Oe},getTypeOfSymbol:yn,getSymbolsOfParameterPropertyDeclaration:(r,o)=>{let _=Ps(r,is);return _===void 0?M.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(M.assert(cp(_,_.parent)),hD(_,Uc(o)))},getDeclaredTypeOfSymbol:oc,getPropertiesOfType:Ea,getPropertyOfType:(r,o)=>ho(r,Uc(o)),getPrivateIdentifierPropertyOfType:(r,o,_)=>{let h=Ps(_);if(!h)return;let T=Uc(o),C=fq(T,h);return C?nne(r,C):void 0},getTypeOfPropertyOfType:(r,o)=>il(r,Uc(o)),getIndexInfoOfType:(r,o)=>Hy(r,o===0?Ue:be),getIndexInfosOfType:Q_,getIndexInfosOfIndexSymbol:axe,getSignaturesOfType:Ks,getIndexTypeOfType:(r,o)=>db(r,o===0?Ue:be),getIndexType:r=>ph(r),getBaseTypes:mi,getBaseTypeOfLiteralType:tv,getWidenedType:ep,getWidenedLiteralType:Sb,getTypeFromTypeNode:r=>{let o=Ps(r,wi);return o?Gi(o):Oe},getParameterType:Eg,getParameterIdentifierInfoAtPosition:K9t,getPromisedTypeOfPromise:c7,getAwaitedType:r=>_C(r),getReturnTypeOfSignature:Na,isNullableType:_q,getNullableType:HJ,getNonNullableType:rv,getNonOptionalType:kre,getTypeArguments:hc,typeToTypeNode:Ve.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Ve.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Ve.signatureToSignatureDeclaration,symbolToEntityName:Ve.symbolToEntityName,symbolToExpression:Ve.symbolToExpression,symbolToNode:Ve.symbolToNode,symbolToTypeParameterDeclarations:Ve.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Ve.symbolToParameterDeclaration,typeParameterToDeclaration:Ve.typeParameterToDeclaration,getSymbolsInScope:(r,o)=>{let _=Ps(r);return _?PVt(_,o):[]},getSymbolAtLocation:r=>{let o=Ps(r);return o?Sm(o,!0):void 0},getIndexInfosAtLocation:r=>{let o=Ps(r);return o?LVt(o):void 0},getShorthandAssignmentValueSymbol:r=>{let o=Ps(r);return o?FVt(o):void 0},getExportSpecifierLocalTargetSymbol:r=>{let o=Ps(r,E_);return o?jVt(o):void 0},getExportSymbolOfSymbol(r){return sa(r.exportSymbol||r)},getTypeAtLocation:r=>{let o=Ps(r);return o?rP(o):Oe},getTypeOfAssignmentPattern:r=>{let o=Ps(r,Sw);return o&&One(o)||Oe},getPropertySymbolOfDestructuringAssignment:r=>{let o=Ps(r,$e);return o?BVt(o):void 0},signatureToString:(r,o,_,h)=>bS(r,Ps(o),_,h),typeToString:(r,o,_)=>_n(r,Ps(o),_),symbolToString:(r,o,_,h)=>ns(r,Ps(o),_,h),typePredicateToString:(r,o,_)=>ey(r,Ps(o),_),writeSignature:(r,o,_,h,T)=>bS(r,Ps(o),_,h,T),writeType:(r,o,_,h)=>_n(r,Ps(o),_,h),writeSymbol:(r,o,_,h,T)=>ns(r,Ps(o),_,h,T),writeTypePredicate:(r,o,_,h)=>ey(r,Ps(o),_,h),getAugmentedPropertiesOfType:eAe,getRootSymbols:RKe,getSymbolOfExpando:lne,getContextualType:(r,o)=>{let _=Ps(r,Pt);if(_)return o&4?Mi(_,()=>vf(_,o)):vf(_,o)},getContextualTypeForObjectLiteralElement:r=>{let o=Ps(r,d0);return o?j2e(o,void 0):void 0},getContextualTypeForArgumentAtIndex:(r,o)=>{let _=Ps(r,Hb);return _&&F2e(_,o)},getContextualTypeForJsxAttribute:r=>{let o=Ps(r,V5);return o&&e$e(o,void 0)},isContextSensitive:Vd,getTypeOfPropertyOfContextualType:Eb,getFullyQualifiedName:lh,getResolvedSignature:(r,o,_)=>br(r,o,_,0),getCandidateSignaturesForStringLiteralCompletions:ur,getResolvedSignatureForSignatureHelp:(r,o,_)=>tn(r,()=>br(r,o,_,16)),getExpandedParameters:Gze,hasEffectiveRestParameter:ly,containsArgumentsReference:ixe,getConstantValue:r=>{let o=Ps(r,UKe);return o?rAe(o):void 0},isValidPropertyAccess:(r,o)=>{let _=Ps(r,s_e);return!!_&&s9t(_,Uc(o))},isValidPropertyAccessForCompletions:(r,o,_)=>{let h=Ps(r,Hn);return!!h&&D$e(h,o,_)},getSignatureFromDeclaration:r=>{let o=Ps(r,Us);return o?gd(o):void 0},isImplementationOfOverload:r=>{let o=Ps(r,Us);return o?jKe(o):void 0},getImmediateAliasedSymbol:Xre,getAliasedSymbol:ku,getEmitResolver:Zv,requiresAddingImplicitUndefined:Lne,getExportsOfModule:GE,getExportsAndPropertiesOfModule:Rk,forEachExportAndPropertyOfModule:B2,getSymbolWalker:Nge(LMt,Ud,Na,mi,vg,yn,yf,hf,pp,hc),getAmbientModules:nqt,getJsxIntrinsicTagNamesAt:B5t,isOptionalParameter:r=>{let o=Ps(r,is);return o?AJ(o):!1},tryGetMemberInModuleExports:(r,o)=>_d(Uc(r),o),tryGetMemberInModuleExportsAndProperties:(r,o)=>kD(Uc(r),o),tryFindAmbientModule:r=>rxe(r,!0),tryFindAmbientModuleWithoutAugmentations:r=>rxe(r,!1),getApparentType:X_,getUnionType:gi,isTypeAssignableTo:yo,createAnonymousType:tr,createSignature:Gy,createSymbol:ta,createIndexInfo:oy,getAnyType:()=>Me,getStringType:()=>Ue,getStringLiteralType:jf,getNumberType:()=>be,getNumberLiteralType:zm,getBigIntType:()=>Re,createPromiseType:Eq,createArrayType:y_,getElementTypeOfArrayType:GJ,getBooleanType:()=>Wr,getFalseType:r=>r?Ot:Ht,getTrueType:r=>r?$t:gr,getVoidType:()=>gn,getUndefinedType:()=>sr,getNullType:()=>Xe,getESSymbolType:()=>Yr,getNeverType:()=>Pr,getOptionalType:()=>Q,getPromiseType:()=>DJ(!1),getPromiseLikeType:()=>OWe(!1),getAsyncIterableType:()=>{let r=ire(!1);if(r!==Bo)return r},isSymbolAccessible:mg,isArrayType:qd,isTupleType:Yo,isArrayLikeType:h1,isEmptyAnonymousObjectType:cy,isTypeInvalidDueToUnionDiscriminant:hMt,getExactOptionalProperties:HLt,getAllPossiblePropertiesOfTypes:yMt,getSuggestedSymbolForNonexistentProperty:eCe,getSuggestedSymbolForNonexistentJSXAttribute:A$e,getSuggestedSymbolForNonexistentSymbol:(r,o,_)=>P$e(r,Uc(o),_),getSuggestedSymbolForNonexistentModule:tCe,getSuggestedSymbolForNonexistentClassMember:C$e,getBaseConstraintOfType:t_,getDefaultFromTypeParameter:r=>r&&r.flags&262144?H2(r):void 0,resolveName(r,o,_,h){return Ar(o,Uc(r),_,void 0,!1,h)},getJsxNamespace:r=>Zi(HT(r)),getJsxFragmentFactory:r=>{let o=iAe(r);return o&&Zi(pp(o).escapedText)},getAccessibleSymbolChain:ks,getTypePredicateOfSignature:Ud,resolveExternalModuleName:r=>{let o=Ps(r,Pt);return o&&Y_(o,o,!0)},resolveExternalModuleSymbol:Ff,tryGetThisTypeAt:(r,o,_)=>{let h=Ps(r);return h&&R2e(h,o,_)},getTypeArgumentConstraint:r=>{let o=Ps(r,wi);return o&&pBt(o)},getSuggestionDiagnostics:(r,o)=>{let _=Ps(r,qi)||M.fail("Could not determine parsed source file.");if(cO(_,q,e))return ve;let h;try{return i=o,XCe(_),M.assert(!!(Wn(_).flags&1)),h=On(h,N2.getDiagnostics(_.fileName)),WYe(AKe(_),(T,C,w)=>{!JP(T)&&!CKe(C,!!(T.flags&33554432))&&(h||(h=[])).push({...w,category:2})}),h||ve}finally{i=void 0}},runWithCancellationToken:(r,o)=>{try{return i=r,o(fr)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:u1,isDeclarationVisible:$0,isPropertyAccessible:nCe,getTypeOnlyAliasDeclaration:ch,getMemberOverrideModifierStatus:GUt,isTypeParameterPossiblyReferenced:FJ,typeHasCallOrConstructSignatures:Rne,getSymbolFlags:Kf};function ur(r,o){let _=new Set,h=[];Mi(o,()=>br(r,h,void 0,0));for(let T of h)_.add(T);h.length=0,tn(o,()=>br(r,h,void 0,0));for(let T of h)_.add(T);return Os(_)}function tn(r,o){if(r=Dr(r,QG),r){let _=[],h=[];for(;r;){let C=Wn(r);if(_.push([C,C.resolvedSignature]),C.resolvedSignature=void 0,K1(r)){let w=as(Un(r)),V=w.type;h.push([w,V]),w.type=void 0}r=Dr(r.parent,QG)}let T=o();for(let[C,w]of _)C.resolvedSignature=w;for(let[C,w]of h)C.type=w;return T}return o()}function Mi(r,o){let _=Dr(r,Hb);if(_){let T=r;do Wn(T).skipDirectInference=!0,T=T.parent;while(T&&T!==_)}F=!0;let h=tn(r,o);if(F=!1,_){let T=r;do Wn(T).skipDirectInference=void 0,T=T.parent;while(T&&T!==_)}return h}function br(r,o,_,h){let T=Ps(r,Hb);gt=_;let C=T?tI(T,o,h):void 0;return gt=void 0,C}var Di=new Map,As=new Map,os=new Map,Ri=new Map,$r=new Map,Qs=new Map,He=new Map,Xt=new Map,qr=new Map,Pn=new Map,Ti=new Map,ki=new Map,Vi=new Map,uo=new Map,Ys=new Map,Sr=[],ia=new Map,ut=new Set,Tt=ta(4,"unknown"),fe=ta(0,"__resolving__"),St=new Map,Ce=new Map,it=new Set,Me=Ll(1,"any"),rt=Ll(1,"any",262144,"auto"),pt=Ll(1,"any",void 0,"wildcard"),nr=Ll(1,"any",void 0,"blocked string"),Oe=Ll(1,"error"),Nt=Ll(1,"unresolved"),It=Ll(1,"any",65536,"non-inferrable"),Vt=Ll(1,"intrinsic"),Mt=Ll(2,"unknown"),sr=Ll(32768,"undefined"),Z=ce?sr:Ll(32768,"undefined",65536,"widening"),Ye=Ll(32768,"undefined",void 0,"missing"),bt=te?Ye:sr,Q=Ll(32768,"undefined",void 0,"optional"),Xe=Ll(65536,"null"),z=ce?Xe:Ll(65536,"null",65536,"widening"),Ue=Ll(4,"string"),be=Ll(8,"number"),Re=Ll(64,"bigint"),Ot=Ll(512,"false",void 0,"fresh"),Ht=Ll(512,"false"),$t=Ll(512,"true",void 0,"fresh"),gr=Ll(512,"true");$t.regularType=gr,$t.freshType=$t,gr.regularType=gr,gr.freshType=$t,Ot.regularType=Ht,Ot.freshType=Ot,Ht.regularType=Ht,Ht.freshType=Ot;var Wr=gi([Ht,gr]),Yr=Ll(4096,"symbol"),gn=Ll(16384,"void"),Pr=Ll(131072,"never"),Rn=Ll(131072,"never",262144,"silent"),Xi=Ll(131072,"never",void 0,"implicit"),us=Ll(131072,"never",void 0,"unreachable"),Xn=Ll(67108864,"object"),hi=gi([Ue,be]),Cr=gi([Ue,be,Yr]),nn=gi([be,Re]),rr=gi([Ue,be,Wr,Re,Xe,sr]),zs=Y2(["",""],[be]),pa=LJ(r=>r.flags&262144?vLt(r):r,()=>"(restrictive mapper)"),Fa=LJ(r=>r.flags&262144?pt:r,()=>"(permissive mapper)"),wa=Ll(131072,"never",void 0,"unique literal"),gs=LJ(r=>r.flags&262144?wa:r,()=>"(unique literal mapper)"),oo,vc=LJ(r=>(oo&&(r===Jc||r===W_||r===G_)&&oo(!0),r),()=>"(unmeasurable reporter)"),rs=LJ(r=>(oo&&(r===Jc||r===W_||r===G_)&&oo(!1),r),()=>"(unreliable reporter)"),Wi=tr(void 0,J,ve,ve,ve),xu=tr(void 0,J,ve,ve,ve);xu.objectFlags|=2048;var Ac=ta(2048,"__type");Ac.members=po();var D_=tr(Ac,J,ve,ve,ve),el=tr(void 0,J,ve,ve,ve),Zu=ce?gi([sr,Xe,el]):Mt,Bo=tr(void 0,J,ve,ve,ve);Bo.instantiations=new Map;var Sc=tr(void 0,J,ve,ve,ve);Sc.objectFlags|=262144;var ja=tr(void 0,J,ve,ve,ve),ga=tr(void 0,J,ve,ve,ve),pr=tr(void 0,J,ve,ve,ve),Jc=pd(),W_=pd();W_.constraint=Jc;var G_=pd(),Wf=pd(),dc=pd();dc.constraint=Wf;var tl=DL(1,"<>",0,Me),Se=Gy(void 0,void 0,void 0,ve,Me,void 0,0,0),oe=Gy(void 0,void 0,void 0,ve,Oe,void 0,0,0),Ke=Gy(void 0,void 0,void 0,ve,Me,void 0,0,0),Rt=Gy(void 0,void 0,void 0,ve,Rn,void 0,0,0),xr=oy(be,Ue,!0),qn=new Map,mr={get yieldType(){return M.fail("Not supported")},get returnType(){return M.fail("Not supported")},get nextType(){return M.fail("Not supported")}},zn=S1(Me,Me,Me),Li=S1(Me,Me,Mt),Pi=S1(Pr,Me,sr),Io={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:ZMt,getGlobalIterableType:ire,getGlobalIterableIteratorType:e8t,getGlobalGeneratorType:t8t,resolveIterationType:(r,o)=>_C(r,o,v.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:v.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:v.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:v.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},mc={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:r8t,getGlobalIterableType:hxe,getGlobalIterableIteratorType:n8t,getGlobalGeneratorType:i8t,resolveIterationType:(r,o)=>r,mustHaveANextMethodDiagnostic:v.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:v.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:v.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Wl,Oc=new Map,mu=new Map,gc,gu,Gf,rl,Gl,id,Je,zt,Kr,hs,ea,ca,pl,au,Ja,Ba,Al,Hf,_g,sd,Rf,wd,od,Hh,$h,Mf,Hl,Yh,$f,rh,ad,ae,vt,Kt,Zt,Ur,on,Yn,bi,G,Fe,Bt,Zr,Fi,Vs,Ts,Ws,Ta,Ho,qc,Od,Om,Kh,Uy,Hv,Vy,Rd,cd=new Map,qa=0,g_=0,H_=0,Rm=!1,$v=0,R0,pS,lm,dS=[],um=[],VT=[],fg=0,ld=[],M0=[],Ge=0,ot=jf(""),qt=zm(0),ar=lre({negative:!1,base10Value:"0"}),Nr=[],pn=[],Mr=[],Nn=0,Bi=!1,Cn=0,Ii=10,cn=[],Is=[],Oo=[],Cu=[],I_=[],_m=[],Yv=[],fm=[],Tk=[],gD=[],bk=[],FE=[],JT=[],qT=[],zT=[],P2=[],Kv=[],jE=[],Jy=[],BE=0,da=qw(),N2=qw(),D2=o1(),WT,L0,nh=new Map,Md=new Map,Lf=new Map,vp=new Map,Yf=new Map,Xv=new Map,Ek=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",q.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return mJt(),fr;function xk(r){return!Hn(r)||!$e(r.name)||!Hn(r.expression)&&!$e(r.expression)?!1:$e(r.expression)?In(r.expression)==="Symbol"&&yf(r.expression)===(GD("Symbol",1160127,void 0)||Tt):$e(r.expression.expression)?In(r.expression.name)==="Symbol"&&In(r.expression.expression)==="globalThis"&&yf(r.expression.expression)===lt:!1}function GT(r){return r?Ys.get(r):void 0}function Qv(r,o){return r&&Ys.set(r,o),o}function HT(r){if(r){let o=Jr(r);if(o)if(_2(r)){if(o.localJsxFragmentNamespace)return o.localJsxFragmentNamespace;let _=o.pragmas.get("jsxfrag");if(_){let T=Ms(_)?_[0]:_;if(o.localJsxFragmentFactory=YA(T.arguments.factory,ee),ct(o.localJsxFragmentFactory,cu,xf),o.localJsxFragmentFactory)return o.localJsxFragmentNamespace=pp(o.localJsxFragmentFactory).escapedText}let h=iAe(r);if(h)return o.localJsxFragmentFactory=h,o.localJsxFragmentNamespace=pp(h).escapedText}else{let _=Ck(o);if(_)return o.localJsxNamespace=_}}return WT||(WT="React",q.jsxFactory?(L0=YA(q.jsxFactory,ee),ct(L0,cu),L0&&(WT=pp(L0).escapedText)):q.reactNamespace&&(WT=Uc(q.reactNamespace))),L0||(L0=U.createQualifiedName(U.createIdentifier(Zi(WT)),"createElement")),WT}function Ck(r){if(r.localJsxNamespace)return r.localJsxNamespace;let o=r.pragmas.get("jsx");if(o){let _=Ms(o)?o[0]:o;if(r.localJsxFactory=YA(_.arguments.factory,ee),ct(r.localJsxFactory,cu,xf),r.localJsxFactory)return r.localJsxNamespace=pp(r.localJsxFactory).escapedText}}function cu(r){return Jg(r,-1,-1),jr(r,cu,void 0)}function Zv(r,o,_){return _||kKe(r,o),Te}function Ak(r,o,..._){let h=r?mn(r,o,..._):Pc(o,..._),T=da.lookup(h);return T||(da.add(h),h)}function pg(r,o,_,...h){let T=Ze(o,_,...h);return T.skippedOn=r,T}function I2(r,o,..._){return r?mn(r,o,..._):Pc(o,..._)}function Ze(r,o,..._){let h=I2(r,o,..._);return da.add(h),h}function Mm(r,o){r?da.add(o):N2.add({...o,category:2})}function Au(r,o,_,...h){if(o.pos<0||o.end<0){if(!r)return;let T=Jr(o);Mm(r,"message"in _?bu(T,0,0,_,...h):bH(T,_));return}Mm(r,"message"in _?mn(o,_,...h):Ay(Jr(o),o,_))}function $T(r,o,_,...h){let T=Ze(r,_,...h);if(o){let C=mn(r,v.Did_you_forget_to_use_await);lo(T,C)}return T}function Xh(r,o){let _=Array.isArray(r)?Et(r,BG):BG(r);return _&&lo(o,mn(_,v.The_declaration_was_marked_as_deprecated_here)),N2.add(o),o}function Ld(r){let o=e_(r);return o&&kt(r.declarations)>1?o.flags&64?Dt(r.declarations,ih):Oi(r.declarations,ih):!!r.valueDeclaration&&ih(r.valueDeclaration)||kt(r.declarations)&&Oi(r.declarations,ih)}function ih(r){return!!(px(r)&536870912)}function F0(r,o,_){let h=mn(r,v._0_is_deprecated,_);return Xh(o,h)}function B6(r,o,_,h){let T=_?mn(r,v.The_signature_0_of_1_is_deprecated,h,_):mn(r,v._0_is_deprecated,h);return Xh(o,T)}function ta(r,o,_){S++;let h=new a(r|33554432,o);return h.links=new WRe,h.links.checkFlags=_||0,h}function Lm(r,o){let _=ta(1,r);return _.links.type=o,_}function UE(r,o){let _=ta(4,r);return _.links.type=o,_}function w2(r){let o=0;return r&2&&(o|=111551),r&1&&(o|=111550),r&4&&(o|=0),r&8&&(o|=900095),r&16&&(o|=110991),r&32&&(o|=899503),r&64&&(o|=788872),r&256&&(o|=899327),r&128&&(o|=899967),r&512&&(o|=110735),r&8192&&(o|=103359),r&32768&&(o|=46015),r&65536&&(o|=78783),r&262144&&(o|=526824),r&524288&&(o|=788968),r&2097152&&(o|=2097152),o}function O2(r,o){o.mergeId||(o.mergeId=qRe,qRe++),cn[o.mergeId]=r}function YT(r){let o=ta(r.flags,r.escapedName);return o.declarations=r.declarations?r.declarations.slice():[],o.parent=r.parent,r.valueDeclaration&&(o.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(o.constEnumOnlyModule=!0),r.members&&(o.members=new Map(r.members)),r.exports&&(o.exports=new Map(r.exports)),O2(o,r),o}function j0(r,o,_=!1){if(!(r.flags&w2(o.flags))||(o.flags|r.flags)&67108864){if(o===r)return r;if(!(r.flags&33554432)){let C=dl(r);if(C===Tt)return o;if(!(C.flags&w2(o.flags))||(o.flags|C.flags)&67108864)r=YT(C);else return h(r,o),o}o.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!o.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=o.flags,o.valueDeclaration&&CR(r,o.valueDeclaration),On(r.declarations,o.declarations),o.members&&(r.members||(r.members=po()),Op(r.members,o.members,_)),o.exports&&(r.exports||(r.exports=po()),Op(r.exports,o.exports,_)),_||O2(r,o)}else r.flags&1024?r!==lt&&Ze(o.declarations&&Ns(o.declarations[0]),v.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ns(r)):h(r,o);return r;function h(C,w){let V=!!(C.flags&384||w.flags&384),H=!!(C.flags&2||w.flags&2),X=V?v.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:H?v.Cannot_redeclare_block_scoped_variable_0:v.Duplicate_identifier_0,_e=w.declarations&&Jr(w.declarations[0]),Ie=C.declarations&&Jr(C.declarations[0]),Ne=xw(_e,q.checkJs),dt=xw(Ie,q.checkJs),Ct=ns(w);if(_e&&Ie&&Wl&&!V&&_e!==Ie){let Lt=f0(_e.path,Ie.path)===-1?_e:Ie,hr=Lt===_e?Ie:_e,Er=mv(Wl,`${Lt.path}|${hr.path}`,()=>({firstFile:Lt,secondFile:hr,conflictingSymbols:new Map})),rn=mv(Er.conflictingSymbols,Ct,()=>({isBlockScoped:H,firstFileLocations:[],secondFileLocations:[]}));Ne||T(rn.firstFileLocations,w),dt||T(rn.secondFileLocations,C)}else Ne||B0(w,X,Ct,C),dt||B0(C,X,Ct,w)}function T(C,w){if(w.declarations)for(let V of w.declarations)cl(C,V)}}function B0(r,o,_,h){Et(r.declarations,T=>{KT(T,o,_,h.declarations)})}function KT(r,o,_,h){let T=(lT(r,!1)?DH(r):Ns(r))||r,C=Ak(T,o,_);for(let w of h||ve){let V=(lT(w,!1)?DH(w):Ns(w))||w;if(V===T)continue;C.relatedInformation=C.relatedInformation||[];let H=mn(V,v._0_was_also_declared_here,_),X=mn(V,v.and_here);kt(C.relatedInformation)>=5||Dt(C.relatedInformation,_e=>eO(_e,X)===0||eO(_e,H)===0)||lo(C,kt(C.relatedInformation)?X:H)}}function ud(r,o){if(!r?.size)return o;if(!o?.size)return r;let _=po();return Op(_,r),Op(_,o),_}function Op(r,o,_=!1){o.forEach((h,T)=>{let C=r.get(T);r.set(T,C?j0(C,h,_):sa(h))})}function e1(r){var o,_,h;let T=r.parent;if(((o=T.symbol.declarations)==null?void 0:o[0])!==T){M.assert(T.symbol.declarations.length>1);return}if(Og(T))Op(De,T.symbol.exports);else{let C=r.parent.parent.flags&33554432?void 0:v.Invalid_module_name_in_augmentation_module_0_cannot_be_found,w=j2(r,r,C,!0);if(!w)return;if(w=Ff(w),w.flags&1920)if(Dt(gu,V=>w===V.symbol)){let V=j0(T.symbol,w,!0);Gf||(Gf=new Map),Gf.set(r.text,V)}else{if((_=w.exports)!=null&&_.get("__export")&&((h=T.symbol.exports)!=null&&h.size)){let V=UEe(w,"resolvedExports");for(let[H,X]of Os(T.symbol.exports.entries()))V.has(H)&&!w.exports.has(H)&&j0(V.get(H),X)}j0(w,T.symbol)}else Ze(r,v.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function t1(){let r=Be.escapedName,o=De.get(r);o?Et(o.declarations,_=>{xA(_)||da.add(mn(_,v.Declaration_name_conflicts_with_built_in_global_identifier_0,Zi(r)))}):De.set(r,Be)}function as(r){if(r.flags&33554432)return r.links;let o=Po(r);return Is[o]??(Is[o]=new WRe)}function Wn(r){let o=Sa(r);return Oo[o]||(Oo[o]=new Obt)}function h_(r,o,_){if(_){let h=sa(r.get(o));if(h&&(h.flags&_||h.flags&2097152&&Kf(h)&_))return h}}function hD(r,o){let _=r.parent,h=r.parent.parent,T=h_(_.locals,o,111551),C=h_(kS(h.symbol),o,111551);return T&&C?[T,C]:M.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Fm(r,o){let _=Jr(r),h=Jr(o),T=Zm(r);if(_!==h){if(W&&(_.externalModuleIndicator||h.externalModuleIndicator)||!q.outFile||fA(o)||r.flags&33554432||w(o,r))return!0;let H=e.getSourceFiles();return H.indexOf(_)<=H.indexOf(h)}if(o.flags&16777216||fA(o)||v2e(o))return!0;if(r.pos<=o.pos&&!(Ds(r)&&_R(o.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===208){let H=pT(o,208);return H?Dr(H,Zo)!==Dr(r,Zo)||r.posX===r?"quit":Go(X)?X.parent.parent===r:!pe&&pu(X)&&(X.parent===r||_l(X.parent)&&X.parent.parent===r||U3(X.parent)&&X.parent.parent===r||Ds(X.parent)&&X.parent.parent===r||is(X.parent)&&X.parent.parent.parent===r));return H?!pe&&pu(H)?!!Dr(o,X=>X===H?"quit":Us(X)&&!Qb(X)):!1:!0}else{if(Ds(r))return!V(r,o,!1);if(cp(r,r.parent))return!(re&&Lu(r)===Lu(o)&&w(o,r))}}return!0}if(o.parent.kind===281||o.parent.kind===277&&o.parent.isExportEquals||o.kind===277&&o.isExportEquals)return!0;if(w(o,r))return re&&Lu(r)&&(Ds(r)||cp(r,r.parent))?!V(r,o,!0):!0;return!1;function C(H,X){switch(H.parent.parent.kind){case 243:case 248:case 250:if(V0(X,H,T))return!0;break}let _e=H.parent.parent;return Gx(_e)&&V0(X,_e.expression,T)}function w(H,X){return!!Dr(H,_e=>{if(_e===T)return"quit";if(Us(_e))return!0;if($c(_e))return X.posH.end?!1:Dr(X,Ne=>{if(Ne===H)return"quit";switch(Ne.kind){case 219:return!0;case 172:return _e&&(Ds(H)&&Ne.parent===H.parent||cp(H,H.parent)&&Ne.parent===H.parent.parent)?"quit":!0;case 241:switch(Ne.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function kk(r){return Wn(r).declarationRequiresScopeChange}function Qh(r,o){Wn(r).declarationRequiresScopeChange=o}function r1(r,o,_,h){return re?!1:(r&&!h&&VE(r,o,o)||Ze(r,r&&_.type&&O3(_.type,r.pos)?v.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:v.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Ya(_.name),Rp(o)),!0)}function U0(r,o,_,h){let T=bs(o)?o:o.escapedText;n(()=>{if(!r||r.parent.kind!==324&&!VE(r,T,o)&&!sc(r)&&!vD(r,T,_)&&!Pk(r,T)&&!w_(r,T,_)&&!U6(r,T,_)&&!R2(r,T,_)){let C,w;if(o&&(w=e9t(o),w&&Ze(r,h,Rp(o),w)),!w&&Cn{var w;let V=o.escapedName,H=h&&qi(h)&&Jf(h);if(r&&(_&2||(_&32||_&384)&&(_&111551)===111551)){let X=Lp(o);(X.flags&2||X.flags&32||X.flags&384)&&Fs(X,r)}if(H&&(_&111551)===111551&&!(r.flags&16777216)){let X=sa(o);kt(X.declarations)&&Oi(X.declarations,_e=>yM(_e)||qi(_e)&&!!_e.symbol.globalExports)&&Au(!q.allowUmdGlobalAccess,r,v._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Zi(V))}if(T&&!C&&(_&111551)===111551){let X=sa(Gte(o)),_e=jg(T);X===Un(T)?Ze(r,v.Parameter_0_cannot_reference_itself,Ya(T.name)):X.valueDeclaration&&X.valueDeclaration.pos>T.pos&&_e.parent.locals&&h_(_e.parent.locals,X.escapedName,_)===X&&Ze(r,v.Parameter_0_cannot_reference_identifier_1_declared_after_it,Ya(T.name),Ya(r))}if(r&&_&111551&&o.flags&2097152&&!(o.flags&111551)&&!gT(r)){let X=ch(o,111551);if(X){let _e=X.kind===281||X.kind===278||X.kind===280?v._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:v._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,Ie=Zi(V);XT(Ze(r,_e,Ie),X,Ie)}}if(q.isolatedModules&&o&&H&&(_&111551)===111551){let _e=h_(De,V,_)===o&&qi(h)&&h.locals&&h_(h.locals,V,-111552);if(_e){let Ie=(w=_e.declarations)==null?void 0:w.find(Ne=>Ne.kind===276||Ne.kind===273||Ne.kind===274||Ne.kind===271);Ie&&!hw(Ie)&&Ze(Ie,v.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Zi(V))}}})}function XT(r,o,_){return o?lo(r,mn(o,o.kind===281||o.kind===278||o.kind===280?v._0_was_exported_here:v._0_was_imported_here,_)):r}function Rp(r){return bs(r)?Zi(r):Ya(r)}function VE(r,o,_){if(!$e(r)||r.escapedText!==o||PKe(r)||fA(r))return!1;let h=of(r,!1,!1),T=h;for(;T;){if(vi(T.parent)){let C=Un(T.parent);if(!C)break;let w=yn(C);if(ho(w,o))return Ze(r,v.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Rp(_),ns(C)),!0;if(T===h&&!co(T)){let V=oc(C).thisType;if(ho(V,o))return Ze(r,v.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Rp(_)),!0}}T=T.parent}return!1}function sc(r){let o=qy(r);return o&&nl(o,64,!0)?(Ze(r,v.Cannot_extend_an_interface_0_Did_you_mean_implements,Hc(o)),!0):!1}function qy(r){switch(r.kind){case 80:case 211:return r.parent?qy(r.parent):void 0;case 233:if(nc(r.expression))return r.expression;default:return}}function vD(r,o,_){let h=1920|(vn(r)?111551:0);if(_===h){let T=dl(Ar(r,o,788968&~h,void 0,!1)),C=r.parent;if(T){if(uf(C)){M.assert(C.left===r,"Should only be resolving left side of qualified name as a namespace");let w=C.right.escapedText;if(ho(oc(T),w))return Ze(C,v.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Zi(o),Zi(w)),!0}return Ze(r,v._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Zi(o)),!0}}return!1}function R2(r,o,_){if(_&788584){let h=dl(Ar(r,o,111127,void 0,!1));if(h&&!(h.flags&1920))return Ze(r,v._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Zi(o)),!0}return!1}function JE(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function Pk(r,o){return JE(o)&&r.parent.kind===281?(Ze(r,v.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,o),!0):!1}function U6(r,o,_){if(_&111551){if(JE(o)){let C=r.parent.parent;if(C&&C.parent&&mp(C)){let w=C.token,V=C.parent.kind;V===264&&w===96?Ze(r,v.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Zi(o)):V===263&&w===96?Ze(r,v.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Zi(o)):V===263&&w===119&&Ze(r,v.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Zi(o))}else Ze(r,v._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Zi(o));return!0}let h=dl(Ar(r,o,788544,void 0,!1)),T=h&&Kf(h);if(h&&T!==void 0&&!(T&111551)){let C=Zi(o);return Fn(o)?Ze(r,v._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,C):SD(r,h)?Ze(r,v._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,C,C==="K"?"P":"K"):Ze(r,v._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,C),!0}}return!1}function SD(r,o){let _=Dr(r.parent,h=>Go(h)||If(h)?!1:_f(h)||"quit");if(_&&_.members.length===1){let h=oc(o);return!!(h.flags&1048576)&&s7(h,384,!0)}return!1}function Fn(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function w_(r,o,_){if(_&111127){if(dl(Ar(r,o,1024,void 0,!1)))return Ze(r,v.Cannot_use_namespace_0_as_a_value,Zi(o)),!0}else if(_&788544&&dl(Ar(r,o,1536,void 0,!1)))return Ze(r,v.Cannot_use_namespace_0_as_a_type,Zi(o)),!0;return!1}function Fs(r,o){var _;if(M.assert(!!(r.flags&2||r.flags&32||r.flags&384)),r.flags&67108881&&r.flags&32)return;let h=(_=r.declarations)==null?void 0:_.find(T=>fH(T)||vi(T)||T.kind===266);if(h===void 0)return M.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(h.flags&33554432)&&!Fm(h,o)){let T,C=Ya(Ns(h));r.flags&2?T=Ze(o,v.Block_scoped_variable_0_used_before_its_declaration,C):r.flags&32?T=Ze(o,v.Class_0_used_before_its_declaration,C):r.flags&256?T=Ze(o,v.Enum_0_used_before_its_declaration,C):(M.assert(!!(r.flags&128)),Ad(q)&&(T=Ze(o,v.Enum_0_used_before_its_declaration,C))),T&&lo(T,mn(h,v._0_is_declared_here,C))}}function V0(r,o,_){return!!o&&!!Dr(r,h=>h===o||(h===_||Us(h)&&(!Qb(h)||Rl(h)&3)?"quit":!1))}function M2(r){switch(r.kind){case 271:return r;case 273:return r.parent;case 274:return r.parent.parent;case 276:return r.parent.parent.parent;default:return}}function Sp(r){return r.declarations&&xm(r.declarations,Sn)}function Sn(r){return r.kind===271||r.kind===270||r.kind===273&&!!r.name||r.kind===274||r.kind===280||r.kind===276||r.kind===281||r.kind===277&&eN(r)||Dn(r)&&ll(r)===2&&eN(r)||ac(r)&&Dn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64&&Nk(r.parent.right)||r.kind===304||r.kind===303&&Nk(r.initializer)||r.kind===260&&Zb(r)||r.kind===208&&Zb(r.parent.parent)}function Nk(r){return OR(r)||ic(r)&&yh(r)}function Dk(r,o){let _=J0(r);if(_){let T=uN(_.expression).arguments[0];return $e(_.name)?dl(ho(fWe(T),_.name.escapedText)):void 0}if(Ci(r)||r.moduleReference.kind===283){let T=Y_(r,NH(r)||Dw(r)),C=Ff(T);return jd(r,T,C,!1),C}let h=Ok(r.moduleReference,o);return $_(r,h),h}function $_(r,o){if(jd(r,void 0,o,!1)&&!r.isTypeOnly){let _=ch(Un(r)),h=_.kind===281||_.kind===278,T=h?v.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:v.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,C=h?v._0_was_exported_here:v._0_was_imported_here,w=_.kind===278?"*":Zi(_.name.escapedText);lo(Ze(r.moduleReference,T),mn(_,C,w))}}function jm(r,o,_,h){let T=r.exports.get("export="),C=T?ho(yn(T),o,!0):r.exports.get(o),w=dl(C,h);return jd(_,C,w,!1),w}function pm(r){return pc(r)&&!r.isExportEquals||_i(r,2048)||E_(r)||qh(r)}function n1(r){return Ia(r)?e.getModeForUsageLocation(Jr(r),r):void 0}function qE(r,o){return r===99&&o===1}function sh(r){return n1(r)===99&&Wc(r.text,".json")}function Tp(r,o,_,h){let T=r&&n1(h);if(r&&T!==void 0&&100<=W&&W<=199){let C=qE(T,r.impliedNodeFormat);if(T===99||C)return C}if(!ue)return!1;if(!r||r.isDeclarationFile){let C=jm(o,"default",void 0,!0);return!(C&&Dt(C.declarations,pm)||jm(o,Uc("__esModule"),void 0,_))}return Pf(r)?typeof r.externalModuleIndicator!="object"&&!jm(o,Uc("__esModule"),void 0,_):sb(o)}function oh(r,o){let _=Y_(r,r.parent.moduleSpecifier);if(_)return Fd(_,r,o)}function Fd(r,o,_){var h;let T;tR(r)?T=r:T=jm(r,"default",o,_);let C=(h=r.declarations)==null?void 0:h.find(qi),w=zy(o);if(!w)return T;let V=sh(w),H=Tp(C,r,_,w);if(!T&&!H&&!V)if(sb(r)&&!ue){let X=W>=5?"allowSyntheticDefaultImports":"esModuleInterop",Ie=r.exports.get("export=").valueDeclaration,Ne=Ze(o.name,v.Module_0_can_only_be_default_imported_using_the_1_flag,ns(r),X);Ie&&lo(Ne,mn(Ie,v.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,X))}else ng(o)?QT(r,o):Bm(r,r,o,YC(o)&&o.propertyName||o.name);else if(H||V){let X=Ff(r,_)||dl(r,_);return jd(o,r,X,!1),X}return jd(o,T,void 0,!1),T}function zy(r){switch(r.kind){case 273:return r.parent.moduleSpecifier;case 271:return A0(r.moduleReference)?r.moduleReference.expression:void 0;case 274:return r.parent.parent.moduleSpecifier;case 276:return r.parent.parent.parent.moduleSpecifier;case 281:return r.parent.parent.moduleSpecifier;default:return M.assertNever(r)}}function QT(r,o){var _,h,T;if((_=r.exports)!=null&&_.has(o.symbol.escapedName))Ze(o.name,v.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ns(r),ns(o.symbol));else{let C=Ze(o.name,v.Module_0_has_no_default_export,ns(r)),w=(h=r.exports)==null?void 0:h.get("__export");if(w){let V=(T=w.declarations)==null?void 0:T.find(H=>{var X,_e;return!!(Cl(H)&&H.moduleSpecifier&&((_e=(X=Y_(H,H.moduleSpecifier))==null?void 0:X.exports)!=null&&_e.has("default")))});V&&lo(C,mn(V,v.export_Asterisk_does_not_re_export_a_default))}}}function Ik(r,o){let _=r.parent.parent.moduleSpecifier,h=Y_(r,_),T=ib(h,_,o,!1);return jd(r,h,T,!1),T}function L2(r,o){let _=r.parent.moduleSpecifier,h=_&&Y_(r,_),T=_&&ib(h,_,o,!1);return jd(r,h,T,!1),T}function zE(r,o){if(r===Tt&&o===Tt)return Tt;if(r.flags&790504)return r;let _=ta(r.flags|o.flags,r.escapedName);return M.assert(r.declarations||o.declarations),_.declarations=w1(ds(r.declarations,o.declarations),hv),_.parent=r.parent||o.parent,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration),o.members&&(_.members=new Map(o.members)),r.exports&&(_.exports=new Map(r.exports)),_}function TD(r,o,_,h){var T;if(r.flags&1536){let C=Mp(r).get(o.escapedText),w=dl(C,h),V=(T=as(r).typeOnlyExportStarMap)==null?void 0:T.get(o.escapedText);return jd(_,C,w,!1,V,o.escapedText),w}}function F2(r,o){if(r.flags&3){let _=r.valueDeclaration.type;if(_)return dl(ho(Gi(_),o))}}function ZT(r,o,_=!1){var h;let T=NH(r)||r.moduleSpecifier,C=Y_(r,T),w=!Hn(o)&&o.propertyName||o.name;if(!$e(w))return;let V=w.escapedText==="default"&&ue,H=ib(C,T,!1,V);if(H&&w.escapedText){if(tR(C))return C;let X;C&&C.exports&&C.exports.get("export=")?X=ho(yn(H),w.escapedText,!0):X=F2(H,w.escapedText),X=dl(X,_);let _e=TD(H,w,o,_);if(_e===void 0&&w.escapedText==="default"){let Ne=(h=C.declarations)==null?void 0:h.find(qi);(sh(T)||Tp(Ne,C,_,T))&&(_e=Ff(C,_)||dl(C,_))}let Ie=_e&&X&&_e!==X?zE(X,_e):_e||X;return Ie||Bm(C,H,r,w),Ie}}function Bm(r,o,_,h){var T;let C=lh(r,_),w=Ya(h),V=tCe(h,o);if(V!==void 0){let H=ns(V),X=Ze(h,v._0_has_no_exported_member_named_1_Did_you_mean_2,C,w,H);V.valueDeclaration&&lo(X,mn(V.valueDeclaration,v._0_is_declared_here,H))}else(T=r.exports)!=null&&T.has("default")?Ze(h,v.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,C,w):bD(_,h,w,r,C)}function bD(r,o,_,h,T){var C,w;let V=(w=(C=ci(h.valueDeclaration,Mh))==null?void 0:C.locals)==null?void 0:w.get(o.escapedText),H=h.exports;if(V){let X=H?.get("export=");if(X)Um(X,V)?eb(r,o,_,T):Ze(o,v.Module_0_has_no_exported_member_1,T,_);else{let _e=H?jn(txe(H),Ne=>!!Um(Ne,V)):void 0,Ie=_e?Ze(o,v.Module_0_declares_1_locally_but_it_is_exported_as_2,T,_,ns(_e)):Ze(o,v.Module_0_declares_1_locally_but_it_is_not_exported,T,_);V.declarations&&lo(Ie,...kr(V.declarations,(Ne,dt)=>mn(Ne,dt===0?v._0_is_declared_here:v.and_here,_)))}}else Ze(o,v.Module_0_has_no_exported_member_1,T,_)}function eb(r,o,_,h){if(W>=5){let T=Iy(q)?v._0_can_only_be_imported_by_using_a_default_import:v._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ze(o,T,_)}else if(vn(r)){let T=Iy(q)?v._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:v._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ze(o,T,_)}else{let T=Iy(q)?v._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:v._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;Ze(o,T,_,_,h)}}function mS(r,o){if(pf(r)&&In(r.propertyName||r.name)==="default"){let w=zy(r),V=w&&Y_(r,w);if(V)return Fd(V,r,o)}let _=Zo(r)?jg(r):r.parent.parent.parent,h=J0(_),T=ZT(_,h||r,o),C=r.propertyName||r.name;return h&&T&&$e(C)?dl(ho(yn(T),C.escapedText),o):(jd(r,void 0,T,!1),T)}function J0(r){if(Ci(r)&&r.initializer&&Hn(r.initializer))return r.initializer}function i1(r,o){if(Qm(r.parent)){let _=Ff(r.parent.symbol,o);return jd(r,void 0,_,!1),_}}function dm(r,o,_){if(In(r.propertyName||r.name)==="default"){let T=zy(r),C=T&&Y_(r,T);if(C)return Fd(C,r,!!_)}let h=r.parent.parent.moduleSpecifier?ZT(r.parent.parent,r,_):nl(r.propertyName||r.name,o,!1,_);return jd(r,void 0,h,!1),h}function s1(r,o){let _=pc(r)?r.expression:r.right,h=tb(_,o);return jd(r,void 0,h,!1),h}function tb(r,o){if(tu(r))return vl(r).symbol;if(!xf(r)&&!nc(r))return;let _=nl(r,901119,!0,o);return _||(vl(r),Wn(r).resolvedSymbol)}function Ou(r,o){if(Dn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64)return tb(r.parent.right,o)}function q0(r,o=!1){switch(r.kind){case 271:case 260:return Dk(r,o);case 273:return oh(r,o);case 274:return Ik(r,o);case 280:return L2(r,o);case 276:case 208:return mS(r,o);case 281:return dm(r,901119,o);case 277:case 226:return s1(r,o);case 270:return i1(r,o);case 304:return nl(r.name,901119,!0,o);case 303:return tb(r.initializer,o);case 212:case 211:return Ou(r,o);default:return M.fail()}}function ah(r,o=901119){return r?(r.flags&(2097152|o))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function dl(r,o){return!o&&ah(r)?ku(r):r}function ku(r){M.assert((r.flags&2097152)!==0,"Should only get Alias here.");let o=as(r);if(o.aliasTarget)o.aliasTarget===fe&&(o.aliasTarget=Tt);else{o.aliasTarget=fe;let _=Sp(r);if(!_)return M.fail();let h=q0(_);o.aliasTarget===fe?o.aliasTarget=h||Tt:Ze(_,v.Circular_definition_of_import_alias_0,ns(r))}return o.aliasTarget}function z0(r){if(as(r).aliasTarget!==fe)return ku(r)}function Kf(r,o,_){let h=o&&ch(r),T=h&&Cl(h),C=h&&(T?Y_(h.moduleSpecifier,h.moduleSpecifier,!0):ku(h.symbol)),w=T&&C?dg(C):void 0,V=_?0:r.flags,H;for(;r.flags&2097152;){let X=Lp(ku(r));if(!T&&X===C||w?.get(X.escapedName)===X)break;if(X===Tt)return-1;if(X===r||H?.has(X))break;X.flags&2097152&&(H?H.add(X):H=new Set([r,X])),V|=X.flags,r=X}return V}function jd(r,o,_,h,T,C){if(!r||Hn(r))return!1;let w=Un(r);if(iT(r)){let H=as(w);return H.typeOnlyDeclaration=r,!0}if(T){let H=as(w);return H.typeOnlyDeclaration=T,w.escapedName!==C&&(H.typeOnlyExportStarName=C),!0}let V=as(w);return wk(V,o,h)||wk(V,_,h)}function wk(r,o,_){var h;if(o&&(r.typeOnlyDeclaration===void 0||_&&r.typeOnlyDeclaration===!1)){let T=((h=o.exports)==null?void 0:h.get("export="))??o,C=T.declarations&&jn(T.declarations,iT);r.typeOnlyDeclaration=C??as(T).typeOnlyDeclaration??!1}return!!r.typeOnlyDeclaration}function ch(r,o){var _;if(!(r.flags&2097152))return;let h=as(r);if(h.typeOnlyDeclaration===void 0){h.typeOnlyDeclaration=!1;let T=dl(r);jd((_=r.declarations)==null?void 0:_[0],Sp(r)&&Xre(r),T,!0)}if(o===void 0)return h.typeOnlyDeclaration||void 0;if(h.typeOnlyDeclaration){let T=h.typeOnlyDeclaration.kind===278?dl(dg(h.typeOnlyDeclaration.symbol.parent).get(h.typeOnlyExportStarName||r.escapedName)):ku(h.typeOnlyDeclaration.symbol);return Kf(T)&o?h.typeOnlyDeclaration:void 0}}function Ok(r,o){return r.kind===80&&Hw(r)&&(r=r.parent),r.kind===80||r.parent.kind===166?nl(r,1920,!1,o):(M.assert(r.parent.kind===271),nl(r,901119,!1,o))}function lh(r,o){return r.parent?lh(r.parent,o)+"."+ns(r):ns(r,o,void 0,36)}function gS(r){for(;uf(r.parent);)r=r.parent;return r}function ED(r){let o=pp(r),_=Ar(o,o,111551,void 0,!0);if(_){for(;uf(o.parent);){let h=yn(_);if(_=ho(h,o.parent.right.escapedText),!_)return;o=o.parent}return _}}function nl(r,o,_,h,T){if(Gc(r))return;let C=1920|(vn(r)?o&111551:0),w;if(r.kind===80){let V=o===C||Ka(r)?v.Cannot_find_namespace_0:oHe(pp(r)),H=vn(r)&&!Ka(r)?xD(r,o):void 0;if(w=sa(Ar(T||r,r,o,_||H?void 0:V,!0,!1)),!w)return sa(H)}else if(r.kind===166||r.kind===211){let V=r.kind===166?r.left:r.expression,H=r.kind===166?r.right:r.name,X=nl(V,C,_,!1,T);if(!X||Gc(H))return;if(X===Tt)return X;if(X.valueDeclaration&&vn(X.valueDeclaration)&&cf(q)!==100&&Ci(X.valueDeclaration)&&X.valueDeclaration.initializer&&Q$e(X.valueDeclaration.initializer)){let _e=X.valueDeclaration.initializer.arguments[0],Ie=Y_(_e,_e);if(Ie){let Ne=Ff(Ie);Ne&&(X=Ne)}}if(w=sa(h_(Mp(X),H.escapedText,o)),!w&&X.flags&2097152&&(w=sa(h_(Mp(ku(X)),H.escapedText,o))),!w){if(!_){let _e=lh(X),Ie=Ya(H),Ne=tCe(H,X);if(Ne){Ze(H,v._0_has_no_exported_member_named_1_Did_you_mean_2,_e,Ie,ns(Ne));return}let dt=uf(r)&&gS(r);if(rl&&o&788968&&dt&&!SN(dt.parent)&&ED(dt)){Ze(dt,v._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,lp(dt));return}if(o&1920&&uf(r.parent)){let Lt=sa(h_(Mp(X),H.escapedText,788968));if(Lt){Ze(r.parent.right,v.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ns(Lt),Zi(r.parent.right.escapedText));return}}Ze(H,v.Namespace_0_has_no_exported_member_1,_e,Ie)}return}}else M.assertNever(r,"Unknown entity name kind.");return!Ka(r)&&xf(r)&&(w.flags&2097152||r.parent.kind===277)&&jd(BH(r),w,void 0,!0),w.flags&o||h?w:ku(w)}function xD(r,o){if(rre(r.parent)){let _=CD(r.parent);if(_)return Ar(_,r,o,void 0,!0)}}function CD(r){if(Dr(r,T=>jP(T)||T.flags&16777216?Qd(T):"quit"))return;let _=tE(r);if(_&&wu(_)&&xR(_.expression)){let T=Un(_.expression.left);if(T)return rb(T)}if(_&&ic(_)&&xR(_.parent)&&wu(_.parent.parent)){let T=Un(_.parent.left);if(T)return rb(T)}if(_&&(Nm(_)||ql(_))&&Dn(_.parent.parent)&&ll(_.parent.parent)===6){let T=Un(_.parent.parent.left);if(T)return rb(T)}let h=_T(r);if(h&&Us(h)){let T=Un(h);return T&&T.valueDeclaration}}function rb(r){let o=r.parent.valueDeclaration;return o?(Iw(o)?sA(o):Hx(o)?ww(o):void 0)||o:void 0}function V6(r){let o=r.valueDeclaration;if(!o||!vn(o)||r.flags&524288||lT(o,!1))return;let _=Ci(o)?ww(o):sA(o);if(_){let h=fd(_);if(h)return _Ce(h,r)}}function Y_(r,o,_){let T=cf(q)===1?v.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:v.Cannot_find_module_0_or_its_corresponding_type_declarations;return j2(r,o,_?void 0:T)}function j2(r,o,_,h=!1){return Ia(o)?WE(r,o.text,_,o,h):void 0}function WE(r,o,_,h,T=!1){var C,w,V,H,X,_e,Ie,Ne,dt,Ct,Lt;if(fs(o,"@types/")){let ai=v.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Co=HI(o,"@types/");Ze(h,ai,Co,o)}let hr=rxe(o,!0);if(hr)return hr;let Er=Jr(r),rn=Ia(r)?r:((C=xl(r)?r:r.parent&&xl(r.parent)&&r.parent.name===r?r.parent:void 0)==null?void 0:C.name)||((w=xv(r)?r:void 0)==null?void 0:w.argument.literal)||(vn(r)&&Kg(r)?r.moduleSpecifier:void 0)||(Ci(r)&&r.initializer&&Nf(r.initializer,!0)?r.initializer.arguments[0]:void 0)||((V=Dr(r,Dp))==null?void 0:V.arguments[0])||((H=Dr(r,Yc))==null?void 0:H.moduleSpecifier)||((X=Dr(r,cT))==null?void 0:X.moduleReference.expression)||((_e=Dr(r,Cl))==null?void 0:_e.moduleSpecifier),Bn=rn&&Ia(rn)?e.getModeForUsageLocation(Er,rn):Er.impliedNodeFormat,wr=cf(q),Gr=(Ie=e.getResolvedModule(Er,o,Bn))==null?void 0:Ie.resolvedModule,en=Gr&&SX(q,Gr,Er),$n=Gr&&(!en||en===v.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Gr.resolvedFileName);if($n){if(en&&Ze(h,en,o,Gr.resolvedFileName),Gr.resolvedUsingTsExtension&&ju(o)){let ai=((Ne=Dr(r,Yc))==null?void 0:Ne.importClause)||Dr(r,qp(nu,Cl));(ai&&!ai.isTypeOnly||Dr(r,Dp))&&Ze(h,v.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,oi(M.checkDefined(J9(o))))}else if(Gr.resolvedUsingTsExtension&&!LN(q,Er.fileName)){let ai=((dt=Dr(r,Yc))==null?void 0:dt.importClause)||Dr(r,qp(nu,Cl));if(!(ai?.isTypeOnly||Dr(r,Jh))){let Co=M.checkDefined(J9(o));Ze(h,v.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,Co)}}if($n.symbol){if(Gr.isExternalLibraryImport&&!sO(Gr.extension)&&nb(!1,h,Er,Bn,Gr,o),wr===3||wr===99){let ai=Er.impliedNodeFormat===1&&!Dr(r,Dp)||!!Dr(r,nu),Co=Dr(r,Xs=>Jh(Xs)||Cl(Xs)||Yc(Xs)||Kg(Xs));if(ai&&$n.impliedNodeFormat===99&&!Bpe(Co))if(Dr(r,nu))Ze(h,v.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,o);else{let Xs,oa=b0(Er.fileName);if(oa===".ts"||oa===".js"||oa===".tsx"||oa===".jsx"){let Rs=Er.packageJsonScope,Rc=oa===".ts"?".mts":oa===".js"?".mjs":void 0;Rs&&!Rs.contents.packageJsonContent.type?Rc?Xs=Bs(void 0,v.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Rc,ii(Rs.packageDirectory,"package.json")):Xs=Bs(void 0,v.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,ii(Rs.packageDirectory,"package.json")):Rc?Xs=Bs(void 0,v.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Rc):Xs=Bs(void 0,v.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}da.add(Ay(Jr(h),h,Bs(Xs,v.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,o)))}}return sa($n.symbol)}_&&Ze(h,v.File_0_is_not_a_module,$n.fileName);return}if(gu){let ai=$W(gu,Co=>Co.pattern,o);if(ai){let Co=Gf&&Gf.get(o);return sa(Co||ai.symbol)}}if(Gr&&!sO(Gr.extension)&&en===void 0||en===v.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(T){let ai=v.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Ze(h,ai,o,Gr.resolvedFileName)}else nb(de&&!!_,h,Er,Bn,Gr,o);return}if(_){if(Gr){let ai=e.getProjectReferenceRedirect(Gr.resolvedFileName);if(ai){Ze(h,v.Output_file_0_has_not_been_built_from_source_file_1,ai,Gr.resolvedFileName);return}}if(en)Ze(h,en,o,Gr.resolvedFileName);else{let ai=zp(o)&&!PP(o),Co=wr===3||wr===99;if(!cE(q)&&wc(o,".json")&&wr!==1&&tj(q))Ze(h,v.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,o);else if(Bn===99&&Co&&ai){let Xs=Cs(o,yi(Er.path)),oa=(Ct=Ek.find(([Rs,Rc])=>e.fileExists(Xs+Rs)))==null?void 0:Ct[1];oa?Ze(h,v.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,o+oa):Ze(h,v.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((Lt=e.getResolvedModule(Er,o,Bn))!=null&&Lt.alternateResult){let Xs=Y5(Er,e,o,Bn,o);Au(!0,h,Bs(Xs,_,o))}else Ze(h,_,o)}}return;function oi(ai){let Co=eM(o,ai);if(ej(W)||Bn===99){let Xs=ju(o)&&LN(q);return Co+(ai===".mts"||ai===".d.mts"?Xs?".mts":".mjs":ai===".cts"||ai===".d.mts"?Xs?".cts":".cjs":Xs?".ts":".js")}return Co}}function nb(r,o,_,h,{packageId:T,resolvedFileName:C},w){let V;!Su(w)&&T&&(V=Y5(_,e,w,h,T.name)),Au(r,o,Bs(V,v.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,w,C))}function Ff(r,o){if(r?.exports){let _=dl(r.exports.get("export="),o),h=J6(sa(_),sa(r));return sa(h)||r}}function J6(r,o){if(!r||r===Tt||r===o||o.exports.size===1||r.flags&2097152)return r;let _=as(r);if(_.cjsExportMerged)return _.cjsExportMerged;let h=r.flags&33554432?r:YT(r);return h.flags=h.flags|512,h.exports===void 0&&(h.exports=po()),o.exports.forEach((T,C)=>{C!=="export="&&h.exports.set(C,h.exports.has(C)?j0(h.exports.get(C),T):T)}),h===r&&(as(h).resolvedExports=void 0,as(h).resolvedMembers=void 0),as(h).cjsExportMerged=h,_.cjsExportMerged=h}function ib(r,o,_,h){var T;let C=Ff(r,_);if(!_&&C){if(!h&&!(C.flags&1539)&&!kc(C,307)){let V=W>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Ze(o,v.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,V),C}let w=o.parent;if(Yc(w)&&XP(w)||Dp(w)){let V=Dp(w)?w.arguments[0]:w.moduleSpecifier,H=yn(C),X=K$e(H,C,r,V);if(X)return AD(C,X,w);let _e=(T=r?.declarations)==null?void 0:T.find(qi),Ie=_e&&qE(n1(V),_e.impliedNodeFormat);if(Iy(q)||Ie){let Ne=CJ(H,0);if((!Ne||!Ne.length)&&(Ne=CJ(H,1)),Ne&&Ne.length||ho(H,"default",!0)||Ie){let dt=H.flags&3670016?X$e(H,C,r,V):fCe(C,C.parent);return AD(C,dt,w)}}}}return C}function AD(r,o,_){let h=ta(r.flags,r.escapedName);h.declarations=r.declarations?r.declarations.slice():[],h.parent=r.parent,h.links.target=r,h.links.originatingImport=_,r.valueDeclaration&&(h.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(h.constEnumOnlyModule=!0),r.members&&(h.members=new Map(r.members)),r.exports&&(h.exports=new Map(r.exports));let T=vg(o);return h.links.type=tr(h,T.members,ve,ve,T.indexInfos),h}function sb(r){return r.exports.get("export=")!==void 0}function GE(r){return txe(dg(r))}function Rk(r){let o=GE(r),_=Ff(r);if(_!==r){let h=yn(_);hS(h)&&On(o,Ea(h))}return o}function B2(r,o){dg(r).forEach((T,C)=>{q2(C)||o(T,C)});let h=Ff(r);if(h!==r){let T=yn(h);hS(T)&&gMt(T,(C,w)=>{o(C,w)})}}function _d(r,o){let _=dg(o);if(_)return _.get(r)}function kD(r,o){let _=_d(r,o);if(_)return _;let h=Ff(o);if(h===o)return;let T=yn(h);return hS(T)?ho(T,r):void 0}function hS(r){return!(r.flags&402784252||Qn(r)&1||qd(r)||Yo(r))}function Mp(r){return r.flags&6256?UEe(r,"resolvedExports"):r.flags&1536?dg(r):r.exports||J}function dg(r){let o=as(r);if(!o.resolvedExports){let{exports:_,typeOnlyExportStarMap:h}=V2(r);o.resolvedExports=_,o.typeOnlyExportStarMap=h}return o.resolvedExports}function U2(r,o,_,h){o&&o.forEach((T,C)=>{if(C==="default")return;let w=r.get(C);if(!w)r.set(C,T),_&&h&&_.set(C,{specifierText:Hc(h.moduleSpecifier)});else if(_&&h&&w&&dl(w)!==dl(T)){let V=_.get(C);V.exportsWithDuplicate?V.exportsWithDuplicate.push(h):V.exportsWithDuplicate=[h]}})}function V2(r){let o=[],_,h=new Set;r=Ff(r);let T=C(r)||J;return _&&h.forEach(w=>_.delete(w)),{exports:T,typeOnlyExportStarMap:_};function C(w,V,H){if(!H&&w?.exports&&w.exports.forEach((Ie,Ne)=>h.add(Ne)),!(w&&w.exports&&cl(o,w)))return;let X=new Map(w.exports),_e=w.exports.get("__export");if(_e){let Ie=po(),Ne=new Map;if(_e.declarations)for(let dt of _e.declarations){let Ct=Y_(dt,dt.moduleSpecifier),Lt=C(Ct,dt,H||dt.isTypeOnly);U2(Ie,Lt,Ne,dt)}Ne.forEach(({exportsWithDuplicate:dt},Ct)=>{if(!(Ct==="export="||!(dt&&dt.length)||X.has(Ct)))for(let Lt of dt)da.add(mn(Lt,v.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Ne.get(Ct).specifierText,Zi(Ct)))}),U2(X,Ie)}return V?.isTypeOnly&&(_??(_=new Map),X.forEach((Ie,Ne)=>_.set(Ne,V))),X}}function sa(r){let o;return r&&r.mergeId&&(o=cn[r.mergeId])?o:r}function Un(r){return sa(r.symbol&&Gte(r.symbol))}function fd(r){return Qm(r)?Un(r):void 0}function e_(r){return sa(r.parent&&Gte(r.parent))}function PD(r){var o,_;return(((o=r.valueDeclaration)==null?void 0:o.kind)===219||((_=r.valueDeclaration)==null?void 0:_.kind)===218)&&fd(r.valueDeclaration.parent)||r}function ND(r,o){let _=Jr(o),h=Sa(_),T=as(r),C;if(T.extendedContainersByFile&&(C=T.extendedContainersByFile.get(h)))return C;if(_&&_.imports){for(let V of _.imports){if(Ka(V))continue;let H=Y_(o,V,!0);!H||!vS(H,r)||(C=Ut(C,H))}if(kt(C))return(T.extendedContainersByFile||(T.extendedContainersByFile=new Map)).set(h,C),C}if(T.extendedContainers)return T.extendedContainers;let w=e.getSourceFiles();for(let V of w){if(!iu(V))continue;let H=Un(V);vS(H,r)&&(C=Ut(C,H))}return T.extendedContainers=C||ve}function ob(r,o,_){let h=e_(r);if(h&&!(r.flags&262144))return H(h);let T=Yi(r.declarations,_e=>{if(!U_(_e)&&_e.parent){if(H0(_e.parent))return Un(_e.parent);if(Gg(_e.parent)&&_e.parent.parent&&Ff(Un(_e.parent.parent))===r)return Un(_e.parent.parent)}if(tu(_e)&&Dn(_e.parent)&&_e.parent.operatorToken.kind===64&&ac(_e.parent.left)&&nc(_e.parent.left.expression))return ky(_e.parent.left)||Xx(_e.parent.left.expression)?Un(Jr(_e)):(vl(_e.parent.left.expression),Wn(_e.parent.left.expression).resolvedSymbol)});if(!kt(T))return;let C=Yi(T,_e=>vS(_e,r)?_e:void 0),w=[],V=[];for(let _e of C){let[Ie,...Ne]=H(_e);w=Ut(w,Ie),V=On(V,Ne)}return ds(w,V);function H(_e){let Ie=Yi(_e.declarations,X),Ne=o&&ND(r,o),dt=yS(_e,_);if(o&&_e.flags&ps(_)&&ks(_e,o,1920,!1))return Ut(ds(ds([_e],Ie),Ne),dt);let Ct=!(_e.flags&ps(_))&&_e.flags&788968&&oc(_e).flags&524288&&_===111551?vs(o,hr=>Iu(hr,Er=>{if(Er.flags&ps(_)&&yn(Er)===oc(_e))return Er})):void 0,Lt=Ct?[Ct,...Ie,_e]:[...Ie,_e];return Lt=Ut(Lt,dt),Lt=On(Lt,Ne),Lt}function X(_e){return h&&DD(_e,h)}}function yS(r,o){let _=!!kt(r.declarations)&&Fo(r.declarations);if(o&111551&&_&&_.parent&&Ci(_.parent)&&(ko(_)&&_===_.parent.initializer||_f(_)&&_===_.parent.type))return Un(_.parent)}function DD(r,o){let _=$E(r),h=_&&_.exports&&_.exports.get("export=");return h&&Um(h,o)?_:void 0}function vS(r,o){if(r===e_(o))return o;let _=r.exports&&r.exports.get("export=");if(_&&Um(_,o))return r;let h=Mp(r),T=h.get(o.escapedName);return T&&Um(T,o)?T:Iu(h,C=>{if(Um(C,o))return C})}function Um(r,o){if(sa(dl(sa(r)))===sa(dl(sa(o))))return r}function Lp(r){return sa(r&&(r.flags&1048576)!==0&&r.exportSymbol||r)}function Zh(r,o){return!!(r.flags&111551||r.flags&2097152&&Kf(r,!o)&111551)}function uh(r){var o;let _=new u(fr,r);return d++,_.id=d,(o=kn)==null||o.recordType(_),_}function W0(r,o){let _=uh(r);return _.symbol=o,_}function J2(r){return new u(fr,r)}function Ll(r,o,_=0,h){Vm(o,h);let T=uh(r);return T.intrinsicName=o,T.debugIntrinsicName=h,T.objectFlags=_|524288|2097152|33554432|16777216,T}function Vm(r,o){let _=`${r},${o??""}`;it.has(_)&&M.fail(`Duplicate intrinsic type name ${r}${o?` (${o})`:""}; you may need to pass a name to createIntrinsicType.`),it.add(_)}function Fp(r,o){let _=W0(524288,o);return _.objectFlags=r,_.members=void 0,_.properties=void 0,_.callSignatures=void 0,_.constructSignatures=void 0,_.indexInfos=void 0,_}function o1(){return gi(Os(Lge.keys(),jf))}function pd(r){return W0(262144,r)}function q2(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function SS(r){let o;return r.forEach((_,h)=>{O(_,h)&&(o||(o=[])).push(_)}),o||ve}function O(r,o){return!q2(o)&&Zh(r)}function ye(r){let o=SS(r),_=Xte(r);return _?ds(o,[_]):o}function wt(r,o,_,h,T){let C=r;return C.members=o,C.properties=ve,C.callSignatures=_,C.constructSignatures=h,C.indexInfos=T,o!==J&&(C.properties=SS(o)),C}function tr(r,o,_,h,T){return wt(Fp(16,r),o,_,h,T)}function Ei(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;let o=ti(r.constructSignatures,h=>!(h.flags&4));if(r.constructSignatures===o)return r;let _=tr(r.symbol,r.members,r.callSignatures,Dt(o)?o:ve,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=_,_.objectTypeWithoutAbstractConstructSignatures=_,_}function vs(r,o){let _;for(let h=r;h;h=h.parent){if(Mh(h)&&h.locals&&!Ev(h)&&(_=o(h.locals,void 0,!0,h)))return _;switch(h.kind){case 307:if(!Jf(h))break;case 267:let T=Un(h);if(_=o(T?.exports||J,void 0,!0,h))return _;break;case 263:case 231:case 264:let C;if((Un(h).members||J).forEach((w,V)=>{w.flags&788968&&(C||(C=po())).set(V,w)}),C&&(_=o(C,void 0,!1,h)))return _;break}}return o(De,void 0,!0)}function ps(r){return r===111551?111551:1920}function ks(r,o,_,h,T=new Map){if(!(r&&!K_(r)))return;let C=as(r),w=C.accessibleChainCache||(C.accessibleChainCache=new Map),V=vs(o,(Er,rn,Bn,wr)=>wr),H=`${h?0:1}|${V&&Sa(V)}|${_}`;if(w.has(H))return w.get(H);let X=Po(r),_e=T.get(X);_e||T.set(X,_e=[]);let Ie=vs(o,Ne);return w.set(H,Ie),Ie;function Ne(Er,rn,Bn){if(!cl(_e,Er))return;let wr=Lt(Er,rn,Bn);return _e.pop(),wr}function dt(Er,rn){return!Ro(Er,o,rn)||!!ks(Er.parent,o,ps(rn),h,T)}function Ct(Er,rn,Bn){return(r===(rn||Er)||sa(r)===sa(rn||Er))&&!Dt(Er.declarations,H0)&&(Bn||dt(sa(Er),_))}function Lt(Er,rn,Bn){return Ct(Er.get(r.escapedName),void 0,rn)?[r]:Iu(Er,Gr=>{if(Gr.flags&2097152&&Gr.escapedName!=="export="&&Gr.escapedName!=="default"&&!(H9(Gr)&&o&&iu(Jr(o)))&&(!h||Dt(Gr.declarations,cT))&&(!Bn||!Dt(Gr.declarations,afe))&&(rn||!kc(Gr,281))){let en=ku(Gr),$n=hr(Gr,en,rn);if($n)return $n}if(Gr.escapedName===r.escapedName&&Gr.exportSymbol&&Ct(sa(Gr.exportSymbol),void 0,rn))return[r]})||(Er===De?hr(lt,lt,rn):void 0)}function hr(Er,rn,Bn){if(Ct(Er,rn,Bn))return[Er];let wr=Mp(rn),Gr=wr&&Ne(wr,!0);if(Gr&&dt(Er,ps(_)))return[Er].concat(Gr)}}function Ro(r,o,_){let h=!1;return vs(o,T=>{let C=sa(T.get(r.escapedName));if(!C)return!1;if(C===r)return!0;let w=C.flags&2097152&&!kc(C,281);return C=w?ku(C):C,(w?Kf(C):C.flags)&_?(h=!0,!0):!1}),h}function K_(r){if(r.declarations&&r.declarations.length){for(let o of r.declarations)switch(o.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function O_(r,o){return G0(r,o,788968,!1,!0).accessibility===0}function a1(r,o){return G0(r,o,111551,!1,!0).accessibility===0}function HE(r,o,_){return G0(r,o,_,!1,!1).accessibility===0}function bp(r,o,_,h,T,C){if(!kt(r))return;let w,V=!1;for(let H of r){let X=ks(H,o,h,!1);if(X){w=H;let Ne=ab(X[0],T);if(Ne)return Ne}if(C&&Dt(H.declarations,H0)){if(T){V=!0;continue}return{accessibility:0}}let _e=ob(H,o,h),Ie=bp(_e,o,_,_===H?ps(h):h,T,C);if(Ie)return Ie}if(V)return{accessibility:0};if(w)return{accessibility:1,errorSymbolName:ns(_,o,h),errorModuleName:w!==_?ns(w,o,1920):void 0}}function mg(r,o,_,h){return G0(r,o,_,h,!0)}function G0(r,o,_,h,T){if(r&&o){let C=bp([r],o,r,_,h,T);if(C)return C;let w=Et(r.declarations,$E);if(w){let V=$E(o);if(w!==V)return{accessibility:2,errorSymbolName:ns(r,o,_),errorModuleName:ns(w),errorNode:vn(o)?o:void 0}}return{accessibility:1,errorSymbolName:ns(r,o,_)}}return{accessibility:0}}function $E(r){let o=Dr(r,ID);return o&&Un(o)}function ID(r){return U_(r)||r.kind===307&&Jf(r)}function H0(r){return t9(r)||r.kind===307&&Jf(r)}function ab(r,o){let _;if(!Oi(ti(r.declarations,C=>C.kind!==80),h))return;return{accessibility:0,aliasesToMakeVisible:_};function h(C){var w,V;if(!$0(C)){let H=M2(C);if(H&&!_i(H,32)&&$0(H.parent))return T(C,H);if(Ci(C)&&fl(C.parent.parent)&&!_i(C.parent.parent,32)&&$0(C.parent.parent.parent))return T(C,C.parent.parent);if(r9(C)&&!_i(C,32)&&$0(C.parent))return T(C,C);if(Zo(C)){if(r.flags&2097152&&vn(C)&&((w=C.parent)!=null&&w.parent)&&Ci(C.parent.parent)&&((V=C.parent.parent.parent)!=null&&V.parent)&&fl(C.parent.parent.parent.parent)&&!_i(C.parent.parent.parent.parent,32)&&C.parent.parent.parent.parent.parent&&$0(C.parent.parent.parent.parent.parent))return T(C,C.parent.parent.parent.parent);if(r.flags&2){let X=Dr(C,fl);return _i(X,32)?!0:$0(X.parent)?T(C,X):!1}}return!1}return!0}function T(C,w){return o&&(Wn(C).isVisible=!0,_=Ga(_,w)),!0}}function c1(r){let o;return r.parent.kind===186||r.parent.kind===233&&!Mg(r.parent)||r.parent.kind===167||r.parent.kind===182&&r.parent.parameterName===r?o=1160127:r.kind===166||r.kind===211||r.parent.kind===271||r.parent.kind===166&&r.parent.left===r||r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r?o=1920:o=788968,o}function TS(r,o,_=!0){let h=c1(r),T=pp(r),C=Ar(o,T.escapedText,h,void 0,!1);return C&&C.flags&262144&&h&788968?{accessibility:0}:!C&&z1(T)&&mg(Un(of(T,!1,!1)),T,h,!1).accessibility===0?{accessibility:0}:C?ab(C,_)||{accessibility:1,errorSymbolName:Hc(T),errorNode:T}:{accessibility:3,errorSymbolName:Hc(T),errorNode:T}}function ns(r,o,_,h=4,T){let C=70221824;h&2&&(C|=128),h&1&&(C|=512),h&8&&(C|=16384),h&32&&(C|=134217728),h&16&&(C|=1073741824);let w=h&4?Ve.symbolToNode:Ve.symbolToEntityName;return T?V(T).getText():Ew(V);function V(H){let X=w(r,_,o,C),_e=o?.kind===307?jhe():v2(),Ie=o&&Jr(o);return _e.writeNode(4,X,Ie,H),H}}function bS(r,o,_=0,h,T){return T?C(T).getText():Ew(C);function C(w){let V;_&262144?V=h===1?185:184:V=h===1?180:179;let H=Ve.signatureToSignatureDeclaration(r,V,o,OD(_)|70221824|512),X=$B(),_e=o&&Jr(o);return X.writeNode(4,H,_e,ZH(w)),w}}function _n(r,o,_=1064960,h=UR("")){let T=q.noErrorTruncation||_&1,C=Ve.typeToTypeNode(r,o,OD(_)|70221824|(T?1:0));if(C===void 0)return M.fail("should always get typenode");let w=r!==Nt?v2():Fhe(),V=o&&Jr(o);w.writeNode(4,C,V,h);let H=h.getText(),X=T?sH*2:bw*2;return X&&H&&H.length>=X?H.substr(0,X-3)+"...":H}function q6(r,o){let _=Mk(r.symbol)?_n(r,r.symbol.valueDeclaration):_n(r),h=Mk(o.symbol)?_n(o,o.symbol.valueDeclaration):_n(o);return _===h&&(_=wD(r),h=wD(o)),[_,h]}function wD(r){return _n(r,void 0,64)}function Mk(r){return r&&!!r.valueDeclaration&&Pt(r.valueDeclaration)&&!Vd(r.valueDeclaration)}function OD(r=0){return r&848330095}function RD(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===kl(r.symbol)||!!(r.flags&524288)&&!!(Qn(r)&16777216))}function pJ(r){return Gi(r)}function dJ(){return{typeToTypeNode:(je,Ee,cr,Or)=>V(Ee,cr,Or,An=>X(je,An)),typePredicateToTypePredicateNode:(je,Ee,cr,Or)=>V(Ee,cr,Or,An=>Xs(je,An)),expressionOrTypeToTypeNode:(je,Ee,cr,Or,An,En)=>V(Or,An,En,Mn=>_(Mn,je,Ee,cr)),serializeTypeForDeclaration:(je,Ee,cr,Or,An,En)=>V(Or,An,En,Mn=>S_(Mn,je,Ee,cr)),serializeReturnTypeForSignature:(je,Ee,cr,Or)=>V(Ee,cr,Or,An=>Wt(An,je)),indexInfoToIndexSignatureDeclaration:(je,Ee,cr,Or)=>V(Ee,cr,Or,An=>Er(je,An,void 0)),signatureToSignatureDeclaration:(je,Ee,cr,Or,An)=>V(cr,Or,An,En=>rn(je,Ee,En)),symbolToEntityName:(je,Ee,cr,Or,An)=>V(cr,Or,An,En=>M_(je,En,Ee,!1)),symbolToExpression:(je,Ee,cr,Or,An)=>V(cr,Or,An,En=>Mc(je,En,Ee)),symbolToTypeParameterDeclarations:(je,Ee,cr,Or)=>V(Ee,cr,Or,An=>sn(je,An)),symbolToParameterDeclaration:(je,Ee,cr,Or)=>V(Ee,cr,Or,An=>Rs(je,An)),typeParameterToDeclaration:(je,Ee,cr,Or)=>V(Ee,cr,Or,An=>Co(je,An)),symbolTableToDeclarationStatements:(je,Ee,cr,Or)=>V(Ee,cr,Or,An=>Mo(je,An)),symbolToNode:(je,Ee,cr,Or,An)=>V(cr,Or,An,En=>w(je,En,Ee))};function r(je,Ee,cr){let Or=pJ(Ee);if(!je.mapper)return Or;let An=cs(Or,je.mapper);return cr&&An!==Or?void 0:An}function o(je,Ee,cr){return(!Ka(Ee)||!(Ee.flags&16)||!je.enclosingFile||je.enclosingFile!==Jr(Bc(Ee)))&&(Ee=U.cloneNode(Ee)),Ee===cr||!cr?Ee:!je.enclosingFile||je.enclosingFile!==Jr(Bc(cr))?Gn(Ee,cr):At(Gn(Ee,cr),cr)}function _(je,Ee,cr,Or){let An=je.flags;Ee&&!(je.flags&-2147483648)&&Pe.serializeTypeOfExpression(Ee,je,Or),je.flags|=-2147483648;let En=h(je,Ee,cr,Or);return je.flags=An,En}function h(je,Ee,cr,Or){if(Ee){let An=sT(Ee)?Ee.type:m2(Ee)?MO(Ee):void 0;if(An&&!Xm(An)){let En=T(je,An,cr,Ee.parent,Or);if(En)return En}}return Or&&(cr=LS(cr)),X(cr,je)}function T(je,Ee,cr,Or,An){let En=cr;An&&(cr=LS(cr,!is(Or)));let Mn=C(je,Ee,cr,Or);if(Mn)return An&&NGe(cr)&&!vm(r(je,Ee),$i=>!!($i.flags&32768))?U.createUnionTypeNode([Mn,U.createKeywordTypeNode(157)]):Mn;if(An&&En!==cr){let $i=C(je,Ee,En,Or);if($i)return U.createUnionTypeNode([$i,U.createKeywordTypeNode(157)])}}function C(je,Ee,cr,Or=je.enclosingDeclaration,An=r(je,Ee,!0)){if(An&&Uq(Or,cr,An)&&v4(Ee,cr)){let En=No(je,Ee);if(En)return En}}function w(je,Ee,cr){if(Ee.flags&1073741824){if(je.valueDeclaration){let An=Ns(je.valueDeclaration);if(An&&Go(An))return An}let Or=as(je).nameType;if(Or&&Or.flags&9216)return Ee.enclosingDeclaration=Or.symbol.valueDeclaration,U.createComputedPropertyName(Mc(Or.symbol,Ee,cr))}return Mc(je,Ee,cr)}function V(je,Ee,cr,Or){let An=cr?.trackSymbol?cr.moduleResolverHost:Ee&134217728?Mbt(e):void 0,En={enclosingDeclaration:je,enclosingFile:je&&Jr(je),flags:Ee||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!q.outFile&&!!je&&Jf(Jr(je)),truncating:!1,usedSymbolNames:void 0,remappedSymbolNames:void 0,remappedSymbolReferences:void 0,reverseMappedStack:void 0,mustCreateTypeParameterSymbolList:!0,typeParameterSymbolList:void 0,mustCreateTypeParametersNamesLookups:!0,typeParameterNames:void 0,typeParameterNamesByText:void 0,typeParameterNamesByTextNextNameCount:void 0,mapper:void 0};En.tracker=new jge(En,cr,An);let Mn=Or(En);return En.truncating&&En.flags&1&&En.tracker.reportTruncationError(),En.encounteredError?void 0:Mn}function H(je){return je.truncating?je.truncating:je.truncating=je.approximateLength>(je.flags&1?sH:bw)}function X(je,Ee){let cr=Ee.flags,Or=_e(je,Ee);return Ee.flags=cr,Or}function _e(je,Ee){var cr,Or;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let An=Ee.flags&8388608;if(Ee.flags&=-8388609,!je){if(!(Ee.flags&262144)){Ee.encounteredError=!0;return}return Ee.approximateLength+=3,U.createKeywordTypeNode(133)}if(Ee.flags&536870912||(je=Sg(je)),je.flags&1)return je.aliasSymbol?U.createTypeReferenceNode(xa(je.aliasSymbol),Lt(je.aliasTypeArguments,Ee)):je===Nt?hO(U.createKeywordTypeNode(133),3,"unresolved"):(Ee.approximateLength+=3,U.createKeywordTypeNode(je===Vt?141:133));if(je.flags&2)return U.createKeywordTypeNode(159);if(je.flags&4)return Ee.approximateLength+=6,U.createKeywordTypeNode(154);if(je.flags&8)return Ee.approximateLength+=6,U.createKeywordTypeNode(150);if(je.flags&64)return Ee.approximateLength+=6,U.createKeywordTypeNode(163);if(je.flags&16&&!je.aliasSymbol)return Ee.approximateLength+=7,U.createKeywordTypeNode(136);if(je.flags&1056){if(je.symbol.flags&8){let jt=e_(je.symbol),yr=ya(jt,Ee,788968);if(oc(jt)===je)return yr;let Xr=Qc(je.symbol);return ap(Xr,1)?_t(yr,U.createTypeReferenceNode(Xr,void 0)):Jh(yr)?(yr.isTypeOf=!0,U.createIndexedAccessTypeNode(yr,U.createLiteralTypeNode(U.createStringLiteral(Xr)))):Yp(yr)?U.createIndexedAccessTypeNode(U.createTypeQueryNode(yr.typeName),U.createLiteralTypeNode(U.createStringLiteral(Xr))):M.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return ya(je.symbol,Ee,788968)}if(je.flags&128)return Ee.approximateLength+=je.value.length+2,U.createLiteralTypeNode(xn(U.createStringLiteral(je.value,!!(Ee.flags&268435456)),16777216));if(je.flags&256){let jt=je.value;return Ee.approximateLength+=(""+jt).length,U.createLiteralTypeNode(jt<0?U.createPrefixUnaryExpression(41,U.createNumericLiteral(-jt)):U.createNumericLiteral(jt))}if(je.flags&2048)return Ee.approximateLength+=uE(je.value).length+1,U.createLiteralTypeNode(U.createBigIntLiteral(je.value));if(je.flags&512)return Ee.approximateLength+=je.intrinsicName.length,U.createLiteralTypeNode(je.intrinsicName==="true"?U.createTrue():U.createFalse());if(je.flags&8192){if(!(Ee.flags&1048576)){if(a1(je.symbol,Ee.enclosingDeclaration))return Ee.approximateLength+=6,ya(je.symbol,Ee,111551);Ee.tracker.reportInaccessibleUniqueSymbolError&&Ee.tracker.reportInaccessibleUniqueSymbolError()}return Ee.approximateLength+=13,U.createTypeOperatorNode(158,U.createKeywordTypeNode(155))}if(je.flags&16384)return Ee.approximateLength+=4,U.createKeywordTypeNode(116);if(je.flags&32768)return Ee.approximateLength+=9,U.createKeywordTypeNode(157);if(je.flags&65536)return Ee.approximateLength+=4,U.createLiteralTypeNode(U.createNull());if(je.flags&131072)return Ee.approximateLength+=5,U.createKeywordTypeNode(146);if(je.flags&4096)return Ee.approximateLength+=6,U.createKeywordTypeNode(155);if(je.flags&67108864)return Ee.approximateLength+=6,U.createKeywordTypeNode(151);if(pO(je))return Ee.flags&4194304&&(!Ee.encounteredError&&!(Ee.flags&32768)&&(Ee.encounteredError=!0),(Or=(cr=Ee.tracker).reportInaccessibleThisError)==null||Or.call(cr)),Ee.approximateLength+=4,U.createThisTypeNode();if(!An&&je.aliasSymbol&&(Ee.flags&16384||O_(je.aliasSymbol,Ee.enclosingDeclaration))){let jt=Lt(je.aliasTypeArguments,Ee);return q2(je.aliasSymbol.escapedName)&&!(je.aliasSymbol.flags&32)?U.createTypeReferenceNode(U.createIdentifier(""),jt):kt(jt)===1&&je.aliasSymbol===zt.symbol?U.createArrayTypeNode(jt[0]):ya(je.aliasSymbol,Ee,788968,jt)}let En=Qn(je);if(En&4)return M.assert(!!(je.flags&524288)),je.node?et(je,Gt):Gt(je);if(je.flags&262144||En&3){if(je.flags&262144&&xs(Ee.inferTypeParameters,je)){Ee.approximateLength+=Qc(je.symbol).length+6;let yr,Xr=hf(je);if(Xr){let dr=gWe(je,!0);dr&&Z0(Xr,dr)||(Ee.approximateLength+=9,yr=Xr&&X(Xr,Ee))}return U.createInferTypeNode(oi(je,Ee,yr))}if(Ee.flags&4&&je.flags&262144){let yr=vo(je,Ee);return Ee.approximateLength+=In(yr).length,U.createTypeReferenceNode(U.createIdentifier(In(yr)),void 0)}if(je.symbol)return ya(je.symbol,Ee,788968);let jt=(je===Wf||je===dc)&&L&&L.symbol?(je===dc?"sub-":"super-")+Qc(L.symbol):"?";return U.createTypeReferenceNode(U.createIdentifier(jt),void 0)}if(je.flags&1048576&&je.origin&&(je=je.origin),je.flags&3145728){let jt=je.flags&1048576?yL(je.types):je.types;if(kt(jt)===1)return X(jt[0],Ee);let yr=Lt(jt,Ee,!0);if(yr&&yr.length>0)return je.flags&1048576?U.createUnionTypeNode(yr):U.createIntersectionTypeNode(yr);!Ee.encounteredError&&!(Ee.flags&262144)&&(Ee.encounteredError=!0);return}if(En&48)return M.assert(!!(je.flags&524288)),Wa(je);if(je.flags&4194304){let jt=je.type;Ee.approximateLength+=6;let yr=X(jt,Ee);return U.createTypeOperatorNode(143,yr)}if(je.flags&134217728){let jt=je.texts,yr=je.types,Xr=U.createTemplateHead(jt[0]),dr=U.createNodeArray(kr(yr,(fn,Kn)=>U.createTemplateLiteralTypeSpan(X(fn,Ee),(KnMn(jt));if(je.flags&33554432){let jt=X(je.baseType,Ee),yr=WD(je)&&dxe("NoInfer",!1);return yr?ya(yr,Ee,788968,[jt]):jt}return M.fail("Should be unreachable.");function Mn(jt){let yr=X(jt.checkType,Ee);if(Ee.approximateLength+=15,Ee.flags&4&&jt.root.isDistributive&&!(jt.checkType.flags&262144)){let an=pd(ta(262144,"T")),fi=vo(an,Ee),ni=U.createTypeReferenceNode(fi);Ee.approximateLength+=37;let no=Z2(jt.root.checkType,an,jt.mapper),So=Ee.inferTypeParameters;Ee.inferTypeParameters=jt.root.inferTypeParameters;let uc=X(cs(jt.root.extendsType,no),Ee);Ee.inferTypeParameters=So;let Sf=$i(cs(r(Ee,jt.root.node.trueType),no)),xp=$i(cs(r(Ee,jt.root.node.falseType),no));return U.createConditionalTypeNode(yr,U.createInferTypeNode(U.createTypeParameterDeclaration(void 0,U.cloneNode(ni.typeName))),U.createConditionalTypeNode(U.createTypeReferenceNode(U.cloneNode(fi)),X(jt.checkType,Ee),U.createConditionalTypeNode(ni,uc,Sf,xp),U.createKeywordTypeNode(146)),U.createKeywordTypeNode(146))}let Xr=Ee.inferTypeParameters;Ee.inferTypeParameters=jt.root.inferTypeParameters;let dr=X(jt.extendsType,Ee);Ee.inferTypeParameters=Xr;let fn=$i(gb(jt)),Kn=$i(hb(jt));return U.createConditionalTypeNode(yr,dr,fn,Kn)}function $i(jt){var yr,Xr,dr;return jt.flags&1048576?(yr=Ee.visitedTypes)!=null&&yr.has(Bu(jt))?(Ee.flags&131072||(Ee.encounteredError=!0,(dr=(Xr=Ee.tracker)==null?void 0:Xr.reportCyclicStructureError)==null||dr.call(Xr)),Ie(Ee)):et(jt,fn=>X(fn,Ee)):X(jt,Ee)}function ls(jt){return!!jL(jt)}function ws(jt){return!!jt.target&&ls(jt.target)&&!ls(jt)}function Gs(jt){var yr;M.assert(!!(jt.flags&524288));let Xr=jt.declaration.readonlyToken?U.createToken(jt.declaration.readonlyToken.kind):void 0,dr=jt.declaration.questionToken?U.createToken(jt.declaration.questionToken.kind):void 0,fn,Kn,an=!VD(jt)&&!(QE(jt).flags&2)&&Ee.flags&4&&!(md(jt).flags&262144&&((yr=hf(md(jt)))==null?void 0:yr.flags)&4194304);if(VD(jt)){if(ws(jt)&&Ee.flags&4){let Sf=pd(ta(262144,"T")),xp=vo(Sf,Ee);Kn=U.createTypeReferenceNode(xp)}fn=U.createTypeOperatorNode(143,Kn||X(QE(jt),Ee))}else if(an){let Sf=pd(ta(262144,"T")),xp=vo(Sf,Ee);Kn=U.createTypeReferenceNode(xp),fn=Kn}else fn=X(md(jt),Ee);let fi=oi(yg(jt),Ee,fn),ni=jt.declaration.nameType?X(_1(jt),Ee):void 0,no=X(nv(X0(jt),!!(iy(jt)&4)),Ee),So=U.createMappedTypeNode(Xr,fi,ni,dr,no,void 0);Ee.approximateLength+=10;let uc=xn(So,1);if(ws(jt)&&Ee.flags&4){let Sf=cs(hf(r(Ee,jt.declaration.typeParameter.constraint.type))||Mt,jt.mapper);return U.createConditionalTypeNode(X(QE(jt),Ee),U.createInferTypeNode(U.createTypeParameterDeclaration(void 0,U.cloneNode(Kn.typeName),Sf.flags&2?void 0:X(Sf,Ee))),uc,U.createKeywordTypeNode(146))}else if(an)return U.createConditionalTypeNode(X(md(jt),Ee),U.createInferTypeNode(U.createTypeParameterDeclaration(void 0,U.cloneNode(Kn.typeName),U.createTypeOperatorNode(143,X(QE(jt),Ee)))),uc,U.createKeywordTypeNode(146));return uc}function Wa(jt){var yr,Xr;let dr=jt.id,fn=jt.symbol;if(fn){if(!!(Qn(jt)&8388608)){let no=jt.node;if(pE(no)){let So=C(Ee,no,jt);if(So)return So}return(yr=Ee.visitedTypes)!=null&&yr.has(dr)?Ie(Ee):et(jt,mt)}let fi=RD(jt)?788968:111551;if(yh(fn.valueDeclaration))return ya(fn,Ee,fi);if(fn.flags&32&&!Vte(fn)&&!(fn.valueDeclaration&&vi(fn.valueDeclaration)&&Ee.flags&2048&&(!ru(fn.valueDeclaration)||mg(fn,Ee.enclosingDeclaration,fi,!1).accessibility!==0))||fn.flags&896||Kn())return ya(fn,Ee,fi);if((Xr=Ee.visitedTypes)!=null&&Xr.has(dr)){let ni=W6(jt);return ni?ya(ni,Ee,788968):Ie(Ee)}else return et(jt,mt)}else return mt(jt);function Kn(){var an;let fi=!!(fn.flags&8192)&&Dt(fn.declarations,no=>co(no)),ni=!!(fn.flags&16)&&(fn.parent||Et(fn.declarations,no=>no.parent.kind===307||no.parent.kind===268));if(fi||ni)return(!!(Ee.flags&4096)||((an=Ee.visitedTypes)==null?void 0:an.has(dr)))&&(!(Ee.flags&8)||a1(fn,Ee.enclosingDeclaration))}}function et(jt,yr){var Xr,dr,fn;let Kn=jt.id,an=Qn(jt)&16&&jt.symbol&&jt.symbol.flags&32,fi=Qn(jt)&4&&jt.node?"N"+Sa(jt.node):jt.flags&16777216?"N"+Sa(jt.root.node):jt.symbol?(an?"+":"")+Po(jt.symbol):void 0;Ee.visitedTypes||(Ee.visitedTypes=new Set),fi&&!Ee.symbolDepth&&(Ee.symbolDepth=new Map);let ni=Ee.enclosingDeclaration&&Wn(Ee.enclosingDeclaration),no=`${Bu(jt)}|${Ee.flags}`;ni&&(ni.serializedTypes||(ni.serializedTypes=new Map));let So=(Xr=ni?.serializedTypes)==null?void 0:Xr.get(no);if(So)return(dr=So.trackedSymbols)==null||dr.forEach(([np,aI,VS])=>Ee.tracker.trackSymbol(np,aI,VS)),So.truncating&&(Ee.truncating=!0),Ee.approximateLength+=So.addedLength,dx(So.node);let uc;if(fi){if(uc=Ee.symbolDepth.get(fi)||0,uc>10)return Ie(Ee);Ee.symbolDepth.set(fi,uc+1)}Ee.visitedTypes.add(Kn);let Sf=Ee.trackedSymbols;Ee.trackedSymbols=void 0;let xp=Ee.approximateLength,US=yr(jt),Cb=Ee.approximateLength-xp;return!Ee.reportedDiagnostic&&!Ee.encounteredError&&((fn=ni?.serializedTypes)==null||fn.set(no,{node:US,truncating:Ee.truncating,addedLength:Cb,trackedSymbols:Ee.trackedSymbols})),Ee.visitedTypes.delete(Kn),fi&&Ee.symbolDepth.set(fi,uc),Ee.trackedSymbols=Sf,US;function dx(np){return!Ka(np)&&Ps(np)===np?np:o(Ee,U.cloneNode(jr(np,dx,void 0,Sh,dx)),np)}function Sh(np,aI,VS,mx,y7){return np&&np.length===0?At(U.createNodeArray(void 0,np.hasTrailingComma),np):Qr(np,aI,VS,mx,y7)}}function mt(jt){if(Xf(jt)||jt.containsError)return Gs(jt);let yr=vg(jt);if(!yr.properties.length&&!yr.indexInfos.length){if(!yr.callSignatures.length&&!yr.constructSignatures.length)return Ee.approximateLength+=2,xn(U.createTypeLiteralNode(void 0),1);if(yr.callSignatures.length===1&&!yr.constructSignatures.length){let an=yr.callSignatures[0];return rn(an,184,Ee)}if(yr.constructSignatures.length===1&&!yr.callSignatures.length){let an=yr.constructSignatures[0];return rn(an,185,Ee)}}let Xr=ti(yr.constructSignatures,an=>!!(an.flags&4));if(Dt(Xr)){let an=kr(Xr,ni=>$2(ni));return yr.callSignatures.length+(yr.constructSignatures.length-Xr.length)+yr.indexInfos.length+(Ee.flags&2048?yy(yr.properties,ni=>!(ni.flags&4194304)):kt(yr.properties))&&an.push(Ei(yr)),X(wo(an),Ee)}let dr=Ee.flags;Ee.flags|=4194304;let fn=_r(yr);Ee.flags=dr;let Kn=U.createTypeLiteralNode(fn);return Ee.approximateLength+=2,xn(Kn,Ee.flags&1024?0:1),Kn}function Gt(jt){let yr=hc(jt);if(jt.target===zt||jt.target===Kr){if(Ee.flags&2){let fn=X(yr[0],Ee);return U.createTypeReferenceNode(jt.target===zt?"Array":"ReadonlyArray",[fn])}let Xr=X(yr[0],Ee),dr=U.createArrayTypeNode(Xr);return jt.target===zt?dr:U.createTypeOperatorNode(148,dr)}else if(jt.target.objectFlags&8){if(yr=js(yr,(Xr,dr)=>nv(Xr,!!(jt.target.elementFlags[dr]&2))),yr.length>0){let Xr=p1(jt),dr=Lt(yr.slice(0,Xr),Ee);if(dr){let{labeledElementDeclarations:fn}=jt.target;for(let an=0;an0){let ni=(jt.target.typeParameters||ve).length;Kn=Lt(yr.slice(dr,ni),Ee)}let an=Ee.flags;Ee.flags|=16;let fi=ya(jt.symbol,Ee,788968,Kn);return Ee.flags=an,fn?_t(fn,fi):fi}}}function _t(jt,yr){if(Jh(jt)){let Xr=jt.typeArguments,dr=jt.qualifier;dr&&($e(dr)?Xr!==i2(dr)&&(dr=Mv(U.cloneNode(dr),Xr)):Xr!==i2(dr.right)&&(dr=U.updateQualifiedName(dr,dr.left,Mv(U.cloneNode(dr.right),Xr)))),Xr=yr.typeArguments;let fn=vr(yr);for(let Kn of fn)dr=dr?U.createQualifiedName(dr,Kn):Kn;return U.updateImportTypeNode(jt,jt.argument,jt.attributes,dr,Xr,jt.isTypeOf)}else{let Xr=jt.typeArguments,dr=jt.typeName;$e(dr)?Xr!==i2(dr)&&(dr=Mv(U.cloneNode(dr),Xr)):Xr!==i2(dr.right)&&(dr=U.updateQualifiedName(dr,dr.left,Mv(U.cloneNode(dr.right),Xr))),Xr=yr.typeArguments;let fn=vr(yr);for(let Kn of fn)dr=U.createQualifiedName(dr,Kn);return U.updateTypeReferenceNode(jt,dr,Xr)}}function vr(jt){let yr=jt.typeName,Xr=[];for(;!$e(yr);)Xr.unshift(yr.right),yr=yr.left;return Xr.unshift(yr),Xr}function _r(jt){if(H(Ee))return[U.createPropertySignature(void 0,"...",void 0,void 0)];let yr=[];for(let fn of jt.callSignatures)yr.push(rn(fn,179,Ee));for(let fn of jt.constructSignatures)fn.flags&4||yr.push(rn(fn,180,Ee));for(let fn of jt.indexInfos)yr.push(Er(fn,Ee,jt.objectFlags&1024?Ie(Ee):void 0));let Xr=jt.properties;if(!Xr)return yr;let dr=0;for(let fn of Xr){if(dr++,Ee.flags&2048){if(fn.flags&4194304)continue;Cd(fn)&6&&Ee.tracker.reportPrivateInBaseOfClassExpression&&Ee.tracker.reportPrivateInBaseOfClassExpression(Zi(fn.escapedName))}if(H(Ee)&&dr+2!(Gt.flags&32768)),0);for(let Gt of mt){let _t=rn(Gt,173,Ee,{name:$i,questionToken:ls});cr.push(et(_t))}if(mt.length||!ls)return}let ws;Ne(je,Ee)?ws=Ie(Ee):(An&&(Ee.reverseMappedStack||(Ee.reverseMappedStack=[]),Ee.reverseMappedStack.push(je)),ws=En?S_(Ee,void 0,En,je):U.createKeywordTypeNode(133),An&&Ee.reverseMappedStack.pop());let Gs=xg(je)?[U.createToken(148)]:void 0;Gs&&(Ee.approximateLength+=9);let Wa=U.createPropertySignature(Gs,$i,ls,ws);cr.push(et(Wa));function et(mt){var Gt;let _t=(Gt=je.declarations)==null?void 0:Gt.find(vr=>vr.kind===348);if(_t){let vr=B3(_t.comment);vr&&hT(mt,[{kind:3,text:`*
 * `+vr.replace(/\n/g,`
 * `)+`
 `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else je.valueDeclaration&&Ct(Ee,mt,je.valueDeclaration);return mt}}function Ct(je,Ee,cr){return je.enclosingFile&&je.enclosingFile===Jr(cr)?eu(Ee,cr):Ee}function Lt(je,Ee,cr){if(Dt(je)){if(H(Ee))if(cr){if(je.length>2)return[X(je[0],Ee),U.createTypeReferenceNode(`... ${je.length-2} more ...`,void 0),X(je[je.length-1],Ee)]}else return[U.createTypeReferenceNode("...",void 0)];let An=!(Ee.flags&64)?vd():void 0,En=[],Mn=0;for(let $i of je){if(Mn++,H(Ee)&&Mn+2{if(!Ipe(ls,([ws],[Gs])=>hr(ws,Gs)))for(let[ws,Gs]of ls)En[Gs]=X(ws,Ee)}),Ee.flags=$i}return En}}function hr(je,Ee){return je===Ee||!!je.symbol&&je.symbol===Ee.symbol||!!je.aliasSymbol&&je.aliasSymbol===Ee.aliasSymbol}function Er(je,Ee,cr){let Or=j_e(je)||"x",An=X(je.keyType,Ee),En=U.createParameterDeclaration(void 0,void 0,Or,void 0,An,void 0);return cr||(cr=X(je.type||Me,Ee)),!je.type&&!(Ee.flags&2097152)&&(Ee.encounteredError=!0),Ee.approximateLength+=Or.length+4,U.createIndexSignature(je.isReadonly?[U.createToken(148)]:void 0,[En],cr)}function rn(je,Ee,cr,Or){var An;let En,Mn,$i=Gze(je,!0)[0],ls=en(cr,je.declaration,$i,je.typeParameters,je.parameters,je.mapper);cr.approximateLength+=3,cr.flags&32&&je.target&&je.mapper&&je.target.typeParameters?Mn=je.target.typeParameters.map(_t=>X(cs(_t,je.mapper),cr)):En=je.typeParameters&&je.typeParameters.map(_t=>Co(_t,cr));let ws=cr.flags;cr.flags&=-257;let Gs=(Dt($i,_t=>_t!==$i[$i.length-1]&&!!(ul(_t)&32768))?je.parameters:$i).map(_t=>Rs(_t,cr,Ee===176)),Wa=cr.flags&33554432?void 0:$n(je,cr);Wa&&Gs.unshift(Wa),cr.flags=ws;let et=Wt(cr,je),mt=Or?.modifiers;if(Ee===185&&je.flags&4){let _t=Ug(mt);mt=U.createModifiersFromModifierFlags(_t|64)}let Gt=Ee===179?U.createCallSignature(En,Gs,et):Ee===180?U.createConstructSignature(En,Gs,et):Ee===173?U.createMethodSignature(mt,Or?.name??U.createIdentifier(""),Or?.questionToken,En,Gs,et):Ee===174?U.createMethodDeclaration(mt,void 0,Or?.name??U.createIdentifier(""),void 0,En,Gs,et,void 0):Ee===176?U.createConstructorDeclaration(mt,Gs,void 0):Ee===177?U.createGetAccessorDeclaration(mt,Or?.name??U.createIdentifier(""),Gs,et,void 0):Ee===178?U.createSetAccessorDeclaration(mt,Or?.name??U.createIdentifier(""),Gs,void 0):Ee===181?U.createIndexSignature(mt,Gs,et):Ee===317?U.createJSDocFunctionType(Gs,et):Ee===184?U.createFunctionTypeNode(En,Gs,et??U.createTypeReferenceNode(U.createIdentifier(""))):Ee===185?U.createConstructorTypeNode(mt,En,Gs,et??U.createTypeReferenceNode(U.createIdentifier(""))):Ee===262?U.createFunctionDeclaration(mt,void 0,Or?.name?ao(Or.name,$e):U.createIdentifier(""),En,Gs,et,void 0):Ee===218?U.createFunctionExpression(mt,void 0,Or?.name?ao(Or.name,$e):U.createIdentifier(""),En,Gs,et,U.createBlock([])):Ee===219?U.createArrowFunction(mt,En,Gs,et,void 0,U.createBlock([])):M.assertNever(Ee);if(Mn&&(Gt.typeArguments=U.createNodeArray(Mn)),((An=je.declaration)==null?void 0:An.kind)===323&&je.declaration.parent.kind===339){let _t=Hc(je.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(vr=>vr.replace(/^\s+/," ")).join(`
`);hO(Gt,3,_t,!0)}return ls?.(),Gt}function Bn(je){return Us(je)||k0(je)||a2(je)}function wr(je){return Us(je)||k0(je)?gd(je).typeParameters:dE(je)?Oxe(je):[XE(Un(je.typeParameter))]}function Gr(je){return Us(je)||k0(je)?gd(je).parameters:void 0}function en(je,Ee,cr,Or,An,En){let Mn=av(je),$i,ls,ws=je.enclosingDeclaration,Gs=je.mapper;if(En&&(je.mapper=En),je.enclosingDeclaration&&Ee){let et=function(mt,Gt){M.assert(je.enclosingDeclaration);let _t;Wn(je.enclosingDeclaration).fakeScopeForSignatureDeclaration===mt?_t=je.enclosingDeclaration:je.enclosingDeclaration.parent&&Wn(je.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===mt&&(_t=je.enclosingDeclaration.parent),M.assertOptionalNode(_t,Js);let vr=_t?.locals??po(),_r,jt;if(Gt((yr,Xr)=>{if(_t){let dr=vr.get(yr);dr?jt=Ut(jt,{name:yr,oldSymbol:dr}):_r=Ut(_r,yr)}vr.set(yr,Xr)}),_t)return function(){Et(_r,Xr=>vr.delete(Xr)),Et(jt,Xr=>vr.set(Xr.name,Xr.oldSymbol))};{let yr=U.createBlock(ve);Wn(yr).fakeScopeForSignatureDeclaration=mt,yr.locals=vr,fa(yr,je.enclosingDeclaration),je.enclosingDeclaration=yr}};var Wa=et;$i=Dt(cr)?et("params",mt=>{if(cr)for(let Gt=0;Gt{if(is(_r)&&$s(_r.name))return jt(_r.name),!0;return;function jt(Xr){Et(Xr.elements,dr=>{switch(dr.kind){case 232:return;case 208:return yr(dr);default:return M.assertNever(dr)}})}function yr(Xr){if($s(Xr.name))return jt(Xr.name);let dr=Un(Xr);mt(dr.escapedName,dr)}})||mt(_t.escapedName,_t)}}):void 0,je.flags&4&&Dt(Or)&&(ls=et("typeParams",mt=>{for(let Gt of Or??ve){let _t=vo(Gt,je).escapedText;mt(_t,Gt.symbol)}}))}return()=>{$i?.(),ls?.(),Mn(),je.enclosingDeclaration=ws,je.mapper=Gs}}function $n(je,Ee){if(je.thisParameter)return Rs(je.thisParameter,Ee);if(je.declaration&&vn(je.declaration)){let cr=I5(je.declaration);if(cr&&cr.typeExpression)return U.createParameterDeclaration(void 0,void 0,"this",void 0,X(r(Ee,cr.typeExpression),Ee))}}function oi(je,Ee,cr){let Or=Ee.flags;Ee.flags&=-513;let An=U.createModifiersFromModifierFlags(Xxe(je)),En=vo(je,Ee),Mn=H2(je),$i=Mn&&X(Mn,Ee);return Ee.flags=Or,U.createTypeParameterDeclaration(An,En,cr,$i)}function ai(je,Ee,cr){return Ee&&C(cr,Ee,je)||X(je,cr)}function Co(je,Ee,cr=hf(je)){let Or=cr&&ai(cr,Zte(je),Ee);return oi(je,Ee,Or)}function Xs(je,Ee){let cr=je.kind===2||je.kind===3?U.createToken(131):void 0,Or=je.kind===1||je.kind===3?xn(U.createIdentifier(je.parameterName),16777216):U.createThisTypeNode(),An=je.type&&X(je.type,Ee);return U.createTypePredicateNode(cr,Or,An)}function oa(je){let Ee=kc(je,169);if(Ee)return Ee;if(!Fh(je))return kc(je,341)}function Rs(je,Ee,cr){let Or=oa(je),An=yn(je),En=S_(Ee,Or,An,je),Mn=!(Ee.flags&8192)&&cr&&Or&&Im(Or)?kr(qb(Or),U.cloneNode):void 0,ls=Or&&Lh(Or)||ul(je)&32768?U.createToken(26):void 0,ws=Rc(je,Or,Ee),Wa=Or&&AJ(Or)||ul(je)&16384?U.createToken(58):void 0,et=U.createParameterDeclaration(Mn,ls,ws,Wa,En,void 0);return Ee.approximateLength+=Qc(je).length+3,et}function Rc(je,Ee,cr){return Ee&&Ee.name?Ee.name.kind===80?xn(U.cloneNode(Ee.name),16777216):Ee.name.kind===166?xn(U.cloneNode(Ee.name.right),16777216):Or(Ee.name):Qc(je);function Or(An){return En(An);function En(Mn){cr.tracker.canTrackSymbol&&Go(Mn)&&Wte(Mn)&&i_(Mn.expression,cr.enclosingDeclaration,cr);let $i=jr(Mn,En,void 0,void 0,En);return Zo($i)&&($i=U.updateBindingElement($i,$i.dotDotDotToken,$i.propertyName,$i.name,void 0)),Ka($i)||($i=U.cloneNode($i)),xn($i,16777217)}}}function i_(je,Ee,cr){if(!cr.tracker.canTrackSymbol)return;let Or=pp(je),An=Ar(Or,Or.escapedText,1160127,void 0,!0);An&&cr.tracker.trackSymbol(An,Ee,111551)}function sl(je,Ee,cr,Or){return Ee.tracker.trackSymbol(je,Ee.enclosingDeclaration,cr),zr(je,Ee,cr,Or)}function zr(je,Ee,cr,Or){let An;return!(je.flags&262144)&&(Ee.enclosingDeclaration||Ee.flags&64)&&!(Ee.flags&134217728)?(An=M.checkDefined(Mn(je,cr,!0)),M.assert(An&&An.length>0)):An=[je],An;function Mn($i,ls,ws){let Gs=ks($i,Ee.enclosingDeclaration,ls,!!(Ee.flags&128)),Wa;if(!Gs||Ro(Gs[0],Ee.enclosingDeclaration,Gs.length===1?ls:ps(ls))){let mt=ob(Gs?Gs[0]:$i,Ee.enclosingDeclaration,ls);if(kt(mt)){Wa=mt.map(vr=>Dt(vr.declarations,H0)?ss(vr,Ee):void 0);let Gt=mt.map((vr,_r)=>_r);Gt.sort(et);let _t=Gt.map(vr=>mt[vr]);for(let vr of _t){let _r=Mn(vr,ps(ls),!1);if(_r){if(vr.exports&&vr.exports.get("export=")&&Um(vr.exports.get("export="),$i)){Gs=_r;break}Gs=_r.concat(Gs||[vS(vr,$i)||$i]);break}}}}if(Gs)return Gs;if(ws||!($i.flags&6144))return!ws&&!Or&&Et($i.declarations,H0)?void 0:[$i];function et(mt,Gt){let _t=Wa[mt],vr=Wa[Gt];if(_t&&vr){let _r=zp(vr);return zp(_t)===_r?OB(_t)-OB(vr):_r?-1:1}return 0}}}function sn(je,Ee){let cr;return iI(je).flags&524384&&(cr=U.createNodeArray(kr(u1(je),An=>Co(An,Ee)))),cr}function Hi(je,Ee,cr){var Or;M.assert(je&&0<=Ee&&Eeg1(Gs,ls.links.mapper)),cr)}else Mn=sn(An,cr)}return Mn}function wn(je){return mE(je.objectType)?wn(je.objectType):je}function ss(je,Ee,cr){let Or=kc(je,307);if(!Or){let ws=di(je.declarations,Gs=>DD(Gs,je));ws&&(Or=kc(ws,307))}if(Or&&Or.moduleName!==void 0)return Or.moduleName;if(!Or&&Mge.test(je.escapedName))return je.escapedName.substring(1,je.escapedName.length-1);if(!Ee.enclosingFile||!Ee.tracker.moduleResolverHost)return Mge.test(je.escapedName)?je.escapedName.substring(1,je.escapedName.length-1):Jr(gH(je)).fileName;let An=Ee.enclosingFile,En=cr||An?.impliedNodeFormat,Mn=qO(An.path,En),$i=as(je),ls=$i.specifierCache&&$i.specifierCache.get(Mn);if(!ls){let ws=!!q.outFile,{moduleResolverHost:Gs}=Ee.tracker,Wa=ws?{...q,baseUrl:Gs.getCommonSourceDirectory()}:q;ls=Fo(DRe(je,fr,Wa,An,Gs,{importModuleSpecifierPreference:ws?"non-relative":"project-relative",importModuleSpecifierEnding:ws?"minimal":En===99?"js":void 0},{overrideImportMode:cr})),$i.specifierCache??($i.specifierCache=new Map),$i.specifierCache.set(Mn,ls)}return ls}function xa(je){let Ee=U.createIdentifier(Zi(je.escapedName));return je.parent?U.createQualifiedName(xa(je.parent),Ee):Ee}function ya(je,Ee,cr,Or){let An=sl(je,Ee,cr,!(Ee.flags&16384)),En=cr===111551;if(Dt(An[0].declarations,H0)){let ls=An.length>1?$i(An,An.length-1,1):void 0,ws=Or||Hi(An,0,Ee),Gs=Jr(Bc(Ee.enclosingDeclaration)),Wa=X5(An[0]),et,mt;if((cf(q)===3||cf(q)===99)&&Wa?.impliedNodeFormat===99&&Wa.impliedNodeFormat!==Gs?.impliedNodeFormat&&(et=ss(An[0],Ee,99),mt=U.createImportAttributes(U.createNodeArray([U.createImportAttribute(U.createStringLiteral("resolution-mode"),U.createStringLiteral("import"))]))),et||(et=ss(An[0],Ee)),!(Ee.flags&67108864)&&cf(q)!==1&&et.includes("/node_modules/")){let _t=et;if(cf(q)===3||cf(q)===99){let vr=Gs?.impliedNodeFormat===99?1:99;et=ss(An[0],Ee,vr),et.includes("/node_modules/")?et=_t:mt=U.createImportAttributes(U.createNodeArray([U.createImportAttribute(U.createStringLiteral("resolution-mode"),U.createStringLiteral(vr===99?"import":"require"))]))}mt||(Ee.encounteredError=!0,Ee.tracker.reportLikelyUnsafeImportRequiredError&&Ee.tracker.reportLikelyUnsafeImportRequiredError(_t))}let Gt=U.createLiteralTypeNode(U.createStringLiteral(et));if(Ee.approximateLength+=et.length+10,!ls||xf(ls)){if(ls){let _t=$e(ls)?ls:ls.right;Mv(_t,void 0)}return U.createImportTypeNode(Gt,mt,ls,ws,En)}else{let _t=wn(ls),vr=_t.objectType.typeName;return U.createIndexedAccessTypeNode(U.createImportTypeNode(Gt,mt,vr,ws,En),_t.indexType)}}let Mn=$i(An,An.length-1,0);if(mE(Mn))return Mn;if(En)return U.createTypeQueryNode(Mn);{let ls=$e(Mn)?Mn:Mn.right,ws=i2(ls);return Mv(ls,void 0),U.createTypeReferenceNode(Mn,ws)}function $i(ls,ws,Gs){let Wa=ws===ls.length-1?Or:Hi(ls,ws,Ee),et=ls[ws],mt=ls[ws-1],Gt;if(ws===0)Ee.flags|=16777216,Gt=YE(et,Ee),Ee.approximateLength+=(Gt?Gt.length:0)+1,Ee.flags^=16777216;else if(mt&&Mp(mt)){let vr=Mp(mt);Iu(vr,(_r,jt)=>{if(Um(_r,et)&&!kL(jt)&&jt!=="export=")return Gt=Zi(jt),!0})}if(Gt===void 0){let vr=di(et.declarations,Ns);if(vr&&Go(vr)&&xf(vr.expression)){let _r=$i(ls,ws-1,Gs);return xf(_r)?U.createIndexedAccessTypeNode(U.createParenthesizedType(U.createTypeQueryNode(_r)),U.createTypeQueryNode(vr.expression)):_r}Gt=YE(et,Ee)}if(Ee.approximateLength+=Gt.length+1,!(Ee.flags&16)&&mt&&kS(mt)&&kS(mt).get(et.escapedName)&&Um(kS(mt).get(et.escapedName),et)){let vr=$i(ls,ws-1,Gs);return mE(vr)?U.createIndexedAccessTypeNode(vr,U.createLiteralTypeNode(U.createStringLiteral(Gt))):U.createIndexedAccessTypeNode(U.createTypeReferenceNode(vr,Wa),U.createLiteralTypeNode(U.createStringLiteral(Gt)))}let _t=xn(U.createIdentifier(Gt),16777216);if(Wa&&Mv(_t,U.createNodeArray(Wa)),_t.symbol=et,ws>Gs){let vr=$i(ls,ws-1,Gs);return xf(vr)?U.createQualifiedName(vr,_t):M.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _t}}function v_(je,Ee,cr){let Or=Ar(Ee.enclosingDeclaration,je,788968,void 0,!1);return Or&&Or.flags&262144?Or!==cr.symbol:!1}function vo(je,Ee){var cr,Or,An,En;if(Ee.flags&4&&Ee.typeParameterNames){let ls=Ee.typeParameterNames.get(Bu(je));if(ls)return ls}let Mn=M_(je.symbol,Ee,788968,!0);if(!(Mn.kind&80))return U.createIdentifier("(Missing type parameter)");let $i=(Or=(cr=je.symbol)==null?void 0:cr.declarations)==null?void 0:Or[0];if($i&&Cc($i)&&(Mn=o(Ee,Mn,$i.name)),Ee.flags&4){let ls=Mn.escapedText,ws=((An=Ee.typeParameterNamesByTextNextNameCount)==null?void 0:An.get(ls))||0,Gs=ls;for(;(En=Ee.typeParameterNamesByText)!=null&&En.has(Gs)||v_(Gs,Ee,je);)ws++,Gs=`${ls}_${ws}`;if(Gs!==ls){let Wa=i2(Mn);Mn=U.createIdentifier(Gs),Mv(Mn,Wa)}Ee.mustCreateTypeParametersNamesLookups&&(Ee.mustCreateTypeParametersNamesLookups=!1,Ee.typeParameterNames=new Map(Ee.typeParameterNames),Ee.typeParameterNamesByTextNextNameCount=new Map(Ee.typeParameterNamesByTextNextNameCount),Ee.typeParameterNamesByText=new Set(Ee.typeParameterNamesByText)),Ee.typeParameterNamesByTextNextNameCount.set(ls,ws),Ee.typeParameterNames.set(Bu(je),Mn),Ee.typeParameterNamesByText.add(Gs)}return Mn}function M_(je,Ee,cr,Or){let An=sl(je,Ee,cr);return Or&&An.length!==1&&!Ee.encounteredError&&!(Ee.flags&65536)&&(Ee.encounteredError=!0),En(An,An.length-1);function En(Mn,$i){let ls=Hi(Mn,$i,Ee),ws=Mn[$i];$i===0&&(Ee.flags|=16777216);let Gs=YE(ws,Ee);$i===0&&(Ee.flags^=16777216);let Wa=xn(U.createIdentifier(Gs),16777216);return ls&&Mv(Wa,U.createNodeArray(ls)),Wa.symbol=ws,$i>0?U.createQualifiedName(En(Mn,$i-1),Wa):Wa}}function Mc(je,Ee,cr){let Or=sl(je,Ee,cr);return An(Or,Or.length-1);function An(En,Mn){let $i=Hi(En,Mn,Ee),ls=En[Mn];Mn===0&&(Ee.flags|=16777216);let ws=YE(ls,Ee);Mn===0&&(Ee.flags^=16777216);let Gs=ws.charCodeAt(0);if(yR(Gs)&&Dt(ls.declarations,H0))return U.createStringLiteral(ss(ls,Ee));if(Mn===0||J$(ws,ee)){let Wa=xn(U.createIdentifier(ws),16777216);return $i&&Mv(Wa,U.createNodeArray($i)),Wa.symbol=ls,Mn>0?U.createPropertyAccessExpression(An(En,Mn-1),Wa):Wa}else{Gs===91&&(ws=ws.substring(1,ws.length-1),Gs=ws.charCodeAt(0));let Wa;if(yR(Gs)&&!(ls.flags&8)?Wa=U.createStringLiteral(em(ws).replace(/\\./g,et=>et.substring(1)),Gs===39):""+ +ws===ws&&(Wa=U.createNumericLiteral(+ws)),!Wa){let et=xn(U.createIdentifier(ws),16777216);$i&&Mv(et,U.createNodeArray($i)),et.symbol=ls,Wa=et}return U.createElementAccessExpression(An(En,Mn-1),Wa)}}}function Lc(je){let Ee=Ns(je);return Ee?Go(Ee)?!!(ys(Ee.expression).flags&402653316):cc(Ee)?!!(ys(Ee.argumentExpression).flags&402653316):jo(Ee):!1}function hd(je){let Ee=Ns(je);return!!(Ee&&jo(Ee)&&(Ee.singleQuote||!Ka(Ee)&&fs(Hc(Ee,!1),"'")))}function gl(je,Ee){let cr=!!kt(je.declarations)&&Oi(je.declarations,Lc),Or=!!kt(je.declarations)&&Oi(je.declarations,hd),An=!!(je.flags&8192),En=jl(je,Ee,Or,cr,An);if(En)return En;let Mn=Zi(je.escapedName);return Sj(Mn,Qo(q),Or,cr,An)}function jl(je,Ee,cr,Or,An){let En=as(je).nameType;if(En){if(En.flags&384){let Mn=""+En.value;return!ap(Mn,Qo(q))&&(Or||!Oy(Mn))?U.createStringLiteral(Mn,!!cr):Oy(Mn)&&fs(Mn,"-")?U.createComputedPropertyName(U.createPrefixUnaryExpression(41,U.createNumericLiteral(-Mn))):Sj(Mn,Qo(q),cr,Or,An)}if(En.flags&8192)return U.createComputedPropertyName(Mc(En.symbol,Ee,111551))}}function av(je){let Ee=je.mustCreateTypeParameterSymbolList,cr=je.mustCreateTypeParametersNamesLookups;je.mustCreateTypeParameterSymbolList=!0,je.mustCreateTypeParametersNamesLookups=!0;let Or=je.typeParameterNames,An=je.typeParameterNamesByText,En=je.typeParameterNamesByTextNextNameCount,Mn=je.typeParameterSymbolList;return()=>{je.typeParameterNames=Or,je.typeParameterNamesByText=An,je.typeParameterNamesByTextNextNameCount=En,je.typeParameterSymbolList=Mn,je.mustCreateTypeParameterSymbolList=Ee,je.mustCreateTypeParametersNamesLookups=cr}}function oI(je,Ee){return je.declarations&&jn(je.declarations,cr=>!!Fne(cr)&&(!Ee||!!Dr(cr,Or=>Or===Ee)))}function v4(je,Ee){if(!(Qn(Ee)&4)||!Yp(je))return!0;PJ(je);let cr=Wn(je).resolvedSymbol,Or=cr&&oc(cr);return!Or||Or!==Ee.target?!0:kt(je.typeArguments)>=fh(Ee.target.typeParameters)}function h7(je){for(;Wn(je).fakeScopeForSignatureDeclaration;)je=je.parent;return je}function S_(je,Ee,cr,Or){var An,En;let Mn=Ee&&(is(Ee)||Nd(Ee))&&Lne(Ee),$i=je.enclosingDeclaration,ls=je.flags;if(Ee&&Jpe(Ee)&&!(je.flags&-2147483648)&&Pe.serializeTypeOfDeclaration(Ee,je),je.flags|=-2147483648,$i&&(!la(cr)||je.flags&1)){let et=Ee&&Fne(Ee)?Ee:oI(Or);if(et&&!$a(et)&&!$p(et)){let mt=Fne(et),Gt=Mn||!!(Or.flags&4&&Or.flags&16777216&&mN(et)&&((An=Or.links)!=null&&An.mappedType)&&NGe(cr)),_t=!FA(mt)&&T(je,mt,cr,et,Gt);if(_t)return je.flags=ls,_t}}cr.flags&8192&&cr.symbol===Or&&(!je.enclosingDeclaration||Dt(Or.declarations,et=>Jr(et)===Jr(je.enclosingDeclaration)))&&(je.flags|=1048576);let ws=Ee??Or.valueDeclaration??((En=Or.declarations)==null?void 0:En[0]),Gs=ws&&nJt(ws)?VKe(ws):void 0,Wa=_(je,Gs,cr,Mn);return je.flags=ls,Wa}function Uq(je,Ee,cr){return cr===Ee?!0:je&&(is(je)||If(je)||Ds(je))&&je.questionToken?ym(Ee,524288)===cr:!1}function Wt(je,Ee){let cr=je.flags&256,Or=je.flags;cr&&(je.flags&=-257);let An,En=Na(Ee);return En&&!(cr&&Pa(En))?(Ee.declaration&&!(je.flags&-2147483648)&&Pe.serializeReturnTypeForSignature(Ee.declaration,je),je.flags|=-2147483648,An=Ir(je,Ee)):cr||(An=U.createKeywordTypeNode(133)),je.flags=Or,An}function Ir(je,Ee){let cr=Ud(Ee),Or=Na(Ee);if(je.enclosingDeclaration&&(!la(Or)||je.flags&1)&&Ee.declaration&&!Ka(Ee.declaration)){let En=pJt(Ee.declaration);if(En){let Mn=T(je,En,Or,je.enclosingDeclaration);if(Mn)return Mn}}if(cr)return Xs(cr,je);let An=Ee.declaration&&VKe(Ee.declaration);return _(je,An,Or)}function Hr(je,Ee){let cr=!1,Or=pp(je);if(vn(je)&&(Xx(Or)||ky(Or.parent)||uf(Or.parent)&&IH(Or.parent.left)&&Xx(Or.parent.right)))return cr=!0,{introducesError:cr,node:je};let An=c1(je),En;if(z1(Or))return En=Un(of(Or,!1,!1)),mg(En,Or,An,!1).accessibility!==0&&(cr=!0,Ee.tracker.reportInaccessibleThisError()),{introducesError:cr,node:Mn(je)};if(En=nl(Or,An,!0,!0),Ee.enclosingDeclaration&&!(En&&En.flags&262144)){En=Lp(En);let $i=nl(Or,An,!0,!0,Ee.enclosingDeclaration);if($i===Tt||$i===void 0&&En!==void 0||$i&&En&&!Um(Lp($i),En))return $i!==Tt&&Ee.tracker.reportInferenceFallback(je),cr=!0,{introducesError:cr,node:je,sym:En}}if(En)return En.flags&1&&En.valueDeclaration&&(dT(En.valueDeclaration)||Nd(En.valueDeclaration))?{introducesError:cr,node:Mn(je)}:(!(En.flags&262144)&&!Bh(je)&&mg(En,Ee.enclosingDeclaration,An,!1).accessibility!==0?(Ee.tracker.reportInferenceFallback(je),cr=!0):Ee.tracker.trackSymbol(En,Ee.enclosingDeclaration,An),{introducesError:cr,node:Mn(je)});return{introducesError:cr,node:je};function Mn($i){if($i===Or){let ws=oc(En),Gs=En.flags&262144?vo(ws,Ee):U.cloneNode($i);return Gs.symbol=En,o(Ee,xn(Gs,16777216),$i)}let ls=jr($i,ws=>Mn(ws),void 0);return ls!==$i&&o(Ee,ls,$i),ls}}function ln(je,Ee,cr,Or){let An=cr?111551:788968,En=nl(Ee,An,!0);if(!En)return;let Mn=En.flags&2097152?ku(En):En;if(mg(En,je.enclosingDeclaration,An,!1).accessibility===0)return ya(Mn,je,An,Or)}function Vn(je,Ee){if(vn(Ee)&&xv(Ee)){_Ge(Ee);let cr=Wn(Ee).resolvedSymbol;return!cr||!(!Ee.isTypeOf&&!(cr.flags&788968)||!(kt(Ee.typeArguments)>=fh(u1(cr))))}if(vN(Ee))return je.mapper===void 0?!0:!!r(je,Ee,!0);if(Yp(Ee)){if(Xm(Ee))return!1;let cr=PJ(Ee),Or=Wn(Ee).resolvedSymbol;if(!Or)return!1;if(Or.flags&262144){let An=oc(Or);if(je.mapper&&g1(An,je.mapper)!==An)return!1}if(mR(Ee))return v4(Ee,cr)&&!CWe(Ee)&&Or.flags&788968}if(yT(Ee)&&Ee.operator===158&&Ee.type.kind===155){let cr=je.enclosingDeclaration&&h7(je.enclosingDeclaration);return!!Dr(Ee,Or=>Or===cr)}return!0}function Si(je,Ee){let cr=r(je,Ee);return X(cr,je)}function No(je,Ee){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let cr=!1,{finalizeBoundary:Or,startRecoveryScope:An}=$i(),En=ct(Ee,Mn,wi);if(!Or())return;return je.approximateLength+=Ee.end-Ee.pos,En;function Mn(_t){if(cr)return _t;let vr=An(),_r=Bn(_t)?ls(_t):void 0,jt=Gt(_t);return _r?.(),cr?wi(_t)&&!FA(_t)?(vr(),Si(je,_t)):_t:jt?o(je,jt,_t):void 0}function $i(){let _t,vr,_r=je.tracker,jt=je.trackedSymbols;je.trackedSymbols=void 0;let yr=je.encounteredError;return je.tracker=new jge(je,{..._r.inner,reportCyclicStructureError(){Xr(()=>_r.reportCyclicStructureError())},reportInaccessibleThisError(){Xr(()=>_r.reportInaccessibleThisError())},reportInaccessibleUniqueSymbolError(){Xr(()=>_r.reportInaccessibleUniqueSymbolError())},reportLikelyUnsafeImportRequiredError(Kn){Xr(()=>_r.reportLikelyUnsafeImportRequiredError(Kn))},reportNonSerializableProperty(Kn){Xr(()=>_r.reportNonSerializableProperty(Kn))},trackSymbol(Kn,an,fi){return(_t??(_t=[])).push([Kn,an,fi]),!1},moduleResolverHost:je.tracker.moduleResolverHost},je.tracker.moduleResolverHost),{startRecoveryScope:dr,finalizeBoundary:fn};function Xr(Kn){cr=!0,(vr??(vr=[])).push(Kn)}function dr(){let Kn=_t?.length??0,an=vr?.length??0;return()=>{cr=!1,_t&&(_t.length=Kn),vr&&(vr.length=an)}}function fn(){return je.tracker=_r,je.trackedSymbols=jt,je.encounteredError=yr,vr?.forEach(Kn=>Kn()),cr?!1:(_t?.forEach(([Kn,an,fi])=>je.tracker.trackSymbol(Kn,an,fi)),!0)}}function ls(_t){return en(je,_t,Gr(_t),wr(_t))}function ws(_t){let vr=Mw(_t);switch(vr.kind){case 183:return mt(vr);case 186:return et(vr);case 199:return Gs(vr);case 198:let _r=vr;if(_r.operator===143)return Wa(_r)}return ct(_t,Mn,wi)}function Gs(_t){let vr=ws(_t.objectType);if(vr!==void 0)return U.updateIndexedAccessTypeNode(_t,vr,ct(_t.indexType,Mn,wi))}function Wa(_t){M.assertEqual(_t.operator,143);let vr=ws(_t.type);if(vr!==void 0)return U.updateTypeOperatorNode(_t,vr)}function et(_t){let{introducesError:vr,node:_r}=Hr(_t.exprName,je);if(!vr)return U.updateTypeQueryNode(_t,_r,Qr(_t.typeArguments,Mn,wi));let jt=ln(je,_t.exprName,!0);if(jt)return o(je,jt,_t.exprName)}function mt(_t){if(Vn(je,_t)){let{introducesError:vr,node:_r}=Hr(_t.typeName,je),jt=Qr(_t.typeArguments,Mn,wi);if(vr){let yr=ln(je,_t.typeName,!1,jt);if(yr)return o(je,yr,_t.typeName)}else{let yr=U.updateTypeReferenceNode(_t,_r,jt);return o(je,yr,_t)}}}function Gt(_t){if(bT(_t))return ct(_t.type,Mn,wi);if(eme(_t)||_t.kind===319)return U.createKeywordTypeNode(133);if(tme(_t))return U.createKeywordTypeNode(159);if(bN(_t))return U.createUnionTypeNode([ct(_t.type,Mn,wi),U.createLiteralTypeNode(U.createNull())]);if(dY(_t))return U.createUnionTypeNode([ct(_t.type,Mn,wi),U.createKeywordTypeNode(157)]);if(Wj(_t))return ct(_t.type,Mn);if(Gj(_t))return U.createArrayTypeNode(ct(_t.type,Mn,wi));if(f2(_t))return U.createTypeLiteralNode(kr(_t.jsDocPropertyTags,dr=>{let fn=ct($e(dr.name)?dr.name:dr.name.right,Mn,$e),Kn=il(r(je,_t),fn.escapedText),an=Kn&&dr.typeExpression&&r(je,dr.typeExpression.type)!==Kn?X(Kn,je):void 0;return U.createPropertySignature(void 0,fn,dr.isBracketed||dr.typeExpression&&dY(dr.typeExpression.type)?U.createToken(58):void 0,an||dr.typeExpression&&ct(dr.typeExpression.type,Mn,wi)||U.createKeywordTypeNode(133))}));if(Yp(_t)&&$e(_t.typeName)&&_t.typeName.escapedText==="")return Gn(U.createKeywordTypeNode(133),_t);if((C0(_t)||Yp(_t))&&S9(_t))return U.createTypeLiteralNode([U.createIndexSignature(void 0,[U.createParameterDeclaration(void 0,void 0,"x",void 0,ct(_t.typeArguments[0],Mn,wi))],ct(_t.typeArguments[1],Mn,wi))]);if(EN(_t))if(QP(_t)){let dr;return U.createConstructorTypeNode(void 0,Qr(_t.typeParameters,Mn,Cc),Yi(_t.parameters,(fn,Kn)=>fn.name&&$e(fn.name)&&fn.name.escapedText==="new"?(dr=fn.type,void 0):U.createParameterDeclaration(void 0,jt(fn),o(je,U.createIdentifier(yr(fn,Kn)),fn),U.cloneNode(fn.questionToken),ct(fn.type,Mn,wi),void 0)),ct(dr||_t.type,Mn,wi)||U.createKeywordTypeNode(133))}else return U.createFunctionTypeNode(Qr(_t.typeParameters,Mn,Cc),kr(_t.parameters,(dr,fn)=>U.createParameterDeclaration(void 0,jt(dr),o(je,U.createIdentifier(yr(dr,fn)),dr),U.cloneNode(dr.questionToken),ct(dr.type,Mn,wi),void 0)),ct(_t.type,Mn,wi)||U.createKeywordTypeNode(133));if(vN(_t))return Vn(je,_t)||(cr=!0),_t;if(Cc(_t))return U.updateTypeParameterDeclaration(_t,Qr(_t.modifiers,Mn,Do),o(je,vo(oc(Un(_t)),je),_t),ct(_t.constraint,Mn,wi),ct(_t.default,Mn,wi));if(mE(_t)){let dr=Gs(_t);return dr||(cr=!0,_t)}if(Yp(_t)){let dr=mt(_t);return dr||(cr=!0,_t)}if(xv(_t)){let dr=Wn(_t).resolvedSymbol;return mR(_t)&&dr&&(!_t.isTypeOf&&!(dr.flags&788968)||!(kt(_t.typeArguments)>=fh(u1(dr))))?o(je,X(r(je,_t),je),_t):U.updateImportTypeNode(_t,U.updateLiteralTypeNode(_t.argument,Xr(_t,_t.argument.literal)),ct(_t.attributes,Mn,l2),ct(_t.qualifier,Mn,xf),Qr(_t.typeArguments,Mn,wi),_t.isTypeOf)}if(Hu(_t)&&_t.name.kind===167&&!Wte(_t.name)){if(!y0(_t))return vr(_t,Mn);if(!(je.flags&1&&nc(_t.name.expression)&&mh(_t.name).flags&1))return}if(Us(_t)&&!_t.type||Ds(_t)&&!_t.type&&!_t.initializer||If(_t)&&!_t.type&&!_t.initializer||is(_t)&&!_t.type&&!_t.initializer){let dr=vr(_t,Mn);return dr===_t&&(dr=o(je,U.cloneNode(_t),_t)),dr.type=U.createKeywordTypeNode(133),is(_t)&&(dr.modifiers=void 0),dr}if(pE(_t)){let dr=et(_t);return dr||(cr=!0,_t)}if(Go(_t)&&nc(_t.expression)){let{node:dr,introducesError:fn}=Hr(_t.expression,je);if(fn){let Kn=ep(ZCe(_t.expression)),an=X(Kn,je),fi;if(Lv(an))fi=an.literal;else{let ni=SKe(_t.expression),no=typeof ni.value=="string"?U.createStringLiteral(ni.value,void 0):typeof ni.value=="number"?U.createNumericLiteral(ni.value,0):void 0;if(!no)return Jh(an)&&i_(_t.expression,je.enclosingDeclaration,je),_t;fi=no}return fi.kind===11&&ap(fi.text,Qo(q))?U.createIdentifier(fi.text):fi.kind===9&&!fi.text.startsWith("-")?fi:U.updateComputedPropertyName(_t,fi)}else return U.updateComputedPropertyName(_t,dr)}if(FA(_t)){let dr;if($e(_t.parameterName)){let{node:fn,introducesError:Kn}=Hr(_t.parameterName,je);cr=cr||Kn,dr=fn}else dr=U.cloneNode(_t.parameterName);return U.updateTypePredicateNode(_t,U.cloneNode(_t.assertsModifier),dr,ct(_t.type,Mn,wi))}if(jA(_t)||_f(_t)||a2(_t)){let dr=vr(_t,Mn),fn=o(je,dr===_t?U.cloneNode(_t):dr,_t),Kn=Ko(fn);return xn(fn,Kn|(je.flags&1024&&_f(_t)?0:1)),fn}if(jo(_t)&&je.flags&268435456&&!_t.singleQuote){let dr=U.cloneNode(_t);return dr.singleQuote=!0,dr}if(dE(_t)){let dr=ct(_t.checkType,Mn,wi),fn=ls(_t),Kn=ct(_t.extendsType,Mn,wi),an=ct(_t.trueType,Mn,wi);fn();let fi=ct(_t.falseType,Mn,wi);return U.updateConditionalTypeNode(_t,dr,Kn,an,fi)}if(yT(_t)){if(_t.operator===158&&_t.type.kind===155){if(!Vn(je,_t))return cr=!0,_t}else if(_t.operator===143){let dr=Wa(_t);return dr||(cr=!0,_t)}}return vr(_t,Mn);function vr(dr,fn){let Kn=!je.enclosingFile||je.enclosingFile!==Jr(dr);return jr(dr,fn,void 0,Kn?_r:void 0)}function _r(dr,fn,Kn,an,fi){let ni=Qr(dr,fn,Kn,an,fi);return ni&&(ni.pos!==-1||ni.end!==-1)&&(ni===dr&&(ni=U.createNodeArray(dr.slice(),dr.hasTrailingComma)),Jg(ni,-1,-1)),ni}function jt(dr){return dr.dotDotDotToken||(dr.type&&Gj(dr.type)?U.createToken(26):void 0)}function yr(dr,fn){return dr.name&&$e(dr.name)&&dr.name.escapedText==="this"?"this":jt(dr)?"args":`arg${fn}`}function Xr(dr,fn){if(je.bundled||je.enclosingFile!==Jr(fn)){let Kn=fn.text,an=Wn(_t).resolvedSymbol,fi=dr.isTypeOf?111551:788968,ni=an&&mg(an,je.enclosingDeclaration,fi,!1).accessibility===0&&sl(an,je,fi,!0)[0];if(ni&&UP(ni))Kn=ss(ni,je);else{let no=sAe(dr);no&&(Kn=ss(no.symbol,je))}if(Kn.includes("/node_modules/")&&(je.encounteredError=!0,je.tracker.reportLikelyUnsafeImportRequiredError&&je.tracker.reportLikelyUnsafeImportRequiredError(Kn)),Kn!==fn.text)return Gn(U.createStringLiteral(Kn),fn)}return ct(fn,Mn,jo)}}}function Mo(je,Ee){var cr;let Or=iXe(U.createPropertyDeclaration,174,!0),An=iXe((Jt,ei,Ni,xi)=>U.createPropertySignature(Jt,ei,Ni,xi),173,!1),En=Ee.enclosingDeclaration,Mn=[],$i=new Set,ls=[],ws=Ee;Ee={...ws,usedSymbolNames:new Set(ws.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((cr=ws.remappedSymbolReferences)==null?void 0:cr.entries()),tracker:void 0};let Gs={...ws.tracker.inner,trackSymbol:(Jt,ei,Ni)=>{var xi,ui;if((xi=Ee.remappedSymbolNames)!=null&&xi.has(Po(Jt)))return!1;if(mg(Jt,ei,Ni,!1).accessibility===0){let _o=zr(Jt,Ee,Ni);if(!(Jt.flags&4)){let Hs=_o[0],_c=Jr(ws.enclosingDeclaration);Dt(Hs.declarations,ma=>Jr(ma)===_c)&&an(Hs)}}else if((ui=ws.tracker.inner)!=null&&ui.trackSymbol)return ws.tracker.inner.trackSymbol(Jt,ei,Ni);return!1}};Ee.tracker=new jge(Ee,Gs,ws.tracker.moduleResolverHost),Iu(je,(Jt,ei)=>{let Ni=Zi(ei);uy(Jt,Ni)});let Wa=!Ee.bundled,et=je.get("export=");return et&&je.size>1&&et.flags&2098688&&(je=po(),je.set("export=",et)),dr(je),jt(Mn);function mt(Jt){return!!Jt&&Jt.kind===80}function Gt(Jt){return fl(Jt)?ti(kr(Jt.declarationList.declarations,Ns),mt):ti([Ns(Jt)],mt)}function _t(Jt){let ei=jn(Jt,pc),Ni=Va(Jt,xl),xi=Ni!==-1?Jt[Ni]:void 0;if(xi&&ei&&ei.isExportEquals&&$e(ei.expression)&&$e(xi.name)&&In(xi.name)===In(ei.expression)&&xi.body&&Gg(xi.body)){let ui=ti(Jt,Hs=>!!(V_(Hs)&32)),Oa=xi.name,_o=xi.body;if(kt(ui)&&(xi=U.updateModuleDeclaration(xi,xi.modifiers,xi.name,_o=U.updateModuleBlock(_o,U.createNodeArray([...xi.body.statements,U.createExportDeclaration(void 0,!1,U.createNamedExports(kr(To(ui,Hs=>Gt(Hs)),Hs=>U.createExportSpecifier(!1,void 0,Hs))),void 0)]))),Jt=[...Jt.slice(0,Ni),xi,...Jt.slice(Ni+1)]),!jn(Jt,Hs=>Hs!==xi&&L3(Hs,Oa))){Mn=[];let Hs=!Dt(_o.statements,_c=>_i(_c,32)||pc(_c)||Cl(_c));Et(_o.statements,_c=>{ni(_c,Hs?32:0)}),Jt=[...ti(Jt,_c=>_c!==xi&&_c!==ei),...Mn]}}return Jt}function vr(Jt){let ei=ti(Jt,xi=>Cl(xi)&&!xi.moduleSpecifier&&!!xi.exportClause&&Pd(xi.exportClause));kt(ei)>1&&(Jt=[...ti(Jt,ui=>!Cl(ui)||!!ui.moduleSpecifier||!ui.exportClause),U.createExportDeclaration(void 0,!1,U.createNamedExports(To(ei,ui=>ao(ui.exportClause,Pd).elements)),void 0)]);let Ni=ti(Jt,xi=>Cl(xi)&&!!xi.moduleSpecifier&&!!xi.exportClause&&Pd(xi.exportClause));if(kt(Ni)>1){let xi=WI(Ni,ui=>jo(ui.moduleSpecifier)?">"+ui.moduleSpecifier.text:">");if(xi.length!==Ni.length)for(let ui of xi)ui.length>1&&(Jt=[...ti(Jt,Oa=>!ui.includes(Oa)),U.createExportDeclaration(void 0,!1,U.createNamedExports(To(ui,Oa=>ao(Oa.exportClause,Pd).elements)),ui[0].moduleSpecifier)])}return Jt}function _r(Jt){let ei=Va(Jt,Ni=>Cl(Ni)&&!Ni.moduleSpecifier&&!Ni.attributes&&!!Ni.exportClause&&Pd(Ni.exportClause));if(ei>=0){let Ni=Jt[ei],xi=Yi(Ni.exportClause.elements,ui=>{if(!ui.propertyName){let Oa=Ox(Jt),_o=ti(Oa,Hs=>L3(Jt[Hs],ui.name));if(kt(_o)&&Oi(_o,Hs=>rM(Jt[Hs]))){for(let Hs of _o)Jt[Hs]=yr(Jt[Hs]);return}}return ui});kt(xi)?Jt[ei]=U.updateExportDeclaration(Ni,Ni.modifiers,Ni.isTypeOnly,U.updateNamedExports(Ni.exportClause,xi),Ni.moduleSpecifier,Ni.attributes):M1(Jt,ei)}return Jt}function jt(Jt){return Jt=_t(Jt),Jt=vr(Jt),Jt=_r(Jt),En&&(qi(En)&&Jf(En)||xl(En))&&(!Dt(Jt,$3)||!l_e(Jt)&&Dt(Jt,B5))&&Jt.push(SM(U)),Jt}function yr(Jt){let ei=(V_(Jt)|32)&-129;return U.replaceModifiers(Jt,ei)}function Xr(Jt){let ei=V_(Jt)&-33;return U.replaceModifiers(Jt,ei)}function dr(Jt,ei,Ni){ei||ls.push(new Map),Jt.forEach(xi=>{fn(xi,!1,!!Ni)}),ei||(ls[ls.length-1].forEach(xi=>{fn(xi,!0,!!Ni)}),ls.pop())}function fn(Jt,ei,Ni){Ea(yn(Jt));let xi=sa(Jt);if($i.has(Po(xi)))return;if($i.add(Po(xi)),!ei||kt(Jt.declarations)&&Dt(Jt.declarations,Oa=>!!Dr(Oa,_o=>_o===En))){let Oa=av(Ee);Kn(Jt,ei,Ni),Oa()}}function Kn(Jt,ei,Ni,xi=Jt.escapedName){var ui,Oa,_o,Hs,_c,ma;let Xo=Zi(xi),s_=xi==="default";if(ei&&!(Ee.flags&131072)&&_A(Xo)&&!s_){Ee.encounteredError=!0;return}let o_=s_&&!!(Jt.flags&-113||Jt.flags&16&&kt(Ea(yn(Jt))))&&!(Jt.flags&2097152),ef=!o_&&!ei&&_A(Xo)&&!s_;(o_||ef)&&(ei=!0);let Sl=(ei?0:32)|(s_&&!o_?2048:0),a_=Jt.flags&1536&&Jt.flags&7&&xi!=="export=",Bf=a_&&v7(yn(Jt),Jt);if((Jt.flags&8208||Bf)&&Cb(yn(Jt),Jt,uy(Jt,Xo),Sl),Jt.flags&524288&&no(Jt,Xo,Sl),Jt.flags&98311&&xi!=="export="&&!(Jt.flags&4194304)&&!(Jt.flags&32)&&!(Jt.flags&8192)&&!Bf)if(Ni)S4(Jt)&&(ef=!1,o_=!1);else{let Nl=yn(Jt),Uf=uy(Jt,Xo);if(Nl.symbol&&Nl.symbol!==Jt&&Nl.symbol.flags&16&&Dt(Nl.symbol.declarations,K1)&&((ui=Nl.symbol.members)!=null&&ui.size||(Oa=Nl.symbol.exports)!=null&&Oa.size))Ee.remappedSymbolReferences||(Ee.remappedSymbolReferences=new Map),Ee.remappedSymbolReferences.set(Po(Nl.symbol),Jt),Kn(Nl.symbol,ei,Ni,xi),Ee.remappedSymbolReferences.delete(Po(Nl.symbol));else if(!(Jt.flags&16)&&v7(Nl,Jt))Cb(Nl,Jt,Uf,Sl);else{let iP=Jt.flags&2?Qk(Jt)?2:1:(_o=Jt.parent)!=null&&_o.valueDeclaration&&qi((Hs=Jt.parent)==null?void 0:Hs.valueDeclaration)?2:void 0,Th=o_||!(Jt.flags&4)?Uf:Vq(Uf,Jt),JS=Jt.declarations&&jn(Jt.declarations,S7=>Ci(S7));JS&&Fu(JS.parent)&&JS.parent.declarations.length===1&&(JS=JS.parent.parent);let qS=(_c=Jt.declarations)==null?void 0:_c.find(Hn);if(qS&&Dn(qS.parent)&&$e(qS.parent.right)&&((ma=Nl.symbol)!=null&&ma.valueDeclaration)&&qi(Nl.symbol.valueDeclaration)){let S7=Uf===qS.parent.right.escapedText?void 0:qS.parent.right;ni(U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,S7,Uf)])),0),Ee.tracker.trackSymbol(Nl.symbol,Ee.enclosingDeclaration,111551)}else{let S7=o(Ee,U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(Th,void 0,S_(Ee,void 0,Nl,Jt))],iP)),JS);ni(S7,Th!==Uf?Sl&-33:Sl),Th!==Uf&&!ei&&(ni(U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,Th,Uf)])),0),ef=!1,o_=!1)}}}if(Jt.flags&384&&US(Jt,Xo,Sl),Jt.flags&32&&(Jt.flags&4&&Jt.valueDeclaration&&Dn(Jt.valueDeclaration.parent)&&tu(Jt.valueDeclaration.parent.right)?y7(Jt,uy(Jt,Xo),Sl):VS(Jt,uy(Jt,Xo),Sl)),(Jt.flags&1536&&(!a_||Sf(Jt))||Bf)&&xp(Jt,Xo,Sl),Jt.flags&64&&!(Jt.flags&32)&&So(Jt,Xo,Sl),Jt.flags&2097152&&y7(Jt,uy(Jt,Xo),Sl),Jt.flags&4&&Jt.escapedName==="export="&&S4(Jt),Jt.flags&8388608&&Jt.declarations)for(let Nl of Jt.declarations){let Uf=Y_(Nl,Nl.moduleSpecifier);Uf&&ni(U.createExportDeclaration(void 0,Nl.isTypeOnly,void 0,U.createStringLiteral(ss(Uf,Ee))),0)}o_?ni(U.createExportAssignment(void 0,!1,U.createIdentifier(uy(Jt,Xo))),0):ef&&ni(U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,uy(Jt,Xo),Xo)])),0)}function an(Jt){if(Dt(Jt.declarations,dT))return;M.assertIsDefined(ls[ls.length-1]),Vq(Zi(Jt.escapedName),Jt);let ei=!!(Jt.flags&2097152)&&!Dt(Jt.declarations,Ni=>!!Dr(Ni,Cl)||qh(Ni)||nu(Ni)&&!A0(Ni.moduleReference));ls[ei?0:ls.length-1].set(Po(Jt),Jt)}function fi(Jt){return qi(Jt)&&(Jf(Jt)||Xd(Jt))||U_(Jt)&&!Og(Jt)}function ni(Jt,ei){if(Im(Jt)){let Ni=0,xi=Ee.enclosingDeclaration&&(Qd(Ee.enclosingDeclaration)?Jr(Ee.enclosingDeclaration):Ee.enclosingDeclaration);ei&32&&xi&&(fi(xi)||xl(xi))&&rM(Jt)&&(Ni|=32),Wa&&!(Ni&32)&&(!xi||!(xi.flags&33554432))&&(TT(Jt)||fl(Jt)||El(Jt)||ru(Jt)||xl(Jt))&&(Ni|=128),ei&2048&&(ru(Jt)||Xu(Jt)||El(Jt))&&(Ni|=2048),Ni&&(Jt=U.replaceModifiers(Jt,Ni|V_(Jt)))}Mn.push(Jt)}function no(Jt,ei,Ni){var xi;let ui=K0(Jt),Oa=as(Jt).typeParameters,_o=kr(Oa,o_=>Co(o_,Ee)),Hs=(xi=Jt.declarations)==null?void 0:xi.find(Qd),_c=B3(Hs?Hs.comment||Hs.parent.comment:void 0),ma=Ee.flags;Ee.flags|=8388608;let Xo=Ee.enclosingDeclaration;Ee.enclosingDeclaration=Hs;let s_=Hs&&Hs.typeExpression&&bT(Hs.typeExpression)&&C(Ee,Hs.typeExpression.type,ui,void 0)||X(ui,Ee);ni(hT(U.createTypeAliasDeclaration(void 0,uy(Jt,ei),_o,s_),_c?[{kind:3,text:`*
 * `+_c.replace(/\n/g,`
 * `)+`
 `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Ni),Ee.flags=ma,Ee.enclosingDeclaration=Xo}function So(Jt,ei,Ni){let xi=kl(Jt),ui=u1(Jt),Oa=kr(ui,ef=>Co(ef,Ee)),_o=mi(xi),Hs=kt(_o)?wo(_o):void 0,_c=To(Ea(xi),ef=>pqt(ef,Hs)),ma=_Ae(0,xi,Hs,179),Xo=_Ae(1,xi,Hs,180),s_=sXe(xi,Hs),o_=kt(_o)?[U.createHeritageClause(96,Yi(_o,ef=>fAe(ef,111551)))]:void 0;ni(U.createInterfaceDeclaration(void 0,uy(Jt,ei),Oa,o_,[...s_,...Xo,...ma,..._c]),Ni)}function uc(Jt){let ei=Os(Mp(Jt).values()),Ni=sa(Jt);if(Ni!==Jt){let xi=new Set(ei);for(let ui of Mp(Ni).values())Kf(dl(ui))&111551||xi.add(ui);ei=Os(xi)}return ti(ei,xi=>np(xi)&&ap(xi.escapedName,99))}function Sf(Jt){return Oi(uc(Jt),ei=>!(Kf(dl(ei))&111551))}function xp(Jt,ei,Ni){let xi=uc(Jt),ui=h3(xi,Hs=>Hs.parent&&Hs.parent===Jt?"real":"merged"),Oa=ui.get("real")||ve,_o=ui.get("merged")||ve;if(kt(Oa)){let Hs=uy(Jt,ei);Sh(Oa,Hs,Ni,!!(Jt.flags&67108880))}if(kt(_o)){let Hs=Jr(Ee.enclosingDeclaration),_c=uy(Jt,ei),ma=U.createModuleBlock([U.createExportDeclaration(void 0,!1,U.createNamedExports(Yi(ti(_o,Xo=>Xo.escapedName!=="export="),Xo=>{var s_,o_;let ef=Zi(Xo.escapedName),Sl=uy(Xo,ef),a_=Xo.declarations&&Sp(Xo);if(Hs&&(a_?Hs!==Jr(a_):!Dt(Xo.declarations,Uf=>Jr(Uf)===Hs))){(o_=(s_=Ee.tracker)==null?void 0:s_.reportNonlocalAugmentation)==null||o_.call(s_,Hs,Jt,Xo);return}let Bf=a_&&q0(a_,!0);an(Bf||Xo);let Nl=Bf?uy(Bf,Zi(Bf.escapedName)):Sl;return U.createExportSpecifier(!1,ef===Nl?void 0:Nl,ef)})))]);ni(U.createModuleDeclaration(void 0,U.createIdentifier(_c),ma,32),0)}}function US(Jt,ei,Ni){ni(U.createEnumDeclaration(U.createModifiersFromModifierFlags(xCe(Jt)?4096:0),uy(Jt,ei),kr(ti(Ea(yn(Jt)),xi=>!!(xi.flags&8)),xi=>{let ui=xi.declarations&&xi.declarations[0]&&nS(xi.declarations[0])?rAe(xi.declarations[0]):void 0;return U.createEnumMember(Zi(xi.escapedName),ui===void 0?void 0:typeof ui=="string"?U.createStringLiteral(ui):U.createNumericLiteral(ui))})),Ni)}function Cb(Jt,ei,Ni,xi){let ui=Ks(Jt,0);for(let Oa of ui){let _o=rn(Oa,262,Ee,{name:U.createIdentifier(Ni)});ni(o(Ee,_o,dx(Oa)),xi)}if(!(ei.flags&1536&&ei.exports&&ei.exports.size)){let Oa=ti(Ea(Jt),np);Sh(Oa,Ni,xi,!0)}}function dx(Jt){if(Jt.declaration&&Jt.declaration.parent){if(Dn(Jt.declaration.parent)&&ll(Jt.declaration.parent)===5)return Jt.declaration.parent;if(Ci(Jt.declaration.parent)&&Jt.declaration.parent.parent)return Jt.declaration.parent.parent}return Jt.declaration}function Sh(Jt,ei,Ni,xi){if(kt(Jt)){let Oa=h3(Jt,Sl=>!kt(Sl.declarations)||Dt(Sl.declarations,a_=>Jr(a_)===Jr(Ee.enclosingDeclaration))?"local":"remote").get("local")||ve,_o=CT.createModuleDeclaration(void 0,U.createIdentifier(ei),U.createModuleBlock([]),32);fa(_o,En),_o.locals=po(Jt),_o.symbol=Jt[0].parent;let Hs=Mn;Mn=[];let _c=Wa;Wa=!1;let ma={...Ee,enclosingDeclaration:_o},Xo=Ee;Ee=ma,dr(po(Oa),xi,!0),Ee=Xo,Wa=_c;let s_=Mn;Mn=Hs;let o_=kr(s_,Sl=>pc(Sl)&&!Sl.isExportEquals&&$e(Sl.expression)?U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,Sl.expression,U.createIdentifier("default"))])):Sl),ef=Oi(o_,Sl=>_i(Sl,32))?kr(o_,Xr):o_;_o=U.updateModuleDeclaration(_o,_o.modifiers,_o.name,U.createModuleBlock(ef)),ni(_o,Ni)}}function np(Jt){return!!(Jt.flags&2887656)||!(Jt.flags&4194304||Jt.escapedName==="prototype"||Jt.valueDeclaration&&co(Jt.valueDeclaration)&&vi(Jt.valueDeclaration.parent))}function aI(Jt){let ei=Yi(Jt,Ni=>{let xi=Ee.enclosingDeclaration;Ee.enclosingDeclaration=Ni;let ui=Ni.expression;if(nc(ui)){if($e(ui)&&In(ui)==="")return Oa(void 0);let _o;if({introducesError:_o,node:ui}=Hr(ui,Ee),_o)return Oa(void 0)}return Oa(U.createExpressionWithTypeArguments(ui,kr(Ni.typeArguments,_o=>C(Ee,_o,r(Ee,_o))||X(r(Ee,_o),Ee))));function Oa(_o){return Ee.enclosingDeclaration=xi,_o}});if(ei.length===Jt.length)return ei}function VS(Jt,ei,Ni){var xi,ui;let Oa=(xi=Jt.declarations)==null?void 0:xi.find(vi),_o=Ee.enclosingDeclaration;Ee.enclosingDeclaration=Oa||_o;let Hs=u1(Jt),_c=kr(Hs,bh=>Co(bh,Ee)),ma=Ep(kl(Jt)),Xo=mi(ma),s_=Oa&&tN(Oa),o_=s_&&aI(s_)||Yi(Zn(ma),mqt),ef=yn(Jt),Sl=!!((ui=ef.symbol)!=null&&ui.valueDeclaration)&&vi(ef.symbol.valueDeclaration),a_=Sl?Br(ef):Me,Bf=[...kt(Xo)?[U.createHeritageClause(96,kr(Xo,bh=>dqt(bh,a_,ei)))]:[],...kt(o_)?[U.createHeritageClause(119,o_)]:[]],Nl=YUt(ma,Xo,Ea(ma)),Uf=ti(Nl,bh=>{let T4=bh.valueDeclaration;return!!T4&&!(Hu(T4)&&es(T4.name))}),Th=Dt(Nl,bh=>{let T4=bh.valueDeclaration;return!!T4&&Hu(T4)&&es(T4.name)})?[U.createPropertyDeclaration(void 0,U.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:ve,JS=To(Uf,bh=>Or(bh,!1,Xo[0])),qS=To(ti(Ea(ef),bh=>!(bh.flags&4194304)&&bh.escapedName!=="prototype"&&!np(bh)),bh=>Or(bh,!0,a_)),gqt=!Sl&&!!Jt.valueDeclaration&&vn(Jt.valueDeclaration)&&!Dt(Ks(ef,1))?[U.createConstructorDeclaration(U.createModifiersFromModifierFlags(2),[],void 0)]:_Ae(1,ef,a_,176),hqt=sXe(ma,Xo[0]);Ee.enclosingDeclaration=_o,ni(o(Ee,U.createClassDeclaration(void 0,ei,_c,Bf,[...hqt,...qS,...gqt,...JS,...Th]),Jt.declarations&&ti(Jt.declarations,bh=>ru(bh)||tu(bh))[0]),Ni)}function mx(Jt){return di(Jt,ei=>{if(pf(ei)||E_(ei))return In(ei.propertyName||ei.name);if(Dn(ei)||pc(ei)){let Ni=pc(ei)?ei.expression:ei.right;if(Hn(Ni))return In(Ni.name)}if(Sn(ei)){let Ni=Ns(ei);if(Ni&&$e(Ni))return In(Ni)}})}function y7(Jt,ei,Ni){var xi,ui,Oa,_o,Hs,_c;let ma=Sp(Jt);if(!ma)return M.fail();let Xo=sa(q0(ma,!0));if(!Xo)return;let s_=tR(Xo)&&mx(Jt.declarations)||Zi(Xo.escapedName);s_==="export="&&ue&&(s_="default");let o_=uy(Xo,s_);switch(an(Xo),ma.kind){case 208:if(((ui=(xi=ma.parent)==null?void 0:xi.parent)==null?void 0:ui.kind)===260){let a_=ss(Xo.parent||Xo,Ee),{propertyName:Bf}=ma;ni(U.createImportDeclaration(void 0,U.createImportClause(!1,void 0,U.createNamedImports([U.createImportSpecifier(!1,Bf&&$e(Bf)?U.createIdentifier(In(Bf)):void 0,U.createIdentifier(ei))])),U.createStringLiteral(a_),void 0),0);break}M.failBadSyntaxKind(((Oa=ma.parent)==null?void 0:Oa.parent)||ma,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Hs=(_o=ma.parent)==null?void 0:_o.parent)==null?void 0:Hs.kind)===226&&pC(Zi(Jt.escapedName),o_);break;case 260:if(Hn(ma.initializer)){let a_=ma.initializer,Bf=U.createUniqueName(ei),Nl=ss(Xo.parent||Xo,Ee);ni(U.createImportEqualsDeclaration(void 0,!1,Bf,U.createExternalModuleReference(U.createStringLiteral(Nl))),0),ni(U.createImportEqualsDeclaration(void 0,!1,U.createIdentifier(ei),U.createQualifiedName(Bf,a_.name)),Ni);break}case 271:if(Xo.escapedName==="export="&&Dt(Xo.declarations,a_=>qi(a_)&&Xd(a_))){S4(Jt);break}let ef=!(Xo.flags&512)&&!Ci(ma);ni(U.createImportEqualsDeclaration(void 0,!1,U.createIdentifier(ei),ef?M_(Xo,Ee,-1,!1):U.createExternalModuleReference(U.createStringLiteral(ss(Xo,Ee)))),ef?Ni:0);break;case 270:ni(U.createNamespaceExportDeclaration(In(ma.name)),0);break;case 273:{let a_=ss(Xo.parent||Xo,Ee),Bf=Ee.bundled?U.createStringLiteral(a_):ma.parent.moduleSpecifier,Nl=Yc(ma.parent)?ma.parent.attributes:void 0,Uf=Kg(ma.parent);ni(U.createImportDeclaration(void 0,U.createImportClause(Uf,U.createIdentifier(ei),void 0),Bf,Nl),0);break}case 274:{let a_=ss(Xo.parent||Xo,Ee),Bf=Ee.bundled?U.createStringLiteral(a_):ma.parent.parent.moduleSpecifier,Nl=Kg(ma.parent.parent);ni(U.createImportDeclaration(void 0,U.createImportClause(Nl,void 0,U.createNamespaceImport(U.createIdentifier(ei))),Bf,ma.parent.attributes),0);break}case 280:ni(U.createExportDeclaration(void 0,!1,U.createNamespaceExport(U.createIdentifier(ei)),U.createStringLiteral(ss(Xo,Ee))),0);break;case 276:{let a_=ss(Xo.parent||Xo,Ee),Bf=Ee.bundled?U.createStringLiteral(a_):ma.parent.parent.parent.moduleSpecifier,Nl=Kg(ma.parent.parent.parent);ni(U.createImportDeclaration(void 0,U.createImportClause(Nl,void 0,U.createNamedImports([U.createImportSpecifier(!1,ei!==s_?U.createIdentifier(s_):void 0,U.createIdentifier(ei))])),Bf,ma.parent.parent.parent.attributes),0);break}case 281:let Sl=ma.parent.parent.moduleSpecifier;Sl&&((_c=ma.propertyName)==null?void 0:_c.escapedText)==="default"&&(s_="default"),pC(Zi(Jt.escapedName),Sl?s_:o_,Sl&&Ia(Sl)?U.createStringLiteral(Sl.text):void 0);break;case 277:S4(Jt);break;case 226:case 211:case 212:Jt.escapedName==="default"||Jt.escapedName==="export="?S4(Jt):pC(ei,o_);break;default:return M.failBadSyntaxKind(ma,"Unhandled alias declaration kind in symbol serializer!")}}function pC(Jt,ei,Ni){ni(U.createExportDeclaration(void 0,!1,U.createNamedExports([U.createExportSpecifier(!1,Jt!==ei?ei:void 0,Jt)]),Ni),0)}function S4(Jt){var ei;if(Jt.flags&4194304)return!1;let Ni=Zi(Jt.escapedName),xi=Ni==="export=",Oa=xi||Ni==="default",_o=Jt.declarations&&Sp(Jt),Hs=_o&&q0(_o,!0);if(Hs&&kt(Hs.declarations)&&Dt(Hs.declarations,_c=>Jr(_c)===Jr(En))){let _c=_o&&(pc(_o)||Dn(_o)?UH(_o):vfe(_o)),ma=_c&&nc(_c)?uVt(_c):void 0,Xo=ma&&nl(ma,-1,!0,!0,En);(Xo||Hs)&&an(Xo||Hs);let s_=Ee.tracker.disableTrackSymbol;if(Ee.tracker.disableTrackSymbol=!0,Oa)Mn.push(U.createExportAssignment(void 0,xi,Mc(Hs,Ee,-1)));else if(ma===_c&&ma)pC(Ni,In(ma));else if(_c&&tu(_c))pC(Ni,uy(Hs,Qc(Hs)));else{let o_=Vq(Ni,Jt);ni(U.createImportEqualsDeclaration(void 0,!1,U.createIdentifier(o_),M_(Hs,Ee,-1,!1)),0),pC(Ni,o_)}return Ee.tracker.disableTrackSymbol=s_,!0}else{let _c=Vq(Ni,Jt),ma=ep(yn(sa(Jt)));if(v7(ma,Jt))Cb(ma,Jt,_c,Oa?0:32);else{let Xo=((ei=Ee.enclosingDeclaration)==null?void 0:ei.kind)===267&&(!(Jt.flags&98304)||Jt.flags&65536)?1:2,s_=U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(_c,void 0,S_(Ee,void 0,ma,Jt))],Xo));ni(s_,Hs&&Hs.flags&4&&Hs.escapedName==="export="?128:Ni===_c?32:0)}return Oa?(Mn.push(U.createExportAssignment(void 0,xi,U.createIdentifier(_c))),!0):Ni!==_c?(pC(Ni,_c),!0):!1}}function v7(Jt,ei){var Ni;let xi=Jr(Ee.enclosingDeclaration);return Qn(Jt)&48&&!Dt((Ni=Jt.symbol)==null?void 0:Ni.declarations,wi)&&!kt(Q_(Jt))&&!RD(Jt)&&!!(kt(ti(Ea(Jt),np))||kt(Ks(Jt,0)))&&!kt(Ks(Jt,1))&&!oI(ei,En)&&!(Jt.symbol&&Dt(Jt.symbol.declarations,ui=>Jr(ui)!==xi))&&!Dt(Ea(Jt),ui=>kL(ui.escapedName))&&!Dt(Ea(Jt),ui=>Dt(ui.declarations,Oa=>Jr(Oa)!==xi))&&Oi(Ea(Jt),ui=>ap(Qc(ui),ee)?ui.flags&98304?CS(ui)===_b(ui):!0:!1)}function iXe(Jt,ei,Ni){return function(ui,Oa,_o){var Hs,_c,ma,Xo,s_;let o_=Cd(ui),ef=!!(o_&2);if(Oa&&ui.flags&2887656)return[];if(ui.flags&4194304||ui.escapedName==="constructor"||_o&&ho(_o,ui.escapedName)&&xg(ho(_o,ui.escapedName))===xg(ui)&&(ui.flags&16777216)===(ho(_o,ui.escapedName).flags&16777216)&&Z0(yn(ui),il(_o,ui.escapedName)))return[];let Sl=o_&-1025|(Oa?256:0),a_=gl(ui,Ee),Bf=(Hs=ui.declarations)==null?void 0:Hs.find(qp(Ds,U1,Ci,If,Dn,Hn));if(ui.flags&98304&&Ni){let Nl=[];if(ui.flags&65536){let Uf=ui.declarations&&Et(ui.declarations,Th=>{if(Th.kind===178)return Th;if(to(Th)&&Qx(Th))return Et(Th.arguments[2].properties,JS=>{let qS=Ns(JS);if(qS&&$e(qS)&&In(qS)==="set")return JS})});M.assert(!!Uf);let iP=$a(Uf)?gd(Uf).parameters[0]:void 0;Nl.push(o(Ee,U.createSetAccessorDeclaration(U.createModifiersFromModifierFlags(Sl),a_,[U.createParameterDeclaration(void 0,void 0,iP?Rc(iP,oa(iP),Ee):"value",void 0,ef?void 0:S_(Ee,void 0,_b(ui),ui))],void 0),((_c=ui.declarations)==null?void 0:_c.find(wg))||Bf))}if(ui.flags&32768){let Uf=o_&2;Nl.push(o(Ee,U.createGetAccessorDeclaration(U.createModifiersFromModifierFlags(Sl),a_,[],Uf?void 0:S_(Ee,void 0,yn(ui),ui),void 0),((ma=ui.declarations)==null?void 0:ma.find(Tv))||Bf))}return Nl}else if(ui.flags&98311)return o(Ee,Jt(U.createModifiersFromModifierFlags((xg(ui)?8:0)|Sl),a_,ui.flags&16777216?U.createToken(58):void 0,ef?void 0:S_(Ee,void 0,_b(ui),ui),void 0),((Xo=ui.declarations)==null?void 0:Xo.find(qp(Ds,Ci)))||Bf);if(ui.flags&8208){let Nl=yn(ui),Uf=Ks(Nl,0);if(Sl&2)return o(Ee,Jt(U.createModifiersFromModifierFlags((xg(ui)?8:0)|Sl),a_,ui.flags&16777216?U.createToken(58):void 0,void 0,void 0),((s_=ui.declarations)==null?void 0:s_.find($a))||Uf[0]&&Uf[0].declaration||ui.declarations&&ui.declarations[0]);let iP=[];for(let Th of Uf){let JS=rn(Th,ei,Ee,{name:a_,questionToken:ui.flags&16777216?U.createToken(58):void 0,modifiers:Sl?U.createModifiersFromModifierFlags(Sl):void 0}),qS=Th.declaration&&xR(Th.declaration.parent)?Th.declaration.parent:Th.declaration;iP.push(o(Ee,JS,qS))}return iP}return M.fail(`Unhandled class member kind! ${ui.__debugFlags||ui.flags}`)}}function pqt(Jt,ei){return An(Jt,!1,ei)}function _Ae(Jt,ei,Ni,xi){let ui=Ks(ei,Jt);if(Jt===1){if(!Ni&&Oi(ui,Hs=>kt(Hs.parameters)===0))return[];if(Ni){let Hs=Ks(Ni,1);if(!kt(Hs)&&Oi(ui,_c=>kt(_c.parameters)===0))return[];if(Hs.length===ui.length){let _c=!1;for(let ma=0;maX(ui,Ee)),xi=Mc(Jt.target.symbol,Ee,788968)):Jt.symbol&&HE(Jt.symbol,En,ei)&&(xi=Mc(Jt.symbol,Ee,788968)),xi)return U.createExpressionWithTypeArguments(xi,Ni)}function mqt(Jt){let ei=fAe(Jt,788968);if(ei)return ei;if(Jt.symbol)return U.createExpressionWithTypeArguments(Mc(Jt.symbol,Ee,788968),void 0)}function Vq(Jt,ei){var Ni,xi;let ui=ei?Po(ei):void 0;if(ui&&Ee.remappedSymbolNames.has(ui))return Ee.remappedSymbolNames.get(ui);ei&&(Jt=oXe(ei,Jt));let Oa=0,_o=Jt;for(;(Ni=Ee.usedSymbolNames)!=null&&Ni.has(Jt);)Oa++,Jt=`${_o}_${Oa}`;return(xi=Ee.usedSymbolNames)==null||xi.add(Jt),ui&&Ee.remappedSymbolNames.set(ui,Jt),Jt}function oXe(Jt,ei){if(ei==="default"||ei==="__class"||ei==="__function"){let Ni=Ee.flags;Ee.flags|=16777216;let xi=YE(Jt,Ee);Ee.flags=Ni,ei=xi.length>0&&yR(xi.charCodeAt(0))?em(xi):xi}return ei==="default"?ei="_default":ei==="export="&&(ei="_exports"),ei=ap(ei,ee)&&!_A(ei)?ei:"_"+ei.replace(/[^a-zA-Z0-9]/g,"_"),ei}function uy(Jt,ei){let Ni=Po(Jt);return Ee.remappedSymbolNames.has(Ni)?Ee.remappedSymbolNames.get(Ni):(ei=oXe(Jt,ei),Ee.remappedSymbolNames.set(Ni,ei),ei)}}}function ey(r,o,_=16384,h){return h?T(h).getText():Ew(T);function T(C){let w=OD(_)|70221824|512,V=Ve.typePredicateToTypePredicateNode(r,o,w),H=v2(),X=o&&Jr(o);return H.writeNode(4,V,X,C),C}}function yL(r){let o=[],_=0;for(let h=0;hNs(w)?w:void 0),C=T&&Ns(T);if(T&&C){if(to(T)&&Qx(T))return Qc(r);if(Go(C)&&!(ul(r)&4096)){let w=as(r).nameType;if(w&&w.flags&384){let V=SL(r,o);if(V!==void 0)return V}}return Ya(C)}if(T||(T=r.declarations[0]),T.parent&&T.parent.kind===260)return Ya(T.parent.name);switch(T.kind){case 231:case 218:case 219:return o&&!o.encounteredError&&!(o.flags&131072)&&(o.encounteredError=!0),T.kind===231?"(Anonymous class)":"(Anonymous function)"}}let h=SL(r,o);return h!==void 0?h:Qc(r)}function $0(r){if(r){let _=Wn(r);return _.isVisible===void 0&&(_.isVisible=!!o()),_.isVisible}return!1;function o(){switch(r.kind){case 338:case 346:case 340:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&qi(r.parent.parent.parent));case 208:return $0(r.parent.parent);case 260:if($s(r.name)&&!r.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Yb(r))return!0;let _=z2(r);return!(Vne(r)&32)&&!(r.kind!==271&&_.kind!==307&&_.flags&33554432)?Ev(_):$0(_);case 172:case 171:case 177:case 178:case 174:case 173:if(fp(r,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return $0(r.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;case 277:return!1;default:return!1}}}function KE(r,o){let _;r.parent&&r.parent.kind===277?_=Ar(r,r,2998271,void 0,!1):r.parent.kind===281&&(_=dm(r.parent,2998271));let h,T;return _&&(T=new Set,T.add(Po(_)),C(_.declarations)),h;function C(w){Et(w,V=>{let H=M2(V)||V;if(o?Wn(V).isVisible=!0:(h=h||[],cl(h,H)),iA(V)){let X=V.moduleReference,_e=pp(X),Ie=Ar(V,_e.escapedText,901119,void 0,!1);Ie&&T&&kg(T,Po(Ie))&&C(Ie.declarations)}})}}function mm(r,o){let _=MD(r,o);if(_>=0){let{length:h}=Nr;for(let T=_;T=Nn;_--){if(TL(Nr[_],Mr[_]))return-1;if(Nr[_]===r&&Mr[_]===o)return _}return-1}function TL(r,o){switch(o){case 0:return!!as(r).type;case 2:return!!as(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 5:return!!r.resolvedTypeArguments;case 6:return!!r.baseTypesResolved;case 7:return!!as(r).writeType;case 8:return Wn(r).parameterInitializerContainsUndefined!==void 0}return M.assertNever(o)}function ty(){return Nr.pop(),Mr.pop(),pn.pop()}function z2(r){return Dr(jg(r),o=>{switch(o.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function bL(r){let o=oc(e_(r));return o.typeParameters?f1(o,kr(o.typeParameters,_=>Me)):o}function il(r,o){let _=ho(r,o);return _?yn(_):void 0}function G6(r,o){var _;let h;return il(r,o)||(h=(_=Jk(r,o))==null?void 0:_.type)&&go(h,!0,!0)}function Pa(r){return r&&(r.flags&1)!==0}function la(r){return r===Oe||!!(r.flags&1&&r.aliasSymbol)}function Lk(r,o){if(o!==0)return $o(r,!1,o);let _=Un(r);return _&&as(_).type||$o(r,!1,o)}function Fk(r,o,_){if(r=Fl(r,H=>!(H.flags&98304)),r.flags&131072)return Wi;if(r.flags&1048576)return Dc(r,H=>Fk(H,o,_));let h=gi(kr(o,m1)),T=[],C=[];for(let H of Ea(r)){let X=zk(H,8576);!yo(X,h)&&!(Cd(H)&6)&&cre(H)?T.push(H):C.push(X)}if(X2(r)||Q2(h)){if(C.length&&(h=gi([h,...C])),h.flags&131072)return r;let H=l8t();return H?zD(H,[r,h]):Oe}let w=po();for(let H of T)w.set(H.escapedName,Lxe(H,!1));let V=tr(_,w,ve,ve,Q_(r));return V.objectFlags|=4194304,V}function ie(r){return!!(r.flags&465829888)&&ml(t_(r)||Mt,32768)}function Le(r){let o=vm(r,ie)?Dc(r,_=>_.flags&465829888?sy(_):_):r;return ym(o,524288)}function st(r,o){let _=Ft(r);return _?sv(_,o):o}function Ft(r){let o=Qt(r);if(o&&PR(o)&&o.flowNode){let _=Fr(r);if(_){let h=At(CT.createStringLiteral(_),r),T=Af(o)?o:CT.createParenthesizedExpression(o),C=At(CT.createElementAccessExpression(T,h),r);return fa(h,C),fa(C,r),T!==o&&fa(T,C),C.flowNode=o.flowNode,C}}}function Qt(r){let o=r.parent.parent;switch(o.kind){case 208:case 303:return Ft(o);case 209:return Ft(r.parent);case 260:return o.initializer;case 226:return o.right}}function Fr(r){let o=r.parent;return r.kind===208&&o.kind===206?si(r.propertyName||r.name):r.kind===303||r.kind===304?si(r.name):""+o.elements.indexOf(r)}function si(r){let o=m1(r);return o.flags&384?""+o.value:void 0}function Qi(r){let o=r.dotDotDotToken?32:0,_=Lk(r.parent.parent,o);return _&&ji(r,_,!1)}function ji(r,o,_){if(Pa(o))return o;let h=r.parent;ce&&r.flags&33554432&&dT(r)?o=rv(o):ce&&h.parent.initializer&&!bg(yHe(h.parent.initializer),65536)&&(o=ym(o,524288));let T;if(h.kind===206)if(r.dotDotDotToken){if(o=Sg(o),o.flags&2||!cq(o))return Ze(r,v.Rest_types_may_only_be_created_from_object_types),Oe;let C=[];for(let w of h.elements)w.dotDotDotToken||C.push(w.propertyName||w.name);T=Fk(o,C,r.symbol)}else{let C=r.propertyName||r.name,w=m1(C),V=Qf(o,w,32,C);T=st(r,V)}else{let C=v1(65|(r.dotDotDotToken?0:128),o,sr,h),w=h.elements.indexOf(r);if(r.dotDotDotToken){let V=Dc(o,H=>H.flags&58982400?sy(H):H);T=tp(V,Yo)?Dc(V,H=>t4(H,w)):y_(C)}else if(h1(o)){let V=zm(w),H=32|(_||c4(r)?16:0),X=IS(o,V,H,r.name)||Oe;T=st(r,X)}else T=C}return r.initializer?Vl(OP(r))?ce&&!bg(u4(r,0),16777216)?Le(T):T:mne(r,gi([Le(T),u4(r,0)],2)):T}function Ai(r){let o=rT(r);if(o)return Gi(o)}function _s(r){let o=ba(r,!0);return o.kind===106||o.kind===80&&yf(o)===Be}function za(r){let o=ba(r,!0);return o.kind===209&&o.elements.length===0}function go(r,o=!1,_=!0){return ce&&_?LS(r,o):r}function $o(r,o,_){if(Ci(r)&&r.parent.parent.kind===249){let w=ph(Y2e(ys(r.parent.parent.expression,_)));return w.flags&4456448?ZWe(w):Ue}if(Ci(r)&&r.parent.parent.kind===250){let w=r.parent.parent;return Oq(w)||Me}if($s(r.parent))return Qi(r);let h=Ds(r)&&!Bg(r)||If(r)||nme(r),T=o&&mN(r),C=dn(r);if(pH(r))return C?Pa(C)||C===Mt?C:Oe:xe?Mt:Me;if(C)return go(C,h,T);if((de||vn(r))&&Ci(r)&&!$s(r.name)&&!(Vne(r)&32)&&!(r.flags&33554432)){if(!(px(r)&6)&&(!r.initializer||_s(r.initializer)))return rt;if(r.initializer&&za(r.initializer))return Ba}if(is(r)){if(!r.symbol)return;let w=r.parent;if(w.kind===178&&UD(w)){let X=kc(Un(r.parent),177);if(X){let _e=gd(X),Ie=cAe(w);return Ie&&r===Ie?(M.assert(!Ie.type),yn(_e.thisParameter)):Na(_e)}}let V=OMt(w,r);if(V)return V;let H=r.symbol.escapedName==="this"?$He(w):YHe(r);if(H)return go(H,!1,T)}if(Hx(r)&&r.initializer){if(vn(r)&&!is(r)){let V=EL(r,Un(r),ww(r));if(V)return V}let w=mne(r,u4(r,_));return go(w,h,T)}if(Ds(r)&&(de||vn(r)))if(Jl(r)){let w=ti(r.parent.members,$c),V=w.length?gm(r.symbol,w):V_(r)&128?bre(r.symbol):void 0;return V&&go(V,!0,T)}else{let w=sM(r.parent),V=w?lb(r.symbol,w):V_(r)&128?bre(r.symbol):void 0;return V&&go(V,!0,T)}if(Yg(r))return $t;if($s(r.name))return P(r.name,!1,!0)}function dd(r){if(r.valueDeclaration&&Dn(r.valueDeclaration)){let o=as(r);return o.isConstructorDeclaredProperty===void 0&&(o.isConstructorDeclaredProperty=!1,o.isConstructorDeclaredProperty=!!Y0(r)&&Oi(r.declarations,_=>Dn(_)&&Hre(_)&&(_.left.kind!==212||Wp(_.left.argumentExpression))&&!ua(void 0,_,r,_))),o.isConstructorDeclaredProperty}return!1}function gg(r){let o=r.valueDeclaration;return o&&Ds(o)&&!Vl(o)&&!o.initializer&&(de||vn(o))}function Y0(r){if(r.declarations)for(let o of r.declarations){let _=of(o,!1,!1);if(_&&(_.kind===176||yh(_)))return _}}function ES(r){let o=Jr(r.declarations[0]),_=Zi(r.escapedName),h=r.declarations.every(C=>vn(C)&&ac(C)&&ky(C.expression)),T=h?U.createPropertyAccessExpression(U.createPropertyAccessExpression(U.createIdentifier("module"),U.createIdentifier("exports")),_):U.createPropertyAccessExpression(U.createIdentifier("exports"),_);return h&&fa(T.expression.expression,T.expression),fa(T.expression,T),fa(T,o),T.flowNode=o.endFlowNode,sv(T,rt,sr)}function gm(r,o){let _=fs(r.escapedName,"__#")?U.createPrivateIdentifier(r.escapedName.split("@")[1]):Zi(r.escapedName);for(let h of o){let T=U.createPropertyAccessExpression(U.createThis(),_);fa(T.expression,T),fa(T,h),T.flowNode=h.returnFlowNode;let C=H6(T,r);if(de&&(C===rt||C===Ba)&&Ze(r.valueDeclaration,v.Member_0_implicitly_has_an_1_type,ns(r),_n(C)),!tp(C,_q))return p7(C)}}function lb(r,o){let _=fs(r.escapedName,"__#")?U.createPrivateIdentifier(r.escapedName.split("@")[1]):Zi(r.escapedName),h=U.createPropertyAccessExpression(U.createThis(),_);fa(h.expression,h),fa(h,o),h.flowNode=o.returnFlowNode;let T=H6(h,r);return de&&(T===rt||T===Ba)&&Ze(r.valueDeclaration,v.Member_0_implicitly_has_an_1_type,ns(r),_n(T)),tp(T,_q)?void 0:p7(T)}function H6(r,o){let _=o?.valueDeclaration&&(!gg(o)||V_(o.valueDeclaration)&128)&&bre(o)||sr;return sv(r,rt,_)}function LD(r,o){let _=sA(r.valueDeclaration);if(_){let V=vn(_)?tT(_):void 0;return V&&V.typeExpression?Gi(V.typeExpression):r.valueDeclaration&&EL(r.valueDeclaration,r,_)||Sb(vl(_))}let h,T=!1,C=!1;if(dd(r)&&(h=lb(r,Y0(r))),!h){let V;if(r.declarations){let H;for(let X of r.declarations){let _e=Dn(X)||to(X)?X:ac(X)?Dn(X.parent)?X.parent:X:void 0;if(!_e)continue;let Ie=ac(_e)?ER(_e):ll(_e);(Ie===4||Dn(_e)&&Hre(_e,Ie))&&(hg(_e)?T=!0:C=!0),to(_e)||(H=ua(H,_e,r,X)),H||(V||(V=[])).push(Dn(_e)||to(_e)?lu(r,o,_e,Ie):Pr)}h=H}if(!h){if(!kt(V))return Oe;let H=T&&r.declarations?ub(V,r.declarations):void 0;if(C){let _e=bre(r);_e&&((H||(H=[])).push(_e),T=!0)}let X=Dt(H,_e=>!!(_e.flags&-98305))?H:V;h=gi(X)}}let w=ep(go(h,!1,C&&!T));return r.valueDeclaration&&vn(r.valueDeclaration)&&Fl(w,V=>!!(V.flags&-98305))===Pr?(Tb(r.valueDeclaration,Me),Me):w}function EL(r,o,_){var h,T;if(!vn(r)||!_||!ko(_)||_.properties.length)return;let C=po();for(;Dn(r)||Hn(r);){let H=fd(r);(h=H?.exports)!=null&&h.size&&Op(C,H.exports),r=Dn(r)?r.parent:r.parent.parent}let w=fd(r);(T=w?.exports)!=null&&T.size&&Op(C,w.exports);let V=tr(o,C,ve,ve,ve);return V.objectFlags|=4096,V}function ua(r,o,_,h){var T;let C=Vl(o.parent);if(C){let w=ep(Gi(C));if(r)!la(r)&&!la(w)&&!Z0(r,w)&&KYe(void 0,r,h,w);else return w}if((T=_.parent)!=null&&T.valueDeclaration){let w=PD(_.parent);if(w.valueDeclaration){let V=Vl(w.valueDeclaration);if(V){let H=ho(Gi(V),_.escapedName);if(H)return CS(H)}}}return r}function lu(r,o,_,h){if(to(_)){if(o)return yn(o);let w=vl(_.arguments[2]),V=il(w,"value");if(V)return V;let H=il(w,"get");if(H){let _e=lC(H);if(_e)return Na(_e)}let X=il(w,"set");if(X){let _e=lC(X);if(_e)return hCe(_e)}return Me}if(xS(_.left,_.right))return Me;let T=h===1&&(Hn(_.left)||cc(_.left))&&(ky(_.left.expression)||$e(_.left.expression)&&Xx(_.left.expression)),C=o?yn(o):T?Z_(vl(_.right)):Sb(vl(_.right));if(C.flags&524288&&h===2&&r.escapedName==="export="){let w=vg(C),V=po();$5(w.members,V);let H=V.size;o&&!o.exports&&(o.exports=po()),(o||r).exports.forEach((_e,Ie)=>{var Ne;let dt=V.get(Ie);if(dt&&dt!==_e&&!(_e.flags&2097152))if(_e.flags&111551&&dt.flags&111551){if(_e.valueDeclaration&&dt.valueDeclaration&&Jr(_e.valueDeclaration)!==Jr(dt.valueDeclaration)){let Lt=Zi(_e.escapedName),hr=((Ne=ci(dt.valueDeclaration,Hu))==null?void 0:Ne.name)||dt.valueDeclaration;lo(Ze(_e.valueDeclaration,v.Duplicate_identifier_0,Lt),mn(hr,v._0_was_also_declared_here,Lt)),lo(Ze(hr,v.Duplicate_identifier_0,Lt),mn(_e.valueDeclaration,v._0_was_also_declared_here,Lt))}let Ct=ta(_e.flags|dt.flags,Ie);Ct.links.type=gi([yn(_e),yn(dt)]),Ct.valueDeclaration=dt.valueDeclaration,Ct.declarations=ds(dt.declarations,_e.declarations),V.set(Ie,Ct)}else V.set(Ie,j0(_e,dt));else V.set(Ie,_e)});let X=tr(H!==V.size?void 0:w.symbol,V,w.callSignatures,w.constructSignatures,w.indexInfos);if(H===V.size&&(C.aliasSymbol&&(X.aliasSymbol=C.aliasSymbol,X.aliasTypeArguments=C.aliasTypeArguments),Qn(C)&4)){X.aliasSymbol=C.symbol;let _e=hc(C);X.aliasTypeArguments=kt(_e)?_e:void 0}return X.objectFlags|=kJ([C])|Qn(C)&20608,X.symbol&&X.symbol.flags&32&&C===kl(X.symbol)&&(X.objectFlags|=16777216),X}return xre(C)?(Tb(_,Ja),Ja):C}function xS(r,o){return Hn(r)&&r.expression.kind===110&&HA(o,_=>Uu(r,_))}function hg(r){let o=of(r,!1,!1);return o.kind===176||o.kind===262||o.kind===218&&!xR(o.parent)}function ub(r,o){return M.assert(r.length===o.length),r.filter((_,h)=>{let T=o[h],C=Dn(T)?T:Dn(T.parent)?T.parent:void 0;return C&&hg(C)})}function Wy(r,o,_){if(r.initializer){let h=$s(r.name)?P(r.name,!0,!1):Mt;return go(mne(r,u4(r,_?0:1,h)))}return $s(r.name)?P(r.name,o,_):(_&&!er(r)&&Tb(r,Me),o?It:Me)}function Bd(r,o,_){let h=po(),T,C=131200;Et(r.elements,V=>{let H=V.propertyName||V.name;if(V.dotDotDotToken){T=oy(Ue,Me,!1);return}let X=m1(H);if(!rm(X)){C|=512;return}let _e=nm(X),Ie=4|(V.initializer?16777216:0),Ne=ta(Ie,_e);Ne.links.type=Wy(V,o,_),Ne.links.bindingElement=V,h.set(Ne.escapedName,Ne)});let w=tr(void 0,h,ve,ve,T?[T]:ve);return w.objectFlags|=C,o&&(w.pattern=r,w.objectFlags|=131072),w}function Tn(r,o,_){let h=r.elements,T=yc(h),C=T&&T.kind===208&&T.dotDotDotToken?T:void 0;if(h.length===0||h.length===1&&C)return ee>=2?FWe(Me):Ja;let w=kr(h,_e=>du(_e)?Me:Wy(_e,o,_)),V=dv(h,_e=>!(_e===C||du(_e)||c4(_e)),h.length-1)+1,H=kr(h,(_e,Ie)=>_e===C?4:Ie>=V?2:1),X=ay(w,H);return o&&(X=yWe(X),X.pattern=r,X.objectFlags|=131072),X}function P(r,o=!1,_=!1){return r.kind===206?Bd(r,o,_):Tn(r,o,_)}function B(r,o){return nt($o(r,!0,0),r,o)}function Y(r){let o=Wn(r);if(!o.resolvedType){let _=ta(4096,"__importAttributes"),h=po();Et(r.elements,C=>{let w=ta(4,xj(C));w.parent=_,w.links.type=_Vt(C),w.links.target=w,h.set(w.escapedName,w)});let T=tr(_,h,ve,ve,ve);T.objectFlags|=262272,o.resolvedType=T}return o.resolvedType}function ge(r){let o=fd(r),_=XMt(!1);return _&&o&&o===_}function nt(r,o,_){return r?(r.flags&4096&&ge(o.parent)&&(r=Fxe(o)),_&&wre(o,r),r.flags&8192&&(Zo(o)||!o.type)&&r.symbol!==Un(o)&&(r=Yr),ep(r)):(r=is(o)&&o.dotDotDotToken?Ja:Me,_&&(er(o)||Tb(o,r)),r)}function er(r){let o=jg(r),_=o.kind===169?o.parent:o;return Pq(_)}function dn(r){let o=Vl(r);if(o)return Gi(o)}function Es(r){let o=r.valueDeclaration;return o?(Zo(o)&&(o=OP(o)),is(o)?mre(o.parent):!1):!1}function Xa(r,o){let _=as(r);if(!_.type){let h=Jm(r,o);return!_.type&&!Es(r)&&!o&&(_.type=h),h}return _.type}function Jm(r,o){if(r.flags&4194304)return bL(r);if(r===tt)return Me;if(r.flags&134217728&&r.valueDeclaration){let T=Un(Jr(r.valueDeclaration)),C=ta(T.flags,"exports");C.declarations=T.declarations?T.declarations.slice():[],C.parent=r,C.links.target=T,T.valueDeclaration&&(C.valueDeclaration=T.valueDeclaration),T.members&&(C.members=new Map(T.members)),T.exports&&(C.exports=new Map(T.exports));let w=po();return w.set("exports",C),tr(r,w,ve,ve,ve)}M.assertIsDefined(r.valueDeclaration);let _=r.valueDeclaration;if(qi(_)&&Xd(_))return _.statements.length?ep(Sb(ys(_.statements[0].expression))):Wi;if(U1(_))return xL(r);if(!mm(r,0))return r.flags&512&&!(r.flags&67108864)?$6(r):Zo(_)&&o===1?Oe:l1(r);let h;if(_.kind===277)h=nt(dn(_)||vl(_.expression),_);else if(Dn(_)||vn(_)&&(to(_)||(Hn(_)||E9(_))&&Dn(_.parent)))h=LD(r);else if(Hn(_)||cc(_)||$e(_)||Ia(_)||Df(_)||ru(_)||El(_)||_l(_)&&!Nm(_)||Wg(_)||qi(_)){if(r.flags&9136)return $6(r);h=Dn(_.parent)?LD(r):dn(_)||Me}else if(ql(_))h=dn(_)||EYe(_);else if(Yg(_))h=dn(_)||a$e(_);else if(m_(_))h=dn(_)||f4(_.name,0);else if(Nm(_))h=dn(_)||xYe(_,0);else if(is(_)||Ds(_)||If(_)||Ci(_)||Zo(_)||mw(_))h=B(_,!0);else if(TT(_))h=$6(r);else if(nS(_))h=Jte(r);else return M.fail("Unhandled declaration kind! "+M.formatSyntaxKind(_.kind)+" for "+M.formatSymbol(r));return ty()?h:r.flags&512&&!(r.flags&67108864)?$6(r):Zo(_)&&o===1?h:l1(r)}function qm(r){if(r)switch(r.kind){case 177:return _p(r);case 178:return wfe(r);case 172:return M.assert(Bg(r)),Vl(r)}}function ry(r){let o=qm(r);return o&&Gi(o)}function jk(r){let o=cAe(r);return o&&o.symbol}function OEe(r){return mb(gd(r))}function xL(r){let o=as(r);if(!o.type){if(!mm(r,0))return Oe;let _=kc(r,177),h=kc(r,178),T=ci(kc(r,172),Cf),C=_&&vn(_)&&Ai(_)||ry(_)||ry(h)||ry(T)||_&&_.body&&_ne(_)||T&&T.initializer&&B(T,!0);C||(h&&!Pq(h)?Au(de,h,v.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ns(r)):_&&!Pq(_)?Au(de,_,v.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ns(r)):T&&!Pq(T)&&Au(de,T,v.Member_0_implicitly_has_an_1_type,ns(r),"any"),C=Me),ty()||(qm(_)?Ze(_,v._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ns(r)):qm(h)||qm(T)?Ze(h,v._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ns(r)):_&&de&&Ze(_,v._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ns(r)),C=Me),o.type??(o.type=C)}return o.type}function Ute(r){let o=as(r);if(!o.writeType){if(!mm(r,7))return Oe;let _=kc(r,178)??ci(kc(r,172),Cf),h=ry(_);ty()||(qm(_)&&Ze(_,v._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ns(r)),h=Me),o.writeType??(o.writeType=h||xL(r))}return o.writeType}function Vte(r){let o=Br(kl(r));return o.flags&8650752?o:o.flags&2097152?jn(o.types,_=>!!(_.flags&8650752)):void 0}function $6(r){let o=as(r),_=o;if(!o.type){let h=r.valueDeclaration&&lne(r.valueDeclaration,!1);if(h){let T=_Ce(r,h);T&&(r=T,o=T.links)}_.type=o.type=REe(r)}return o.type}function REe(r){let o=r.valueDeclaration;if(r.flags&1536&&tR(r))return Me;if(o&&(o.kind===226||ac(o)&&o.parent.kind===226))return LD(r);if(r.flags&512&&o&&qi(o)&&o.commonJsModuleIndicator){let h=Ff(r);if(h!==r){if(!mm(r,0))return Oe;let T=sa(r.exports.get("export=")),C=LD(T,T===h?void 0:h);return ty()?C:l1(r)}}let _=Fp(16,r);if(r.flags&32){let h=Vte(r);return h?wo([_,h]):_}else return ce&&r.flags&16777216?LS(_,!0):_}function Jte(r){let o=as(r);return o.type||(o.type=Fze(r))}function MEe(r){let o=as(r);if(!o.type){if(!mm(r,0))return Oe;let _=ku(r),h=r.declarations&&q0(Sp(r),!0),T=di(h?.declarations,C=>pc(C)?dn(C):void 0);if(o.type??(o.type=h?.declarations&&Ine(h.declarations)&&r.declarations.length?ES(h):Ine(r.declarations)?rt:T||(Kf(_)&111551?yn(_):Oe)),!ty())return l1(h??r),o.type??(o.type=Oe)}return o.type}function qte(r){let o=as(r);return o.type||(o.type=cs(yn(o.target),o.mapper))}function LEe(r){let o=as(r);return o.writeType||(o.writeType=cs(_b(o.target),o.mapper))}function l1(r){let o=r.valueDeclaration;if(o){if(Vl(o))return Ze(r.valueDeclaration,v._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ns(r)),Oe;de&&(o.kind!==169||o.initializer)&&Ze(r.valueDeclaration,v._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ns(r))}else if(r.flags&2097152){let _=Sp(r);_&&Ze(_,v.Circular_definition_of_import_alias_0,ns(r))}return Me}function mJ(r){let o=as(r);return o.type||(M.assertIsDefined(o.deferralParent),M.assertIsDefined(o.deferralConstituents),o.type=o.deferralParent.flags&1048576?gi(o.deferralConstituents):wo(o.deferralConstituents)),o.type}function FEe(r){let o=as(r);return!o.writeType&&o.deferralWriteConstituents&&(M.assertIsDefined(o.deferralParent),M.assertIsDefined(o.deferralConstituents),o.writeType=o.deferralParent.flags&1048576?gi(o.deferralWriteConstituents):wo(o.deferralWriteConstituents)),o.writeType}function _b(r){let o=ul(r);return r.flags&4?o&2?o&65536?FEe(r)||mJ(r):r.links.writeType||r.links.type:nv(yn(r),!!(r.flags&16777216)):r.flags&98304?o&1?LEe(r):Ute(r):yn(r)}function yn(r,o){let _=ul(r);return _&65536?mJ(r):_&1?qte(r):_&262144?dMt(r):_&8192?D7t(r):r.flags&7?Xa(r,o):r.flags&9136?$6(r):r.flags&8?Jte(r):r.flags&98304?xL(r):r.flags&2097152?MEe(r):Oe}function CS(r){return nv(yn(r),!!(r.flags&16777216))}function AS(r,o){return r!==void 0&&o!==void 0&&(Qn(r)&4)!==0&&r.target===o}function FD(r){return Qn(r)&4?r.target:r}function jD(r,o){return _(r);function _(h){if(Qn(h)&7){let T=FD(h);return T===o||Dt(mi(T),_)}else if(h.flags&2097152)return Dt(h.types,_);return!1}}function gJ(r,o){for(let _ of o)r=Ga(r,XE(Un(_)));return r}function BD(r,o){for(;;){if(r=r.parent,r&&Dn(r)){let _=ll(r);if(_===6||_===3){let h=Un(r.left);h&&h.parent&&!Dr(h.parent.valueDeclaration,T=>r===T)&&(r=h.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{let h=BD(r,o);if(r.kind===200)return Ut(h,XE(Un(r.typeParameter)));if(r.kind===194)return ds(h,Oxe(r));let T=gJ(h,j1(r)),C=o&&(r.kind===263||r.kind===231||r.kind===264||yh(r))&&kl(Un(r)).thisType;return C?Ut(T,C):T}case 341:let _=DR(r);_&&(r=_.valueDeclaration);break;case 320:{let h=BD(r,o);return r.tags?gJ(h,To(r.tags,T=>om(T)?T.typeParameters:void 0)):h}}}}function CL(r){var o;let _=r.flags&32||r.flags&16?r.valueDeclaration:(o=r.declarations)==null?void 0:o.find(h=>{if(h.kind===264)return!0;if(h.kind!==260)return!1;let T=h.initializer;return!!T&&(T.kind===218||T.kind===219)});return M.assert(!!_,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),BD(_)}function u1(r){if(!r.declarations)return;let o;for(let _ of r.declarations)(_.kind===264||_.kind===263||_.kind===231||yh(_)||kR(_))&&(o=gJ(o,j1(_)));return o}function jEe(r){return ds(CL(r),u1(r))}function hJ(r){let o=Ks(r,1);if(o.length===1){let _=o[0];if(!_.typeParameters&&_.parameters.length===1&&C_(_)){let h=Sq(_.parameters[0]);return Pa(h)||GJ(h)===Me}}return!1}function AL(r){if(Ks(r,1).length>0)return!0;if(r.flags&8650752){let o=t_(r);return!!o&&hJ(o)}return!1}function fb(r){let o=T0(r.symbol);return o&&Lg(o)}function zte(r,o,_){let h=kt(o),T=vn(_);return ti(Ks(r,1),C=>(T||h>=fh(C.typeParameters))&&h<=kt(C.typeParameters))}function pb(r,o,_){let h=zte(r,o,_),T=kr(o,Gi);return js(h,C=>Dt(C.typeParameters)?IL(C,T,vn(_)):C)}function Br(r){if(!r.resolvedBaseConstructorType){let o=T0(r.symbol),_=o&&Lg(o),h=fb(r);if(!h)return r.resolvedBaseConstructorType=sr;if(!mm(r,1))return Oe;let T=ys(h.expression);if(_&&h!==_&&(M.assert(!_.typeArguments),ys(_.expression)),T.flags&2621440&&vg(T),!ty())return Ze(r.symbol.valueDeclaration,v._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ns(r.symbol)),r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=Oe);if(!(T.flags&1)&&T!==z&&!AL(T)){let C=Ze(h.expression,v.Type_0_is_not_a_constructor_function_type,_n(T));if(T.flags&262144){let w=Z6(T),V=Mt;if(w){let H=Ks(w,1);H[0]&&(V=Na(H[0]))}T.symbol.declarations&&lo(C,mn(T.symbol.declarations[0],v.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ns(T.symbol),_n(V)))}return r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=Oe)}r.resolvedBaseConstructorType??(r.resolvedBaseConstructorType=T)}return r.resolvedBaseConstructorType}function Zn(r){let o=ve;if(r.symbol.declarations)for(let _ of r.symbol.declarations){let h=tN(_);if(h)for(let T of h){let C=Gi(T);la(C)||(o===ve?o=[C]:o.push(C))}}return o}function ri(r,o){Ze(r,v.Type_0_recursively_references_itself_as_a_base_type,_n(o,void 0,2))}function mi(r){if(!r.baseTypesResolved){if(mm(r,6)&&(r.objectFlags&8?r.resolvedBaseTypes=[Ui(r)]:r.symbol.flags&96?(r.symbol.flags&32&&ha(r),r.symbol.flags&64&&ny(r)):M.fail("type must be class or interface"),!ty()&&r.symbol.declarations))for(let o of r.symbol.declarations)(o.kind===263||o.kind===264)&&ri(o,r);r.baseTypesResolved=!0}return r.resolvedBaseTypes}function Ui(r){let o=js(r.typeParameters,(_,h)=>r.elementFlags[h]&8?Qf(_,be):_);return y_(gi(o||ve),r.readonly)}function ha(r){r.resolvedBaseTypes=iH;let o=X_(Br(r));if(!(o.flags&2621441))return r.resolvedBaseTypes=ve;let _=fb(r),h,T=o.symbol?oc(o.symbol):void 0;if(o.symbol&&o.symbol.flags&32&&Qa(T))h=vWe(_,o.symbol);else if(o.flags&1)h=o;else{let w=pb(o,_.typeArguments,_);if(!w.length)return Ze(_.expression,v.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=ve;h=Na(w[0])}if(la(h))return r.resolvedBaseTypes=ve;let C=Sg(h);if(!Pu(C)){let w=KEe(void 0,h),V=Bs(w,v.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,_n(C));return da.add(Ay(Jr(_.expression),_.expression,V)),r.resolvedBaseTypes=ve}return r===C||jD(C,r)?(Ze(r.symbol.valueDeclaration,v.Type_0_recursively_references_itself_as_a_base_type,_n(r,void 0,2)),r.resolvedBaseTypes=ve):(r.resolvedBaseTypes===iH&&(r.members=void 0),r.resolvedBaseTypes=[C])}function Qa(r){let o=r.outerTypeParameters;if(o){let _=o.length-1,h=hc(r);return o[_].symbol!==h[_].symbol}return!0}function Pu(r){if(r.flags&262144){let o=t_(r);if(o)return Pu(o)}return!!(r.flags&67633153&&!Xf(r)||r.flags&2097152&&Oi(r.types,Pu))}function ny(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||ve,r.symbol.declarations){for(let o of r.symbol.declarations)if(o.kind===264&&jw(o))for(let _ of jw(o)){let h=Sg(Gi(_));la(h)||(Pu(h)?r!==h&&!jD(h,r)?r.resolvedBaseTypes===ve?r.resolvedBaseTypes=[h]:r.resolvedBaseTypes.push(h):ri(o,r):Ze(_,v.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function _h(r){if(!r.declarations)return!0;for(let o of r.declarations)if(o.kind===264){if(o.flags&256)return!1;let _=jw(o);if(_){for(let h of _)if(nc(h.expression)){let T=nl(h.expression,788968,!0);if(!T||!(T.flags&64)||kl(T).thisType)return!1}}}return!0}function kl(r){let o=as(r),_=o;if(!o.declaredType){let h=r.flags&32?1:2,T=_Ce(r,r.valueDeclaration&&j9t(r.valueDeclaration));T&&(r=T,o=T.links);let C=_.declaredType=o.declaredType=Fp(h,r),w=CL(r),V=u1(r);(w||V||h===1||!_h(r))&&(C.objectFlags|=4,C.typeParameters=ds(w,V),C.outerTypeParameters=w,C.localTypeParameters=V,C.instantiations=new Map,C.instantiations.set(hm(C.typeParameters),C),C.target=C,C.resolvedTypeArguments=C.typeParameters,C.thisType=pd(r),C.thisType.isThisType=!0,C.thisType.constraint=C)}return o.declaredType}function K0(r){var o;let _=as(r);if(!_.declaredType){if(!mm(r,2))return Oe;let h=M.checkDefined((o=r.declarations)==null?void 0:o.find(kR),"Type alias symbol with no valid declaration found"),T=Qd(h)?h.typeExpression:h.type,C=T?Gi(T):Oe;if(ty()){let w=u1(r);w&&(_.typeParameters=w,_.instantiations=new Map,_.instantiations.set(hm(w),C))}else C=Oe,h.kind===340?Ze(h.typeExpression.type,v.Type_alias_0_circularly_references_itself,ns(r)):Ze(Hu(h)&&h.name||h,v.Type_alias_0_circularly_references_itself,ns(r));_.declaredType??(_.declaredType=C)}return _.declaredType}function Bk(r){return r.flags&1056&&r.symbol.flags&8?oc(e_(r.symbol)):r}function Uk(r){let o=as(r);if(!o.declaredType){let _=[];if(r.declarations){for(let T of r.declarations)if(T.kind===266){for(let C of T.members)if(UD(C)){let w=Un(C),V=fC(C).value,H=$k(V!==void 0?_Lt(V,Po(r),w):Y6(w));as(w).declaredType=H,_.push(Z_(H))}}}let h=_.length?gi(_,1,r,void 0):Y6(r);h.flags&1048576&&(h.flags|=1024,h.symbol=r),o.declaredType=h}return o.declaredType}function Y6(r){let o=W0(32,r),_=W0(32,r);return o.regularType=o,o.freshType=_,_.regularType=o,_.freshType=_,o}function Fze(r){let o=as(r);if(!o.declaredType){let _=Uk(e_(r));o.declaredType||(o.declaredType=_)}return o.declaredType}function XE(r){let o=as(r);return o.declaredType||(o.declaredType=pd(r))}function WRt(r){let o=as(r);return o.declaredType||(o.declaredType=oc(ku(r)))}function oc(r){return jze(r)||Oe}function jze(r){if(r.flags&96)return kl(r);if(r.flags&524288)return K0(r);if(r.flags&262144)return XE(r);if(r.flags&384)return Uk(r);if(r.flags&8)return Fze(r);if(r.flags&2097152)return WRt(r)}function yJ(r){switch(r.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return yJ(r.elementType);case 183:return!r.typeArguments||r.typeArguments.every(yJ)}return!1}function GRt(r){let o=MP(r);return!o||yJ(o)}function Bze(r){let o=Vl(r);return o?yJ(o):!bv(r)}function HRt(r){let o=_p(r),_=j1(r);return(r.kind===176||!!o&&yJ(o))&&r.parameters.every(Bze)&&_.every(GRt)}function $Rt(r){if(r.declarations&&r.declarations.length===1){let o=r.declarations[0];if(o)switch(o.kind){case 172:case 171:return Bze(o);case 174:case 173:case 176:case 177:case 178:return HRt(o)}}return!1}function Uze(r,o,_){let h=po();for(let T of r)h.set(T.escapedName,_&&$Rt(T)?T:Uxe(T,o));return h}function Vze(r,o){for(let _ of o){if(Jze(_))continue;let h=r.get(_.escapedName);(!h||h.valueDeclaration&&Dn(h.valueDeclaration)&&!dd(h)&&!nfe(h.valueDeclaration))&&(r.set(_.escapedName,_),r.set(_.escapedName,_))}}function Jze(r){return!!r.valueDeclaration&&B_(r.valueDeclaration)&&co(r.valueDeclaration)}function BEe(r){if(!r.declaredProperties){let o=r.symbol,_=kS(o);r.declaredProperties=SS(_),r.declaredCallSignatures=ve,r.declaredConstructSignatures=ve,r.declaredIndexInfos=ve,r.declaredCallSignatures=ex(_.get("__call")),r.declaredConstructSignatures=ex(_.get("__new")),r.declaredIndexInfos=mWe(o)}return r}function Wte(r){if(!Go(r)&&!cc(r))return!1;let o=Go(r)?r.expression:r.argumentExpression;return nc(o)&&rm(Go(r)?mh(r):vl(o))}function kL(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function vJ(r){let o=Ns(r);return!!o&&Wte(o)}function UD(r){return!y0(r)||vJ(r)}function YRt(r){return N9(r)&&!Wte(r)}function KRt(r,o,_){M.assert(!!(ul(r)&4096),"Expected a late-bound symbol."),r.flags|=_,as(o.symbol).lateSymbol=r,r.declarations?o.symbol.isReplaceableByMethod||r.declarations.push(o):r.declarations=[o],_&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==o.kind)&&(r.valueDeclaration=o)}function qze(r,o,_,h){M.assert(!!h.symbol,"The member is expected to have a symbol.");let T=Wn(h);if(!T.resolvedSymbol){T.resolvedSymbol=h.symbol;let C=Dn(h)?h.left:h.name,w=cc(C)?vl(C.argumentExpression):mh(C);if(rm(w)){let V=nm(w),H=h.symbol.flags,X=_.get(V);X||_.set(V,X=ta(0,V,4096));let _e=o&&o.get(V);if(!(r.flags&32)&&X.flags&w2(H)){let Ie=_e?ds(_e.declarations,X.declarations):X.declarations,Ne=!(w.flags&8192)&&Zi(V)||Ya(C);Et(Ie,dt=>Ze(Ns(dt)||dt,v.Property_0_was_also_declared_here,Ne)),Ze(C||h,v.Duplicate_property_0,Ne),X=ta(0,V,4096)}return X.links.nameType=w,KRt(X,h,H),X.parent?M.assert(X.parent===r,"Existing symbol parent should match new one"):X.parent=r,T.resolvedSymbol=X}}return T.resolvedSymbol}function UEe(r,o){let _=as(r);if(!_[o]){let h=o==="resolvedExports",T=h?r.flags&1536?V2(r).exports:r.exports:r.members;_[o]=T||J;let C=po();for(let H of r.declarations||ve){let X=$_e(H);if(X)for(let _e of X)h===Jl(_e)&&vJ(_e)&&qze(r,T,C,_e)}let w=PD(r).assignmentDeclarationMembers;if(w){let H=Os(w.values());for(let X of H){let _e=ll(X),Ie=_e===3||Dn(X)&&Hre(X,_e)||_e===9||_e===6;h===!Ie&&vJ(X)&&qze(r,T,C,X)}}let V=ud(T,C);if(r.flags&33554432&&_.cjsExportMerged&&r.declarations)for(let H of r.declarations){let X=as(H.symbol)[o];if(!V){V=X;continue}X&&X.forEach((_e,Ie)=>{let Ne=V.get(Ie);if(!Ne)V.set(Ie,_e);else{if(Ne===_e)return;V.set(Ie,j0(Ne,_e))}})}_[o]=V||J}return _[o]}function kS(r){return r.flags&6256?UEe(r,"resolvedMembers"):r.members||J}function Gte(r){if(r.flags&106500&&r.escapedName==="__computed"){let o=as(r);if(!o.lateSymbol&&Dt(r.declarations,vJ)){let _=sa(r.parent);Dt(r.declarations,Jl)?Mp(_):kS(_)}return o.lateSymbol||(o.lateSymbol=r)}return r}function Ep(r,o,_){if(Qn(r)&4){let h=r.target,T=hc(r);return kt(h.typeParameters)===kt(T)?f1(h,ds(T,[o||h.thisType])):r}else if(r.flags&2097152){let h=js(r.types,T=>Ep(T,o,_));return h!==r.types?wo(h):r}return _?X_(r):r}function zze(r,o,_,h){let T,C,w,V,H;yl(_,h,0,_.length)?(C=o.symbol?kS(o.symbol):po(o.declaredProperties),w=o.declaredCallSignatures,V=o.declaredConstructSignatures,H=o.declaredIndexInfos):(T=Zf(_,h),C=Uze(o.declaredProperties,T,_.length===1),w=fre(o.declaredCallSignatures,T),V=fre(o.declaredConstructSignatures,T),H=gGe(o.declaredIndexInfos,T));let X=mi(o);if(X.length){if(o.symbol&&C===kS(o.symbol)){let Ie=po(o.declaredProperties),Ne=oxe(o.symbol);Ne&&Ie.set("__index",Ne),C=Ie}wt(r,C,w,V,H);let _e=yc(h);for(let Ie of X){let Ne=_e?Ep(cs(Ie,T),_e):Ie;Vze(C,Ea(Ne)),w=ds(w,Ks(Ne,0)),V=ds(V,Ks(Ne,1));let dt=Ne!==Me?Q_(Ne):[oy(Ue,Me,!1)];H=ds(H,ti(dt,Ct=>!XEe(H,Ct.keyType)))}}wt(r,C,w,V,H)}function XRt(r){zze(r,BEe(r),ve,ve)}function QRt(r){let o=BEe(r.target),_=ds(o.typeParameters,[o.thisType]),h=hc(r),T=h.length===_.length?h:ds(h,[r]);zze(r,o,_,T)}function Gy(r,o,_,h,T,C,w,V){let H=new m(fr,V);return H.declaration=r,H.typeParameters=o,H.parameters=h,H.thisParameter=_,H.resolvedReturnType=T,H.resolvedTypePredicate=C,H.minArgumentCount=w,H.resolvedMinArgumentCount=void 0,H.target=void 0,H.mapper=void 0,H.compositeSignatures=void 0,H.compositeKind=void 0,H}function PL(r){let o=Gy(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&167);return o.target=r.target,o.mapper=r.mapper,o.compositeSignatures=r.compositeSignatures,o.compositeKind=r.compositeKind,o}function Wze(r,o){let _=PL(r);return _.compositeSignatures=o,_.compositeKind=1048576,_.target=void 0,_.mapper=void 0,_}function ZRt(r,o){if((r.flags&24)===o)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});let _=o===8?"inner":"outer";return r.optionalCallSignatureCache[_]||(r.optionalCallSignatureCache[_]=eMt(r,o))}function eMt(r,o){M.assert(o===8||o===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let _=PL(r);return _.flags|=o,_}function Gze(r,o){if(C_(r)){let T=r.parameters.length-1,C=r.parameters[T].escapedName,w=yn(r.parameters[T]);if(Yo(w))return[_(w,T,C)];if(!o&&w.flags&1048576&&Oi(w.types,Yo))return kr(w.types,V=>_(V,T,C))}return[r.parameters];function _(T,C,w){let V=hc(T),H=h(T,w),X=kr(V,(_e,Ie)=>{let Ne=H&&H[Ie]?H[Ie]:l4(r,C+Ie,T),dt=T.target.elementFlags[Ie],Ct=dt&12?32768:dt&2?16384:0,Lt=ta(1,Ne,Ct);return Lt.links.type=dt&4?y_(_e):_e,Lt});return ds(r.parameters.slice(0,C),X)}function h(T,C){let w=new Map;return kr(T.target.labeledElementDeclarations,(V,H)=>{let X=gCe(V,H,C),_e=w.get(X);return _e===void 0?(w.set(X,1),X):(w.set(X,_e+1),`${X}_${_e}`)})}}function tMt(r){let o=Br(r),_=Ks(o,1),h=T0(r.symbol),T=!!h&&_i(h,64);if(_.length===0)return[Gy(void 0,r.localTypeParameters,void 0,ve,r,void 0,0,T?4:0)];let C=fb(r),w=vn(C),V=NJ(C),H=kt(V),X=[];for(let _e of _){let Ie=fh(_e.typeParameters),Ne=kt(_e.typeParameters);if(w||H>=Ie&&H<=Ne){let dt=Ne?Kte(_e,NS(V,_e.typeParameters,Ie,w)):PL(_e);dt.typeParameters=r.localTypeParameters,dt.resolvedReturnType=r,dt.flags=T?dt.flags|4:dt.flags&-5,X.push(dt)}}return X}function Hte(r,o,_,h,T){for(let C of r)if(zJ(C,o,_,h,T,_?DLt:UL))return C}function rMt(r,o,_){if(o.typeParameters){if(_>0)return;for(let T=1;T1&&(_=_===void 0?h:-1);for(let T of r[h])if(!o||!Hte(o,T,!1,!1,!0)){let C=rMt(r,T,h);if(C){let w=T;if(C.length>1){let V=T.thisParameter,H=Et(C,X=>X.thisParameter);if(H){let X=wo(Yi(C,_e=>_e.thisParameter&&yn(_e.thisParameter)));V=tC(H,X)}w=Wze(T,C),w.thisParameter=V}(o||(o=[])).push(w)}}}if(!kt(o)&&_!==-1){let h=r[_!==void 0?_:0],T=h.slice();for(let C of r)if(C!==h){let w=C[0];if(M.assert(!!w,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),T=w.typeParameters&&Dt(T,V=>!!V.typeParameters&&!Hze(w.typeParameters,V.typeParameters))?void 0:kr(T,V=>sMt(V,w)),!T)break}o=T}return o||ve}function Hze(r,o){if(kt(r)!==kt(o))return!1;if(!r||!o)return!0;let _=Zf(o,r);for(let h=0;h=T?r:o,w=C===r?o:r,V=C===r?h:T,H=ly(r)||ly(o),X=H&&!ly(C),_e=new Array(V+(X?1:0));for(let Ie=0;Ie=vh(C)&&Ie>=vh(w),Er=Ie>=h?void 0:l4(r,Ie),rn=Ie>=T?void 0:l4(o,Ie),Bn=Er===rn?Er:Er?rn?void 0:Er:rn,wr=ta(1|(hr&&!Lt?16777216:0),Bn||`arg${Ie}`,Lt?32768:hr?16384:0);wr.links.type=Lt?y_(Ct):Ct,_e[Ie]=wr}if(X){let Ie=ta(1,"args",32768);Ie.links.type=y_(Eg(w,V)),w===o&&(Ie.links.type=cs(Ie.links.type,_)),_e[V]=Ie}return _e}function sMt(r,o){let _=r.typeParameters||o.typeParameters,h;r.typeParameters&&o.typeParameters&&(h=Zf(o.typeParameters,r.typeParameters));let T=r.declaration,C=iMt(r,o,h),w=nMt(r.thisParameter,o.thisParameter,h),V=Math.max(r.minArgumentCount,o.minArgumentCount),H=Gy(T,_,w,C,void 0,void 0,V,(r.flags|o.flags)&167);return H.compositeKind=1048576,H.compositeSignatures=ds(r.compositeKind!==2097152&&r.compositeSignatures||[r],[o]),h?H.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?ox(r.mapper,h):h:r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures&&(H.mapper=r.mapper),H}function $ze(r){let o=Q_(r[0]);if(o){let _=[];for(let h of o){let T=h.keyType;Oi(r,C=>!!Hy(C,T))&&_.push(oy(T,gi(kr(r,C=>db(C,T))),Dt(r,C=>Hy(C,T).isReadonly)))}return _}return ve}function oMt(r){let o=VEe(kr(r.types,T=>T===Gl?[oe]:Ks(T,0))),_=VEe(kr(r.types,T=>Ks(T,1))),h=$ze(r.types);wt(r,J,o,_,h)}function SJ(r,o){return r?o?wo([r,o]):r:o}function Yze(r){let o=yy(r,h=>Ks(h,1).length>0),_=kr(r,hJ);if(o>0&&o===yy(_,h=>h)){let h=_.indexOf(!0);_[h]=!1}return _}function aMt(r,o,_,h){let T=[];for(let C=0;CV);for(let V=0;V0&&(X=kr(X,_e=>{let Ie=PL(_e);return Ie.resolvedReturnType=aMt(Na(_e),T,C,V),Ie})),_=Kze(_,X)}o=Kze(o,Ks(H,0)),h=F_(Q_(H),(X,_e)=>Xze(X,_e,!1),h)}wt(r,J,o||ve,_||ve,h||ve)}function Kze(r,o){for(let _ of o)(!r||Oi(r,h=>!zJ(h,_,!1,!1,!1,UL)))&&(r=Ut(r,_));return r}function Xze(r,o,_){if(r)for(let h=0;h{var H;!(V.flags&418)&&!(V.flags&512&&((H=V.declarations)!=null&&H.length)&&Oi(V.declarations,U_))&&w.set(V.escapedName,V)}),_=w}let T;if(wt(r,_,ve,ve,ve),o.flags&32){let w=kl(o),V=Br(w);V.flags&11272192?(_=po(ye(_)),Vze(_,Ea(V))):V===Me&&(T=oy(Ue,Me,!1))}let C=Xte(_);if(C?h=axe(C):(T&&(h=Ut(h,T)),o.flags&384&&(oc(o).flags&32||Dt(r.properties,w=>!!(yn(w).flags&296)))&&(h=Ut(h,xr))),wt(r,_,ve,ve,h||ve),o.flags&8208&&(r.callSignatures=ex(o)),o.flags&32){let w=kl(o),V=o.members?ex(o.members.get("__constructor")):ve;o.flags&16&&(V=On(V.slice(),Yi(r.callSignatures,H=>yh(H.declaration)?Gy(H.declaration,H.typeParameters,H.thisParameter,H.parameters,w,void 0,H.minArgumentCount,H.flags&167):void 0))),V.length||(V=tMt(w)),r.constructSignatures=V}}function uMt(r,o,_){return cs(r,Zf([o.indexType,o.objectType],[zm(0),ay([_])]))}function _Mt(r){let o=md(r.mappedType);if(!(o.flags&1048576||o.flags&2097152))return;let _=o.flags&1048576?o.origin:o;if(!_||!(_.flags&2097152))return;let h=wo(_.types.filter(T=>T!==r.constraintType));return h!==Pr?h:void 0}function fMt(r){let o=Hy(r.source,Ue),_=iy(r.mappedType),h=!(_&1),T=_&4?0:16777216,C=o?[oy(Ue,Rre(o.type,r.mappedType,r.constraintType)||Mt,h&&o.isReadonly)]:ve,w=po(),V=_Mt(r);for(let H of Ea(r.source)){if(V){let Ie=zk(H,8576);if(!yo(Ie,V))continue}let X=8192|(h&&xg(H)?8:0),_e=ta(4|H.flags&T,H.escapedName,X);if(_e.declarations=H.declarations,_e.links.nameType=as(H).nameType,_e.links.propertyType=yn(H),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){let Ie=r.constraintType.type.objectType,Ne=uMt(r.mappedType,r.constraintType.type,Ie);_e.links.mappedType=Ne,_e.links.constraintType=ph(Ie)}else _e.links.mappedType=r.mappedType,_e.links.constraintType=r.constraintType;w.set(H.escapedName,_e)}wt(r,w,ve,ve,C)}function TJ(r){if(r.flags&4194304){let o=X_(r.type);return MS(o)?VWe(o):ph(o)}if(r.flags&16777216){if(r.root.isDistributive){let o=r.checkType,_=TJ(o);if(_!==o)return Vxe(r,Z2(r.root.checkType,_,r.mapper),!1)}return r}if(r.flags&1048576)return Dc(r,TJ,!0);if(r.flags&2097152){let o=r.types;return o.length===2&&o[0].flags&76&&o[1]===D_?r:wo(js(r.types,TJ))}return r}function JEe(r){return ul(r)&4096}function qEe(r,o,_,h){for(let T of Ea(r))h(zk(T,o));if(r.flags&1)h(Ue);else for(let T of Q_(r))(!_||T.keyType.flags&134217732)&&h(T.keyType)}function pMt(r){let o=po(),_;wt(r,J,ve,ve,ve);let h=yg(r),T=md(r),C=r.target||r,w=_1(C),V=$te(C)!==2,H=X0(C),X=X_(QE(r)),_e=iy(r);VD(r)?qEe(X,8576,!1,Ne):sC(TJ(T),Ne),wt(r,o,ve,ve,_||ve);function Ne(Ct){let Lt=w?cs(w,FL(r.mapper,h,Ct)):Ct;sC(Lt,hr=>dt(Ct,hr))}function dt(Ct,Lt){if(rm(Lt)){let hr=nm(Lt),Er=o.get(hr);if(Er)Er.links.nameType=gi([Er.links.nameType,Lt]),Er.links.keyType=gi([Er.links.keyType,Ct]);else{let rn=rm(Ct)?ho(X,nm(Ct)):void 0,Bn=!!(_e&4||!(_e&8)&&rn&&rn.flags&16777216),wr=!!(_e&1||!(_e&2)&&rn&&xg(rn)),Gr=ce&&!Bn&&rn&&rn.flags&16777216,en=rn?JEe(rn):0,$n=ta(4|(Bn?16777216:0),hr,en|262144|(wr?8:0)|(Gr?524288:0));$n.links.mappedType=r,$n.links.nameType=Lt,$n.links.keyType=Ct,rn&&($n.links.syntheticOrigin=rn,$n.declarations=V?rn.declarations:void 0),o.set(hr,$n)}}else if(Qte(Lt)||Lt.flags&33){let hr=Lt.flags&5?Ue:Lt.flags&40?be:Lt,Er=cs(H,FL(r.mapper,h,Ct)),rn=NL(X,Lt),Bn=!!(_e&1||!(_e&2)&&rn?.isReadonly),wr=oy(hr,Er,Bn);_=Xze(_,wr,!0)}}}function dMt(r){var o;if(!r.links.type){let _=r.links.mappedType;if(!mm(r,0))return _.containsError=!0,Oe;let h=X0(_.target||_),T=FL(_.mapper,yg(_),r.links.keyType),C=cs(h,T),w=ce&&r.flags&16777216&&!ml(C,49152)?LS(C,!0):r.links.checkFlags&524288?Nre(C):C;ty()||(Ze(R,v.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ns(r),_n(_)),w=Oe),(o=r.links).type??(o.type=w)}return r.links.type}function yg(r){return r.typeParameter||(r.typeParameter=XE(Un(r.declaration.typeParameter)))}function md(r){return r.constraintType||(r.constraintType=hf(yg(r))||Oe)}function _1(r){return r.declaration.nameType?r.nameType||(r.nameType=cs(Gi(r.declaration.nameType),r.mapper)):void 0}function X0(r){return r.templateType||(r.templateType=r.declaration.type?cs(go(Gi(r.declaration.type),!0,!!(iy(r)&4)),r.mapper):Oe)}function Qze(r){return MP(r.declaration.typeParameter)}function VD(r){let o=Qze(r);return o.kind===198&&o.operator===143}function QE(r){if(!r.modifiersType)if(VD(r))r.modifiersType=cs(Gi(Qze(r).type),r.mapper);else{let o=Ixe(r.declaration),_=md(o),h=_&&_.flags&262144?hf(_):_;r.modifiersType=h&&h.flags&4194304?cs(h.type,r.mapper):Mt}return r.modifiersType}function iy(r){let o=r.declaration;return(o.readonlyToken?o.readonlyToken.kind===41?2:1:0)|(o.questionToken?o.questionToken.kind===41?8:4:0)}function Zze(r){let o=iy(r);return o&8?-1:o&4?1:0}function K6(r){if(Qn(r)&32)return Zze(r)||K6(QE(r));if(r.flags&2097152){let o=K6(r.types[0]);return Oi(r.types,(_,h)=>h===0||K6(_)===o)?o:0}return 0}function mMt(r){return!!(Qn(r)&32&&iy(r)&4)}function Xf(r){if(Qn(r)&32){let o=md(r);if(Q2(o))return!0;let _=_1(r);if(_&&Q2(cs(_,sx(yg(r),o))))return!0}return!1}function $te(r){let o=_1(r);return o?yo(o,yg(r))?1:2:0}function vg(r){return r.members||(r.flags&524288?r.objectFlags&4?QRt(r):r.objectFlags&3?XRt(r):r.objectFlags&1024?fMt(r):r.objectFlags&16?lMt(r):r.objectFlags&32?pMt(r):M.fail("Unhandled object type "+M.formatObjectFlags(r.objectFlags)):r.flags&1048576?oMt(r):r.flags&2097152?cMt(r):M.fail("Unhandled type "+M.formatTypeFlags(r.flags))),r}function PS(r){return r.flags&524288?vg(r).properties:ve}function ZE(r,o){if(r.flags&524288){let h=vg(r).members.get(o);if(h&&Zh(h))return h}}function bJ(r){if(!r.resolvedProperties){let o=po();for(let _ of r.types){for(let h of Ea(_))if(!o.has(h.escapedName)){let T=xJ(r,h.escapedName,!!(r.flags&2097152));T&&o.set(h.escapedName,T)}if(r.flags&1048576&&Q_(_).length===0)break}r.resolvedProperties=SS(o)}return r.resolvedProperties}function Ea(r){return r=X6(r),r.flags&3145728?bJ(r):PS(r)}function gMt(r,o){r=X6(r),r.flags&3670016&&vg(r).members.forEach((_,h)=>{O(_,h)&&o(_,h)})}function hMt(r,o){return o.properties.some(h=>{let T=h.name&&(ig(h.name)?jf(iM(h.name)):m1(h.name)),C=T&&rm(T)?nm(T):void 0,w=C===void 0?void 0:il(r,C);return!!w&&qL(w)&&!yo(rP(h),w)})}function yMt(r){let o=gi(r);if(!(o.flags&1048576))return eAe(o);let _=po();for(let h of r)for(let{escapedName:T}of eAe(h))if(!_.has(T)){let C=oWe(o,T);C&&_.set(T,C)}return Os(_.values())}function W2(r){return r.flags&262144?hf(r):r.flags&8388608?SMt(r):r.flags&16777216?rWe(r):t_(r)}function hf(r){return EJ(r)?Z6(r):void 0}function vMt(r,o){let _=jL(r);return!!_&&G2(_,o)}function G2(r,o=0){var _;return o<5&&!!(r&&(r.flags&262144&&Dt((_=r.symbol)==null?void 0:_.declarations,h=>_i(h,4096))||r.flags&3145728&&Dt(r.types,h=>G2(h,o))||r.flags&8388608&&G2(r.objectType,o+1)||r.flags&16777216&&G2(rWe(r),o+1)||r.flags&33554432&&G2(r.baseType,o)||Qn(r)&32&&vMt(r,o)||MS(r)&&Va(rx(r),(h,T)=>!!(r.target.elementFlags[T]&8)&&G2(h,o))>=0))}function SMt(r){return EJ(r)?TMt(r):void 0}function zEe(r){let o=Q0(r,!1);return o!==r?o:W2(r)}function TMt(r){if($Ee(r))return ore(r.objectType,r.indexType);let o=zEe(r.indexType);if(o&&o!==r.indexType){let h=IS(r.objectType,o,r.accessFlags);if(h)return h}let _=zEe(r.objectType);if(_&&_!==r.objectType)return IS(_,r.indexType,r.accessFlags)}function WEe(r){if(!r.resolvedDefaultConstraint){let o=oLt(r),_=hb(r);r.resolvedDefaultConstraint=Pa(o)?_:Pa(_)?o:gi([o,_])}return r.resolvedDefaultConstraint}function eWe(r){if(r.resolvedConstraintOfDistributive!==void 0)return r.resolvedConstraintOfDistributive||void 0;if(r.root.isDistributive&&r.restrictiveInstantiation!==r){let o=Q0(r.checkType,!1),_=o===r.checkType?W2(o):o;if(_&&_!==r.checkType){let h=Vxe(r,Z2(r.root.checkType,_,r.mapper),!0);if(!(h.flags&131072))return r.resolvedConstraintOfDistributive=h,h}}r.resolvedConstraintOfDistributive=!1}function tWe(r){return eWe(r)||WEe(r)}function rWe(r){return EJ(r)?tWe(r):void 0}function bMt(r,o){let _,h=!1;for(let T of r)if(T.flags&465829888){let C=W2(T);for(;C&&C.flags&21233664;)C=W2(C);C&&(_=Ut(_,C),o&&(_=Ut(_,T)))}else(T.flags&469892092||cy(T))&&(h=!0);if(_&&(o||h)){if(h)for(let T of r)(T.flags&469892092||cy(T))&&(_=Ut(_,T));return VJ(wo(_,2),!1)}}function t_(r){if(r.flags&464781312||MS(r)){let o=GEe(r);return o!==ja&&o!==ga?o:void 0}return r.flags&4194304?Cr:void 0}function sy(r){return t_(r)||r}function EJ(r){return GEe(r)!==ga}function GEe(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;let o=[];return r.resolvedBaseConstraint=_(r);function _(C){if(!C.immediateBaseConstraint){if(!mm(C,4))return ga;let w,V=Ere(C);if((o.length<10||o.length<50&&!xs(o,V))&&(o.push(V),w=T(Q0(C,!1)),o.pop()),!ty()){if(C.flags&262144){let H=Zte(C);if(H){let X=Ze(H,v.Type_parameter_0_has_a_circular_constraint,_n(C));R&&!rE(H,R)&&!rE(R,H)&&lo(X,mn(R,v.Circularity_originates_in_type_at_this_location))}}w=ga}C.immediateBaseConstraint??(C.immediateBaseConstraint=w||ja)}return C.immediateBaseConstraint}function h(C){let w=_(C);return w!==ja&&w!==ga?w:void 0}function T(C){if(C.flags&262144){let w=Z6(C);return C.isThisType||!w?w:h(w)}if(C.flags&3145728){let w=C.types,V=[],H=!1;for(let X of w){let _e=h(X);_e?(_e!==X&&(H=!0),V.push(_e)):H=!0}return H?C.flags&1048576&&V.length===w.length?gi(V):C.flags&2097152&&V.length?wo(V):void 0:C}if(C.flags&4194304)return Cr;if(C.flags&134217728){let w=C.types,V=Yi(w,h);return V.length===w.length?Y2(C.texts,V):Ue}if(C.flags&268435456){let w=h(C.type);return w&&w!==C.type?Wk(C.symbol,w):Ue}if(C.flags&8388608){if($Ee(C))return h(ore(C.objectType,C.indexType));let w=h(C.objectType),V=h(C.indexType),H=w&&V&&IS(w,V,C.accessFlags);return H&&h(H)}if(C.flags&16777216){let w=tWe(C);return w&&h(w)}if(C.flags&33554432)return h(fxe(C));if(MS(C)){let w=kr(rx(C),(V,H)=>{let X=V.flags&262144&&C.target.elementFlags[H]&8&&h(V)||V;return X!==V&&tp(X,_e=>vb(_e)&&!MS(_e))?X:V});return ay(w,C.target.elementFlags,C.target.readonly,C.target.labeledElementDeclarations)}return C}}function EMt(r,o){if(r===o)return r.resolvedApparentType||(r.resolvedApparentType=Ep(r,o,!0));let _=`I${Bu(r)},${Bu(o)}`;return GT(_)??Qv(_,Ep(r,o,!0))}function HEe(r){if(r.default)r.default===pr&&(r.default=ga);else if(r.target){let o=HEe(r.target);r.default=o?cs(o,r.mapper):ja}else{r.default=pr;let o=r.symbol&&Et(r.symbol.declarations,h=>Cc(h)&&h.default),_=o?Gi(o):ja;r.default===pr&&(r.default=_)}return r.default}function H2(r){let o=HEe(r);return o!==ja&&o!==ga?o:void 0}function xMt(r){return HEe(r)!==ga}function nWe(r){return!!(r.symbol&&Et(r.symbol.declarations,o=>Cc(o)&&o.default))}function iWe(r){return r.resolvedApparentType||(r.resolvedApparentType=CMt(r))}function CMt(r){let o=r.target??r,_=jL(o);if(_&&!o.declaration.nameType){let h=QE(r),T=Xf(h)?iWe(h):t_(h);if(T&&tp(T,C=>vb(C)||sWe(C)))return cs(o,Z2(_,T,r.mapper))}return r}function sWe(r){return!!(r.flags&2097152)&&Oi(r.types,vb)}function $Ee(r){let o;return!!(r.flags&8388608&&Qn(o=r.objectType)&32&&!Xf(o)&&Q2(r.indexType)&&!(iy(o)&8)&&!o.declaration.nameType)}function X_(r){let o=r.flags&465829888?t_(r)||Mt:r,_=Qn(o);return _&32?iWe(o):_&4&&o!==r?Ep(o,r):o.flags&2097152?EMt(o,r):o.flags&402653316?hs:o.flags&296?ea:o.flags&2112?u8t():o.flags&528?ca:o.flags&12288?wWe():o.flags&67108864?Wi:o.flags&4194304?Cr:o.flags&2&&!ce?Wi:o}function X6(r){return Sg(X_(Sg(r)))}function oWe(r,o,_){var h,T,C;let w,V,H,X=r.flags&1048576,_e,Ie=4,Ne=X?0:8,dt=!1;for(let $n of r.types){let oi=X_($n);if(!(la(oi)||oi.flags&131072)){let ai=ho(oi,o,_),Co=ai?Cd(ai):0;if(ai){if(ai.flags&106500&&(_e??(_e=X?0:16777216),X?_e|=ai.flags&16777216:_e&=ai.flags),!w)w=ai;else if(ai!==w)if((iI(ai)||ai)===(iI(w)||w)&&Qxe(w,ai,(oa,Rs)=>oa===Rs?-1:0)===-1)dt=!!w.parent&&!!kt(u1(w.parent));else{V||(V=new Map,V.set(Po(w),w));let oa=Po(ai);V.has(oa)||V.set(oa,ai)}X&&xg(ai)?Ne|=8:!X&&!xg(ai)&&(Ne&=-9),Ne|=(Co&6?0:256)|(Co&4?512:0)|(Co&2?1024:0)|(Co&256?2048:0),H2e(ai)||(Ie=2)}else if(X){let Xs=!kL(o)&&Jk(oi,o);Xs?(Ne|=32|(Xs.isReadonly?8:0),H=Ut(H,Yo(oi)?Are(oi)||sr:Xs.type)):bb(oi)&&!(Qn(oi)&2097152)?(Ne|=32,H=Ut(H,sr)):Ne|=16}}}if(!w||X&&(V||Ne&48)&&Ne&1536&&!(V&&AMt(V.values())))return;if(!V&&!(Ne&16)&&!H)if(dt){let $n=(h=ci(w,Fh))==null?void 0:h.links,oi=tC(w,$n?.type);return oi.parent=(C=(T=w.valueDeclaration)==null?void 0:T.symbol)==null?void 0:C.parent,oi.links.containingType=r,oi.links.mapper=$n?.mapper,oi.links.writeType=_b(w),oi}else return w;let Ct=V?Os(V.values()):[w],Lt,hr,Er,rn=[],Bn,wr,Gr=!1;for(let $n of Ct){wr?$n.valueDeclaration&&$n.valueDeclaration!==wr&&(Gr=!0):wr=$n.valueDeclaration,Lt=On(Lt,$n.declarations);let oi=yn($n);hr||(hr=oi,Er=as($n).nameType);let ai=_b($n);(Bn||ai!==oi)&&(Bn=Ut(Bn||rn.slice(),ai)),oi!==hr&&(Ne|=64),(qL(oi)||K2(oi))&&(Ne|=128),oi.flags&131072&&oi!==wa&&(Ne|=131072),rn.push(oi)}On(rn,H);let en=ta(4|(_e??0),o,Ie|Ne);return en.links.containingType=r,!Gr&&wr&&(en.valueDeclaration=wr,wr.symbol.parent&&(en.parent=wr.symbol.parent)),en.declarations=Lt,en.links.nameType=Er,rn.length>2?(en.links.checkFlags|=65536,en.links.deferralParent=r,en.links.deferralConstituents=rn,en.links.deferralWriteConstituents=Bn):(en.links.type=X?gi(rn):wo(rn),Bn&&(en.links.writeType=X?gi(Bn):wo(Bn))),en}function aWe(r,o,_){var h,T,C;let w=_?(h=r.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:h.get(o):(T=r.propertyCache)==null?void 0:T.get(o);return w||(w=oWe(r,o,_),w&&((_?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=po()):r.propertyCache||(r.propertyCache=po())).set(o,w),_&&!(ul(w)&48)&&!((C=r.propertyCache)!=null&&C.get(o))&&(r.propertyCache||(r.propertyCache=po())).set(o,w))),w}function AMt(r){let o;for(let _ of r){if(!_.declarations)return;if(!o){o=new Set(_.declarations);continue}if(o.forEach(h=>{xs(_.declarations,h)||o.delete(h)}),o.size===0)return}return o}function xJ(r,o,_){let h=aWe(r,o,_);return h&&!(ul(h)&16)?h:void 0}function Sg(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=kMt(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(Dt(bJ(r),PMt)?33554432:0)),r.objectFlags&33554432?Pr:r):r}function kMt(r){let o=js(r.types,Sg);if(o===r.types)return r;let _=gi(o);return _.flags&1048576&&(_.resolvedReducedType=_),_}function PMt(r){return cWe(r)||lWe(r)}function cWe(r){return!(r.flags&16777216)&&(ul(r)&131264)===192&&!!(yn(r).flags&131072)}function lWe(r){return!r.valueDeclaration&&!!(ul(r)&1024)}function YEe(r){return!!(r.flags&1048576&&r.objectFlags&16777216&&Dt(r.types,YEe)||r.flags&2097152&&NMt(r))}function NMt(r){let o=r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=cs(r,gs));return Sg(o)!==o}function KEe(r,o){if(o.flags&2097152&&Qn(o)&33554432){let _=jn(bJ(o),cWe);if(_)return Bs(r,v.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,_n(o,void 0,536870912),ns(_));let h=jn(bJ(o),lWe);if(h)return Bs(r,v.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,_n(o,void 0,536870912),ns(h))}return r}function ho(r,o,_,h){var T,C;if(r=X6(r),r.flags&524288){let w=vg(r),V=w.members.get(o);if(V&&!h&&((T=r.symbol)==null?void 0:T.flags)&512&&((C=as(r.symbol).typeOnlyExportStarMap)!=null&&C.has(o)))return;if(V&&Zh(V,h))return V;if(_)return;let H=w===Sc?Gl:w.callSignatures.length?id:w.constructSignatures.length?Je:void 0;if(H){let X=ZE(H,o);if(X)return X}return ZE(rl,o)}if(r.flags&2097152){let w=xJ(r,o,!0);return w||(_?void 0:xJ(r,o,_))}if(r.flags&1048576)return xJ(r,o,_)}function CJ(r,o){if(r.flags&3670016){let _=vg(r);return o===0?_.callSignatures:_.constructSignatures}return ve}function Ks(r,o){let _=CJ(X6(r),o);if(o===0&&!kt(_)&&r.flags&1048576){if(r.arrayFallbackSignatures)return r.arrayFallbackSignatures;let h;if(tp(r,T=>{var C;return!!((C=T.symbol)!=null&&C.parent)&&DMt(T.symbol.parent)&&(h?h===T.symbol.escapedName:(h=T.symbol.escapedName,!0))})){let T=Dc(r,w=>g1((uWe(w.symbol.parent)?Kr:zt).typeParameters[0],w.mapper)),C=y_(T,vm(r,w=>uWe(w.symbol.parent)));return r.arrayFallbackSignatures=Ks(il(C,h),o)}r.arrayFallbackSignatures=_}return _}function DMt(r){return!r||!zt.symbol||!Kr.symbol?!1:!!Um(r,zt.symbol)||!!Um(r,Kr.symbol)}function uWe(r){return!r||!Kr.symbol?!1:!!Um(r,Kr.symbol)}function XEe(r,o){return jn(r,_=>_.keyType===o)}function QEe(r,o){let _,h,T;for(let C of r)C.keyType===Ue?_=C:Vk(o,C.keyType)&&(h?(T||(T=[h])).push(C):h=C);return T?oy(Mt,wo(kr(T,C=>C.type)),F_(T,(C,w)=>C&&w.isReadonly,!0)):h||(_&&Vk(o,Ue)?_:void 0)}function Vk(r,o){return yo(r,o)||o===Ue&&yo(r,be)||o===be&&(r===zs||!!(r.flags&128)&&Oy(r.value))}function ZEe(r){return r.flags&3670016?vg(r).indexInfos:ve}function Q_(r){return ZEe(X6(r))}function Hy(r,o){return XEe(Q_(r),o)}function db(r,o){var _;return(_=Hy(r,o))==null?void 0:_.type}function exe(r,o){return Q_(r).filter(_=>Vk(o,_.keyType))}function NL(r,o){return QEe(Q_(r),o)}function Jk(r,o){return NL(r,kL(o)?Yr:jf(Zi(o)))}function _We(r){var o;let _;for(let h of j1(r))_=Ga(_,XE(h.symbol));return _?.length?_:El(r)?(o=Q6(r))==null?void 0:o.typeParameters:void 0}function txe(r){let o=[];return r.forEach((_,h)=>{q2(h)||o.push(_)}),o}function rxe(r,o){if(Su(r))return;let _=h_(De,'"'+r+'"',512);return _&&o?sa(_):_}function nxe(r){return cA(r)||nM(r)||is(r)&&bj(r)}function AJ(r){if(nxe(r))return!0;if(!is(r))return!1;if(r.initializer){let _=gd(r.parent),h=r.parent.parameters.indexOf(r);return M.assert(h>=0),h>=vh(_,3)}let o=Qb(r.parent);return o?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=ane(o).length:!1}function IMt(r){return Ds(r)&&!Bg(r)&&r.questionToken}function DL(r,o,_,h){return{kind:r,parameterName:o,parameterIndex:_,type:h}}function fh(r){let o=0;if(r)for(let _=0;_=_&&C<=T){let w=r?r.slice():[];for(let H=C;HH.arguments.length&&!Er||(T=_.length)}if((r.kind===177||r.kind===178)&&UD(r)&&(!V||!C)){let Ct=r.kind===177?178:177,Lt=kc(Un(r),Ct);Lt&&(C=jk(Lt))}w&&w.typeExpression&&(C=tC(ta(1,"this"),Gi(w.typeExpression)));let Ie=k0(r)?_T(r):r,Ne=Ie&&Vc(Ie)?kl(sa(Ie.parent.symbol)):void 0,dt=Ne?Ne.localTypeParameters:_We(r);(nH(r)||vn(r)&&wMt(r,_))&&(h|=1),(hN(r)&&_i(r,64)||Vc(r)&&_i(r.parent,64))&&(h|=4),o.resolvedSignature=Gy(r,dt,C,_,void 0,void 0,T,h)}return o.resolvedSignature}function wMt(r,o){if(k0(r)||!ixe(r))return!1;let _=yc(r.parameters),h=_?RP(_):nT(r).filter(Nd),T=di(h,w=>w.typeExpression&&Gj(w.typeExpression.type)?w.typeExpression.type:void 0),C=ta(3,"args",32768);return T?C.links.type=y_(Gi(T.type)):(C.links.checkFlags|=65536,C.links.deferralParent=Pr,C.links.deferralConstituents=[Ja],C.links.deferralWriteConstituents=[Ja]),T&&o.pop(),o.push(C),!0}function Q6(r){if(!(vn(r)&&$a(r)))return;let o=tT(r);return o?.typeExpression&&lC(Gi(o.typeExpression))}function OMt(r,o){let _=Q6(r);if(!_)return;let h=r.parameters.indexOf(o);return o.dotDotDotToken?Tq(_,h):Eg(_,h)}function RMt(r){let o=Q6(r);return o&&Na(o)}function ixe(r){let o=Wn(r);return o.containsArgumentsReference===void 0&&(o.flags&512?o.containsArgumentsReference=!0:o.containsArgumentsReference=_(r.body)),o.containsArgumentsReference;function _(h){if(!h)return!1;switch(h.kind){case 80:return h.escapedText===ze.escapedName&&m7(h)===ze;case 172:case 174:case 177:case 178:return h.name.kind===167&&_(h.name);case 211:case 212:return _(h.expression);case 303:return _(h.initializer);default:return!GH(h)&&!Mg(h)&&!!qs(h,_)}}}function ex(r){if(!r||!r.declarations)return ve;let o=[];for(let _=0;_0&&h.body){let T=r.declarations[_-1];if(h.parent===T.parent&&h.kind===T.kind&&h.pos===T.end)continue}if(vn(h)&&h.jsDoc){let T=LH(h);if(kt(T)){for(let C of T){let w=C.typeExpression;w.type===void 0&&!Vc(h)&&Tb(w,Me),o.push(gd(w))}continue}}o.push(!K1(h)&&!Nm(h)&&Q6(h)||gd(h))}}return o}function fWe(r){let o=Y_(r,r);if(o){let _=Ff(o);if(_)return yn(_)}return Me}function mb(r){if(r.thisParameter)return yn(r.thisParameter)}function Ud(r){if(!r.resolvedTypePredicate){if(r.target){let o=Ud(r.target);r.resolvedTypePredicate=o?SLt(o,r.mapper):tl}else if(r.compositeSignatures)r.resolvedTypePredicate=M8t(r.compositeSignatures,r.compositeKind)||tl;else{let o=r.declaration&&_p(r.declaration),_;if(!o){let h=Q6(r.declaration);h&&r!==h&&(_=Ud(h))}if(o||_)r.resolvedTypePredicate=o&&FA(o)?MMt(o,r):_||tl;else if(r.declaration&&$a(r.declaration)&&(!r.resolvedReturnType||r.resolvedReturnType.flags&16)&&rp(r)>0){let{declaration:h}=r;r.resolvedTypePredicate=tl,r.resolvedTypePredicate=gjt(h)||tl}else r.resolvedTypePredicate=tl}M.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===tl?void 0:r.resolvedTypePredicate}function MMt(r,o){let _=r.parameterName,h=r.type&&Gi(r.type);return _.kind===197?DL(r.assertsModifier?2:0,void 0,void 0,h):DL(r.assertsModifier?3:1,_.escapedText,Va(o.parameters,T=>T.escapedName===_.escapedText),h)}function pWe(r,o,_){return o!==2097152?gi(r,_):wo(r)}function Na(r){if(!r.resolvedReturnType){if(!mm(r,3))return Oe;let o=r.target?cs(Na(r.target),r.mapper):r.compositeSignatures?cs(pWe(kr(r.compositeSignatures,Na),r.compositeKind,2),r.mapper):JD(r.declaration)||(Gc(r.declaration.body)?Me:_ne(r.declaration));if(r.flags&8?o=$Ge(o):r.flags&16&&(o=LS(o)),!ty()){if(r.declaration){let _=_p(r.declaration);if(_)Ze(_,v.Return_type_annotation_circularly_references_itself);else if(de){let h=r.declaration,T=Ns(h);T?Ze(T,v._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Ya(T)):Ze(h,v.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}o=Me}r.resolvedReturnType??(r.resolvedReturnType=o)}return r.resolvedReturnType}function JD(r){if(r.kind===176)return kl(sa(r.parent.symbol));let o=_p(r);if(k0(r)){let _=ZP(r);if(_&&Vc(_.parent)&&!o)return kl(sa(_.parent.parent.symbol))}if(QP(r))return Gi(r.parameters[0].type);if(o)return Gi(o);if(r.kind===177&&UD(r)){let _=vn(r)&&Ai(r);if(_)return _;let h=kc(Un(r),178),T=ry(h);if(T)return T}return RMt(r)}function Yte(r){return r.compositeSignatures&&Dt(r.compositeSignatures,Yte)||!r.resolvedReturnType&&MD(r,3)>=0}function LMt(r){return dWe(r)||Me}function dWe(r){if(C_(r)){let o=yn(r.parameters[r.parameters.length-1]),_=Yo(o)?Are(o):o;return _&&db(_,be)}}function IL(r,o,_,h){let T=sxe(r,NS(o,r.typeParameters,fh(r.typeParameters),_));if(h){let C=M$e(Na(T));if(C){let w=PL(C);w.typeParameters=h;let V=PL(T);return V.resolvedReturnType=$2(w),V}}return T}function sxe(r,o){let _=r.instantiations||(r.instantiations=new Map),h=hm(o),T=_.get(h);return T||_.set(h,T=Kte(r,o)),T}function Kte(r,o){return Yk(r,FMt(r,o),!0)}function FMt(r,o){return Zf(js(r.typeParameters,_=>_.mapper?cs(_,_.mapper):_),o)}function wL(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=jMt(r)):r}function jMt(r){return Yk(r,hGe(r.typeParameters),!0)}function BMt(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=UMt(r)):r}function UMt(r){return IL(r,kr(r.typeParameters,o=>o.target&&!hf(o.target)?o.target:o),vn(r.declaration))}function VMt(r){return r.typeParameters?r.implementationSignatureCache||(r.implementationSignatureCache=JMt(r)):r}function JMt(r){return r.typeParameters?Yk(r,Zf([],[])):r}function qMt(r){let o=r.typeParameters;if(o){if(r.baseSignatureCache)return r.baseSignatureCache;let _=hGe(o),h=Zf(o,kr(o,C=>hf(C)||Mt)),T=kr(o,C=>cs(C,h)||Mt);for(let C=0;C{Qte(T)&&!XEe(o,T)&&o.push(oy(T,_.type?Gi(_.type):Me,fp(_,8),_))})}return o}return ve}function Qte(r){return!!(r.flags&4108)||K2(r)||!!(r.flags&2097152)&&!Gk(r)&&Dt(r.types,Qte)}function Zte(r){return Yi(ti(r.symbol&&r.symbol.declarations,Cc),MP)[0]}function gWe(r,o){var _;let h;if((_=r.symbol)!=null&&_.declarations){for(let T of r.symbol.declarations)if(T.parent.kind===195){let[C=T.parent,w]=hfe(T.parent.parent);if(w.kind===183&&!o){let V=w,H=ICe(V);if(H){let X=V.typeArguments.indexOf(C);if(X()=>_Bt(V,H,Ct))),Ne=cs(_e,Ie);Ne!==r&&(h=Ut(h,Ne))}}}}else if(w.kind===169&&w.dotDotDotToken||w.kind===191||w.kind===202&&w.dotDotDotToken)h=Ut(h,y_(Mt));else if(w.kind===204)h=Ut(h,Ue);else if(w.kind===168&&w.parent.kind===200)h=Ut(h,Cr);else if(w.kind===200&&w.type&&ba(w.type)===T.parent&&w.parent.kind===194&&w.parent.extendsType===w&&w.parent.checkType.kind===200&&w.parent.checkType.type){let V=w.parent.checkType,H=Gi(V.type);h=Ut(h,cs(H,sx(XE(Un(V.typeParameter)),V.typeParameter.constraint?Gi(V.typeParameter.constraint):Cr)))}}}return h&&wo(h)}function Z6(r){if(!r.constraint)if(r.target){let o=hf(r.target);r.constraint=o?cs(o,r.mapper):ja}else{let o=Zte(r);if(!o)r.constraint=gWe(r)||ja;else{let _=Gi(o);_.flags&1&&!la(_)&&(_=o.parent.parent.kind===200?Cr:Mt),r.constraint=_}}return r.constraint===ja?void 0:r.constraint}function hWe(r){let o=kc(r.symbol,168),_=om(o.parent)?C9(o.parent):o.parent;return _&&fd(_)}function hm(r){let o="";if(r){let _=r.length,h=0;for(;h<_;){let T=r[h].id,C=1;for(;h+C<_&&r[h+C].id===T+C;)C++;o.length&&(o+=","),o+=T,C>1&&(o+=":"+C),h+=C}}return o}function qk(r,o){return r?`@${Po(r)}`+(o?`:${hm(o)}`:""):""}function kJ(r,o){let _=0;for(let h of r)(o===void 0||!(h.flags&o))&&(_|=Qn(h));return _&458752}function qD(r,o){return Dt(o)&&r===Bo?Mt:f1(r,o)}function f1(r,o){let _=hm(o),h=r.instantiations.get(_);return h||(h=Fp(4,r.symbol),r.instantiations.set(_,h),h.objectFlags|=o?kJ(o):0,h.target=r,h.resolvedTypeArguments=o),h}function yWe(r){let o=W0(r.flags,r.symbol);return o.objectFlags=r.objectFlags,o.target=r.target,o.resolvedTypeArguments=r.resolvedTypeArguments,o}function cxe(r,o,_,h,T){if(!h){h=Hk(o);let w=HD(h);T=_?$y(w,_):w}let C=Fp(4,r.symbol);return C.target=r,C.node=o,C.mapper=_,C.aliasSymbol=h,C.aliasTypeArguments=T,C}function hc(r){var o,_;if(!r.resolvedTypeArguments){if(!mm(r,5))return((o=r.target.localTypeParameters)==null?void 0:o.map(()=>Oe))||ve;let h=r.node,T=h?h.kind===183?ds(r.target.outerTypeParameters,yne(h,r.target.localTypeParameters)):h.kind===188?[Gi(h.elementType)]:kr(h.elements,Gi):ve;ty()?r.resolvedTypeArguments??(r.resolvedTypeArguments=r.mapper?$y(T,r.mapper):T):(r.resolvedTypeArguments??(r.resolvedTypeArguments=((_=r.target.localTypeParameters)==null?void 0:_.map(()=>Oe))||ve),Ze(r.node||R,r.target.symbol?v.Type_arguments_for_0_circularly_reference_themselves:v.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&ns(r.target.symbol)))}return r.resolvedTypeArguments}function p1(r){return kt(r.target.typeParameters)}function vWe(r,o){let _=oc(sa(o)),h=_.localTypeParameters;if(h){let T=kt(r.typeArguments),C=fh(h),w=vn(r);if(!(!de&&w)&&(Th.length)){let X=w&&C0(r)&&!WA(r.parent),_e=C===h.length?X?v.Expected_0_type_arguments_provide_these_with_an_extends_tag:v.Generic_type_0_requires_1_type_argument_s:X?v.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:v.Generic_type_0_requires_between_1_and_2_type_arguments,Ie=_n(_,void 0,2);if(Ze(r,_e,Ie,C,h.length),!w)return Oe}if(r.kind===183&&BWe(r,kt(r.typeArguments)!==h.length))return cxe(_,r,void 0);let H=ds(_.outerTypeParameters,NS(NJ(r),h,C,w));return f1(_,H)}return tx(r,o)?_:Oe}function zD(r,o,_,h){let T=oc(r);if(T===Vt){let X=CK.get(r.escapedName);if(X!==void 0&&o&&o.length===1)return X===4?lxe(o[0]):Wk(r,o[0])}let C=as(r),w=C.typeParameters,V=hm(o)+qk(_,h),H=C.instantiations.get(V);return H||C.instantiations.set(V,H=SGe(T,Zf(w,NS(o,w,fh(w),vn(r.valueDeclaration))),_,h)),H}function zMt(r,o){if(ul(o)&1048576){let T=NJ(r),C=qk(o,T),w=Ce.get(C);return w||(w=Ll(1,"error",void 0,`alias ${C}`),w.aliasSymbol=o,w.aliasTypeArguments=T,Ce.set(C,w)),w}let _=oc(o),h=as(o).typeParameters;if(h){let T=kt(r.typeArguments),C=fh(h);if(Th.length)return Ze(r,C===h.length?v.Generic_type_0_requires_1_type_argument_s:v.Generic_type_0_requires_between_1_and_2_type_arguments,ns(o),C,h.length),Oe;let w=Hk(r),V=w&&(SWe(o)||!SWe(w))?w:void 0,H;if(V)H=HD(V);else if(W5(r)){let X=e4(r,2097152,!0);if(X&&X!==Tt){let _e=ku(X);_e&&_e.flags&524288&&(V=_e,H=NJ(r)||(h?[]:void 0))}}return zD(o,NJ(r),V,H)}return tx(r,o)?_:Oe}function SWe(r){var o;let _=(o=r.declarations)==null?void 0:o.find(kR);return!!(_&&Ip(_))}function WMt(r){switch(r.kind){case 183:return r.typeName;case 233:let o=r.expression;if(nc(o))return o}}function TWe(r){return r.parent?`${TWe(r.parent)}.${r.escapedName}`:r.escapedName}function ere(r){let _=(r.kind===166?r.right:r.kind===211?r.name:r).escapedText;if(_){let h=r.kind===166?ere(r.left):r.kind===211?ere(r.expression):void 0,T=h?`${TWe(h)}.${_}`:_,C=St.get(T);return C||(St.set(T,C=ta(524288,_,1048576)),C.parent=h,C.links.declaredType=Nt),C}return Tt}function e4(r,o,_){let h=WMt(r);if(!h)return Tt;let T=nl(h,o,_);return T&&T!==Tt?T:_?Tt:ere(h)}function tre(r,o){if(o===Tt)return Oe;if(o=V6(o)||o,o.flags&96)return vWe(r,o);if(o.flags&524288)return zMt(r,o);let _=jze(o);if(_)return tx(r,o)?Z_(_):Oe;if(o.flags&111551&&rre(r)){let h=GMt(r,o);return h||(e4(r,788968),yn(o))}return Oe}function GMt(r,o){let _=Wn(r);if(!_.resolvedJSDocType){let h=yn(o),T=h;if(o.valueDeclaration){let C=r.kind===205&&r.qualifier;h.symbol&&h.symbol!==o&&C&&(T=tre(r,h.symbol))}_.resolvedJSDocType=T}return _.resolvedJSDocType}function lxe(r){return uxe(r)?bWe(r,Mt):r}function uxe(r){return!!(r.flags&3145728&&Dt(r.types,uxe)||r.flags&33554432&&!WD(r)&&uxe(r.baseType)||r.flags&524288&&!cy(r)||r.flags&432275456&&!K2(r))}function WD(r){return!!(r.flags&33554432&&r.constraint.flags&2)}function _xe(r,o){return o.flags&3||o===r||r.flags&1?r:bWe(r,o)}function bWe(r,o){let _=`${Bu(r)}>${Bu(o)}`,h=ki.get(_);if(h)return h;let T=uh(33554432);return T.baseType=r,T.constraint=o,ki.set(_,T),T}function fxe(r){return WD(r)?r.baseType:wo([r.constraint,r.baseType])}function EWe(r){return r.kind===189&&r.elements.length===1}function xWe(r,o,_){return EWe(o)&&EWe(_)?xWe(r,o.elements[0],_.elements[0]):wS(Gi(o))===wS(r)?Gi(_):void 0}function HMt(r,o){let _,h=!0;for(;o&&!Ji(o)&&o.kind!==320;){let T=o.parent;if(T.kind===169&&(h=!h),(h||r.flags&8650752)&&T.kind===194&&o===T.trueType){let C=xWe(r,T.checkType,T.extendsType);C&&(_=Ut(_,C))}else if(r.flags&262144&&T.kind===200&&!T.nameType&&o===T.type){let C=Gi(T);if(yg(C)===wS(r)){let w=jL(C);if(w){let V=hf(w);V&&tp(V,vb)&&(_=Ut(_,gi([be,zs])))}}}o=T}return _?_xe(r,wo(_)):r}function rre(r){return!!(r.flags&16777216)&&(r.kind===183||r.kind===205)}function tx(r,o){return r.typeArguments?(Ze(r,v.Type_0_is_not_generic,o?ns(o):r.typeName?Ya(r.typeName):TK),!1):!0}function CWe(r){if($e(r.typeName)){let o=r.typeArguments;switch(r.typeName.escapedText){case"String":return tx(r),Ue;case"Number":return tx(r),be;case"Boolean":return tx(r),Wr;case"Void":return tx(r),gn;case"Undefined":return tx(r),sr;case"Null":return tx(r),Xe;case"Function":case"function":return tx(r),Gl;case"array":return(!o||!o.length)&&!de?Ja:void 0;case"promise":return(!o||!o.length)&&!de?Eq(Me):void 0;case"Object":if(o&&o.length===2){if(S9(r)){let _=Gi(o[0]),h=Gi(o[1]),T=_===Ue||_===be?[oy(_,h,!1)]:ve;return tr(void 0,J,ve,ve,T)}return Me}return tx(r),de?void 0:Me}}}function $Mt(r){let o=Gi(r.type);return ce?HJ(o,65536):o}function PJ(r){let o=Wn(r);if(!o.resolvedType){if(Xm(r)&&sT(r.parent))return o.resolvedSymbol=Tt,o.resolvedType=vl(r.parent.expression);let _,h,T=788968;rre(r)&&(h=CWe(r),h||(_=e4(r,T,!0),_===Tt?_=e4(r,T|111551):e4(r,T),h=tre(r,_))),h||(_=e4(r,T),h=tre(r,_)),o.resolvedSymbol=_,o.resolvedType=h}return o.resolvedType}function NJ(r){return kr(r.typeArguments,Gi)}function AWe(r){let o=Wn(r);if(!o.resolvedType){let _=tYe(r);o.resolvedType=Z_(ep(_))}return o.resolvedType}function kWe(r,o){function _(T){let C=T.declarations;if(C)for(let w of C)switch(w.kind){case 263:case 264:case 266:return w}}if(!r)return o?Bo:Wi;let h=oc(r);return h.flags&524288?kt(h.typeParameters)!==o?(Ze(_(r),v.Global_type_0_must_have_1_type_parameter_s,Qc(r),o),o?Bo:Wi):h:(Ze(_(r),v.Global_type_0_must_be_a_class_or_interface_type,Qc(r)),o?Bo:Wi)}function pxe(r,o){return GD(r,111551,o?v.Cannot_find_global_value_0:void 0)}function dxe(r,o){return GD(r,788968,o?v.Cannot_find_global_type_0:void 0)}function nre(r,o,_){let h=GD(r,788968,_?v.Cannot_find_global_type_0:void 0);if(h&&(oc(h),kt(as(h).typeParameters)!==o)){let T=h.declarations&&jn(h.declarations,sm);Ze(T,v.Global_type_0_must_have_1_type_parameter_s,Qc(h),o);return}return h}function GD(r,o,_){return Ar(void 0,r,o,_,!1,!1)}function Pl(r,o,_){let h=dxe(r,_);return h||_?kWe(h,o):void 0}function YMt(){return wd||(wd=Pl("TypedPropertyDescriptor",1,!0)||Bo)}function KMt(){return on||(on=Pl("TemplateStringsArray",0,!0)||Wi)}function PWe(){return Yn||(Yn=Pl("ImportMeta",0,!0)||Wi)}function NWe(){if(!bi){let r=ta(0,"ImportMetaExpression"),o=PWe(),_=ta(4,"meta",8);_.parent=r,_.links.type=o;let h=po([_]);r.members=h,bi=tr(r,h,ve,ve,ve)}return bi}function DWe(r){return G||(G=Pl("ImportCallOptions",0,r))||Wi}function mxe(r){return Fe||(Fe=Pl("ImportAttributes",0,r))||Wi}function IWe(r){return _g||(_g=pxe("Symbol",r))}function XMt(r){return sd||(sd=dxe("SymbolConstructor",r))}function wWe(){return Rf||(Rf=Pl("Symbol",0,!1))||Wi}function DJ(r){return od||(od=Pl("Promise",1,r))||Bo}function OWe(r){return Hh||(Hh=Pl("PromiseLike",1,r))||Bo}function gxe(r){return $h||($h=pxe("Promise",r))}function QMt(r){return Mf||(Mf=Pl("PromiseConstructorLike",0,r))||Wi}function ire(r){return vt||(vt=Pl("AsyncIterable",1,r))||Bo}function ZMt(r){return Kt||(Kt=Pl("AsyncIterator",3,r))||Bo}function e8t(r){return Zt||(Zt=Pl("AsyncIterableIterator",1,r))||Bo}function t8t(r){return Ur||(Ur=Pl("AsyncGenerator",3,r))||Bo}function hxe(r){return Hl||(Hl=Pl("Iterable",1,r))||Bo}function r8t(r){return Yh||(Yh=Pl("Iterator",3,r))||Bo}function n8t(r){return $f||($f=Pl("IterableIterator",1,r))||Bo}function i8t(r){return rh||(rh=Pl("Generator",3,r))||Bo}function s8t(r){return ad||(ad=Pl("IteratorYieldResult",1,r))||Bo}function o8t(r){return ae||(ae=Pl("IteratorReturnResult",1,r))||Bo}function RWe(r){return Bt||(Bt=Pl("Disposable",0,r))||Wi}function a8t(r){return Zr||(Zr=Pl("AsyncDisposable",0,r))||Wi}function MWe(r,o=0){let _=GD(r,788968,void 0);return _&&kWe(_,o)}function c8t(){return Fi||(Fi=nre("Extract",2,!0)||Tt),Fi===Tt?void 0:Fi}function l8t(){return Vs||(Vs=nre("Omit",2,!0)||Tt),Vs===Tt?void 0:Vs}function yxe(r){return Ts||(Ts=nre("Awaited",1,r)||(r?Tt:void 0)),Ts===Tt?void 0:Ts}function u8t(){return Ws||(Ws=Pl("BigInt",0,!1))||Wi}function _8t(r){return qc??(qc=Pl("ClassDecoratorContext",1,r))??Bo}function f8t(r){return Od??(Od=Pl("ClassMethodDecoratorContext",2,r))??Bo}function p8t(r){return Om??(Om=Pl("ClassGetterDecoratorContext",2,r))??Bo}function d8t(r){return Kh??(Kh=Pl("ClassSetterDecoratorContext",2,r))??Bo}function m8t(r){return Uy??(Uy=Pl("ClassAccessorDecoratorContext",2,r))??Bo}function g8t(r){return Hv??(Hv=Pl("ClassAccessorDecoratorTarget",2,r))??Bo}function h8t(r){return Vy??(Vy=Pl("ClassAccessorDecoratorResult",2,r))??Bo}function y8t(r){return Rd??(Rd=Pl("ClassFieldDecoratorContext",2,r))??Bo}function v8t(){return Ta||(Ta=pxe("NaN",!1))}function S8t(){return Ho||(Ho=nre("Record",2,!0)||Tt),Ho===Tt?void 0:Ho}function OL(r,o){return r!==Bo?f1(r,o):Wi}function LWe(r){return OL(YMt(),[r])}function FWe(r){return OL(hxe(!0),[r])}function y_(r,o){return OL(o?Kr:zt,[r])}function vxe(r){switch(r.kind){case 190:return 2;case 191:return jWe(r);case 202:return r.questionToken?2:r.dotDotDotToken?jWe(r):1;default:return 1}}function jWe(r){return MJ(r.type)?4:8}function T8t(r){let o=x8t(r.parent);if(MJ(r))return o?Kr:zt;let h=kr(r.elements,vxe);return Sxe(h,o,kr(r.elements,b8t))}function b8t(r){return yN(r)||is(r)?r:void 0}function BWe(r,o){return!!Hk(r)||UWe(r)&&(r.kind===188?DS(r.elementType):r.kind===189?Dt(r.elements,DS):o||Dt(r.typeArguments,DS))}function UWe(r){let o=r.parent;switch(o.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return UWe(o);case 265:return!0}return!1}function DS(r){switch(r.kind){case 183:return rre(r)||!!(e4(r,788968).flags&524288);case 186:return!0;case 198:return r.operator!==158&&DS(r.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return DS(r.type);case 191:return r.type.kind!==188||DS(r.type.elementType);case 192:case 193:return Dt(r.types,DS);case 199:return DS(r.objectType)||DS(r.indexType);case 194:return DS(r.checkType)||DS(r.extendsType)||DS(r.trueType)||DS(r.falseType)}return!1}function E8t(r){let o=Wn(r);if(!o.resolvedType){let _=T8t(r);if(_===Bo)o.resolvedType=Wi;else if(!(r.kind===189&&Dt(r.elements,h=>!!(vxe(h)&8)))&&BWe(r))o.resolvedType=r.kind===189&&r.elements.length===0?_:cxe(_,r,void 0);else{let h=r.kind===188?[Gi(r.elementType)]:kr(r.elements,Gi);o.resolvedType=Txe(_,h)}}return o.resolvedType}function x8t(r){return yT(r)&&r.operator===148}function ay(r,o,_=!1,h=[]){let T=Sxe(o||kr(r,C=>1),_,h);return T===Bo?Wi:r.length?Txe(T,r):T}function Sxe(r,o,_){if(r.length===1&&r[0]&4)return o?Kr:zt;let h=kr(r,C=>C&1?"#":C&2?"?":C&4?".":"*").join()+(o?"R":"")+(Dt(_,C=>!!C)?","+kr(_,C=>C?Sa(C):"_").join(","):""),T=Di.get(h);return T||Di.set(h,T=C8t(r,o,_)),T}function C8t(r,o,_){let h=r.length,T=yy(r,Ie=>!!(Ie&9)),C,w=[],V=0;if(h){C=new Array(h);for(let Ie=0;Ie!!(r.elementFlags[hr]&8&&Lt.flags&1179648));if(Ct>=0)return wJ(kr(o,(Lt,hr)=>r.elementFlags[hr]&8?Lt:Mt))?Dc(o[Ct],Lt=>bxe(r,UW(o,Ct,Lt))):Oe}let w=[],V=[],H=[],X=-1,_e=-1,Ie=-1;for(let Ct=0;Ct=1e4)return Ze(R,Mg(R)?v.Type_produces_a_tuple_type_that_is_too_large_to_represent:v.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Oe;Et(Er,(rn,Bn)=>{var wr;return dt(rn,Lt.target.elementFlags[Bn],(wr=Lt.target.labeledElementDeclarations)==null?void 0:wr[Bn])})}else dt(h1(Lt)&&db(Lt,be)||Oe,4,(T=r.labeledElementDeclarations)==null?void 0:T[Ct]);else dt(Lt,hr,(C=r.labeledElementDeclarations)==null?void 0:C[Ct])}for(let Ct=0;Ct=0&&_eV[_e+Lt]&8?Qf(Ct,be):Ct)),w.splice(_e+1,Ie-_e),V.splice(_e+1,Ie-_e),H.splice(_e+1,Ie-_e));let Ne=Sxe(V,r.readonly,H);return Ne===Bo?Wi:V.length?f1(Ne,w):Ne;function dt(Ct,Lt,hr){Lt&1&&(X=V.length),Lt&4&&_e<0&&(_e=V.length),Lt&6&&(Ie=V.length),w.push(Lt&2?go(Ct,!0):Ct),V.push(Lt),H.push(hr)}}function t4(r,o,_=0){let h=r.target,T=p1(r)-_;return o>h.fixedLength?_7t(r)||ay(ve):ay(hc(r).slice(o,T),h.elementFlags.slice(o,T),!1,h.labeledElementDeclarations&&h.labeledElementDeclarations.slice(o,T))}function VWe(r){return gi(Ut(Uce(r.target.fixedLength,o=>jf(""+o)),ph(r.target.readonly?Kr:zt)))}function A8t(r,o){let _=Va(r.elementFlags,h=>!(h&o));return _>=0?_:r.elementFlags.length}function RL(r,o){return r.elementFlags.length-dv(r.elementFlags,_=>!(_&o))-1}function Exe(r){return r.fixedLength+RL(r,3)}function rx(r){let o=hc(r),_=p1(r);return o.length===_?o:o.slice(0,_)}function k8t(r){return go(Gi(r.type),!0)}function Bu(r){return r.id}function d1(r,o){return gv(r,o,Bu,tc)>=0}function IJ(r,o){let _=gv(r,o,Bu,tc);return _<0?(r.splice(~_,0,o),!0):!1}function P8t(r,o,_){let h=_.flags;if(!(h&131072))if(o|=h&473694207,h&465829888&&(o|=33554432),h&2097152&&Qn(_)&67108864&&(o|=536870912),_===pt&&(o|=8388608),la(_)&&(o|=1073741824),!ce&&h&98304)Qn(_)&65536||(o|=4194304);else{let T=r.length,C=T&&_.id>r[T-1].id?~T:gv(r,_,Bu,tc);C<0&&r.splice(~C,0,_)}return o}function JWe(r,o,_){let h;for(let T of _)T!==h&&(o=T.flags&1048576?JWe(r,o|(R8t(T)?1048576:0),T.types):P8t(r,o,T),h=T);return o}function N8t(r,o){var _;if(r.length<2)return r;let h=hm(r),T=Vi.get(h);if(T)return T;let C=o&&Dt(r,X=>!!(X.flags&524288)&&!Xf(X)&&Wxe(vg(X))),w=r.length,V=w,H=0;for(;V>0;){V--;let X=r[V];if(C||X.flags&469499904){if(X.flags&262144&&sy(X).flags&1048576){dh(X,gi(kr(r,Ne=>Ne===X?Pr:Ne)),Md)&&M1(r,V);continue}let _e=X.flags&61603840?jn(Ea(X),Ne=>Tg(yn(Ne))):void 0,Ie=_e&&Z_(yn(_e));for(let Ne of r)if(X!==Ne){if(H===1e5&&H/(w-V)*w>1e6){(_=kn)==null||_.instant(kn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:r.map(Ct=>Ct.id)}),Ze(R,v.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(H++,_e&&Ne.flags&61603840){let dt=il(Ne,_e.escapedName);if(dt&&Tg(dt)&&Z_(dt)!==Ie)continue}if(dh(X,Ne,Md)&&(!(Qn(FD(X))&1)||!(Qn(FD(Ne))&1)||yb(X,Ne))){M1(r,V);break}}}}return Vi.set(h,r),r}function D8t(r,o,_){let h=r.length;for(;h>0;){h--;let T=r[h],C=T.flags;(C&402653312&&o&4||C&256&&o&8||C&2048&&o&64||C&8192&&o&4096||_&&C&32768&&o&16384||ix(T)&&d1(r,T.regularType))&&M1(r,h)}}function I8t(r){let o=ti(r,K2);if(o.length){let _=r.length;for(;_>0;){_--;let h=r[_];h.flags&128&&Dt(o,T=>w8t(h,T))&&M1(r,_)}}}function w8t(r,o){return o.flags&134217728?Lre(r,o):Mre(r,o)}function O8t(r){let o=[];for(let _ of r)if(_.flags&2097152&&Qn(_)&67108864){let h=_.types[0].flags&8650752?0:1;cl(o,_.types[h])}for(let _ of o){let h=[];for(let C of r)if(C.flags&2097152&&Qn(C)&67108864){let w=C.types[0].flags&8650752?0:1;C.types[w]===_&&IJ(h,C.types[1-w])}let T=t_(_);if(tp(T,C=>d1(h,C))){let C=r.length;for(;C>0;){C--;let w=r[C];if(w.flags&2097152&&Qn(w)&67108864){let V=w.types[0].flags&8650752?0:1;w.types[V]===_&&d1(h,w.types[1-V])&&M1(r,C)}}IJ(r,_)}}}function R8t(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function qWe(r,o){for(let _ of o)if(_.flags&1048576){let h=_.origin;_.aliasSymbol||h&&!(h.flags&1048576)?cl(r,_):h&&h.flags&1048576&&qWe(r,h.types)}}function xxe(r,o){let _=J2(r);return _.types=o,_}function gi(r,o=1,_,h,T){if(r.length===0)return Pr;if(r.length===1)return r[0];if(r.length===2&&!T&&(r[0].flags&1048576||r[1].flags&1048576)){let C=o===0?"N":o===2?"S":"L",w=r[0].id=2&&C[0]===sr&&C[1]===Ye&&M1(C,1),(w&402664352||w&16384&&w&32768)&&D8t(C,w,!!(o&2)),w&128&&w&402653184&&I8t(C),w&536870912&&O8t(C),o===2&&(C=N8t(C,!!(w&524288)),!C))return Oe;if(C.length===0)return w&65536?w&4194304?Xe:z:w&32768?w&4194304?sr:Z:Pr}if(!T&&w&1048576){let H=[];qWe(H,r);let X=[];for(let Ie of C)Dt(H,Ne=>d1(Ne.types,Ie))||X.push(Ie);if(!_&&H.length===1&&X.length===0)return H[0];if(F_(H,(Ie,Ne)=>Ie+Ne.types.length,0)+X.length===C.length){for(let Ie of H)IJ(X,Ie);T=xxe(1048576,X)}}let V=(w&36323331?0:32768)|(w&2097152?16777216:0);return Axe(C,V,_,h,T)}function M8t(r,o){let _,h=[];for(let C of r){let w=Ud(C);if(w){if(w.kind!==0&&w.kind!==1||_&&!Cxe(_,w))return;_=w,h.push(w.type)}else{let V=o!==2097152?Na(C):void 0;if(V!==Ot&&V!==Ht)return}}if(!_)return;let T=pWe(h,o);return DL(_.kind,_.parameterName,_.parameterIndex,T)}function Cxe(r,o){return r.kind===o.kind&&r.parameterIndex===o.parameterIndex}function Axe(r,o,_,h,T){if(r.length===0)return Pr;if(r.length===1)return r[0];let w=(T?T.flags&1048576?`|${hm(T.types)}`:T.flags&2097152?`&${hm(T.types)}`:`#${T.type.id}|${hm(r)}`:hm(r))+qk(_,h),V=As.get(w);return V||(V=uh(1048576),V.objectFlags=o|kJ(r,98304),V.types=r,V.origin=T,V.aliasSymbol=_,V.aliasTypeArguments=h,r.length===2&&r[0].flags&512&&r[1].flags&512&&(V.flags|=16,V.intrinsicName="boolean"),As.set(w,V)),V}function L8t(r){let o=Wn(r);if(!o.resolvedType){let _=Hk(r);o.resolvedType=gi(kr(r.types,Gi),1,_,HD(_))}return o.resolvedType}function F8t(r,o,_){let h=_.flags;return h&2097152?WWe(r,o,_.types):(cy(_)?o&16777216||(o|=16777216,r.set(_.id.toString(),_)):(h&3?(_===pt&&(o|=8388608),la(_)&&(o|=1073741824)):(ce||!(h&98304))&&(_===Ye&&(o|=262144,_=sr),r.has(_.id.toString())||(_.flags&109472&&o&109472&&(o|=67108864),r.set(_.id.toString(),_))),o|=h&473694207),o)}function WWe(r,o,_){for(let h of _)o=F8t(r,o,Z_(h));return o}function j8t(r,o){let _=r.length;for(;_>0;){_--;let h=r[_];(h.flags&4&&o&402653312||h.flags&8&&o&256||h.flags&64&&o&2048||h.flags&4096&&o&8192||h.flags&16384&&o&32768||cy(h)&&o&470302716)&&M1(r,_)}}function B8t(r,o){for(let _ of r)if(!d1(_.types,o)){let h=o.flags&128?Ue:o.flags&288?be:o.flags&2048?Re:o.flags&8192?Yr:void 0;if(!h||!d1(_.types,h))return!1}return!0}function U8t(r){let o=r.length,_=ti(r,h=>!!(h.flags&128));for(;o>0;){o--;let h=r[o];if(h.flags&402653184){for(let T of _)if(OS(T,h)){M1(r,o);break}else if(K2(h))return!0}}return!1}function GWe(r,o){for(let _=0;_!(h.flags&o))}function V8t(r){let o,_=Va(r,w=>!!(Qn(w)&32768));if(_<0)return!1;let h=_+1;for(;h!!(Ct.flags&469893116)||cy(Ct))){if(jJ(dt,Ne))return Ie;if(!(dt.flags&1048576&&vm(dt,Ct=>jJ(Ct,Ne)))&&!jJ(Ne,dt))return Pr;V=67108864}}}let H=hm(w)+(o&2?"*":qk(_,h)),X=Ri.get(H);if(!X){if(C&1048576)if(V8t(w))X=wo(w,o,_,h);else if(Oi(w,_e=>!!(_e.flags&1048576&&_e.types[0].flags&32768))){let _e=Dt(w,WL)?Ye:sr;GWe(w,32768),X=gi([wo(w,o),_e],1,_,h)}else if(Oi(w,_e=>!!(_e.flags&1048576&&(_e.types[0].flags&65536||_e.types[1].flags&65536))))GWe(w,65536),X=gi([wo(w,o),Xe],1,_,h);else if(w.length>=4){let _e=Math.floor(w.length/2);X=wo([wo(w.slice(0,_e),o),wo(w.slice(_e),o)],o,_,h)}else{if(!wJ(w))return Oe;let _e=q8t(w,o),Ie=Dt(_e,Ne=>!!(Ne.flags&2097152))&&kxe(_e)>kxe(w)?xxe(2097152,w):void 0;X=gi(_e,1,_,h,Ie)}else X=J8t(w,V,_,h);Ri.set(H,X)}return X}function HWe(r){return F_(r,(o,_)=>_.flags&1048576?o*_.types.length:_.flags&131072?0:o,1)}function wJ(r){var o;let _=HWe(r);return _>=1e5?((o=kn)==null||o.instant(kn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:r.map(h=>h.id),size:_}),Ze(R,v.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function q8t(r,o){let _=HWe(r),h=[];for(let T=0;T<_;T++){let C=r.slice(),w=T;for(let H=r.length-1;H>=0;H--)if(r[H].flags&1048576){let X=r[H].types,_e=X.length;C[H]=X[w%_e],w=Math.floor(w/_e)}let V=wo(C,o);V.flags&131072||h.push(V)}return h}function $We(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?$We(r.origin):kxe(r.types)}function kxe(r){return F_(r,(o,_)=>o+$We(_),0)}function z8t(r){let o=Wn(r);if(!o.resolvedType){let _=Hk(r),h=kr(r.types,Gi),T=h.length===2?h.indexOf(D_):-1,C=T>=0?h[1-T]:Mt,w=!!(C.flags&76||C.flags&134217728&&K2(C));o.resolvedType=wo(h,w?1:0,_,HD(_))}return o.resolvedType}function YWe(r,o){let _=uh(4194304);return _.type=r,_.indexFlags=o,_}function W8t(r){let o=J2(4194304);return o.type=r,o}function KWe(r,o){return o&1?r.resolvedStringIndexType||(r.resolvedStringIndexType=YWe(r,1)):r.resolvedIndexType||(r.resolvedIndexType=YWe(r,0))}function XWe(r,o){let _=yg(r),h=md(r),T=_1(r.target||r);if(!T&&!(o&2))return h;let C=[];if(Q2(h)){if(VD(r))return KWe(r,o);sC(h,V)}else if(VD(r)){let H=X_(QE(r));qEe(H,8576,!!(o&1),V)}else sC(TJ(h),V);let w=o&2?Fl(gi(C),H=>!(H.flags&5)):gi(C);if(w.flags&1048576&&h.flags&1048576&&hm(w.types)===hm(h.types))return h;return w;function V(H){let X=T?cs(T,FL(r.mapper,_,H)):H;C.push(X===Ue?hi:X)}}function G8t(r){let o=yg(r);return _(_1(r)||o);function _(h){return h.flags&470810623?!0:h.flags&16777216?h.root.isDistributive&&h.checkType===o:h.flags&137363456?Oi(h.types,_):h.flags&8388608?_(h.objectType)&&_(h.indexType):h.flags&33554432?_(h.baseType)&&_(h.constraint):h.flags&268435456?_(h.type):!1}}function m1(r){if(es(r))return Pr;if(Df(r))return Z_(ys(r));if(Go(r))return Z_(mh(r));let o=e2(r);return o!==void 0?jf(Zi(o)):Pt(r)?Z_(ys(r)):Pr}function zk(r,o,_){if(_||!(Cd(r)&6)){let h=as(Gte(r)).nameType;if(!h){let T=Ns(r.valueDeclaration);h=r.escapedName==="default"?jf("default"):T&&m1(T)||(LR(r)?void 0:jf(Qc(r)))}if(h&&h.flags&o)return h}return Pr}function QWe(r,o){return!!(r.flags&o||r.flags&2097152&&Dt(r.types,_=>QWe(_,o)))}function H8t(r,o,_){let h=_&&(Qn(r)&7||r.aliasSymbol)?W8t(r):void 0,T=kr(Ea(r),w=>zk(w,o)),C=kr(Q_(r),w=>w!==xr&&QWe(w.keyType,o)?w.keyType===Ue&&o&8?hi:w.keyType:Pr);return gi(ds(T,C),1,void 0,void 0,h)}function Pxe(r,o=0){return!!(r.flags&58982400||MS(r)||Xf(r)&&(!G8t(r)||$te(r)===2)||r.flags&1048576&&!(o&4)&&YEe(r)||r.flags&2097152&&ml(r,465829888)&&Dt(r.types,cy))}function ph(r,o=0){return r=Sg(r),WD(r)?lxe(ph(r.baseType,o)):Pxe(r,o)?KWe(r,o):r.flags&1048576?wo(kr(r.types,_=>ph(_,o))):r.flags&2097152?gi(kr(r.types,_=>ph(_,o))):Qn(r)&32?XWe(r,o):r===pt?pt:r.flags&2?Pr:r.flags&131073?Cr:H8t(r,(o&2?128:402653316)|(o&1?0:12584),o===0)}function ZWe(r){let o=c8t();return o?zD(o,[r,Ue]):Ue}function $8t(r){let o=ZWe(ph(r));return o.flags&131072?Ue:o}function Y8t(r){let o=Wn(r);if(!o.resolvedType)switch(r.operator){case 143:o.resolvedType=ph(Gi(r.type));break;case 158:o.resolvedType=r.type.kind===155?Fxe(IR(r.parent)):Oe;break;case 148:o.resolvedType=Gi(r.type);break;default:M.assertNever(r.operator)}return o.resolvedType}function K8t(r){let o=Wn(r);return o.resolvedType||(o.resolvedType=Y2([r.head.text,...kr(r.templateSpans,_=>_.literal.text)],kr(r.templateSpans,_=>Gi(_.type)))),o.resolvedType}function Y2(r,o){let _=Va(o,X=>!!(X.flags&1179648));if(_>=0)return wJ(o)?Dc(o[_],X=>Y2(r,UW(o,_,X))):Oe;if(xs(o,pt))return pt;let h=[],T=[],C=r[0];if(!H(r,o))return Ue;if(h.length===0)return jf(C);if(T.push(C),Oi(T,X=>X==="")){if(Oi(h,X=>!!(X.flags&4)))return Ue;if(h.length===1&&K2(h[0]))return h[0]}let w=`${hm(h)}|${kr(T,X=>X.length).join(",")}|${T.join("")}`,V=Pn.get(w);return V||Pn.set(w,V=Q8t(T,h)),V;function H(X,_e){for(let Ie=0;Ie<_e.length;Ie++){let Ne=_e[Ie];if(Ne.flags&101248)C+=X8t(Ne)||"",C+=X[Ie+1];else if(Ne.flags&134217728){if(C+=Ne.texts[0],!H(Ne.texts,Ne.types))return!1;C+=X[Ie+1]}else if(Q2(Ne)||OJ(Ne))h.push(Ne),T.push(C),C=X[Ie+1];else return!1}return!0}}function X8t(r){return r.flags&128?r.value:r.flags&256?""+r.value:r.flags&2048?uE(r.value):r.flags&98816?r.intrinsicName:void 0}function Q8t(r,o){let _=uh(134217728);return _.texts=r,_.types=o,_}function Wk(r,o){return o.flags&1179648?Dc(o,_=>Wk(r,_)):o.flags&128?jf(eGe(r,o.value)):o.flags&134217728?Y2(...Z8t(r,o.texts,o.types)):o.flags&268435456&&r===o.symbol?o:o.flags&268435461||Q2(o)?tGe(r,o):OJ(o)?tGe(r,Y2(["",""],[o])):o}function eGe(r,o){switch(CK.get(r.escapedName)){case 0:return o.toUpperCase();case 1:return o.toLowerCase();case 2:return o.charAt(0).toUpperCase()+o.slice(1);case 3:return o.charAt(0).toLowerCase()+o.slice(1)}return o}function Z8t(r,o,_){switch(CK.get(r.escapedName)){case 0:return[o.map(h=>h.toUpperCase()),_.map(h=>Wk(r,h))];case 1:return[o.map(h=>h.toLowerCase()),_.map(h=>Wk(r,h))];case 2:return[o[0]===""?o:[o[0].charAt(0).toUpperCase()+o[0].slice(1),...o.slice(1)],o[0]===""?[Wk(r,_[0]),..._.slice(1)]:_];case 3:return[o[0]===""?o:[o[0].charAt(0).toLowerCase()+o[0].slice(1),...o.slice(1)],o[0]===""?[Wk(r,_[0]),..._.slice(1)]:_]}return[o,_]}function tGe(r,o){let _=`${Po(r)},${Bu(o)}`,h=Ti.get(_);return h||Ti.set(_,h=eLt(r,o)),h}function eLt(r,o){let _=W0(268435456,r);return _.type=o,_}function tLt(r,o,_,h,T){let C=uh(8388608);return C.objectType=r,C.indexType=o,C.accessFlags=_,C.aliasSymbol=h,C.aliasTypeArguments=T,C}function ML(r){if(de)return!1;if(Qn(r)&4096)return!0;if(r.flags&1048576)return Oi(r.types,ML);if(r.flags&2097152)return Dt(r.types,ML);if(r.flags&465829888){let o=GEe(r);return o!==r&&ML(o)}return!1}function sre(r,o){return rm(r)?nm(r):o&&Ol(o)?e2(o):void 0}function Nxe(r,o){if(o.flags&8208){let _=Dr(r.parent,h=>!ac(h))||r.parent;return Hb(_)?Ig(_)&&$e(r)&&_He(_,r):Oi(o.declarations,h=>!Us(h)||ih(h))}return!0}function rGe(r,o,_,h,T,C){let w=T&&T.kind===212?T:void 0,V=T&&es(T)?void 0:sre(_,T);if(V!==void 0){if(C&256)return Eb(o,V)||Me;let X=ho(o,V);if(X){if(C&64&&T&&X.declarations&&Ld(X)&&Nxe(T,X)){let Ie=w?.argumentExpression??(mE(T)?T.indexType:T);F0(Ie,X.declarations,V)}if(w){if(dq(X,w,N$e(w.expression,o.symbol)),gYe(w,X,fT(w))){Ze(w.argumentExpression,v.Cannot_assign_to_0_because_it_is_a_read_only_property,ns(X));return}if(C&8&&(Wn(T).resolvedSymbol=X),T$e(w,X))return rt}let _e=C&4?_b(X):yn(X);return w&&fT(w)!==1?sv(w,_e):T&&mE(T)&&WL(_e)?gi([_e,sr]):_e}if(tp(o,Yo)&&Oy(V)){let _e=+V;if(T&&tp(o,Ie=>!Ie.target.hasRestElement)&&!(C&16)){let Ie=Dxe(T);if(Yo(o)){if(_e<0)return Ze(Ie,v.A_tuple_type_cannot_be_indexed_with_a_negative_value),sr;Ze(Ie,v.Tuple_type_0_of_length_1_has_no_element_at_index_2,_n(o),p1(o),Zi(V))}else Ze(Ie,v.Property_0_does_not_exist_on_type_1,Zi(V),_n(o))}if(_e>=0)return H(Hy(o,be)),WGe(o,_e,C&1?Ye:void 0)}}if(!(_.flags&98304)&&r_(_,402665900)){if(o.flags&131073)return o;let X=NL(o,_)||Hy(o,Ue);if(X){if(C&2&&X.keyType!==be){w&&(C&4?Ze(w,v.Type_0_is_generic_and_can_only_be_indexed_for_reading,_n(r)):Ze(w,v.Type_0_cannot_be_used_to_index_type_1,_n(_),_n(r)));return}if(T&&X.keyType===Ue&&!r_(_,12)){let _e=Dxe(T);return Ze(_e,v.Type_0_cannot_be_used_as_an_index_type,_n(_)),C&1?gi([X.type,Ye]):X.type}return H(X),C&1&&!(o.symbol&&o.symbol.flags&384&&_.symbol&&_.flags&1024&&e_(_.symbol)===o.symbol)?gi([X.type,Ye]):X.type}if(_.flags&131072)return Pr;if(ML(o))return Me;if(w&&!dne(o)){if(bb(o)){if(de&&_.flags&384)return da.add(mn(w,v.Property_0_does_not_exist_on_type_1,_.value,_n(o))),sr;if(_.flags&12){let _e=kr(o.properties,Ie=>yn(Ie));return gi(Ut(_e,sr))}}if(o.symbol===lt&&V!==void 0&<.exports.has(V)&<.exports.get(V).flags&418)Ze(w,v.Property_0_does_not_exist_on_type_1,Zi(V),_n(o));else if(de&&!(C&128))if(V!==void 0&&x$e(V,o)){let _e=_n(o);Ze(w,v.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,V,_e,_e+"["+Hc(w.argumentExpression)+"]")}else if(db(o,be))Ze(w.argumentExpression,v.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let _e;if(V!==void 0&&(_e=k$e(V,o)))_e!==void 0&&Ze(w.argumentExpression,v.Property_0_does_not_exist_on_type_1_Did_you_mean_2,V,_n(o),_e);else{let Ie=n9t(o,w,_);if(Ie!==void 0)Ze(w,v.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,_n(o),Ie);else{let Ne;if(_.flags&1024)Ne=Bs(void 0,v.Property_0_does_not_exist_on_type_1,"["+_n(_)+"]",_n(o));else if(_.flags&8192){let dt=lh(_.symbol,w);Ne=Bs(void 0,v.Property_0_does_not_exist_on_type_1,"["+dt+"]",_n(o))}else _.flags&128||_.flags&256?Ne=Bs(void 0,v.Property_0_does_not_exist_on_type_1,_.value,_n(o)):_.flags&12&&(Ne=Bs(void 0,v.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,_n(_),_n(o)));Ne=Bs(Ne,v.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,_n(h),_n(o)),da.add(Ay(Jr(w),w,Ne))}}}return}}if(ML(o))return Me;if(T){let X=Dxe(T);_.flags&384?Ze(X,v.Property_0_does_not_exist_on_type_1,""+_.value,_n(o)):_.flags&12?Ze(X,v.Type_0_has_no_matching_index_signature_for_type_1,_n(o),_n(_)):Ze(X,v.Type_0_cannot_be_used_as_an_index_type,_n(_))}if(Pa(_))return _;return;function H(X){X&&X.isReadonly&&w&&(Pv(w)||jH(w))&&Ze(w,v.Index_signature_in_type_0_only_permits_reading,_n(o))}}function Dxe(r){return r.kind===212?r.argumentExpression:r.kind===199?r.indexType:r.kind===167?r.expression:r}function OJ(r){if(r.flags&2097152){let o=!1;for(let _ of r.types)if(_.flags&101248||OJ(_))o=!0;else if(!(_.flags&524288))return!1;return o}return!!(r.flags&77)||K2(r)}function K2(r){return!!(r.flags&134217728)&&Oi(r.types,OJ)||!!(r.flags&268435456)&&OJ(r.type)}function nGe(r){return!!(r.flags&402653184)&&!K2(r)}function Gk(r){return!!LL(r)}function X2(r){return!!(LL(r)&4194304)}function Q2(r){return!!(LL(r)&8388608)}function LL(r){return r.flags&3145728?(r.objectFlags&2097152||(r.objectFlags|=2097152|F_(r.types,(o,_)=>o|LL(_),0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|LL(r.baseType)|LL(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||Xf(r)||MS(r)?4194304:0)|(r.flags&63176704||nGe(r)?8388608:0)}function Q0(r,o){return r.flags&8388608?nLt(r,o):r.flags&16777216?iLt(r,o):r}function iGe(r,o,_){if(r.flags&1048576||r.flags&2097152&&!Pxe(r)){let h=kr(r.types,T=>Q0(Qf(T,o),_));return r.flags&2097152||_?wo(h):gi(h)}}function rLt(r,o,_){if(o.flags&1048576){let h=kr(o.types,T=>Q0(Qf(r,T),_));return _?wo(h):gi(h)}}function nLt(r,o){let _=o?"simplifiedForWriting":"simplifiedForReading";if(r[_])return r[_]===ga?r:r[_];r[_]=ga;let h=Q0(r.objectType,o),T=Q0(r.indexType,o),C=rLt(h,T,o);if(C)return r[_]=C;if(!(T.flags&465829888)){let w=iGe(h,T,o);if(w)return r[_]=w}if(MS(h)&&T.flags&296){let w=i4(h,T.flags&8?0:h.target.fixedLength,0,o);if(w)return r[_]=w}return Xf(h)&&$te(h)!==2?r[_]=Dc(ore(h,r.indexType),w=>Q0(w,o)):r[_]=r}function iLt(r,o){let _=r.checkType,h=r.extendsType,T=gb(r),C=hb(r);if(C.flags&131072&&wS(T)===wS(_)){if(_.flags&1||yo(eC(_),eC(h)))return Q0(T,o);if(sGe(_,h))return Pr}else if(T.flags&131072&&wS(C)===wS(_)){if(!(_.flags&1)&&yo(eC(_),eC(h)))return Pr;if(_.flags&1||sGe(_,h))return Q0(C,o)}return r}function sGe(r,o){return!!(gi([SJ(r,o),Pr]).flags&131072)}function ore(r,o){let _=Zf([yg(r)],[o]),h=ox(r.mapper,_),T=cs(X0(r.target||r),h),C=Zze(r)>0||(Gk(r)?K6(QE(r))>0:sLt(r,o));return go(T,!0,C)}function sLt(r,o){let _=t_(o);return!!_&&Dt(Ea(r),h=>!!(h.flags&16777216)&&yo(zk(h,8576),_))}function Qf(r,o,_=0,h,T,C){return IS(r,o,_,h,T,C)||(h?Oe:Mt)}function oGe(r,o){return tp(r,_=>{if(_.flags&384){let h=nm(_);if(Oy(h)){let T=+h;return T>=0&&T0&&!Dt(r.elements,o=>jj(o)||Bj(o)||yN(o)&&!!(o.questionToken||o.dotDotDotToken))}function lGe(r,o){return Gk(r)||o&&Yo(r)&&Dt(rx(r),Gk)}function wxe(r,o,_,h,T){let C,w,V=0;for(;;){if(V===1e3)return Ze(R,v.Type_instantiation_is_excessively_deep_and_possibly_infinite),Oe;let X=cs(wS(r.checkType),o),_e=cs(r.extendsType,o);if(X===Oe||_e===Oe)return Oe;if(X===pt||_e===pt)return pt;let Ie=Mw(r.node.checkType),Ne=Mw(r.node.extendsType),dt=cGe(Ie)&&cGe(Ne)&&kt(Ie.elements)===kt(Ne.elements),Ct=lGe(X,dt),Lt;if(r.inferTypeParameters){let Er=HL(r.inferTypeParameters,void 0,0);o&&(Er.nonFixingMapper=ox(Er.nonFixingMapper,o)),Ct||iv(Er.inferences,X,_e,1536),Lt=o?ox(Er.mapper,o):Er.mapper}let hr=Lt?cs(r.extendsType,Lt):_e;if(!Ct&&!lGe(hr,dt)){if(!(hr.flags&3)&&(X.flags&1||!yo(BL(X),BL(hr)))){(X.flags&1||_&&!(hr.flags&131072)&&vm(BL(hr),rn=>yo(rn,BL(X))))&&(w||(w=[])).push(cs(Gi(r.node.trueType),Lt||o));let Er=Gi(r.node.falseType);if(Er.flags&16777216){let rn=Er.root;if(rn.node.parent===r.node&&(!rn.isDistributive||rn.checkType===r.checkType)){r=rn;continue}if(H(Er,o))continue}C=cs(Er,o);break}if(hr.flags&3||yo(eC(X),eC(hr))){let Er=Gi(r.node.trueType),rn=Lt||o;if(H(Er,rn))continue;C=cs(Er,rn);break}}C=uh(16777216),C.root=r,C.checkType=cs(r.checkType,o),C.extendsType=cs(r.extendsType,o),C.mapper=o,C.combinedMapper=Lt,C.aliasSymbol=h||r.aliasSymbol,C.aliasTypeArguments=h?T:$y(r.aliasTypeArguments,o);break}return w?gi(Ut(w,C)):C;function H(X,_e){if(X.flags&16777216&&_e){let Ie=X.root;if(Ie.outerTypeParameters){let Ne=ox(X.mapper,_e),dt=kr(Ie.outerTypeParameters,hr=>g1(hr,Ne)),Ct=Zf(Ie.outerTypeParameters,dt),Lt=Ie.isDistributive?g1(Ie.checkType,Ct):void 0;if(!Lt||Lt===Ie.checkType||!(Lt.flags&1179648))return r=Ie,o=Ct,h=void 0,T=void 0,Ie.aliasSymbol&&V++,!0}}return!1}}function gb(r){return r.resolvedTrueType||(r.resolvedTrueType=cs(Gi(r.root.node.trueType),r.mapper))}function hb(r){return r.resolvedFalseType||(r.resolvedFalseType=cs(Gi(r.root.node.falseType),r.mapper))}function oLt(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?cs(Gi(r.root.node.trueType),r.combinedMapper):gb(r))}function Oxe(r){let o;return r.locals&&r.locals.forEach(_=>{_.flags&262144&&(o=Ut(o,oc(_)))}),o}function aLt(r){return r.isDistributive&&(FJ(r.checkType,r.node.trueType)||FJ(r.checkType,r.node.falseType))}function cLt(r){let o=Wn(r);if(!o.resolvedType){let _=Gi(r.checkType),h=Hk(r),T=HD(h),C=BD(r,!0),w=T?C:ti(C,H=>FJ(H,r)),V={node:r,checkType:_,extendsType:Gi(r.extendsType),isDistributive:!!(_.flags&262144),inferTypeParameters:Oxe(r),outerTypeParameters:w,instantiations:void 0,aliasSymbol:h,aliasTypeArguments:T};o.resolvedType=wxe(V,void 0,!1),w&&(V.instantiations=new Map,V.instantiations.set(hm(w),o.resolvedType))}return o.resolvedType}function lLt(r){let o=Wn(r);return o.resolvedType||(o.resolvedType=XE(Un(r.typeParameter))),o.resolvedType}function uGe(r){return $e(r)?[r]:Ut(uGe(r.left),r.right)}function _Ge(r){var o;let _=Wn(r);if(!_.resolvedType){if(!xv(r))return Ze(r.argument,v.String_literal_expected),_.resolvedSymbol=Tt,_.resolvedType=Oe;let h=r.isTypeOf?111551:r.flags&16777216?900095:788968,T=Y_(r,r.argument.literal);if(!T)return _.resolvedSymbol=Tt,_.resolvedType=Oe;let C=!!((o=T.exports)!=null&&o.get("export=")),w=Ff(T,!1);if(Gc(r.qualifier))if(w.flags&h)_.resolvedType=fGe(r,_,w,h);else{let V=h===111551?v.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:v.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;Ze(r,V,r.argument.literal.text),_.resolvedSymbol=Tt,_.resolvedType=Oe}else{let V=uGe(r.qualifier),H=w,X;for(;X=V.shift();){let _e=V.length?1920:h,Ie=sa(dl(H)),Ne=r.isTypeOf||vn(r)&&C?ho(yn(Ie),X.escapedText,!1,!0):void 0,Ct=(r.isTypeOf?void 0:h_(Mp(Ie),X.escapedText,_e))??Ne;if(!Ct)return Ze(X,v.Namespace_0_has_no_exported_member_1,lh(H),Ya(X)),_.resolvedType=Oe;Wn(X).resolvedSymbol=Ct,Wn(X.parent).resolvedSymbol=Ct,H=Ct}_.resolvedType=fGe(r,_,H,h)}}return _.resolvedType}function fGe(r,o,_,h){let T=dl(_);return o.resolvedSymbol=T,h===111551?rYe(yn(_),r):tre(r,T)}function pGe(r){let o=Wn(r);if(!o.resolvedType){let _=Hk(r);if(kS(r.symbol).size===0&&!_)o.resolvedType=D_;else{let h=Fp(16,r.symbol);h.aliasSymbol=_,h.aliasTypeArguments=HD(_),f2(r)&&r.isArrayType&&(h=y_(h)),o.resolvedType=h}}return o.resolvedType}function Hk(r){let o=r.parent;for(;o2(o)||bT(o)||yT(o)&&o.operator===148;)o=o.parent;return kR(o)?Un(o):void 0}function HD(r){return r?u1(r):void 0}function are(r){return!!(r.flags&524288)&&!Xf(r)}function Rxe(r){return ev(r)||!!(r.flags&474058748)}function Mxe(r,o){if(!(r.flags&1048576))return r;if(Oi(r.types,Rxe))return jn(r.types,ev)||Wi;let _=jn(r.types,C=>!Rxe(C));if(!_||jn(r.types,C=>C!==_&&!Rxe(C)))return r;return T(_);function T(C){let w=po();for(let H of Ea(C))if(!(Cd(H)&6)){if(cre(H)){let X=H.flags&65536&&!(H.flags&32768),Ie=ta(16777220,H.escapedName,JEe(H)|(o?8:0));Ie.links.type=X?sr:go(yn(H),!0),Ie.declarations=H.declarations,Ie.links.nameType=as(H).nameType,Ie.links.syntheticOrigin=H,w.set(H.escapedName,Ie)}}let V=tr(C.symbol,w,ve,ve,Q_(C));return V.objectFlags|=131200,V}}function nx(r,o,_,h,T){if(r.flags&1||o.flags&1)return Me;if(r.flags&2||o.flags&2)return Mt;if(r.flags&131072)return o;if(o.flags&131072)return r;if(r=Mxe(r,T),r.flags&1048576)return wJ([r,o])?Dc(r,X=>nx(X,o,_,h,T)):Oe;if(o=Mxe(o,T),o.flags&1048576)return wJ([r,o])?Dc(o,X=>nx(r,X,_,h,T)):Oe;if(o.flags&473960444)return r;if(X2(r)||X2(o)){if(ev(r))return o;if(r.flags&2097152){let X=r.types,_e=X[X.length-1];if(are(_e)&&are(o))return wo(ds(X.slice(0,X.length-1),[nx(_e,o,_,h,T)]))}return wo([r,o])}let C=po(),w=new Set,V=r===Wi?Q_(o):$ze([r,o]);for(let X of Ea(o))Cd(X)&6?w.add(X.escapedName):cre(X)&&C.set(X.escapedName,Lxe(X,T));for(let X of Ea(r))if(!(w.has(X.escapedName)||!cre(X)))if(C.has(X.escapedName)){let _e=C.get(X.escapedName),Ie=yn(_e);if(_e.flags&16777216){let Ne=ds(X.declarations,_e.declarations),dt=4|X.flags&16777216,Ct=ta(dt,X.escapedName),Lt=yn(X),hr=Nre(Lt),Er=Nre(Ie);Ct.links.type=hr===Er?Lt:gi([Lt,Er],2),Ct.links.leftSpread=X,Ct.links.rightSpread=_e,Ct.declarations=Ne,Ct.links.nameType=as(X).nameType,C.set(X.escapedName,Ct)}}else C.set(X.escapedName,Lxe(X,T));let H=tr(_,C,ve,ve,js(V,X=>uLt(X,T)));return H.objectFlags|=2228352|h,H}function cre(r){var o;return!Dt(r.declarations,B_)&&(!(r.flags&106496)||!((o=r.declarations)!=null&&o.some(_=>vi(_.parent))))}function Lxe(r,o){let _=r.flags&65536&&!(r.flags&32768);if(!_&&o===xg(r))return r;let h=4|r.flags&16777216,T=ta(h,r.escapedName,JEe(r)|(o?8:0));return T.links.type=_?sr:yn(r),T.declarations=r.declarations,T.links.nameType=as(r).nameType,T.links.syntheticOrigin=r,T}function uLt(r,o){return r.isReadonly!==o?oy(r.keyType,r.type,o,r.declaration):r}function RJ(r,o,_,h){let T=W0(r,_);return T.value=o,T.regularType=h||T,T}function $k(r){if(r.flags&2976){if(!r.freshType){let o=RJ(r.flags,r.value,r.symbol,r);o.freshType=o,r.freshType=o}return r.freshType}return r}function Z_(r){return r.flags&2976?r.regularType:r.flags&1048576?r.regularType||(r.regularType=Dc(r,Z_)):r}function ix(r){return!!(r.flags&2976)&&r.freshType===r}function jf(r){let o;return $r.get(r)||($r.set(r,o=RJ(128,r)),o)}function zm(r){let o;return Qs.get(r)||(Qs.set(r,o=RJ(256,r)),o)}function lre(r){let o,_=uE(r);return He.get(_)||(He.set(_,o=RJ(2048,r)),o)}function _Lt(r,o,_){let h,T=`${o}${typeof r=="string"?"@":"#"}${r}`,C=1024|(typeof r=="string"?128:256);return Xt.get(T)||(Xt.set(T,h=RJ(C,r,_)),h)}function fLt(r){if(r.literal.kind===106)return Xe;let o=Wn(r);return o.resolvedType||(o.resolvedType=Z_(ys(r.literal))),o.resolvedType}function pLt(r){let o=W0(8192,r);return o.escapedName=`__@${o.symbol.escapedName}@${Po(o.symbol)}`,o}function Fxe(r){if(vn(r)&&bT(r)){let o=tE(r);o&&(r=lA(o)||o)}if(X_e(r)){let o=c9(r)?fd(r.left):fd(r);if(o){let _=as(o);return _.uniqueESSymbolType||(_.uniqueESSymbolType=pLt(o))}}return Yr}function dLt(r){let o=of(r,!1,!1),_=o&&o.parent;if(_&&(vi(_)||_.kind===264)&&!co(o)&&(!Vc(o)||rE(r,o.body)))return kl(Un(_)).thisType;if(_&&ko(_)&&Dn(_.parent)&&ll(_.parent)===6)return kl(fd(_.parent.left).parent).thisType;let h=r.flags&16777216?uT(r):void 0;return h&&ic(h)&&Dn(h.parent)&&ll(h.parent)===3?kl(fd(h.parent.left).parent).thisType:yh(o)&&rE(r,o.body)?kl(Un(o)).thisType:(Ze(r,v.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Oe)}function ure(r){let o=Wn(r);return o.resolvedType||(o.resolvedType=dLt(r)),o.resolvedType}function dGe(r){return Gi(MJ(r.type)||r.type)}function MJ(r){switch(r.kind){case 196:return MJ(r.type);case 189:if(r.elements.length===1&&(r=r.elements[0],r.kind===191||r.kind===202&&r.dotDotDotToken))return MJ(r.type);break;case 188:return r.elementType}}function mLt(r){let o=Wn(r);return o.resolvedType||(o.resolvedType=r.dotDotDotToken?dGe(r):go(Gi(r.type),!0,!!r.questionToken))}function Gi(r){return HMt(mGe(r),r)}function mGe(r){switch(r.kind){case 133:case 312:case 313:return Me;case 159:return Mt;case 154:return Ue;case 150:return be;case 163:return Re;case 136:return Wr;case 155:return Yr;case 116:return gn;case 157:return sr;case 106:return Xe;case 146:return Pr;case 151:return r.flags&524288&&!de?Me:Xn;case 141:return Vt;case 197:case 110:return ure(r);case 201:return fLt(r);case 183:return PJ(r);case 182:return r.assertsModifier?gn:Wr;case 233:return PJ(r);case 186:return AWe(r);case 188:case 189:return E8t(r);case 190:return k8t(r);case 192:return L8t(r);case 193:return z8t(r);case 314:return $Mt(r);case 316:return go(Gi(r.type));case 202:return mLt(r);case 196:case 315:case 309:return Gi(r.type);case 191:return dGe(r);case 318:return TVt(r);case 184:case 185:case 187:case 322:case 317:case 323:return pGe(r);case 198:return Y8t(r);case 199:return aGe(r);case 200:return Ixe(r);case 194:return cLt(r);case 195:return lLt(r);case 203:return K8t(r);case 205:return _Ge(r);case 80:case 166:case 211:let o=Sm(r);return o?oc(o):Oe;default:return Oe}}function _re(r,o,_){if(r&&r.length)for(let h=0;hh.typeParameter),kr(_,()=>Mt))}function ox(r,o){return r?pre(4,r,o):o}function yLt(r,o){return r?pre(5,r,o):o}function Z2(r,o,_){return _?pre(5,sx(r,o),_):sx(r,o)}function FL(r,o,_){return r?pre(5,r,sx(o,_)):sx(o,_)}function vLt(r){return!r.constraint&&!Zte(r)||r.constraint===ja?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=pd(r.symbol),r.restrictiveInstantiation.constraint=ja,r.restrictiveInstantiation)}function Bxe(r){let o=pd(r.symbol);return o.target=r,o}function SLt(r,o){return DL(r.kind,r.parameterName,r.parameterIndex,cs(r.type,o))}function Yk(r,o,_){let h;if(r.typeParameters&&!_){h=kr(r.typeParameters,Bxe),o=ox(Zf(r.typeParameters,h),o);for(let C of h)C.mapper=o}let T=Gy(r.declaration,h,r.thisParameter&&Uxe(r.thisParameter,o),_re(r.parameters,o,Uxe),void 0,void 0,r.minArgumentCount,r.flags&167);return T.target=r,T.mapper=o,T}function Uxe(r,o){let _=as(r);if(_.type&&!FS(_.type)&&(!(r.flags&65536)||_.writeType&&!FS(_.writeType)))return r;ul(r)&1&&(r=_.target,o=ox(_.mapper,o));let h=ta(r.flags,r.escapedName,1|ul(r)&53256);return h.declarations=r.declarations,h.parent=r.parent,h.links.target=r,h.links.mapper=o,r.valueDeclaration&&(h.valueDeclaration=r.valueDeclaration),_.nameType&&(h.links.nameType=_.nameType),h}function TLt(r,o,_,h){let T=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],C=Wn(T),w=r.objectFlags&4?C.resolvedType:r.objectFlags&64?r.target:r,V=r.objectFlags&134217728?r.outerTypeParameters:C.outerTypeParameters;if(!V){let H=BD(T,!0);if(yh(T)){let _e=_We(T);H=On(H,_e)}V=H||ve;let X=r.objectFlags&8388612?[T]:r.symbol.declarations;V=(w.objectFlags&8388612||w.symbol.flags&8192||w.symbol.flags&2048)&&!w.aliasTypeArguments?ti(V,_e=>Dt(X,Ie=>FJ(_e,Ie))):V,C.outerTypeParameters=V}if(V.length){let H=ox(r.mapper,o),X=kr(V,Ct=>g1(Ct,H)),_e=_||r.aliasSymbol,Ie=_?h:$y(r.aliasTypeArguments,o),Ne=(r.objectFlags&134217728?"S":"")+hm(X)+qk(_e,Ie);w.instantiations||(w.instantiations=new Map,w.instantiations.set(hm(V)+qk(w.aliasSymbol,w.aliasTypeArguments),w));let dt=w.instantiations.get(Ne);if(!dt){if(r.objectFlags&134217728)return dt=dre(r,o),w.instantiations.set(Ne,dt),dt;let Ct=Zf(V,X);dt=w.objectFlags&4?cxe(r.target,r.node,Ct,_e,Ie):w.objectFlags&32?ELt(w,Ct,_e,Ie):dre(w,Ct,_e,Ie),w.instantiations.set(Ne,dt);let Lt=Qn(dt);if(dt.flags&3899393&&!(Lt&524288)){let hr=Dt(X,FS);Qn(dt)&524288||(Lt&52?dt.objectFlags|=524288|(hr?1048576:0):dt.objectFlags|=hr?0:524288)}}return dt}return r}function bLt(r){return!(r.parent.kind===183&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===205&&r.parent.typeArguments&&r===r.parent.qualifier)}function FJ(r,o){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){let h=r.symbol.declarations[0].parent;for(let T=o;T!==h;T=T.parent)if(!T||T.kind===241||T.kind===194&&qs(T.extendsType,_))return!0;return _(o)}return!0;function _(h){switch(h.kind){case 197:return!!r.isThisType;case 80:return!r.isThisType&&Mg(h)&&bLt(h)&&mGe(h)===r;case 186:let T=h.exprName,C=pp(T);if(!z1(C)){let w=yf(C),V=r.symbol.declarations[0],H=V.kind===168?V.parent:r.isThisType?V:void 0;if(w.declarations&&H)return Dt(w.declarations,X=>rE(X,H))||Dt(h.typeArguments,_)}return!0;case 174:case 173:return!h.type&&!!h.body||Dt(h.typeParameters,_)||Dt(h.parameters,_)||!!h.type&&_(h.type)}return!!qs(h,_)}}function jL(r){let o=md(r);if(o.flags&4194304){let _=wS(o.type);if(_.flags&262144)return _}}function ELt(r,o,_,h){let T=jL(r);if(T){let w=cs(T,o);if(T!==w)return bHe(Sg(w),C,_,h)}return cs(md(r),o)===pt?pt:dre(r,o,_,h);function C(w){if(w.flags&61603843&&w!==pt&&!la(w)){if(!r.declaration.nameType){let V;if(qd(w)||w.flags&1&&MD(T,4)<0&&(V=hf(T))&&tp(V,vb))return CLt(w,r,Z2(T,w,o));if(Yo(w))return xLt(w,r,T,o);if(sWe(w))return wo(kr(w.types,C))}return dre(r,Z2(T,w,o))}return w}}function yGe(r,o){return o&1?!0:o&2?!1:r}function xLt(r,o,_,h){let T=r.target.elementFlags,C=r.target.fixedLength,w=C?Z2(_,r,h):h,V=kr(rx(r),(Ie,Ne)=>{let dt=T[Ne];return NeIe&1?2:Ie):H&8?kr(T,Ie=>Ie&2?1:Ie):T,_e=yGe(r.target.readonly,iy(o));return xs(V,Oe)?Oe:ay(V,X,_e,r.target.labeledElementDeclarations)}function CLt(r,o,_){let h=vGe(o,be,!0,_);return la(h)?Oe:y_(h,yGe(r4(r),iy(o)))}function vGe(r,o,_,h){let T=FL(h,yg(r),o),C=cs(X0(r.target||r),T),w=iy(r);return ce&&w&4&&!ml(C,49152)?LS(C,!0):ce&&w&8&&_?ym(C,524288):C}function dre(r,o,_,h){M.assert(r.symbol,"anonymous type must have symbol to be instantiated");let T=Fp(r.objectFlags&-1572865|64,r.symbol);if(r.objectFlags&32){T.declaration=r.declaration;let C=yg(r),w=Bxe(C);T.typeParameter=w,o=ox(sx(C,w),o),w.mapper=o}return r.objectFlags&8388608&&(T.node=r.node),r.objectFlags&134217728&&(T.outerTypeParameters=r.outerTypeParameters),T.target=r,T.mapper=o,T.aliasSymbol=_||r.aliasSymbol,T.aliasTypeArguments=_?h:$y(r.aliasTypeArguments,o),T.objectFlags|=T.aliasTypeArguments?kJ(T.aliasTypeArguments):0,T}function Vxe(r,o,_,h,T){let C=r.root;if(C.outerTypeParameters){let w=kr(C.outerTypeParameters,X=>g1(X,o)),V=(_?"C":"")+hm(w)+qk(h,T),H=C.instantiations.get(V);if(!H){let X=Zf(C.outerTypeParameters,w),_e=C.checkType,Ie=C.isDistributive?Sg(g1(_e,X)):void 0;H=Ie&&_e!==Ie&&Ie.flags&1179648?bHe(Ie,Ne=>wxe(C,Z2(_e,Ne,X),_),h,T):wxe(C,X,_,h,T),C.instantiations.set(V,H)}return H}return r}function cs(r,o){return r&&o?SGe(r,o,void 0,void 0):r}function SGe(r,o,_,h){var T;if(!FS(r))return r;if(D===100||x>=5e6)return(T=kn)==null||T.instant(kn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:D,instantiationCount:x}),Ze(R,v.Type_instantiation_is_excessively_deep_and_possibly_infinite),Oe;E++,x++,D++;let C=ALt(r,o,_,h);return D--,C}function ALt(r,o,_,h){let T=r.flags;if(T&262144)return g1(r,o);if(T&524288){let C=r.objectFlags;if(C&52){if(C&4&&!r.node){let w=r.resolvedTypeArguments,V=$y(w,o);return V!==w?Txe(r.target,V):r}return C&1024?kLt(r,o):TLt(r,o,_,h)}return r}if(T&3145728){let C=r.flags&1048576?r.origin:void 0,w=C&&C.flags&3145728?C.types:r.types,V=$y(w,o);if(V===w&&_===r.aliasSymbol)return r;let H=_||r.aliasSymbol,X=_?h:$y(r.aliasTypeArguments,o);return T&2097152||C&&C.flags&2097152?wo(V,0,H,X):gi(V,1,H,X)}if(T&4194304)return ph(cs(r.type,o));if(T&134217728)return Y2(r.texts,$y(r.types,o));if(T&268435456)return Wk(r.symbol,cs(r.type,o));if(T&8388608){let C=_||r.aliasSymbol,w=_?h:$y(r.aliasTypeArguments,o);return Qf(cs(r.objectType,o),cs(r.indexType,o),r.accessFlags,void 0,C,w)}if(T&16777216)return Vxe(r,ox(r.mapper,o),!1,_,h);if(T&33554432){let C=cs(r.baseType,o);if(WD(r))return lxe(C);let w=cs(r.constraint,o);return C.flags&8650752&&Gk(w)?_xe(C,w):w.flags&3||yo(eC(C),eC(w))?C:C.flags&8650752?_xe(C,w):wo([w,C])}return r}function kLt(r,o){let _=cs(r.mappedType,o);if(!(Qn(_)&32))return r;let h=cs(r.constraintType,o);if(!(h.flags&4194304))return r;let T=ZGe(cs(r.source,o),_,h);return T||r}function BL(r){return r.flags&402915327?r:r.permissiveInstantiation||(r.permissiveInstantiation=cs(r,Fa))}function eC(r){return r.flags&402915327?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=cs(r,pa),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function PLt(r,o){return oy(r.keyType,cs(r.type,o),r.isReadonly,r.declaration)}function Vd(r){switch(M.assert(r.kind!==174||Nm(r)),r.kind){case 218:case 219:case 174:case 262:return TGe(r);case 210:return Dt(r.properties,Vd);case 209:return Dt(r.elements,Vd);case 227:return Vd(r.whenTrue)||Vd(r.whenFalse);case 226:return(r.operatorToken.kind===57||r.operatorToken.kind===61)&&(Vd(r.left)||Vd(r.right));case 303:return Vd(r.initializer);case 217:return Vd(r.expression);case 292:return Dt(r.properties,Vd)||$g(r.parent)&&Dt(r.parent.parent.children,Vd);case 291:{let{initializer:o}=r;return!!o&&Vd(o)}case 294:{let{expression:o}=r;return!!o&&Vd(o)}}return!1}function TGe(r){return vj(r)||NLt(r)}function NLt(r){return r.typeParameters||_p(r)||!r.body?!1:r.body.kind!==241?Vd(r.body):!!Cv(r.body,o=>!!o.expression&&Vd(o.expression))}function mre(r){return(K1(r)||Nm(r))&&TGe(r)}function bGe(r){if(r.flags&524288){let o=vg(r);if(o.constructSignatures.length||o.callSignatures.length){let _=Fp(16,r.symbol);return _.members=o.members,_.properties=o.properties,_.callSignatures=ve,_.constructSignatures=ve,_.indexInfos=ve,_}}else if(r.flags&2097152)return wo(kr(r.types,bGe));return r}function Z0(r,o){return dh(r,o,Yf)}function UL(r,o){return dh(r,o,Yf)?-1:0}function Jxe(r,o){return dh(r,o,Lf)?-1:0}function DLt(r,o){return dh(r,o,nh)?-1:0}function OS(r,o){return dh(r,o,nh)}function jJ(r,o){return dh(r,o,Md)}function yo(r,o){return dh(r,o,Lf)}function yb(r,o){return r.flags&1048576?Oi(r.types,_=>yb(_,o)):o.flags&1048576?Dt(o.types,_=>yb(r,_)):r.flags&2097152?Dt(r.types,_=>yb(_,o)):r.flags&58982400?yb(t_(r)||Mt,o):cy(o)?!!(r.flags&67633152):o===rl?!!(r.flags&67633152)&&!cy(r):o===Gl?!!(r.flags&524288)&&b2e(r):jD(r,FD(o))||qd(o)&&!r4(o)&&yb(r,Kr)}function gre(r,o){return dh(r,o,vp)}function BJ(r,o){return gre(r,o)||gre(o,r)}function R_(r,o,_,h,T,C){return Jd(r,o,Lf,_,h,T,C)}function RS(r,o,_,h,T,C){return qxe(r,o,Lf,_,h,T,C,void 0)}function qxe(r,o,_,h,T,C,w,V){return dh(r,o,_)?!0:!h||!VL(T,r,o,_,C,w,V)?Jd(r,o,_,h,C,w,V):!1}function EGe(r){return!!(r.flags&16777216||r.flags&2097152&&Dt(r.types,EGe))}function VL(r,o,_,h,T,C,w){if(!r||EGe(_))return!1;if(!Jd(o,_,h,void 0)&&ILt(r,o,_,h,T,C,w))return!0;switch(r.kind){case 234:if(!G$(r))break;case 294:case 217:return VL(r.expression,o,_,h,T,C,w);case 226:switch(r.operatorToken.kind){case 64:case 28:return VL(r.right,o,_,h,T,C,w)}break;case 210:return BLt(r,o,_,h,C,w);case 209:return FLt(r,o,_,h,C,w);case 292:return LLt(r,o,_,h,C,w);case 219:return wLt(r,o,_,h,C,w)}return!1}function ILt(r,o,_,h,T,C,w){let V=Ks(o,0),H=Ks(o,1);for(let X of[H,V])if(Dt(X,_e=>{let Ie=Na(_e);return!(Ie.flags&131073)&&Jd(Ie,_,h,void 0)})){let _e=w||{};R_(o,_,r,T,C,_e);let Ie=_e.errors[_e.errors.length-1];return lo(Ie,mn(r,X===H?v.Did_you_mean_to_use_new_with_this_expression:v.Did_you_mean_to_call_this_expression)),!0}return!1}function wLt(r,o,_,h,T,C){if(Js(r.body)||Dt(r.parameters,z5))return!1;let w=lC(o);if(!w)return!1;let V=Ks(_,0);if(!kt(V))return!1;let H=r.body,X=Na(w),_e=gi(kr(V,Na));if(!Jd(X,_e,h,void 0)){let Ie=H&&VL(H,X,_e,h,void 0,T,C);if(Ie)return Ie;let Ne=C||{};if(Jd(X,_e,h,H,void 0,T,Ne),Ne.errors)return _.symbol&&kt(_.symbol.declarations)&&lo(Ne.errors[Ne.errors.length-1],mn(_.symbol.declarations[0],v.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Rl(r)&2)&&!il(X,"then")&&Jd(Eq(X),_e,h,void 0)&&lo(Ne.errors[Ne.errors.length-1],mn(r,v.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function xGe(r,o,_){let h=IS(o,_);if(h)return h;if(o.flags&1048576){let T=OGe(r,o);if(T)return IS(T,_)}}function CGe(r,o){aq(r,o,!1);let _=f4(r,1);return QL(),_}function UJ(r,o,_,h,T,C){let w=!1;for(let V of r){let{errorNode:H,innerExpression:X,nameType:_e,errorMessage:Ie}=V,Ne=xGe(o,_,_e);if(!Ne||Ne.flags&8388608)continue;let dt=IS(o,_e);if(!dt)continue;let Ct=sre(_e,void 0);if(!Jd(dt,Ne,h,void 0)){let Lt=X&&VL(X,dt,Ne,h,void 0,T,C);if(w=!0,!Lt){let hr=C||{},Er=X?CGe(X,dt):dt;if(te&&yre(Er,Ne)){let rn=mn(H,v.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,_n(Er),_n(Ne));da.add(rn),hr.errors=[rn]}else{let rn=!!(Ct&&(ho(_,Ct)||Tt).flags&16777216),Bn=!!(Ct&&(ho(o,Ct)||Tt).flags&16777216);Ne=nv(Ne,rn),dt=nv(dt,rn&&Bn),Jd(Er,Ne,h,H,Ie,T,hr)&&Er!==dt&&Jd(dt,Ne,h,H,Ie,T,hr)}if(hr.errors){let rn=hr.errors[hr.errors.length-1],Bn=rm(_e)?nm(_e):void 0,wr=Bn!==void 0?ho(_,Bn):void 0,Gr=!1;if(!wr){let en=NL(_,_e);en&&en.declaration&&!Jr(en.declaration).hasNoDefaultLib&&(Gr=!0,lo(rn,mn(en.declaration,v.The_expected_type_comes_from_this_index_signature)))}if(!Gr&&(wr&&kt(wr.declarations)||_.symbol&&kt(_.symbol.declarations))){let en=wr&&kt(wr.declarations)?wr.declarations[0]:_.symbol.declarations[0];Jr(en).hasNoDefaultLib||lo(rn,mn(en,v.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,Bn&&!(_e.flags&8192)?Zi(Bn):_n(_e),_n(_)))}}}}}return w}function OLt(r,o,_,h,T,C){let w=Fl(_,Cre),V=Fl(_,_e=>!Cre(_e)),H=V!==Pr?UCe(13,0,V,void 0):void 0,X=!1;for(let _e=r.next();!_e.done;_e=r.next()){let{errorNode:Ie,innerExpression:Ne,nameType:dt,errorMessage:Ct}=_e.value,Lt=H,hr=w!==Pr?xGe(o,w,dt):void 0;if(hr&&!(hr.flags&8388608)&&(Lt=H?gi([H,hr]):hr),!Lt)continue;let Er=IS(o,dt);if(!Er)continue;let rn=sre(dt,void 0);if(!Jd(Er,Lt,h,void 0)){let Bn=Ne&&VL(Ne,Er,Lt,h,void 0,T,C);if(X=!0,!Bn){let wr=C||{},Gr=Ne?CGe(Ne,Er):Er;if(te&&yre(Gr,Lt)){let en=mn(Ie,v.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,_n(Gr),_n(Lt));da.add(en),wr.errors=[en]}else{let en=!!(rn&&(ho(w,rn)||Tt).flags&16777216),$n=!!(rn&&(ho(o,rn)||Tt).flags&16777216);Lt=nv(Lt,en),Er=nv(Er,en&&$n),Jd(Gr,Lt,h,Ie,Ct,T,wr)&&Gr!==Er&&Jd(Er,Lt,h,Ie,Ct,T,wr)}}}}return X}function*RLt(r){if(kt(r.properties))for(let o of r.properties)zA(o)||q2e(iM(o.name))||(yield{errorNode:o.name,innerExpression:o.initializer,nameType:jf(iM(o.name))})}function*MLt(r,o){if(!kt(r.children))return;let _=0;for(let h=0;h1,hr,Er;if(hxe(!1)!==Bo){let Bn=FWe(Me);hr=Fl(dt,wr=>yo(wr,Bn)),Er=Fl(dt,wr=>!yo(wr,Bn))}else hr=Fl(dt,Cre),Er=Fl(dt,Bn=>!Cre(Bn));if(Lt){if(hr!==Pr){let Bn=ay(Qre(X,0)),wr=MLt(X,H);w=OLt(wr,Bn,hr,h,T,C)||w}else if(!dh(Qf(o,Ne),dt,h)){w=!0;let Bn=Ze(X.openingElement.tagName,v.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Ie,_n(dt));C&&C.skipLogging&&(C.errors||(C.errors=[])).push(Bn)}}else if(Er!==Pr){let Bn=Ct[0],wr=AGe(Bn,Ne,H);wr&&(w=UJ(function*(){yield wr}(),o,_,h,T,C)||w)}else if(!dh(Qf(o,Ne),dt,h)){w=!0;let Bn=Ze(X.openingElement.tagName,v.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Ie,_n(dt));C&&C.skipLogging&&(C.errors||(C.errors=[])).push(Bn)}}return w;function H(){if(!V){let X=Hc(r.parent.tagName),_e=lq(aC(r)),Ie=_e===void 0?"children":Zi(_e),Ne=Qf(_,jf(Ie)),dt=v._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;V={...dt,key:"!!ALREADY FORMATTED!!",message:SA(dt,X,Ie,_n(Ne))}}return V}}function*kGe(r,o){let _=kt(r.elements);if(_)for(let h=0;h<_;h++){if(n4(o)&&!ho(o,""+h))continue;let T=r.elements[h];if(du(T))continue;let C=zm(h),w=one(T);yield{errorNode:w,innerExpression:w,nameType:C}}}function FLt(r,o,_,h,T,C){if(_.flags&402915324)return!1;if(n4(o))return UJ(kGe(r,_),o,_,h,T,C);aq(r,_,!1);let w=i$e(r,1,!0);return QL(),n4(w)?UJ(kGe(r,_),w,_,h,T,C):!1}function*jLt(r){if(kt(r.properties))for(let o of r.properties){if(Ly(o))continue;let _=zk(Un(o),8576);if(!(!_||_.flags&131072))switch(o.kind){case 178:case 177:case 174:case 304:yield{errorNode:o.name,innerExpression:void 0,nameType:_};break;case 303:yield{errorNode:o.name,innerExpression:o.initializer,nameType:_,errorMessage:nR(o.name)?v.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:M.assertNever(o)}}}function BLt(r,o,_,h,T,C){return _.flags&402915324?!1:UJ(jLt(r),o,_,h,T,C)}function PGe(r,o,_,h,T){return Jd(r,o,vp,_,h,T)}function ULt(r,o,_){return zxe(r,o,_?4:0,!1,void 0,void 0,Jxe,void 0)!==0}function hre(r){if(!r.typeParameters&&(!r.thisParameter||Pa(Sq(r.thisParameter)))&&r.parameters.length===1&&C_(r)){let o=Sq(r.parameters[0]);return!!((qd(o)?hc(o)[0]:o).flags&131073&&Na(r).flags&3)}return!1}function zxe(r,o,_,h,T,C,w,V){if(r===o||!(_&16&&hre(r))&&hre(o))return-1;if(_&16&&hre(r)&&!hre(o))return 0;let H=rp(o);if(!ly(o)&&(_&8?ly(r)||rp(r)>H:vh(r)>H))return h&&!(_&8)&&T(v.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,vh(r),H),0;r.typeParameters&&r.typeParameters!==o.typeParameters&&(o=BMt(o),r=L$e(r,o,void 0,w));let _e=rp(r),Ie=n7(r),Ne=n7(o);(Ie||Ne)&&cs(Ie||Ne,V);let dt=o.declaration?o.declaration.kind:0,Ct=!(_&3)&&ne&&dt!==174&&dt!==173&&dt!==176,Lt=-1,hr=mb(r);if(hr&&hr!==gn){let Bn=mb(o);if(Bn){let wr=!Ct&&w(hr,Bn,!1)||w(Bn,hr,h);if(!wr)return h&&T(v.The_this_types_of_each_signature_are_incompatible),0;Lt&=wr}}let Er=Ie||Ne?Math.min(_e,H):Math.max(_e,H),rn=Ie||Ne?Er-1:-1;for(let Bn=0;Bn=vh(r)&&Bn=3&&o[0].flags&32768&&o[1].flags&65536&&Dt(o,cy)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function $D(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function NGe(r){let o=r.flags&1048576?r.types[0]:r;return!!(o.flags&32768)&&o!==Ye}function DGe(r){return r.flags&524288&&!Xf(r)&&Ea(r).length===0&&Q_(r).length===1&&!!Hy(r,Ue)||r.flags&3145728&&Oi(r.types,DGe)||!1}function Gxe(r,o,_){let h=r.flags&8?e_(r):r,T=o.flags&8?e_(o):o;if(h===T)return!0;if(h.escapedName!==T.escapedName||!(h.flags&256)||!(T.flags&256))return!1;let C=Po(h)+","+Po(T),w=Xv.get(C);if(w!==void 0&&!(!(w&4)&&w&2&&_))return!!(w&1);let V=yn(T);for(let H of Ea(yn(h)))if(H.flags&8){let X=ho(V,H.escapedName);if(!X||!(X.flags&8))return _?(_(v.Property_0_is_missing_in_type_1,Qc(H),_n(oc(T),void 0,64)),Xv.set(C,6)):Xv.set(C,2),!1;let _e=fC(kc(H,306)).value,Ie=fC(kc(X,306)).value;if(_e!==Ie){let Ne=typeof _e=="string",dt=typeof Ie=="string";if(_e!==void 0&&Ie!==void 0){if(!_)Xv.set(C,2);else{let Ct=Ne?`"${Uh(_e)}"`:_e,Lt=dt?`"${Uh(Ie)}"`:Ie;_(v.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,Qc(T),Qc(X),Lt,Ct),Xv.set(C,6)}return!1}if(Ne||dt){if(!_)Xv.set(C,2);else{let Ct=_e??Ie;M.assert(typeof Ct=="string");let Lt=`"${Uh(Ct)}"`;_(v.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,Qc(T),Qc(X),Lt),Xv.set(C,6)}return!1}}}return Xv.set(C,1),!0}function JL(r,o,_,h){let T=r.flags,C=o.flags;return C&1||T&131072||r===pt||C&2&&!(_===Md&&T&1)?!0:C&131072?!1:!!(T&402653316&&C&4||T&128&&T&1024&&C&128&&!(C&1024)&&r.value===o.value||T&296&&C&8||T&256&&T&1024&&C&256&&!(C&1024)&&r.value===o.value||T&2112&&C&64||T&528&&C&16||T&12288&&C&4096||T&32&&C&32&&r.symbol.escapedName===o.symbol.escapedName&&Gxe(r.symbol,o.symbol,h)||T&1024&&C&1024&&(T&1048576&&C&1048576&&Gxe(r.symbol,o.symbol,h)||T&2944&&C&2944&&r.value===o.value&&Gxe(r.symbol,o.symbol,h))||T&32768&&(!ce&&!(C&3145728)||C&49152)||T&65536&&(!ce&&!(C&3145728)||C&65536)||T&524288&&C&67108864&&!(_===Md&&cy(r)&&!(Qn(r)&8192))||(_===Lf||_===vp)&&(T&1||T&8&&(C&32||C&256&&C&1024)||T&256&&!(T&1024)&&(C&32||C&256&&C&1024&&r.value===o.value)||qLt(o)))}function dh(r,o,_){if(ix(r)&&(r=r.regularType),ix(o)&&(o=o.regularType),r===o)return!0;if(_!==Yf){if(_===vp&&!(o.flags&131072)&&JL(o,r,_)||JL(r,o,_))return!0}else if(!((r.flags|o.flags)&61865984)){if(r.flags!==o.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&o.flags&524288){let h=_.get(Tre(r,o,0,_,!1));if(h!==void 0)return!!(h&1)}return r.flags&469499904||o.flags&469499904?Jd(r,o,_,void 0):!1}function IGe(r,o){return Qn(r)&2048&&q2e(o.escapedName)}function VJ(r,o){for(;;){let _=ix(r)?r.regularType:MS(r)?GLt(r,o):Qn(r)&4?r.node?f1(r.target,hc(r)):e2e(r)||r:r.flags&3145728?zLt(r,o):r.flags&33554432?o?r.baseType:fxe(r):r.flags&25165824?Q0(r,o):r;if(_===r)return _;r=_}}function zLt(r,o){let _=Sg(r);if(_!==r)return _;if(r.flags&2097152&&WLt(r)){let h=js(r.types,T=>VJ(T,o));if(h!==r.types)return wo(h)}return r}function WLt(r){let o=!1,_=!1;for(let h of r.types)if(o||(o=!!(h.flags&465829888)),_||(_=!!(h.flags&98304)||cy(h)),o&&_)return!0;return!1}function GLt(r,o){let _=rx(r),h=js(_,T=>T.flags&25165824?Q0(T,o):T);return _!==h?bxe(r.target,h):r}function Jd(r,o,_,h,T,C,w){var V;let H,X,_e,Ie,Ne,dt,Ct=0,Lt=0,hr=0,Er=0,rn=!1,Bn=0,wr=0,Gr,en,$n=16e6-_.size>>3;M.assert(_!==Yf||!h,"no error reporting in identity checking");let oi=wn(r,o,3,!!h,T);if(en&&oa(),rn){let et=Tre(r,o,0,_,!1);_.set(et,6),(V=kn)==null||V.instant(kn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:o.id,depth:Lt,targetDepth:hr});let mt=$n<=0?v.Excessive_complexity_comparing_types_0_and_1:v.Excessive_stack_depth_comparing_types_0_and_1,Gt=Ze(h||R,mt,_n(r),_n(o));w&&(w.errors||(w.errors=[])).push(Gt)}else if(H){if(C){let Gt=C();Gt&&(cpe(Gt,H),H=Gt)}let et;if(T&&h&&!oi&&r.symbol){let Gt=as(r.symbol);if(Gt.originatingImport&&!Dp(Gt.originatingImport)&&Jd(yn(Gt.target),o,_,void 0)){let vr=mn(Gt.originatingImport,v.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);et=Ut(et,vr)}}let mt=Ay(Jr(h),h,H,et);X&&lo(mt,...X),w&&(w.errors||(w.errors=[])).push(mt),(!w||!w.skipLogging)&&da.add(mt)}return h&&w&&w.skipLogging&&oi===0&&M.assert(!!w.errors,"missed opportunity to interact with error."),oi!==0;function ai(et){H=et.errorInfo,Gr=et.lastSkippedInfo,en=et.incompatibleStack,Bn=et.overrideNextErrorInfo,wr=et.skipParentCounter,X=et.relatedInfo}function Co(){return{errorInfo:H,lastSkippedInfo:Gr,incompatibleStack:en?.slice(),overrideNextErrorInfo:Bn,skipParentCounter:wr,relatedInfo:X?.slice()}}function Xs(et,...mt){Bn++,Gr=void 0,(en||(en=[])).push([et,...mt])}function oa(){let et=en||[];en=void 0;let mt=Gr;if(Gr=void 0,et.length===1){Rs(...et[0]),mt&&sl(void 0,...mt);return}let Gt="",_t=[];for(;et.length;){let[vr,..._r]=et.pop();switch(vr.code){case v.Types_of_property_0_are_incompatible.code:{Gt.indexOf("new ")===0&&(Gt=`(${Gt})`);let jt=""+_r[0];Gt.length===0?Gt=`${jt}`:ap(jt,Qo(q))?Gt=`${Gt}.${jt}`:jt[0]==="["&&jt[jt.length-1]==="]"?Gt=`${Gt}${jt}`:Gt=`${Gt}[${jt}]`;break}case v.Call_signature_return_types_0_and_1_are_incompatible.code:case v.Construct_signature_return_types_0_and_1_are_incompatible.code:case v.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case v.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Gt.length===0){let jt=vr;vr.code===v.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?jt=v.Call_signature_return_types_0_and_1_are_incompatible:vr.code===v.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(jt=v.Construct_signature_return_types_0_and_1_are_incompatible),_t.unshift([jt,_r[0],_r[1]])}else{let jt=vr.code===v.Construct_signature_return_types_0_and_1_are_incompatible.code||vr.code===v.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",yr=vr.code===v.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||vr.code===v.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Gt=`${jt}${Gt}(${yr})`}break}case v.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{_t.unshift([v.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,_r[0],_r[1]]);break}case v.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{_t.unshift([v.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,_r[0],_r[1],_r[2]]);break}default:return M.fail(`Unhandled Diagnostic: ${vr.code}`)}}Gt?Rs(Gt[Gt.length-1]===")"?v.The_types_returned_by_0_are_incompatible_between_these_types:v.The_types_of_0_are_incompatible_between_these_types,Gt):_t.shift();for(let[vr,..._r]of _t){let jt=vr.elidedInCompatabilityPyramid;vr.elidedInCompatabilityPyramid=!1,Rs(vr,..._r),vr.elidedInCompatabilityPyramid=jt}mt&&sl(void 0,...mt)}function Rs(et,...mt){M.assert(!!h),en&&oa(),!et.elidedInCompatabilityPyramid&&(wr===0?H=Bs(H,et,...mt):wr--)}function Rc(et,...mt){Rs(et,...mt),wr++}function i_(et){M.assert(!!H),X?X.push(et):X=[et]}function sl(et,mt,Gt){en&&oa();let[_t,vr]=q6(mt,Gt),_r=mt,jt=_t;if(qL(mt)&&!Hxe(Gt)&&(_r=tv(mt),M.assert(!yo(_r,Gt),"generalized source shouldn't be assignable"),jt=wD(_r)),(Gt.flags&8388608&&!(mt.flags&8388608)?Gt.objectType.flags:Gt.flags)&262144&&Gt!==Wf&&Gt!==dc){let Xr=t_(Gt),dr;Xr&&(yo(_r,Xr)||(dr=yo(mt,Xr)))?Rs(v._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,dr?_t:jt,vr,_n(Xr)):(H=void 0,Rs(v._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,vr,jt))}if(et)et===v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&te&&wGe(mt,Gt).length&&(et=v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(_===vp)et=v.Type_0_is_not_comparable_to_type_1;else if(_t===vr)et=v.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(te&&wGe(mt,Gt).length)et=v.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(mt.flags&128&&Gt.flags&1048576){let Xr=i9t(mt,Gt);if(Xr){Rs(v.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,jt,vr,_n(Xr));return}}et=v.Type_0_is_not_assignable_to_type_1}Rs(et,jt,vr)}function zr(et,mt){let Gt=Mk(et.symbol)?_n(et,et.symbol.valueDeclaration):_n(et),_t=Mk(mt.symbol)?_n(mt,mt.symbol.valueDeclaration):_n(mt);(hs===et&&Ue===mt||ea===et&&be===mt||ca===et&&Wr===mt||wWe()===et&&Yr===mt)&&Rs(v._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,_t,Gt)}function sn(et,mt,Gt){return Yo(et)?et.target.readonly&&WJ(mt)?(Gt&&Rs(v.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,_n(et),_n(mt)),!1):vb(mt):r4(et)&&WJ(mt)?(Gt&&Rs(v.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,_n(et),_n(mt)),!1):Yo(mt)?qd(et):!0}function Hi(et,mt,Gt){return wn(et,mt,3,Gt)}function wn(et,mt,Gt=3,_t=!1,vr,_r=0){if(et===mt)return-1;if(et.flags&524288&&mt.flags&402784252)return _===vp&&!(mt.flags&131072)&&JL(mt,et,_)||JL(et,mt,_,_t?Rs:void 0)?-1:(_t&&ss(et,mt,et,mt,vr),0);let jt=VJ(et,!1),yr=VJ(mt,!0);if(jt===yr)return-1;if(_===Yf)return jt.flags!==yr.flags?0:jt.flags&67358815?-1:(xa(jt,yr),v4(jt,yr,!1,0,Gt));if(jt.flags&262144&&W2(jt)===yr)return-1;if(jt.flags&470302716&&yr.flags&1048576){let Xr=yr.types,dr=Xr.length===2&&Xr[0].flags&98304?Xr[1]:Xr.length===3&&Xr[0].flags&98304&&Xr[1].flags&98304?Xr[2]:void 0;if(dr&&!(dr.flags&98304)&&(yr=VJ(dr,!0),jt===yr))return-1}if(_===vp&&!(yr.flags&131072)&&JL(yr,jt,_)||JL(jt,yr,_,_t?Rs:void 0))return-1;if(jt.flags&469499904||yr.flags&469499904){if(!(_r&2)&&bb(jt)&&Qn(jt)&8192&&v_(jt,yr,_t))return _t&&sl(vr,jt,mt.aliasSymbol?mt:yr),0;let dr=(_!==vp||Tg(jt))&&!(_r&2)&&jt.flags&405405692&&jt!==rl&&yr.flags&2621440&&Yxe(yr)&&(Ea(jt).length>0||Rne(jt)),fn=!!(Qn(jt)&2048);if(dr&&!$Lt(jt,yr,fn)){if(_t){let fi=_n(et.aliasSymbol?et:jt),ni=_n(mt.aliasSymbol?mt:yr),no=Ks(jt,0),So=Ks(jt,1);no.length>0&&wn(Na(no[0]),yr,1,!1)||So.length>0&&wn(Na(So[0]),yr,1,!1)?Rs(v.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,fi,ni):Rs(v.Type_0_has_no_properties_in_common_with_type_1,fi,ni)}return 0}xa(jt,yr);let an=jt.flags&1048576&&jt.types.length<4&&!(yr.flags&1048576)||yr.flags&1048576&&yr.types.length<4&&!(jt.flags&469499904)?M_(jt,yr,_t,_r):v4(jt,yr,_t,_r,Gt);if(an)return an}return _t&&ss(et,mt,jt,yr,vr),0}function ss(et,mt,Gt,_t,vr){var _r,jt;let yr=!!e2e(et),Xr=!!e2e(mt);Gt=et.aliasSymbol||yr?et:Gt,_t=mt.aliasSymbol||Xr?mt:_t;let dr=Bn>0;if(dr&&Bn--,Gt.flags&524288&&_t.flags&524288){let fn=H;sn(Gt,_t,!0),H!==fn&&(dr=!!H)}if(Gt.flags&524288&&_t.flags&402784252)zr(Gt,_t);else if(Gt.symbol&&Gt.flags&524288&&rl===Gt)Rs(v.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Qn(Gt)&2048&&_t.flags&2097152){let fn=_t.types,Kn=lx(Qp.IntrinsicAttributes,h),an=lx(Qp.IntrinsicClassAttributes,h);if(!la(Kn)&&!la(an)&&(xs(fn,Kn)||xs(fn,an)))return}else H=KEe(H,mt);if(!vr&&dr){let fn=Co();sl(vr,Gt,_t);let Kn;H&&H!==fn.errorInfo&&(Kn={code:H.code,messageText:H.messageText}),ai(fn),Kn&&H&&(H.canonicalHead=Kn),Gr=[Gt,_t];return}if(sl(vr,Gt,_t),Gt.flags&262144&&((jt=(_r=Gt.symbol)==null?void 0:_r.declarations)!=null&&jt[0])&&!W2(Gt)){let fn=Bxe(Gt);if(fn.constraint=cs(_t,sx(Gt,fn)),EJ(fn)){let Kn=_n(_t,Gt.symbol.declarations[0]);i_(mn(Gt.symbol.declarations[0],v.This_type_parameter_might_need_an_extends_0_constraint,Kn))}}}function xa(et,mt){if(kn&&et.flags&3145728&&mt.flags&3145728){let Gt=et,_t=mt;if(Gt.objectFlags&_t.objectFlags&32768)return;let vr=Gt.types.length,_r=_t.types.length;vr*_r>1e6&&kn.instant(kn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:et.id,sourceSize:vr,targetId:mt.id,targetSize:_r,pos:h?.pos,end:h?.end})}}function ya(et,mt){return gi(F_(et,(_t,vr)=>{var _r;vr=X_(vr);let jt=vr.flags&3145728?xJ(vr,mt):ZE(vr,mt),yr=jt&&yn(jt)||((_r=Jk(vr,mt))==null?void 0:_r.type)||sr;return Ut(_t,yr)},void 0)||ve)}function v_(et,mt,Gt){var _t;if(!e7(mt)||!de&&Qn(mt)&4096)return!1;let vr=!!(Qn(et)&2048);if((_===Lf||_===vp)&&(o4(rl,mt)||!vr&&ev(mt)))return!1;let _r=mt,jt;mt.flags&1048576&&(_r=nXe(et,mt,wn)||uqt(mt),jt=_r.flags&1048576?_r.types:[_r]);for(let yr of Ea(et))if(vo(yr,et.symbol)&&!IGe(et,yr)){if(!ene(_r,yr.escapedName,vr)){if(Gt){let Xr=Fl(_r,e7);if(!h)return M.fail();if(SE(h)||p_(h)||p_(h.parent)){yr.valueDeclaration&&Yg(yr.valueDeclaration)&&Jr(h)===Jr(yr.valueDeclaration.name)&&(h=yr.valueDeclaration.name);let dr=ns(yr),fn=A$e(dr,Xr),Kn=fn?ns(fn):void 0;Kn?Rs(v.Property_0_does_not_exist_on_type_1_Did_you_mean_2,dr,_n(Xr),Kn):Rs(v.Property_0_does_not_exist_on_type_1,dr,_n(Xr))}else{let dr=((_t=et.symbol)==null?void 0:_t.declarations)&&Aa(et.symbol.declarations),fn;if(yr.valueDeclaration&&Dr(yr.valueDeclaration,Kn=>Kn===dr)&&Jr(dr)===Jr(h)){let Kn=yr.valueDeclaration;M.assertNode(Kn,d0);let an=Kn.name;h=an,$e(an)&&(fn=k$e(an,Xr))}fn!==void 0?Rc(v.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ns(yr),_n(Xr),fn):Rc(v.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ns(yr),_n(Xr))}}return!0}if(jt&&!wn(yn(yr),ya(jt,yr.escapedName),3,Gt))return Gt&&Xs(v.Types_of_property_0_are_incompatible,ns(yr)),!0}return!1}function vo(et,mt){return et.valueDeclaration&&mt.valueDeclaration&&et.valueDeclaration.parent===mt.valueDeclaration}function M_(et,mt,Gt,_t){if(et.flags&1048576){if(mt.flags&1048576){let vr=et.origin;if(vr&&vr.flags&2097152&&mt.aliasSymbol&&xs(vr.types,mt))return-1;let _r=mt.origin;if(_r&&_r.flags&1048576&&et.aliasSymbol&&xs(_r.types,et))return-1}return _===vp?gl(et,mt,Gt&&!(et.flags&402784252),_t):av(et,mt,Gt&&!(et.flags&402784252),_t)}if(mt.flags&1048576)return Lc(GL(et),mt,Gt&&!(et.flags&402784252)&&!(mt.flags&402784252),_t);if(mt.flags&2097152)return hd(et,mt,Gt,2);if(_===vp&&mt.flags&402784252){let vr=js(et.types,_r=>_r.flags&465829888?t_(_r)||Mt:_r);if(vr!==et.types){if(et=wo(vr),et.flags&131072)return 0;if(!(et.flags&2097152))return wn(et,mt,1,!1)||wn(mt,et,1,!1)}}return gl(et,mt,!1,1)}function Mc(et,mt){let Gt=-1,_t=et.types;for(let vr of _t){let _r=Lc(vr,mt,!1,0);if(!_r)return 0;Gt&=_r}return Gt}function Lc(et,mt,Gt,_t){let vr=mt.types;if(mt.flags&1048576){if(d1(vr,et))return-1;if(_!==vp&&Qn(mt)&32768&&!(et.flags&1024)&&(et.flags&2688||(_===nh||_===Md)&&et.flags&256)){let jt=et===et.regularType?et.freshType:et.regularType,yr=et.flags&128?Ue:et.flags&256?be:et.flags&2048?Re:void 0;return yr&&d1(vr,yr)||jt&&d1(vr,jt)?-1:0}let _r=lHe(mt,et);if(_r){let jt=wn(et,_r,2,!1,void 0,_t);if(jt)return jt}}for(let _r of vr){let jt=wn(et,_r,2,!1,void 0,_t);if(jt)return jt}if(Gt){let _r=OGe(et,mt,wn);_r&&wn(et,_r,2,!0,void 0,_t)}return 0}function hd(et,mt,Gt,_t){let vr=-1,_r=mt.types;for(let jt of _r){let yr=wn(et,jt,2,Gt,void 0,_t);if(!yr)return 0;vr&=yr}return vr}function gl(et,mt,Gt,_t){let vr=et.types;if(et.flags&1048576&&d1(vr,mt))return-1;let _r=vr.length;for(let jt=0;jt<_r;jt++){let yr=wn(vr[jt],mt,1,Gt&&jt===_r-1,void 0,_t);if(yr)return yr}return 0}function jl(et,mt){return et.flags&1048576&&mt.flags&1048576&&!(et.types[0].flags&32768)&&mt.types[0].flags&32768?a4(mt,-32769):mt}function av(et,mt,Gt,_t){let vr=-1,_r=et.types,jt=jl(et,mt);for(let yr=0;yr<_r.length;yr++){let Xr=_r[yr];if(jt.flags&1048576&&_r.length>=jt.types.length&&_r.length%jt.types.length===0){let fn=wn(Xr,jt.types[yr%jt.types.length],3,!1,void 0,_t);if(fn){vr&=fn;continue}}let dr=wn(Xr,mt,1,Gt,void 0,_t);if(!dr)return 0;vr&=dr}return vr}function oI(et=ve,mt=ve,Gt=ve,_t,vr){if(et.length!==mt.length&&_===Yf)return 0;let _r=et.length<=mt.length?et.length:mt.length,jt=-1;for(let yr=0;yr<_r;yr++){let Xr=yr(fi|=So?16:8,an(So)));let ni;return Er===3?((_r=kn)==null||_r.instant(kn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:et.id,sourceIdStack:Ne.map(So=>So.id),targetId:mt.id,targetIdStack:dt.map(So=>So.id),depth:Lt,targetDepth:hr}),ni=3):((jt=kn)==null||jt.push(kn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:et.id,targetId:mt.id}),ni=h7(et,mt,Gt,_t),(yr=kn)==null||yr.pop()),oo&&(oo=an),vr&1&&Lt--,vr&2&&hr--,Er=Kn,ni?(ni===-1||Lt===0&&hr===0)&&no(ni===-1||ni===3):(_.set(Xr,(Gt?4:0)|2|fi),$n--,no(!1)),ni;function no(So){for(let uc=fn;ucyr!==et)&&(_r=wn(jt,mt,1,!1,void 0,_t))}_r&&!(_t&2)&&mt.flags&2097152&&!X2(mt)&&et.flags&2621440?(_r&=No(et,mt,Gt,void 0,!1,0),_r&&bb(et)&&Qn(et)&8192&&(_r&=ls(et,mt,!1,Gt,0))):_r&&are(mt)&&!vb(mt)&&et.flags&2097152&&X_(et).flags&3670016&&!Dt(et.types,jt=>jt===mt||!!(Qn(jt)&262144))&&(_r&=No(et,mt,Gt,void 0,!0,_t))}return _r&&ai(vr),_r}function S_(et,mt){let Gt=X_(QE(mt)),_t=[];return qEe(Gt,8576,!1,vr=>void _t.push(cs(et,FL(mt.mapper,yg(mt),vr)))),gi(_t)}function Uq(et,mt,Gt,_t,vr){let _r,jt,yr=!1,Xr=et.flags,dr=mt.flags;if(_===Yf){if(Xr&3145728){let an=Mc(et,mt);return an&&(an&=Mc(mt,et)),an}if(Xr&4194304)return wn(et.type,mt.type,3,!1);if(Xr&8388608&&(_r=wn(et.objectType,mt.objectType,3,!1))&&(_r&=wn(et.indexType,mt.indexType,3,!1))||Xr&16777216&&et.root.isDistributive===mt.root.isDistributive&&(_r=wn(et.checkType,mt.checkType,3,!1))&&(_r&=wn(et.extendsType,mt.extendsType,3,!1))&&(_r&=wn(gb(et),gb(mt),3,!1))&&(_r&=wn(hb(et),hb(mt),3,!1))||Xr&33554432&&(_r=wn(et.baseType,mt.baseType,3,!1))&&(_r&=wn(et.constraint,mt.constraint,3,!1)))return _r;if(!(Xr&524288))return 0}else if(Xr&3145728||dr&3145728){if(_r=M_(et,mt,Gt,_t))return _r;if(!(Xr&465829888||Xr&524288&&dr&1048576||Xr&2097152&&dr&467402752))return 0}if(Xr&17301504&&et.aliasSymbol&&et.aliasTypeArguments&&et.aliasSymbol===mt.aliasSymbol&&!(vre(et)||vre(mt))){let an=RGe(et.aliasSymbol);if(an===ve)return 1;let fi=as(et.aliasSymbol).typeParameters,ni=fh(fi),no=NS(et.aliasTypeArguments,fi,ni,vn(et.aliasSymbol.valueDeclaration)),So=NS(mt.aliasTypeArguments,fi,ni,vn(et.aliasSymbol.valueDeclaration)),uc=Kn(no,So,an,_t);if(uc!==void 0)return uc}if(zGe(et)&&!et.target.readonly&&(_r=wn(hc(et)[0],mt,1))||zGe(mt)&&(mt.target.readonly||WJ(t_(et)||et))&&(_r=wn(et,hc(mt)[0],2)))return _r;if(dr&262144){if(Qn(et)&32&&!et.declaration.nameType&&wn(ph(mt),md(et),3)&&!(iy(et)&4)){let an=X0(et),fi=Qf(mt,yg(et));if(_r=wn(an,fi,3,Gt))return _r}if(_===vp&&Xr&262144){let an=hf(et);if(an)for(;an&&vm(an,fi=>!!(fi.flags&262144));){if(_r=wn(an,mt,1,!1))return _r;an=hf(an)}return 0}}else if(dr&4194304){let an=mt.type;if(Xr&4194304&&(_r=wn(an,et.type,3,!1)))return _r;if(Yo(an)){if(_r=wn(et,VWe(an),2,Gt))return _r}else{let fi=zEe(an);if(fi){if(wn(et,ph(fi,mt.indexFlags|4),2,Gt)===-1)return-1}else if(Xf(an)){let ni=_1(an),no=md(an),So;if(ni&&VD(an)){let uc=S_(ni,an);So=gi([uc,ni])}else So=ni||no;if(wn(et,So,2,Gt)===-1)return-1}}}else if(dr&8388608){if(Xr&8388608){if((_r=wn(et.objectType,mt.objectType,3,Gt))&&(_r&=wn(et.indexType,mt.indexType,3,Gt)),_r)return _r;Gt&&(jt=H)}if(_===Lf||_===vp){let an=mt.objectType,fi=mt.indexType,ni=t_(an)||an,no=t_(fi)||fi;if(!X2(ni)&&!Q2(no)){let So=4|(ni!==an?2:0),uc=IS(ni,no,So);if(uc){if(Gt&&jt&&ai(vr),_r=wn(et,uc,2,Gt,void 0,_t))return _r;Gt&&jt&&H&&(H=fn([jt])<=fn([H])?jt:H)}}}Gt&&(jt=void 0)}else if(Xf(mt)&&_!==Yf){let an=!!mt.declaration.nameType,fi=X0(mt),ni=iy(mt);if(!(ni&8)){if(!an&&fi.flags&8388608&&fi.objectType===et&&fi.indexType===yg(mt))return-1;if(!Xf(et)){let no=an?_1(mt):md(mt),So=ph(et,2),uc=ni&4,Sf=uc?SJ(no,So):void 0;if(uc?!(Sf.flags&131072):wn(no,So,3)){let xp=X0(mt),US=yg(mt),Cb=a4(xp,-98305);if(!an&&Cb.flags&8388608&&Cb.indexType===US){if(_r=wn(et,Cb.objectType,2,Gt))return _r}else{let dx=an?Sf||no:Sf?wo([Sf,US]):US,Sh=Qf(et,dx);if(_r=wn(Sh,xp,3,Gt))return _r}}jt=H,ai(vr)}}}else if(dr&16777216){if(Xk(mt,dt,hr,10))return 3;let an=mt;if(!an.root.inferTypeParameters&&!aLt(an.root)&&!(et.flags&16777216&&et.root===an.root)){let fi=!yo(BL(an.checkType),BL(an.extendsType)),ni=!fi&&yo(eC(an.checkType),eC(an.extendsType));if((_r=fi?-1:wn(et,gb(an),2,!1,void 0,_t))&&(_r&=ni?-1:wn(et,hb(an),2,!1,void 0,_t),_r))return _r}}else if(dr&134217728){if(Xr&134217728){if(_===vp)return R7t(et,mt)?0:-1;cs(et,vc)}if(Lre(et,mt))return-1}else if(mt.flags&268435456&&!(et.flags&268435456)&&Mre(et,mt))return-1;if(Xr&8650752){if(!(Xr&8388608&&dr&8388608)){let an=W2(et)||Mt;if(_r=wn(an,mt,1,!1,void 0,_t))return _r;if(_r=wn(Ep(an,et),mt,1,Gt&&an!==Mt&&!(dr&Xr&262144),void 0,_t))return _r;if($Ee(et)){let fi=W2(et.indexType);if(fi&&(_r=wn(Qf(et.objectType,fi),mt,1,Gt)))return _r}}}else if(Xr&4194304){let an=Pxe(et.type,et.indexFlags)&&Qn(et.type)&32;if(_r=wn(Cr,mt,1,Gt&&!an))return _r;if(an){let fi=et.type,ni=_1(fi),no=ni&&VD(fi)?S_(ni,fi):ni||md(fi);if(_r=wn(no,mt,1,Gt))return _r}}else if(Xr&134217728&&!(dr&524288)){if(!(dr&134217728)){let an=t_(et);if(an&&an!==et&&(_r=wn(an,mt,1,Gt)))return _r}}else if(Xr&268435456)if(dr&268435456){if(et.symbol!==mt.symbol)return 0;if(_r=wn(et.type,mt.type,3,Gt))return _r}else{let an=t_(et);if(an&&(_r=wn(an,mt,1,Gt)))return _r}else if(Xr&16777216){if(Xk(et,Ne,Lt,10))return 3;if(dr&16777216){let ni=et.root.inferTypeParameters,no=et.extendsType,So;if(ni){let uc=HL(ni,void 0,0,Hi);iv(uc.inferences,mt.extendsType,no,1536),no=cs(no,uc.mapper),So=uc.mapper}if(Z0(no,mt.extendsType)&&(wn(et.checkType,mt.checkType,3)||wn(mt.checkType,et.checkType,3))&&((_r=wn(cs(gb(et),So),gb(mt),3,Gt))&&(_r&=wn(hb(et),hb(mt),3,Gt)),_r))return _r}let an=WEe(et);if(an&&(_r=wn(an,mt,1,Gt)))return _r;let fi=!(dr&16777216)&&EJ(et)?eWe(et):void 0;if(fi&&(ai(vr),_r=wn(fi,mt,1,Gt)))return _r}else{if(_!==nh&&_!==Md&&mMt(mt)&&ev(et))return-1;if(Xf(mt))return Xf(et)&&(_r=Wt(et,mt,Gt))?_r:0;let an=!!(Xr&402784252);if(_!==Yf)et=X_(et),Xr=et.flags;else if(Xf(et))return 0;if(Qn(et)&4&&Qn(mt)&4&&et.target===mt.target&&!Yo(et)&&!(vre(et)||vre(mt))){if(xre(et))return-1;let fi=Kxe(et.target);if(fi===ve)return 1;let ni=Kn(hc(et),hc(mt),fi,_t);if(ni!==void 0)return ni}else{if(r4(mt)?tp(et,vb):qd(mt)&&tp(et,fi=>Yo(fi)&&!fi.target.readonly))return _!==Yf?wn(db(et,be)||Me,db(mt,be)||Me,3,Gt):0;if(MS(et)&&Yo(mt)&&!MS(mt)){let fi=sy(et);if(fi!==et)return wn(fi,mt,1,Gt)}else if((_===nh||_===Md)&&ev(mt)&&Qn(mt)&8192&&!ev(et))return 0}if(Xr&2621440&&dr&524288){let fi=Gt&&H===vr.errorInfo&&!an;if(_r=No(et,mt,fi,void 0,!1,_t),_r&&(_r&=je(et,mt,0,fi,_t),_r&&(_r&=je(et,mt,1,fi,_t),_r&&(_r&=ls(et,mt,an,fi,_t)))),yr&&_r)H=jt||H||vr.errorInfo;else if(_r)return _r}if(Xr&2621440&&dr&1048576){let fi=a4(mt,36175872);if(fi.flags&1048576){let ni=Ir(et,fi);if(ni)return ni}}}return 0;function fn(an){return an?F_(an,(fi,ni)=>fi+1+fn(ni.next),0):0}function Kn(an,fi,ni,no){if(_r=oI(an,fi,ni,Gt,no))return _r;if(Dt(ni,uc=>!!(uc&24))){jt=void 0,ai(vr);return}let So=fi&&YLt(fi,ni);if(yr=!So,ni!==ve&&!So){if(yr&&!(Gt&&Dt(ni,uc=>(uc&7)===0)))return 0;jt=H,ai(vr)}}}function Wt(et,mt,Gt){if(_===vp||(_===Yf?iy(et)===iy(mt):K6(et)<=K6(mt))){let vr,_r=md(mt),jt=cs(md(et),K6(et)<0?rs:vc);if(vr=wn(_r,jt,3,Gt)){let yr=Zf([yg(et)],[yg(mt)]);if(cs(_1(et),yr)===cs(_1(mt),yr))return vr&wn(cs(X0(et),yr),X0(mt),3,Gt)}}return 0}function Ir(et,mt){var Gt;let _t=Ea(et),vr=cHe(_t,mt);if(!vr)return 0;let _r=1;for(let Kn of vr)if(_r*=lFt(CS(Kn)),_r>25)return(Gt=kn)==null||Gt.instant(kn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:et.id,targetId:mt.id,numCombinations:_r}),0;let jt=new Array(vr.length),yr=new Set;for(let Kn=0;KnKn[ni],!1,0,ce||_===vp))continue e}cl(dr,fi,hv),an=!0}if(!an)return 0}let fn=-1;for(let Kn of dr)if(fn&=No(et,Kn,!1,yr,!1,0),fn&&(fn&=je(et,Kn,0,!1,0),fn&&(fn&=je(et,Kn,1,!1,0),fn&&!(Yo(et)&&Yo(Kn))&&(fn&=ls(et,Kn,!1,!1,0)))),!fn)return fn;return fn}function Hr(et,mt){if(!mt||et.length===0)return et;let Gt;for(let _t=0;_t5?Rs(v.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,_n(et),_n(mt),kr(_r.slice(0,4),jt=>ns(jt)).join(", "),_r.length-4):Rs(v.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,_n(et),_n(mt),kr(_r,jt=>ns(jt)).join(", ")),vr&&H&&Bn++)}function No(et,mt,Gt,_t,vr,_r){if(_===Yf)return Mo(et,mt,_t);let jt=-1;if(Yo(mt)){if(vb(et)){if(!mt.target.readonly&&(r4(et)||Yo(et)&&et.target.readonly))return 0;let Kn=p1(et),an=p1(mt),fi=Yo(et)?et.target.combinedFlags&4:4,ni=mt.target.combinedFlags&4,no=Yo(et)?et.target.minLength:0,So=mt.target.minLength;if(!fi&&Kn=xp?an-1-Math.min(aI,US):Sh,mx=mt.target.elementFlags[VS];if(mx&8&&!(np&8))return Gt&&Rs(v.Source_provides_no_match_for_variadic_element_at_position_0_in_target,VS),0;if(np&8&&!(mx&12))return Gt&&Rs(v.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Sh,VS),0;if(mx&1&&!(np&1))return Gt&&Rs(v.Source_provides_no_match_for_required_element_at_position_0_in_target,VS),0;if(dx&&((np&12||mx&12)&&(dx=!1),dx&&_t?.has(""+Sh)))continue;let y7=nv(uc[Sh],!!(np&mx&2)),pC=Sf[VS],S4=np&8&&mx&4?y_(pC):nv(pC,!!(mx&2)),v7=wn(y7,S4,3,Gt,void 0,_r);if(!v7)return Gt&&(an>1||Kn>1)&&(Cb&&Sh>=xp&&aI>=US&&xp!==Kn-US-1?Xs(v.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,xp,Kn-US-1,VS):Xs(v.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Sh,VS)),0;jt&=v7}return jt}if(mt.target.combinedFlags&12)return 0}let yr=(_===nh||_===Md)&&!bb(et)&&!xre(et)&&!Yo(et),Xr=p2e(et,mt,yr,!1);if(Xr)return Gt&&Ee(et,mt)&&Si(et,mt,Xr,yr),0;if(bb(mt)){for(let Kn of Hr(Ea(et),_t))if(!ZE(mt,Kn.escapedName)&&!(yn(Kn).flags&32768))return Gt&&Rs(v.Property_0_does_not_exist_on_type_1,ns(Kn),_n(mt)),0}let dr=Ea(mt),fn=Yo(et)&&Yo(mt);for(let Kn of Hr(dr,_t)){let an=Kn.escapedName;if(!(Kn.flags&4194304)&&(!fn||Oy(an)||an==="length")&&(!vr||Kn.flags&16777216)){let fi=ho(et,an);if(fi&&fi!==Kn){let ni=Vn(et,mt,fi,Kn,CS,Gt,_r,_===vp);if(!ni)return 0;jt&=ni}}}return jt}function Mo(et,mt,Gt){if(!(et.flags&524288&&mt.flags&524288))return 0;let _t=Hr(PS(et),Gt),vr=Hr(PS(mt),Gt);if(_t.length!==vr.length)return 0;let _r=-1;for(let jt of _t){let yr=ZE(mt,jt.escapedName);if(!yr)return 0;let Xr=Qxe(jt,yr,wn);if(!Xr)return 0;_r&=Xr}return _r}function je(et,mt,Gt,_t,vr){var _r,jt;if(_===Yf)return En(et,mt,Gt);if(mt===Sc||et===Sc)return-1;let yr=et.symbol&&yh(et.symbol.valueDeclaration),Xr=mt.symbol&&yh(mt.symbol.valueDeclaration),dr=Ks(et,yr&&Gt===1?0:Gt),fn=Ks(mt,Xr&&Gt===1?0:Gt);if(Gt===1&&dr.length&&fn.length){let no=!!(dr[0].flags&4),So=!!(fn[0].flags&4);if(no&&!So)return _t&&Rs(v.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Wa(dr[0],fn[0],_t))return 0}let Kn=-1,an=Gt===1?Or:cr,fi=Qn(et),ni=Qn(mt);if(fi&64&&ni&64&&et.symbol===mt.symbol||fi&4&&ni&4&&et.target===mt.target){M.assertEqual(dr.length,fn.length);for(let no=0;nobS(xp,void 0,262144,Gt);return Rs(v.Type_0_is_not_assignable_to_type_1,Sf(So),Sf(uc)),Rs(v.Types_of_construct_signatures_are_incompatible),Kn}}else e:for(let no of fn){let So=Co(),uc=_t;for(let Sf of dr){let xp=An(Sf,no,!0,uc,vr,an(Sf,no));if(xp){Kn&=xp,ai(So);continue e}uc=!1}return uc&&Rs(v.Type_0_provides_no_match_for_the_signature_1,_n(et),bS(no,void 0,void 0,Gt)),0}return Kn}function Ee(et,mt){let Gt=CJ(et,0),_t=CJ(et,1),vr=PS(et);return(Gt.length||_t.length)&&!vr.length?!!(Ks(mt,0).length&&Gt.length||Ks(mt,1).length&&_t.length):!0}function cr(et,mt){return et.parameters.length===0&&mt.parameters.length===0?(Gt,_t)=>Xs(v.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,_n(Gt),_n(_t)):(Gt,_t)=>Xs(v.Call_signature_return_types_0_and_1_are_incompatible,_n(Gt),_n(_t))}function Or(et,mt){return et.parameters.length===0&&mt.parameters.length===0?(Gt,_t)=>Xs(v.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,_n(Gt),_n(_t)):(Gt,_t)=>Xs(v.Construct_signature_return_types_0_and_1_are_incompatible,_n(Gt),_n(_t))}function An(et,mt,Gt,_t,vr,_r){let jt=_===nh?16:_===Md?24:0;return zxe(Gt?wL(et):et,Gt?wL(mt):mt,jt,_t,Rs,_r,yr,vc);function yr(Xr,dr,fn){return wn(Xr,dr,3,fn,void 0,vr)}}function En(et,mt,Gt){let _t=Ks(et,Gt),vr=Ks(mt,Gt);if(_t.length!==vr.length)return 0;let _r=-1;for(let jt=0;jt<_t.length;jt++){let yr=zJ(_t[jt],vr[jt],!1,!1,!1,wn);if(!yr)return 0;_r&=yr}return _r}function Mn(et,mt,Gt,_t){let vr=-1,_r=mt.keyType,jt=et.flags&2097152?bJ(et):PS(et);for(let yr of jt)if(!IGe(et,yr)&&Vk(zk(yr,8576),_r)){let Xr=CS(yr),dr=te||Xr.flags&32768||_r===be||!(yr.flags&16777216)?Xr:ym(Xr,524288),fn=wn(dr,mt.type,3,Gt,void 0,_t);if(!fn)return Gt&&Rs(v.Property_0_is_incompatible_with_index_signature,ns(yr)),0;vr&=fn}for(let yr of Q_(et))if(Vk(yr.keyType,_r)){let Xr=$i(yr,mt,Gt,_t);if(!Xr)return 0;vr&=Xr}return vr}function $i(et,mt,Gt,_t){let vr=wn(et.type,mt.type,3,Gt,void 0,_t);return!vr&&Gt&&(et.keyType===mt.keyType?Rs(v._0_index_signatures_are_incompatible,_n(et.keyType)):Rs(v._0_and_1_index_signatures_are_incompatible,_n(et.keyType),_n(mt.keyType))),vr}function ls(et,mt,Gt,_t,vr){if(_===Yf)return Gs(et,mt);let _r=Q_(mt),jt=Dt(_r,Xr=>Xr.keyType===Ue),yr=-1;for(let Xr of _r){let dr=_!==Md&&!Gt&&jt&&Xr.type.flags&1?-1:Xf(et)&&jt?wn(X0(et),Xr.type,3,_t):ws(et,Xr,_t,vr);if(!dr)return 0;yr&=dr}return yr}function ws(et,mt,Gt,_t){let vr=NL(et,mt.keyType);return vr?$i(vr,mt,Gt,_t):!(_t&1)&&(_!==Md||Qn(et)&8192)&&Dre(et)?Mn(et,mt,Gt,_t):(Gt&&Rs(v.Index_signature_for_type_0_is_missing_in_type_1,_n(mt.keyType),_n(et)),0)}function Gs(et,mt){let Gt=Q_(et),_t=Q_(mt);if(Gt.length!==_t.length)return 0;for(let vr of _t){let _r=Hy(et,vr.keyType);if(!(_r&&wn(_r.type,vr.type,3)&&_r.isReadonly===vr.isReadonly))return 0}return-1}function Wa(et,mt,Gt){if(!et.declaration||!mt.declaration)return!0;let _t=pA(et.declaration,6),vr=pA(mt.declaration,6);return vr===2||vr===4&&_t!==2||vr!==4&&!_t?!0:(Gt&&Rs(v.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,z6(_t),z6(vr)),!1)}}function Hxe(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!Et(r.types,Hxe);if(r.flags&465829888){let o=W2(r);if(o&&o!==r)return Hxe(o)}return Tg(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function wGe(r,o){return Yo(r)&&Yo(o)?ve:Ea(o).filter(_=>yre(il(r,_.escapedName),yn(_)))}function yre(r,o){return!!r&&!!o&&ml(r,32768)&&!!WL(o)}function HLt(r){return Ea(r).filter(o=>WL(yn(o)))}function OGe(r,o,_=Jxe){return nXe(r,o,_)||oqt(r,o)||aqt(r,o)||cqt(r,o)||lqt(r,o)}function $xe(r,o,_){let h=r.types,T=h.map(w=>w.flags&402784252?0:-1);for(let[w,V]of o){let H=!1;for(let X=0;XT[V]),0):r;return C.flags&131072?r:C}function Yxe(r){if(r.flags&524288){let o=vg(r);return o.callSignatures.length===0&&o.constructSignatures.length===0&&o.indexInfos.length===0&&o.properties.length>0&&Oi(o.properties,_=>!!(_.flags&16777216))}return r.flags&33554432?Yxe(r.baseType):r.flags&2097152?Oi(r.types,Yxe):!1}function $Lt(r,o,_){for(let h of Ea(r))if(ene(o,h.escapedName,_))return!0;return!1}function Kxe(r){return r===zt||r===Kr||r.objectFlags&8?$:MGe(r.symbol,r.typeParameters)}function RGe(r){return MGe(r,as(r).typeParameters)}function MGe(r,o=ve){var _,h;let T=as(r);if(!T.variances){(_=kn)==null||_.push(kn.Phase.CheckTypes,"getVariancesWorker",{arity:o.length,id:Bu(oc(r))});let C=Bi,w=Nn;Bi||(Bi=!0,Nn=Nr.length),T.variances=ve;let V=[];for(let H of o){let X=Xxe(H),_e=X&16384?X&8192?0:1:X&8192?2:void 0;if(_e===void 0){let Ie=!1,Ne=!1,dt=oo;oo=hr=>hr?Ne=!0:Ie=!0;let Ct=JJ(r,H,Jc),Lt=JJ(r,H,W_);_e=(yo(Lt,Ct)?1:0)|(yo(Ct,Lt)?2:0),_e===3&&yo(JJ(r,H,G_),Ct)&&(_e=4),oo=dt,(Ie||Ne)&&(Ie&&(_e|=8),Ne&&(_e|=16))}V.push(_e)}C||(Bi=!1,Nn=w),T.variances=V,(h=kn)==null||h.pop({variances:V.map(M.formatVariance)})}return T.variances}function JJ(r,o,_){let h=sx(o,_),T=oc(r);if(la(T))return T;let C=r.flags&524288?zD(r,$y(as(r).typeParameters,h)):f1(T,$y(T.typeParameters,h));return ut.add(Bu(C)),C}function vre(r){return ut.has(Bu(r))}function Xxe(r){var o;return F_((o=r.symbol)==null?void 0:o.declarations,(_,h)=>_|V_(h),0)&28672}function YLt(r,o){for(let _=0;_!!(o.flags&262144)||Sre(o))}function QLt(r,o,_,h){let T=[],C="",w=H(r,0),V=H(o,0);return`${C}${w},${V}${_}`;function H(X,_e=0){let Ie=""+X.target.id;for(let Ne of hc(X)){if(Ne.flags&262144){if(h||KLt(Ne)){let dt=T.indexOf(Ne);dt<0&&(dt=T.length,T.push(Ne)),Ie+="="+dt;continue}C="*"}else if(_e<4&&Sre(Ne)){Ie+="<"+H(Ne,_e+1)+">";continue}Ie+="-"+Ne.id}return Ie}}function Tre(r,o,_,h,T){if(h===Yf&&r.id>o.id){let w=r;r=o,o=w}let C=_?":"+_:"";return Sre(r)&&Sre(o)?QLt(r,o,C,T):`${r.id},${o.id}${C}`}function qJ(r,o){if(ul(r)&6){for(let _ of r.links.containingType.types){let h=ho(_,r.escapedName),T=h&&qJ(h,o);if(T)return T}return}return o(r)}function Kk(r){return r.parent&&r.parent.flags&32?oc(e_(r)):void 0}function bre(r){let o=Kk(r),_=o&&mi(o)[0];return _&&il(_,r.escapedName)}function ZLt(r,o){return qJ(r,_=>{let h=Kk(_);return h?jD(h,o):!1})}function e7t(r,o){return!qJ(o,_=>Cd(_)&4?!ZLt(r,Kk(_)):!1)}function LGe(r,o,_){return qJ(o,h=>Cd(h,_)&4?!jD(r,Kk(h)):!1)?void 0:r}function Xk(r,o,_,h=3){if(_>=h){if((Qn(r)&96)===96&&(r=FGe(r)),r.flags&2097152)return Dt(r.types,V=>Xk(V,o,_,h));let T=Ere(r),C=0,w=0;for(let V=0;V<_;V++){let H=o[V];if(jGe(H,T)){if(H.id>=w&&(C++,C>=h))return!0;w=H.id}}}return!1}function FGe(r){let o;for(;(Qn(r)&96)===96&&(o=QE(r))&&(o.symbol||o.flags&2097152&&Dt(o.types,_=>!!_.symbol));)r=o;return r}function jGe(r,o){return(Qn(r)&96)===96&&(r=FGe(r)),r.flags&2097152?Dt(r.types,_=>jGe(_,o)):Ere(r)===o}function Ere(r){if(r.flags&524288&&!m2e(r)){if(Qn(r)&4&&r.node)return r.node;if(r.symbol&&!(Qn(r)&16&&r.symbol.flags&32))return r.symbol;if(Yo(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function t7t(r,o){return Qxe(r,o,UL)!==0}function Qxe(r,o,_){if(r===o)return-1;let h=Cd(r)&6,T=Cd(o)&6;if(h!==T)return 0;if(h){if(iI(r)!==iI(o))return 0}else if((r.flags&16777216)!==(o.flags&16777216))return 0;return xg(r)!==xg(o)?0:_(yn(r),yn(o))}function r7t(r,o,_){let h=rp(r),T=rp(o),C=vh(r),w=vh(o),V=ly(r),H=ly(o);return!!(h===T&&C===w&&V===H||_&&C<=w)}function zJ(r,o,_,h,T,C){if(r===o)return-1;if(!r7t(r,o,_)||kt(r.typeParameters)!==kt(o.typeParameters))return 0;if(o.typeParameters){let H=Zf(r.typeParameters,o.typeParameters);for(let X=0;Xo|(_.flags&1048576?BGe(_.types):_.flags),0)}function s7t(r){if(r.length===1)return r[0];let o=ce?js(r,h=>Fl(h,T=>!(T.flags&98304))):r,_=i7t(o)?gi(o):F_(o,(h,T)=>OS(h,T)?T:h);return o===r?_:HJ(_,BGe(r)&98304)}function o7t(r){return F_(r,(o,_)=>OS(_,o)?_:o)}function qd(r){return!!(Qn(r)&4)&&(r.target===zt||r.target===Kr)}function r4(r){return!!(Qn(r)&4)&&r.target===Kr}function vb(r){return qd(r)||Yo(r)}function WJ(r){return qd(r)&&!r4(r)||Yo(r)&&!r.target.readonly}function GJ(r){return qd(r)?hc(r)[0]:void 0}function h1(r){return qd(r)||!(r.flags&98304)&&yo(r,Al)}function Zxe(r){return WJ(r)||!(r.flags&98305)&&yo(r,Ja)}function e2e(r){if(!(Qn(r)&4)||!(Qn(r.target)&3))return;if(Qn(r)&33554432)return Qn(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;let o=r.target;if(Qn(o)&1){let T=fb(o);if(T&&T.expression.kind!==80&&T.expression.kind!==211)return}let _=mi(o);if(_.length!==1||kS(r.symbol).size)return;let h=kt(o.typeParameters)?cs(_[0],Zf(o.typeParameters,hc(r).slice(0,o.typeParameters.length))):_[0];return kt(hc(r))>kt(o.typeParameters)&&(h=Ep(h,qo(hc(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=h}function UGe(r){return ce?r===Xi:r===Z}function xre(r){let o=GJ(r);return!!o&&UGe(o)}function n4(r){let o;return Yo(r)||!!ho(r,"0")||h1(r)&&!!(o=il(r,"length"))&&tp(o,_=>!!(_.flags&256))}function Cre(r){return h1(r)||n4(r)}function VGe(r,o){let _=il(r,""+o);if(_)return _;if(tp(r,Yo))return WGe(r,o,q.noUncheckedIndexedAccess?sr:void 0)}function a7t(r){return!(r.flags&240544)}function Tg(r){return!!(r.flags&109472)}function JGe(r){let o=sy(r);return o.flags&2097152?Dt(o.types,Tg):Tg(o)}function c7t(r){return r.flags&2097152&&jn(r.types,Tg)||r}function qL(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:Oi(r.types,Tg):Tg(r)}function tv(r){return r.flags&1056?Bk(r):r.flags&402653312?Ue:r.flags&256?be:r.flags&2048?Re:r.flags&512?Wr:r.flags&1048576?l7t(r):r}function l7t(r){let o=`B${Bu(r)}`;return GT(o)??Qv(o,Dc(r,tv))}function t2e(r){return r.flags&402653312?Ue:r.flags&288?be:r.flags&2048?Re:r.flags&512?Wr:r.flags&1048576?Dc(r,t2e):r}function Sb(r){return r.flags&1056&&ix(r)?Bk(r):r.flags&128&&ix(r)?Ue:r.flags&256&&ix(r)?be:r.flags&2048&&ix(r)?Re:r.flags&512&&ix(r)?Wr:r.flags&1048576?Dc(r,Sb):r}function qGe(r){return r.flags&8192?Yr:r.flags&1048576?Dc(r,qGe):r}function r2e(r,o){return gne(r,o)||(r=qGe(Sb(r))),Z_(r)}function u7t(r,o,_){if(r&&Tg(r)){let h=o?_?c7(o):o:void 0;r=r2e(r,h)}return r}function n2e(r,o,_,h){if(r&&Tg(r)){let T=o?_x(_,o,h):void 0;r=r2e(r,T)}return r}function Yo(r){return!!(Qn(r)&4&&r.target.objectFlags&8)}function MS(r){return Yo(r)&&!!(r.target.combinedFlags&8)}function zGe(r){return MS(r)&&r.target.elementFlags.length===1}function Are(r){return i4(r,r.target.fixedLength)}function WGe(r,o,_){return Dc(r,h=>{let T=h,C=Are(T);return C?_&&o>=Exe(T.target)?gi([C,_]):C:sr})}function _7t(r){let o=Are(r);return o&&y_(o)}function i4(r,o,_=0,h=!1,T=!1){let C=p1(r)-_;if(o(_&12)===(o.target.elementFlags[h]&12))}function GGe({value:r}){return r.base10Value==="0"}function HGe(r){return Fl(r,o=>bg(o,4194304))}function p7t(r){return Dc(r,d7t)}function d7t(r){return r.flags&4?ot:r.flags&8?qt:r.flags&64?ar:r===Ht||r===Ot||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&GGe(r)?r:Pr}function HJ(r,o){let _=o&~r.flags&98304;return _===0?r:gi(_===32768?[r,sr]:_===65536?[r,Xe]:[r,sr,Xe])}function LS(r,o=!1){M.assert(ce);let _=o?bt:sr;return r===_||r.flags&1048576&&r.types[0]===_?r:gi([r,_])}function m7t(r){return Hf||(Hf=GD("NonNullable",524288,void 0)||Tt),Hf!==Tt?zD(Hf,[r]):wo([r,Wi])}function rv(r){return ce?iC(r,2097152):r}function $Ge(r){return ce?gi([r,Q]):r}function kre(r){return ce?jre(r,Q):r}function Pre(r,o,_){return _?pw(o)?LS(r):$Ge(r):r}function zL(r,o){return R5(o)?rv(r):b_(o)?kre(r):r}function nv(r,o){return te&&o?jre(r,Ye):r}function WL(r){return r===Ye||!!(r.flags&1048576)&&r.types[0]===Ye}function Nre(r){return te?jre(r,Ye):ym(r,524288)}function g7t(r,o){return(r.flags&524)!==0&&(o.flags&28)!==0}function Dre(r){let o=Qn(r);return r.flags&2097152?Oi(r.types,Dre):!!(r.symbol&&r.symbol.flags&7040&&!(r.symbol.flags&32)&&!Rne(r))||!!(o&4194304)||!!(o&1024&&Dre(r.source))}function tC(r,o){let _=ta(r.flags,r.escapedName,ul(r)&8);_.declarations=r.declarations,_.parent=r.parent,_.links.type=o,_.links.target=r,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration);let h=as(r).nameType;return h&&(_.links.nameType=h),_}function h7t(r,o){let _=po();for(let h of PS(r)){let T=yn(h),C=o(T);_.set(h.escapedName,C===T?h:tC(h,C))}return _}function GL(r){if(!(bb(r)&&Qn(r)&8192))return r;let o=r.regularType;if(o)return o;let _=r,h=h7t(r,GL),T=tr(_.symbol,h,_.callSignatures,_.constructSignatures,_.indexInfos);return T.flags=_.flags,T.objectFlags|=_.objectFlags&-8193,r.regularType=T,T}function YGe(r,o,_){return{parent:r,propertyName:o,siblings:_,resolvedProperties:void 0}}function KGe(r){if(!r.siblings){let o=[];for(let _ of KGe(r.parent))if(bb(_)){let h=ZE(_,r.propertyName);h&&sC(yn(h),T=>{o.push(T)})}r.siblings=o}return r.siblings}function y7t(r){if(!r.resolvedProperties){let o=new Map;for(let _ of KGe(r))if(bb(_)&&!(Qn(_)&2097152))for(let h of Ea(_))o.set(h.escapedName,h);r.resolvedProperties=Os(o.values())}return r.resolvedProperties}function v7t(r,o){if(!(r.flags&4))return r;let _=yn(r),h=o&&YGe(o,r.escapedName,void 0),T=i2e(_,h);return T===_?r:tC(r,T)}function S7t(r){let o=ia.get(r.escapedName);if(o)return o;let _=tC(r,bt);return _.flags|=16777216,ia.set(r.escapedName,_),_}function T7t(r,o){let _=po();for(let T of PS(r))_.set(T.escapedName,v7t(T,o));if(o)for(let T of y7t(o))_.has(T.escapedName)||_.set(T.escapedName,S7t(T));let h=tr(r.symbol,_,ve,ve,js(Q_(r),T=>oy(T.keyType,ep(T.type),T.isReadonly)));return h.objectFlags|=Qn(r)&266240,h}function ep(r){return i2e(r,void 0)}function i2e(r,o){if(Qn(r)&196608){if(o===void 0&&r.widened)return r.widened;let _;if(r.flags&98305)_=Me;else if(bb(r))_=T7t(r,o);else if(r.flags&1048576){let h=o||YGe(void 0,void 0,r.types),T=js(r.types,C=>C.flags&98304?C:i2e(C,h));_=gi(T,Dt(T,ev)?2:1)}else r.flags&2097152?_=wo(js(r.types,ep)):vb(r)&&(_=f1(r.target,js(hc(r),ep)));return _&&o===void 0&&(r.widened=_),_||r}return r}function Ire(r){let o=!1;if(Qn(r)&65536){if(r.flags&1048576)if(Dt(r.types,ev))o=!0;else for(let _ of r.types)Ire(_)&&(o=!0);if(vb(r))for(let _ of hc(r))Ire(_)&&(o=!0);if(bb(r))for(let _ of PS(r)){let h=yn(_);Qn(h)&65536&&(Ire(h)||Ze(_.valueDeclaration,v.Object_literal_s_property_0_implicitly_has_an_1_type,ns(_),_n(ep(h))),o=!0)}}return o}function Tb(r,o,_){let h=_n(ep(o));if(vn(r)&&!aO(Jr(r),q))return;let T;switch(r.kind){case 226:case 172:case 171:T=de?v.Member_0_implicitly_has_an_1_type:v.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let C=r;if($e(C.name)){let w=Jx(C.name);if((LA(C.parent)||Wg(C.parent)||Vh(C.parent))&&C.parent.parameters.includes(C)&&(Ar(C,C.name.escapedText,788968,void 0,!0)||w&&v$(w))){let V="arg"+C.parent.parameters.indexOf(C),H=Ya(C.name)+(C.dotDotDotToken?"[]":"");Au(de,r,v.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,V,H);return}}T=r.dotDotDotToken?de?v.Rest_parameter_0_implicitly_has_an_any_type:v.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:de?v.Parameter_0_implicitly_has_an_1_type:v.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(T=v.Binding_element_0_implicitly_has_an_1_type,!de)return;break;case 317:Ze(r,v.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,h);return;case 323:de&&xN(r.parent)&&Ze(r.parent.tagName,v.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,h);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(de&&!r.name){_===3?Ze(r,v.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,h):Ze(r,v.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,h);return}T=de?_===3?v._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:v._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:v._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:de&&Ze(r,v.Mapped_object_type_implicitly_has_an_any_template_type);return;default:T=de?v.Variable_0_implicitly_has_an_1_type:v.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Au(de,r,T,Ya(Ns(r)),h)}function wre(r,o,_){n(()=>{de&&Qn(o)&65536&&(!_||!V2e(r))&&(Ire(o)||Tb(r,o,_))})}function s2e(r,o,_){let h=rp(r),T=rp(o),C=r7(r),w=r7(o),V=w?T-1:T,H=C?V:Math.min(h,V),X=mb(r);if(X){let _e=mb(o);_e&&_(X,_e)}for(let _e=0;_eo.typeParameter),kr(r.inferences,(o,_)=>()=>(o.isFixed||(C7t(r),Ore(r.inferences),o.isFixed=!0),g2e(r,_))))}function x7t(r){return jxe(kr(r.inferences,o=>o.typeParameter),kr(r.inferences,(o,_)=>()=>g2e(r,_)))}function Ore(r){for(let o of r)o.isFixed||(o.inferredType=void 0)}function c2e(r,o,_){(r.intraExpressionInferenceSites??(r.intraExpressionInferenceSites=[])).push({node:o,type:_})}function C7t(r){if(r.intraExpressionInferenceSites){for(let{node:o,type:_}of r.intraExpressionInferenceSites){let h=o.kind===174?ZHe(o,2):vf(o,2);h&&iv(r.inferences,_,h)}r.intraExpressionInferenceSites=void 0}}function l2e(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function XGe(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function A7t(r){let o=ti(r.inferences,nI);return o.length?a2e(kr(o,XGe),r.signature,r.flags,r.compareTypes):void 0}function u2e(r){return r&&r.mapper}function FS(r){let o=Qn(r);if(o&524288)return!!(o&1048576);let _=!!(r.flags&465829888||r.flags&524288&&!QGe(r)&&(o&4&&(r.node||Dt(hc(r),FS))||o&134217728&&kt(r.outerTypeParameters)||o&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||o&12583968)||r.flags&3145728&&!(r.flags&1024)&&!QGe(r)&&Dt(r.types,FS));return r.flags&3899393&&(r.objectFlags|=524288|(_?1048576:0)),_}function QGe(r){if(r.aliasSymbol&&!r.aliasTypeArguments){let o=kc(r.aliasSymbol,265);return!!(o&&Dr(o.parent,_=>_.kind===307?!0:_.kind===267?!1:"quit"))}return!1}function $L(r,o,_=0){return!!(r===o||r.flags&3145728&&Dt(r.types,h=>$L(h,o,_))||_<3&&r.flags&16777216&&($L(gb(r),o,_+1)||$L(hb(r),o,_+1)))}function k7t(r,o){let _=Ud(r);return _?!!_.type&&$L(_.type,o):$L(Na(r),o)}function P7t(r){let o=po();sC(r,h=>{if(!(h.flags&128))return;let T=Uc(h.value),C=ta(4,T);C.links.type=Me,h.symbol&&(C.declarations=h.symbol.declarations,C.valueDeclaration=h.symbol.valueDeclaration),o.set(T,C)});let _=r.flags&4?[oy(Ue,Wi,!1)]:ve;return tr(void 0,o,ve,ve,_)}function ZGe(r,o,_){let h=r.id+","+o.id+","+_.id;if(mu.has(h))return mu.get(h);let T=N7t(r,o,_);return mu.set(h,T),T}function _2e(r){return!(Qn(r)&262144)||bb(r)&&Dt(Ea(r),o=>_2e(yn(o)))||Yo(r)&&Dt(rx(r),_2e)}function N7t(r,o,_){if(!(Hy(r,Ue)||Ea(r).length!==0&&_2e(r)))return;if(qd(r)){let T=Rre(hc(r)[0],o,_);return T?y_(T,r4(r)):void 0}if(Yo(r)){let T=kr(rx(r),w=>Rre(w,o,_));if(!Oi(T,w=>!!w))return;let C=iy(o)&4?js(r.target.elementFlags,w=>w&2?1:w):r.target.elementFlags;return ay(T,C,r.target.readonly,r.target.labeledElementDeclarations)}let h=Fp(1040,void 0);return h.source=r,h.mappedType=o,h.constraintType=_,h}function D7t(r){let o=as(r);return o.type||(o.type=Rre(r.links.propertyType,r.links.mappedType,r.links.constraintType)||Mt),o.type}function I7t(r,o,_){let h=Qf(_.type,yg(o)),T=X0(o),C=l2e(h);return iv([C],r,T),eHe(C)||Mt}function Rre(r,o,_){let h=r.id+","+o.id+","+_.id;if(Oc.has(h))return Oc.get(h)||Mt;jE.push(r),Jy.push(o);let T=BE;Xk(r,jE,jE.length,2)&&(BE|=1),Xk(o,Jy,Jy.length,2)&&(BE|=2);let C;return BE!==3&&(C=I7t(r,o,_)),jE.pop(),Jy.pop(),BE=T,Oc.set(h,C),C}function*f2e(r,o,_,h){let T=Ea(o);for(let C of T)if(!Jze(C)&&(_||!(C.flags&16777216||ul(C)&48))){let w=ho(r,C.escapedName);if(!w)yield C;else if(h){let V=yn(C);if(V.flags&109472){let H=yn(w);H.flags&1||Z_(H)===Z_(V)||(yield C)}}}}function p2e(r,o,_,h){return Ph(f2e(r,o,_,h))}function w7t(r,o){return!(o.target.combinedFlags&8)&&o.target.minLength>r.target.minLength||!o.target.hasRestElement&&(r.target.hasRestElement||o.target.fixedLengthWk(C,T),r)===r&&Mre(r,o)}return!1}function nHe(r,o){if(o.flags&2097152)return Oi(o.types,_=>_===D_||nHe(r,_));if(o.flags&4||yo(r,o))return!0;if(r.flags&128){let _=r.value;return!!(o.flags&8&&rHe(_,!1)||o.flags&64&&yj(_,!1)||o.flags&98816&&_===o.intrinsicName||o.flags&268435456&&Mre(jf(_),o)||o.flags&134217728&&Lre(r,o))}if(r.flags&134217728){let _=r.texts;return _.length===2&&_[0]===""&&_[1]===""&&yo(r.types[0],o)}return!1}function iHe(r,o){return r.flags&128?sHe([r.value],ve,o):r.flags&134217728?Ub(r.texts,o.texts)?kr(r.types,(_,h)=>yo(sy(_),sy(o.types[h]))?_:L7t(_)):sHe(r.texts,r.types,o):void 0}function Lre(r,o){let _=iHe(r,o);return!!_&&Oi(_,(h,T)=>nHe(h,o.types[T]))}function L7t(r){return r.flags&402653317?r:Y2(["",""],[r])}function sHe(r,o,_){let h=r.length-1,T=r[0],C=r[h],w=_.texts,V=w.length-1,H=w[0],X=w[V];if(h===0&&T.length0){let rn=Ne,Bn=dt;for(;Bn=Ct(rn).indexOf(Er,Bn),!(Bn>=0);){if(rn++,rn===r.length)return;Bn=0}Lt(rn,Bn),dt+=Er.length}else if(dt!xs(wn,xa)):zr,ss?ti(sn,xa=>!xs(ss,xa)):sn]}function rn(zr,sn,Hi){let wn=zr.length!!Gr(ss));if(!wn||sn&&wn!==sn)return;sn=wn}return sn}function $n(zr,sn,Hi){let wn=0;if(Hi&1048576){let ss,xa=zr.flags&1048576?zr.types:[zr],ya=new Array(xa.length),v_=!1;for(let vo of sn)if(Gr(vo))ss=vo,wn++;else for(let M_=0;M_ya[Mc]?void 0:M_);if(vo.length){Ne(gi(vo),ss);return}}}else for(let ss of sn)Gr(ss)?wn++:Ne(zr,ss);if(Hi&2097152?wn===1:wn>0)for(let ss of sn)Gr(ss)&&dt(zr,ss,1)}function oi(zr,sn,Hi){if(Hi.flags&1048576||Hi.flags&2097152){let wn=!1;for(let ss of Hi.types)wn=oi(zr,sn,ss)||wn;return wn}if(Hi.flags&4194304){let wn=Gr(Hi.type);if(wn&&!wn.isFixed&&!tHe(zr)){let ss=ZGe(zr,sn,Hi);ss&&dt(ss,wn.typeParameter,Qn(zr)&262144?16:8)}return!0}if(Hi.flags&262144){dt(ph(zr,zr.pattern?2:0),Hi,32);let wn=W2(Hi);if(wn&&oi(zr,sn,wn))return!0;let ss=kr(Ea(zr),yn),xa=kr(Q_(zr),ya=>ya!==xr?ya.type:Pr);return Ne(gi(ds(ss,xa)),X0(sn)),!0}return!1}function ai(zr,sn){if(zr.flags&16777216)Ne(zr.checkType,sn.checkType),Ne(zr.extendsType,sn.extendsType),Ne(gb(zr),gb(sn)),Ne(hb(zr),hb(sn));else{let Hi=[gb(sn),hb(sn)];Lt(zr,Hi,sn.flags,T?64:0)}}function Co(zr,sn){let Hi=iHe(zr,sn),wn=sn.types;if(Hi||Oi(sn.texts,ss=>ss.length===0))for(let ss=0;ssLc|hd.flags,0);if(!(Mc&4)){let Lc=xa.value;Mc&296&&!rHe(Lc,!0)&&(Mc&=-297),Mc&2112&&!yj(Lc,!0)&&(Mc&=-2113);let hd=F_(M_,(gl,jl)=>jl.flags&Mc?gl.flags&4?gl:jl.flags&4?xa:gl.flags&134217728?gl:jl.flags&134217728&&Lre(xa,jl)?xa:gl.flags&268435456?gl:jl.flags&268435456&&Lc===eGe(jl.symbol,Lc)?xa:gl.flags&128?gl:jl.flags&128&&jl.value===Lc?jl:gl.flags&8?gl:jl.flags&8?zm(+Lc):gl.flags&32?gl:jl.flags&32?zm(+Lc):gl.flags&256?gl:jl.flags&256&&jl.value===+Lc?jl:gl.flags&64?gl:jl.flags&64?M7t(Lc):gl.flags&2048?gl:jl.flags&2048&&uE(jl.value)===Lc?jl:gl.flags&16?gl:jl.flags&16?Lc==="true"?$t:Lc==="false"?Ot:Wr:gl.flags&512?gl:jl.flags&512&&jl.intrinsicName===Lc?jl:gl.flags&32768?gl:jl.flags&32768&&jl.intrinsicName===Lc?jl:gl.flags&65536?gl:jl.flags&65536&&jl.intrinsicName===Lc?jl:gl:gl,Pr);if(!(hd.flags&131072)){Ne(hd,ya);continue}}}}Ne(xa,ya)}}function Xs(zr,sn){Ne(md(zr),md(sn)),Ne(X0(zr),X0(sn));let Hi=_1(zr),wn=_1(sn);Hi&&wn&&Ne(Hi,wn)}function oa(zr,sn){var Hi,wn;if(Qn(zr)&4&&Qn(sn)&4&&(zr.target===sn.target||qd(zr)&&qd(sn))){rn(hc(zr),hc(sn),Kxe(zr.target));return}if(Xf(zr)&&Xf(sn)&&Xs(zr,sn),Qn(sn)&32&&!sn.declaration.nameType){let ss=md(sn);if(oi(zr,sn,ss))return}if(!O7t(zr,sn)){if(vb(zr)){if(Yo(sn)){let ss=p1(zr),xa=p1(sn),ya=hc(sn),v_=sn.target.elementFlags;if(Yo(zr)&&f7t(zr,sn)){for(let Mc=0;Mc0){let xa=Ks(sn,Hi),ya=xa.length;for(let v_=0;v_1){let o=ti(r,m2e);if(o.length){let _=gi(o,2);return ds(ti(r,h=>!m2e(h)),[_])}}return r}function J7t(r){return r.priority&416?wo(r.contraCandidates):o7t(r.contraCandidates)}function q7t(r,o){let _=V7t(r.candidates),h=U7t(r.typeParameter)||G2(r.typeParameter),T=!h&&r.topLevel&&(r.isFixed||!k7t(o,r.typeParameter)),C=h?js(_,Z_):T?js(_,Sb):_,w=r.priority&416?gi(C,2):s7t(C);return ep(w)}function g2e(r,o){let _=r.inferences[o];if(!_.inferredType){let h,T;if(r.signature){let w=_.candidates?q7t(_,r.signature):void 0,V=_.contraCandidates?J7t(_):void 0;if(w||V){let H=w&&(!V||!(w.flags&131072)&&Dt(_.contraCandidates,X=>OS(w,X))&&Oi(r.inferences,X=>X!==_&&hf(X.typeParameter)!==_.typeParameter||Oi(X.candidates,_e=>OS(_e,w))));h=H?w:V,T=H?V:w}else if(r.flags&1)h=Rn;else{let H=H2(_.typeParameter);H&&(h=cs(H,yLt(hLt(r,o),r.nonFixingMapper)))}}else h=eHe(_);_.inferredType=h||h2e(!!(r.flags&2));let C=hf(_.typeParameter);if(C){let w=cs(C,r.nonFixingMapper);(!h||!r.compareTypes(h,Ep(w,h)))&&(_.inferredType=T&&r.compareTypes(T,Ep(w,T))?T:w)}}return _.inferredType}function h2e(r){return r?Me:Mt}function y2e(r){let o=[];for(let _=0;_Xu(o)||sm(o)||_f(o)))}function $J(r,o,_,h){switch(r.kind){case 80:if(!oE(r)){let w=yf(r);return w!==Tt?`${h?Sa(h):"-1"}|${Bu(o)}|${Bu(_)}|${Po(w)}`:void 0}case 110:return`0|${h?Sa(h):"-1"}|${Bu(o)}|${Bu(_)}`;case 235:case 217:return $J(r.expression,o,_,h);case 166:let T=$J(r.left,o,_,h);return T&&`${T}.${r.right.escapedText}`;case 211:case 212:let C=rC(r);if(C!==void 0){let w=$J(r.expression,o,_,h);return w&&`${w}.${C}`}if(cc(r)&&$e(r.argumentExpression)){let w=yf(r.argumentExpression);if(Qk(w)||XL(w)&&!nq(w)){let V=$J(r.expression,o,_,h);return V&&`${V}.@${Po(w)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Sa(r)}#${Bu(o)}`}}function Uu(r,o){switch(o.kind){case 217:case 235:return Uu(r,o.expression);case 226:return Tu(o)&&Uu(r,o.left)||Dn(o)&&o.operatorToken.kind===28&&Uu(r,o.right)}switch(r.kind){case 236:return o.kind===236&&r.keywordToken===o.keywordToken&&r.name.escapedText===o.name.escapedText;case 80:case 81:return oE(r)?o.kind===110:o.kind===80&&yf(r)===yf(o)||(Ci(o)||Zo(o))&&Lp(yf(r))===Un(o);case 110:return o.kind===110;case 108:return o.kind===108;case 235:case 217:return Uu(r.expression,o);case 211:case 212:let _=rC(r);if(_!==void 0){let h=ac(o)?rC(o):void 0;if(h!==void 0)return h===_&&Uu(r.expression,o.expression)}if(cc(r)&&cc(o)&&$e(r.argumentExpression)&&$e(o.argumentExpression)){let h=yf(r.argumentExpression);if(h===yf(o.argumentExpression)&&(Qk(h)||XL(h)&&!nq(h)))return Uu(r.expression,o.expression)}break;case 166:return ac(o)&&r.right.escapedText===rC(o)&&Uu(r.left,o.expression);case 226:return Dn(r)&&r.operatorToken.kind===28&&Uu(r.right,o)}return!1}function rC(r){if(Hn(r))return r.name.escapedText;if(cc(r))return z7t(r);if(Zo(r)){let o=Fr(r);return o?Uc(o):void 0}if(is(r))return""+r.parent.parameters.indexOf(r)}function S2e(r){return r.flags&8192?r.escapedName:r.flags&384?Uc(""+r.value):void 0}function z7t(r){return Wp(r.argumentExpression)?Uc(r.argumentExpression.text):nc(r.argumentExpression)?W7t(r.argumentExpression):void 0}function W7t(r){let o=nl(r,111551,!0);if(!o||!(Qk(o)||o.flags&8))return;let _=o.valueDeclaration;if(_===void 0)return;let h=dn(_);if(h){let T=S2e(h);if(T!==void 0)return T}if(Hx(_)&&Fm(_,r)){let T=vR(_);if(T){let C=$s(_.parent)?Qi(_):n_(T);return C&&S2e(C)}if(nS(_))return rA(_.name)}}function aHe(r,o){for(;ac(r);)if(r=r.expression,Uu(r,o))return!0;return!1}function nC(r,o){for(;b_(r);)if(r=r.expression,Uu(r,o))return!0;return!1}function s4(r,o){if(r&&r.flags&1048576){let _=aWe(r,o);if(_&&ul(_)&2)return _.links.isDiscriminantProperty===void 0&&(_.links.isDiscriminantProperty=(_.links.checkFlags&192)===192&&!Gk(yn(_))),!!_.links.isDiscriminantProperty}return!1}function cHe(r,o){let _;for(let h of r)if(s4(o,h.escapedName)){if(_){_.push(h);continue}_=[h]}return _}function G7t(r,o){let _=new Map,h=0;for(let T of r)if(T.flags&61603840){let C=il(T,o);if(C){if(!qL(C))return;let w=!1;sC(C,V=>{let H=Bu(Z_(V)),X=_.get(H);X?X!==Mt&&(_.set(H,Mt),w=!0):_.set(H,T)}),w||h++}}return h>=10&&h*2>=r.length?_:void 0}function YJ(r){let o=r.types;if(!(o.length<10||Qn(r)&32768||yy(o,_=>!!(_.flags&59506688))<10)){if(r.keyPropertyName===void 0){let _=Et(o,T=>T.flags&59506688?Et(Ea(T),C=>Tg(yn(C))?C.escapedName:void 0):void 0),h=_&&G7t(o,_);r.keyPropertyName=h?_:"",r.constituentMap=h}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function KJ(r,o){var _;let h=(_=r.constituentMap)==null?void 0:_.get(Bu(Z_(o)));return h!==Mt?h:void 0}function lHe(r,o){let _=YJ(r),h=_&&il(o,_);return h&&KJ(r,h)}function H7t(r,o){let _=YJ(r),h=_&&jn(o.properties,C=>C.symbol&&C.kind===303&&C.symbol.escapedName===_&&oq(C.initializer)),T=h&&kq(h.initializer);return T&&KJ(r,T)}function uHe(r,o){return Uu(r,o)||aHe(r,o)}function _He(r,o){if(r.arguments){for(let _ of r.arguments)if(uHe(o,_)||nC(_,o))return!0}return!!(r.expression.kind===211&&uHe(o,r.expression.expression))}function T2e(r){return r.id<=0&&(r.id=zRe,zRe++),r.id}function $7t(r,o){if(!(r.flags&1048576))return yo(r,o);for(let _ of r.types)if(yo(_,o))return!0;return!1}function Y7t(r,o){if(r===o)return r;if(o.flags&131072)return o;let _=`A${Bu(r)},${Bu(o)}`;return GT(_)??Qv(_,K7t(r,o))}function K7t(r,o){let _=Fl(r,T=>$7t(o,T)),h=o.flags&512&&ix(o)?Dc(_,$k):_;return yo(o,h)?h:r}function b2e(r){let o=vg(r);return!!(o.callSignatures.length||o.constructSignatures.length||o.members.get("bind")&&OS(r,Gl))}function YD(r,o){return E2e(r,o)&o}function bg(r,o){return YD(r,o)!==0}function E2e(r,o){r.flags&467927040&&(r=t_(r)||Mt);let _=r.flags;if(_&268435460)return ce?16317953:16776705;if(_&134217856){let h=_&128&&r.value==="";return ce?h?12123649:7929345:h?12582401:16776705}if(_&40)return ce?16317698:16776450;if(_&256){let h=r.value===0;return ce?h?12123394:7929090:h?12582146:16776450}if(_&64)return ce?16317188:16775940;if(_&2048){let h=GGe(r);return ce?h?12122884:7928580:h?12581636:16775940}return _&16?ce?16316168:16774920:_&528?ce?r===Ot||r===Ht?12121864:7927560:r===Ot||r===Ht?12580616:16774920:_&524288?o&(ce?83427327:83886079)?Qn(r)&16&&ev(r)?ce?83427327:83886079:b2e(r)?ce?7880640:16728e3:ce?7888800:16736160:0:_&16384?9830144:_&32768?26607360:_&65536?42917664:_&12288?ce?7925520:16772880:_&67108864?ce?7888800:16736160:_&131072?0:_&1048576?F_(r.types,(h,T)=>h|E2e(T,o),0):_&2097152?X7t(r,o):83886079}function X7t(r,o){let _=ml(r,402784252),h=0,T=134217727;for(let C of r.types)if(!(_&&C.flags&524288)){let w=E2e(C,o);h|=w,T&=w}return h&8256|T&134209471}function ym(r,o){return Fl(r,_=>bg(_,o))}function iC(r,o){let _=pHe(ym(ce&&r.flags&2?Zu:r,o));if(ce)switch(o){case 524288:return fHe(_,65536,131072,33554432,Xe);case 1048576:return fHe(_,131072,65536,16777216,sr);case 2097152:case 4194304:return Dc(_,h=>bg(h,262144)?m7t(h):h)}return _}function fHe(r,o,_,h,T){let C=YD(r,50528256);if(!(C&o))return r;let w=gi([Wi,T]);return Dc(r,V=>bg(V,o)?wo([V,!(C&h)&&bg(V,_)?w:Wi]):V)}function pHe(r){return r===Zu?Mt:r}function x2e(r,o){return o?gi([Le(r),n_(o)]):r}function dHe(r,o){var _;let h=m1(o);if(!rm(h))return Oe;let T=nm(h);return il(r,T)||YL((_=Jk(r,T))==null?void 0:_.type)||Oe}function mHe(r,o){return tp(r,n4)&&VGe(r,o)||YL(v1(65,r,sr,void 0))||Oe}function YL(r){return r&&(q.noUncheckedIndexedAccess?gi([r,Ye]):r)}function gHe(r){return y_(v1(65,r,sr,void 0)||Oe)}function Q7t(r){return r.parent.kind===209&&C2e(r.parent)||r.parent.kind===303&&C2e(r.parent.parent)?x2e(XJ(r),r.right):n_(r.right)}function C2e(r){return r.parent.kind===226&&r.parent.left===r||r.parent.kind===250&&r.parent.initializer===r}function Z7t(r,o){return mHe(XJ(r),r.elements.indexOf(o))}function eFt(r){return gHe(XJ(r.parent))}function hHe(r){return dHe(XJ(r.parent),r.name)}function tFt(r){return x2e(hHe(r),r.objectAssignmentInitializer)}function XJ(r){let{parent:o}=r;switch(o.kind){case 249:return Ue;case 250:return Oq(o)||Oe;case 226:return Q7t(o);case 220:return sr;case 209:return Z7t(o,r);case 230:return eFt(o);case 303:return hHe(o);case 304:return tFt(o)}return Oe}function rFt(r){let o=r.parent,_=vHe(o.parent),h=o.kind===206?dHe(_,r.propertyName||r.name):r.dotDotDotToken?gHe(_):mHe(_,o.elements.indexOf(r));return x2e(h,r.initializer)}function yHe(r){return Wn(r).resolvedType||n_(r)}function nFt(r){return r.initializer?yHe(r.initializer):r.parent.parent.kind===249?Ue:r.parent.parent.kind===250&&Oq(r.parent.parent)||Oe}function vHe(r){return r.kind===260?nFt(r):rFt(r)}function iFt(r){return r.kind===260&&r.initializer&&za(r.initializer)||r.kind!==208&&r.parent.kind===226&&za(r.parent.right)}function ax(r){switch(r.kind){case 217:return ax(r.expression);case 226:switch(r.operatorToken.kind){case 64:case 76:case 77:case 78:return ax(r.left);case 28:return ax(r.right)}}return r}function SHe(r){let{parent:o}=r;return o.kind===217||o.kind===226&&o.operatorToken.kind===64&&o.left===r||o.kind===226&&o.operatorToken.kind===28&&o.right===r?SHe(o):r}function sFt(r){return r.kind===296?Z_(n_(r.expression)):Pr}function Fre(r){let o=Wn(r);if(!o.switchTypes){o.switchTypes=[];for(let _ of r.caseBlock.clauses)o.switchTypes.push(sFt(_))}return o.switchTypes}function THe(r){if(Dt(r.caseBlock.clauses,_=>_.kind===296&&!Ia(_.expression)))return;let o=[];for(let _ of r.caseBlock.clauses){let h=_.kind===296?_.expression.text:void 0;o.push(h&&!xs(o,h)?h:void 0)}return o}function oFt(r,o){return r.flags&1048576?!Et(r.types,_=>!xs(o,_)):xs(o,r)}function o4(r,o){return!!(r===o||r.flags&131072||o.flags&1048576&&aFt(r,o))}function aFt(r,o){if(r.flags&1048576){for(let _ of r.types)if(!d1(o.types,_))return!1;return!0}return r.flags&1056&&Bk(r)===o?!0:d1(o.types,r)}function sC(r,o){return r.flags&1048576?Et(r.types,o):o(r)}function vm(r,o){return r.flags&1048576?Dt(r.types,o):o(r)}function tp(r,o){return r.flags&1048576?Oi(r.types,o):o(r)}function cFt(r,o){return r.flags&3145728?Oi(r.types,o):o(r)}function Fl(r,o){if(r.flags&1048576){let _=r.types,h=ti(_,o);if(h===_)return r;let T=r.origin,C;if(T&&T.flags&1048576){let w=T.types,V=ti(w,H=>!!(H.flags&1048576)||o(H));if(w.length-V.length===_.length-h.length){if(V.length===1)return V[0];C=xxe(1048576,V)}}return Axe(h,r.objectFlags&16809984,void 0,void 0,C)}return r.flags&131072||o(r)?r:Pr}function jre(r,o){return Fl(r,_=>_!==o)}function lFt(r){return r.flags&1048576?r.types.length:1}function Dc(r,o,_){if(r.flags&131072)return r;if(!(r.flags&1048576))return o(r);let h=r.origin,T=h&&h.flags&1048576?h.types:r.types,C,w=!1;for(let V of T){let H=V.flags&1048576?Dc(V,o,_):o(V);w||(w=V!==H),H&&(C?C.push(H):C=[H])}return w?C&&gi(C,_?0:1):r}function bHe(r,o,_,h){return r.flags&1048576&&_?gi(kr(r.types,o),1,_,h):Dc(r,o)}function a4(r,o){return Fl(r,_=>(_.flags&o)!==0)}function EHe(r,o){return ml(r,134217804)&&ml(o,402655616)?Dc(r,_=>_.flags&4?a4(o,402653316):K2(_)&&!ml(o,402653188)?a4(o,128):_.flags&8?a4(o,264):_.flags&64?a4(o,2112):_):r}function KD(r){return r.flags===0}function oC(r){return r.flags===0?r.type:r}function XD(r,o){return o?{flags:0,type:r.flags&131072?Rn:r}:r}function uFt(r){let o=Fp(256);return o.elementType=r,o}function A2e(r){return Sr[r.id]||(Sr[r.id]=uFt(r))}function xHe(r,o){let _=GL(tv(kq(o)));return o4(_,r.elementType)?r:A2e(gi([r.elementType,_]))}function _Ft(r){return r.flags&131072?Ba:y_(r.flags&1048576?gi(r.types,2):r)}function fFt(r){return r.finalArrayType||(r.finalArrayType=_Ft(r.elementType))}function QJ(r){return Qn(r)&256?fFt(r):r}function pFt(r){return Qn(r)&256?r.elementType:Pr}function dFt(r){let o=!1;for(let _ of r)if(!(_.flags&131072)){if(!(Qn(_)&256))return!1;o=!0}return o}function CHe(r){let o=SHe(r),_=o.parent,h=Hn(_)&&(_.name.escapedText==="length"||_.parent.kind===213&&$e(_.name)&&WH(_.name)),T=_.kind===212&&_.expression===o&&_.parent.kind===226&&_.parent.operatorToken.kind===64&&_.parent.left===_&&!Pv(_.parent)&&r_(n_(_.argumentExpression),296);return h||T}function mFt(r){return(Ci(r)||Ds(r)||If(r)||is(r))&&!!(Vl(r)||vn(r)&&bv(r)&&r.initializer&&K1(r.initializer)&&_p(r.initializer))}function Bre(r,o){if(r=dl(r),r.flags&8752)return yn(r);if(r.flags&7){if(ul(r)&262144){let h=r.links.syntheticOrigin;if(h&&Bre(h))return yn(r)}let _=r.valueDeclaration;if(_){if(mFt(_))return yn(r);if(Ci(_)&&_.parent.parent.kind===250){let h=_.parent.parent,T=ZJ(h.expression,void 0);if(T){let C=h.awaitModifier?15:13;return v1(C,T,sr,void 0)}}o&&lo(o,mn(_,v._0_needs_an_explicit_type_annotation,ns(r)))}}}function ZJ(r,o){if(!(r.flags&67108864))switch(r.kind){case 80:let _=Lp(yf(r));return Bre(_,o);case 110:return LFt(r);case 108:return Wre(r);case 211:{let h=ZJ(r.expression,o);if(h){let T=r.name,C;if(es(T)){if(!h.symbol)return;C=ho(h,MR(h.symbol,T.escapedText))}else C=ho(h,T.escapedText);return C&&Bre(C,o)}return}case 217:return ZJ(r.expression,o)}}function eq(r){let o=Wn(r),_=o.effectsSignature;if(_===void 0){let h;if(Dn(r)){let w=ZD(r.right);h=CCe(w)}else r.parent.kind===244?h=ZJ(r.expression,void 0):r.expression.kind!==108&&(b_(r)?h=gh(zL(ys(r.expression),r.expression),r.expression):h=ZD(r.expression));let T=Ks(h&&X_(h)||Mt,0),C=T.length===1&&!T[0].typeParameters?T[0]:Dt(T,AHe)?tI(r):void 0;_=o.effectsSignature=C&&AHe(C)?C:oe}return _===oe?void 0:_}function AHe(r){return!!(Ud(r)||r.declaration&&(JD(r.declaration)||Mt).flags&131072)}function gFt(r,o){if(r.kind===1||r.kind===3)return o.arguments[r.parameterIndex];let _=ba(o.expression);return ac(_)?ba(_.expression):void 0}function hFt(r){let o=Dr(r,YG),_=Jr(r),h=jh(_,o.statements.pos);da.add(bu(_,h.start,h.length,v.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function tq(r){let o=Ure(r,!1);return R0=r,pS=o,o}function rq(r){let o=ba(r,!0);return o.kind===97||o.kind===226&&(o.operatorToken.kind===56&&(rq(o.left)||rq(o.right))||o.operatorToken.kind===57&&rq(o.left)&&rq(o.right))}function Ure(r,o){for(;;){if(r===R0)return pS;let _=r.flags;if(_&4096){if(!o){let h=T2e(r),T=gD[h];return T!==void 0?T:gD[h]=Ure(r,!0)}o=!1}if(_&368)r=r.antecedent;else if(_&512){let h=eq(r.node);if(h){let T=Ud(h);if(T&&T.kind===3&&!T.type){let C=r.node.arguments[T.parameterIndex];if(C&&rq(C))return!1}if(Na(h).flags&131072)return!1}r=r.antecedent}else{if(_&4)return Dt(r.antecedent,h=>Ure(h,!1));if(_&8){let h=r.antecedent;if(h===void 0||h.length===0)return!1;r=h[0]}else if(_&128){let h=r.node;if(h.clauseStart===h.clauseEnd&&pYe(h.switchStatement))return!1;r=r.antecedent}else if(_&1024){R0=void 0;let h=r.node.target,T=h.antecedent;h.antecedent=r.node.antecedents;let C=Ure(r.antecedent,!1);return h.antecedent=T,C}else return!(_&1)}}}function Vre(r,o){for(;;){let _=r.flags;if(_&4096){if(!o){let h=T2e(r),T=bk[h];return T!==void 0?T:bk[h]=Vre(r,!0)}o=!1}if(_&496)r=r.antecedent;else if(_&512){if(r.node.expression.kind===108)return!0;r=r.antecedent}else{if(_&4)return Oi(r.antecedent,h=>Vre(h,!1));if(_&8)r=r.antecedent[0];else if(_&1024){let h=r.node.target,T=h.antecedent;h.antecedent=r.node.antecedents;let C=Vre(r.antecedent,!1);return h.antecedent=T,C}else return!!(_&1)}}}function k2e(r){switch(r.kind){case 110:return!0;case 80:if(!oE(r)){let _=yf(r);return Qk(_)||XL(_)&&!nq(_)||!!_.valueDeclaration&&ic(_.valueDeclaration)}break;case 211:case 212:return k2e(r.expression)&&xg(Wn(r).resolvedSymbol||Tt);case 206:case 207:let o=jg(r.parent);return is(o)||Mpe(o)?!P2e(o):Ci(o)&&g7(o)}return!1}function sv(r,o,_=o,h,T=(C=>(C=ci(r,PR))==null?void 0:C.flowNode)()){let C,w=!1,V=0;if(Rm)return Oe;if(!T)return o;$v++;let H=H_,X=oC(Ne(T));H_=H;let _e=Qn(X)&256&&CHe(r)?Ba:QJ(X);if(_e===us||r.parent&&r.parent.kind===235&&!(_e.flags&131072)&&ym(_e,2097152).flags&131072)return o;return _e;function Ie(){return w?C:(w=!0,C=$J(r,o,_,h))}function Ne(Wt){var Ir;if(V===2e3)return(Ir=kn)==null||Ir.instant(kn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Wt.id}),Rm=!0,hFt(r),Oe;V++;let Hr;for(;;){let ln=Wt.flags;if(ln&4096){for(let Si=H;Si=0&&Hr.parameterIndex!(Si.flags&163840)):Ir.kind===221&&nC(Ir.expression,r)&&(ln=xa(ln,Wt.node,Si=>!(Si.flags&131072||Si.flags&128&&Si.value==="undefined"))));let Vn=oi(Ir,ln);Vn&&(ln=Xs(ln,Vn,Wt.node))}return XD(ln,KD(Hr))}function wr(Wt){let Ir=[],Hr=!1,ln=!1,Vn;for(let Si of Wt.antecedent){if(!Vn&&Si.flags&128&&Si.node.clauseStart===Si.node.clauseEnd){Vn=Si;continue}let No=Ne(Si),Mo=oC(No);if(Mo===o&&o===_)return Mo;cl(Ir,Mo),o4(Mo,_)||(Hr=!0),KD(No)&&(ln=!0)}if(Vn){let Si=Ne(Vn),No=oC(Si);if(!(No.flags&131072)&&!xs(Ir,No)&&!pYe(Vn.node.switchStatement)){if(No===o&&o===_)return No;Ir.push(No),o4(No,_)||(Hr=!0),KD(Si)&&(ln=!0)}}return XD(en(Ir,Hr?2:1),ln)}function Gr(Wt){let Ir=T2e(Wt),Hr=Cu[Ir]||(Cu[Ir]=new Map),ln=Ie();if(!ln)return o;let Vn=Hr.get(ln);if(Vn)return Vn;for(let Ee=qa;Ee{let Ee=G6(je,ln)||Mt;return!(Ee.flags&131072)&&!(Mo.flags&131072)&&BJ(Mo,Ee)})}function Co(Wt,Ir,Hr,ln,Vn){if((Hr===37||Hr===38)&&Wt.flags&1048576){let Si=YJ(Wt);if(Si&&Si===rC(Ir)){let No=KJ(Wt,n_(ln));if(No)return Hr===(Vn?37:38)?No:Tg(il(No,Si)||Mt)?jre(Wt,No):Wt}}return ai(Wt,Ir,Si=>Hi(Si,Hr,ln,Vn))}function Xs(Wt,Ir,Hr){if(Hr.clauseStartKJ(Wt,Si)||Mt));if(Vn!==Mt)return Vn}return ai(Wt,Ir,ln=>ya(ln,Hr))}function oa(Wt,Ir,Hr){if(Uu(r,Ir))return iC(Wt,Hr?4194304:8388608);ce&&Hr&&nC(Ir,r)&&(Wt=iC(Wt,2097152));let ln=oi(Ir,Wt);return ln?ai(Wt,ln,Vn=>ym(Vn,Hr?4194304:8388608)):Wt}function Rs(Wt,Ir,Hr){let ln=ho(Wt,Ir);return ln?!!(ln.flags&16777216||ul(ln)&48)||Hr:!!Jk(Wt,Ir)||!Hr}function Rc(Wt,Ir,Hr){let ln=nm(Ir);if(vm(Wt,Si=>Rs(Si,ln,!0)))return Fl(Wt,Si=>Rs(Si,ln,Hr));if(Hr){let Si=S8t();if(Si)return wo([Wt,zD(Si,[Ir,Mt])])}return Wt}function i_(Wt,Ir,Hr,ln,Vn){return Vn=Vn!==(Hr.kind===112)!=(ln!==38&&ln!==36),S_(Wt,Ir,Vn)}function sl(Wt,Ir,Hr){switch(Ir.operatorToken.kind){case 64:case 76:case 77:case 78:return oa(S_(Wt,Ir.right,Hr),Ir.left,Hr);case 35:case 36:case 37:case 38:let ln=Ir.operatorToken.kind,Vn=ax(Ir.left),Si=ax(Ir.right);if(Vn.kind===221&&Ia(Si))return wn(Wt,Vn,ln,Si,Hr);if(Si.kind===221&&Ia(Vn))return wn(Wt,Si,ln,Vn,Hr);if(Uu(r,Vn))return Hi(Wt,ln,Si,Hr);if(Uu(r,Si))return Hi(Wt,ln,Vn,Hr);ce&&(nC(Vn,r)?Wt=sn(Wt,ln,Si,Hr):nC(Si,r)&&(Wt=sn(Wt,ln,Vn,Hr)));let No=oi(Vn,Wt);if(No)return Co(Wt,No,ln,Si,Hr);let Mo=oi(Si,Wt);if(Mo)return Co(Wt,Mo,ln,Vn,Hr);if(Lc(Vn))return hd(Wt,ln,Si,Hr);if(Lc(Si))return hd(Wt,ln,Vn,Hr);if(vw(Si)&&!ac(Vn))return i_(Wt,Vn,Si,ln,Hr);if(vw(Vn)&&!ac(Si))return i_(Wt,Si,Vn,ln,Hr);break;case 104:return gl(Wt,Ir,Hr);case 103:if(es(Ir.left))return zr(Wt,Ir,Hr);let je=ax(Ir.right);if(WL(Wt)&&ac(r)&&Uu(r.expression,je)){let Ee=n_(Ir.left);if(rm(Ee)&&rC(r)===nm(Ee))return ym(Wt,Hr?524288:65536)}if(Uu(r,je)){let Ee=n_(Ir.left);if(rm(Ee))return Rc(Wt,Ee,Hr)}break;case 28:return S_(Wt,Ir.right,Hr);case 56:return Hr?S_(S_(Wt,Ir.left,!0),Ir.right,!0):gi([S_(Wt,Ir.left,!1),S_(Wt,Ir.right,!1)]);case 57:return Hr?gi([S_(Wt,Ir.left,!0),S_(Wt,Ir.right,!0)]):S_(S_(Wt,Ir.left,!1),Ir.right,!1)}return Wt}function zr(Wt,Ir,Hr){let ln=ax(Ir.right);if(!Uu(r,ln))return Wt;M.assertNode(Ir.left,es);let Vn=rne(Ir.left);if(Vn===void 0)return Wt;let Si=Vn.parent,No=Jl(M.checkDefined(Vn.valueDeclaration,"should always have a declaration"))?yn(Si):oc(Si);return av(Wt,No,Hr,!0)}function sn(Wt,Ir,Hr,ln){let Vn=Ir===35||Ir===37,Si=Ir===35||Ir===36?98304:32768,No=n_(Hr);return Vn!==ln&&tp(No,je=>!!(je.flags&Si))||Vn===ln&&tp(No,je=>!(je.flags&(3|Si)))?iC(Wt,2097152):Wt}function Hi(Wt,Ir,Hr,ln){if(Wt.flags&1)return Wt;(Ir===36||Ir===38)&&(ln=!ln);let Vn=n_(Hr),Si=Ir===35||Ir===36;if(Vn.flags&98304){if(!ce)return Wt;let No=Si?ln?262144:2097152:Vn.flags&65536?ln?131072:1048576:ln?65536:524288;return iC(Wt,No)}if(ln){if(!Si&&(Wt.flags&2||vm(Wt,cy))){if(Vn.flags&469893116||cy(Vn))return Vn;if(Vn.flags&524288)return Xn}let No=Fl(Wt,Mo=>BJ(Mo,Vn)||Si&&g7t(Mo,Vn));return EHe(No,Vn)}return Tg(Vn)?Fl(Wt,No=>!(JGe(No)&&BJ(No,Vn))):Wt}function wn(Wt,Ir,Hr,ln,Vn){(Hr===36||Hr===38)&&(Vn=!Vn);let Si=ax(Ir.expression);if(!Uu(r,Si)){ce&&nC(Si,r)&&Vn===(ln.text!=="undefined")&&(Wt=iC(Wt,2097152));let No=oi(Si,Wt);return No?ai(Wt,No,Mo=>ss(Mo,ln,Vn)):Wt}return ss(Wt,ln,Vn)}function ss(Wt,Ir,Hr){return Hr?v_(Wt,Ir.text):iC(Wt,Lge.get(Ir.text)||32768)}function xa(Wt,{switchStatement:Ir,clauseStart:Hr,clauseEnd:ln},Vn){return Hr!==ln&&Oi(Fre(Ir).slice(Hr,ln),Vn)?ym(Wt,2097152):Wt}function ya(Wt,{switchStatement:Ir,clauseStart:Hr,clauseEnd:ln}){let Vn=Fre(Ir);if(!Vn.length)return Wt;let Si=Vn.slice(Hr,ln),No=Hr===ln||xs(Si,Pr);if(Wt.flags&2&&!No){let cr;for(let Or=0;OrBJ(Mo,cr)),Mo);if(!No)return je;let Ee=Fl(Wt,cr=>!(JGe(cr)&&xs(Vn,cr.flags&32768?sr:Z_(c7t(cr)))));return je.flags&131072?Ee:gi([je,Ee])}function v_(Wt,Ir){switch(Ir){case"string":return vo(Wt,Ue,1);case"number":return vo(Wt,be,2);case"bigint":return vo(Wt,Re,4);case"boolean":return vo(Wt,Wr,8);case"symbol":return vo(Wt,Yr,16);case"object":return Wt.flags&1?Wt:gi([vo(Wt,Xn,32),vo(Wt,Xe,131072)]);case"function":return Wt.flags&1?Wt:vo(Wt,Gl,64);case"undefined":return vo(Wt,sr,65536)}return vo(Wt,Xn,128)}function vo(Wt,Ir,Hr){return Dc(Wt,ln=>dh(ln,Ir,Md)?bg(ln,Hr)?ln:Pr:OS(Ir,ln)?Ir:bg(ln,Hr)?wo([ln,Ir]):Pr)}function M_(Wt,{switchStatement:Ir,clauseStart:Hr,clauseEnd:ln}){let Vn=THe(Ir);if(!Vn)return Wt;let Si=Va(Ir.caseBlock.clauses,je=>je.kind===297);if(Hr===ln||Si>=Hr&&SiYD(Ee,je)===je)}let Mo=Vn.slice(Hr,ln);return gi(kr(Mo,je=>je?v_(Wt,je):Pr))}function Mc(Wt,{switchStatement:Ir,clauseStart:Hr,clauseEnd:ln}){let Vn=Va(Ir.caseBlock.clauses,Mo=>Mo.kind===297),Si=Hr===ln||Vn>=Hr&&VnMo.kind===296?S_(Wt,Mo.expression,!0):Pr))}function Lc(Wt){return(Hn(Wt)&&In(Wt.name)==="constructor"||cc(Wt)&&Ia(Wt.argumentExpression)&&Wt.argumentExpression.text==="constructor")&&Uu(r,Wt.expression)}function hd(Wt,Ir,Hr,ln){if(ln?Ir!==35&&Ir!==37:Ir!==36&&Ir!==38)return Wt;let Vn=n_(Hr);if(!nAe(Vn)&&!AL(Vn))return Wt;let Si=ho(Vn,"prototype");if(!Si)return Wt;let No=yn(Si),Mo=Pa(No)?void 0:No;if(!Mo||Mo===rl||Mo===Gl)return Wt;if(Pa(Wt))return Mo;return Fl(Wt,Ee=>je(Ee,Mo));function je(Ee,cr){return Ee.flags&524288&&Qn(Ee)&1||cr.flags&524288&&Qn(cr)&1?Ee.symbol===cr.symbol:OS(Ee,cr)}}function gl(Wt,Ir,Hr){let ln=ax(Ir.left);if(!Uu(r,ln))return Hr&&ce&&nC(ln,r)?iC(Wt,2097152):Wt;let Vn=Ir.right,Si=n_(Vn);if(!yb(Si,rl))return Wt;let No=eq(Ir),Mo=No&&Ud(No);if(Mo&&Mo.kind===1&&Mo.parameterIndex===0)return av(Wt,Mo.type,Hr,!0);if(!yb(Si,Gl))return Wt;let je=Dc(Si,jl);return Pa(Wt)&&(je===rl||je===Gl)||!Hr&&!(je.flags&524288&&!cy(je))?Wt:av(Wt,je,Hr,!0)}function jl(Wt){let Ir=il(Wt,"prototype");if(Ir&&!Pa(Ir))return Ir;let Hr=Ks(Wt,1);return Hr.length?gi(kr(Hr,ln=>Na(wL(ln)))):Wi}function av(Wt,Ir,Hr,ln){let Vn=Wt.flags&1048576?`N${Bu(Wt)},${Bu(Ir)},${(Hr?1:0)|(ln?2:0)}`:void 0;return GT(Vn)??Qv(Vn,oI(Wt,Ir,Hr,ln))}function oI(Wt,Ir,Hr,ln){if(!Hr){if(Wt===Ir)return Pr;if(ln)return Fl(Wt,je=>!yb(je,Ir));let Mo=av(Wt,Ir,!0,!1);return Fl(Wt,je=>!o4(je,Mo))}if(Wt.flags&3||Wt===Ir)return Ir;let Vn=ln?yb:OS,Si=Wt.flags&1048576?YJ(Wt):void 0,No=Dc(Ir,Mo=>{let je=Si&&il(Mo,Si),Ee=je&&KJ(Wt,je),cr=Dc(Ee||Wt,ln?Or=>yb(Or,Mo)?Or:yb(Mo,Or)?Mo:Pr:Or=>jJ(Or,Mo)?Or:jJ(Mo,Or)?Mo:OS(Or,Mo)?Or:OS(Mo,Or)?Mo:Pr);return cr.flags&131072?Dc(Wt,Or=>ml(Or,465829888)&&Vn(Mo,t_(Or)||Mt)?wo([Or,Mo]):Pr):cr});return No.flags&131072?OS(Ir,Wt)?Ir:yo(Wt,Ir)?Wt:yo(Ir,Wt)?Ir:wo([Wt,Ir]):No}function v4(Wt,Ir,Hr){if(_He(Ir,r)){let ln=Hr||!qx(Ir)?eq(Ir):void 0,Vn=ln&&Ud(ln);if(Vn&&(Vn.kind===0||Vn.kind===1))return h7(Wt,Vn,Ir,Hr)}if(WL(Wt)&&ac(r)&&Hn(Ir.expression)){let ln=Ir.expression;if(Uu(r.expression,ax(ln.expression))&&$e(ln.name)&&ln.name.escapedText==="hasOwnProperty"&&Ir.arguments.length===1){let Vn=Ir.arguments[0];if(Ia(Vn)&&rC(r)===Uc(Vn.text))return ym(Wt,Hr?524288:65536)}}return Wt}function h7(Wt,Ir,Hr,ln){if(Ir.type&&!(Pa(Wt)&&(Ir.type===rl||Ir.type===Gl))){let Vn=gFt(Ir,Hr);if(Vn){if(Uu(r,Vn))return av(Wt,Ir.type,ln,!1);ce&&nC(Vn,r)&&(ln&&!bg(Ir.type,65536)||!ln&&tp(Ir.type,_q))&&(Wt=iC(Wt,2097152));let Si=oi(Vn,Wt);if(Si)return ai(Wt,Si,No=>av(No,Ir.type,ln,!1))}}return Wt}function S_(Wt,Ir,Hr){if(R5(Ir)||Dn(Ir.parent)&&(Ir.parent.operatorToken.kind===61||Ir.parent.operatorToken.kind===78)&&Ir.parent.left===Ir)return Uq(Wt,Ir,Hr);switch(Ir.kind){case 80:if(!Uu(r,Ir)&&I<5){let ln=yf(Ir);if(Qk(ln)){let Vn=ln.valueDeclaration;if(Vn&&Ci(Vn)&&!Vn.type&&Vn.initializer&&k2e(r)){I++;let Si=S_(Wt,Vn.initializer,Hr);return I--,Si}}}case 110:case 108:case 211:case 212:return oa(Wt,Ir,Hr);case 213:return v4(Wt,Ir,Hr);case 217:case 235:return S_(Wt,Ir.expression,Hr);case 226:return sl(Wt,Ir,Hr);case 224:if(Ir.operator===54)return S_(Wt,Ir.operand,!Hr);break}return Wt}function Uq(Wt,Ir,Hr){if(Uu(r,Ir))return iC(Wt,Hr?2097152:262144);let ln=oi(Ir,Wt);return ln?ai(Wt,ln,Vn=>ym(Vn,Hr?2097152:262144)):Wt}}function yFt(r,o){if(r=Lp(r),(o.kind===80||o.kind===81)&&(Hw(o)&&(o=o.parent),eg(o)&&(!Pv(o)||gA(o)))){let _=kre(gA(o)&&o.kind===211?tne(o,void 0,!0):n_(o));if(Lp(Wn(o).resolvedSymbol)===r)return _}return Bh(o)&&wg(o.parent)&&qm(o.parent)?Ute(o.parent.symbol):u$(o)&&gA(o.parent)?_b(r):CS(r)}function KL(r){return Dr(r.parent,o=>Us(o)&&!Qb(o)||o.kind===268||o.kind===307||o.kind===172)}function nq(r){return!kHe(r,void 0)}function kHe(r,o){let _=Dr(r.valueDeclaration,Jre);if(!_)return!1;let h=Wn(_);return h.flags&131072||(h.flags|=131072,vFt(_)||NHe(_)),!r.lastAssignmentPos||o&&r.lastAssignmentPoso.kind!==232&&PHe(o.name))}function vFt(r){return!!Dr(r.parent,o=>Jre(o)&&!!(Wn(o).flags&131072))}function Jre(r){return $a(r)||qi(r)}function NHe(r){switch(r.kind){case 80:if(Pv(r)){let _=yf(r);if(XL(_)&&_.lastAssignmentPos!==Number.MAX_VALUE){let h=Dr(r,Jre),T=Dr(_.valueDeclaration,Jre);_.lastAssignmentPos=h===T?SFt(r,_.valueDeclaration):Number.MAX_VALUE}}return;case 281:let o=r.parent.parent;if(!r.isTypeOnly&&!o.isTypeOnly&&!o.moduleSpecifier){let _=nl(r.propertyName||r.name,111551,!0,!0);_&&XL(_)&&(_.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}wi(r)||qs(r,NHe)}function SFt(r,o){let _=r.pos;for(;r&&r.pos>o.pos;){switch(r.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:_=r.end}r=r.parent}return _}function Qk(r){return r.flags&3&&(G2e(r)&6)!==0}function XL(r){let o=r.valueDeclaration&&jg(r.valueDeclaration);return!!o&&(is(o)||Ci(o)&&(TE(o.parent)||TFt(o)))}function TFt(r){return!!(r.parent.flags&1)&&!(eT(r)&32||r.parent.parent.kind===243&&Ev(r.parent.parent.parent))}function bFt(r){let o=Wn(r);if(o.parameterInitializerContainsUndefined===void 0){if(!mm(r,8))return l1(r.symbol),!0;let _=!!bg(u4(r,0),16777216);if(!ty())return l1(r.symbol),!0;o.parameterInitializerContainsUndefined??(o.parameterInitializerContainsUndefined=_)}return o.parameterInitializerContainsUndefined}function EFt(r,o){return ce&&o.kind===169&&o.initializer&&bg(r,16777216)&&!bFt(o)?ym(r,524288):r}function xFt(r,o){let _=o.parent;return _.kind===211||_.kind===166||_.kind===213&&_.expression===o||_.kind===214&&_.expression===o||_.kind===212&&_.expression===o&&!(vm(r,IHe)&&Q2(n_(_.argumentExpression)))}function DHe(r){return r.flags&2097152?Dt(r.types,DHe):!!(r.flags&465829888&&sy(r).flags&1146880)}function IHe(r){return r.flags&2097152?Dt(r.types,IHe):!!(r.flags&465829888&&!ml(sy(r),98304))}function CFt(r,o){let _=($e(r)||Hn(r)||cc(r))&&!(($g(r.parent)||u2(r.parent))&&r.parent.tagName===r)&&(o&&o&32?vf(r,8):vf(r,void 0));return _&&!Gk(_)}function N2e(r,o,_){return WD(r)&&(r=r.baseType),!(_&&_&2)&&vm(r,DHe)&&(xFt(r,o)||CFt(o,_))?Dc(r,sy):r}function wHe(r){return!!Dr(r,o=>{let _=o.parent;return _===void 0?"quit":pc(_)?_.expression===o&&nc(o):E_(_)?_.name===o||_.propertyName===o:!1})}function Zk(r,o,_,h){if(ft&&!(r.flags&33554432&&!If(r)&&!Ds(r)))switch(o){case 1:return qre(r);case 2:return OHe(r,_,h);case 3:return RHe(r);case 4:return D2e(r);case 5:return MHe(r);case 6:return LHe(r);case 7:return FHe(r);case 8:return jHe(r);case 0:{if($e(r)&&(eg(r)||m_(r.parent)||nu(r.parent)&&r.parent.moduleReference===r)&&JHe(r)){if(H3(r.parent)&&(Hn(r.parent)?r.parent.expression:r.parent.left)!==r)return;qre(r);return}if(H3(r)){let T=r;for(;H3(T);){if(Mg(T))return;T=T.parent}return OHe(r)}return pc(r)?RHe(r):p_(r)||_2(r)?D2e(r):nu(r)?iA(r)||Pne(r)?LHe(r):void 0:E_(r)?FHe(r):(($a(r)||Wg(r))&&MHe(r),!q.emitDecoratorMetadata||!bE(r)||!Gp(r)||!r.modifiers||!pR(pe,r,r.parent,r.parent.parent)?void 0:jHe(r))}default:M.assertNever(o,`Unhandled reference hint: ${o}`)}}function qre(r){let o=yf(r);o&&o!==ze&&o!==Tt&&!oE(r)&&iq(o,r)}function OHe(r,o,_){let h=Hn(r)?r.expression:r.left;if(z1(h)||!$e(h))return;let T=yf(h);if(!T||T===Tt)return;if(Ad(q)||lE(q)&&wHe(r)){iq(T,r);return}let C=_||vl(h);if(Pa(C)||C===Rn){iq(T,r);return}let w=o;if(!w&&!_){let V=Hn(r)?r.name:r.right,H=es(V)&&fq(V.escapedText,V),X=fT(r),_e=X_(X!==0||K2e(r)?ep(C):C);w=es(V)?H&&nne(_e,H)||void 0:ho(_e,V.escapedText)}w&&(d7(w)||w.flags&8&&r.parent.kind===306)||iq(T,r)}function RHe(r){if($e(r.expression)){let o=r.expression,_=Lp(nl(o,-1,!0,!0,r));_&&iq(_,o)}}function D2e(r){if(!z2e(r)){let o=da&&q.jsx===2?v.Cannot_find_name_0:void 0,_=HT(r),h=p_(r)?r.tagName:r,T;if(_2(r)&&_==="null"||(T=Ar(h,_,111551,o,!0)),T&&(T.isReferenced=-1,ft&&T.flags&2097152&&!ch(T)&&zre(T)),_2(r)){let C=Jr(r),w=Ck(C);w&&Ar(h,w,111551,o,!0)}}}function MHe(r){if(ee<2&&Rl(r)&2){let o=_p(r);AFt(o)}}function LHe(r){_i(r,32)&&BHe(r)}function FHe(r){if(!r.parent.parent.moduleSpecifier&&!r.isTypeOnly&&!r.parent.parent.isTypeOnly){let o=r.propertyName||r.name,_=Ar(o,o.escapedText,2998271,void 0,!0);if(!(_&&(_===Be||_===lt||_.declarations&&Ev(z2(_.declarations[0]))))){let h=_&&(_.flags&2097152?ku(_):_);(!h||Kf(h)&111551)&&(BHe(r),qre(r.propertyName||r.name))}return}}function jHe(r){if(q.emitDecoratorMetadata){let o=jn(r.modifiers,pu);if(!o)return;switch(hu(o,16),r.kind){case 263:let _=Py(r);if(_)for(let w of _.parameters)QD(bne(w));break;case 177:case 178:let h=r.kind===177?178:177,T=kc(Un(r),h);QD(qm(r)||T&&qm(T));break;case 174:for(let w of r.parameters)QD(bne(w));QD(_p(r));break;case 172:QD(Vl(r));break;case 169:QD(bne(r));let C=r.parent;for(let w of C.parameters)QD(bne(w));QD(_p(C));break}}}function iq(r,o){if(ft&&ah(r,111551)&&!fA(o)){let _=ku(r);Kf(r,!0)&1160127&&(Ad(q)||lE(q)&&wHe(o)||!d7(Lp(_)))&&zre(r)}}function zre(r){M.assert(ft);let o=as(r);if(!o.referenced){o.referenced=!0;let _=Sp(r);if(!_)return M.fail();if(iA(_)&&Kf(dl(r))&111551){let h=pp(_.moduleReference);qre(h)}}}function BHe(r){let o=Un(r),_=ku(o);_&&(_===Tt||Kf(o,!0)&111551&&!d7(_))&&zre(o)}function UHe(r,o){if(!r)return;let _=pp(r),h=(r.kind===80?788968:1920)|2097152,T=Ar(_,_.escapedText,h,void 0,!0);if(T&&T.flags&2097152){if(ft&&Zh(T)&&!d7(ku(T))&&!ch(T))zre(T);else if(o&&Ad(q)&&J_(q)>=5&&!Zh(T)&&!Dt(T.declarations,iT)){let C=Ze(r,v.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),w=jn(T.declarations||ve,Sn);w&&lo(C,mn(w,v._0_was_imported_here,In(_)))}}}function AFt(r){UHe(r&&fR(r),!1)}function QD(r){let o=RCe(r);o&&xf(o)&&UHe(o,!0)}function kFt(r,o,_){var h;let T=yn(r,_),C=r.valueDeclaration;if(C){if(Zo(C)&&!C.initializer&&!C.dotDotDotToken&&C.parent.elements.length>=2){let w=C.parent.parent,V=jg(w);if(V.kind===260&&px(V)&6||V.kind===169){let H=Wn(w);if(!(H.flags&4194304)){H.flags|=4194304;let X=Lk(w,0),_e=X&&Dc(X,sy);if(H.flags&=-4194305,_e&&_e.flags&1048576&&!(V.kind===169&&P2e(V))){let Ie=C.parent,Ne=sv(Ie,_e,_e,void 0,o.flowNode);return Ne.flags&131072?Pr:ji(C,Ne,!0)}}}}if(is(C)&&!C.type&&!C.initializer&&!C.dotDotDotToken){let w=C.parent;if(w.parameters.length>=2&&mre(w)){let V=ZL(w);if(V&&V.parameters.length===1&&C_(V)){let H=X6(cs(yn(V.parameters[0]),(h=cx(w))==null?void 0:h.nonFixingMapper));if(H.flags&1048576&&tp(H,Yo)&&!Dt(w.parameters,P2e)){let X=sv(w,H,H,void 0,o.flowNode),_e=w.parameters.indexOf(C)-(iE(w)?1:0);return Qf(X,zm(_e))}}}}}return T}function VHe(r,o){if(oE(r))return;if(o===ze){if(Z2e(r)){Ze(r,v.arguments_cannot_be_referenced_in_property_initializers);return}let C=Ip(r);if(C)for(ee<2&&(C.kind===219?Ze(r,v.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):_i(C,1024)&&Ze(r,v.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),Wn(C).flags|=512;C&&fc(C);)C=Ip(C),C&&(Wn(C).flags|=512);return}let _=Lp(o),h=$Ce(_,r);Ld(h)&&Nxe(r,h)&&h.declarations&&F0(r,h.declarations,r.escapedText);let T=_.valueDeclaration;if(T&&_.flags&32&&vi(T)&&T.name!==r){let C=of(r,!1,!1);for(;C.kind!==307&&C.parent!==T;)C=of(C,!1,!1);C.kind!==307&&(Wn(T).flags|=262144,Wn(C).flags|=262144,Wn(r).flags|=536870912)}wFt(r,o)}function PFt(r,o){if(oE(r))return sq(r);let _=yf(r);if(_===Tt)return Oe;if(VHe(r,_),_===ze)return Z2e(r)?Oe:yn(_);JHe(r)&&Zk(r,1);let h=Lp(_),T=h.valueDeclaration,C=kFt(h,r,o),w=fT(r);if(w){if(!(h.flags&3)&&!(vn(r)&&h.flags&512)){let Bn=h.flags&384?v.Cannot_assign_to_0_because_it_is_an_enum:h.flags&32?v.Cannot_assign_to_0_because_it_is_a_class:h.flags&1536?v.Cannot_assign_to_0_because_it_is_a_namespace:h.flags&16?v.Cannot_assign_to_0_because_it_is_a_function:h.flags&2097152?v.Cannot_assign_to_0_because_it_is_an_import:v.Cannot_assign_to_0_because_it_is_not_a_variable;return Ze(r,Bn,ns(_)),Oe}if(xg(h))return h.flags&3?Ze(r,v.Cannot_assign_to_0_because_it_is_a_constant,ns(_)):Ze(r,v.Cannot_assign_to_0_because_it_is_a_read_only_property,ns(_)),Oe}let V=h.flags&2097152;if(h.flags&3){if(w===1)return FH(r)?tv(C):C}else if(V)T=Sp(_);else return C;if(!T)return C;C=N2e(C,r,o);let H=jg(T).kind===169,X=KL(T),_e=KL(r),Ie=_e!==X,Ne=r.parent&&r.parent.parent&&Ly(r.parent)&&C2e(r.parent.parent),dt=_.flags&134217728,Ct=C===rt||C===Ba,Lt=Ct&&r.parent.kind===235;for(;_e!==X&&(_e.kind===218||_e.kind===219||l9(_e))&&(Qk(h)&&C!==Ba||XL(h)&&kHe(h,r));)_e=KL(_e);let hr=H||V||Ie||Ne||dt||NFt(r,T)||C!==rt&&C!==Ba&&(!ce||(C.flags&16387)!==0||fA(r)||v2e(r)||r.parent.kind===281)||r.parent.kind===235||T.kind===260&&T.exclamationToken||T.flags&33554432,Er=Lt?sr:hr?H?EFt(C,T):C:Ct?sr:LS(C),rn=Lt?rv(sv(r,C,Er,_e)):sv(r,C,Er,_e);if(!CHe(r)&&(C===rt||C===Ba)){if(rn===rt||rn===Ba)return de&&(Ze(Ns(T),v.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ns(_),_n(rn)),Ze(r,v.Variable_0_implicitly_has_an_1_type,ns(_),_n(rn))),p7(rn)}else if(!hr&&!$D(C)&&$D(rn))return Ze(r,v.Variable_0_is_used_before_being_assigned,ns(_)),C;return w?tv(rn):rn}function NFt(r,o){if(Zo(o)){let _=Dr(r,Zo);return _&&jg(_)===jg(o)}}function JHe(r){var o;let _=r.parent;if(_){if(Hn(_)&&_.expression===r||E_(_)&&_.isTypeOnly)return!1;let h=(o=_.parent)==null?void 0:o.parent;if(h&&Cl(h)&&h.isTypeOnly)return!1}return!0}function DFt(r,o){return!!Dr(r,_=>_===o?"quit":Us(_)||_.parent&&Ds(_.parent)&&!Jl(_.parent)&&_.parent.initializer===_)}function IFt(r,o){return Dr(r,_=>_===o?"quit":_===o.initializer||_===o.condition||_===o.incrementor||_===o.statement)}function I2e(r){return Dr(r,o=>!o||GH(o)?"quit":V1(o,!1))}function wFt(r,o){if(ee>=2||!(o.flags&34)||!o.valueDeclaration||qi(o.valueDeclaration)||o.valueDeclaration.parent.kind===299)return;let _=Zm(o.valueDeclaration),h=DFt(r,_),T=I2e(_);if(T){if(h){let C=!0;if(ST(_)){let w=pT(o.valueDeclaration,261);if(w&&w.parent===_){let V=IFt(r.parent,_);if(V){let H=Wn(V);H.flags|=8192;let X=H.capturedBlockScopeBindings||(H.capturedBlockScopeBindings=[]);cl(X,o),V===_.initializer&&(C=!1)}}}C&&(Wn(T).flags|=4096)}if(ST(_)){let C=pT(o.valueDeclaration,261);C&&C.parent===_&&RFt(r,_)&&(Wn(o.valueDeclaration).flags|=65536)}Wn(o.valueDeclaration).flags|=32768}h&&(Wn(o.valueDeclaration).flags|=16384)}function OFt(r,o){let _=Wn(r);return!!_&&xs(_.capturedBlockScopeBindings,Un(o))}function RFt(r,o){let _=r;for(;_.parent.kind===217;)_=_.parent;let h=!1;if(Pv(_))h=!0;else if(_.parent.kind===224||_.parent.kind===225){let T=_.parent;h=T.operator===46||T.operator===47}return h?!!Dr(_,T=>T===o?"quit":T===o.statement):!1}function w2e(r,o){if(Wn(r).flags|=2,o.kind===172||o.kind===176){let _=o.parent;Wn(_).flags|=4}else Wn(o).flags|=4}function qHe(r){return Kx(r)?r:Us(r)?void 0:qs(r,qHe)}function O2e(r){let o=Un(r),_=oc(o);return Br(_)===z}function zHe(r,o,_){let h=o.parent;nE(h)&&!O2e(h)&&PR(r)&&r.flowNode&&!Vre(r.flowNode,!1)&&Ze(r,_)}function MFt(r,o){Ds(o)&&Jl(o)&&pe&&o.initializer&&O3(o.initializer,r.pos)&&Gp(o.parent)&&Ze(r,v.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function sq(r){let o=fA(r),_=of(r,!0,!0),h=!1,T=!1;for(_.kind===176&&zHe(r,_,v.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(_.kind===219&&(_=of(_,!1,!T),h=!0),_.kind===167){_=of(_,!h,!1),T=!0;continue}break}if(MFt(r,_),T)Ze(r,v.this_cannot_be_referenced_in_a_computed_property_name);else switch(_.kind){case 267:Ze(r,v.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Ze(r,v.this_cannot_be_referenced_in_current_location);break}!o&&h&&ee<2&&w2e(r,_);let C=R2e(r,!0,_);if(Ae){let w=yn(lt);if(C===w&&h)Ze(r,v.The_containing_arrow_function_captures_the_global_value_of_this);else if(!C){let V=Ze(r,v.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!qi(_)){let H=R2e(_);H&&H!==w&&lo(V,mn(_,v.An_outer_value_of_this_is_shadowed_by_this_container))}}}return C||Me}function R2e(r,o=!0,_=of(r,!1,!1)){let h=vn(r);if(Us(_)&&(!L2e(r)||iE(_))){let T=OEe(_)||h&&jFt(_);if(!T){let C=FFt(_);if(h&&C){let w=ys(C).symbol;w&&w.members&&w.flags&16&&(T=oc(w).thisType)}else yh(_)&&(T=oc(sa(_.symbol)).thisType);T||(T=$He(_))}if(T)return sv(r,T)}if(vi(_.parent)){let T=Un(_.parent),C=co(_)?yn(T):oc(T).thisType;return sv(r,C)}if(qi(_))if(_.commonJsModuleIndicator){let T=Un(_);return T&&yn(T)}else{if(_.externalModuleIndicator)return sr;if(o)return yn(lt)}}function LFt(r){let o=of(r,!1,!1);if(Us(o)){let _=gd(o);if(_.thisParameter)return Bre(_.thisParameter)}if(vi(o.parent)){let _=Un(o.parent);return co(o)?yn(_):oc(_).thisType}}function FFt(r){if(r.kind===218&&Dn(r.parent)&&ll(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===174&&r.parent.kind===210&&Dn(r.parent.parent)&&ll(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===218&&r.parent.kind===303&&r.parent.parent.kind===210&&Dn(r.parent.parent.parent)&&ll(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===218&&ql(r.parent)&&$e(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&ko(r.parent.parent)&&to(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&ll(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(_l(r)&&$e(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&ko(r.parent)&&to(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&ll(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function jFt(r){let o=I5(r);if(o&&o.typeExpression)return Gi(o.typeExpression);let _=Q6(r);if(_)return mb(_)}function BFt(r,o){return!!Dr(r,_=>$a(_)?"quit":_.kind===169&&_.parent===o)}function Wre(r){let o=r.parent.kind===213&&r.parent.expression===r,_=uR(r,!0),h=_,T=!1,C=!1;if(!o){for(;h&&h.kind===219;)_i(h,1024)&&(C=!0),h=uR(h,!0),T=ee<2;h&&_i(h,1024)&&(C=!0)}let w=0;if(!h||!_e(h)){let Ie=Dr(r,Ne=>Ne===h?"quit":Ne.kind===167);return Ie&&Ie.kind===167?Ze(r,v.super_cannot_be_referenced_in_a_computed_property_name):o?Ze(r,v.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!h||!h.parent||!(vi(h.parent)||h.parent.kind===210)?Ze(r,v.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):Ze(r,v.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Oe}if(!o&&_.kind===176&&zHe(r,h,v.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),co(h)||o?(w=32,!o&&ee>=2&&ee<=8&&(Ds(h)||$c(h))&&F_e(r.parent,Ie=>{(!qi(Ie)||Jf(Ie))&&(Wn(Ie).flags|=2097152)})):w=16,Wn(r).flags|=w,h.kind===174&&C&&(kf(r.parent)&&Pv(r.parent)?Wn(h).flags|=256:Wn(h).flags|=128),T&&w2e(r.parent,h),h.parent.kind===210)return ee<2?(Ze(r,v.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Oe):Me;let V=h.parent;if(!nE(V))return Ze(r,v.super_can_only_be_referenced_in_a_derived_class),Oe;if(O2e(V))return o?Oe:z;let H=oc(Un(V)),X=H&&mi(H)[0];if(!X)return Oe;if(h.kind===176&&BFt(r,h))return Ze(r,v.super_cannot_be_referenced_in_constructor_arguments),Oe;return w===32?Br(H):Ep(X,H.thisType);function _e(Ie){return o?Ie.kind===176:vi(Ie.parent)||Ie.parent.kind===210?co(Ie)?Ie.kind===174||Ie.kind===173||Ie.kind===177||Ie.kind===178||Ie.kind===172||Ie.kind===175:Ie.kind===174||Ie.kind===173||Ie.kind===177||Ie.kind===178||Ie.kind===172||Ie.kind===171||Ie.kind===176:!1}}function WHe(r){return(r.kind===174||r.kind===177||r.kind===178)&&r.parent.kind===210?r.parent:r.kind===218&&r.parent.kind===303?r.parent.parent:void 0}function GHe(r){return Qn(r)&4&&r.target===au?hc(r)[0]:void 0}function UFt(r){return Dc(r,o=>o.flags&2097152?Et(o.types,GHe):GHe(o))}function HHe(r,o){let _=r,h=o;for(;h;){let T=UFt(h);if(T)return T;if(_.parent.kind!==303)break;_=_.parent.parent,h=xb(_,void 0)}}function $He(r){if(r.kind===219)return;if(mre(r)){let _=ZL(r);if(_){let h=_.thisParameter;if(h)return yn(h)}}let o=vn(r);if(Ae||o){let _=WHe(r);if(_){let T=xb(_,void 0),C=HHe(_,T);return C?cs(C,u2e(cx(_))):ep(T?rv(T):vl(_))}let h=h0(r.parent);if(Tu(h)){let T=h.left;if(ac(T)){let{expression:C}=T;if(o&&$e(C)){let w=Jr(h);if(w.commonJsModuleIndicator&&yf(C)===w.symbol)return}return ep(vl(C))}}}}function YHe(r){let o=r.parent;if(!mre(o))return;let _=Qb(o);if(_&&_.arguments){let T=ane(_),C=o.parameters.indexOf(r);if(r.dotDotDotToken)return aCe(T,C,T.length,Me,void 0,0);let w=Wn(_),V=w.resolvedSignature;w.resolvedSignature=Se;let H=C0)return P(_.name,!0,!1)}}function zFt(r,o){let _=Ip(r);if(_){let h=Gre(_,o);if(h){let T=Rl(_);if(T&1){let C=(T&2)!==0;h.flags&1048576&&(h=Fl(h,V=>!!_x(1,V,C)));let w=_x(1,h,(T&2)!==0);if(!w)return;h=w}if(T&2){let C=Dc(h,y1);return C&&gi([C,uYe(C)])}return h}}}function WFt(r,o){let _=vf(r,o);if(_){let h=y1(_);return h&&gi([h,uYe(h)])}}function GFt(r,o){let _=Ip(r);if(_){let h=Rl(_),T=Gre(_,o);if(T){let C=(h&2)!==0;if(!r.asteriskToken&&T.flags&1048576&&(T=Fl(T,w=>!!_x(1,w,C))),r.asteriskToken){let w=GCe(T,C),V=w?.yieldType??Rn,H=vf(r,o)??Rn,X=w?.nextType??Mt,_e=fne(V,H,X,!1);if(C){let Ie=fne(V,H,X,!0);return gi([_e,Ie])}return _e}return _x(0,T,C)}}}function L2e(r){let o=!1;for(;r.parent&&!Us(r.parent);){if(is(r.parent)&&(o||r.parent.initializer===r))return!0;Zo(r.parent)&&r.parent.initializer===r&&(o=!0),r=r.parent}return!1}function KHe(r,o){let _=!!(Rl(o)&2),h=Gre(o,void 0);if(h)return _x(r,h,_)||void 0}function Gre(r,o){let _=JD(r);if(_)return _;let h=V2e(r);if(h&&!Yte(h)){let C=Na(h),w=Rl(r);return w&1?Fl(C,V=>!!(V.flags&58998787)||NCe(V,w,void 0)):w&2?Fl(C,V=>!!(V.flags&58998787)||!!p4(V)):C}let T=Qb(r);if(T)return vf(T,o)}function XHe(r,o){let h=ane(r).indexOf(o);return h===-1?void 0:F2e(r,h)}function F2e(r,o){if(Dp(r))return o===0?Ue:o===1?DWe(!1):Me;let _=Wn(r).resolvedSignature===Ke?Ke:tI(r);if(p_(r)&&o===0)return Kre(_,r);let h=_.parameters.length-1;return C_(_)&&o>=h?Qf(yn(_.parameters[h]),zm(o-h),256):Eg(_,o)}function HFt(r){let o=SCe(r);return o?$2(o):void 0}function $Ft(r,o){if(r.parent.kind===215)return XHe(r.parent,o)}function YFt(r,o){let _=r.parent,{left:h,operatorToken:T,right:C}=_;switch(T.kind){case 64:case 77:case 76:case 78:return r===C?XFt(_):void 0;case 57:case 61:let w=vf(_,o);return r===C&&(w&&w.pattern||!w&&!lfe(_))?n_(h):w;case 56:case 28:return r===C?vf(_,o):void 0;default:return}}function KFt(r){if(Qm(r)&&r.symbol)return r.symbol;if($e(r))return yf(r);if(Hn(r)){let _=n_(r.expression);return es(r.name)?o(_,r.name):ho(_,r.name.escapedText)}if(cc(r)){let _=vl(r.argumentExpression);if(!rm(_))return;let h=n_(r.expression);return ho(h,nm(_))}return;function o(_,h){let T=fq(h.escapedText,h);return T&&nne(_,T)}}function XFt(r){var o,_;let h=ll(r);switch(h){case 0:case 4:let T=KFt(r.left),C=T&&T.valueDeclaration;if(C&&(Ds(C)||If(C))){let H=Vl(C);return H&&cs(Gi(H),as(T).mapper)||(Ds(C)?C.initializer&&n_(r.left):void 0)}return h===0?n_(r.left):QHe(r);case 5:if(Hre(r,h))return QHe(r);if(!Qm(r.left)||!r.left.symbol)return n_(r.left);{let H=r.left.symbol.valueDeclaration;if(!H)return;let X=ao(r.left,ac),_e=Vl(H);if(_e)return Gi(_e);if($e(X.expression)){let Ie=X.expression,Ne=Ar(Ie,Ie.escapedText,111551,void 0,!0);if(Ne){let dt=Ne.valueDeclaration&&Vl(Ne.valueDeclaration);if(dt){let Ct=g0(X);if(Ct!==void 0)return Eb(Gi(dt),Ct)}return}}return vn(H)||H===r.left?void 0:n_(r.left)}case 1:case 6:case 3:case 2:let w;h!==2&&(w=Qm(r.left)?(o=r.left.symbol)==null?void 0:o.valueDeclaration:void 0),w||(w=(_=r.symbol)==null?void 0:_.valueDeclaration);let V=w&&Vl(w);return V?Gi(V):void 0;case 7:case 8:case 9:return M.fail("Does not apply");default:return M.assertNever(h)}}function Hre(r,o=ll(r)){if(o===4)return!0;if(!vn(r)||o!==5||!$e(r.left.expression))return!1;let _=r.left.expression.escapedText,h=Ar(r.left,_,111551,void 0,!0,!0);return d9(h?.valueDeclaration)}function QHe(r){if(!r.symbol)return n_(r.left);if(r.symbol.valueDeclaration){let T=Vl(r.symbol.valueDeclaration);if(T){let C=Gi(T);if(C)return C}}let o=ao(r.left,ac);if(!Nm(of(o.expression,!1,!1)))return;let _=sq(o.expression),h=g0(o);return h!==void 0&&Eb(_,h)||void 0}function QFt(r){return!!(ul(r)&262144&&!r.links.type&&MD(r,0)>=0)}function Eb(r,o,_){return Dc(r,h=>{var T;if(Xf(h)&&!h.declaration.nameType){let C=md(h),w=t_(C)||C,V=_||jf(Zi(o));if(yo(V,w))return ore(h,V)}else if(h.flags&3670016){let C=ho(h,o);if(C)return QFt(C)?void 0:nv(yn(C),!!(C.flags&16777216));if(Yo(h)&&Oy(o)&&+o>=0){let w=i4(h,h.target.fixedLength,0,!1,!0);if(w)return w}return(T=QEe(ZEe(h),_||jf(Zi(o))))==null?void 0:T.type}},!0)}function ZHe(r,o){if(M.assert(Nm(r)),!(r.flags&67108864))return j2e(r,o)}function j2e(r,o){let _=r.parent,h=ql(r)&&M2e(r,o);if(h)return h;let T=xb(_,o);if(T){if(UD(r)){let C=Un(r);return Eb(T,C.escapedName,as(C).nameType)}if(y0(r)){let C=Ns(r);if(C&&Go(C)){let w=ys(C.expression),V=rm(w)&&Eb(T,nm(w));if(V)return V}}if(r.name){let C=m1(r.name);return Dc(T,w=>{var V;return(V=QEe(ZEe(w),C))==null?void 0:V.type},!0)}}}function ZFt(r){let o,_;for(let h=0;h{if(Yo(C)){if((h===void 0||oT)?_-o:0,V=w>0&&C.target.hasRestElement?RL(C.target,3):0;return w>0&&w<=V?hc(C)[p1(C)-w]:i4(C,h===void 0?C.target.fixedLength:Math.min(C.target.fixedLength,h),_===void 0||T===void 0?V:Math.min(V,_-T),!1,!0)}return(!h||oh1(H)?Qf(H,zm(w)):H,!0))}function r5t(r,o){let _=r.parent;return V5(_)?vf(r,o):My(_)?t5t(_,r,o):void 0}function e$e(r,o){if(Yg(r)){let _=xb(r.parent,o);return!_||Pa(_)?void 0:Eb(_,dO(r.name))}else return vf(r.parent,o)}function oq(r){switch(r.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return oq(r.expression);case 294:return!r.expression||oq(r.expression)}return!1}function n5t(r,o){let _=`D${Sa(r)},${Bu(o)}`;return GT(_)??Qv(_,H7t(o,r)??$xe(o,ds(kr(ti(r.properties,h=>h.symbol?h.kind===303?oq(h.initializer)&&s4(o,h.symbol.escapedName):h.kind===304?s4(o,h.symbol.escapedName):!1:!1),h=>[()=>kq(h.kind===303?h.initializer:h.name),h.symbol.escapedName]),kr(ti(Ea(o),h=>{var T;return!!(h.flags&16777216)&&!!((T=r?.symbol)!=null&&T.members)&&!r.symbol.members.has(h.escapedName)&&s4(o,h.escapedName)}),h=>[()=>sr,h.escapedName])),yo))}function i5t(r,o){let _=`D${Sa(r)},${Bu(o)}`,h=GT(_);if(h)return h;let T=lq(aC(r));return Qv(_,$xe(o,ds(kr(ti(r.properties,C=>!!C.symbol&&C.kind===291&&s4(o,C.symbol.escapedName)&&(!C.initializer||oq(C.initializer))),C=>[C.initializer?()=>kq(C.initializer):()=>$t,C.symbol.escapedName]),kr(ti(Ea(o),C=>{var w;if(!(C.flags&16777216)||!((w=r?.symbol)!=null&&w.members))return!1;let V=r.parent.parent;return C.escapedName===T&&My(V)&&nN(V.children).length?!1:!r.symbol.members.has(C.escapedName)&&s4(o,C.escapedName)}),C=>[()=>sr,C.escapedName])),yo))}function xb(r,o){let _=Nm(r)?ZHe(r,o):vf(r,o),h=$re(_,r,o);if(h&&!(o&&o&2&&h.flags&8650752)){let T=Dc(h,C=>Qn(C)&32?C:X_(C),!0);return T.flags&1048576&&ko(r)?n5t(r,T):T.flags&1048576&&SE(r)?i5t(r,T):T}}function $re(r,o,_){if(r&&ml(r,465829888)){let h=cx(o);if(h&&_&1&&Dt(h.inferences,Wjt))return Yre(r,h.nonFixingMapper);if(h?.returnMapper){let T=Yre(r,h.returnMapper);return T.flags&1048576&&d1(T.types,Ht)&&d1(T.types,gr)?Fl(T,C=>C!==Ht&&C!==gr):T}}return r}function Yre(r,o){return r.flags&465829888?cs(r,o):r.flags&1048576?gi(kr(r.types,_=>Yre(_,o)),0):r.flags&2097152?wo(kr(r.types,_=>Yre(_,o))):r}function vf(r,o){var _;if(r.flags&67108864)return;let h=r$e(r,!o);if(h>=0)return um[h];let{parent:T}=r;switch(T.kind){case 260:case 169:case 172:case 171:case 208:return qFt(r,o);case 219:case 253:return zFt(r,o);case 229:return GFt(T,o);case 223:return WFt(T,o);case 213:case 214:return XHe(T,r);case 170:return HFt(T);case 216:case 234:return Xm(T.type)?vf(T,o):Gi(T.type);case 226:return YFt(r,o);case 303:case 304:return j2e(T,o);case 305:return vf(T.parent,o);case 209:{let C=T,w=xb(C,o),V=qP(C.elements,r),H=(_=Wn(C)).spreadIndices??(_.spreadIndices=ZFt(C.elements));return B2e(w,V,C.elements.length,H.first,H.last)}case 227:return e5t(r,o);case 239:return M.assert(T.parent.kind===228),$Ft(T.parent,r);case 217:{if(vn(T)){if(q$(T))return Gi(z$(T));let C=tT(T);if(C&&!Xm(C.typeExpression.type))return Gi(C.typeExpression.type)}return vf(T,o)}case 235:return vf(T,o);case 238:return Gi(T.type);case 277:return dn(T);case 294:return r5t(T,o);case 291:case 293:return e$e(T,o);case 286:case 285:return c5t(T,o);case 301:return a5t(T)}}function t$e(r){aq(r,vf(r,void 0),!0)}function aq(r,o,_){dS[fg]=r,um[fg]=o,VT[fg]=_,fg++}function QL(){fg--}function r$e(r,o){for(let _=fg-1;_>=0;_--)if(r===dS[_]&&(o||!VT[_]))return _;return-1}function s5t(r,o){ld[Ge]=r,M0[Ge]=o,Ge++}function o5t(){Ge--}function cx(r){for(let o=Ge-1;o>=0;o--)if(rE(r,ld[o]))return M0[o]}function a5t(r){return Eb(mxe(!1),xj(r))}function c5t(r,o){if($g(r)&&o!==4){let _=r$e(r.parent,!o);if(_>=0)return um[_]}return F2e(r,0)}function Kre(r,o){return B$e(o)!==0?l5t(r,o):f5t(r,o)}function l5t(r,o){let _=yCe(r,Mt);_=n$e(o,aC(o),_);let h=lx(Qp.IntrinsicAttributes,o);return la(h)||(_=SJ(h,_)),_}function u5t(r,o){if(r.compositeSignatures){let h=[];for(let T of r.compositeSignatures){let C=Na(T);if(Pa(C))return C;let w=il(C,o);if(!w)return;h.push(w)}return wo(h)}let _=Na(r);return Pa(_)?_:il(_,o)}function _5t(r){if(eP(r.tagName)){let _=f$e(r),h=cne(r,_);return $2(h)}let o=vl(r.tagName);if(o.flags&128){let _=_$e(o,r);if(!_)return Oe;let h=cne(r,_);return $2(h)}return o}function n$e(r,o,_){let h=R5t(o);if(h){let T=_5t(r),C=m$e(h,vn(r),T,_);if(C)return C}return _}function f5t(r,o){let _=aC(o),h=L5t(_),T=h===void 0?yCe(r,Mt):h===""?Na(r):u5t(r,h);if(!T)return h&&kt(o.attributes.properties)&&Ze(o,v.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Zi(h)),Mt;if(T=n$e(o,_,T),Pa(T))return T;{let C=T,w=lx(Qp.IntrinsicClassAttributes,o);if(!la(w)){let H=u1(w.symbol),X=Na(r),_e;if(H){let Ie=NS([X],H,fh(H),vn(o));_e=cs(w,Zf(H,Ie))}else _e=w;C=SJ(_e,C)}let V=lx(Qp.IntrinsicAttributes,o);return la(V)||(C=SJ(V,C)),C}}function p5t(r){return q_(q,"noImplicitAny")?F_(r,(o,_)=>o===_||!o?o:Hze(o.typeParameters,_.typeParameters)?g5t(o,_):void 0):void 0}function d5t(r,o,_){if(!r||!o)return r||o;let h=gi([yn(r),cs(yn(o),_)]);return tC(r,h)}function m5t(r,o,_){let h=rp(r),T=rp(o),C=h>=T?r:o,w=C===r?o:r,V=C===r?h:T,H=ly(r)||ly(o),X=H&&!ly(C),_e=new Array(V+(X?1:0));for(let Ie=0;Ie=vh(C)&&Ie>=vh(w),Er=Ie>=h?void 0:l4(r,Ie),rn=Ie>=T?void 0:l4(o,Ie),Bn=Er===rn?Er:Er?rn?void 0:Er:rn,wr=ta(1|(hr&&!Lt?16777216:0),Bn||`arg${Ie}`);wr.links.type=Lt?y_(Ct):Ct,_e[Ie]=wr}if(X){let Ie=ta(1,"args");Ie.links.type=y_(Eg(w,V)),w===o&&(Ie.links.type=cs(Ie.links.type,_)),_e[V]=Ie}return _e}function g5t(r,o){let _=r.typeParameters||o.typeParameters,h;r.typeParameters&&o.typeParameters&&(h=Zf(o.typeParameters,r.typeParameters));let T=r.declaration,C=m5t(r,o,h),w=d5t(r.thisParameter,o.thisParameter,h),V=Math.max(r.minArgumentCount,o.minArgumentCount),H=Gy(T,_,w,C,void 0,void 0,V,(r.flags|o.flags)&167);return H.compositeKind=2097152,H.compositeSignatures=ds(r.compositeKind===2097152&&r.compositeSignatures||[r],[o]),h&&(H.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?ox(r.mapper,h):h),H}function U2e(r,o){let _=Ks(r,0),h=ti(_,T=>!h5t(T,o));return h.length===1?h[0]:p5t(h)}function h5t(r,o){let _=0;for(;_{let w=s.getTokenEnd();if(h.category===3&&_&&w===_.start&&T===_.length){let V=yA(o.fileName,o.text,w,T,h,C);lo(_,V)}else(!_||w!==_.start)&&(_=bu(o,w,T,h,C),da.add(_))}),s.setText(o.text,r.pos,r.end-r.pos);try{return s.scan(),M.assert(s.reScanSlashToken(!0)===14,"Expected scanner to rescan RegularExpressionLiteral"),!!_}finally{s.setText(""),s.setOnError(void 0)}}return!1}function v5t(r){let o=Wn(r);return o.flags&1||(o.flags|=1,n(()=>y5t(r))),pl}function S5t(r,o){ee<2&&hu(r,q.downlevelIteration?1536:1024);let _=ys(r.expression,o);return v1(33,_,sr,r.expression)}function T5t(r){return r.isSpread?Qf(r.type,be):r.type}function c4(r){return r.kind===208&&!!r.initializer||r.kind===226&&r.operatorToken.kind===64}function b5t(r){let o=h0(r.parent);return kd(o)&&Ig(o.parent)}function i$e(r,o,_){let h=r.elements,T=h.length,C=[],w=[];t$e(r);let V=Pv(r),H=_4(r),X=xb(r,void 0),_e=b5t(r)||!!X&&vm(X,Ne=>n4(Ne)||Xf(Ne)&&!Ne.nameType&&!!jL(Ne.target||Ne)),Ie=!1;for(let Ne=0;New[dt]&8?IS(Ne,be)||Me:Ne),2):ce?Xi:Z,H))}function s$e(r){if(!(Qn(r)&4))return r;let o=r.literalType;return o||(o=r.literalType=yWe(r),o.objectFlags|=147456),o}function E5t(r){switch(r.kind){case 167:return x5t(r);case 80:return Oy(r.escapedText);case 9:case 11:return Oy(r.text);default:return!1}}function x5t(r){return r_(mh(r),296)}function mh(r){let o=Wn(r.expression);if(!o.resolvedType){if((_f(r.parent.parent)||vi(r.parent.parent)||Xu(r.parent.parent))&&Dn(r.expression)&&r.expression.operatorToken.kind===103&&r.parent.kind!==177&&r.parent.kind!==178)return o.resolvedType=Oe;if(o.resolvedType=ys(r.expression),Ds(r.parent)&&!Jl(r.parent)&&tu(r.parent.parent)){let _=Zm(r.parent.parent),h=I2e(_);h&&(Wn(h).flags|=4096,Wn(r).flags|=32768,Wn(r.parent.parent).flags|=32768)}(o.resolvedType.flags&98304||!r_(o.resolvedType,402665900)&&!yo(o.resolvedType,Cr))&&Ze(r,v.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return o.resolvedType}function C5t(r){var o;let _=(o=r.declarations)==null?void 0:o[0];return Oy(r.escapedName)||_&&Hu(_)&&E5t(_.name)}function o$e(r){var o;let _=(o=r.declarations)==null?void 0:o[0];return LR(r)||_&&Hu(_)&&Go(_.name)&&r_(mh(_.name),4096)}function J2e(r,o,_,h){let T=[];for(let w=o;w<_.length;w++){let V=_[w];(h===Ue&&!o$e(V)||h===be&&C5t(V)||h===Yr&&o$e(V))&&T.push(yn(_[w]))}let C=T.length?gi(T,2):sr;return oy(h,C,_4(r))}function Xre(r){M.assert((r.flags&2097152)!==0,"Should only get Alias here.");let o=as(r);if(!o.immediateTarget){let _=Sp(r);if(!_)return M.fail();o.immediateTarget=q0(_,!0)}return o.immediateTarget}function A5t(r,o=0){var _;let h=Pv(r);RJt(r,h);let T=ce?po():void 0,C=po(),w=[],V=Wi;t$e(r);let H=xb(r,void 0),X=H&&H.pattern&&(H.pattern.kind===206||H.pattern.kind===210),_e=_4(r),Ie=_e?8:0,Ne=vn(r)&&!y9(r),dt=Ne?UG(r):void 0,Ct=!H&&Ne&&!dt,Lt=8192,hr=!1,Er=!1,rn=!1,Bn=!1;for(let en of r.properties)en.name&&Go(en.name)&&mh(en.name);let wr=0;for(let en of r.properties){let $n=Un(en),oi=en.name&&en.name.kind===167?mh(en.name):void 0;if(en.kind===303||en.kind===304||Nm(en)){let ai=en.kind===303?EYe(en,o):en.kind===304?f4(!h&&en.objectAssignmentInitializer?en.objectAssignmentInitializer:en.name,o):xYe(en,o);if(Ne){let oa=Ai(en);oa?(R_(ai,oa,en),ai=oa):dt&&dt.typeExpression&&R_(ai,Gi(dt.typeExpression),en)}Lt|=Qn(ai)&458752;let Co=oi&&rm(oi)?oi:void 0,Xs=Co?ta(4|$n.flags,nm(Co),Ie|4096):ta(4|$n.flags,$n.escapedName,Ie);if(Co&&(Xs.links.nameType=Co),h)(en.kind===303&&c4(en.initializer)||en.kind===304&&en.objectAssignmentInitializer)&&(Xs.flags|=16777216);else if(X&&!(Qn(H)&512)){let oa=ho(H,$n.escapedName);oa?Xs.flags|=oa.flags&16777216:Hy(H,Ue)||Ze(en.name,v.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ns($n),_n(H))}if(Xs.declarations=$n.declarations,Xs.parent=$n.parent,$n.valueDeclaration&&(Xs.valueDeclaration=$n.valueDeclaration),Xs.links.type=ai,Xs.links.target=$n,$n=Xs,T?.set(Xs.escapedName,Xs),H&&o&2&&!(o&4)&&(en.kind===303||en.kind===174)&&Vd(en)){let oa=cx(r);M.assert(oa);let Rs=en.kind===303?en.initializer:en;c2e(oa,Rs,ai)}}else if(en.kind===305){ee<2&&hu(en,2),w.length>0&&(V=nx(V,Gr(),r.symbol,Lt,_e),w=[],C=po(),Er=!1,rn=!1,Bn=!1);let ai=Sg(ys(en.expression,o&2));if(cq(ai)){let Co=Mxe(ai,_e);if(T&&c$e(Co,T,en),wr=w.length,la(V))continue;V=nx(V,Co,r.symbol,Lt,_e)}else Ze(en,v.Spread_types_may_only_be_created_from_object_types),V=Oe;continue}else M.assert(en.kind===177||en.kind===178),tP(en);oi&&!(oi.flags&8576)?yo(oi,Cr)&&(yo(oi,be)?rn=!0:yo(oi,Yr)?Bn=!0:Er=!0,h&&(hr=!0)):C.set($n.escapedName,$n),w.push($n)}if(QL(),X){let en=Dr(H.pattern.parent,oi=>oi.kind===260||oi.kind===226||oi.kind===169);if(Dr(r,oi=>oi===en||oi.kind===305).kind!==305)for(let oi of Ea(H))!C.get(oi.escapedName)&&!ho(V,oi.escapedName)&&(oi.flags&16777216||Ze(oi.valueDeclaration||((_=ci(oi,Fh))==null?void 0:_.links.bindingElement),v.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),C.set(oi.escapedName,oi),w.push(oi))}if(la(V))return Oe;if(V!==Wi)return w.length>0&&(V=nx(V,Gr(),r.symbol,Lt,_e),w=[],C=po(),Er=!1,rn=!1),Dc(V,en=>en===Wi?Gr():en);return Gr();function Gr(){let en=[];Er&&en.push(J2e(r,wr,w,Ue)),rn&&en.push(J2e(r,wr,w,be)),Bn&&en.push(J2e(r,wr,w,Yr));let $n=tr(r.symbol,C,ve,ve,en);return $n.objectFlags|=Lt|128|131072,Ct&&($n.objectFlags|=4096),hr&&($n.objectFlags|=512),h&&($n.pattern=r),$n}}function cq(r){let o=HGe(Dc(r,sy));return!!(o.flags&126615553||o.flags&3145728&&Oi(o.types,cq))}function k5t(r){W2e(r)}function P5t(r,o){return tP(r),uq(r)||Me}function N5t(r){W2e(r.openingElement),eP(r.closingElement.tagName)?Zre(r.closingElement):ys(r.closingElement.tagName),Qre(r)}function D5t(r,o){return tP(r),uq(r)||Me}function I5t(r){W2e(r.openingFragment);let o=Jr(r);return ij(q)&&(q.jsxFactory||o.pragmas.has("jsx"))&&!q.jsxFragmentFactory&&!o.pragmas.has("jsxfrag")&&Ze(r,q.jsxFactory?v.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:v.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Qre(r),uq(r)||Me}function q2e(r){return r.includes("-")}function eP(r){return $e(r)&&iN(r.escapedText)||ig(r)}function a$e(r,o){return r.initializer?f4(r.initializer,o):$t}function w5t(r,o=0){let _=r.attributes,h=vf(_,0),T=ce?po():void 0,C=po(),w=xu,V=!1,H,X=!1,_e=2048,Ie=lq(aC(r));for(let Ct of _.properties){let Lt=Ct.symbol;if(Yg(Ct)){let hr=a$e(Ct,o);_e|=Qn(hr)&458752;let Er=ta(4|Lt.flags,Lt.escapedName);if(Er.declarations=Lt.declarations,Er.parent=Lt.parent,Lt.valueDeclaration&&(Er.valueDeclaration=Lt.valueDeclaration),Er.links.type=hr,Er.links.target=Lt,C.set(Er.escapedName,Er),T?.set(Er.escapedName,Er),dO(Ct.name)===Ie&&(X=!0),h){let rn=ho(h,Lt.escapedName);rn&&rn.declarations&&Ld(rn)&&$e(Ct.name)&&F0(Ct.name,rn.declarations,Ct.name.escapedText)}if(h&&o&2&&!(o&4)&&Vd(Ct)){let rn=cx(_);M.assert(rn);let Bn=Ct.initializer.expression;c2e(rn,Bn,hr)}}else{M.assert(Ct.kind===293),C.size>0&&(w=nx(w,dt(),_.symbol,_e,!1),C=po());let hr=Sg(ys(Ct.expression,o&2));Pa(hr)&&(V=!0),cq(hr)?(w=nx(w,hr,_.symbol,_e,!1),T&&c$e(hr,T,Ct)):(Ze(Ct.expression,v.Spread_types_may_only_be_created_from_object_types),H=H?wo([H,hr]):hr)}}V||C.size>0&&(w=nx(w,dt(),_.symbol,_e,!1));let Ne=r.parent.kind===284?r.parent:void 0;if(Ne&&Ne.openingElement===r&&nN(Ne.children).length>0){let Ct=Qre(Ne,o);if(!V&&Ie&&Ie!==""){X&&Ze(_,v._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Zi(Ie));let Lt=xb(r.attributes,void 0),hr=Lt&&Eb(Lt,Ie),Er=ta(4,Ie);Er.links.type=Ct.length===1?Ct[0]:hr&&vm(hr,n4)?ay(Ct):y_(gi(Ct)),Er.valueDeclaration=U.createPropertySignature(void 0,Zi(Ie),void 0,void 0),fa(Er.valueDeclaration,_),Er.valueDeclaration.symbol=Er;let rn=po();rn.set(Ie,Er),w=nx(w,tr(_.symbol,rn,ve,ve,ve),_.symbol,_e,!1)}}if(V)return Me;if(H&&w!==xu)return wo([H,w]);return H||(w===xu?dt():w);function dt(){_e|=8192;let Ct=tr(_.symbol,C,ve,ve,ve);return Ct.objectFlags|=_e|128|131072,Ct}}function Qre(r,o){let _=[];for(let h of r.children)if(h.kind===12)h.containsOnlyTriviaWhiteSpaces||_.push(Ue);else{if(h.kind===294&&!h.expression)continue;_.push(f4(h,o))}return _}function c$e(r,o,_){for(let h of Ea(r))if(!(h.flags&16777216)){let T=o.get(h.escapedName);if(T){let C=Ze(T.valueDeclaration,v._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Zi(T.escapedName));lo(C,mn(_,v.This_spread_always_overwrites_this_property))}}}function O5t(r,o){return w5t(r.parent,o)}function lx(r,o){let _=aC(o),h=_&&Mp(_),T=h&&h_(h,r,788968);return T?oc(T):Oe}function Zre(r){let o=Wn(r);if(!o.resolvedSymbol){let _=lx(Qp.IntrinsicElements,r);if(la(_))return de&&Ze(r,v.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Zi(Qp.IntrinsicElements)),o.resolvedSymbol=Tt;{if(!$e(r.tagName)&&!ig(r.tagName))return M.fail();let h=ig(r.tagName)?CA(r.tagName):r.tagName.escapedText,T=ho(_,h);if(T)return o.jsxFlags|=1,o.resolvedSymbol=T;let C=IKe(_,jf(Zi(h)));return C?(o.jsxFlags|=2,o.resolvedSymbol=C):G6(_,h)?(o.jsxFlags|=2,o.resolvedSymbol=_.symbol):(Ze(r,v.Property_0_does_not_exist_on_type_1,W$(r.tagName),"JSX."+Qp.IntrinsicElements),o.resolvedSymbol=Tt)}}return o.resolvedSymbol}function z2e(r){let o=r&&Jr(r),_=o&&Wn(o);if(_&&_.jsxImplicitImportContainer===!1)return;if(_&&_.jsxImplicitImportContainer)return _.jsxImplicitImportContainer;let h=oj(sj(q,o),q);if(!h)return;let C=cf(q)===1?v.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:v.Cannot_find_module_0_or_its_corresponding_type_declarations,w=_qt(o,h),V=WE(w||r,h,C,r),H=V&&V!==Tt?sa(dl(V)):void 0;return _&&(_.jsxImplicitImportContainer=H||!1),H}function aC(r){let o=r&&Wn(r);if(o&&o.jsxNamespace)return o.jsxNamespace;if(!o||o.jsxNamespace!==!1){let h=z2e(r);if(!h||h===Tt){let T=HT(r);h=Ar(r,T,1920,void 0,!1)}if(h){let T=dl(h_(Mp(dl(h)),Qp.JSX,1920));if(T&&T!==Tt)return o&&(o.jsxNamespace=T),T}o&&(o.jsxNamespace=!1)}let _=dl(GD(Qp.JSX,1920,void 0));if(_!==Tt)return _}function l$e(r,o){let _=o&&h_(o.exports,r,788968),h=_&&oc(_),T=h&&Ea(h);if(T){if(T.length===0)return"";if(T.length===1)return T[0].escapedName;T.length>1&&_.declarations&&Ze(_.declarations[0],v.The_global_type_JSX_0_may_not_have_more_than_one_property,Zi(r))}}function R5t(r){return r&&h_(r.exports,Qp.LibraryManagedAttributes,788968)}function M5t(r){return r&&h_(r.exports,Qp.ElementType,788968)}function L5t(r){return l$e(Qp.ElementAttributesPropertyNameContainer,r)}function lq(r){return l$e(Qp.ElementChildrenAttributeNameContainer,r)}function u$e(r,o){if(r.flags&4)return[Se];if(r.flags&128){let T=_$e(r,o);return T?[cne(o,T)]:(Ze(o,v.Property_0_does_not_exist_on_type_1,r.value,"JSX."+Qp.IntrinsicElements),ve)}let _=X_(r),h=Ks(_,1);return h.length===0&&(h=Ks(_,0)),h.length===0&&_.flags&1048576&&(h=VEe(kr(_.types,T=>u$e(T,o)))),h}function _$e(r,o){let _=lx(Qp.IntrinsicElements,o);if(!la(_)){let h=r.value,T=ho(_,Uc(h));if(T)return yn(T);let C=db(_,Ue);return C||void 0}return Me}function F5t(r,o,_){if(r===1){let T=d$e(_);T&&Jd(o,T,Lf,_.tagName,v.Its_return_type_0_is_not_a_valid_JSX_element,h)}else if(r===0){let T=p$e(_);T&&Jd(o,T,Lf,_.tagName,v.Its_instance_type_0_is_not_a_valid_JSX_element,h)}else{let T=d$e(_),C=p$e(_);if(!T||!C)return;let w=gi([T,C]);Jd(o,w,Lf,_.tagName,v.Its_element_type_0_is_not_a_valid_JSX_element,h)}function h(){let T=Hc(_.tagName);return Bs(void 0,v._0_cannot_be_used_as_a_JSX_component,T)}}function f$e(r){var o;M.assert(eP(r.tagName));let _=Wn(r);if(!_.resolvedJsxElementAttributesType){let h=Zre(r);if(_.jsxFlags&1)return _.resolvedJsxElementAttributesType=yn(h)||Oe;if(_.jsxFlags&2){let T=ig(r.tagName)?CA(r.tagName):r.tagName.escapedText;return _.resolvedJsxElementAttributesType=((o=Jk(lx(Qp.IntrinsicElements,r),T))==null?void 0:o.type)||Oe}else return _.resolvedJsxElementAttributesType=Oe}return _.resolvedJsxElementAttributesType}function p$e(r){let o=lx(Qp.ElementClass,r);if(!la(o))return o}function uq(r){return lx(Qp.Element,r)}function d$e(r){let o=uq(r);if(o)return gi([o,Xe])}function j5t(r){let o=aC(r);if(!o)return;let _=M5t(o);if(!_)return;let h=m$e(_,vn(r));if(!(!h||la(h)))return h}function m$e(r,o,..._){let h=oc(r);if(r.flags&524288){let T=as(r).typeParameters;if(kt(T)>=_.length){let C=NS(_,T,_.length,o);return kt(C)===0?h:zD(r,C)}}if(kt(h.typeParameters)>=_.length){let T=NS(_,h.typeParameters,_.length,o);return f1(h,T)}}function B5t(r){let o=lx(Qp.IntrinsicElements,r);return o?Ea(o):ve}function U5t(r){(q.jsx||0)===0&&Ze(r,v.Cannot_use_JSX_unless_the_jsx_flag_is_provided),uq(r)===void 0&&de&&Ze(r,v.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function W2e(r){let o=p_(r);if(o&&MJt(r),U5t(r),D2e(r),o){let _=r,h=tI(_);une(h,r);let T=j5t(_);if(T!==void 0){let C=_.tagName,w=eP(C)?jf(W$(C)):ys(C);Jd(w,T,Lf,C,v.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let V=Hc(C);return Bs(void 0,v._0_cannot_be_used_as_a_JSX_component,V)})}else F5t(B$e(_),Na(h),_)}}function ene(r,o,_){if(r.flags&524288&&(ZE(r,o)||Jk(r,o)||kL(o)&&Hy(r,Ue)||_&&q2e(o)))return!0;if(r.flags&33554432)return ene(r.baseType,o,_);if(r.flags&3145728&&e7(r)){for(let h of r.types)if(ene(h,o,_))return!0}return!1}function e7(r){return!!(r.flags&524288&&!(Qn(r)&512)||r.flags&67108864||r.flags&33554432&&e7(r.baseType)||r.flags&1048576&&Dt(r.types,e7)||r.flags&2097152&&Oi(r.types,e7))}function V5t(r,o){if(FJt(r),r.expression){let _=ys(r.expression,o);return r.dotDotDotToken&&_!==Me&&!qd(_)&&Ze(r,v.JSX_spread_child_must_be_an_array_type),_}else return Oe}function G2e(r){return r.valueDeclaration?px(r.valueDeclaration):0}function H2e(r){if(r.flags&8192||ul(r)&4)return!0;if(vn(r.valueDeclaration)){let o=r.valueDeclaration.parent;return o&&Dn(o)&&ll(o)===3}}function $2e(r,o,_,h,T,C=!0){let w=C?r.kind===166?r.right:r.kind===205?r:r.kind===208&&r.propertyName?r.propertyName:r.name:void 0;return g$e(r,o,_,h,T,w)}function g$e(r,o,_,h,T,C){var w;let V=Cd(T,_);if(o){if(ee<2&&h$e(T))return C&&Ze(C,v.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(V&64)return C&&Ze(C,v.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ns(T),_n(Kk(T))),!1;if(!(V&256)&&((w=T.declarations)!=null&&w.some(r_e)))return C&&Ze(C,v.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ns(T)),!1}if(V&64&&h$e(T)&&(_R(r)||ofe(r)||Kp(r.parent)&&d9(r.parent.parent))){let X=T0(e_(T));if(X&&IVt(r))return C&&Ze(C,v.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ns(T),Zd(X.name)),!1}if(!(V&6))return!0;if(V&2){let X=T0(e_(T));return QCe(r,X)?!0:(C&&Ze(C,v.Property_0_is_private_and_only_accessible_within_class_1,ns(T),_n(Kk(T))),!1)}if(o)return!0;let H=NKe(r,X=>{let _e=oc(Un(X));return LGe(_e,T,_)});return!H&&(H=J5t(r),H=H&&LGe(H,T,_),V&256||!H)?(C&&Ze(C,v.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ns(T),_n(Kk(T)||h)),!1):V&256?!0:(h.flags&262144&&(h=h.isThisType?hf(h):t_(h)),!h||!jD(h,H)?(C&&Ze(C,v.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ns(T),_n(H),_n(h)),!1):!0)}function J5t(r){let o=q5t(r),_=o?.type&&Gi(o.type);if(_&&_.flags&262144&&(_=hf(_)),_&&Qn(_)&7)return FD(_)}function q5t(r){let o=of(r,!1,!1);return o&&Us(o)?iE(o):void 0}function h$e(r){return!!qJ(r,o=>!(o.flags&8192))}function ZD(r){return gh(ys(r),r)}function _q(r){return bg(r,50331648)}function Y2e(r){return _q(r)?rv(r):r}function z5t(r,o){let _=nc(r)?lp(r):void 0;if(r.kind===106){Ze(r,v.The_value_0_cannot_be_used_here,"null");return}if(_!==void 0&&_.length<100){if($e(r)&&_==="undefined"){Ze(r,v.The_value_0_cannot_be_used_here,"undefined");return}Ze(r,o&16777216?o&33554432?v._0_is_possibly_null_or_undefined:v._0_is_possibly_undefined:v._0_is_possibly_null,_)}else Ze(r,o&16777216?o&33554432?v.Object_is_possibly_null_or_undefined:v.Object_is_possibly_undefined:v.Object_is_possibly_null)}function W5t(r,o){Ze(r,o&16777216?o&33554432?v.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:v.Cannot_invoke_an_object_which_is_possibly_undefined:v.Cannot_invoke_an_object_which_is_possibly_null)}function y$e(r,o,_){if(ce&&r.flags&2){if(nc(o)){let T=lp(o);if(T.length<100)return Ze(o,v._0_is_of_type_unknown,T),Oe}return Ze(o,v.Object_is_of_type_unknown),Oe}let h=YD(r,50331648);if(h&50331648){_(o,h);let T=rv(r);return T.flags&229376?Oe:T}return r}function gh(r,o){return y$e(r,o,z5t)}function v$e(r,o){let _=gh(r,o);if(_.flags&16384){if(nc(o)){let h=lp(o);if($e(o)&&h==="undefined")return Ze(o,v.The_value_0_cannot_be_used_here,h),_;if(h.length<100)return Ze(o,v._0_is_possibly_undefined,h),_}Ze(o,v.Object_is_possibly_undefined)}return _}function tne(r,o,_){return r.flags&64?G5t(r,o):X2e(r,r.expression,ZD(r.expression),r.name,o,_)}function G5t(r,o){let _=ys(r.expression),h=zL(_,r.expression);return Pre(X2e(r,r.expression,gh(h,r.expression),r.name,o),r,h!==_)}function S$e(r,o){let _=h9(r)&&z1(r.left)?gh(sq(r.left),r.left):ZD(r.left);return X2e(r,r.left,_,r.right,o)}function K2e(r){for(;r.parent.kind===217;)r=r.parent;return Ig(r.parent)&&r.parent.expression===r}function fq(r,o){for(let _=f9(o);_;_=Lu(_)){let{symbol:h}=_,T=MR(h,r),C=h.members&&h.members.get(T)||h.exports&&h.exports.get(T);if(C)return C}}function H5t(r){if(!Lu(r))return Lr(r,v.Private_identifiers_are_not_allowed_outside_class_bodies);if(!zj(r.parent)){if(!eg(r))return Lr(r,v.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let o=Dn(r.parent)&&r.parent.operatorToken.kind===103;if(!rne(r)&&!o)return Lr(r,v.Cannot_find_name_0,In(r))}return!1}function $5t(r){H5t(r);let o=rne(r);return o&&dq(o,void 0,!1),Me}function rne(r){if(!eg(r))return;let o=Wn(r);return o.resolvedSymbol===void 0&&(o.resolvedSymbol=fq(r.escapedText,r)),o.resolvedSymbol}function nne(r,o){return ho(r,o.escapedName)}function Y5t(r,o,_){let h,T=Ea(r);T&&Et(T,w=>{let V=w.valueDeclaration;if(V&&Hu(V)&&es(V.name)&&V.name.escapedText===o.escapedText)return h=w,!0});let C=Rp(o);if(h){let w=M.checkDefined(h.valueDeclaration),V=M.checkDefined(Lu(w));if(_?.valueDeclaration){let H=_.valueDeclaration,X=Lu(H);if(M.assert(!!X),Dr(X,_e=>V===_e)){let _e=Ze(o,v.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,C,_n(r));return lo(_e,mn(H,v.The_shadowing_declaration_of_0_is_defined_here,C),mn(w,v.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,C)),!0}}return Ze(o,v.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,C,Rp(V.name||TK)),!0}return!1}function T$e(r,o){return(dd(o)||_R(r)&&gg(o))&&of(r,!0,!1)===Y0(o)}function X2e(r,o,_,h,T,C){let w=Wn(o).resolvedSymbol,V=fT(r),H=X_(V!==0||K2e(r)?ep(_):_),X=Pa(H)||H===Rn,_e;if(es(h)){(ee<9||ee<99||!K)&&(V!==0&&hu(r,1048576),V!==1&&hu(r,524288));let Ne=fq(h.escapedText,h);if(V&&Ne&&Ne.valueDeclaration&&_l(Ne.valueDeclaration)&&Lr(h,v.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,In(h)),X){if(Ne)return la(H)?Oe:H;if(f9(h)===void 0)return Lr(h,v.Private_identifiers_are_not_allowed_outside_class_bodies),Me}if(_e=Ne&&nne(_,Ne),_e===void 0){if(Y5t(_,h,Ne))return Oe;let dt=f9(h);dt&&xw(Jr(dt),q.checkJs)&&Lr(h,v.Private_field_0_must_be_declared_in_an_enclosing_class,In(h))}else _e.flags&65536&&!(_e.flags&32768)&&V!==1&&Ze(r,v.Private_accessor_was_defined_without_a_getter)}else{if(X)return $e(o)&&w&&Zk(r,2,void 0,_),la(H)?Oe:H;_e=ho(H,h.escapedText,dne(H),r.kind===166)}Zk(r,2,_e,_);let Ie;if(_e){let Ne=$Ce(_e,h);if(Ld(Ne)&&Nxe(r,Ne)&&Ne.declarations&&F0(h,Ne.declarations,h.escapedText),K5t(_e,r,h),dq(_e,r,N$e(o,w)),Wn(r).resolvedSymbol=_e,$2e(r,o.kind===108,gA(r),H,_e),gYe(r,_e,V))return Ze(h,v.Cannot_assign_to_0_because_it_is_a_read_only_property,In(h)),Oe;Ie=T$e(r,_e)?rt:C||G9(r)?_b(_e):yn(_e)}else{let Ne=!es(h)&&(V===0||!X2(_)||pO(_))?Jk(H,h.escapedText):void 0;if(!(Ne&&Ne.type)){let dt=Q2e(r,_.symbol,!0);return!dt&&ML(_)?Me:_.symbol===lt?(lt.exports.has(h.escapedText)&<.exports.get(h.escapedText).flags&418?Ze(h,v.Property_0_does_not_exist_on_type_1,Zi(h.escapedText),_n(_)):de&&Ze(h,v.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,_n(_)),Me):(h.escapedText&&!sc(r)&&E$e(h,pO(_)?H:_,dt),Oe)}Ne.isReadonly&&(Pv(r)||jH(r))&&Ze(r,v.Index_signature_in_type_0_only_permits_reading,_n(H)),Ie=Ne.type,q.noUncheckedIndexedAccess&&fT(r)!==1&&(Ie=gi([Ie,Ye])),q.noPropertyAccessFromIndexSignature&&Hn(r)&&Ze(h,v.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Zi(h.escapedText)),Ne.declaration&&ih(Ne.declaration)&&F0(h,[Ne.declaration],h.escapedText)}return b$e(r,_e,Ie,h,T)}function Q2e(r,o,_){var h;let T=Jr(r);if(T&&q.checkJs===void 0&&T.checkJsDirective===void 0&&(T.scriptKind===1||T.scriptKind===2)){let C=Et(o?.declarations,Jr),w=!o?.valueDeclaration||!vi(o.valueDeclaration)||((h=o.valueDeclaration.heritageClauses)==null?void 0:h.length)||Av(!1,o.valueDeclaration);return!(T!==C&&C&&Ev(C))&&!(_&&o&&o.flags&32&&w)&&!(r&&_&&Hn(r)&&r.expression.kind===110&&w)}return!1}function b$e(r,o,_,h,T){let C=fT(r);if(C===1)return nv(_,!!(o&&o.flags&16777216));if(o&&!(o.flags&98311)&&!(o.flags&8192&&_.flags&1048576)&&!Ine(o.declarations))return _;if(_===rt)return H6(r,o);_=N2e(_,r,T);let w=!1;if(ce&&me&&ac(r)&&r.expression.kind===110){let H=o&&o.valueDeclaration;if(H&&hKe(H)&&!co(H)){let X=KL(r);X.kind===176&&X.parent===H.parent&&!(H.flags&33554432)&&(w=!0)}}else ce&&o&&o.valueDeclaration&&Hn(o.valueDeclaration)&&ER(o.valueDeclaration)&&KL(r)===KL(o.valueDeclaration)&&(w=!0);let V=sv(r,_,w?LS(_):_);return w&&!$D(_)&&$D(V)?(Ze(h,v.Property_0_is_used_before_being_assigned,ns(o)),_):C?tv(V):V}function K5t(r,o,_){let{valueDeclaration:h}=r;if(!h||Jr(o).isDeclarationFile)return;let T,C=In(_);Z2e(o)&&!IMt(h)&&!(ac(o)&&ac(o.expression))&&!Fm(h,_)&&!(_l(h)&&Vne(h)&256)&&(K||!X5t(r))?T=Ze(_,v.Property_0_is_used_before_its_initialization,C):h.kind===263&&o.parent.kind!==183&&!(h.flags&33554432)&&!Fm(h,_)&&(T=Ze(_,v.Class_0_used_before_its_declaration,C)),T&&lo(T,mn(h,v._0_is_declared_here,C))}function Z2e(r){return!!Dr(r,o=>{switch(o.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Js(o.parent)&&$c(o.parent.parent)?!0:"quit";default:return eg(o)?!1:"quit"}})}function X5t(r){if(!(r.parent.flags&32))return!1;let o=yn(r.parent);for(;;){if(o=o.symbol&&Q5t(o),!o)return!1;let _=ho(o,r.escapedName);if(_&&_.valueDeclaration)return!0}}function Q5t(r){let o=mi(r);if(o.length!==0)return wo(o)}function E$e(r,o,_){let h,T;if(!es(r)&&o.flags&1048576&&!(o.flags&402784252)){for(let w of o.types)if(!ho(w,r.escapedText)&&!Jk(w,r.escapedText)){h=Bs(h,v.Property_0_does_not_exist_on_type_1,Ya(r),_n(w));break}}if(x$e(r.escapedText,o)){let w=Ya(r),V=_n(o);h=Bs(h,v.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,w,V,V+"."+w)}else{let w=c7(o);if(w&&ho(w,r.escapedText))h=Bs(h,v.Property_0_does_not_exist_on_type_1,Ya(r),_n(o)),T=mn(r,v.Did_you_forget_to_use_await);else{let V=Ya(r),H=_n(o),X=t9t(V,o);if(X!==void 0)h=Bs(h,v.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,V,H,X);else{let _e=eCe(r,o);if(_e!==void 0){let Ie=Qc(_e),Ne=_?v.Property_0_may_not_exist_on_type_1_Did_you_mean_2:v.Property_0_does_not_exist_on_type_1_Did_you_mean_2;h=Bs(h,Ne,V,H,Ie),T=_e.valueDeclaration&&mn(_e.valueDeclaration,v._0_is_declared_here,Ie)}else{let Ie=Z5t(o)?v.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:v.Property_0_does_not_exist_on_type_1;h=Bs(KEe(h,o),Ie,V,H)}}}}let C=Ay(Jr(r),r,h);T&&lo(C,T),Mm(!_||h.code!==v.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,C)}function Z5t(r){return q.lib&&!q.lib.includes("dom")&&cFt(r,o=>o.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Zi(o.symbol.escapedName)))&&ev(r)}function x$e(r,o){let _=o.symbol&&ho(yn(o.symbol),r);return _!==void 0&&!!_.valueDeclaration&&co(_.valueDeclaration)}function e9t(r){let o=Rp(r),h=_H().get(o);return h&&g3(h.keys())}function t9t(r,o){let _=X_(o).symbol;if(!_)return;let h=Qc(_),C=_H().get(h);if(C){for(let[w,V]of C)if(xs(V,r))return w}}function C$e(r,o){return pq(r,Ea(o),106500)}function eCe(r,o){let _=Ea(o);if(typeof r!="string"){let h=r.parent;Hn(h)&&(_=ti(_,T=>D$e(h,o,T))),r=In(r)}return pq(r,_,111551)}function A$e(r,o){let _=bs(r)?r:In(r),h=Ea(o);return(_==="for"?jn(h,C=>Qc(C)==="htmlFor"):_==="class"?jn(h,C=>Qc(C)==="className"):void 0)??pq(_,h,111551)}function k$e(r,o){let _=eCe(r,o);return _&&Qc(_)}function r9t(r,o,_){let h=h_(r,o,_);if(h)return h;let T;return r===De?T=Yi(["string","number","boolean","object","bigint","symbol"],w=>r.has(w.charAt(0).toUpperCase()+w.slice(1))?ta(524288,w):void 0).concat(Os(r.values())):T=Os(r.values()),pq(Zi(o),T,_)}function P$e(r,o,_){return M.assert(o!==void 0,"outername should always be defined"),Vr(r,o,_,void 0,!1,!1)}function tCe(r,o){return o.exports&&pq(In(r),GE(o),2623475)}function n9t(r,o,_){function h(w){let V=ZE(r,w);if(V){let H=lC(yn(V));return!!H&&vh(H)>=1&&yo(_,Eg(H,0))}return!1}let T=Pv(o)?"set":"get";if(!h(T))return;let C=GR(o.expression);return C===void 0?C=T:C+="."+T,C}function i9t(r,o){let _=o.types.filter(h=>!!(h.flags&128));return Fx(r.value,_,h=>h.value)}function pq(r,o,_){return Fx(r,o,h);function h(T){let C=Qc(T);if(!fs(C,'"')){if(T.flags&_)return C;if(T.flags&2097152){let w=z0(T);if(w&&w.flags&_)return C}}}}function dq(r,o,_){let h=r&&r.flags&106500&&r.valueDeclaration;if(!h)return;let T=fp(h,2),C=r.valueDeclaration&&Hu(r.valueDeclaration)&&es(r.valueDeclaration.name);if(!(!T&&!C)&&!(o&&G9(o)&&!(r.flags&65536))){if(_){let w=Dr(o,$a);if(w&&w.symbol===r)return}(ul(r)&1?as(r).target:r).isReferenced=-1}}function N$e(r,o){return r.kind===110||!!o&&nc(r)&&o===yf(pp(r))}function s9t(r,o){switch(r.kind){case 211:return rCe(r,r.expression.kind===108,o,ep(ys(r.expression)));case 166:return rCe(r,!1,o,ep(ys(r.left)));case 205:return rCe(r,!1,o,Gi(r))}}function D$e(r,o,_){return nCe(r,r.kind===211&&r.expression.kind===108,!1,o,_)}function rCe(r,o,_,h){if(Pa(h))return!0;let T=ho(h,_);return!!T&&nCe(r,o,!1,h,T)}function nCe(r,o,_,h,T){if(Pa(h))return!0;if(T.valueDeclaration&&B_(T.valueDeclaration)){let C=Lu(T.valueDeclaration);return!b_(r)&&!!Dr(r,w=>w===C)}return g$e(r,o,_,h,T)}function o9t(r){let o=r.initializer;if(o.kind===261){let _=o.declarations[0];if(_&&!$s(_.name))return Un(_)}else if(o.kind===80)return yf(o)}function a9t(r){return Q_(r).length===1&&!!Hy(r,be)}function c9t(r){let o=ba(r);if(o.kind===80){let _=yf(o);if(_.flags&3){let h=r,T=r.parent;for(;T;){if(T.kind===249&&h===T.statement&&o9t(T)===_&&a9t(n_(T.expression)))return!0;h=T,T=T.parent}}}return!1}function l9t(r,o){return r.flags&64?u9t(r,o):I$e(r,ZD(r.expression),o)}function u9t(r,o){let _=ys(r.expression),h=zL(_,r.expression);return Pre(I$e(r,gh(h,r.expression),o),r,h!==_)}function I$e(r,o,_){let h=fT(r)!==0||K2e(r)?ep(o):o,T=r.argumentExpression,C=ys(T);if(la(h)||h===Rn)return h;if(dne(h)&&!Ia(T))return Ze(T,v.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Oe;let w=c9t(T)?be:C,V=fT(r),H;V===0?H=32:(H=4|(X2(h)&&!pO(h)?2:0),V===2&&(H|=32));let X=IS(h,w,H,r)||Oe;return FYe(b$e(r,Wn(r).resolvedSymbol,X,T,_),r)}function w$e(r){return Ig(r)||hE(r)||p_(r)}function cC(r){return w$e(r)&&Et(r.typeArguments,Uo),r.kind===215?ys(r.template):p_(r)?ys(r.attributes):Dn(r)?ys(r.left):Ig(r)&&Et(r.arguments,o=>{ys(o)}),Se}function hh(r){return cC(r),oe}function _9t(r,o,_){let h,T,C=0,w,V=-1,H;M.assert(!o.length);for(let X of r){let _e=X.declaration&&Un(X.declaration),Ie=X.declaration&&X.declaration.parent;!T||_e===T?h&&Ie===h?w=w+1:(h=Ie,w=C):(w=C=o.length,h=Ie),T=_e,kK(X)?(V++,H=V,C++):H=w,o.splice(H,0,_?ZRt(X,_):X)}}function ine(r){return!!r&&(r.kind===230||r.kind===237&&r.isSpread)}function iCe(r){return Va(r,ine)}function O$e(r){return!!(r.flags&16384)}function f9t(r){return!!(r.flags&49155)}function sne(r,o,_,h=!1){let T,C=!1,w=rp(_),V=vh(_);if(r.kind===215)if(T=o.length,r.template.kind===228){let H=qo(r.template.templateSpans);C=Gc(H.literal)||!!H.literal.isUnterminated}else{let H=r.template;M.assert(H.kind===15),C=!!H.isUnterminated}else if(r.kind===170)T=V$e(r,_);else if(r.kind===226)T=1;else if(p_(r)){if(C=r.attributes.end===r.end,C)return!0;T=V===0?o.length:1,w=o.length===0?w:1,V=Math.min(V,1)}else if(r.arguments){T=h?o.length+1:o.length,C=r.arguments.end===r.end;let H=iCe(o);if(H>=0)return H>=vh(_)&&(ly(_)||Hw)return!1;if(C||T>=V)return!0;for(let H=T;H=h&&o.length<=_}function R$e(r,o){let _;return!!(r.target&&(_=ux(r.target,o))&&Gk(_))}function lC(r){return t7(r,0,!1)}function M$e(r){return t7(r,0,!1)||t7(r,1,!1)}function t7(r,o,_){if(r.flags&524288){let h=vg(r);if(_||h.properties.length===0&&h.indexInfos.length===0){if(o===0&&h.callSignatures.length===1&&h.constructSignatures.length===0)return h.callSignatures[0];if(o===1&&h.constructSignatures.length===1&&h.callSignatures.length===0)return h.constructSignatures[0]}}}function L$e(r,o,_,h){let T=HL(r.typeParameters,r,0,h),C=r7(o),w=_&&(C&&C.flags&262144?_.nonFixingMapper:_.mapper),V=w?Yk(o,w):o;return s2e(V,r,(H,X)=>{iv(T.inferences,H,X)}),_||o2e(o,r,(H,X)=>{iv(T.inferences,H,X,128)}),IL(r,y2e(T),vn(o.declaration))}function p9t(r,o,_,h){let T=Kre(o,r),C=rI(r.attributes,T,h,_);return iv(h.inferences,C,T),y2e(h)}function F$e(r){if(!r)return gn;let o=ys(r);return Wfe(r)?o:fw(r.parent)?rv(o):b_(r.parent)?kre(o):o}function oCe(r,o,_,h,T){if(p_(r))return p9t(r,o,h,T);if(r.kind!==170&&r.kind!==226){let H=Oi(o.typeParameters,_e=>!!H2(_e)),X=vf(r,H?8:0);if(X){let _e=Na(o);if(FS(_e)){let Ie=cx(r);if(!(!H&&vf(r,8)!==X)){let Lt=u2e(b7t(Ie,1)),hr=cs(X,Lt),Er=lC(hr),rn=Er&&Er.typeParameters?$2(sxe(Er,Er.typeParameters)):hr;iv(T.inferences,rn,_e,128)}let dt=HL(o.typeParameters,o,T.flags),Ct=cs(X,Ie&&Ie.returnMapper);iv(dt.inferences,Ct,_e),T.returnMapper=Dt(dt.inferences,nI)?u2e(A7t(dt)):void 0}}}let C=n7(o),w=C?Math.min(rp(o)-1,_.length):_.length;if(C&&C.flags&262144){let H=jn(T.inferences,X=>X.typeParameter===C);H&&(H.impliedArity=Va(_,ine,w)<0?_.length-w:void 0)}let V=mb(o);if(V&&FS(V)){let H=U$e(r);iv(T.inferences,F$e(H),V)}for(let H=0;H=_-1){let _e=r[_-1];if(ine(_e)){let Ie=_e.kind===237?_e.type:rI(_e.expression,h,T,C);return h1(Ie)?j$e(Ie):y_(v1(33,Ie,sr,_e.kind===230?_e.expression:_e),w)}}let V=[],H=[],X=[];for(let _e=o;_e<_;_e++){let Ie=r[_e];if(ine(Ie)){let Ne=Ie.kind===237?Ie.type:ys(Ie.expression);h1(Ne)?(V.push(Ne),H.push(8)):(V.push(v1(33,Ne,sr,Ie.kind===230?Ie.expression:Ie)),H.push(4))}else{let Ne=Yo(h)?B2e(h,_e-o,_-o)||Mt:Qf(h,zm(_e-o),256),dt=rI(Ie,Ne,T,C),Ct=w||ml(Ne,406978556);V.push(Ct?Z_(dt):Sb(dt)),H.push(1)}Ie.kind===237&&Ie.tupleNameSource?X.push(Ie.tupleNameSource):X.push(void 0)}return ay(V,H,w&&!vm(h,Zxe),X)}function cCe(r,o,_,h){let T=vn(r.declaration),C=r.typeParameters,w=NS(kr(o,Gi),C,fh(C),T),V;for(let H=0;HBs(void 0,v.Type_0_does_not_satisfy_the_constraint_1):void 0,Ie=h||v.Type_0_does_not_satisfy_the_constraint_1;V||(V=Zf(C,w));let Ne=w[H];if(!R_(Ne,Ep(cs(X,V),Ne),_?o[H]:void 0,Ie,_e))return}}return w}function B$e(r){if(eP(r.tagName))return 2;let o=X_(ys(r.tagName));return kt(Ks(o,1))?0:kt(Ks(o,0))?1:2}function d9t(r,o,_,h,T,C,w){let V=Kre(o,r),H=rI(r.attributes,V,void 0,h),X=h&4?GL(H):H;return _e()&&qxe(X,V,_,T?r.tagName:void 0,r.attributes,void 0,C,w);function _e(){var Ie;if(z2e(r))return!0;let Ne=($g(r)||u2(r))&&!(eP(r.tagName)||ig(r.tagName))?ys(r.tagName):void 0;if(!Ne)return!0;let dt=Ks(Ne,0);if(!kt(dt))return!0;let Ct=qKe(r);if(!Ct)return!0;let Lt=nl(Ct,111551,!0,!1,r);if(!Lt)return!0;let hr=yn(Lt),Er=Ks(hr,0);if(!kt(Er))return!0;let rn=!1,Bn=0;for(let Gr of Er){let en=Eg(Gr,0),$n=Ks(en,0);if(kt($n))for(let oi of $n){if(rn=!0,ly(oi))return!0;let ai=rp(oi);ai>Bn&&(Bn=ai)}}if(!rn)return!0;let wr=1/0;for(let Gr of dt){let en=vh(Gr);en{T.push(C.expression)}),T}if(r.kind===170)return m9t(r);if(r.kind===226)return[r.left];if(p_(r))return r.attributes.properties.length>0||$g(r)&&r.parent.children.length>0?[r.attributes]:ve;let o=r.arguments||ve,_=iCe(o);if(_>=0){let h=o.slice(0,_);for(let T=_;T{var X;let _e=w.target.elementFlags[H],Ie=gq(C,_e&4?y_(V):V,!!(_e&12),(X=w.target.labeledElementDeclarations)==null?void 0:X[H]);h.push(Ie)}):h.push(C)}return h}return o}function m9t(r){let o=r.expression,_=SCe(r);if(_){let h=[];for(let T of _.parameters){let C=yn(T);h.push(gq(o,C))}return h}return M.fail()}function V$e(r,o){return q.experimentalDecorators?g9t(r,o):Math.min(Math.max(rp(o),1),2)}function g9t(r,o){switch(r.parent.kind){case 263:case 231:return 1;case 172:return Bg(r.parent)?3:2;case 174:case 177:case 178:return o.parameters.length<=2?2:3;case 169:return 3;default:return M.fail()}}function J$e(r){let o=Jr(r),{start:_,length:h}=Yx(o,Hn(r.expression)?r.expression.name:r.expression);return{start:_,length:h,sourceFile:o}}function hq(r,o,..._){if(to(r)){let{sourceFile:h,start:T,length:C}=J$e(r);return"message"in o?bu(h,T,C,o,..._):bH(h,o)}else return"message"in o?mn(r,o,..._):Ay(Jr(r),r,o)}function h9t(r){return Ig(r)?Hn(r.expression)?r.expression.name:r.expression:hE(r)?Hn(r.tag)?r.tag.name:r.tag:p_(r)?r.tagName:r}function y9t(r){if(!to(r)||!$e(r.expression))return!1;let o=Ar(r.expression,r.expression.escapedText,111551,void 0,!1),_=o?.valueDeclaration;if(!_||!is(_)||!K1(_.parent)||!gE(_.parent.parent)||!$e(_.parent.parent.expression))return!1;let h=gxe(!1);return h?Sm(_.parent.parent.expression,!0)===h:!1}function q$e(r,o,_,h){var T;let C=iCe(_);if(C>-1)return mn(_[C],v.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let w=Number.POSITIVE_INFINITY,V=Number.NEGATIVE_INFINITY,H=Number.NEGATIVE_INFINITY,X=Number.POSITIVE_INFINITY,_e;for(let Lt of o){let hr=vh(Lt),Er=rp(Lt);hrH&&(H=hr),_.lengthT?w=Math.min(w,H):X1&&(Bn=en(Ne,nh,Ct,wr)),Bn||(Bn=en(Ne,Lf,Ct,wr)),Bn)return Bn;if(Bn=S9t(r,Ne,dt,!!_,h),Wn(r).resolvedSignature=Bn,_e)if(!C&&X&&(C=v.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),hr)if(hr.length===1||hr.length>3){let $n=hr[hr.length-1],oi;hr.length>3&&(oi=Bs(oi,v.The_last_overload_gave_the_following_error),oi=Bs(oi,v.No_overload_matches_this_call)),C&&(oi=Bs(oi,C));let ai=mq(r,dt,$n,Lf,0,!0,()=>oi,void 0);if(ai)for(let Co of ai)$n.declaration&&hr.length>3&&lo(Co,mn($n.declaration,v.The_last_overload_is_declared_here)),Gr($n,Co),da.add(Co);else M.fail("No error for last overload signature")}else{let $n=[],oi=0,ai=Number.MAX_VALUE,Co=0,Xs=0;for(let sl of hr){let sn=mq(r,dt,sl,Lf,0,!0,()=>Bs(void 0,v.Overload_0_of_1_2_gave_the_following_error,Xs+1,Ne.length,bS(sl)),void 0);sn?(sn.length<=ai&&(ai=sn.length,Co=Xs),oi=Math.max(oi,sn.length),$n.push(sn)):M.fail("No error for 3 or fewer overload signatures"),Xs++}let oa=oi>1?$n[Co]:rf($n);M.assert(oa.length>0,"No errors reported for 3 or fewer overload signatures");let Rs=Bs(kr(oa,U_e),v.No_overload_matches_this_call);C&&(Rs=Bs(Rs,C));let Rc=[...To(oa,sl=>sl.relatedInformation)],i_;if(Oi(oa,sl=>sl.start===oa[0].start&&sl.length===oa[0].length&&sl.file===oa[0].file)){let{file:sl,start:zr,length:sn}=oa[0];i_={file:sl,start:zr,length:sn,code:Rs.code,category:Rs.category,messageText:Rs,relatedInformation:Rc}}else i_=Ay(Jr(r),h9t(r),Rs,Rc);Gr(hr[0],i_),da.add(i_)}else if(Er)da.add(q$e(r,[Er],dt,C));else if(rn)cCe(rn,r.typeArguments,!0,C);else{let $n=ti(o,oi=>sCe(oi,Ie));$n.length===0?da.add(v9t(r,o,Ie,C)):da.add(q$e(r,$n,dt,C))}return Bn;function Gr($n,oi){var ai,Co;let Xs=hr,oa=Er,Rs=rn,Rc=((Co=(ai=$n.declaration)==null?void 0:ai.symbol)==null?void 0:Co.declarations)||ve,sl=Rc.length>1?jn(Rc,zr=>$a(zr)&&Kd(zr.body)):void 0;if(sl){let zr=gd(sl),sn=!zr.typeParameters;en([zr],Lf,sn)&&lo(oi,mn(sl,v.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}hr=Xs,Er=oa,rn=Rs}function en($n,oi,ai,Co=!1){var Xs,oa;if(hr=void 0,Er=void 0,rn=void 0,ai){let Rs=$n[0];if(Dt(Ie)||!sne(r,dt,Rs,Co))return;if(mq(r,dt,Rs,oi,0,!1,void 0,void 0)){hr=[Rs];return}return Rs}for(let Rs=0;Rs<$n.length;Rs++){let Rc=$n[Rs];if(!sCe(Rc,Ie)||!sne(r,dt,Rc,Co))continue;let i_,sl;if(Rc.typeParameters){let sn=((oa=(Xs=Rc.typeParameters[0].symbol.declarations)==null?void 0:Xs[0])==null?void 0:oa.parent)||(Rc.declaration&&Vc(Rc.declaration)?Rc.declaration.parent:Rc.declaration);sn&&Dr(r,wn=>wn===sn)&&(Rc=VMt(Rc));let Hi;if(Dt(Ie)){if(Hi=cCe(Rc,Ie,!1),!Hi){rn=Rc;continue}}else sl=HL(Rc.typeParameters,Rc,vn(r)?2:0),Hi=$y(oCe(r,Rc,dt,Lt|8,sl),sl.nonFixingMapper),Lt|=sl.flags&4?8:0;if(i_=IL(Rc,Hi,vn(Rc.declaration),sl&&sl.inferredTypeParameters),n7(Rc)&&!sne(r,dt,i_,Co)){Er=i_;continue}}else i_=Rc;if(mq(r,dt,i_,oi,Lt,!1,void 0,sl)){(hr||(hr=[])).push(i_);continue}if(Lt){if(Lt=0,sl){let zr=$y(oCe(r,Rc,dt,Lt,sl),sl.mapper);if(i_=IL(Rc,zr,vn(Rc.declaration),sl.inferredTypeParameters),n7(Rc)&&!sne(r,dt,i_,Co)){Er=i_;continue}}if(mq(r,dt,i_,oi,Lt,!1,void 0,sl)){(hr||(hr=[])).push(i_);continue}}return $n[Rs]=i_,i_}}}function S9t(r,o,_,h,T){return M.assert(o.length>0),tP(r),h||o.length===1||o.some(C=>!!C.typeParameters)?E9t(r,o,_,T):T9t(o)}function T9t(r){let o=Yi(r,H=>H.thisParameter),_;o.length&&(_=z$e(o,o.map(Sq)));let{min:h,max:T}=Ppe(r,b9t),C=[];for(let H=0;HC_(_e)?H<_e.parameters.length-1?_e.parameters[H]:qo(_e.parameters):H<_e.parameters.length?_e.parameters[H]:void 0);M.assert(X.length!==0),C.push(z$e(X,Yi(r,_e=>ux(_e,H))))}let w=Yi(r,H=>C_(H)?qo(H.parameters):void 0),V=128;if(w.length!==0){let H=y_(gi(Yi(r,dWe),2));C.push(W$e(w,H)),V|=1}return r.some(kK)&&(V|=2),Gy(r[0].declaration,void 0,_,C,wo(r.map(Na)),void 0,h,V)}function b9t(r){let o=r.parameters.length;return C_(r)?o-1:o}function z$e(r,o){return W$e(r,gi(o,2))}function W$e(r,o){return tC(Fo(r),o)}function E9t(r,o,_,h){let T=A9t(o,gt===void 0?_.length:gt),C=o[T],{typeParameters:w}=C;if(!w)return C;let V=w$e(r)?r.typeArguments:void 0,H=V?Kte(C,x9t(V,w,vn(r))):C9t(r,w,C,_,h);return o[T]=H,H}function x9t(r,o,_){let h=r.map(rP);for(;h.length>o.length;)h.pop();for(;h.length=o)return T;w>h&&(h=w,_=T)}return _}function k9t(r,o,_){if(r.expression.kind===108){let H=Wre(r.expression);if(Pa(H)){for(let X of r.arguments)ys(X);return Se}if(!la(H)){let X=Lg(Lu(r));if(X){let _e=pb(H,X.typeArguments,X);return eI(r,_e,o,_,0)}}return cC(r)}let h,T=ys(r.expression);if(qx(r)){let H=zL(T,r.expression);h=H===T?0:pw(r)?16:8,T=H}else h=0;if(T=y$e(T,r.expression,W5t),T===Rn)return Rt;let C=X_(T);if(la(C))return hh(r);let w=Ks(C,0),V=Ks(C,1).length;if(yq(T,C,w.length,V))return!la(T)&&r.typeArguments&&Ze(r,v.Untyped_function_calls_may_not_accept_type_arguments),cC(r);if(!w.length){if(V)Ze(r,v.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,_n(T));else{let H;if(r.arguments.length===1){let X=Jr(r).text;T_(X.charCodeAt(zo(X,r.expression.end,!0)-1))&&(H=mn(r.expression,v.Are_you_missing_a_semicolon))}uCe(r.expression,C,0,H)}return hh(r)}return _&8&&!r.typeArguments&&w.some(P9t)?(AYe(r,_),Ke):w.some(H=>vn(H.declaration)&&!!jG(H.declaration))?(Ze(r,v.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,_n(T)),hh(r)):eI(r,w,o,_,h)}function P9t(r){return!!(r.typeParameters&&nAe(Na(r)))}function yq(r,o,_,h){return Pa(r)||Pa(o)&&!!(r.flags&262144)||!_&&!h&&!(o.flags&1048576)&&!(Sg(o).flags&131072)&&yo(r,Gl)}function N9t(r,o,_){let h=ZD(r.expression);if(h===Rn)return Rt;if(h=X_(h),la(h))return hh(r);if(Pa(h))return r.typeArguments&&Ze(r,v.Untyped_function_calls_may_not_accept_type_arguments),cC(r);let T=Ks(h,1);if(T.length){if(!D9t(r,T[0]))return hh(r);if(G$e(T,V=>!!(V.flags&4)))return Ze(r,v.Cannot_create_an_instance_of_an_abstract_class),hh(r);let w=h.symbol&&T0(h.symbol);return w&&_i(w,64)?(Ze(r,v.Cannot_create_an_instance_of_an_abstract_class),hh(r)):eI(r,T,o,_,0)}let C=Ks(h,0);if(C.length){let w=eI(r,C,o,_,0);return de||(w.declaration&&!yh(w.declaration)&&Na(w)!==gn&&Ze(r,v.Only_a_void_function_can_be_called_with_the_new_keyword),mb(w)===gn&&Ze(r,v.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),w}return uCe(r.expression,h,1),hh(r)}function G$e(r,o){return Ms(r)?Dt(r,_=>G$e(_,o)):r.compositeKind===1048576?Dt(r.compositeSignatures,o):o(r)}function lCe(r,o){let _=mi(o);if(!kt(_))return!1;let h=_[0];if(h.flags&2097152){let T=h.types,C=Yze(T),w=0;for(let V of h.types){if(!C[w]&&Qn(V)&3&&(V.symbol===r||lCe(r,V)))return!0;w++}return!1}return h.symbol===r?!0:lCe(r,h)}function D9t(r,o){if(!o||!o.declaration)return!0;let _=o.declaration,h=pA(_,6);if(!h||_.kind!==176)return!0;let T=T0(_.parent.symbol),C=oc(_.parent.symbol);if(!QCe(r,T)){let w=Lu(r);if(w&&h&4){let V=rP(w);if(lCe(_.parent.symbol,V))return!0}return h&2&&Ze(r,v.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,_n(C)),h&4&&Ze(r,v.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,_n(C)),!1}return!0}function H$e(r,o,_){let h,T=_===0,C=_C(o),w=C&&Ks(C,_).length>0;if(o.flags&1048576){let H=o.types,X=!1;for(let _e of H)if(Ks(_e,_).length!==0){if(X=!0,h)break}else if(h||(h=Bs(h,T?v.Type_0_has_no_call_signatures:v.Type_0_has_no_construct_signatures,_n(_e)),h=Bs(h,T?v.Not_all_constituents_of_type_0_are_callable:v.Not_all_constituents_of_type_0_are_constructable,_n(o))),X)break;X||(h=Bs(void 0,T?v.No_constituent_of_type_0_is_callable:v.No_constituent_of_type_0_is_constructable,_n(o))),h||(h=Bs(h,T?v.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:v.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,_n(o)))}else h=Bs(h,T?v.Type_0_has_no_call_signatures:v.Type_0_has_no_construct_signatures,_n(o));let V=T?v.This_expression_is_not_callable:v.This_expression_is_not_constructable;if(to(r.parent)&&r.parent.arguments.length===0){let{resolvedSymbol:H}=Wn(r);H&&H.flags&32768&&(V=v.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:Bs(h,V),relatedMessage:w?v.Did_you_forget_to_use_await:void 0}}function uCe(r,o,_,h){let{messageChain:T,relatedMessage:C}=H$e(r,o,_),w=Ay(Jr(r),r,T);if(C&&lo(w,mn(r,C)),to(r.parent)){let{start:V,length:H}=J$e(r.parent);w.start=V,w.length=H}da.add(w),$$e(o,_,h?lo(w,h):w)}function $$e(r,o,_){if(!r.symbol)return;let h=as(r.symbol).originatingImport;if(h&&!Dp(h)){let T=Ks(yn(as(r.symbol).target),o);if(!T||!T.length)return;lo(_,mn(h,v.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function I9t(r,o,_){let h=ys(r.tag),T=X_(h);if(la(T))return hh(r);let C=Ks(T,0),w=Ks(T,1).length;if(yq(h,T,C.length,w))return cC(r);if(!C.length){if(Ku(r.parent)){let V=mn(r.tag,v.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return da.add(V),hh(r)}return uCe(r.tag,T,0),hh(r)}return eI(r,C,o,_,0)}function w9t(r){switch(r.parent.kind){case 263:case 231:return v.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return v.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return v.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return v.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return M.fail()}}function O9t(r,o,_){let h=ys(r.expression),T=X_(h);if(la(T))return hh(r);let C=Ks(T,0),w=Ks(T,1).length;if(yq(h,T,C.length,w))return cC(r);if(L9t(r,C)&&!ff(r.expression)){let H=Hc(r.expression,!1);return Ze(r,v._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,H),hh(r)}let V=w9t(r);if(!C.length){let H=H$e(r.expression,T,0),X=Bs(H.messageChain,V),_e=Ay(Jr(r.expression),r.expression,X);return H.relatedMessage&&lo(_e,mn(r.expression,H.relatedMessage)),da.add(_e),$$e(T,0,_e),hh(r)}return eI(r,C,o,_,0,V)}function cne(r,o){let _=aC(r),h=_&&Mp(_),T=h&&h_(h,Qp.Element,788968),C=T&&Ve.symbolToEntityName(T,788968,r),w=U.createFunctionTypeNode(void 0,[U.createParameterDeclaration(void 0,void 0,"props",void 0,Ve.typeToTypeNode(o,r))],C?U.createTypeReferenceNode(C,void 0):U.createKeywordTypeNode(133)),V=ta(1,"props");return V.links.type=o,Gy(w,void 0,void 0,[V],T?oc(T):Oe,void 0,1,0)}function R9t(r,o,_){if(eP(r.tagName)){let w=f$e(r),V=cne(r,w);return RS(rI(r.attributes,Kre(V,r),void 0,0),w,r.tagName,r.attributes),kt(r.typeArguments)&&(Et(r.typeArguments,Uo),da.add(zP(Jr(r),r.typeArguments,v.Expected_0_type_arguments_but_got_1,0,kt(r.typeArguments)))),V}let h=ys(r.tagName),T=X_(h);if(la(T))return hh(r);let C=u$e(h,r);return yq(h,T,C.length,0)?cC(r):C.length===0?(Ze(r.tagName,v.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Hc(r.tagName)),hh(r)):eI(r,C,o,_,0)}function M9t(r,o,_){let h=ys(r.right);if(!Pa(h)){let T=CCe(h);if(T){let C=X_(T);if(la(C))return hh(r);let w=Ks(C,0),V=Ks(C,1);if(yq(T,C,w.length,V.length))return cC(r);if(w.length)return eI(r,w,o,_,0)}else if(!(Rne(h)||OS(h,Gl)))return Ze(r.right,v.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),hh(r)}return Se}function L9t(r,o){return o.length&&Oi(o,_=>_.minArgumentCount===0&&!C_(_)&&_.parameters.length1?vl(r.arguments[1]):void 0;for(let C=2;C{let w=ep(T);gre(C,w)||PGe(T,C,_,v.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function W9t(r){let o=ys(r.expression),_=zL(o,r.expression);return Pre(rv(_),r,_!==o)}function G9t(r){return r.flags&64?W9t(r):rv(ys(r.expression))}function tYe(r){if(GKe(r),Et(r.typeArguments,Uo),r.kind===233){let _=h0(r.parent);_.kind===226&&_.operatorToken.kind===104&&rE(r,_.right)&&Ze(r,v.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let o=r.kind===233?ys(r.expression):z1(r.exprName)?sq(r.exprName):ys(r.exprName);return rYe(o,r)}function rYe(r,o){let _=o.typeArguments;if(r===Rn||la(r)||!Dt(_))return r;let h=!1,T,C=V(r),w=h?T:r;return w&&da.add(zP(Jr(o),_,v.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,_n(w))),C;function V(X){let _e=!1,Ie=!1,Ne=dt(X);return h||(h=Ie),_e&&!Ie&&(T??(T=X)),Ne;function dt(Ct){if(Ct.flags&524288){let Lt=vg(Ct),hr=H(Lt.callSignatures),Er=H(Lt.constructSignatures);if(_e||(_e=Lt.callSignatures.length!==0||Lt.constructSignatures.length!==0),Ie||(Ie=hr.length!==0||Er.length!==0),hr!==Lt.callSignatures||Er!==Lt.constructSignatures){let rn=tr(ta(0,"__instantiationExpression"),Lt.members,hr,Er,Lt.indexInfos);return rn.objectFlags|=8388608,rn.node=o,rn}}else if(Ct.flags&58982400){let Lt=t_(Ct);if(Lt){let hr=dt(Lt);if(hr!==Lt)return hr}}else{if(Ct.flags&1048576)return Dc(Ct,V);if(Ct.flags&2097152)return wo(js(Ct.types,dt))}return Ct}}function H(X){let _e=ti(X,Ie=>!!Ie.typeParameters&&sCe(Ie,_));return js(_e,Ie=>{let Ne=cCe(Ie,_,!0);return Ne?IL(Ie,Ne,vn(Ie.declaration)):Ie})}}function H9t(r){return Uo(r.type),dCe(r.expression,r.type)}function dCe(r,o,_){let h=ys(r,_),T=Gi(o);if(la(T))return T;let C=Dr(o.parent,w=>w.kind===238||w.kind===350);return RS(h,T,C,r,v.Type_0_does_not_satisfy_the_expected_type_1),h}function $9t(r){return HJt(r),r.keywordToken===105?mCe(r):r.keywordToken===102?Y9t(r):M.assertNever(r.keywordToken)}function nYe(r){switch(r.keywordToken){case 102:return NWe();case 105:let o=mCe(r);return la(o)?Oe:fjt(o);default:M.assertNever(r.keywordToken)}}function mCe(r){let o=sfe(r);if(o)if(o.kind===176){let _=Un(o.parent);return yn(_)}else{let _=Un(o);return yn(_)}else return Ze(r,v.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Oe}function Y9t(r){W===100||W===199?Jr(r).impliedNodeFormat!==99&&Ze(r,v.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):W<6&&W!==4&&Ze(r,v.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let o=Jr(r);return M.assert(!!(o.flags&8388608),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?PWe():Oe}function Sq(r){let o=r.valueDeclaration;return go(yn(r),!1,!!o&&(bv(o)||mN(o)))}function gCe(r,o,_="arg"){return r?(M.assert($e(r.name)),r.name.escapedText):`${_}_${o}`}function l4(r,o,_){let h=r.parameters.length-(C_(r)?1:0);if(o=h-1)return o===h-1?C:y_(Qf(C,be));let w=[],V=[],H=[];for(let X=o;X!(H&1)),V=w<0?C.target.fixedLength:w;V>0&&(T=r.parameters.length-1+V)}}if(T===void 0){if(!_&&r.flags&32)return 0;T=r.minArgumentCount}if(h)return T;for(let C=T-1;C>=0;C--){let w=Eg(r,C);if(Fl(w,O$e).flags&131072)break;T=C}r.resolvedMinArgumentCount=T}return r.resolvedMinArgumentCount}function ly(r){if(C_(r)){let o=yn(r.parameters[r.parameters.length-1]);return!Yo(o)||o.target.hasRestElement}return!1}function r7(r){if(C_(r)){let o=yn(r.parameters[r.parameters.length-1]);if(!Yo(o))return Pa(o)?Ja:o;if(o.target.hasRestElement)return t4(o,o.target.fixedLength)}}function n7(r){let o=r7(r);return o&&!qd(o)&&!Pa(o)?o:void 0}function hCe(r){return yCe(r,Pr)}function yCe(r,o){return r.parameters.length>0?Eg(r,0):o}function aYe(r,o,_){let h=r.parameters.length-(C_(r)?1:0);for(let T=0;T=0);let C=Vc(h.parent)?yn(Un(h.parent.parent)):wKe(h.parent),w=Vc(h.parent)?sr:OKe(h.parent),V=zm(T),H=Lm("target",C),X=Lm("propertyKey",w),_e=Lm("parameterIndex",V);_.decoratorSignature=u7(void 0,void 0,[H,X,_e],gn);break}case 174:case 177:case 178:case 172:{let h=o;if(!vi(h.parent))break;let T=wKe(h),C=Lm("target",T),w=OKe(h),V=Lm("propertyKey",w),H=Ds(h)?gn:LWe(rP(h));if(!Ds(o)||Bg(o)){let _e=LWe(rP(h)),Ie=Lm("descriptor",_e);_.decoratorSignature=u7(void 0,void 0,[C,V,Ie],gi([H,gn]))}else _.decoratorSignature=u7(void 0,void 0,[C,V],gi([H,gn]));break}}return _.decoratorSignature===Se?void 0:_.decoratorSignature}function SCe(r){return pe?_jt(r):ujt(r)}function Eq(r){let o=DJ(!0);return o!==Bo?(r=y1(d4(r))||Mt,f1(o,[r])):Mt}function uYe(r){let o=OWe(!0);return o!==Bo?(r=y1(d4(r))||Mt,f1(o,[r])):Mt}function xq(r,o){let _=Eq(o);return _===Mt?(Ze(r,Dp(r)?v.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:v.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Oe):(gxe(!0)||Ze(r,Dp(r)?v.A_dynamic_import_call_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:v.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),_)}function fjt(r){let o=ta(0,"NewTargetExpression"),_=ta(4,"target",8);_.parent=o,_.links.type=r;let h=po([_]);return o.members=h,tr(o,h,ve,ve,ve)}function _ne(r,o){if(!r.body)return Oe;let _=Rl(r),h=(_&2)!==0,T=(_&1)!==0,C,w,V,H=gn;if(r.body.kind!==241)C=vl(r.body,o&&o&-9),h&&(C=d4(l7(C,!1,r,v.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(T){let X=dYe(r,o);X?X.length>0&&(C=gi(X,2)):H=Pr;let{yieldTypes:_e,nextTypes:Ie}=pjt(r,o);w=Dt(_e)?gi(_e,2):void 0,V=Dt(Ie)?wo(Ie):void 0}else{let X=dYe(r,o);if(!X)return _&2?xq(r,Pr):Pr;if(X.length===0){let _e=Gre(r,void 0),Ie=_e&&(Rq(_e,_)||gn).flags&32768?sr:gn;return _&2?xq(r,Ie):Ie}C=gi(X,2)}if(C||w||V){if(w&&wre(r,w,3),C&&wre(r,C,1),V&&wre(r,V,2),C&&Tg(C)||w&&Tg(w)||V&&Tg(V)){let X=V2e(r),_e=X?X===gd(r)?T?void 0:C:$re(Na(X),r,void 0):void 0;T?(w=n2e(w,_e,0,h),C=n2e(C,_e,1,h),V=n2e(V,_e,2,h)):C=u7t(C,_e,h)}w&&(w=ep(w)),C&&(C=ep(C)),V&&(V=ep(V))}return T?fne(w||Pr,C||H,V||KHe(2,r)||Mt,h):h?Eq(C||H):C||H}function fne(r,o,_,h){let T=h?Io:mc,C=T.getGlobalGeneratorType(!1);if(r=T.resolveIterationType(r,void 0)||Mt,o=T.resolveIterationType(o,void 0)||Mt,_=T.resolveIterationType(_,void 0)||Mt,C===Bo){let w=T.getGlobalIterableIteratorType(!1),V=w!==Bo?eKe(w,T):void 0,H=V?V.returnType:Me,X=V?V.nextType:sr;return yo(o,H)&&yo(X,_)?w!==Bo?OL(w,[r]):(T.getGlobalIterableIteratorType(!0),Wi):(T.getGlobalGeneratorType(!0),Wi)}return OL(C,[r,o,_])}function pjt(r,o){let _=[],h=[],T=(Rl(r)&2)!==0;return H_e(r.body,C=>{let w=C.expression?ys(C.expression,o):Z;cl(_,_Ye(C,w,Me,T));let V;if(C.asteriskToken){let H=Ane(w,T?19:17,C.expression);V=H&&H.nextType}else V=vf(C,void 0);V&&cl(h,V)}),{yieldTypes:_,nextTypes:h}}function _Ye(r,o,_,h){let T=r.expression||r,C=r.asteriskToken?v1(h?19:17,o,_,T):o;return h?_C(C,T,r.asteriskToken?v.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:v.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):C}function fYe(r,o,_){let h=0;for(let T=0;T<_.length;T++){let C=T=o?_[T]:void 0;h|=C!==void 0?Lge.get(C)||32768:0}return h}function pYe(r){let o=Wn(r);if(o.isExhaustive===void 0){o.isExhaustive=0;let _=djt(r);o.isExhaustive===0&&(o.isExhaustive=_)}else o.isExhaustive===0&&(o.isExhaustive=!1);return o.isExhaustive}function djt(r){if(r.expression.kind===221){let h=THe(r);if(!h)return!1;let T=sy(vl(r.expression.expression)),C=fYe(0,0,h);return T.flags&3?(556800&C)===556800:!vm(T,w=>YD(w,C)===C)}let o=vl(r.expression);if(!qL(o))return!1;let _=Fre(r);return!_.length||Dt(_,a7t)?!1:oFt(Dc(o,Z_),_)}function TCe(r){return r.endFlowNode&&tq(r.endFlowNode)}function dYe(r,o){let _=Rl(r),h=[],T=TCe(r),C=!1;if(Cv(r.body,w=>{let V=w.expression;if(V){if(V=ba(V,!0),_&2&&V.kind===223&&(V=ba(V.expression,!0)),V.kind===213&&V.expression.kind===80&&vl(V.expression).symbol===sa(r.symbol)&&(!K1(r.symbol.valueDeclaration)||k2e(V.expression))){C=!0;return}let H=vl(V,o&&o&-9);_&2&&(H=d4(l7(H,!1,r,v.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),H.flags&131072&&(C=!0),cl(h,H)}else T=!0}),!(h.length===0&&!T&&(C||mjt(r))))return ce&&h.length&&T&&!(yh(r)&&h.some(w=>w.symbol===r.symbol))&&cl(h,sr),h}function mjt(r){switch(r.kind){case 218:case 219:return!0;case 174:return r.parent.kind===210;default:return!1}}function gjt(r){switch(r.kind){case 176:case 177:case 178:return}if(Rl(r)!==0)return;let _;if(r.body&&r.body.kind!==241)_=r.body;else if(Cv(r.body,T=>{if(_||!T.expression)return!0;_=T.expression})||!_||TCe(r))return;return hjt(r,_)}function hjt(r,o){if(o=ba(o,!0),!!(vl(o).flags&16))return Et(r.parameters,(h,T)=>{let C=yn(h.symbol);if(!C||C.flags&16||!$e(h.name)||nq(h.symbol)||Lh(h))return;let w=yjt(r,o,h,C);if(w)return DL(1,Zi(h.name.escapedText),T,w)})}function yjt(r,o,_,h){let T=o.flowNode||o.parent.kind===253&&o.parent.flowNode||zh(2,void 0,void 0),C=zh(32,o,T),w=sv(_.name,h,h,r,C);if(w===h)return;let V=zh(64,o,T);return sv(_.name,h,w,r,V).flags&131072?w:void 0}function bCe(r,o){n(_);return;function _(){let h=Rl(r),T=o&&Rq(o,h);if(T&&(ml(T,16384)||T.flags&32769)||r.kind===173||Gc(r.body)||r.body.kind!==241||!TCe(r))return;let C=r.flags&1024,w=_p(r)||r;if(T&&T.flags&131072)Ze(w,v.A_function_returning_never_cannot_have_a_reachable_end_point);else if(T&&!C)Ze(w,v.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(T&&ce&&!yo(sr,T))Ze(w,v.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(q.noImplicitReturns){if(!T){if(!C)return;let V=Na(gd(r));if(aKe(r,V))return}Ze(w,v.Not_all_code_paths_return_a_value)}}}function mYe(r,o){if(M.assert(r.kind!==174||Nm(r)),tP(r),ic(r)&&m4(r,r.name),o&&o&4&&Vd(r)){if(!_p(r)&&!vj(r)){let h=ZL(r);if(h&&FS(Na(h))){let T=Wn(r);if(T.contextFreeType)return T.contextFreeType;let C=_ne(r,o),w=Gy(void 0,void 0,void 0,ve,C,void 0,0,64),V=tr(r.symbol,J,[w],ve,ve);return V.objectFlags|=262144,T.contextFreeType=V}}return Sc}return!Bne(r)&&r.kind===218&&oAe(r),vjt(r,o),yn(Un(r))}function vjt(r,o){let _=Wn(r);if(!(_.flags&64)){let h=ZL(r);if(!(_.flags&64)){_.flags|=64;let T=Aa(Ks(yn(Un(r)),0));if(!T)return;if(Vd(r))if(h){let C=cx(r),w;if(o&&o&2){aYe(T,h,C);let V=r7(h);V&&V.flags&262144&&(w=Yk(h,C.nonFixingMapper))}w||(w=C?Yk(h,C.mapper):h),Q9t(T,w)}else Z9t(T);else if(h&&!r.typeParameters&&h.parameters.length>r.parameters.length){let C=cx(r);o&&o&2&&aYe(T,h,C)}if(h&&!JD(r)&&!T.resolvedReturnType){let C=_ne(r,o);T.resolvedReturnType||(T.resolvedReturnType=C)}o7(r)}}}function Sjt(r){M.assert(r.kind!==174||Nm(r));let o=Rl(r),_=JD(r);if(bCe(r,_),r.body)if(_p(r)||Na(gd(r)),r.body.kind===241)Uo(r.body);else{let h=ys(r.body),T=_&&Rq(_,o);if(T){let C=one(r.body);if((o&3)===2){let w=l7(h,!1,C,v.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);RS(w,T,C,C)}else RS(h,T,C,C)}}}function pne(r,o,_,h=!1){if(!yo(o,nn)){let T=h&&p4(o);return $T(r,!!T&&yo(T,nn),_),!1}return!0}function Tjt(r){if(!to(r)||!Qx(r))return!1;let o=vl(r.arguments[2]);if(il(o,"value")){let T=ho(o,"writable"),C=T&&yn(T);if(!C||C===Ot||C===Ht)return!0;if(T&&T.valueDeclaration&&ql(T.valueDeclaration)){let w=T.valueDeclaration.initializer,V=ys(w);if(V===Ot||V===Ht)return!0}return!1}return!ho(o,"set")}function xg(r){return!!(ul(r)&8||r.flags&4&&Cd(r)&8||r.flags&3&&G2e(r)&6||r.flags&98304&&!(r.flags&65536)||r.flags&8||Dt(r.declarations,Tjt))}function gYe(r,o,_){var h,T;if(_===0)return!1;if(xg(o)){if(o.flags&4&&ac(r)&&r.expression.kind===110){let C=Ip(r);if(!(C&&(C.kind===176||yh(C))))return!0;if(o.valueDeclaration){let w=Dn(o.valueDeclaration),V=C.parent===o.valueDeclaration.parent,H=C===o.valueDeclaration.parent,X=w&&((h=o.parent)==null?void 0:h.valueDeclaration)===C.parent,_e=w&&((T=o.parent)==null?void 0:T.valueDeclaration)===C;return!(V||H||X||_e)}}return!0}if(ac(r)){let C=ba(r.expression);if(C.kind===80){let w=Wn(C).resolvedSymbol;if(w.flags&2097152){let V=Sp(w);return!!V&&V.kind===274}}}return!1}function i7(r,o,_){let h=Ml(r,7);return h.kind!==80&&!ac(h)?(Ze(r,o),!1):h.flags&64?(Ze(r,_),!1):!0}function bjt(r){ys(r.expression);let o=ba(r.expression);if(!ac(o))return Ze(o,v.The_operand_of_a_delete_operator_must_be_a_property_reference),Wr;Hn(o)&&es(o.name)&&Ze(o,v.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let _=Wn(o),h=Lp(_.resolvedSymbol);return h&&(xg(h)?Ze(o,v.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Ejt(o,h)),Wr}function Ejt(r,o){let _=yn(o);ce&&!(_.flags&131075)&&!(te?o.flags&16777216:bg(_,16777216))&&Ze(r,v.The_operand_of_a_delete_operator_must_be_optional)}function xjt(r){return ys(r.expression),D2}function Cjt(r){return tP(r),Z}function hYe(r){let o=!1,_=_9(r);if(_&&$c(_)){let h=eS(r)?v.await_expression_cannot_be_used_inside_a_class_static_block:v.await_using_statements_cannot_be_used_inside_a_class_static_block;Ze(r,h),o=!0}else if(!(r.flags&65536))if(p9(r)){let h=Jr(r);if(!BS(h)){let T;if(!eA(h,q)){T??(T=jh(h,r.pos));let C=eS(r)?v.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:v.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,w=bu(h,T.start,T.length,C);da.add(w),o=!0}switch(W){case 100:case 199:if(h.impliedNodeFormat===1){T??(T=jh(h,r.pos)),da.add(bu(h,T.start,T.length,v.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),o=!0;break}case 7:case 99:case 200:case 4:if(ee>=4)break;default:T??(T=jh(h,r.pos));let C=eS(r)?v.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:v.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;da.add(bu(h,T.start,T.length,C)),o=!0;break}}}else{let h=Jr(r);if(!BS(h)){let T=jh(h,r.pos),C=eS(r)?v.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:v.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,w=bu(h,T.start,T.length,C);if(_&&_.kind!==176&&!(Rl(_)&2)){let V=mn(_,v.Did_you_mean_to_mark_this_function_as_async);lo(w,V)}da.add(w),o=!0}}return eS(r)&&L2e(r)&&(Ze(r,v.await_expressions_cannot_be_used_in_a_parameter_initializer),o=!0),o}function Ajt(r){n(()=>hYe(r));let o=ys(r.expression),_=l7(o,!0,r,v.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return _===o&&!la(_)&&!(o.flags&3)&&Mm(!1,mn(r,v.await_has_no_effect_on_the_type_of_this_expression)),_}function kjt(r){let o=ys(r.operand);if(o===Rn)return Rn;switch(r.operand.kind){case 9:switch(r.operator){case 41:return $k(zm(-r.operand.text));case 40:return $k(zm(+r.operand.text))}break;case 10:if(r.operator===41)return $k(lre({negative:!0,base10Value:lO(r.operand.text)}))}switch(r.operator){case 40:case 41:case 55:return gh(o,r.operand),Cq(o,12288)&&Ze(r.operand,v.The_0_operator_cannot_be_applied_to_type_symbol,bo(r.operator)),r.operator===40?(Cq(o,2112)&&Ze(r.operand,v.Operator_0_cannot_be_applied_to_type_1,bo(r.operator),_n(tv(o))),be):ECe(o);case 54:jCe(o,r.operand);let _=YD(o,12582912);return _===4194304?Ot:_===8388608?$t:Wr;case 46:case 47:return pne(r.operand,gh(o,r.operand),v.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&i7(r.operand,v.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,v.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),ECe(o)}return Oe}function Pjt(r){let o=ys(r.operand);return o===Rn?Rn:(pne(r.operand,gh(o,r.operand),v.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&i7(r.operand,v.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,v.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),ECe(o))}function ECe(r){return ml(r,2112)?r_(r,3)||ml(r,296)?nn:Re:be}function Cq(r,o){if(ml(r,o))return!0;let _=sy(r);return!!_&&ml(_,o)}function ml(r,o){if(r.flags&o)return!0;if(r.flags&3145728){let _=r.types;for(let h of _)if(ml(h,o))return!0}return!1}function r_(r,o,_){return r.flags&o?!0:_&&r.flags&114691?!1:!!(o&296)&&yo(r,be)||!!(o&2112)&&yo(r,Re)||!!(o&402653316)&&yo(r,Ue)||!!(o&528)&&yo(r,Wr)||!!(o&16384)&&yo(r,gn)||!!(o&131072)&&yo(r,Pr)||!!(o&65536)&&yo(r,Xe)||!!(o&32768)&&yo(r,sr)||!!(o&4096)&&yo(r,Yr)||!!(o&67108864)&&yo(r,Xn)}function s7(r,o,_){return r.flags&1048576?Oi(r.types,h=>s7(h,o,_)):r_(r,o,_)}function dne(r){return!!(Qn(r)&16)&&!!r.symbol&&xCe(r.symbol)}function xCe(r){return(r.flags&128)!==0}function CCe(r){let o=rKe("hasInstance");if(s7(r,67108864)){let _=ho(r,o);if(_){let h=yn(_);if(h&&Ks(h,0).length!==0)return h}}}function Njt(r,o,_,h,T){if(_===Rn||h===Rn)return Rn;!Pa(_)&&s7(_,402784252)&&Ze(r,v.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),M.assert(V9(r.parent));let C=tI(r.parent,void 0,T);if(C===Ke)return Rn;let w=Na(C);return R_(w,Wr,o,v.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Wr}function Djt(r){return vm(r,o=>o===el||!!(o.flags&2097152)&&cy(sy(o)))}function Ijt(r,o,_,h){if(_===Rn||h===Rn)return Rn;if(es(r)){if((ee<9||ee<99||!K)&&hu(r,2097152),!Wn(r).resolvedSymbol&&Lu(r)){let T=Q2e(r,h.symbol,!0);E$e(r,h,T)}}else R_(gh(_,r),Cr,r);return R_(gh(h,o),Xn,o)&&Djt(h)&&Ze(o,v.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,_n(h)),Wr}function wjt(r,o,_){let h=r.properties;if(ce&&h.length===0)return gh(o,r);for(let T=0;Tt4(X,_)):y_(h);return uC(V,H,T)}}}}function uC(r,o,_,h){let T;if(r.kind===304){let C=r;C.objectAssignmentInitializer&&(ce&&!bg(ys(C.objectAssignmentInitializer),16777216)&&(o=ym(o,524288)),Fjt(C.name,C.equalsToken,C.objectAssignmentInitializer,_)),T=r.name}else T=r;return T.kind===226&&T.operatorToken.kind===64&&(he(T,_),T=T.left,ce&&(o=ym(o,524288))),T.kind===210?wjt(T,o,h):T.kind===209?Ojt(T,o,_):Rjt(T,o,_)}function Rjt(r,o,_){let h=ys(r,_),T=r.parent.kind===305?v.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:v.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,C=r.parent.kind===305?v.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:v.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return i7(r,T,C)&&RS(o,h,r,r),LP(r)&&hu(r.parent,1048576),o}function Aq(r){switch(r=ba(r),r.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return Aq(r.whenTrue)&&Aq(r.whenFalse);case 226:return v0(r.operatorToken.kind)?!1:Aq(r.left)&&Aq(r.right);case 224:case 225:switch(r.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function ACe(r,o){return(o.flags&98304)!==0||gre(r,o)}function Mjt(){let r=nB(o,_,h,T,C,w);return(Ne,dt)=>{let Ct=r(Ne,dt);return M.assertIsDefined(Ct),Ct};function o(Ne,dt,Ct){return dt?(dt.stackIndex++,dt.skip=!1,X(dt,void 0),Ie(dt,void 0)):dt={checkMode:Ct,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},vn(Ne)&&sA(Ne)?(dt.skip=!0,Ie(dt,ys(Ne.right,Ct)),dt):(Ljt(Ne),Ne.operatorToken.kind===64&&(Ne.left.kind===210||Ne.left.kind===209)&&(dt.skip=!0,Ie(dt,uC(Ne.left,ys(Ne.right,Ct),Ct,Ne.right.kind===110))),dt)}function _(Ne,dt,Ct){if(!dt.skip)return V(dt,Ne)}function h(Ne,dt,Ct){if(!dt.skip){let Lt=_e(dt);M.assertIsDefined(Lt),X(dt,Lt),Ie(dt,void 0);let hr=Ne.kind;if(JR(hr)){let Er=Ct.parent;for(;Er.kind===217||qR(Er);)Er=Er.parent;(hr===56||vT(Er))&&FCe(Ct.left,Lt,vT(Er)?Er.thenStatement:void 0),jCe(Lt,Ct.left)}}}function T(Ne,dt,Ct){if(!dt.skip)return V(dt,Ne)}function C(Ne,dt){let Ct;if(dt.skip)Ct=_e(dt);else{let Lt=H(dt);M.assertIsDefined(Lt);let hr=_e(dt);M.assertIsDefined(hr),Ct=SYe(Ne.left,Ne.operatorToken,Ne.right,Lt,hr,dt.checkMode,Ne)}return dt.skip=!1,X(dt,void 0),Ie(dt,void 0),dt.stackIndex--,Ct}function w(Ne,dt,Ct){return Ie(Ne,dt),Ne}function V(Ne,dt){if(Dn(dt))return dt;Ie(Ne,ys(dt,Ne.checkMode))}function H(Ne){return Ne.typeStack[Ne.stackIndex]}function X(Ne,dt){Ne.typeStack[Ne.stackIndex]=dt}function _e(Ne){return Ne.typeStack[Ne.stackIndex+1]}function Ie(Ne,dt){Ne.typeStack[Ne.stackIndex+1]=dt}}function Ljt(r){let{left:o,operatorToken:_,right:h}=r;_.kind===61&&(Dn(o)&&(o.operatorToken.kind===57||o.operatorToken.kind===56)&&Lr(o,v._0_and_1_operations_cannot_be_mixed_without_parentheses,bo(o.operatorToken.kind),bo(_.kind)),Dn(h)&&(h.operatorToken.kind===57||h.operatorToken.kind===56)&&Lr(h,v._0_and_1_operations_cannot_be_mixed_without_parentheses,bo(h.operatorToken.kind),bo(_.kind)))}function Fjt(r,o,_,h,T){let C=o.kind;if(C===64&&(r.kind===210||r.kind===209))return uC(r,ys(_,h),h,_.kind===110);let w;JR(C)?w=g4(r,h):w=ys(r,h);let V=ys(_,h);return SYe(r,o,_,w,V,h,T)}function SYe(r,o,_,h,T,C,w){let V=o.kind;switch(V){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(h===Rn||T===Rn)return Rn;h=gh(h,r),T=gh(T,_);let wr;if(h.flags&528&&T.flags&528&&(wr=Ne(o.kind))!==void 0)return Ze(w||o,v.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,bo(o.kind),bo(wr)),be;{let $n=pne(r,h,v.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),oi=pne(_,T,v.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),ai;if(r_(h,3)&&r_(T,3)||!(ml(h,2112)||ml(T,2112)))ai=be;else if(H(h,T)){switch(V){case 50:case 73:hr();break;case 43:case 68:ee<3&&Ze(w,v.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}ai=Re}else hr(H),ai=Oe;return $n&&oi&&dt(ai),ai}case 40:case 65:if(h===Rn||T===Rn)return Rn;!r_(h,402653316)&&!r_(T,402653316)&&(h=gh(h,r),T=gh(T,_));let Gr;return r_(h,296,!0)&&r_(T,296,!0)?Gr=be:r_(h,2112,!0)&&r_(T,2112,!0)?Gr=Re:r_(h,402653316,!0)||r_(T,402653316,!0)?Gr=Ue:(Pa(h)||Pa(T))&&(Gr=la(h)||la(T)?Oe:Me),Gr&&!Ie(V)?Gr:Gr?(V===65&&dt(Gr),Gr):(hr((oi,ai)=>r_(oi,402655727)&&r_(ai,402655727)),Me);case 30:case 32:case 33:case 34:return Ie(V)&&(h=t2e(gh(h,r)),T=t2e(gh(T,_)),Lt(($n,oi)=>{if(Pa($n)||Pa(oi))return!0;let ai=yo($n,nn),Co=yo(oi,nn);return ai&&Co||!ai&&!Co&&BJ($n,oi)})),Wr;case 35:case 36:case 37:case 38:if(!(C&&C&64)){if((GG(r)||GG(_))&&(!vn(r)||V===37||V===38)){let $n=V===35||V===37;Ze(w,v.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,$n?"false":"true")}rn(w,V,r,_),Lt(($n,oi)=>ACe($n,oi)||ACe(oi,$n))}return Wr;case 104:return Njt(r,_,h,T,C);case 103:return Ijt(r,_,h,T);case 56:case 77:{let $n=bg(h,4194304)?gi([p7t(ce?h:tv(T)),T]):h;return V===77&&dt(T),$n}case 57:case 76:{let $n=bg(h,8388608)?gi([rv(HGe(h)),T],2):h;return V===76&&dt(T),$n}case 61:case 78:{let $n=bg(h,262144)?gi([rv(h),T],2):h;return V===78&&dt(T),$n}case 64:let en=Dn(r.parent)?ll(r.parent):0;return X(en,T),Ct(en)?((!(T.flags&524288)||en!==2&&en!==6&&!ev(T)&&!b2e(T)&&!(Qn(T)&1))&&dt(T),h):(dt(T),T);case 28:if(!q.allowUnreachableCode&&Aq(r)&&!_e(r.parent)){let $n=Jr(r),oi=$n.text,ai=zo(oi,r.pos);$n.parseDiagnostics.some(Xs=>Xs.code!==v.JSX_expressions_must_have_one_parent_element.code?!1:RG(Xs,ai))||Ze(r,v.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return T;default:return M.fail()}function H(wr,Gr){return r_(wr,2112)&&r_(Gr,2112)}function X(wr,Gr){if(wr===2)for(let en of PS(Gr)){let $n=yn(en);if($n.symbol&&$n.symbol.flags&32){let oi=en.escapedName,ai=Ar(en.valueDeclaration,oi,788968,void 0,!1);ai?.declarations&&ai.declarations.some(p2)&&(B0(ai,v.Duplicate_identifier_0,Zi(oi),en),B0(en,v.Duplicate_identifier_0,Zi(oi),ai))}}}function _e(wr){return wr.parent.kind===217&&Df(wr.left)&&wr.left.text==="0"&&(to(wr.parent.parent)&&wr.parent.parent.expression===wr.parent||wr.parent.parent.kind===215)&&(ac(wr.right)||$e(wr.right)&&wr.right.escapedText==="eval")}function Ie(wr){let Gr=Cq(h,12288)?r:Cq(T,12288)?_:void 0;return Gr?(Ze(Gr,v.The_0_operator_cannot_be_applied_to_type_symbol,bo(wr)),!1):!0}function Ne(wr){switch(wr){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function dt(wr){v0(V)&&n(Gr);function Gr(){let en=h;if(YO(o.kind)&&r.kind===211&&(en=tne(r,void 0,!0)),i7(r,v.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,v.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let $n;if(te&&Hn(r)&&ml(wr,32768)){let oi=il(n_(r.expression),r.name.escapedText);yre(wr,oi)&&($n=v.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}RS(wr,en,r,_,$n)}}}function Ct(wr){var Gr;switch(wr){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let en=fd(r),$n=sA(_);return!!$n&&ko($n)&&!!((Gr=en?.exports)!=null&&Gr.size);default:return!1}}function Lt(wr){return wr(h,T)?!1:(hr(wr),!0)}function hr(wr){let Gr=!1,en=w||o;if(wr){let Xs=y1(h),oa=y1(T);Gr=!(Xs===h&&oa===T)&&!!(Xs&&oa)&&wr(Xs,oa)}let $n=h,oi=T;!Gr&&wr&&([$n,oi]=jjt(h,T,wr));let[ai,Co]=q6($n,oi);Er(en,Gr,ai,Co)||$T(en,Gr,v.Operator_0_cannot_be_applied_to_types_1_and_2,bo(o.kind),ai,Co)}function Er(wr,Gr,en,$n){switch(o.kind){case 37:case 35:case 38:case 36:return $T(wr,Gr,v.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,en,$n);default:return}}function rn(wr,Gr,en,$n){let oi=Bn(ba(en)),ai=Bn(ba($n));if(oi||ai){let Co=Ze(wr,v.This_condition_will_always_return_0,bo(Gr===37||Gr===35?97:112));if(oi&&ai)return;let Xs=Gr===38||Gr===36?bo(54):"",oa=oi?$n:en,Rs=ba(oa);lo(Co,mn(oa,v.Did_you_mean_0,`${Xs}Number.isNaN(${nc(Rs)?lp(Rs):"..."})`))}}function Bn(wr){if($e(wr)&&wr.escapedText==="NaN"){let Gr=v8t();return!!Gr&&Gr===yf(wr)}return!1}}function jjt(r,o,_){let h=r,T=o,C=tv(r),w=tv(o);return _(C,w)||(h=C,T=w),[h,T]}function Bjt(r){n(Ne);let o=Ip(r);if(!o)return Me;let _=Rl(o);if(!(_&1))return Me;let h=(_&2)!==0;r.asteriskToken&&(h&&ee<5&&hu(r,26624),!h&&ee<2&&q.downlevelIteration&&hu(r,256));let T=JD(o);T&&T.flags&1048576&&(T=Fl(T,dt=>NCe(dt,_,void 0)));let C=T&&GCe(T,h),w=C&&C.yieldType||Me,V=C&&C.nextType||Me,H=h?_C(V)||Me:V,X=r.expression?ys(r.expression):Z,_e=_Ye(r,X,H,h);if(T&&_e&&RS(_e,w,r.expression||r,r.expression),r.asteriskToken)return UCe(h?19:17,1,X,r.expression)||Me;if(T)return _x(2,T,h)||Me;let Ie=KHe(2,o);return Ie||(Ie=Me,n(()=>{if(de&&!Ope(r)){let dt=vf(r,void 0);(!dt||Pa(dt))&&Ze(r,v.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Ie;function Ne(){r.flags&16384||Vu(r,v.A_yield_expression_is_only_allowed_in_a_generator_body),L2e(r)&&Ze(r,v.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Ujt(r,o){let _=g4(r.condition,o);FCe(r.condition,_,r.whenTrue);let h=ys(r.whenTrue,o),T=ys(r.whenFalse,o);return gi([h,T],2)}function TYe(r){let o=r.parent;return ff(o)&&TYe(o)||cc(o)&&o.argumentExpression===r}function Vjt(r){let o=[r.head.text],_=[];for(let T of r.templateSpans){let C=ys(T.expression);Cq(C,12288)&&Ze(T.expression,v.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),o.push(T.literal.text),_.push(yo(C,rr)?C:Ue)}let h=r.parent.kind!==215&&ke(r).value;return h?$k(jf(h)):_4(r)||TYe(r)||vm(vf(r,void 0)||Mt,Jjt)?Y2(o,_):Ue}function Jjt(r){return!!(r.flags&134217856||r.flags&58982400&&ml(t_(r)||Mt,402653316))}function qjt(r){return SE(r)&&!u2(r.parent)?r.parent.parent:r}function rI(r,o,_,h){let T=qjt(r);aq(T,o,!1),s5t(T,_);let C=ys(r,h|1|(_?2:0));_&&_.intraExpressionInferenceSites&&(_.intraExpressionInferenceSites=void 0);let w=ml(C,2944)&&gne(C,$re(o,r,void 0))?Z_(C):C;return o5t(),QL(),w}function vl(r,o){if(o)return ys(r,o);let _=Wn(r);if(!_.resolvedType){let h=qa,T=lm;qa=g_,lm=void 0,_.resolvedType=ys(r,o),lm=T,qa=h}return _.resolvedType}function bYe(r){return r=ba(r,!0),r.kind===216||r.kind===234||m2(r)}function u4(r,o,_){let h=vR(r);if(vn(r)){let C=Ej(r);if(C)return dCe(h,C,o)}let T=PCe(h)||(_?rI(h,_,void 0,o||0):vl(h,o));return is(r)&&r.name.kind===207&&Yo(T)&&!T.target.hasRestElement&&p1(T)gne(r,h))}if(o.flags&58982400){let _=t_(o)||Mt;return ml(_,4)&&ml(r,128)||ml(_,8)&&ml(r,256)||ml(_,64)&&ml(r,2048)||ml(_,4096)&&ml(r,8192)||gne(r,_)}return!!(o.flags&406847616&&ml(r,128)||o.flags&256&&ml(r,256)||o.flags&2048&&ml(r,2048)||o.flags&512&&ml(r,512)||o.flags&8192&&ml(r,8192))}return!1}function _4(r){let o=r.parent;return sT(o)&&Xm(o.type)||m2(o)&&Xm(MO(o))||pCe(r)&&G2(vf(r,0))||(ff(o)||Ku(o)||kd(o))&&_4(o)||(ql(o)||m_(o)||AO(o))&&_4(o.parent)}function f4(r,o,_){let h=ys(r,o,_);return _4(r)||K_e(r)?Z_(h):bYe(r)?h:r2e(h,$re(vf(r,void 0),r,void 0))}function EYe(r,o){return r.name.kind===167&&mh(r.name),f4(r.initializer,o)}function xYe(r,o){YKe(r),r.name.kind===167&&mh(r.name);let _=mYe(r,o);return CYe(r,_,o)}function CYe(r,o,_){if(_&&_&10){let h=t7(o,0,!0),T=t7(o,1,!0),C=h||T;if(C&&C.typeParameters){let w=xb(r,2);if(w){let V=t7(rv(w),h?0:1,!1);if(V&&!V.typeParameters){if(_&8)return AYe(r,_),Sc;let H=cx(r),X=H.signature&&Na(H.signature),_e=X&&M$e(X);if(_e&&!_e.typeParameters&&!Oi(H.inferences,nI)){let Ie=$jt(H,C.typeParameters),Ne=sxe(C,Ie),dt=kr(H.inferences,Ct=>l2e(Ct.typeParameter));if(s2e(Ne,V,(Ct,Lt)=>{iv(dt,Ct,Lt,0,!0)}),Dt(dt,nI)&&(o2e(Ne,V,(Ct,Lt)=>{iv(dt,Ct,Lt)}),!Gjt(H.inferences,dt)))return Hjt(H.inferences,dt),H.inferredTypeParameters=ds(H.inferredTypeParameters,Ie),$2(Ne)}return $2(L$e(C,V,H),To(M0,Ie=>Ie&&kr(Ie.inferences,Ne=>Ne.typeParameter)).slice())}}}}return o}function AYe(r,o){if(o&2){let _=cx(r);_.flags|=4}}function nI(r){return!!(r.candidates||r.contraCandidates)}function Wjt(r){return!!(r.candidates||r.contraCandidates||nWe(r.typeParameter))}function Gjt(r,o){for(let _=0;__.symbol.escapedName===o)}function Yjt(r,o){let _=o.length;for(;_>1&&o.charCodeAt(_-1)>=48&&o.charCodeAt(_-1)<=57;)_--;let h=o.slice(0,_);for(let T=1;;T++){let C=h+T;if(!kCe(r,C))return C}}function kYe(r){let o=lC(r);if(o&&!o.typeParameters)return Na(o)}function Kjt(r){let o=ys(r.expression),_=zL(o,r.expression),h=kYe(o);return h&&Pre(h,r,_!==o)}function n_(r){let o=PCe(r);if(o)return o;if(r.flags&268435456&&lm){let T=lm[Sa(r)];if(T)return T}let _=$v,h=ys(r,64);if($v!==_){let T=lm||(lm=[]);T[Sa(r)]=h,wpe(r,r.flags|268435456)}return h}function PCe(r){let o=ba(r,!0);if(m2(o)){let _=MO(o);if(!Xm(_))return Gi(_)}if(o=ba(r),eS(o)){let _=PCe(o.expression);return _?_C(_):void 0}if(to(o)&&o.expression.kind!==108&&!Nf(o,!0)&&!Y$e(o))return qx(o)?Kjt(o):kYe(ZD(o.expression));if(sT(o)&&!Xm(o.type))return Gi(o.type);if(Wb(r)||vw(r))return ys(r)}function kq(r){let o=Wn(r);if(o.contextFreeType)return o.contextFreeType;aq(r,Me,!1);let _=o.contextFreeType=ys(r,4);return QL(),_}function ys(r,o,_){var h,T;(h=kn)==null||h.push(kn.Phase.Check,"checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});let C=R;R=r,x=0;let w=Zjt(r,o,_),V=CYe(r,w,o);return dne(V)&&Xjt(r,V),R=C,(T=kn)==null||T.pop(),V}function Xjt(r,o){if(r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r||(r.kind===80||r.kind===166)&&wne(r)||r.parent.kind===186&&r.parent.exprName===r||r.parent.kind===281||Ze(r,v.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),Ad(q)){M.assert(!!(o.symbol.flags&128));let h=o.symbol.valueDeclaration,T=e.getRedirectReferenceForResolutionFromSourceOfProject(Jr(h).resolvedPath);h.flags&33554432&&!gT(r)&&(!T||!lE(T.commandLine.options))&&Ze(r,v.Cannot_access_ambient_const_enums_when_0_is_enabled,we)}}function Qjt(r,o){if(Np(r)){if(q$(r))return dCe(r.expression,z$(r),o);if(m2(r))return Z$e(r,o)}return ys(r.expression,o)}function Zjt(r,o,_){let h=r.kind;if(i)switch(h){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(h){case 80:return PFt(r,o);case 81:return $5t(r);case 110:return sq(r);case 108:return Wre(r);case 106:return z;case 15:case 11:return d2e(r)?nr:$k(jf(r.text));case 9:return tXe(r),$k(zm(+r.text));case 10:return tqt(r),$k(lre({negative:!1,base10Value:lO(r.text)}));case 112:return $t;case 97:return Ot;case 228:return Vjt(r);case 14:return v5t(r);case 209:return i$e(r,o,_);case 210:return A5t(r,o);case 211:return tne(r,o);case 166:return S$e(r,o);case 212:return l9t(r,o);case 213:if(r.expression.kind===102)return V9t(r);case 214:return U9t(r,o);case 215:return J9t(r);case 217:return Qjt(r,o);case 231:return VUt(r);case 218:case 219:return mYe(r,o);case 221:return xjt(r);case 216:case 234:return q9t(r,o);case 235:return G9t(r);case 233:return tYe(r);case 238:return H9t(r);case 236:return $9t(r);case 220:return bjt(r);case 222:return Cjt(r);case 223:return Ajt(r);case 224:return kjt(r);case 225:return Pjt(r);case 226:return he(r,o);case 227:return Ujt(r,o);case 230:return S5t(r,o);case 232:return Z;case 229:return Bjt(r);case 237:return T5t(r);case 294:return V5t(r,o);case 284:return D5t(r,o);case 285:return P5t(r,o);case 288:return I5t(r);case 292:return O5t(r,o);case 286:M.fail("Shouldn't ever directly check a JsxOpeningElement")}return Oe}function PYe(r){Ky(r),r.expression&&Vu(r.expression,v.Type_expected),Uo(r.constraint),Uo(r.default);let o=XE(Un(r));t_(o),xMt(o)||Ze(r.default,v.Type_parameter_0_has_a_circular_default,_n(o));let _=hf(o),h=H2(o);_&&h&&R_(h,Ep(cs(_,sx(o,h)),h),r.default,v.Type_0_does_not_satisfy_the_constraint_1),tP(r),n(()=>h4(r.name,v.Type_parameter_name_cannot_be_0))}function eBt(r){var o,_;if(Xu(r.parent)||vi(r.parent)||sm(r.parent)){let h=XE(Un(r)),T=Xxe(h)&24576;if(T){let C=Un(r.parent);if(sm(r.parent)&&!(Qn(oc(C))&52))Ze(r,v.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(T===8192||T===16384){(o=kn)==null||o.push(kn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Bu(oc(C)),id:Bu(h)});let w=JJ(C,h,T===16384?dc:Wf),V=JJ(C,h,T===16384?Wf:dc),H=h;L=h,R_(w,V,r,v.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),L=H,(_=kn)==null||_.pop()}}}}function NYe(r){Ky(r),wq(r);let o=Ip(r);_i(r,31)&&(o.kind===176&&Kd(o.body)||Ze(r,v.A_parameter_property_is_only_allowed_in_a_constructor_implementation),o.kind===176&&$e(r.name)&&r.name.escapedText==="constructor"&&Ze(r.name,v.constructor_cannot_be_used_as_a_parameter_property_name)),!r.initializer&&mN(r)&&$s(r.name)&&o.body&&Ze(r,v.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&$e(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(o.parameters.indexOf(r)!==0&&Ze(r,v.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(o.kind===176||o.kind===180||o.kind===185)&&Ze(r,v.A_constructor_cannot_have_a_this_parameter),o.kind===219&&Ze(r,v.An_arrow_function_cannot_have_a_this_parameter),(o.kind===177||o.kind===178)&&Ze(r,v.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!$s(r.name)&&!yo(Sg(yn(r.symbol)),Al)&&Ze(r,v.A_rest_parameter_must_be_of_an_array_type)}function tBt(r){let o=rBt(r);if(!o){Ze(r,v.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let _=gd(o),h=Ud(_);if(!h)return;Uo(r.type);let{parameterName:T}=r;if(h.kind===0||h.kind===2)ure(T);else if(h.parameterIndex>=0){if(C_(_)&&h.parameterIndex===_.parameters.length-1)Ze(T,v.A_type_predicate_cannot_reference_a_rest_parameter);else if(h.type){let C=()=>Bs(void 0,v.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);R_(h.type,yn(_.parameters[h.parameterIndex]),r.type,void 0,C)}}else if(T){let C=!1;for(let{name:w}of o.parameters)if($s(w)&&DYe(w,T,h.parameterName)){C=!0;break}C||Ze(r.parameterName,v.Cannot_find_parameter_0,h.parameterName)}}function rBt(r){switch(r.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let o=r.parent;if(r===o.type)return o}}function DYe(r,o,_){for(let h of r.elements){if(du(h))continue;let T=h.name;if(T.kind===80&&T.escapedText===_)return Ze(o,v.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,_),!0;if((T.kind===207||T.kind===206)&&DYe(T,o,_))return!0}}function o7(r){r.kind===181?NJt(r):(r.kind===184||r.kind===262||r.kind===185||r.kind===179||r.kind===176||r.kind===180)&&Bne(r);let o=Rl(r);o&4||((o&3)===3&&ee<5&&hu(r,6144),(o&3)===2&&ee<4&&hu(r,64),o&3&&ee<2&&hu(r,128)),Mq(j1(r)),jUt(r),Et(r.parameters,NYe),r.type&&Uo(r.type),n(_);function _(){tUt(r);let h=_p(r),T=h;if(vn(r)){let C=tT(r);if(C&&C.typeExpression&&Yp(C.typeExpression.type)){let w=lC(Gi(C.typeExpression));w&&w.declaration&&(h=_p(w.declaration),T=C.typeExpression.type)}}if(de&&!h)switch(r.kind){case 180:Ze(r,v.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Ze(r,v.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(h&&T){let C=Rl(r);if((C&5)===1){let w=Gi(h);w===gn?Ze(T,v.A_generator_cannot_have_a_void_type_annotation):NCe(w,C,T)}else(C&3)===2&&OBt(r,h,T)}r.kind!==181&&r.kind!==317&&jS(r)}}function NCe(r,o,_){let h=_x(0,r,(o&2)!==0)||Me,T=_x(1,r,(o&2)!==0)||h,C=_x(2,r,(o&2)!==0)||Mt,w=fne(h,T,C,!!(o&2));return R_(w,r,_)}function nBt(r){let o=new Map,_=new Map,h=new Map;for(let C of r.members)if(C.kind===176)for(let w of C.parameters)cp(w,C)&&!$s(w.name)&&T(o,w.name,w.name.escapedText,3);else{let w=co(C),V=C.name;if(!V)continue;let H=es(V),X=H&&w?16:0,_e=H?h:w?_:o,Ie=V&&uAe(V);if(Ie)switch(C.kind){case 177:T(_e,V,Ie,1|X);break;case 178:T(_e,V,Ie,2|X);break;case 172:T(_e,V,Ie,3|X);break;case 174:T(_e,V,Ie,8|X);break}}function T(C,w,V,H){let X=C.get(V);if(X)if((X&16)!==(H&16))Ze(w,v.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Hc(w));else{let _e=!!(X&8),Ie=!!(H&8);_e||Ie?_e!==Ie&&Ze(w,v.Duplicate_identifier_0,Hc(w)):X&H&-17?Ze(w,v.Duplicate_identifier_0,Hc(w)):C.set(V,X|H)}else C.set(V,H)}}function iBt(r){for(let o of r.members){let _=o.name;if(co(o)&&_){let T=uAe(_);switch(T){case"name":case"length":case"caller":case"arguments":if(K)break;case"prototype":let C=v.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,w=YE(Un(r));Ze(_,C,T,w);break}}}}function IYe(r){let o=new Map;for(let _ of r.members)if(_.kind===171){let h,T=_.name;switch(T.kind){case 11:case 9:h=T.text;break;case 80:h=In(T);break;default:continue}o.get(h)?(Ze(Ns(_.symbol.valueDeclaration),v.Duplicate_identifier_0,h),Ze(_.name,v.Duplicate_identifier_0,h)):o.set(h,!0)}}function DCe(r){if(r.kind===264){let _=Un(r);if(_.declarations&&_.declarations.length>0&&_.declarations[0]!==r)return}let o=oxe(Un(r));if(o?.declarations){let _=new Map;for(let h of o.declarations)h.parameters.length===1&&h.parameters[0].type&&sC(Gi(h.parameters[0].type),T=>{let C=_.get(Bu(T));C?C.declarations.push(h):_.set(Bu(T),{type:T,declarations:[h]})});_.forEach(h=>{if(h.declarations.length>1)for(let T of h.declarations)Ze(T,v.Duplicate_index_signature_for_type_0,_n(h.type))})}}function wYe(r){!Ky(r)&&!XJt(r)&&Une(r.name),wq(r),hne(r),_i(r,64)&&r.kind===172&&r.initializer&&Ze(r,v.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Ya(r.name))}function sBt(r){return es(r.name)&&Ze(r,v.Private_identifiers_are_not_allowed_outside_class_bodies),wYe(r)}function oBt(r){YKe(r)||Une(r.name),_l(r)&&r.asteriskToken&&$e(r.name)&&In(r.name)==="constructor"&&Ze(r.name,v.Class_constructor_may_not_be_a_generator),zYe(r),_i(r,64)&&r.kind===174&&r.body&&Ze(r,v.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Ya(r.name)),es(r.name)&&!Lu(r)&&Ze(r,v.Private_identifiers_are_not_allowed_outside_class_bodies),hne(r)}function hne(r){if(es(r.name)&&(ee<9||ee<99||!K)){for(let o=Zm(r);o;o=Zm(o))Wn(o).flags|=1048576;if(tu(r.parent)){let o=I2e(r.parent);o&&(Wn(r.name).flags|=32768,Wn(o).flags|=4096)}}}function aBt(r){Ky(r),qs(r,Uo)}function cBt(r){o7(r),YJt(r)||KJt(r),Uo(r.body);let o=Un(r),_=kc(o,r.kind);if(r===_&&Sne(o),Gc(r.body))return;n(T);return;function h(C){return B_(C)?!0:C.kind===172&&!co(C)&&!!C.initializer}function T(){let C=r.parent;if(nE(C)){w2e(r.parent,C);let w=O2e(C),V=qHe(r.body);if(V){if(w&&Ze(V,v.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!re&&(Dt(r.parent.members,h)||Dt(r.parameters,X=>_i(X,31))))if(!lBt(V,r.body))Ze(V,v.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let X;for(let _e of r.body.statements){if(wu(_e)&&Kx(Ml(_e.expression))){X=_e;break}if(OYe(_e))break}X===void 0&&Ze(r,v.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else w||Ze(r,v.Constructors_for_derived_classes_must_contain_a_super_call)}}}function lBt(r,o){let _=h0(r.parent);return wu(_)&&_.parent===o}function OYe(r){return r.kind===108||r.kind===110?!0:ife(r)?!1:!!qs(r,OYe)}function RYe(r){$e(r.name)&&In(r.name)==="constructor"&&vi(r.parent)&&Ze(r.name,v.Class_constructor_may_not_be_an_accessor),n(o),Uo(r.body),hne(r);function o(){if(!Bne(r)&&!jJt(r)&&Une(r.name),Nq(r),o7(r),r.kind===177&&!(r.flags&33554432)&&Kd(r.body)&&r.flags&512&&(r.flags&1024||Ze(r.name,v.A_get_accessor_must_return_a_value)),r.name.kind===167&&mh(r.name),UD(r)){let h=Un(r),T=kc(h,177),C=kc(h,178);if(T&&C&&!(sI(T)&1)){Wn(T).flags|=1;let w=V_(T),V=V_(C);(w&64)!==(V&64)&&(Ze(T.name,v.Accessors_must_both_be_abstract_or_non_abstract),Ze(C.name,v.Accessors_must_both_be_abstract_or_non_abstract)),(w&4&&!(V&6)||w&2&&!(V&2))&&(Ze(T.name,v.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Ze(C.name,v.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let _=xL(Un(r));r.kind===177&&bCe(r,_)}}function uBt(r){Nq(r)}function _Bt(r,o,_){return r.typeArguments&&_{let h=ICe(r);h&&MYe(r,h)});let _=Wn(r).resolvedSymbol;_&&Dt(_.declarations,h=>xA(h)&&!!(h.flags&536870912))&&F0(vq(r),_.declarations,_.escapedName)}}function pBt(r){let o=ci(r.parent,W5);if(!o)return;let _=ICe(o);if(!_)return;let h=hf(_[o.typeArguments.indexOf(r)]);return h&&cs(h,Zf(_,yne(o,_)))}function dBt(r){AWe(r)}function mBt(r){Et(r.members,Uo),n(o);function o(){let _=pGe(r);kne(_,_.symbol),DCe(r),IYe(r)}}function gBt(r){Uo(r.elementType)}function hBt(r){let o=!1,_=!1;for(let h of r.elements){let T=vxe(h);if(T&8){let C=Gi(h.type);if(!h1(C)){Ze(h,v.A_rest_element_type_must_be_an_array_type);break}(qd(C)||Yo(C)&&C.target.combinedFlags&4)&&(T|=4)}if(T&4){if(_){Lr(h,v.A_rest_element_cannot_follow_another_rest_element);break}_=!0}else if(T&2){if(_){Lr(h,v.An_optional_element_cannot_follow_a_rest_element);break}o=!0}else if(T&1&&o){Lr(h,v.A_required_element_cannot_follow_an_optional_element);break}}Et(r.elements,Uo),Gi(r)}function yBt(r){Et(r.types,Uo),Gi(r)}function FYe(r,o){if(!(r.flags&8388608))return r;let _=r.objectType,h=r.indexType,T=Xf(_)&&$te(_)===2?XWe(_,0):ph(_,0),C=!!Hy(_,be);if(tp(h,w=>yo(w,T)||C&&Vk(w,be)))return o.kind===212&&Pv(o)&&Qn(_)&32&&iy(_)&1&&Ze(o,v.Index_signature_in_type_0_only_permits_reading,_n(_)),r;if(X2(_)){let w=sre(h,o);if(w){let V=sC(X_(_),H=>ho(H,w));if(V&&Cd(V)&6)return Ze(o,v.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Zi(w)),Oe}}return Ze(o,v.Type_0_cannot_be_used_to_index_type_1,_n(h),_n(_)),Oe}function vBt(r){Uo(r.objectType),Uo(r.indexType),FYe(aGe(r),r)}function SBt(r){TBt(r),Uo(r.typeParameter),Uo(r.nameType),Uo(r.type),r.type||Tb(r,Me);let o=Ixe(r),_=_1(o);if(_)R_(_,Cr,r.nameType);else{let h=md(o);R_(h,Cr,MP(r.typeParameter))}}function TBt(r){var o;if((o=r.members)!=null&&o.length)return Lr(r.members[0],v.A_mapped_type_may_not_declare_properties_or_methods)}function bBt(r){ure(r)}function EBt(r){UJt(r),Uo(r.type)}function xBt(r){qs(r,Uo)}function CBt(r){Dr(r,_=>_.parent&&_.parent.kind===194&&_.parent.extendsType===_)||Lr(r,v.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),Uo(r.typeParameter);let o=Un(r.typeParameter);if(o.declarations&&o.declarations.length>1){let _=as(o);if(!_.typeParametersChecked){_.typeParametersChecked=!0;let h=XE(o),T=v_e(o,168);if(!uKe(T,[h],C=>[C])){let C=ns(o);for(let w of T)Ze(w.name,v.All_declarations_of_0_must_have_identical_constraints,C)}}}jS(r)}function ABt(r){for(let o of r.templateSpans){Uo(o.type);let _=Gi(o.type);R_(_,rr,o.type)}Gi(r)}function kBt(r){Uo(r.argument),r.attributes&&UN(r.attributes,Lr),LYe(r)}function PBt(r){r.dotDotDotToken&&r.questionToken&&Lr(r,v.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===190&&Lr(r.type,v.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===191&&Lr(r.type,v.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),Uo(r.type),Gi(r)}function Pq(r){return(fp(r,2)||B_(r))&&!!(r.flags&33554432)}function vne(r,o){let _=Vne(r);if(r.parent.kind!==264&&r.parent.kind!==263&&r.parent.kind!==231&&r.flags&33554432){let h=n9(r);h&&h.flags&128&&!(_&128)&&!(Gg(r.parent)&&xl(r.parent.parent)&&Og(r.parent.parent))&&(_|=32),_|=128}return _&o}function Sne(r){n(()=>NBt(r))}function NBt(r){function o(wr,Gr){return Gr!==void 0&&Gr.parent===wr[0].parent?Gr:wr[0]}function _(wr,Gr,en,$n,oi){if(($n^oi)!==0){let Co=vne(o(wr,Gr),en);Et(wr,Xs=>{let oa=vne(Xs,en)^Co;oa&32?Ze(Ns(Xs),v.Overload_signatures_must_all_be_exported_or_non_exported):oa&128?Ze(Ns(Xs),v.Overload_signatures_must_all_be_ambient_or_non_ambient):oa&6?Ze(Ns(Xs)||Xs,v.Overload_signatures_must_all_be_public_private_or_protected):oa&64&&Ze(Ns(Xs),v.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function h(wr,Gr,en,$n){if(en!==$n){let oi=cA(o(wr,Gr));Et(wr,ai=>{cA(ai)!==oi&&Ze(Ns(ai),v.Overload_signatures_must_all_be_optional_or_required)})}}let T=230,C=0,w=T,V=!1,H=!0,X=!1,_e,Ie,Ne,dt=r.declarations,Ct=(r.flags&16384)!==0;function Lt(wr){if(wr.name&&Gc(wr.name))return;let Gr=!1,en=qs(wr.parent,oi=>{if(Gr)return oi;Gr=oi===wr});if(en&&en.pos===wr.end&&en.kind===wr.kind){let oi=en.name||en,ai=en.name;if(wr.name&&ai&&(es(wr.name)&&es(ai)&&wr.name.escapedText===ai.escapedText||Go(wr.name)&&Go(ai)&&Z0(mh(wr.name),mh(ai))||Fg(wr.name)&&Fg(ai)&&Uw(wr.name)===Uw(ai))){if((wr.kind===174||wr.kind===173)&&co(wr)!==co(en)){let Xs=co(wr)?v.Function_overload_must_be_static:v.Function_overload_must_not_be_static;Ze(oi,Xs)}return}if(Kd(en.body)){Ze(oi,v.Function_implementation_name_must_be_0,Ya(wr.name));return}}let $n=wr.name||wr;Ct?Ze($n,v.Constructor_implementation_is_missing):_i(wr,64)?Ze($n,v.All_declarations_of_an_abstract_method_must_be_consecutive):Ze($n,v.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let hr=!1,Er=!1,rn=!1,Bn=[];if(dt)for(let wr of dt){let Gr=wr,en=Gr.flags&33554432,$n=Gr.parent&&(Gr.parent.kind===264||Gr.parent.kind===187)||en;if($n&&(Ne=void 0),(Gr.kind===263||Gr.kind===231)&&!en&&(rn=!0),Gr.kind===262||Gr.kind===174||Gr.kind===173||Gr.kind===176){Bn.push(Gr);let oi=vne(Gr,T);C|=oi,w&=oi,V=V||cA(Gr),H=H&&cA(Gr);let ai=Kd(Gr.body);ai&&_e?Ct?Er=!0:hr=!0:Ne?.parent===Gr.parent&&Ne.end!==Gr.pos&&Lt(Ne),ai?_e||(_e=Gr):X=!0,Ne=Gr,$n||(Ie=Gr)}vn(wr)&&Us(wr)&&wr.jsDoc&&(X=kt(LH(wr))>0)}if(Er&&Et(Bn,wr=>{Ze(wr,v.Multiple_constructor_implementations_are_not_allowed)}),hr&&Et(Bn,wr=>{Ze(Ns(wr)||wr,v.Duplicate_function_implementation)}),rn&&!Ct&&r.flags&16&&dt){let wr=ti(dt,Gr=>Gr.kind===263).map(Gr=>mn(Gr,v.Consider_adding_a_declare_modifier_to_this_class));Et(dt,Gr=>{let en=Gr.kind===263?v.Class_declaration_cannot_implement_overload_list_for_0:Gr.kind===262?v.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;en&&lo(Ze(Ns(Gr)||Gr,en,Qc(r)),...wr)})}if(Ie&&!Ie.body&&!_i(Ie,64)&&!Ie.questionToken&&Lt(Ie),X&&(dt&&(_(dt,_e,T,C,w),h(dt,_e,V,H)),_e)){let wr=ex(r),Gr=gd(_e);for(let en of wr)if(!JLt(Gr,en)){let $n=en.declaration&&k0(en.declaration)?en.declaration.parent.tagName:en.declaration;lo(Ze($n,v.This_overload_signature_is_not_compatible_with_its_implementation_signature),mn(_e,v.The_implementation_signature_is_declared_here));break}}}function a7(r){n(()=>DBt(r))}function DBt(r){let o=r.localSymbol;if(!o&&(o=Un(r),!o.exportSymbol)||kc(o,r.kind)!==r)return;let _=0,h=0,T=0;for(let X of o.declarations){let _e=H(X),Ie=vne(X,2080);Ie&32?Ie&2048?T|=_e:_|=_e:h|=_e}let C=_|h,w=_&h,V=T&C;if(w||V)for(let X of o.declarations){let _e=H(X),Ie=Ns(X);_e&V?Ze(Ie,v.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Ya(Ie)):_e&w&&Ze(Ie,v.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Ya(Ie))}function H(X){let _e=X;switch(_e.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return U_(_e)||D0(_e)!==0?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:let Ie=_e,Ne=pc(Ie)?Ie.expression:Ie.right;if(!nc(Ne))return 1;_e=Ne;case 271:case 274:case 273:let dt=0,Ct=ku(Un(_e));return Et(Ct.declarations,Lt=>{dt|=H(Lt)}),dt;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return M.failBadSyntaxKind(_e)}}}function p4(r,o,_,...h){let T=c7(r,o);return T&&_C(T,o,_,...h)}function c7(r,o,_){if(Pa(r))return;let h=r;if(h.promisedTypeOfPromise)return h.promisedTypeOfPromise;if(AS(r,DJ(!1)))return h.promisedTypeOfPromise=hc(r)[0];if(s7(sy(r),402915324))return;let T=il(r,"then");if(Pa(T))return;let C=T?Ks(T,0):ve;if(C.length===0){o&&Ze(o,v.A_promise_must_have_a_then_method);return}let w,V;for(let _e of C){let Ie=mb(_e);Ie&&Ie!==gn&&!dh(r,Ie,nh)?w=Ie:V=Ut(V,_e)}if(!V){M.assertIsDefined(w),_&&(_.value=w),o&&Ze(o,v.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,_n(r),_n(w));return}let H=ym(gi(kr(V,hCe)),2097152);if(Pa(H))return;let X=Ks(H,0);if(X.length===0){o&&Ze(o,v.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return h.promisedTypeOfPromise=gi(kr(X,hCe),2)}function l7(r,o,_,h,...T){return(o?_C(r,_,h,...T):y1(r,_,h,...T))||Oe}function jYe(r){if(s7(sy(r),402915324))return!1;let o=il(r,"then");return!!o&&Ks(ym(o,2097152),0).length>0}function Tne(r){var o;if(r.flags&16777216){let _=yxe(!1);return!!_&&r.aliasSymbol===_&&((o=r.aliasTypeArguments)==null?void 0:o.length)===1}return!1}function d4(r){return r.flags&1048576?Dc(r,d4):Tne(r)?r.aliasTypeArguments[0]:r}function BYe(r){if(Pa(r)||Tne(r))return!1;if(X2(r)){let o=t_(r);if(o?o.flags&3||ev(o)||vm(o,jYe):ml(r,8650752))return!0}return!1}function IBt(r){let o=yxe(!0);if(o)return zD(o,[d4(r)])}function wBt(r){return BYe(r)?IBt(r)??r:(M.assert(Tne(r)||c7(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r)}function _C(r,o,_,...h){let T=y1(r,o,_,...h);return T&&wBt(T)}function y1(r,o,_,...h){if(Pa(r)||Tne(r))return r;let T=r;if(T.awaitedTypeOfType)return T.awaitedTypeOfType;if(r.flags&1048576){if(Kv.lastIndexOf(r.id)>=0){o&&Ze(o,v.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let V=o?X=>y1(X,o,_,...h):y1;Kv.push(r.id);let H=Dc(r,V);return Kv.pop(),T.awaitedTypeOfType=H}if(BYe(r))return T.awaitedTypeOfType=r;let C={value:void 0},w=c7(r,void 0,C);if(w){if(r.id===w.id||Kv.lastIndexOf(w.id)>=0){o&&Ze(o,v.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Kv.push(r.id);let V=y1(w,o,_,...h);return Kv.pop(),V?T.awaitedTypeOfType=V:void 0}if(jYe(r)){if(o){M.assertIsDefined(_);let V;C.value&&(V=Bs(V,v.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,_n(r),_n(C.value))),V=Bs(V,_,...h),da.add(Ay(Jr(o),o,V))}return}return T.awaitedTypeOfType=r}function OBt(r,o,_){let h=Gi(o);if(ee>=2){if(la(h))return;let C=DJ(!0);if(C!==Bo&&!AS(h,C)){T(v.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,o,_,_n(y1(h)||gn));return}}else{if(Zk(r,5),la(h))return;let C=fR(o);if(C===void 0){T(v.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,o,_,_n(h));return}let w=nl(C,111551,!0),V=w?yn(w):Oe;if(la(V)){C.kind===80&&C.escapedText==="Promise"&&FD(h)===DJ(!1)?Ze(_,v.An_async_function_or_method_in_ES5_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):T(v.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,o,_,lp(C));return}let H=QMt(!0);if(H===Wi){T(v.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,o,_,lp(C));return}let X=v.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!R_(V,H,_,X,()=>o===_?void 0:Bs(void 0,v.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let Ie=C&&pp(C),Ne=h_(r.locals,Ie.escapedText,111551);if(Ne){Ze(Ne.valueDeclaration,v.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,In(Ie),lp(C));return}}l7(h,!1,r,v.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function T(C,w,V,H){if(w===V)Ze(V,C,H);else{let X=Ze(V,v.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);lo(X,mn(w,C,H))}}}function RBt(r){let o=Jr(r);if(!BS(o)){let _=r.expression;if(ff(_))return!1;let h=!0,T;for(;;){if(C0(_)||JA(_)){_=_.expression;continue}if(to(_)){h||(T=_),_.questionDotToken&&(T=_.questionDotToken),_=_.expression,h=!1;continue}if(Hn(_)){_.questionDotToken&&(T=_.questionDotToken),_=_.expression,h=!1;continue}$e(_)||(T=_);break}if(T)return lo(Ze(r.expression,v.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),mn(T,v.Invalid_syntax_in_decorator)),!0}return!1}function MBt(r){RBt(r);let o=tI(r);une(o,r);let _=Na(o);if(_.flags&1)return;let h=SCe(r);if(!h?.resolvedReturnType)return;let T,C=h.resolvedReturnType;switch(r.parent.kind){case 263:case 231:T=v.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!pe){T=v.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:T=v.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:T=v.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return M.failBadSyntaxKind(r.parent)}R_(_,C,r.expression,T)}function u7(r,o,_,h,T,C=_.length,w=0){let V=U.createFunctionTypeNode(void 0,ve,U.createKeywordTypeNode(133));return Gy(V,r,o,_,h,T,C,w)}function OCe(r,o,_,h,T,C,w){let V=u7(r,o,_,h,T,C,w);return $2(V)}function UYe(r){return OCe(void 0,void 0,ve,r)}function VYe(r){let o=Lm("value",r);return OCe(void 0,void 0,[o],gn)}function RCe(r){if(r)switch(r.kind){case 193:case 192:return JYe(r.types);case 194:return JYe([r.trueType,r.falseType]);case 196:case 202:return RCe(r.type);case 183:return r.typeName}}function JYe(r){let o;for(let _ of r){for(;_.kind===196||_.kind===202;)_=_.type;if(_.kind===146||!ce&&(_.kind===201&&_.literal.kind===106||_.kind===157))continue;let h=RCe(_);if(!h)return;if(o){if(!$e(o)||!$e(h)||o.escapedText!==h.escapedText)return}else o=h}return o}function bne(r){let o=Vl(r);return Lh(r)?CH(o):o}function Nq(r){if(!bE(r)||!Gp(r)||!r.modifiers||!pR(pe,r,r.parent,r.parent.parent))return;let o=jn(r.modifiers,pu);if(o){pe?(hu(o,8),r.kind===169&&hu(o,32)):ee<99&&(hu(o,8),ru(r)?r.name?_Ke(r)&&hu(o,4194304):hu(o,4194304):tu(r)||(es(r.name)&&(_l(r)||U1(r)||Cf(r))&&hu(o,4194304),Go(r.name)&&hu(o,8388608))),Zk(r,8);for(let _ of r.modifiers)pu(_)&&MBt(_)}}function LBt(r){n(o);function o(){zYe(r),oAe(r),m4(r,r.name)}}function FBt(r){r.typeExpression||Ze(r.name,v.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&h4(r.name,v.Type_alias_name_cannot_be_0),Uo(r.typeExpression),Mq(j1(r))}function jBt(r){Uo(r.constraint);for(let o of r.typeParameters)Uo(o)}function BBt(r){Uo(r.typeExpression)}function UBt(r){Uo(r.typeExpression);let o=_T(r);if(o){let _=w5(o,Kj);if(kt(_)>1)for(let h=1;h0),_.length>1&&Ze(_[1],v.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let h=qYe(r.class.expression),T=nE(o);if(T){let C=qYe(T.expression);C&&h.escapedText!==C.escapedText&&Ze(h,v.JSDoc_0_1_does_not_match_the_extends_2_clause,In(r.tagName),In(h),In(C))}}function YBt(r){let o=tE(r);o&&B_(o)&&Ze(r,v.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function qYe(r){switch(r.kind){case 80:return r;case 211:return r.name;default:return}}function zYe(r){var o;Nq(r),o7(r);let _=Rl(r);if(r.name&&r.name.kind===167&&mh(r.name),UD(r)){let C=Un(r),w=r.localSymbol||C,V=(o=w.declarations)==null?void 0:o.find(H=>H.kind===r.kind&&!(H.flags&524288));r===V&&Sne(w),C.parent&&Sne(C)}let h=r.kind===173?void 0:r.body;if(Uo(h),bCe(r,JD(r)),n(T),vn(r)){let C=tT(r);C&&C.typeExpression&&!U2e(Gi(C.typeExpression),r)&&Ze(C.typeExpression.type,v.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function T(){_p(r)||(Gc(h)&&!Pq(r)&&Tb(r,Me),_&1&&Kd(h)&&Na(gd(r)))}}function jS(r){n(o);function o(){let _=Jr(r),h=cd.get(_.path);h||(h=[],cd.set(_.path,h)),h.push(r)}}function WYe(r,o){for(let _ of r)switch(_.kind){case 263:case 231:KBt(_,o),MCe(_,o);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:$Ye(_,o);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:_.body&&$Ye(_,o),MCe(_,o);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:MCe(_,o);break;case 195:XBt(_,o);break;default:M.assertNever(_,"Node should not have been registered for unused identifiers check")}}function GYe(r,o,_){let h=Ns(r)||r,T=xA(r)?v._0_is_declared_but_never_used:v._0_is_declared_but_its_value_is_never_read;_(r,0,mn(h,T,o))}function _7(r){return $e(r)&&In(r).charCodeAt(0)===95}function KBt(r,o){for(let _ of r.members)switch(_.kind){case 174:case 172:case 177:case 178:if(_.kind===178&&_.symbol.flags&32768)break;let h=Un(_);!h.isReferenced&&(fp(_,2)||Hu(_)&&es(_.name))&&!(_.flags&33554432)&&o(_,0,mn(_.name,v._0_is_declared_but_its_value_is_never_read,ns(h)));break;case 176:for(let T of _.parameters)!T.symbol.isReferenced&&_i(T,2)&&o(T,0,mn(T.name,v.Property_0_is_declared_but_its_value_is_never_read,Qc(T.symbol)));break;case 181:case 240:case 175:break;default:M.fail("Unexpected class member")}}function XBt(r,o){let{typeParameter:_}=r;LCe(_)&&o(r,1,mn(r,v._0_is_declared_but_its_value_is_never_read,In(_.name)))}function MCe(r,o){let _=Un(r).declarations;if(!_||qo(_)!==r)return;let h=j1(r),T=new Set;for(let C of h){if(!LCe(C))continue;let w=In(C.name),{parent:V}=C;if(V.kind!==195&&V.typeParameters.every(LCe)){if(kg(T,V)){let H=Jr(V),X=om(V)?F$(V):j$(H,V.typeParameters),Ie=V.typeParameters.length===1?[v._0_is_declared_but_its_value_is_never_read,w]:[v.All_type_parameters_are_unused];o(C,1,bu(H,X.pos,X.end-X.pos,...Ie))}}else o(C,1,mn(C,v._0_is_declared_but_its_value_is_never_read,w))}}function LCe(r){return!(sa(r.symbol).isReferenced&262144)&&!_7(r.name)}function Dq(r,o,_,h){let T=String(h(o)),C=r.get(T);C?C[1].push(_):r.set(T,[o,[_]])}function HYe(r){return ci(jg(r),is)}function QBt(r){return Zo(r)?Kp(r.parent)?!!(r.propertyName&&_7(r.name)):_7(r.name):U_(r)||(Ci(r)&&Gx(r.parent.parent)||YYe(r))&&_7(r.name)}function $Ye(r,o){let _=new Map,h=new Map,T=new Map;r.locals.forEach(C=>{if(!(C.flags&262144?!(C.flags&3&&!(C.isReferenced&3)):C.isReferenced||C.exportSymbol)&&C.declarations){for(let w of C.declarations)if(!QBt(w))if(YYe(w))Dq(_,eUt(w),w,Sa);else if(Zo(w)&&Kp(w.parent)){let V=qo(w.parent.elements);(w===V||!qo(w.parent.elements).dotDotDotToken)&&Dq(h,w.parent,w,Sa)}else if(Ci(w)){let V=px(w)&7,H=Ns(w);(V!==4&&V!==6||!H||!_7(H))&&Dq(T,w.parent,w,Sa)}else{let V=C.valueDeclaration&&HYe(C.valueDeclaration),H=C.valueDeclaration&&Ns(C.valueDeclaration);V&&H?!cp(V,V.parent)&&!sE(V)&&!_7(H)&&(Zo(w)&&Fv(w.parent)?Dq(h,w.parent,w,Sa):o(V,1,mn(H,v._0_is_declared_but_its_value_is_never_read,Qc(C)))):GYe(w,Qc(C),o)}}}),_.forEach(([C,w])=>{let V=C.parent;if((C.name?1:0)+(C.namedBindings?C.namedBindings.kind===274?1:C.namedBindings.elements.length:0)===w.length)o(V,0,w.length===1?mn(V,v._0_is_declared_but_its_value_is_never_read,In(Fo(w).name)):mn(V,v.All_imports_in_import_declaration_are_unused));else for(let X of w)GYe(X,In(X.name),o)}),h.forEach(([C,w])=>{let V=HYe(C.parent)?1:0;if(C.elements.length===w.length)w.length===1&&C.parent.kind===260&&C.parent.parent.kind===261?Dq(T,C.parent.parent,C.parent,Sa):o(C,V,w.length===1?mn(C,v._0_is_declared_but_its_value_is_never_read,Iq(Fo(w).name)):mn(C,v.All_destructured_elements_are_unused));else for(let H of w)o(H,V,mn(H,v._0_is_declared_but_its_value_is_never_read,Iq(H.name)))}),T.forEach(([C,w])=>{if(C.declarations.length===w.length)o(C,0,w.length===1?mn(Fo(w).name,v._0_is_declared_but_its_value_is_never_read,Iq(Fo(w).name)):mn(C.parent.kind===243?C.parent:C,v.All_variables_are_unused));else for(let V of w)o(V,0,mn(V,v._0_is_declared_but_its_value_is_never_read,Iq(V.name)))})}function ZBt(){var r;for(let o of P2)if(!((r=Un(o))!=null&&r.isReferenced)){let _=OP(o);M.assert(dT(_),"Only parameter declaration should be checked here");let h=mn(o.name,v._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Ya(o.name),Ya(o.propertyName));_.type||lo(h,bu(Jr(_),_.end,1,v.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Ya(o.propertyName))),da.add(h)}}function Iq(r){switch(r.kind){case 80:return In(r);case 207:case 206:return Iq(ao(Fo(r.elements),Zo).name);default:return M.assertNever(r)}}function YYe(r){return r.kind===273||r.kind===276||r.kind===274}function eUt(r){return r.kind===273?r:r.kind===274?r.parent:r.parent.parent}function Ene(r){if(r.kind===241&&ov(r),YG(r)){let o=Rm;Et(r.statements,Uo),Rm=o}else Et(r.statements,Uo);r.locals&&jS(r)}function tUt(r){ee>=2||!nH(r)||r.flags&33554432||Gc(r.body)||Et(r.parameters,o=>{o.name&&!$s(o.name)&&o.name.escapedText===ze.escapedName&&pg("noEmit",o,v.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function f7(r,o,_){if(o?.escapedText!==_||r.kind===172||r.kind===171||r.kind===174||r.kind===173||r.kind===177||r.kind===178||r.kind===303||r.flags&33554432||(ng(r)||nu(r)||pf(r))&&iT(r))return!1;let h=jg(r);return!(is(h)&&Gc(h.parent.body))}function rUt(r){Dr(r,o=>sI(o)&4?(r.kind!==80?Ze(Ns(r),v.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ze(r,v.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function nUt(r){Dr(r,o=>sI(o)&8?(r.kind!==80?Ze(Ns(r),v.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ze(r,v.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function iUt(r,o){if(W>=5&&!(W>=100&&Jr(r).impliedNodeFormat===1)||!o||!f7(r,o,"require")&&!f7(r,o,"exports")||xl(r)&&D0(r)!==1)return;let _=z2(r);_.kind===307&&Jf(_)&&pg("noEmit",o,v.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Ya(o),Ya(o))}function sUt(r,o){if(!o||ee>=4||!f7(r,o,"Promise")||xl(r)&&D0(r)!==1)return;let _=z2(r);_.kind===307&&Jf(_)&&_.flags&4096&&pg("noEmit",o,v.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Ya(o),Ya(o))}function oUt(r,o){ee<=8&&(f7(r,o,"WeakMap")||f7(r,o,"WeakSet"))&&qT.push(r)}function aUt(r){let o=Zm(r);sI(o)&1048576&&(M.assert(Hu(r)&&$e(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),pg("noEmit",r,v.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function cUt(r,o){o&&ee>=2&&ee<=8&&f7(r,o,"Reflect")&&zT.push(r)}function lUt(r){let o=!1;if(tu(r)){for(let _ of r.members)if(sI(_)&2097152){o=!0;break}}else if(ic(r))sI(r)&2097152&&(o=!0);else{let _=Zm(r);_&&sI(_)&2097152&&(o=!0)}o&&(M.assert(Hu(r)&&$e(r.name),"The target of a Reflect collision check should be an identifier"),pg("noEmit",r,v.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Ya(r.name),"Reflect"))}function m4(r,o){o&&(iUt(r,o),sUt(r,o),oUt(r,o),cUt(r,o),vi(r)?(h4(o,v.Class_name_cannot_be_0),r.flags&33554432||FUt(o)):TT(r)&&h4(o,v.Enum_name_cannot_be_0))}function uUt(r){if(px(r)&7||dT(r))return;let o=Un(r);if(o.flags&1){if(!$e(r.name))return M.fail();let _=Ar(r,r.name.escapedText,3,void 0,!1);if(_&&_!==o&&_.flags&2&&G2e(_)&7){let h=pT(_.valueDeclaration,261),T=h.parent.kind===243&&h.parent.parent?h.parent.parent:void 0;if(!(T&&(T.kind===241&&Us(T.parent)||T.kind===268||T.kind===267||T.kind===307))){let w=ns(_);Ze(r,v.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,w,w)}}}}function p7(r){return r===rt?Me:r===Ba?Ja:r}function wq(r){var o;if(Nq(r),Zo(r)||Uo(r.type),!r.name)return;if(r.name.kind===167&&(mh(r.name),Hx(r)&&r.initializer&&vl(r.initializer)),Zo(r)){if(r.propertyName&&$e(r.name)&&dT(r)&&Gc(Ip(r).body)){P2.push(r);return}Kp(r.parent)&&r.dotDotDotToken&&ee<5&&hu(r,4),r.propertyName&&r.propertyName.kind===167&&mh(r.propertyName);let T=r.parent.parent,C=r.dotDotDotToken?32:0,w=Lk(T,C),V=r.propertyName||r.name;if(w&&!$s(V)){let H=m1(V);if(rm(H)){let X=nm(H),_e=ho(w,X);_e&&(dq(_e,void 0,!1),$2e(r,!!T.initializer&&T.initializer.kind===108,!1,w,_e))}}}if($s(r.name)&&(r.name.kind===207&&ee<2&&q.downlevelIteration&&hu(r,512),Et(r.name.elements,Uo)),r.initializer&&dT(r)&&Gc(Ip(r).body)){Ze(r,v.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if($s(r.name)){if(v2e(r))return;let T=Hx(r)&&r.initializer&&r.parent.parent.kind!==249,C=!Dt(r.name.elements,u5(du));if(T||C){let w=B(r);if(T){let V=vl(r.initializer);ce&&C?v$e(V,r):RS(V,B(r),r,r.initializer)}C&&(Fv(r.name)?v1(65,w,sr,r):ce&&v$e(w,r))}return}let _=Un(r);if(_.flags&2097152&&(Zb(r)||cfe(r))){Nne(r);return}let h=p7(yn(_));if(r===_.valueDeclaration){let T=Hx(r)&&vR(r);if(T&&!(vn(r)&&ko(T)&&(T.properties.length===0||G1(r.name))&&!!((o=_.exports)!=null&&o.size))&&r.parent.parent.kind!==249){let w=vl(T);RS(w,h,r,T,void 0);let V=px(r)&7;if(V===6){let H=a8t(!0),X=RWe(!0);if(H!==Wi&&X!==Wi){let _e=gi([H,X,Xe,sr]);R_(w,_e,T,v.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(V===4){let H=RWe(!0);if(H!==Wi){let X=gi([H,Xe,sr]);R_(w,X,T,v.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}_.declarations&&_.declarations.length>1&&Dt(_.declarations,C=>C!==r&&nA(C)&&!XYe(C,r))&&Ze(r.name,v.All_declarations_of_0_must_have_identical_modifiers,Ya(r.name))}else{let T=p7(B(r));!la(h)&&!la(T)&&!Z0(h,T)&&!(_.flags&67108864)&&KYe(_.valueDeclaration,h,r,T),Hx(r)&&r.initializer&&RS(vl(r.initializer),T,r,r.initializer,void 0),_.valueDeclaration&&!XYe(r,_.valueDeclaration)&&Ze(r.name,v.All_declarations_of_0_must_have_identical_modifiers,Ya(r.name))}r.kind!==172&&r.kind!==171&&(a7(r),(r.kind===260||r.kind===208)&&uUt(r),m4(r,r.name))}function KYe(r,o,_,h){let T=Ns(_),C=_.kind===172||_.kind===171?v.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:v.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,w=Ya(T),V=Ze(T,C,w,_n(o),_n(h));r&&lo(V,mn(r,v._0_was_also_declared_here,w))}function XYe(r,o){if(r.kind===169&&o.kind===260||r.kind===260&&o.kind===169)return!0;if(cA(r)!==cA(o))return!1;let _=1358;return pA(r,_)===pA(o,_)}function _Ut(r){var o,_;(o=kn)==null||o.push(kn.Phase.Check,"checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),WJt(r),wq(r),(_=kn)==null||_.pop()}function fUt(r){return JJt(r),wq(r)}function xne(r){let o=p0(r)&7;(o===4||o===6)&&ee<99&&hu(r,16777216),Et(r.declarations,Uo)}function pUt(r){!Ky(r)&&!lAe(r.declarationList)&&GJt(r),xne(r.declarationList)}function dUt(r){ov(r),ys(r.expression)}function mUt(r){ov(r);let o=g4(r.expression);FCe(r.expression,o,r.thenStatement),Uo(r.thenStatement),r.thenStatement.kind===242&&Ze(r.thenStatement,v.The_body_of_an_if_statement_cannot_be_the_empty_statement),Uo(r.elseStatement)}function FCe(r,o,_){if(!ce)return;h(r,_);function h(C,w){for(C=ba(C),T(C,w);Dn(C)&&(C.operatorToken.kind===57||C.operatorToken.kind===61);)C=ba(C.left),T(C,w)}function T(C,w){let V=qR(C)?ba(C.right):C;if(ky(V))return;if(qR(V)){h(V,w);return}let H=V===C?o:g4(V);if(H.flags&1024&&Hn(V)&&(Wn(V.expression).resolvedSymbol??Tt).flags&384){Ze(V,v.This_condition_will_always_return_0,H.value?"true":"false");return}let X=Hn(V)&&bYe(V.expression);if(!bg(H,4194304)||X)return;let _e=Ks(H,0),Ie=!!p4(H);if(_e.length===0&&!Ie)return;let Ne=$e(V)?V:Hn(V)?V.name:void 0,dt=Ne&&Sm(Ne);if(!dt&&!Ie)return;dt&&Dn(C.parent)&&hUt(C.parent,dt)||dt&&w&&gUt(C,w,Ne,dt)||(Ie?$T(V,!0,v.This_condition_will_always_return_true_since_this_0_is_always_defined,wD(H)):Ze(V,v.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function gUt(r,o,_,h){return!!qs(o,function T(C){if($e(C)){let w=Sm(C);if(w&&w===h){if($e(r)||$e(_)&&Dn(_.parent))return!0;let V=_.parent,H=C.parent;for(;V&&H;){if($e(V)&&$e(H)||V.kind===110&&H.kind===110)return Sm(V)===Sm(H);if(Hn(V)&&Hn(H)){if(Sm(V.name)!==Sm(H.name))return!1;H=H.expression,V=V.expression}else if(to(V)&&to(H))H=H.expression,V=V.expression;else return!1}}}return qs(C,T)})}function hUt(r,o){for(;Dn(r)&&r.operatorToken.kind===56;){if(qs(r.right,function h(T){if($e(T)){let C=Sm(T);if(C&&C===o)return!0}return qs(T,h)}))return!0;r=r.parent}return!1}function yUt(r){ov(r),Uo(r.statement),g4(r.expression)}function vUt(r){ov(r),g4(r.expression),Uo(r.statement)}function jCe(r,o){return r.flags&16384&&Ze(o,v.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function g4(r,o){return jCe(ys(r,o),r)}function SUt(r){ov(r)||r.initializer&&r.initializer.kind===261&&lAe(r.initializer),r.initializer&&(r.initializer.kind===261?xne(r.initializer):ys(r.initializer)),r.condition&&g4(r.condition),r.incrementor&&ys(r.incrementor),Uo(r.statement),r.locals&&jS(r)}function TUt(r){$Ke(r);let o=_9(r);if(r.awaitModifier?o&&$c(o)?Lr(r.awaitModifier,v.for_await_loops_cannot_be_used_inside_a_class_static_block):(Rl(o)&6)===2&&ee<5&&hu(r,16384):q.downlevelIteration&&ee<2&&hu(r,256),r.initializer.kind===261)xne(r.initializer);else{let _=r.initializer,h=Oq(r);if(_.kind===209||_.kind===210)uC(_,h||Oe);else{let T=ys(_);i7(_,v.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,v.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),h&&RS(h,T,_,r.expression)}}Uo(r.statement),r.locals&&jS(r)}function bUt(r){$Ke(r);let o=Y2e(ys(r.expression));if(r.initializer.kind===261){let _=r.initializer.declarations[0];_&&$s(_.name)&&Ze(_.name,v.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),xne(r.initializer)}else{let _=r.initializer,h=ys(_);_.kind===209||_.kind===210?Ze(_,v.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):yo($8t(o),h)?i7(_,v.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,v.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Ze(_,v.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(o===Pr||!r_(o,126091264))&&Ze(r.expression,v.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,_n(o)),Uo(r.statement),r.locals&&jS(r)}function Oq(r){let o=r.awaitModifier?15:13;return v1(o,ZD(r.expression),sr,r.expression)}function v1(r,o,_,h){return Pa(o)?o:BCe(r,o,_,h,!0)||Me}function BCe(r,o,_,h,T){let C=(r&2)!==0;if(o===Pr){h&&zCe(h,o,C);return}let w=ee>=2,V=!w&&q.downlevelIteration,H=q.noUncheckedIndexedAccess&&!!(r&128);if(w||V||C){let dt=Ane(o,r,w?h:void 0);if(T&&dt){let Ct=r&8?v.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?v.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?v.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?v.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;Ct&&R_(_,dt.nextType,h,Ct)}if(dt||w)return H?YL(dt&&dt.yieldType):dt&&dt.yieldType}let X=o,_e=!1;if(r&4){if(X.flags&1048576){let dt=o.types,Ct=ti(dt,Lt=>!(Lt.flags&402653316));Ct!==dt&&(X=gi(Ct,2))}else X.flags&402653316&&(X=Pr);if(_e=X!==o,_e&&X.flags&131072)return H?YL(Ue):Ue}if(!h1(X)){if(h){let dt=!!(r&4)&&!_e,[Ct,Lt]=Ne(dt,V);$T(h,Lt&&!!p4(X),Ct,_n(X))}return _e?H?YL(Ue):Ue:void 0}let Ie=db(X,be);if(_e&&Ie)return Ie.flags&402653316&&!q.noUncheckedIndexedAccess?Ue:gi(H?[Ie,Ue,sr]:[Ie,Ue],2);return r&128?YL(Ie):Ie;function Ne(dt,Ct){var Lt;return Ct?dt?[v.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[v.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:UCe(r,0,o,void 0)?[v.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:EUt((Lt=o.symbol)==null?void 0:Lt.escapedName)?[v.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:dt?[v.Type_0_is_not_an_array_type_or_a_string_type,!0]:[v.Type_0_is_not_an_array_type,!0]}}function EUt(r){switch(r){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function UCe(r,o,_,h){if(Pa(_))return;let T=Ane(_,r,h);return T&&T[$Re(o)]}function S1(r=Pr,o=Pr,_=Mt){if(r.flags&67359327&&o.flags&180227&&_.flags&180227){let h=hm([r,o,_]),T=qn.get(h);return T||(T={yieldType:r,returnType:o,nextType:_},qn.set(h,T)),T}return{yieldType:r,returnType:o,nextType:_}}function QYe(r){let o,_,h;for(let T of r)if(!(T===void 0||T===mr)){if(T===zn)return zn;o=Ut(o,T.yieldType),_=Ut(_,T.returnType),h=Ut(h,T.nextType)}return o||_||h?S1(o&&gi(o),_&&gi(_),h&&wo(h)):mr}function Cne(r,o){return r[o]}function Yy(r,o,_){return r[o]=_}function Ane(r,o,_){var h,T;if(Pa(r))return zn;if(!(r.flags&1048576)){let X=_?{errors:void 0}:void 0,_e=ZYe(r,o,_,X);if(_e===mr){if(_){let Ie=zCe(_,r,!!(o&2));X?.errors&&lo(Ie,...X.errors)}return}else if((h=X?.errors)!=null&&h.length)for(let Ie of X.errors)da.add(Ie);return _e}let C=o&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",w=Cne(r,C);if(w)return w===mr?void 0:w;let V;for(let X of r.types){let _e=_?{errors:void 0}:void 0,Ie=ZYe(X,o,_,_e);if(Ie===mr){if(_){let Ne=zCe(_,r,!!(o&2));_e?.errors&&lo(Ne,..._e.errors)}Yy(r,C,mr);return}else if((T=_e?.errors)!=null&&T.length)for(let Ne of _e.errors)da.add(Ne);V=Ut(V,Ie)}let H=V?QYe(V):mr;return Yy(r,C,H),H===mr?void 0:H}function VCe(r,o){if(r===mr)return mr;if(r===zn)return zn;let{yieldType:_,returnType:h,nextType:T}=r;return o&&yxe(!0),S1(_C(_,o)||Me,_C(h,o)||Me,T)}function ZYe(r,o,_,h){if(Pa(r))return zn;let T=!1;if(o&2){let C=JCe(r,Io)||tKe(r,Io);if(C)if(C===mr&&_)T=!0;else return o&8?VCe(C,_):C}if(o&1){let C=JCe(r,mc)||tKe(r,mc);if(C)if(C===mr&&_)T=!0;else if(o&2){if(C!==mr)return C=VCe(C,_),T?C:Yy(r,"iterationTypesOfAsyncIterable",C)}else return C}if(o&2){let C=qCe(r,Io,_,h,T);if(C!==mr)return C}if(o&1){let C=qCe(r,mc,_,h,T);if(C!==mr)return o&2?(C=VCe(C,_),T?C:Yy(r,"iterationTypesOfAsyncIterable",C)):C}return mr}function JCe(r,o){return Cne(r,o.iterableCacheKey)}function eKe(r,o){let _=JCe(r,o)||qCe(r,o,void 0,void 0,!1);return _===mr?Pi:_}function tKe(r,o){let _;if(AS(r,_=o.getGlobalIterableType(!1))||AS(r,_=o.getGlobalIterableIteratorType(!1))){let[h]=hc(r),{returnType:T,nextType:C}=eKe(_,o);return Yy(r,o.iterableCacheKey,S1(o.resolveIterationType(h,void 0)||h,o.resolveIterationType(T,void 0)||T,C))}if(AS(r,o.getGlobalGeneratorType(!1))){let[h,T,C]=hc(r);return Yy(r,o.iterableCacheKey,S1(o.resolveIterationType(h,void 0)||h,o.resolveIterationType(T,void 0)||T,C))}}function rKe(r){let o=IWe(!1),_=o&&il(yn(o),Uc(r));return _&&rm(_)?nm(_):`__@${r}`}function qCe(r,o,_,h,T){let C=ho(r,rKe(o.iteratorSymbolName)),w=C&&!(C.flags&16777216)?yn(C):void 0;if(Pa(w))return T?zn:Yy(r,o.iterableCacheKey,zn);let V=w?Ks(w,0):void 0;if(!Dt(V))return T?mr:Yy(r,o.iterableCacheKey,mr);let H=wo(kr(V,Na)),X=nKe(H,o,_,h,T)??mr;return T?X:Yy(r,o.iterableCacheKey,X)}function zCe(r,o,_){let h=_?v.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:v.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,T=!!p4(o)||!_&&hM(r.parent)&&r.parent.expression===r&&ire(!1)!==Bo&&yo(o,ire(!1));return $T(r,T,h,_n(o))}function xUt(r,o,_,h){return nKe(r,o,_,h,!1)}function nKe(r,o,_,h,T){if(Pa(r))return zn;let C=iKe(r,o)||CUt(r,o);return C===mr&&_&&(C=void 0,T=!0),C??(C=oKe(r,o,_,h,T)),C===mr?void 0:C}function iKe(r,o){return Cne(r,o.iteratorCacheKey)}function CUt(r,o){let _=o.getGlobalIterableIteratorType(!1);if(AS(r,_)){let[h]=hc(r),T=iKe(_,o)||oKe(_,o,void 0,void 0,!1),{returnType:C,nextType:w}=T===mr?Pi:T;return Yy(r,o.iteratorCacheKey,S1(h,C,w))}if(AS(r,o.getGlobalIteratorType(!1))||AS(r,o.getGlobalGeneratorType(!1))){let[h,T,C]=hc(r);return Yy(r,o.iteratorCacheKey,S1(h,T,C))}}function sKe(r,o){let _=il(r,"done")||Ot;return yo(o===0?Ot:$t,_)}function AUt(r){return sKe(r,0)}function kUt(r){return sKe(r,1)}function PUt(r){if(Pa(r))return zn;let o=Cne(r,"iterationTypesOfIteratorResult");if(o)return o;if(AS(r,s8t(!1))){let w=hc(r)[0];return Yy(r,"iterationTypesOfIteratorResult",S1(w,void 0,void 0))}if(AS(r,o8t(!1))){let w=hc(r)[0];return Yy(r,"iterationTypesOfIteratorResult",S1(void 0,w,void 0))}let _=Fl(r,AUt),h=_!==Pr?il(_,"value"):void 0,T=Fl(r,kUt),C=T!==Pr?il(T,"value"):void 0;return!h&&!C?Yy(r,"iterationTypesOfIteratorResult",mr):Yy(r,"iterationTypesOfIteratorResult",S1(h,C||gn,void 0))}function WCe(r,o,_,h,T){var C,w,V,H;let X=ho(r,_);if(!X&&_!=="next")return;let _e=X&&!(_==="next"&&X.flags&16777216)?_==="next"?yn(X):ym(yn(X),2097152):void 0;if(Pa(_e))return _==="next"?zn:Li;let Ie=_e?Ks(_e,0):ve;if(Ie.length===0){if(h){let wr=_==="next"?o.mustHaveANextMethodDiagnostic:o.mustBeAMethodDiagnostic;T?(T.errors??(T.errors=[]),T.errors.push(mn(h,wr,_))):Ze(h,wr,_)}return _==="next"?mr:void 0}if(_e?.symbol&&Ie.length===1){let wr=o.getGlobalGeneratorType(!1),Gr=o.getGlobalIteratorType(!1),en=((w=(C=wr.symbol)==null?void 0:C.members)==null?void 0:w.get(_))===_e.symbol,$n=!en&&((H=(V=Gr.symbol)==null?void 0:V.members)==null?void 0:H.get(_))===_e.symbol;if(en||$n){let oi=en?wr:Gr,{mapper:ai}=_e;return S1(g1(oi.typeParameters[0],ai),g1(oi.typeParameters[1],ai),_==="next"?g1(oi.typeParameters[2],ai):void 0)}}let Ne,dt;for(let wr of Ie)_!=="throw"&&Dt(wr.parameters)&&(Ne=Ut(Ne,Eg(wr,0))),dt=Ut(dt,Na(wr));let Ct,Lt;if(_!=="throw"){let wr=Ne?gi(Ne):Mt;if(_==="next")Lt=wr;else if(_==="return"){let Gr=o.resolveIterationType(wr,h)||Me;Ct=Ut(Ct,Gr)}}let hr,Er=dt?wo(dt):Pr,rn=o.resolveIterationType(Er,h)||Me,Bn=PUt(rn);return Bn===mr?(h&&(T?(T.errors??(T.errors=[]),T.errors.push(mn(h,o.mustHaveAValueDiagnostic,_))):Ze(h,o.mustHaveAValueDiagnostic,_)),hr=Me,Ct=Ut(Ct,Me)):(hr=Bn.yieldType,Ct=Ut(Ct,Bn.returnType)),S1(hr,gi(Ct),Lt)}function oKe(r,o,_,h,T){let C=QYe([WCe(r,o,"next",_,h),WCe(r,o,"return",_,h),WCe(r,o,"throw",_,h)]);return T?C:Yy(r,o.iteratorCacheKey,C)}function _x(r,o,_){if(Pa(o))return;let h=GCe(o,_);return h&&h[$Re(r)]}function GCe(r,o){if(Pa(r))return zn;let _=o?2:1,h=o?Io:mc;return Ane(r,_,void 0)||xUt(r,h,void 0,void 0)}function NUt(r){ov(r)||VJt(r)}function Rq(r,o){let _=!!(o&1),h=!!(o&2);if(_){let T=_x(1,r,h);return T?h?y1(d4(T)):T:Oe}return h?y1(r)||Oe:r}function aKe(r,o){let _=Rq(o,Rl(r));return!!(_&&(ml(_,16384)||_.flags&32769))}function DUt(r){if(ov(r))return;let o=_9(r);if(o&&$c(o)){Vu(r,v.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!o){Vu(r,v.A_return_statement_can_only_be_used_within_a_function_body);return}let _=gd(o),h=Na(_),T=Rl(o);if(ce||r.expression||h.flags&131072){let C=r.expression?vl(r.expression):sr;if(o.kind===178)r.expression&&Ze(r,v.Setters_cannot_return_a_value);else if(o.kind===176)r.expression&&!RS(C,h,r,r.expression)&&Ze(r,v.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(JD(o)){let w=Rq(h,T)??h,V=T&2?l7(C,!1,r,v.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):C;w&&RS(V,w,r,r.expression)}}else o.kind!==176&&q.noImplicitReturns&&!aKe(o,h)&&Ze(r,v.Not_all_code_paths_return_a_value)}function IUt(r){ov(r)||r.flags&65536&&Vu(r,v.with_statements_are_not_allowed_in_an_async_function_block),ys(r.expression);let o=Jr(r);if(!BS(o)){let _=jh(o,r.pos).start,h=r.statement.pos;fx(o,_,h-_,v.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function wUt(r){ov(r);let o,_=!1,h=ys(r.expression);Et(r.caseBlock.clauses,T=>{T.kind===297&&!_&&(o===void 0?o=T:(Lr(T,v.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),_=!0)),T.kind===296&&n(C(T)),Et(T.statements,Uo),q.noFallthroughCasesInSwitch&&T.fallthroughFlowNode&&tq(T.fallthroughFlowNode)&&Ze(T,v.Fallthrough_case_in_switch);function C(w){return()=>{let V=ys(w.expression);ACe(h,V)||PGe(V,h,w.expression,void 0)}}}),r.caseBlock.locals&&jS(r.caseBlock)}function OUt(r){ov(r)||Dr(r.parent,o=>Us(o)?"quit":o.kind===256&&o.label.escapedText===r.label.escapedText?(Lr(r.label,v.Duplicate_label_0,Hc(r.label)),!0):!1),Uo(r.statement)}function RUt(r){ov(r)||$e(r.expression)&&!r.expression.escapedText&&rqt(r,v.Line_break_not_permitted_here),r.expression&&ys(r.expression)}function MUt(r){ov(r),Ene(r.tryBlock);let o=r.catchClause;if(o){if(o.variableDeclaration){let _=o.variableDeclaration;wq(_);let h=Vl(_);if(h){let T=Gi(h);T&&!(T.flags&3)&&Vu(h,v.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(_.initializer)Vu(_.initializer,v.Catch_clause_variable_cannot_have_an_initializer);else{let T=o.block.locals;T&&m0(o.locals,C=>{let w=T.get(C);w?.valueDeclaration&&w.flags&2&&Lr(w.valueDeclaration,v.Cannot_redeclare_identifier_0_in_catch_clause,Zi(C))})}}Ene(o.block)}r.finallyBlock&&Ene(r.finallyBlock)}function kne(r,o,_){let h=Q_(r);if(h.length===0)return;for(let C of PS(r))_&&C.flags&4194304||cKe(r,C,zk(C,8576,!0),CS(C));let T=o.valueDeclaration;if(T&&vi(T)){for(let C of T.members)if(!co(C)&&!UD(C)){let w=Un(C);cKe(r,w,n_(C.name.expression),CS(w))}}if(h.length>1)for(let C of h)LUt(r,C)}function cKe(r,o,_,h){let T=o.valueDeclaration,C=Ns(T);if(C&&es(C))return;let w=exe(r,_),V=Qn(r)&2?kc(r.symbol,264):void 0,H=T&&T.kind===226||C&&C.kind===167?T:void 0,X=e_(o)===r.symbol?T:void 0;for(let _e of w){let Ie=_e.declaration&&e_(Un(_e.declaration))===r.symbol?_e.declaration:void 0,Ne=X||Ie||(V&&!Dt(mi(r),dt=>!!ZE(dt,o.escapedName)&&!!db(dt,_e.keyType))?V:void 0);if(Ne&&!yo(h,_e.type)){let dt=I2(Ne,v.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ns(o),_n(h),_n(_e.keyType),_n(_e.type));H&&Ne!==H&&lo(dt,mn(H,v._0_is_declared_here,ns(o))),da.add(dt)}}}function LUt(r,o){let _=o.declaration,h=exe(r,o.keyType),T=Qn(r)&2?kc(r.symbol,264):void 0,C=_&&e_(Un(_))===r.symbol?_:void 0;for(let w of h){if(w===o)continue;let V=w.declaration&&e_(Un(w.declaration))===r.symbol?w.declaration:void 0,H=C||V||(T&&!Dt(mi(r),X=>!!Hy(X,o.keyType)&&!!db(X,w.keyType))?T:void 0);H&&!yo(o.type,w.type)&&Ze(H,v._0_index_type_1_is_not_assignable_to_2_index_type_3,_n(o.keyType),_n(o.type),_n(w.keyType),_n(w.type))}}function h4(r,o){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":case"undefined":Ze(r,o,r.escapedText)}}function FUt(r){ee>=1&&r.escapedText==="Object"&&(W<5||Jr(r).impliedNodeFormat===1)&&Ze(r,v.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,E3[W])}function jUt(r){let o=ti(nT(r),Nd);if(!kt(o))return;let _=vn(r),h=new Set,T=new Set;if(Et(r.parameters,({name:w},V)=>{$e(w)&&h.add(w.escapedText),$s(w)&&T.add(V)}),ixe(r)){let w=o.length-1,V=o[w];_&&V&&$e(V.name)&&V.typeExpression&&V.typeExpression.type&&!h.has(V.name.escapedText)&&!T.has(w)&&!qd(Gi(V.typeExpression.type))&&Ze(V.name,v.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,In(V.name))}else Et(o,({name:w,isNameFirst:V},H)=>{T.has(H)||$e(w)&&h.has(w.escapedText)||(uf(w)?_&&Ze(w,v.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,lp(w),lp(w.left)):V||Au(_,w,v.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,In(w)))})}function Mq(r){let o=!1;if(r)for(let h=0;h{h.default?(o=!0,BUt(h.default,r,T)):o&&Ze(h,v.Required_type_parameters_may_not_follow_optional_type_parameters);for(let C=0;Ch)return!1;for(let H=0;HJl(_)&&B_(_))&&Lr(o,v.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!_i(r,2048)&&Vu(r,v.A_class_declaration_without_the_default_modifier_must_have_a_name),fKe(r),Et(r.members,Uo),jS(r)}function fKe(r){AJt(r),Nq(r),m4(r,r.name),Mq(j1(r)),a7(r);let o=Un(r),_=oc(o),h=Ep(_),T=yn(o);lKe(o),Sne(o),nBt(r),!!(r.flags&33554432)||iBt(r);let w=Lg(r);if(w){Et(w.typeArguments,Uo),ee<2&&hu(w.parent,1);let X=nE(r);X&&X!==w&&ys(X.expression);let _e=mi(_);_e.length&&n(()=>{let Ie=_e[0],Ne=Br(_),dt=X_(Ne);if(WUt(dt,w),Uo(w.expression),Dt(w.typeArguments)){Et(w.typeArguments,Uo);for(let Lt of zte(dt,w.typeArguments,w))if(!MYe(w,Lt.typeParameters))break}let Ct=Ep(Ie,_.thisType);if(R_(h,Ct,void 0)?R_(T,bGe(dt),r.name||r,v.Class_static_side_0_incorrectly_extends_base_class_static_side_1):mKe(r,h,Ct,v.Class_0_incorrectly_extends_base_class_1),Ne.flags&8650752&&(hJ(T)?Ks(Ne,1).some(hr=>hr.flags&4)&&!_i(r,64)&&Ze(r.name||r,v.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Ze(r.name||r,v.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(dt.symbol&&dt.symbol.flags&32)&&!(Ne.flags&8650752)){let Lt=pb(dt,w.typeArguments,w);Et(Lt,hr=>!yh(hr.declaration)&&!Z0(Na(hr),Ie))&&Ze(w.expression,v.Base_constructors_must_all_have_the_same_return_type)}$Ut(_,Ie)})}zUt(r,_,h,T);let V=tN(r);if(V)for(let X of V)(!nc(X.expression)||b_(X.expression))&&Ze(X.expression,v.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),wCe(X),n(H(X));n(()=>{kne(_,o),kne(T,o,!0),DCe(r),XUt(r)});function H(X){return()=>{let _e=Sg(Gi(X));if(!la(_e))if(Pu(_e)){let Ie=_e.symbol&&_e.symbol.flags&32?v.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:v.Class_0_incorrectly_implements_interface_1,Ne=Ep(_e,_.thisType);R_(h,Ne,void 0)||mKe(r,h,Ne,Ie)}else Ze(X,v.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function zUt(r,o,_,h){let C=Lg(r)&&mi(o),w=C?.length?Ep(Fo(C),o.thisType):void 0,V=Br(o);for(let H of r.members)s$(H)||(Vc(H)&&Et(H.parameters,X=>{cp(X,H)&&pKe(r,h,V,w,o,_,X,!0)}),pKe(r,h,V,w,o,_,H,!1))}function pKe(r,o,_,h,T,C,w,V,H=!0){let X=w.name&&Sm(w.name)||Sm(w);return X?dKe(r,o,_,h,T,C,B9(w),aE(w),co(w),V,Qc(X),H?w:void 0):0}function dKe(r,o,_,h,T,C,w,V,H,X,_e,Ie){let Ne=vn(r),dt=!!(r.flags&33554432);if(h&&(w||q.noImplicitOverride)){let Ct=Uc(_e),Lt=H?o:C,hr=H?_:h,Er=ho(Lt,Ct),rn=ho(hr,Ct),Bn=_n(h);if(Er&&!rn&&w){if(Ie){let wr=C$e(_e,hr);wr?Ze(Ie,Ne?v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:v.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,Bn,ns(wr)):Ze(Ie,Ne?v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:v.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,Bn)}return 2}else if(Er&&rn?.declarations&&q.noImplicitOverride&&!dt){let wr=Dt(rn.declarations,aE);if(w)return 0;if(wr){if(V&&wr)return Ie&&Ze(Ie,v.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,Bn),1}else{if(Ie){let Gr=X?Ne?v.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:v.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Ne?v.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:v.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;Ze(Ie,Gr,Bn)}return 1}}}else if(w){if(Ie){let Ct=_n(T);Ze(Ie,Ne?v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:v.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,Ct)}return 2}return 0}function mKe(r,o,_,h){let T=!1;for(let C of r.members){if(co(C))continue;let w=C.name&&Sm(C.name)||Sm(C);if(w){let V=ho(o,w.escapedName),H=ho(_,w.escapedName);if(V&&H){let X=()=>Bs(void 0,v.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ns(w),_n(o),_n(_));R_(yn(V),yn(H),C.name||C,void 0,X)||(T=!0)}}}T||R_(o,_,r.name||r,h)}function WUt(r,o){let _=Ks(r,1);if(_.length){let h=_[0].declaration;if(h&&fp(h,2)){let T=T0(r.symbol);QCe(o,T)||Ze(o,v.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,lh(r.symbol))}}}function GUt(r,o,_){if(!o.name)return 0;let h=Un(r),T=oc(h),C=Ep(T),w=yn(h),H=Lg(r)&&mi(T),X=H?.length?Ep(Fo(H),T.thisType):void 0,_e=Br(T),Ie=o.parent?B9(o):_i(o,16);return dKe(r,w,_e,X,T,C,Ie,aE(o),co(o),!1,Qc(_))}function iI(r){return ul(r)&1?r.links.target:r}function HUt(r){return ti(r.declarations,o=>o.kind===263||o.kind===264)}function $Ut(r,o){var _,h,T,C,w;let V=Ea(o),H=new Map;e:for(let X of V){let _e=iI(X);if(_e.flags&4194304)continue;let Ie=ZE(r,_e.escapedName);if(!Ie)continue;let Ne=iI(Ie),dt=Cd(_e);if(M.assert(!!Ne,"derived should point to something, even if it is the base class' declaration."),Ne===_e){let Ct=T0(r.symbol);if(dt&64&&(!Ct||!_i(Ct,64))){for(let Bn of mi(r)){if(Bn===o)continue;let wr=ZE(Bn,_e.escapedName),Gr=wr&&iI(wr);if(Gr&&Gr!==_e)continue e}let Lt=_n(o),hr=_n(r),Er=ns(X),rn=Ut((_=H.get(Ct))==null?void 0:_.missedProperties,Er);H.set(Ct,{baseTypeName:Lt,typeName:hr,missedProperties:rn})}}else{let Ct=Cd(Ne);if(dt&2||Ct&2)continue;let Lt,hr=_e.flags&98308,Er=Ne.flags&98308;if(hr&&Er){if((ul(_e)&6?(h=_e.declarations)!=null&&h.some(wr=>gKe(wr,dt)):(T=_e.declarations)!=null&&T.every(wr=>gKe(wr,dt)))||ul(_e)&262144||Ne.valueDeclaration&&Dn(Ne.valueDeclaration))continue;let rn=hr!==4&&Er===4;if(rn||hr===4&&Er!==4){let wr=rn?v._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:v._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Ze(Ns(Ne.valueDeclaration)||Ne.valueDeclaration,wr,ns(_e),_n(o),_n(r))}else if(K){let wr=(C=Ne.declarations)==null?void 0:C.find(Gr=>Gr.kind===172&&!Gr.initializer);if(wr&&!(Ne.flags&33554432)&&!(dt&64)&&!(Ct&64)&&!((w=Ne.declarations)!=null&&w.some(Gr=>!!(Gr.flags&33554432)))){let Gr=sM(T0(r.symbol)),en=wr.name;if(wr.exclamationToken||!Gr||!$e(en)||!ce||!yKe(en,r,Gr)){let $n=v.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Ze(Ns(Ne.valueDeclaration)||Ne.valueDeclaration,$n,ns(_e),_n(o))}}}continue}else if(H2e(_e)){if(H2e(Ne)||Ne.flags&4)continue;M.assert(!!(Ne.flags&98304)),Lt=v.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else _e.flags&98304?Lt=v.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:Lt=v.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Ze(Ns(Ne.valueDeclaration)||Ne.valueDeclaration,Lt,_n(o),ns(_e),_n(r))}}for(let[X,_e]of H)if(kt(_e.missedProperties)===1)tu(X)?Ze(X,v.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Fo(_e.missedProperties),_e.baseTypeName):Ze(X,v.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,_e.typeName,Fo(_e.missedProperties),_e.baseTypeName);else if(kt(_e.missedProperties)>5){let Ie=kr(_e.missedProperties.slice(0,4),dt=>`'${dt}'`).join(", "),Ne=kt(_e.missedProperties)-4;tu(X)?Ze(X,v.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,_e.baseTypeName,Ie,Ne):Ze(X,v.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more,_e.typeName,_e.baseTypeName,Ie,Ne)}else{let Ie=kr(_e.missedProperties,Ne=>`'${Ne}'`).join(", ");tu(X)?Ze(X,v.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,_e.baseTypeName,Ie):Ze(X,v.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2,_e.typeName,_e.baseTypeName,Ie)}}function gKe(r,o){return o&64&&(!Ds(r)||!r.initializer)||Xu(r.parent)}function YUt(r,o,_){if(!kt(o))return _;let h=new Map;Et(_,T=>{h.set(T.escapedName,T)});for(let T of o){let C=Ea(Ep(T,r.thisType));for(let w of C){let V=h.get(w.escapedName);V&&w.parent===V.parent&&h.delete(w.escapedName)}}return Os(h.values())}function KUt(r,o){let _=mi(r);if(_.length<2)return!0;let h=new Map;Et(BEe(r).declaredProperties,C=>{h.set(C.escapedName,{prop:C,containingType:r})});let T=!0;for(let C of _){let w=Ea(Ep(C,r.thisType));for(let V of w){let H=h.get(V.escapedName);if(!H)h.set(V.escapedName,{prop:V,containingType:C});else if(H.containingType!==r&&!t7t(H.prop,V)){T=!1;let _e=_n(H.containingType),Ie=_n(C),Ne=Bs(void 0,v.Named_property_0_of_types_1_and_2_are_not_identical,ns(V),_e,Ie);Ne=Bs(Ne,v.Interface_0_cannot_simultaneously_extend_types_1_and_2,_n(r),_e,Ie),da.add(Ay(Jr(o),o,Ne))}}}return T}function XUt(r){if(!ce||!me||r.flags&33554432)return;let o=sM(r);for(let _ of r.members)if(!(V_(_)&128)&&!co(_)&&hKe(_)){let h=_.name;if($e(h)||es(h)||Go(h)){let T=yn(Un(_));T.flags&3||$D(T)||(!o||!yKe(h,T,o))&&Ze(_.name,v.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Ya(h))}}}function hKe(r){return r.kind===172&&!aE(r)&&!r.exclamationToken&&!r.initializer}function QUt(r,o,_,h,T){for(let C of _)if(C.pos>=h&&C.pos<=T){let w=U.createPropertyAccessExpression(U.createThis(),r);fa(w.expression,w),fa(w,C),w.flowNode=C.returnFlowNode;let V=sv(w,o,LS(o));if(!$D(V))return!0}return!1}function yKe(r,o,_){let h=Go(r)?U.createElementAccessExpression(U.createThis(),r.expression):U.createPropertyAccessExpression(U.createThis(),r);fa(h.expression,h),fa(h,_),h.flowNode=_.returnFlowNode;let T=sv(h,o,LS(o));return!$D(T)}function ZUt(r){Ky(r)||OJt(r),Mq(r.typeParameters),n(()=>{h4(r.name,v.Interface_name_cannot_be_0),a7(r);let o=Un(r);lKe(o);let _=kc(o,264);if(r===_){let h=oc(o),T=Ep(h);if(KUt(h,r.name)){for(let C of mi(h))R_(T,Ep(C,h.thisType),r.name,v.Interface_0_incorrectly_extends_interface_1);kne(h,o)}}IYe(r)}),Et(jw(r),o=>{(!nc(o.expression)||b_(o.expression))&&Ze(o.expression,v.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),wCe(o)}),Et(r.members,Uo),n(()=>{DCe(r),jS(r)})}function eVt(r){Ky(r),h4(r.name,v.Type_alias_name_cannot_be_0),a7(r),Mq(r.typeParameters),r.type.kind===141?(!CK.has(r.name.escapedText)||kt(r.typeParameters)!==1)&&Ze(r.type,v.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(Uo(r.type),jS(r))}function vKe(r){let o=Wn(r);if(!(o.flags&1024)){o.flags|=1024;let _=0,h;for(let T of r.members){let C=tVt(T,_,h);Wn(T).enumMemberValue=C,_=typeof C.value=="number"?C.value+1:void 0,h=T}}}function tVt(r,o,_){if(nR(r.name))Ze(r.name,v.Computed_property_names_are_not_allowed_in_enums);else{let h=rA(r.name);Oy(h)&&!fO(h)&&Ze(r.name,v.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return rVt(r);if(r.parent.flags&33554432&&!Kb(r.parent))return fu(void 0);if(o===void 0)return Ze(r.name,v.Enum_member_must_have_initializer),fu(void 0);if(Ad(q)&&_?.initializer){let h=fC(_);typeof h.value=="number"&&!h.resolvedOtherFiles||Ze(r.name,v.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return fu(o)}function rVt(r){let o=Kb(r.parent),_=r.initializer,h=ke(_,r);return h.value!==void 0?o&&typeof h.value=="number"&&!isFinite(h.value)?Ze(_,isNaN(h.value)?v.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:v.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):Ad(q)&&typeof h.value=="string"&&!h.isSyntacticallyString&&Ze(_,v._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${In(r.parent.name)}.${rA(r.name)}`):o?Ze(_,v.const_enum_member_initializers_must_be_constant_expressions):r.parent.flags&33554432?Ze(_,v.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):R_(ys(_),be,_,v.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),h}function SKe(r,o){let _=nl(r,111551,!0);if(!_)return fu(void 0);if(r.kind===80){let h=r;if(fO(h.escapedText)&&_===GD(h.escapedText,111551,void 0))return fu(+h.escapedText,!1)}if(_.flags&8)return o?TKe(r,_,o):fC(_.valueDeclaration);if(Qk(_)){let h=_.valueDeclaration;if(h&&Ci(h)&&!h.type&&h.initializer&&(!o||h!==o&&Fm(h,o))){let T=ke(h.initializer,h);return o&&Jr(o)!==Jr(h)?fu(T.value,!1,!0,!0):fu(T.value,T.isSyntacticallyString,T.resolvedOtherFiles,!0)}}return fu(void 0)}function nVt(r,o){let _=r.expression;if(nc(_)&&Ia(r.argumentExpression)){let h=nl(_,111551,!0);if(h&&h.flags&384){let T=Uc(r.argumentExpression.text),C=h.exports.get(T);if(C)return M.assert(Jr(C.valueDeclaration)===Jr(h.valueDeclaration)),o?TKe(r,C,o):fC(C.valueDeclaration)}}return fu(void 0)}function TKe(r,o,_){let h=o.valueDeclaration;if(!h||h===_)return Ze(r,v.Property_0_is_used_before_being_assigned,ns(o)),fu(void 0);if(!Fm(h,_))return Ze(r,v.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),fu(0);let T=fC(h);return _.parent!==h.parent?fu(T.value,T.isSyntacticallyString,T.resolvedOtherFiles,!0):T}function iVt(r){n(()=>sVt(r))}function sVt(r){Ky(r),m4(r,r.name),a7(r),r.members.forEach(oVt),vKe(r);let o=Un(r),_=kc(o,r.kind);if(r===_){if(o.declarations&&o.declarations.length>1){let T=Kb(r);Et(o.declarations,C=>{TT(C)&&Kb(C)!==T&&Ze(Ns(C),v.Enum_declarations_must_all_be_const_or_non_const)})}let h=!1;Et(o.declarations,T=>{if(T.kind!==266)return!1;let C=T;if(!C.members.length)return!1;let w=C.members[0];w.initializer||(h?Ze(w.name,v.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):h=!0)})}}function oVt(r){es(r.name)&&Ze(r,v.An_enum_member_cannot_be_named_with_a_private_identifier),r.initializer&&ys(r.initializer)}function aVt(r){let o=r.declarations;if(o){for(let _ of o)if((_.kind===263||_.kind===262&&Kd(_.body))&&!(_.flags&33554432))return _}}function cVt(r,o){let _=Zm(r),h=Zm(o);return Ev(_)?Ev(h):Ev(h)?!1:_===h}function lVt(r){r.body&&(Uo(r.body),Og(r)||jS(r)),n(o);function o(){var _,h;let T=Og(r),C=r.flags&33554432;T&&!C&&Ze(r.name,v.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let w=U_(r),V=w?v.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:v.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(Lq(r,V))return;Ky(r)||!C&&r.name.kind===11&&Lr(r.name,v.Only_ambient_modules_can_use_quoted_names),$e(r.name)&&m4(r,r.name),a7(r);let H=Un(r);if(H.flags&512&&!C&&AK(r,lE(q))){if(Ad(q)&&!Jr(r).externalModuleIndicator&&Ze(r.name,v.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,we),((_=H.declarations)==null?void 0:_.length)>1){let X=aVt(H);X&&(Jr(r)!==Jr(X)?Ze(r.name,v.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.pos_e.kind===95);X&&Ze(X,v.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(w)if(Yb(r)){if((T||Un(r).flags&33554432)&&r.body)for(let _e of r.body.statements)HCe(_e,T)}else Ev(r.parent)?T?Ze(r.name,v.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Su(Zd(r.name))&&Ze(r.name,v.Ambient_module_declaration_cannot_specify_relative_module_name):T?Ze(r.name,v.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ze(r.name,v.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function HCe(r,o){switch(r.kind){case 243:for(let h of r.declarationList.declarations)HCe(h,o);break;case 277:case 278:Vu(r,v.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:Vu(r,v.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let _=r.name;if($s(_)){for(let h of _.elements)HCe(h,o);break}case 263:case 266:case 262:case 264:case 267:case 265:if(o)return;break}}function uVt(r){switch(r.kind){case 80:return r;case 166:do r=r.left;while(r.kind!==80);return r;case 211:do{if(ky(r.expression)&&!es(r.name))return r.name;r=r.expression}while(r.kind!==80);return r}}function Pne(r){let o=oA(r);if(!o||Gc(o))return!1;if(!jo(o))return Ze(o,v.String_literal_expected),!1;let _=r.parent.kind===268&&U_(r.parent.parent);if(r.parent.kind!==307&&!_)return Ze(o,r.kind===278?v.Export_declarations_are_not_permitted_in_a_namespace:v.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(_&&Su(o.text)&&!vL(r))return Ze(r,v.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!nu(r)&&r.attributes){let h=r.attributes.token===118?v.Import_attribute_values_must_be_string_literal_expressions:v.Import_assertion_values_must_be_string_literal_expressions,T=!1;for(let C of r.attributes.elements)jo(C.value)||(T=!0,Ze(C.value,h));return!T}return!0}function Nne(r){var o,_,h,T;let C=Un(r),w=ku(C);if(w!==Tt){if(C=sa(C.exportSymbol||C),vn(r)&&!(w.flags&111551)&&!iT(r)){let X=YC(r)?r.propertyName||r.name:Hu(r)?r.name:r;if(M.assert(r.kind!==280),r.kind===281){let _e=Ze(X,v.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Ie=(_=(o=Jr(r).symbol)==null?void 0:o.exports)==null?void 0:_.get((r.propertyName||r.name).escapedText);if(Ie===w){let Ne=(h=Ie.declarations)==null?void 0:h.find(jP);Ne&&lo(_e,mn(Ne,v._0_is_automatically_exported_here,Zi(Ie.escapedName)))}}else{M.assert(r.kind!==260);let _e=Dr(r,qp(Yc,nu)),Ie=(_e&&((T=Ow(_e))==null?void 0:T.text))??"...",Ne=Zi($e(X)?X.escapedText:C.escapedName);Ze(X,v._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Ne,`import("${Ie}").${Ne}`)}return}let V=Kf(w),H=(C.flags&1160127?111551:0)|(C.flags&788968?788968:0)|(C.flags&1920?1920:0);if(V&H){let X=r.kind===281?v.Export_declaration_conflicts_with_exported_declaration_of_0:v.Import_declaration_conflicts_with_local_declaration_of_0;Ze(r,X,ns(C))}else r.kind!==281&&q.isolatedModules&&!Dr(r,iT)&&C.flags&1160127&&Ze(r,v.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,ns(C),we);if(Ad(q)&&!iT(r)&&!(r.flags&33554432)){let X=ch(C),_e=!(V&111551);if(_e||X)switch(r.kind){case 273:case 276:case 271:{if(q.verbatimModuleSyntax){M.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");let Ie=q.verbatimModuleSyntax&&iA(r)?v.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:_e?v._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:v._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,Ne=In(r.kind===276&&r.propertyName||r.name);XT(Ze(r,Ie,Ne),_e?void 0:X,Ne)}_e&&r.kind===271&&fp(r,32)&&Ze(r,v.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,we);break}case 281:if(q.verbatimModuleSyntax||Jr(X)!==Jr(r)){let Ie=In(r.propertyName||r.name),Ne=_e?Ze(r,v.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,we):Ze(r,v._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Ie,we);XT(Ne,_e?void 0:X,Ie);break}}q.verbatimModuleSyntax&&r.kind!==271&&!vn(r)&&(W===1||Jr(r).impliedNodeFormat===1)&&Ze(r,v.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(pf(r)){let X=$Ce(C,r);Ld(X)&&X.declarations&&F0(r,X.declarations,X.escapedName)}}}function $Ce(r,o){if(!(r.flags&2097152)||Ld(r)||!Sp(r))return r;let _=ku(r);if(_===Tt)return _;for(;r.flags&2097152;){let h=Xre(r);if(h){if(h===_)break;if(h.declarations&&kt(h.declarations))if(Ld(h)){F0(o,h.declarations,h.escapedName);break}else{if(r===_)break;r=h}}else break}return _}function Dne(r){m4(r,r.name),Nne(r),r.kind===276&&In(r.propertyName||r.name)==="default"&&Iy(q)&&W!==4&&(W<5||Jr(r).impliedNodeFormat===1)&&hu(r,131072)}function YCe(r){var o;let _=r.attributes;if(_){let h=mxe(!0);h!==Wi&&R_(Y(_),HJ(h,32768),_);let T=cX(r),C=UN(_,T?Lr:void 0),w=r.attributes.token===118;if(T&&C)return;if((W===199&&r.moduleSpecifier&&n1(r.moduleSpecifier))!==99&&W!==99&&W!==200){let X=w?W===199?v.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:v.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:W===199?v.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:v.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return Lr(_,X)}if(Kg(r)||(Yc(r)?(o=r.importClause)==null?void 0:o.isTypeOnly:r.isTypeOnly))return Lr(_,w?v.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:v.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(C)return Lr(_,v.resolution_mode_can_only_be_set_for_type_only_imports)}}function _Vt(r){return Z_(vl(r.value))}function fVt(r){if(!Lq(r,vn(r)?v.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:v.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ky(r)&&r.modifiers&&Vu(r,v.An_import_declaration_cannot_have_modifiers),Pne(r)){let o=r.importClause;o&&!iqt(o)&&(o.name&&Dne(o),o.namedBindings&&(o.namedBindings.kind===274?(Dne(o.namedBindings),W!==4&&(W<5||Jr(r).impliedNodeFormat===1)&&Iy(q)&&hu(r,65536)):Y_(r,r.moduleSpecifier)&&Et(o.namedBindings.elements,Dne)))}YCe(r)}}function pVt(r){if(!Lq(r,vn(r)?v.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:v.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Ky(r),iA(r)||Pne(r)))if(Dne(r),Zk(r,6),r.moduleReference.kind!==283){let o=ku(Un(r));if(o!==Tt){let _=Kf(o);if(_&111551){let h=pp(r.moduleReference);nl(h,112575).flags&1920||Ze(h,v.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Ya(h))}_&788968&&h4(r.name,v.Import_name_cannot_be_0)}r.isTypeOnly&&Lr(r,v.An_import_alias_cannot_use_import_type)}else W>=5&&W!==200&&Jr(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&33554432)&&Lr(r,v.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function dVt(r){if(!Lq(r,vn(r)?v.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:v.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Ky(r)&&jfe(r)&&Vu(r,v.An_export_declaration_cannot_have_modifiers),mVt(r),!r.moduleSpecifier||Pne(r))if(r.exportClause&&!qh(r.exportClause)){Et(r.exportClause.elements,gVt);let o=r.parent.kind===268&&U_(r.parent.parent),_=!o&&r.parent.kind===268&&!r.moduleSpecifier&&r.flags&33554432;r.parent.kind!==307&&!o&&!_&&Ze(r,v.Export_declarations_are_not_permitted_in_a_namespace)}else{let o=Y_(r,r.moduleSpecifier);o&&sb(o)?Ze(r.moduleSpecifier,v.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ns(o)):r.exportClause&&Nne(r.exportClause),W!==4&&(W<5||Jr(r).impliedNodeFormat===1)&&(r.exportClause?Iy(q)&&hu(r,65536):hu(r,32768))}YCe(r)}}function mVt(r){var o;return r.isTypeOnly&&((o=r.exportClause)==null?void 0:o.kind)===279?rXe(r.exportClause):!1}function Lq(r,o){let _=r.parent.kind===307||r.parent.kind===268||r.parent.kind===267;return _||Vu(r,o),!_}function gVt(r){if(Nne(r),Hp(q)&&KE(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)Iy(q)&&W!==4&&(W<5||Jr(r).impliedNodeFormat===1)&&In(r.propertyName||r.name)==="default"&&hu(r,131072);else{let o=r.propertyName||r.name,_=Ar(o,o.escapedText,2998271,void 0,!0);_&&(_===Be||_===lt||_.declarations&&Ev(z2(_.declarations[0])))?Ze(o,v.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,In(o)):Zk(r,7)}}function hVt(r){let o=r.isExportEquals?v.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:v.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(Lq(r,o))return;let _=r.parent.kind===307?r.parent:r.parent.parent;if(_.kind===267&&!U_(_)){r.isExportEquals?Ze(r,v.An_export_assignment_cannot_be_used_in_a_namespace):Ze(r,v.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Ky(r)&&i$(r)&&Vu(r,v.An_export_assignment_cannot_have_modifiers);let h=Vl(r);h&&R_(vl(r.expression),Gi(h),r.expression);let T=!r.isExportEquals&&!(r.flags&33554432)&&q.verbatimModuleSyntax&&(W===1||Jr(r).impliedNodeFormat===1);if(r.expression.kind===80){let C=r.expression,w=Lp(nl(C,-1,!0,!0,r));if(w){Zk(r,3);let V=ch(w,111551);if(Kf(w)&111551?(vl(C),!T&&!(r.flags&33554432)&&q.verbatimModuleSyntax&&V&&Ze(C,r.isExportEquals?v.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:v.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,In(C))):!T&&!(r.flags&33554432)&&q.verbatimModuleSyntax&&Ze(C,r.isExportEquals?v.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:v.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,In(C)),!T&&!(r.flags&33554432)&&Ad(q)&&!(w.flags&111551)){let H=Kf(w,!1,!0);w.flags&2097152&&H&788968&&!(H&111551)&&(!V||Jr(V)!==Jr(r))?Ze(C,r.isExportEquals?v._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:v._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,In(C),we):V&&Jr(V)!==Jr(r)&&XT(Ze(C,r.isExportEquals?v._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:v._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,In(C),we),V,In(C))}}else vl(C);Hp(q)&&KE(C,!0)}else vl(r.expression);T&&Ze(r,v.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),bKe(_),r.flags&33554432&&!nc(r.expression)&&Lr(r.expression,v.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&(W>=5&&W!==200&&(r.flags&33554432&&Jr(r).impliedNodeFormat===99||!(r.flags&33554432)&&Jr(r).impliedNodeFormat!==1)?Lr(r,v.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):W===4&&!(r.flags&33554432)&&Lr(r,v.Export_assignment_is_not_supported_when_module_flag_is_system))}function yVt(r){return Iu(r.exports,(o,_)=>_!=="export=")}function bKe(r){let o=Un(r),_=as(o);if(!_.exportsChecked){let h=o.exports.get("export=");if(h&&yVt(o)){let C=Sp(h)||h.valueDeclaration;C&&!vL(C)&&!vn(C)&&Ze(C,v.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let T=dg(o);T&&T.forEach(({declarations:C,flags:w},V)=>{if(V==="__export"||w&1920)return;let H=yy(C,l5(wbt,u5(Xu)));if(!(w&524288&&H<=2)&&H>1&&!Ine(C))for(let X of C)GRe(X)&&da.add(mn(X,v.Cannot_redeclare_exported_variable_0,Zi(V)))}),_.exportsChecked=!0}}function Ine(r){return r&&r.length>1&&r.every(o=>vn(o)&&ac(o)&&(Xx(o.expression)||ky(o.expression)))}function Uo(r){if(r){let o=R;R=r,x=0,vVt(r),R=o}}function vVt(r){NR(r)&&Et(r.jsDoc,({comment:_,tags:h})=>{EKe(_),Et(h,T=>{EKe(T.comment),vn(r)&&Uo(T)})});let o=r.kind;if(i)switch(o){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(o>=243&&o<=259&&PR(r)&&r.flowNode&&!tq(r.flowNode)&&Au(q.allowUnreachableCode===!1,r,v.Unreachable_code_detected),o){case 168:return PYe(r);case 169:return NYe(r);case 172:return wYe(r);case 171:return sBt(r);case 185:case 184:case 179:case 180:case 181:return o7(r);case 174:case 173:return oBt(r);case 175:return aBt(r);case 176:return cBt(r);case 177:case 178:return RYe(r);case 183:return wCe(r);case 182:return tBt(r);case 186:return dBt(r);case 187:return mBt(r);case 188:return gBt(r);case 189:return hBt(r);case 192:case 193:return yBt(r);case 196:case 190:case 191:return Uo(r.type);case 197:return bBt(r);case 198:return EBt(r);case 194:return xBt(r);case 195:return CBt(r);case 203:return ABt(r);case 205:return kBt(r);case 202:return PBt(r);case 328:return $Bt(r);case 329:return HBt(r);case 346:case 338:case 340:return FBt(r);case 345:return jBt(r);case 344:return BBt(r);case 324:case 325:case 326:return VBt(r);case 341:return JBt(r);case 348:return qBt(r);case 317:zBt(r);case 315:case 314:case 312:case 313:case 322:xKe(r),qs(r,Uo);return;case 318:SVt(r);return;case 309:return Uo(r.type);case 333:case 335:case 334:return YBt(r);case 350:return UBt(r);case 343:return WBt(r);case 351:return GBt(r);case 199:return vBt(r);case 200:return SBt(r);case 262:return LBt(r);case 241:case 268:return Ene(r);case 243:return pUt(r);case 244:return dUt(r);case 245:return mUt(r);case 246:return yUt(r);case 247:return vUt(r);case 248:return SUt(r);case 249:return bUt(r);case 250:return TUt(r);case 251:case 252:return NUt(r);case 253:return DUt(r);case 254:return IUt(r);case 255:return wUt(r);case 256:return OUt(r);case 257:return RUt(r);case 258:return MUt(r);case 260:return _Ut(r);case 208:return fUt(r);case 263:return qUt(r);case 264:return ZUt(r);case 265:return eVt(r);case 266:return iVt(r);case 267:return lVt(r);case 272:return fVt(r);case 271:return pVt(r);case 278:return dVt(r);case 277:return hVt(r);case 242:case 259:ov(r);return;case 282:return uBt(r)}}function EKe(r){Ms(r)&&Et(r,o=>{ZC(o)&&Uo(o)})}function xKe(r){if(!vn(r))if(Wj(r)||bN(r)){let o=bo(Wj(r)?54:58),_=r.postfix?v._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:v._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,h=r.type,T=Gi(h);Lr(r,_,o,_n(bN(r)&&!(T===Pr||T===gn)?gi(Ut([T,sr],r.postfix?void 0:Xe)):T))}else Lr(r,v.JSDoc_types_can_only_be_used_inside_documentation_comments)}function SVt(r){xKe(r),Uo(r.type);let{parent:o}=r;if(is(o)&&EN(o.parent)){qo(o.parent.parameters)!==o&&Ze(r,v.A_rest_parameter_must_be_last_in_a_parameter_list);return}bT(o)||Ze(r,v.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let _=r.parent.parent;if(!Nd(_)){Ze(r,v.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let h=DR(_);if(!h)return;let T=uT(_);(!T||qo(T.parameters).symbol!==h)&&Ze(r,v.A_rest_parameter_must_be_last_in_a_parameter_list)}function TVt(r){let o=Gi(r.type),{parent:_}=r,h=r.parent.parent;if(bT(r.parent)&&Nd(h)){let T=uT(h),C=mY(h.parent.parent);if(T||C){let w=yc(C?h.parent.parent.typeExpression.parameters:T.parameters),V=DR(h);if(!w||V&&w.symbol===V&&Lh(w))return y_(o)}}return is(_)&&EN(_.parent)?y_(o):go(o)}function tP(r){let o=Jr(r),_=Wn(o);_.flags&1?M.assert(!_.deferredNodes,"A type-checked file should have no deferred nodes."):(_.deferredNodes||(_.deferredNodes=new Set),_.deferredNodes.add(r))}function bVt(r){let o=Wn(r);o.deferredNodes&&o.deferredNodes.forEach(EVt),o.deferredNodes=void 0}function EVt(r){var o,_;(o=kn)==null||o.push(kn.Phase.Check,"checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});let h=R;switch(R=r,x=0,r.kind){case 213:case 214:case 215:case 170:case 286:cC(r);break;case 218:case 219:case 174:case 173:Sjt(r);break;case 177:case 178:RYe(r);break;case 231:JUt(r);break;case 168:eBt(r);break;case 285:k5t(r);break;case 284:N5t(r);break;case 216:case 234:case 217:z9t(r);break;case 222:ys(r.expression);break;case 226:V9(r)&&cC(r);break}R=h,(_=kn)==null||_.pop()}function xVt(r){var o,_;(o=kn)==null||o.push(kn.Phase.Check,"checkSourceFile",{path:r.path},!0),jc("beforeCheck"),CVt(r),jc("afterCheck"),Sd("Check","beforeCheck","afterCheck"),(_=kn)==null||_.pop()}function CKe(r,o){if(o)return!1;switch(r){case 0:return!!q.noUnusedLocals;case 1:return!!q.noUnusedParameters;default:return M.assertNever(r)}}function AKe(r){return cd.get(r.path)||ve}function CVt(r){let o=Wn(r);if(!(o.flags&1)){if(cO(r,q,e))return;eqt(r),$m(FE),$m(JT),$m(qT),$m(zT),$m(P2),Et(r.statements,Uo),Uo(r.endOfFileToken),bVt(r),Jf(r)&&jS(r),n(()=>{!r.isDeclarationFile&&(q.noUnusedLocals||q.noUnusedParameters)&&WYe(AKe(r),(_,h,T)=>{!JP(_)&&CKe(h,!!(_.flags&33554432))&&da.add(T)}),r.isDeclarationFile||ZBt()}),Jf(r)&&bKe(r),FE.length&&(Et(FE,rUt),$m(FE)),JT.length&&(Et(JT,nUt),$m(JT)),qT.length&&(Et(qT,aUt),$m(qT)),zT.length&&(Et(zT,lUt),$m(zT)),o.flags|=1}}function kKe(r,o){try{return i=o,AVt(r)}finally{i=void 0}}function KCe(){for(let r of t)r();t=[]}function XCe(r){KCe();let o=n;n=_=>_(),xVt(r),n=o}function AVt(r){if(r){KCe();let o=da.getGlobalDiagnostics(),_=o.length;XCe(r);let h=da.getDiagnostics(r.fileName),T=da.getGlobalDiagnostics();if(T!==o){let C=Jn(o,T,eO);return ds(C,h)}else if(_===0&&T.length>0)return ds(T,h);return h}return Et(e.getSourceFiles(),XCe),da.getDiagnostics()}function kVt(){return KCe(),da.getGlobalDiagnostics()}function PVt(r,o){if(r.flags&67108864)return[];let _=po(),h=!1;return T(),_.delete("this"),txe(_);function T(){for(;r;){switch(Mh(r)&&r.locals&&!Ev(r)&&w(r.locals,o),r.kind){case 307:if(!iu(r))break;case 267:V(Un(r).exports,o&2623475);break;case 266:w(Un(r).exports,o&8);break;case 231:r.name&&C(r.symbol,o);case 263:case 264:h||w(kS(Un(r)),o&788968);break;case 218:r.name&&C(r.symbol,o);break}Q_e(r)&&C(ze,o),h=co(r),r=r.parent}w(De,o)}function C(H,X){if(lN(H)&X){let _e=H.escapedName;_.has(_e)||_.set(_e,H)}}function w(H,X){X&&H.forEach(_e=>{C(_e,X)})}function V(H,X){X&&H.forEach(_e=>{!kc(_e,281)&&!kc(_e,280)&&_e.escapedName!=="default"&&C(_e,X)})}}function NVt(r){return r.kind===80&&xA(r.parent)&&Ns(r.parent)===r}function PKe(r){for(;r.parent.kind===166;)r=r.parent;return r.parent.kind===183}function DVt(r){for(;r.parent.kind===211;)r=r.parent;return r.parent.kind===233}function NKe(r,o){let _,h=Lu(r);for(;h&&!(_=o(h));)h=Lu(h);return _}function IVt(r){return!!Dr(r,o=>Vc(o)&&Kd(o.body)||Ds(o)?!0:vi(o)||$a(o)?"quit":!1)}function QCe(r,o){return!!NKe(r,_=>_===o)}function wVt(r){for(;r.parent.kind===166;)r=r.parent;if(r.parent.kind===271)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===277)return r.parent.expression===r?r.parent:void 0}function wne(r){return wVt(r)!==void 0}function OVt(r){switch(ll(r.parent.parent)){case 1:case 3:return fd(r.parent);case 5:if(Hn(r.parent)&&uN(r.parent)===r)return;case 4:case 2:return Un(r.parent.parent)}}function RVt(r){let o=r.parent;for(;uf(o);)r=o,o=o.parent;if(o&&o.kind===205&&o.qualifier===r)return o}function MVt(r){if(r.expression.kind===110){let o=of(r,!1,!1);if(Us(o)){let _=WHe(o);if(_){let h=xb(_,void 0),T=HHe(_,h);return T&&!Pa(T)}}}}function DKe(r){if(Bh(r))return fd(r.parent);if(vn(r)&&r.parent.kind===211&&r.parent===r.parent.parent.left&&!es(r)&&!ET(r)&&!MVt(r.parent)){let o=OVt(r);if(o)return o}if(r.parent.kind===277&&nc(r)){let o=nl(r,2998271,!0);if(o&&o!==Tt)return o}else if(xf(r)&&wne(r)){let o=pT(r,271);return M.assert(o!==void 0),Ok(r,!0)}if(xf(r)){let o=RVt(r);if(o){Gi(o);let _=Wn(r).resolvedSymbol;return _===Tt?void 0:_}}for(;zfe(r);)r=r.parent;if(DVt(r)){let o=0;r.parent.kind===233?(o=Mg(r)?788968:111551,U9(r.parent)&&(o|=111551)):o=1920,o|=2097152;let _=nc(r)?nl(r,o,!0):void 0;if(_)return _}if(r.parent.kind===341)return DR(r.parent);if(r.parent.kind===168&&r.parent.parent.kind===345){M.assert(!vn(r));let o=pfe(r.parent);return o&&o.symbol}if(eg(r)){if(Gc(r))return;let o=Dr(r,qp(ZC,IO,ET)),_=o?901119:111551;if(r.kind===80){if(YP(r)&&eP(r)){let T=Zre(r.parent);return T===Tt?void 0:T}let h=nl(r,_,!0,!0,uT(r));if(!h&&o){let T=Dr(r,qp(vi,Xu));if(T)return Fq(r,!0,Un(T))}if(h&&o){let T=tE(r);if(T&&nS(T)&&T===h.valueDeclaration)return nl(r,_,!0,!0,Jr(T))||h}return h}else{if(es(r))return rne(r);if(r.kind===211||r.kind===166){let h=Wn(r);return h.resolvedSymbol?h.resolvedSymbol:(r.kind===211?(tne(r,0),h.resolvedSymbol||(h.resolvedSymbol=IKe(vl(r.expression),m1(r.name)))):S$e(r,0),!h.resolvedSymbol&&o&&uf(r)?Fq(r):h.resolvedSymbol)}else if(ET(r))return Fq(r)}}else if(PKe(r)){let o=r.parent.kind===183?788968:1920,_=nl(r,o,!1,!0);return _&&_!==Tt?_:ere(r)}if(r.parent.kind===182)return nl(r,1)}function IKe(r,o){let _=exe(r,o);if(_.length&&r.members){let h=Xte(vg(r).members);if(_===Q_(r))return h;if(h){let T=as(h),C=Yi(_,V=>V.declaration),w=kr(C,Sa).join(",");if(T.filteredIndexSymbolCache||(T.filteredIndexSymbolCache=new Map),T.filteredIndexSymbolCache.has(w))return T.filteredIndexSymbolCache.get(w);{let V=ta(131072,"__index");return V.declarations=Yi(_,H=>H.declaration),V.parent=r.aliasSymbol?r.aliasSymbol:r.symbol?r.symbol:Sm(V.declarations[0].parent),T.filteredIndexSymbolCache.set(w,V),V}}}}function Fq(r,o,_){if(xf(r)){let w=nl(r,901119,o,!0,uT(r));if(!w&&$e(r)&&_&&(w=sa(h_(Mp(_),r.escapedText,901119))),w)return w}let h=$e(r)?_:Fq(r.left,o,_),T=$e(r)?r.escapedText:r.right.escapedText;if(h){let C=h.flags&111551&&ho(yn(h),"prototype"),w=C?yn(C):oc(h);return ho(w,T)}}function Sm(r,o){if(qi(r))return iu(r)?sa(r.symbol):void 0;let{parent:_}=r,h=_.parent;if(!(r.flags&67108864)){if(HRe(r)){let T=Un(_);return YC(r.parent)&&r.parent.propertyName===r?Xre(T):T}else if(wR(r))return Un(_.parent);if(r.kind===80){if(wne(r))return DKe(r);if(_.kind===208&&h.kind===206&&r===_.propertyName){let T=rP(h),C=ho(T,r.escapedText);if(C)return C}else if(xO(_)&&_.name===r)return _.keywordToken===105&&In(r)==="target"?mCe(_).symbol:_.keywordToken===102&&In(r)==="meta"?NWe().members.get("meta"):void 0}switch(r.kind){case 80:case 81:case 211:case 166:if(!oE(r))return DKe(r);case 110:let T=of(r,!1,!1);if(Us(T)){let V=gd(T);if(V.thisParameter)return V.thisParameter}if(g9(r))return ys(r).symbol;case 197:return ure(r).symbol;case 108:return ys(r).symbol;case 137:let C=r.parent;return C&&C.kind===176?C.parent.symbol:void 0;case 11:case 15:if(cT(r.parent.parent)&&Dw(r.parent.parent)===r||(r.parent.kind===272||r.parent.kind===278)&&r.parent.moduleSpecifier===r||vn(r)&&Kg(r.parent)&&r.parent.moduleSpecifier===r||vn(r)&&Nf(r.parent,!1)||Dp(r.parent)||Lv(r.parent)&&xv(r.parent.parent)&&r.parent.parent.argument===r.parent)return Y_(r,r,o);if(to(_)&&Qx(_)&&_.arguments[1]===r)return Un(_);case 9:let w=cc(_)?_.argumentExpression===r?n_(_.expression):void 0:Lv(_)&&mE(h)?Gi(h.objectType):void 0;return w&&ho(w,Uc(r.text));case 90:case 100:case 39:case 86:return fd(r.parent);case 205:return xv(r)?Sm(r.argument.literal,o):void 0;case 95:return pc(r.parent)?M.checkDefined(r.parent.symbol):void 0;case 102:case 105:return xO(r.parent)?nYe(r.parent).symbol:void 0;case 104:if(Dn(r.parent)){let V=n_(r.parent.right),H=CCe(V);return H?.symbol??V.symbol}return;case 236:return ys(r).symbol;case 295:if(YP(r)&&eP(r)){let V=Zre(r.parent);return V===Tt?void 0:V}default:return}}}function LVt(r){if($e(r)&&Hn(r.parent)&&r.parent.name===r){let o=m1(r),_=n_(r.parent.expression),h=_.flags&1048576?_.types:[_];return To(h,T=>ti(Q_(T),C=>Vk(o,C.keyType)))}}function FVt(r){if(r&&r.kind===304)return nl(r.name,2208703)}function jVt(r){return E_(r)?r.parent.parent.moduleSpecifier?ZT(r.parent.parent,r):nl(r.propertyName||r.name,2998271):nl(r,2998271)}function rP(r){if(qi(r)&&!iu(r)||r.flags&67108864)return Oe;let o=l$(r),_=o&&kl(Un(o.class));if(Mg(r)){let h=Gi(r);return _?Ep(h,_.thisType):h}if(eg(r))return ZCe(r);if(_&&!o.isImplements){let h=Aa(mi(_));return h?Ep(h,_.thisType):Oe}if(xA(r)){let h=Un(r);return oc(h)}if(NVt(r)){let h=Sm(r);return h?oc(h):Oe}if(Zo(r))return $o(r,!0,0)||Oe;if(f_(r)){let h=Un(r);return h?yn(h):Oe}if(HRe(r)){let h=Sm(r);return h?yn(h):Oe}if($s(r))return $o(r.parent,!0,0)||Oe;if(wne(r)){let h=Sm(r);if(h){let T=oc(h);return la(T)?yn(h):T}}return xO(r.parent)&&r.parent.keywordToken===r.kind?nYe(r.parent):l2(r)?mxe(!1):Oe}function One(r){if(M.assert(r.kind===210||r.kind===209),r.parent.kind===250){let T=Oq(r.parent);return uC(r,T||Oe)}if(r.parent.kind===226){let T=n_(r.parent.right);return uC(r,T||Oe)}if(r.parent.kind===303){let T=ao(r.parent.parent,ko),C=One(T)||Oe,w=qP(T.properties,r.parent);return yYe(T,C,w)}let o=ao(r.parent,Ku),_=One(o)||Oe,h=v1(65,_,sr,r.parent)||Oe;return vYe(o,_,o.elements.indexOf(r),h)}function BVt(r){let o=One(ao(r.parent.parent,Sw));return o&&ho(o,r.escapedText)}function ZCe(r){return Hw(r)&&(r=r.parent),Z_(n_(r))}function wKe(r){let o=fd(r.parent);return co(r)?yn(o):oc(o)}function OKe(r){let o=r.name;switch(o.kind){case 80:return jf(In(o));case 9:case 11:return jf(o.text);case 167:let _=mh(o);return r_(_,12288)?_:Ue;default:return M.fail("Unsupported property name.")}}function eAe(r){r=X_(r);let o=po(Ea(r)),_=Ks(r,0).length?id:Ks(r,1).length?Je:void 0;return _&&Et(Ea(_),h=>{o.has(h.escapedName)||o.set(h.escapedName,h)}),SS(o)}function Rne(r){return Ks(r,0).length!==0||Ks(r,1).length!==0}function RKe(r){let o=UVt(r);return o?To(o,RKe):[r]}function UVt(r){if(ul(r)&6)return Yi(as(r).containingType.types,o=>ho(o,r.escapedName));if(r.flags&33554432){let{links:{leftSpread:o,rightSpread:_,syntheticOrigin:h}}=r;return o?[o,_]:h?[h]:zC(VVt(r))}}function VVt(r){let o,_=r;for(;_=as(_).target;)o=_;return o}function JVt(r){if(Ec(r))return!1;let o=Ps(r,$e);if(!o)return!1;let _=o.parent;return _?!((Hn(_)||ql(_))&&_.name===o)&&m7(o)===ze:!1}function qVt(r){return Y3(r.parent)&&r===r.parent.name}function zVt(r,o){var _;let h=Ps(r,$e);if(h){let T=m7(h,qVt(h));if(T){if(T.flags&1048576){let w=sa(T.exportSymbol);if(!o&&w.flags&944&&!(w.flags&3))return;T=w}let C=e_(T);if(C){if(C.flags&512&&((_=C.valueDeclaration)==null?void 0:_.kind)===307){let w=C.valueDeclaration,V=Jr(h);return w!==V?void 0:w}return Dr(h.parent,w=>Y3(w)&&Un(w)===C)}}}}function WVt(r){let o=ide(r);if(o)return o;let _=Ps(r,$e);if(_){let h=aJt(_);if(ah(h,111551)&&!ch(h,111551))return Sp(h)}}function GVt(r){return r.valueDeclaration&&Zo(r.valueDeclaration)&&OP(r.valueDeclaration).parent.kind===299}function MKe(r){if(r.flags&418&&r.valueDeclaration&&!qi(r.valueDeclaration)){let o=as(r);if(o.isDeclarationWithCollidingName===void 0){let _=Zm(r.valueDeclaration);if(C_e(_)||GVt(r))if(Ar(_.parent,r.escapedName,111551,void 0,!1))o.isDeclarationWithCollidingName=!0;else if(tAe(r.valueDeclaration,16384)){let h=tAe(r.valueDeclaration,32768),T=V1(_,!1),C=_.kind===241&&V1(_.parent,!1);o.isDeclarationWithCollidingName=!O_e(_)&&(!h||!T&&!C)}else o.isDeclarationWithCollidingName=!1}return o.isDeclarationWithCollidingName}return!1}function HVt(r){if(!Ec(r)){let o=Ps(r,$e);if(o){let _=m7(o);if(_&&MKe(_))return _.valueDeclaration}}}function $Vt(r){let o=Ps(r,f_);if(o){let _=Un(o);if(_)return MKe(_)}return!1}function LKe(r){switch(M.assert(ft),r.kind){case 271:return Mne(Un(r));case 273:case 274:case 276:case 281:let o=Un(r);return!!o&&Mne(o,!0);case 278:let _=r.exportClause;return!!_&&(qh(_)||Dt(_.elements,LKe));case 277:return r.expression&&r.expression.kind===80?Mne(Un(r),!0):!0}return!1}function YVt(r){let o=Ps(r,nu);return o===void 0||o.parent.kind!==307||!iA(o)?!1:Mne(Un(o))&&o.moduleReference&&!Gc(o.moduleReference)}function Mne(r,o){if(!r)return!1;let _=Jr(r.valueDeclaration),h=_&&Un(_);Ff(h);let T=Lp(ku(r));return T===Tt?!o||!ch(r):!!(Kf(r,o,!0)&111551)&&(lE(q)||!d7(T))}function d7(r){return xCe(r)||!!r.constEnumOnlyModule}function FKe(r,o){if(M.assert(ft),Sn(r)){let _=Un(r),h=_&&as(_);if(h?.referenced)return!0;let T=as(_).aliasTarget;if(T&&V_(r)&32&&Kf(T)&111551&&(lE(q)||!d7(T)))return!0}return o?!!qs(r,_=>FKe(_,o)):!1}function jKe(r){if(Kd(r.body)){if(Tv(r)||wg(r))return!1;let o=Un(r),_=ex(o);return _.length>1||_.length===1&&_[0].declaration!==r}return!1}function KVt(r){let o=Fne(r);if(!o)return!1;let _=Gi(o);return $D(_)}function Lne(r){return(XVt(r)||QVt(r))&&!KVt(r)}function XVt(r){return!!ce&&!AJ(r)&&!Nd(r)&&!!r.initializer&&!_i(r,31)}function QVt(r){return ce&&AJ(r)&&(Nd(r)||!r.initializer)&&_i(r,31)}function BKe(r){let o=Ps(r,h=>El(h)||Ci(h));if(!o)return!1;let _;if(Ci(o)){if(o.type||!vn(o)&&!g7(o))return!1;let h=ww(o);if(!h||!Qm(h))return!1;_=Un(h)}else _=Un(o);return!_||!(_.flags&16|3)?!1:!!Iu(Mp(_),h=>h.flags&111551&&AA(h.valueDeclaration))}function ZVt(r){let o=Ps(r,El);if(!o)return ve;let _=Un(o);return _&&Ea(yn(_))||ve}function sI(r){var o;let _=r.id||0;return _<0||_>=Oo.length?0:((o=Oo[_])==null?void 0:o.flags)||0}function tAe(r,o){return eJt(r,o),!!(sI(r)&o)}function eJt(r,o){if(!q.noCheck&&tM(Jr(r),q)||Wn(r).calculatedFlags&o)return;switch(o){case 16:case 32:return w(r);case 128:case 256:case 2097152:return C(r);case 512:case 8192:case 65536:case 262144:return H(r);case 536870912:return _e(r);case 4096:case 32768:case 16384:return Ne(r);default:return M.assertNever(o,`Unhandled node check flag calculation: ${M.formatNodeCheckFlags(o)}`)}function h(Ct,Lt){let hr=Lt(Ct,Ct.parent);if(hr!=="skip")return hr||HA(Ct,Lt)}function T(Ct){let Lt=Wn(Ct);if(Lt.calculatedFlags&o)return"skip";Lt.calculatedFlags|=2097536,w(Ct)}function C(Ct){h(Ct,T)}function w(Ct){let Lt=Wn(Ct);Lt.calculatedFlags|=48,Ct.kind===108&&Wre(Ct)}function V(Ct){let Lt=Wn(Ct);if(Lt.calculatedFlags&o)return"skip";Lt.calculatedFlags|=336384,_e(Ct)}function H(Ct){h(Ct,V)}function X(Ct){return eg(Ct)||m_(Ct.parent)&&(Ct.parent.objectAssignmentInitializer??Ct.parent.name)===Ct}function _e(Ct){let Lt=Wn(Ct);if(Lt.calculatedFlags|=536920064,$e(Ct)&&X(Ct)&&!(Hn(Ct.parent)&&Ct.parent.name===Ct)){let hr=yf(Ct);hr&&hr!==Tt&&VHe(Ct,hr)}}function Ie(Ct){let Lt=Wn(Ct);if(Lt.calculatedFlags&o)return"skip";Lt.calculatedFlags|=53248,dt(Ct)}function Ne(Ct){let Lt=Zm(Bh(Ct)?Ct.parent:Ct);h(Lt,Ie)}function dt(Ct){_e(Ct),Go(Ct)&&mh(Ct),es(Ct)&&_u(Ct.parent)&&hne(Ct.parent)}}function fC(r){return vKe(r.parent),Wn(r).enumMemberValue??fu(void 0)}function UKe(r){switch(r.kind){case 306:case 211:case 212:return!0}return!1}function rAe(r){if(r.kind===306)return fC(r).value;Wn(r).resolvedSymbol||vl(r);let o=Wn(r).resolvedSymbol||(nc(r)?nl(r,111551,!0):void 0);if(o&&o.flags&8){let _=o.valueDeclaration;if(Kb(_.parent))return fC(_).value}}function nAe(r){return!!(r.flags&524288)&&Ks(r,0).length>0}function tJt(r,o){var _;let h=Ps(r,xf);if(!h||o&&(o=Ps(o),!o))return 0;let T=!1;if(uf(h)){let _e=nl(pp(h),111551,!0,!0,o);T=!!((_=_e?.declarations)!=null&&_.every(iT))}let C=nl(h,111551,!0,!0,o),w=C&&C.flags&2097152?ku(C):C;T||(T=!!(C&&ch(C,111551)));let V=nl(h,788968,!0,!0,o),H=V&&V.flags&2097152?ku(V):V;if(C||T||(T=!!(V&&ch(V,788968))),w&&w===H){let _e=gxe(!1);if(_e&&w===_e)return 9;let Ie=yn(w);if(Ie&&AL(Ie))return T?10:1}if(!H)return T?11:0;let X=oc(H);return la(X)?T?11:0:X.flags&3?11:r_(X,245760)?2:r_(X,528)?6:r_(X,296)?3:r_(X,2112)?4:r_(X,402653316)?5:Yo(X)?7:r_(X,12288)?8:nAe(X)?10:qd(X)?7:11}function rJt(r,o,_,h){let T=Ps(r,Y_e);if(!T)return U.createToken(133);let C=Un(T),w=C&&!(C.flags&133120)?Sb(yn(C)):Oe;return Ve.serializeTypeForDeclaration(T,w,C,o,_|1024,h)}function nJt(r){return Us(r)||pc(r)||nA(r)}function jq(r){r=Ps(r,U3);let o=r.kind===178?177:178,_=kc(Un(r),o),h=_&&_.pos{if(!o)o=h.expression;else return o=void 0,!0}):o=_}return o}function iJt(r,o,_,h){let T=Ps(r,Us);return T?Ve.serializeReturnTypeForSignature(gd(T),o,_|1024,h):U.createToken(133)}function sJt(r,o,_,h){let T=Ps(r,Pt);if(!T)return U.createToken(133);let C=ep(ZCe(T));return Ve.expressionOrTypeToTypeNode(T,C,void 0,o,_|1024,h)}function oJt(r){return De.has(Uc(r))}function m7(r,o){let _=Wn(r).resolvedSymbol;if(_)return _;let h=r;if(o){let T=r.parent;f_(T)&&r===T.name&&(h=z2(T))}return Ar(h,r.escapedText,3257279,void 0,!0)}function aJt(r){let o=Wn(r).resolvedSymbol;return o&&o!==Tt?o:Ar(r,r.escapedText,3257279,void 0,!0,void 0)}function cJt(r){if(!Ec(r)){let o=Ps(r,$e);if(o){let _=m7(o);if(_)return Lp(_).valueDeclaration}}}function lJt(r){if(!Ec(r)){let o=Ps(r,$e);if(o){let _=m7(o);if(_)return ti(Lp(_).declarations,h=>{switch(h.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function uJt(r){return sR(r)||Ci(r)&&g7(r)?ix(yn(Un(r))):!1}function _Jt(r,o,_){let h=r.flags&1056?Ve.symbolToExpression(r.symbol,111551,o,void 0,_):r===$t?U.createTrue():r===Ot&&U.createFalse();if(h)return h;let T=r.value;return typeof T=="object"?U.createBigIntLiteral(T):typeof T=="string"?U.createStringLiteral(T):T<0?U.createPrefixUnaryExpression(41,U.createNumericLiteral(-T)):U.createNumericLiteral(T)}function fJt(r,o){let _=yn(Un(r));return _Jt(_,r,o)}function qKe(r){return r?(HT(r),Jr(r).localJsxFactory||L0):L0}function iAe(r){if(r){let o=Jr(r);if(o){if(o.localJsxFragmentFactory)return o.localJsxFragmentFactory;let _=o.pragmas.get("jsxfrag"),h=Ms(_)?_[0]:_;if(h)return o.localJsxFragmentFactory=YA(h.arguments.factory,ee),o.localJsxFragmentFactory}}if(q.jsxFragmentFactory)return YA(q.jsxFragmentFactory,ee)}function Fne(r){let o=Vl(r);if(o)return o;if(r.kind===169&&r.parent.kind===178){let _=jq(r.parent).getAccessor;if(_)return _p(_)}}function pJt(r){let o=_p(r);if(o)return o;if(r.kind===177){let _=jq(r).setAccessor;if(_){let h=aN(_);if(h)return Vl(h)}}}function dJt(){return{getReferencedExportContainer:zVt,getReferencedImportDeclaration:WVt,getReferencedDeclarationWithCollidingName:HVt,isDeclarationWithCollidingName:$Vt,isValueAliasDeclaration:o=>{let _=Ps(o);return _&&ft?LKe(_):!0},hasGlobalName:oJt,isReferencedAliasDeclaration:(o,_)=>{let h=Ps(o);return h&&ft?FKe(h,_):!0},hasNodeCheckFlag:(o,_)=>{let h=Ps(o);return h?tAe(h,_):!1},isTopLevelValueImportEqualsWithEntityName:YVt,isDeclarationVisible:$0,isImplementationOfOverload:jKe,requiresAddingImplicitUndefined:Lne,isExpandoFunctionDeclaration:BKe,getPropertiesOfContainerFunction:ZVt,createTypeOfDeclaration:rJt,createReturnTypeOfSignatureDeclaration:iJt,createTypeOfExpression:sJt,createLiteralConstValue:fJt,isSymbolAccessible:mg,isEntityNameVisible:TS,getConstantValue:o=>{let _=Ps(o,UKe);return _?rAe(_):void 0},getEnumMemberValue:o=>{let _=Ps(o,nS);return _?fC(_):void 0},collectLinkedAliases:KE,markLinkedReferences:o=>{let _=Ps(o);return _&&Zk(_,0)},getReferencedValueDeclaration:cJt,getReferencedValueDeclarations:lJt,getTypeReferenceSerializationKind:tJt,isOptionalParameter:AJ,isArgumentsLocalBinding:JVt,getExternalModuleFileFromDeclaration:o=>{let _=Ps(o,L_e);return _&&sAe(_)},isLiteralConstDeclaration:uJt,isLateBound:o=>{let _=Ps(o,f_),h=_&&Un(_);return!!(h&&ul(h)&4096)},getJsxFactoryEntity:qKe,getJsxFragmentFactoryEntity:iAe,isBindingCapturedByNode:(o,_)=>{let h=Ps(o),T=Ps(_);return!!h&&!!T&&(Ci(T)||Zo(T))&&OFt(h,T)},getDeclarationStatementsForSourceFile:(o,_,h)=>{let T=Ps(o);M.assert(T&&T.kind===307,"Non-sourcefile node passed into getDeclarationsForSourceFile");let C=Un(o);return C?(Ff(C),C.exports?Ve.symbolTableToDeclarationStatements(C.exports,o,_,h):[]):o.locals?Ve.symbolTableToDeclarationStatements(o.locals,o,_,h):[]},isImportRequiredByAugmentation:r,isDefinitelyReferenceToGlobalSymbolObject:xk};function r(o){let _=Jr(o);if(!_.symbol)return!1;let h=sAe(o);if(!h||h===_)return!1;let T=dg(_.symbol);for(let C of Os(T.values()))if(C.mergeId){let w=sa(C);if(w.declarations){for(let V of w.declarations)if(Jr(V)===h)return!0}}return!1}}function sAe(r){let o=r.kind===267?ci(r.name,jo):oA(r),_=j2(o,o,void 0);if(_)return kc(_,307)}function mJt(){for(let o of e.getSourceFiles())Pge(o,q);Wl=new Map;let r;for(let o of e.getSourceFiles())if(!o.redirectInfo){if(!Jf(o)){let _=o.locals.get("globalThis");if(_?.declarations)for(let h of _.declarations)da.add(mn(h,v.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Op(De,o.locals)}o.jsGlobalAugmentations&&Op(De,o.jsGlobalAugmentations),o.patternAmbientModules&&o.patternAmbientModules.length&&(gu=ds(gu,o.patternAmbientModules)),o.moduleAugmentations.length&&(r||(r=[])).push(o.moduleAugmentations),o.symbol&&o.symbol.globalExports&&o.symbol.globalExports.forEach((h,T)=>{De.has(T)||De.set(T,h)})}if(r)for(let o of r)for(let _ of o)Og(_.parent)&&e1(_);if(t1(),as(Be).type=Z,as(ze).type=Pl("IArguments",0,!0),as(Tt).type=Oe,as(lt).type=Fp(16,lt),zt=Pl("Array",1,!0),rl=Pl("Object",0,!0),Gl=Pl("Function",0,!0),id=le&&Pl("CallableFunction",0,!0)||Gl,Je=le&&Pl("NewableFunction",0,!0)||Gl,hs=Pl("String",0,!0),ea=Pl("Number",0,!0),ca=Pl("Boolean",0,!0),pl=Pl("RegExp",0,!0),Ja=y_(Me),Ba=y_(rt),Ba===Wi&&(Ba=tr(void 0,J,ve,ve,ve)),Kr=MWe("ReadonlyArray",1)||zt,Al=Kr?OL(Kr,[Me]):Ja,au=MWe("ThisType",1),r)for(let o of r)for(let _ of o)Og(_.parent)||e1(_);Wl.forEach(({firstFile:o,secondFile:_,conflictingSymbols:h})=>{if(h.size<8)h.forEach(({isBlockScoped:T,firstFileLocations:C,secondFileLocations:w},V)=>{let H=T?v.Cannot_redeclare_block_scoped_variable_0:v.Duplicate_identifier_0;for(let X of C)KT(X,H,V,w);for(let X of w)KT(X,H,V,C)});else{let T=Os(h.keys()).join(", ");da.add(lo(mn(o,v.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,T),mn(_,v.Conflicts_are_in_this_file))),da.add(lo(mn(_,v.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,T),mn(o,v.Conflicts_are_in_this_file)))}}),Wl=void 0}function hu(r,o){if(q.importHelpers){let _=Jr(r);if(eA(_,q)&&!(r.flags&33554432)){let h=hJt(_,r);if(h!==Tt){let T=as(h);if(T.requestedExternalEmitHelpers??(T.requestedExternalEmitHelpers=0),(T.requestedExternalEmitHelpers&o)!==o){let C=o&~T.requestedExternalEmitHelpers;for(let w=1;w<=16777216;w<<=1)if(C&w)for(let V of gJt(w)){let H=dl(h_(dg(h),Uc(V),111551));H?w&524288?Dt(ex(H),X=>rp(X)>3)||Ze(r,v.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,oT,V,4):w&1048576?Dt(ex(H),X=>rp(X)>4)||Ze(r,v.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,oT,V,5):w&1024&&(Dt(ex(H),X=>rp(X)>2)||Ze(r,v.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,oT,V,3)):Ze(r,v.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,oT,V)}}T.requestedExternalEmitHelpers|=o}}}}function gJt(r){switch(r){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return pe?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__setFunctionName"];case 8388608:return["__propKey"];case 16777216:return["__addDisposableResource","__disposeResources"];default:return M.fail("Unrecognized helper")}}function hJt(r,o){let _=Wn(r);return _.externalHelpersModule||(_.externalHelpersModule=WE(fqt(r),oT,v.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,o)||Tt),_.externalHelpersModule}function Ky(r){var o;let _=SJt(r)||yJt(r);if(_!==void 0)return _;if(is(r)&&sE(r))return Vu(r,v.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let h=fl(r)?r.declarationList.flags&7:0,T,C,w,V,H,X=0,_e=!1,Ie=!1;for(let Ne of r.modifiers)if(pu(Ne)){if(pR(pe,r,r.parent,r.parent.parent)){if(pe&&(r.kind===177||r.kind===178)){let dt=jq(r);if(Gp(dt.firstAccessor)&&r===dt.secondAccessor)return Vu(r,v.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===174&&!Kd(r.body)?Vu(r,v.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Vu(r,v.Decorators_are_not_valid_here);if(X&-34849)return Lr(Ne,v.Decorators_are_not_valid_here);if(Ie&&X&98303){M.assertIsDefined(H);let dt=Jr(Ne);return BS(dt)?!1:(lo(Ze(Ne,v.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),mn(H,v.Decorator_used_before_export_here)),!0)}X|=32768,X&98303?X&32&&(_e=!0):Ie=!0,H??(H=Ne)}else{if(Ne.kind!==148){if(r.kind===171||r.kind===173)return Lr(Ne,v._0_modifier_cannot_appear_on_a_type_member,bo(Ne.kind));if(r.kind===181&&(Ne.kind!==126||!vi(r.parent)))return Lr(Ne,v._0_modifier_cannot_appear_on_an_index_signature,bo(Ne.kind))}if(Ne.kind!==103&&Ne.kind!==147&&Ne.kind!==87&&r.kind===168)return Lr(Ne,v._0_modifier_cannot_appear_on_a_type_parameter,bo(Ne.kind));switch(Ne.kind){case 87:{if(r.kind!==266&&r.kind!==168)return Lr(r,v.A_class_member_cannot_have_the_0_keyword,bo(87));let Lt=om(r.parent)&&_T(r.parent)||r.parent;if(r.kind===168&&!($a(Lt)||vi(Lt)||Vh(Lt)||hN(Lt)||LA(Lt)||mM(Lt)||Wg(Lt)))return Lr(Ne,v._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,bo(Ne.kind));break}case 164:if(X&16)return Lr(Ne,v._0_modifier_already_seen,"override");if(X&128)return Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(X&8)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"override","readonly");if(X&512)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"override","accessor");if(X&1024)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"override","async");X|=16,V=Ne;break;case 125:case 124:case 123:let dt=z6(dA(Ne.kind));if(X&7)return Lr(Ne,v.Accessibility_modifier_already_seen);if(X&16)return Lr(Ne,v._0_modifier_must_precede_1_modifier,dt,"override");if(X&256)return Lr(Ne,v._0_modifier_must_precede_1_modifier,dt,"static");if(X&512)return Lr(Ne,v._0_modifier_must_precede_1_modifier,dt,"accessor");if(X&8)return Lr(Ne,v._0_modifier_must_precede_1_modifier,dt,"readonly");if(X&1024)return Lr(Ne,v._0_modifier_must_precede_1_modifier,dt,"async");if(r.parent.kind===268||r.parent.kind===307)return Lr(Ne,v._0_modifier_cannot_appear_on_a_module_or_namespace_element,dt);if(X&64)return Ne.kind===123?Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,dt,"abstract"):Lr(Ne,v._0_modifier_must_precede_1_modifier,dt,"abstract");if(B_(r))return Lr(Ne,v.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);X|=dA(Ne.kind);break;case 126:if(X&256)return Lr(Ne,v._0_modifier_already_seen,"static");if(X&8)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"static","readonly");if(X&1024)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"static","async");if(X&512)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===268||r.parent.kind===307)return Lr(Ne,v._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===169)return Lr(Ne,v._0_modifier_cannot_appear_on_a_parameter,"static");if(X&64)return Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(X&16)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"static","override");X|=256,T=Ne;break;case 129:if(X&512)return Lr(Ne,v._0_modifier_already_seen,"accessor");if(X&8)return Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(X&128)return Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==172)return Lr(Ne,v.accessor_modifier_can_only_appear_on_a_property_declaration);X|=512;break;case 148:if(X&8)return Lr(Ne,v._0_modifier_already_seen,"readonly");if(r.kind!==172&&r.kind!==171&&r.kind!==181&&r.kind!==169)return Lr(Ne,v.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(X&512)return Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");X|=8;break;case 95:if(q.verbatimModuleSyntax&&!(r.flags&33554432)&&r.kind!==265&&r.kind!==264&&r.kind!==267&&r.parent.kind===307&&(W===1||Jr(r).impliedNodeFormat===1))return Lr(Ne,v.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(X&32)return Lr(Ne,v._0_modifier_already_seen,"export");if(X&128)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"export","declare");if(X&64)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"export","abstract");if(X&1024)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"export","async");if(vi(r.parent))return Lr(Ne,v._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===169)return Lr(Ne,v._0_modifier_cannot_appear_on_a_parameter,"export");if(h===4)return Lr(Ne,v._0_modifier_cannot_appear_on_a_using_declaration,"export");if(h===6)return Lr(Ne,v._0_modifier_cannot_appear_on_an_await_using_declaration,"export");X|=32;break;case 90:let Ct=r.parent.kind===307?r.parent:r.parent.parent;if(Ct.kind===267&&!U_(Ct))return Lr(Ne,v.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(h===4)return Lr(Ne,v._0_modifier_cannot_appear_on_a_using_declaration,"default");if(h===6)return Lr(Ne,v._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(X&32){if(_e)return Lr(H,v.Decorators_are_not_valid_here)}else return Lr(Ne,v._0_modifier_must_precede_1_modifier,"export","default");X|=2048;break;case 138:if(X&128)return Lr(Ne,v._0_modifier_already_seen,"declare");if(X&1024)return Lr(Ne,v._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(X&16)return Lr(Ne,v._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(vi(r.parent)&&!Ds(r))return Lr(Ne,v._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===169)return Lr(Ne,v._0_modifier_cannot_appear_on_a_parameter,"declare");if(h===4)return Lr(Ne,v._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(h===6)return Lr(Ne,v._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(r.parent.flags&33554432&&r.parent.kind===268)return Lr(Ne,v.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(B_(r))return Lr(Ne,v._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(X&512)return Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");X|=128,C=Ne;break;case 128:if(X&64)return Lr(Ne,v._0_modifier_already_seen,"abstract");if(r.kind!==263&&r.kind!==185){if(r.kind!==174&&r.kind!==172&&r.kind!==177&&r.kind!==178)return Lr(Ne,v.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===263&&_i(r.parent,64))){let Lt=r.kind===172?v.Abstract_properties_can_only_appear_within_an_abstract_class:v.Abstract_methods_can_only_appear_within_an_abstract_class;return Lr(Ne,Lt)}if(X&256)return Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(X&2)return Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(X&1024&&w)return Lr(w,v._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(X&16)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"abstract","override");if(X&512)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Hu(r)&&r.name.kind===81)return Lr(Ne,v._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");X|=64;break;case 134:if(X&1024)return Lr(Ne,v._0_modifier_already_seen,"async");if(X&128||r.parent.flags&33554432)return Lr(Ne,v._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===169)return Lr(Ne,v._0_modifier_cannot_appear_on_a_parameter,"async");if(X&64)return Lr(Ne,v._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");X|=1024,w=Ne;break;case 103:case 147:{let Lt=Ne.kind===103?8192:16384,hr=Ne.kind===103?"in":"out",Er=om(r.parent)&&(_T(r.parent)||jn((o=ZP(r.parent))==null?void 0:o.tags,p2))||r.parent;if(r.kind!==168||Er&&!(Xu(Er)||vi(Er)||sm(Er)||p2(Er)))return Lr(Ne,v._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,hr);if(X&Lt)return Lr(Ne,v._0_modifier_already_seen,hr);if(Lt&8192&&X&16384)return Lr(Ne,v._0_modifier_must_precede_1_modifier,"in","out");X|=Lt;break}}}return r.kind===176?X&256?Lr(T,v._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):X&16?Lr(V,v._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):X&1024?Lr(w,v._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===272||r.kind===271)&&X&128?Lr(C,v.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===169&&X&31&&$s(r.name)?Lr(r,v.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===169&&X&31&&r.dotDotDotToken?Lr(r,v.A_parameter_property_cannot_be_declared_using_a_rest_parameter):X&1024?bJt(r,w):!1}function yJt(r){if(!r.modifiers)return!1;let o=vJt(r);return o&&Vu(o,v.Modifiers_cannot_appear_here)}function jne(r,o){let _=jn(r.modifiers,Do);return _&&_.kind!==o?_:void 0}function vJt(r){switch(r.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return jn(r.modifiers,Do);default:if(r.parent.kind===268||r.parent.kind===307)return;switch(r.kind){case 262:return jne(r,134);case 263:case 185:return jne(r,128);case 231:case 264:case 265:return jn(r.modifiers,Do);case 243:return r.declarationList.flags&4?jne(r,135):jn(r.modifiers,Do);case 266:return jne(r,87);default:M.assertNever(r)}}}function SJt(r){let o=TJt(r);return o&&Vu(o,v.Decorators_are_not_valid_here)}function TJt(r){return wY(r)?jn(r.modifiers,pu):void 0}function bJt(r,o){switch(r.kind){case 174:case 262:case 218:case 219:return!1}return Lr(o,v._0_modifier_cannot_be_used_here,"async")}function nP(r,o=v.Trailing_comma_not_allowed){return r&&r.hasTrailingComma?fx(r[0],r.end-1,1,o):!1}function zKe(r,o){if(r&&r.length===0){let _=r.pos-1,h=zo(o.text,r.end)+1;return fx(o,_,h-_,v.Type_parameter_list_cannot_be_empty)}return!1}function EJt(r){let o=!1,_=r.length;for(let h=0;h<_;h++){let T=r[h];if(T.dotDotDotToken){if(h!==_-1)return Lr(T.dotDotDotToken,v.A_rest_parameter_must_be_last_in_a_parameter_list);if(T.flags&33554432||nP(r,v.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),T.questionToken)return Lr(T.questionToken,v.A_rest_parameter_cannot_be_optional);if(T.initializer)return Lr(T.name,v.A_rest_parameter_cannot_have_an_initializer)}else if(nxe(T)){if(o=!0,T.questionToken&&T.initializer)return Lr(T.name,v.Parameter_cannot_have_question_mark_and_initializer)}else if(o&&!T.initializer)return Lr(T.name,v.A_required_parameter_cannot_follow_an_optional_parameter)}}function xJt(r){return ti(r,o=>!!o.initializer||$s(o.name)||Lh(o))}function CJt(r){if(ee>=3){let o=r.body&&Js(r.body)&&PY(r.body.statements);if(o){let _=xJt(r.parameters);if(kt(_)){Et(_,T=>{lo(Ze(T,v.This_parameter_is_not_allowed_with_use_strict_directive),mn(o,v.use_strict_directive_used_here))});let h=_.map((T,C)=>C===0?mn(T,v.Non_simple_parameter_declared_here):mn(T,v.and_here));return lo(Ze(o,v.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...h),!0}}}return!1}function Bne(r){let o=Jr(r);return Ky(r)||zKe(r.typeParameters,o)||EJt(r.parameters)||kJt(r,o)||$a(r)&&CJt(r)}function AJt(r){let o=Jr(r);return wJt(r)||zKe(r.typeParameters,o)}function kJt(r,o){if(!fc(r))return!1;r.typeParameters&&!(kt(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&o&&Il(o.fileName,[".mts",".cts"])&&Lr(r.typeParameters[0],v.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:_}=r,h=Eo(o,_.pos).line,T=Eo(o,_.end).line;return h!==T&&Lr(_,v.Line_terminator_not_permitted_before_arrow)}function PJt(r){let o=r.parameters[0];if(r.parameters.length!==1)return Lr(o?o.name:r,v.An_index_signature_must_have_exactly_one_parameter);if(nP(r.parameters,v.An_index_signature_cannot_have_a_trailing_comma),o.dotDotDotToken)return Lr(o.dotDotDotToken,v.An_index_signature_cannot_have_a_rest_parameter);if(i$(o))return Lr(o.name,v.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(o.questionToken)return Lr(o.questionToken,v.An_index_signature_parameter_cannot_have_a_question_mark);if(o.initializer)return Lr(o.name,v.An_index_signature_parameter_cannot_have_an_initializer);if(!o.type)return Lr(o.name,v.An_index_signature_parameter_must_have_a_type_annotation);let _=Gi(o.type);return vm(_,h=>!!(h.flags&8576))||Gk(_)?Lr(o.name,v.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):tp(_,Qte)?r.type?!1:Lr(r,v.An_index_signature_must_have_a_type_annotation):Lr(o.name,v.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function NJt(r){return Ky(r)||PJt(r)}function DJt(r,o){if(o&&o.length===0){let _=Jr(r),h=o.pos-1,T=zo(_.text,o.end)+1;return fx(_,h,T-h,v.Type_argument_list_cannot_be_empty)}return!1}function Bq(r,o){return nP(o)||DJt(r,o)}function IJt(r){return r.questionDotToken||r.flags&64?Lr(r.template,v.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function WKe(r){let o=r.types;if(nP(o))return!0;if(o&&o.length===0){let _=bo(r.token);return fx(r,o.pos,0,v._0_list_cannot_be_empty,_)}return Dt(o,GKe)}function GKe(r){return C0(r)&&bO(r.expression)&&r.typeArguments?Lr(r,v.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Bq(r,r.typeArguments)}function wJt(r){let o=!1,_=!1;if(!Ky(r)&&r.heritageClauses)for(let h of r.heritageClauses){if(h.token===96){if(o)return Vu(h,v.extends_clause_already_seen);if(_)return Vu(h,v.extends_clause_must_precede_implements_clause);if(h.types.length>1)return Vu(h.types[1],v.Classes_can_only_extend_a_single_class);o=!0}else{if(M.assert(h.token===119),_)return Vu(h,v.implements_clause_already_seen);_=!0}WKe(h)}}function OJt(r){let o=!1;if(r.heritageClauses)for(let _ of r.heritageClauses){if(_.token===96){if(o)return Vu(_,v.extends_clause_already_seen);o=!0}else return M.assert(_.token===119),Vu(_,v.Interface_declaration_cannot_have_implements_clause);WKe(_)}return!1}function Une(r){if(r.kind!==167)return!1;let o=r;return o.expression.kind===226&&o.expression.operatorToken.kind===28?Lr(o.expression,v.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function oAe(r){if(r.asteriskToken){if(M.assert(r.kind===262||r.kind===218||r.kind===174),r.flags&33554432)return Lr(r.asteriskToken,v.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return Lr(r.asteriskToken,v.An_overload_signature_cannot_be_declared_as_a_generator)}}function aAe(r,o){return!!r&&Lr(r,o)}function HKe(r,o){return!!r&&Lr(r,o)}function RJt(r,o){let _=new Map;for(let h of r.properties){if(h.kind===305){if(o){let w=ba(h.expression);if(Ku(w)||ko(w))return Lr(h.expression,v.A_rest_element_cannot_contain_a_binding_pattern)}continue}let T=h.name;if(T.kind===167&&Une(T),h.kind===304&&!o&&h.objectAssignmentInitializer&&Lr(h.equalsToken,v.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),T.kind===81&&Lr(T,v.Private_identifiers_are_not_allowed_outside_class_bodies),Im(h)&&h.modifiers)for(let w of h.modifiers)Do(w)&&(w.kind!==134||h.kind!==174)&&Lr(w,v._0_modifier_cannot_be_used_here,Hc(w));else if(gme(h)&&h.modifiers)for(let w of h.modifiers)Do(w)&&Lr(w,v._0_modifier_cannot_be_used_here,Hc(w));let C;switch(h.kind){case 304:case 303:HKe(h.exclamationToken,v.A_definite_assignment_assertion_is_not_permitted_in_this_context),aAe(h.questionToken,v.An_object_member_cannot_be_declared_optional),T.kind===9&&tXe(T),C=4;break;case 174:C=8;break;case 177:C=1;break;case 178:C=2;break;default:M.assertNever(h,"Unexpected syntax kind:"+h.kind)}if(!o){let w=uAe(T);if(w===void 0)continue;let V=_.get(w);if(!V)_.set(w,C);else if(C&8&&V&8)Lr(T,v.Duplicate_identifier_0,Hc(T));else if(C&4&&V&4)Lr(T,v.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Hc(T));else if(C&3&&V&3)if(V!==3&&C!==V)_.set(w,C|V);else return Lr(T,v.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Lr(T,v.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function MJt(r){LJt(r.tagName),Bq(r,r.typeArguments);let o=new Map;for(let _ of r.attributes.properties){if(_.kind===293)continue;let{name:h,initializer:T}=_,C=dO(h);if(!o.get(C))o.set(C,!0);else return Lr(h,v.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(T&&T.kind===294&&!T.expression)return Lr(T,v.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function LJt(r){if(Hn(r)&&ig(r.expression))return Lr(r.expression,v.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(ig(r)&&ij(q)&&!iN(r.namespace.escapedText))return Lr(r,v.React_components_cannot_include_JSX_namespace_names)}function FJt(r){if(r.expression&&RO(r.expression))return Lr(r.expression,v.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function $Ke(r){if(ov(r))return!0;if(r.kind===250&&r.awaitModifier&&!(r.flags&65536)){let o=Jr(r);if(p9(r)){if(!BS(o))switch(eA(o,q)||da.add(mn(r.awaitModifier,v.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),W){case 100:case 199:if(o.impliedNodeFormat===1){da.add(mn(r.awaitModifier,v.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ee>=4)break;default:da.add(mn(r.awaitModifier,v.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!BS(o)){let _=mn(r.awaitModifier,v.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),h=Ip(r);if(h&&h.kind!==176){M.assert((Rl(h)&2)===0,"Enclosing function should never be an async function.");let T=mn(h,v.Did_you_mean_to_mark_this_function_as_async);lo(_,T)}return da.add(_),!0}}if(hM(r)&&!(r.flags&65536)&&$e(r.initializer)&&r.initializer.escapedText==="async")return Lr(r.initializer,v.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===261){let o=r.initializer;if(!lAe(o)){let _=o.declarations;if(!_.length)return!1;if(_.length>1){let T=r.kind===249?v.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:v.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Vu(o.declarations[1],T)}let h=_[0];if(h.initializer){let T=r.kind===249?v.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:v.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Lr(h.name,T)}if(h.type){let T=r.kind===249?v.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:v.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Lr(h,T)}}}return!1}function jJt(r){if(!(r.flags&33554432)&&r.parent.kind!==187&&r.parent.kind!==264){if(ee<2&&es(r.name))return Lr(r.name,v.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!_i(r,64))return fx(r,r.end-1,1,v._0_expected,"{")}if(r.body){if(_i(r,64))return Lr(r,v.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===187||r.parent.kind===264)return Lr(r.body,v.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return Lr(r.name,v.An_accessor_cannot_have_type_parameters);if(!BJt(r))return Lr(r.name,r.kind===177?v.A_get_accessor_cannot_have_parameters:v.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===178){if(r.type)return Lr(r.name,v.A_set_accessor_cannot_have_a_return_type_annotation);let o=M.checkDefined(aN(r),"Return value does not match parameter count assertion.");if(o.dotDotDotToken)return Lr(o.dotDotDotToken,v.A_set_accessor_cannot_have_rest_parameter);if(o.questionToken)return Lr(o.questionToken,v.A_set_accessor_cannot_have_an_optional_parameter);if(o.initializer)return Lr(r.name,v.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function BJt(r){return cAe(r)||r.parameters.length===(r.kind===177?0:1)}function cAe(r){if(r.parameters.length===(r.kind===177?1:2))return iE(r)}function UJt(r){if(r.operator===158){if(r.type.kind!==155)return Lr(r.type,v._0_expected,bo(155));let o=IR(r.parent);if(vn(o)&&bT(o)){let _=tE(o);_&&(o=lA(_)||_)}switch(o.kind){case 260:let _=o;if(_.name.kind!==80)return Lr(r,v.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!kw(_))return Lr(r,v.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(_.parent.flags&2))return Lr(o.name,v.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!co(o)||!Ww(o))return Lr(o.name,v.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!_i(o,8))return Lr(o.name,v.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Lr(r,v.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===148&&r.type.kind!==188&&r.type.kind!==189)return Vu(r,v.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,bo(155))}function y4(r,o){if(YRt(r))return Lr(r,o)}function YKe(r){if(Bne(r))return!0;if(r.kind===174){if(r.parent.kind===210){if(r.modifiers&&!(r.modifiers.length===1&&Fo(r.modifiers).kind===134))return Vu(r,v.Modifiers_cannot_appear_here);if(aAe(r.questionToken,v.An_object_member_cannot_be_declared_optional))return!0;if(HKe(r.exclamationToken,v.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return fx(r,r.end-1,1,v._0_expected,"{")}if(oAe(r))return!0}if(vi(r.parent)){if(ee<2&&es(r.name))return Lr(r.name,v.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&33554432)return y4(r.name,v.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.kind===174&&!r.body)return y4(r.name,v.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(r.parent.kind===264)return y4(r.name,v.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===187)return y4(r.name,v.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function VJt(r){let o=r;for(;o;){if(FP(o))return Lr(r,v.Jump_target_cannot_cross_function_boundary);switch(o.kind){case 256:if(r.label&&o.label.escapedText===r.label.escapedText)return r.kind===251&&!V1(o.statement,!0)?Lr(r,v.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(r.kind===252&&!r.label)return!1;break;default:if(V1(o,!1)&&!r.label)return!1;break}o=o.parent}if(r.label){let _=r.kind===252?v.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:v.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Lr(r,_)}else{let _=r.kind===252?v.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:v.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Lr(r,_)}}function JJt(r){if(r.dotDotDotToken){let o=r.parent.elements;if(r!==qo(o))return Lr(r,v.A_rest_element_must_be_last_in_a_destructuring_pattern);if(nP(o,v.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return Lr(r.name,v.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return fx(r,r.initializer.pos-1,1,v.A_rest_element_cannot_have_an_initializer)}function KKe(r){return Wp(r)||r.kind===224&&r.operator===41&&r.operand.kind===9}function qJt(r){return r.kind===10||r.kind===224&&r.operator===41&&r.operand.kind===10}function zJt(r){if((Hn(r)||cc(r)&&KKe(r.argumentExpression))&&nc(r.expression))return!!(vl(r).flags&1056)}function XKe(r){let o=r.initializer;if(o){let _=!(KKe(o)||zJt(o)||o.kind===112||o.kind===97||qJt(o));if((sR(r)||Ci(r)&&g7(r))&&!r.type){if(_)return Lr(o,v.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Lr(o,v.Initializers_are_not_allowed_in_ambient_contexts)}}function WJt(r){let o=px(r),_=o&7;if($s(r.name))switch(_){case 6:return Lr(r,v._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Lr(r,v._0_declarations_may_not_have_binding_patterns,"using")}if(r.parent.parent.kind!==249&&r.parent.parent.kind!==250){if(o&33554432)XKe(r);else if(!r.initializer){if($s(r.name)&&!$s(r.parent))return Lr(r,v.A_destructuring_declaration_must_have_an_initializer);switch(_){case 6:return Lr(r,v._0_declarations_must_be_initialized,"await using");case 4:return Lr(r,v._0_declarations_must_be_initialized,"using");case 2:return Lr(r,v._0_declarations_must_be_initialized,"const")}}}if(r.exclamationToken&&(r.parent.parent.kind!==243||!r.type||r.initializer||o&33554432)){let h=r.initializer?v.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?v.A_definite_assignment_assertion_is_not_permitted_in_this_context:v.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Lr(r.exclamationToken,h)}return(W<5||Jr(r).impliedNodeFormat===1)&&W!==4&&!(r.parent.parent.flags&33554432)&&_i(r.parent.parent,32)&&QKe(r.name),!!_&&ZKe(r.name)}function QKe(r){if(r.kind===80){if(In(r)==="__esModule")return $Jt("noEmit",r,v.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let o=r.elements;for(let _ of o)if(!du(_))return QKe(_.name)}return!1}function ZKe(r){if(r.kind===80){if(r.escapedText==="let")return Lr(r,v.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let o=r.elements;for(let _ of o)du(_)||ZKe(_.name)}return!1}function lAe(r){let o=r.declarations;if(nP(r.declarations))return!0;if(!r.declarations.length)return fx(r,o.pos,o.end-o.pos,v.Variable_declaration_list_cannot_be_empty);let _=r.flags&7;return(_===4||_===6)&&zj(r.parent)?Lr(r,_===4?v.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:v.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):_===6?hYe(r):!1}function eXe(r){switch(r.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return eXe(r.parent)}return!0}function GJt(r){if(!eXe(r.parent)){let o=px(r.declarationList)&7;if(o){let _=o===1?"let":o===2?"const":o===4?"using":o===6?"await using":M.fail("Unknown BlockScope flag");return Lr(r,v._0_declarations_can_only_be_declared_inside_a_block,_)}}}function HJt(r){let o=r.name.escapedText;switch(r.keywordToken){case 105:if(o!=="target")return Lr(r.name,v._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Zi(r.name.escapedText),bo(r.keywordToken),"target");break;case 102:if(o!=="meta")return Lr(r.name,v._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Zi(r.name.escapedText),bo(r.keywordToken),"meta");break}}function BS(r){return r.parseDiagnostics.length>0}function Vu(r,o,..._){let h=Jr(r);if(!BS(h)){let T=jh(h,r.pos);return da.add(bu(h,T.start,T.length,o,..._)),!0}return!1}function fx(r,o,_,h,...T){let C=Jr(r);return BS(C)?!1:(da.add(bu(C,o,_,h,...T)),!0)}function $Jt(r,o,_,...h){let T=Jr(o);return BS(T)?!1:(pg(r,o,_,...h),!0)}function Lr(r,o,..._){let h=Jr(r);return BS(h)?!1:(da.add(mn(r,o,..._)),!0)}function YJt(r){let o=vn(r)?j9(r):void 0,_=r.typeParameters||o&&Aa(o);if(_){let h=_.pos===_.end?_.pos:zo(Jr(r).text,_.pos);return fx(r,h,_.end-h,v.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function KJt(r){let o=r.type||_p(r);if(o)return Lr(o,v.Type_annotation_cannot_appear_on_a_constructor_declaration)}function XJt(r){if(Go(r.name)&&Dn(r.name.expression)&&r.name.expression.operatorToken.kind===103)return Lr(r.parent.members[0],v.A_mapped_type_may_not_declare_properties_or_methods);if(vi(r.parent)){if(jo(r.name)&&r.name.text==="constructor")return Lr(r.name,v.Classes_may_not_have_a_field_named_constructor);if(y4(r.name,v.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ee<2&&es(r.name))return Lr(r.name,v.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ee<2&&Cf(r))return Lr(r.name,v.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Cf(r)&&aAe(r.questionToken,v.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===264){if(y4(r.name,v.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(M.assertNode(r,If),r.initializer)return Lr(r.initializer,v.An_interface_property_cannot_have_an_initializer)}else if(_f(r.parent)){if(y4(r.name,v.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(M.assertNode(r,If),r.initializer)return Lr(r.initializer,v.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&33554432&&XKe(r),Ds(r)&&r.exclamationToken&&(!vi(r.parent)||!r.type||r.initializer||r.flags&33554432||co(r)||aE(r))){let o=r.initializer?v.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?v.A_definite_assignment_assertion_is_not_permitted_in_this_context:v.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Lr(r.exclamationToken,o)}}function QJt(r){return r.kind===264||r.kind===265||r.kind===272||r.kind===271||r.kind===278||r.kind===277||r.kind===270||_i(r,2208)?!1:Vu(r,v.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function ZJt(r){for(let o of r.statements)if((f_(o)||o.kind===243)&&QJt(o))return!0;return!1}function eqt(r){return!!(r.flags&33554432)&&ZJt(r)}function ov(r){if(r.flags&33554432){if(!Wn(r).hasReportedStatementInAmbientContext&&(Us(r.parent)||U1(r.parent)))return Wn(r).hasReportedStatementInAmbientContext=Vu(r,v.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===241||r.parent.kind===268||r.parent.kind===307){let _=Wn(r.parent);if(!_.hasReportedStatementInAmbientContext)return _.hasReportedStatementInAmbientContext=Vu(r,v.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function tXe(r){let o=Hc(r).includes("."),_=r.numericLiteralFlags&16;o||_||+r.text<=2**53-1||Mm(!1,mn(r,v.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function tqt(r){return!!(!(Lv(r.parent)||tS(r.parent)&&Lv(r.parent.parent))&&ee<7&&Lr(r,v.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function rqt(r,o,..._){let h=Jr(r);if(!BS(h)){let T=jh(h,r.pos);return da.add(bu(h,bl(T),0,o,..._)),!0}return!1}function nqt(){return gc||(gc=[],De.forEach((r,o)=>{Mge.test(o)&&gc.push(r)})),gc}function iqt(r){var o;return r.isTypeOnly&&r.name&&r.namedBindings?Lr(r,v.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((o=r.namedBindings)==null?void 0:o.kind)===275?rXe(r.namedBindings):!1}function rXe(r){return!!Et(r.elements,o=>{if(o.isTypeOnly)return Vu(o,o.kind===276?v.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:v.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function sqt(r){if(q.verbatimModuleSyntax&&W===1)return Lr(r,v.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(W===5)return Lr(r,v.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(r.typeArguments)return Lr(r,v.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let o=r.arguments;if(W!==99&&W!==199&&W!==100&&(nP(o),o.length>1)){let h=o[1];return Lr(h,v.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(o.length===0||o.length>2)return Lr(r,v.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let _=jn(o,kd);return _?Lr(_,v.Argument_of_dynamic_import_cannot_be_spread_element):!1}function oqt(r,o){let _=Qn(r);if(_&20&&o.flags&1048576)return jn(o.types,h=>{if(h.flags&524288){let T=_&Qn(h);if(T&4)return r.target===h.target;if(T&16)return!!r.aliasSymbol&&r.aliasSymbol===h.aliasSymbol}return!1})}function aqt(r,o){if(Qn(r)&128&&vm(o,h1))return jn(o.types,_=>!h1(_))}function cqt(r,o){let _=0;if(Ks(r,_).length>0||(_=1,Ks(r,_).length>0))return jn(o.types,T=>Ks(T,_).length>0)}function lqt(r,o){let _;if(!(r.flags&406978556)){let h=0;for(let T of o.types)if(!(T.flags&406978556)){let C=wo([ph(r),ph(T)]);if(C.flags&4194304)return T;if(Tg(C)||C.flags&1048576){let w=C.flags&1048576?yy(C.types,Tg):1;w>=h&&(_=T,h=w)}}}return _}function uqt(r){if(ml(r,67108864)){let o=Fl(r,_=>!(_.flags&402784252));if(!(o.flags&131072))return o}return r}function nXe(r,o,_){if(o.flags&1048576&&r.flags&2621440){let h=lHe(o,r);if(h)return h;let T=Ea(r);if(T){let C=cHe(T,o);if(C){let w=$xe(o,kr(C,V=>[()=>yn(V),V.escapedName]),_);if(w!==o)return w}}}}function uAe(r){let o=e2(r);return o||(Go(r)?S2e(n_(r.expression)):void 0)}function Vne(r){return ir===r||(ir=r,Tr=eT(r)),Tr}function px(r){return Qe===r||(Qe=r,yt=p0(r)),yt}function g7(r){let o=px(r)&7;return o===2||o===4||o===6}function _qt(r,o){let _=q.importHelpers?1:0,h=r?.imports[_];return h&&M.assert(Ka(h)&&h.text===o,`Expected sourceFile.imports[${_}] to be the synthesized JSX runtime import`),h}function fqt(r){M.assert(q.importHelpers,"Expected importHelpers to be enabled");let o=r.imports[0];return M.assert(o&&Ka(o)&&o.text==="tslib","Expected sourceFile.imports[0] to be the synthesized tslib import"),o}}function Rbt(e){return!U1(e)}function GRe(e){return e.kind!==262&&e.kind!==174||!!e.body}function HRe(e){switch(e.parent.kind){case 276:case 281:return $e(e);default:return Bh(e)}}var Qp;(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Qp||(Qp={}));function $Re(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function C_(e){return!!(e.flags&1)}function kK(e){return!!(e.flags&2)}function Mbt(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:so(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:so(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var jge=class Qgt{constructor(t,n,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var s;n instanceof Qgt;)n=n.inner;this.inner=n,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((s=this.inner)!=null&&s.trackSymbol)}trackSymbol(t,n,i){var s,a;if((s=this.inner)!=null&&s.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,n,i))return this.onDiagnosticReported(),!0;t.flags&262144||((a=this.context).trackedSymbols??(a.trackedSymbols=[])).push([t,n,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var n;(n=this.inner)!=null&&n.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var n;(n=this.inner)!=null&&n.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(t,n,i){var s;(s=this.inner)!=null&&s.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,n,i))}reportNonSerializableProperty(t){var n;(n=this.inner)!=null&&n.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(t){var n;(n=this.inner)!=null&&n.reportInferenceFallback&&this.inner.reportInferenceFallback(t)}};function ct(e,t,n,i){if(e===void 0)return e;let s=t(e),a;if(s!==void 0)return Ms(s)?a=(i||Vbt)(s):a=s,M.assertNode(a,n),a}function Qr(e,t,n,i,s){if(e===void 0)return e;let a=e.length;(i===void 0||i<0)&&(i=0),(s===void 0||s>a-i)&&(s=a-i);let u,m=-1,d=-1;i>0||sa-i)&&(s=a-i),YRe(e,t,n,i,s)}function YRe(e,t,n,i,s){let a,u=e.length;(i>0||s=2&&(s=Lbt(s,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),s}function Lbt(e,t){let n;for(let i=0;i{let u=im,addSource:Ae,setSourceContent:xe,addName:te,addMapping:Ve,appendSourceMap:Pe,toJSON:ze,toString:()=>JSON.stringify(ze())};function Ae(we){a();let ft=GC(i,we,e.getCurrentDirectory(),e.getCanonicalFileName,!0),gt=S.get(ft);return gt===void 0&&(gt=d.length,d.push(ft),m.push(we),S.set(ft,gt)),u(),gt}function xe(we,ft){if(a(),ft!==null){for(E||(E=[]);E.lengthft||ue===ft&&ce>gt)}function Ve(we,ft,gt,Qe,yt,ir){M.assert(we>=pe,"generatedLine cannot backtrack"),M.assert(ft>=0,"generatedCharacter cannot be negative"),M.assert(gt===void 0||gt>=0,"sourceIndex cannot be negative"),M.assert(Qe===void 0||Qe>=0,"sourceLine cannot be negative"),M.assert(yt===void 0||yt>=0,"sourceCharacter cannot be negative"),a(),(he(we,ft)||Te(gt,Qe,yt))&&(Be(),pe=we,K=ft,me=!1,de=!1,le=!0),gt!==void 0&&Qe!==void 0&&yt!==void 0&&(re=gt,ue=Qe,ce=yt,me=!0,ir!==void 0&&(ne=ir,de=!0)),u()}function Pe(we,ft,gt,Qe,yt,ir){M.assert(we>=pe,"generatedLine cannot backtrack"),M.assert(ft>=0,"generatedCharacter cannot be negative"),a();let Tr=[],Ar,Vr=wK(gt.mappings);for(let fr of Vr){if(ir&&(fr.generatedLine>ir.line||fr.generatedLine===ir.line&&fr.generatedCharacter>ir.character))break;if(yt&&(fr.generatedLine=1024&<()}function Be(){if(!(!le||!ke())){if(a(),L0&&(R+=String.fromCharCode.apply(void 0,I),I.length=0)}function ze(){return Be(),lt(),{version:3,file:t,sourceRoot:n,sources:d,names:x,mappings:R,sourcesContent:E}}function tt(we){we<0?we=(-we<<1)+1:we=we<<1;do{let ft=we&31;we=we>>5,we>0&&(ft=ft|32),De(qbt(ft))}while(we>0)}}var Uge=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,NK=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,DK=/^\s*(\/\/[@#] .*)?$/;function IK(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function Vge(e){for(let t=e.getLineCount()-1;t>=0;t--){let n=e.getLineText(t),i=NK.exec(n);if(i)return i[1].trimEnd();if(!n.match(DK))break}}function Jbt(e){return typeof e=="string"||e===null}function Jge(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&Ms(e.sources)&&Oi(e.sources,bs)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||Ms(e.sourcesContent)&&Oi(e.sourcesContent,Jbt))&&(e.names===void 0||e.names===null||Ms(e.names)&&Oi(e.names,bs))}function qge(e){try{let t=JSON.parse(e);if(Jge(t))return t}catch{}}function wK(e){let t=!1,n=0,i=0,s=0,a=0,u=0,m=0,d=0,S;return{get pos(){return n},get error(){return S},get state(){return E(!0,!0)},next(){for(;!t&&n=e.length)return D("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let ee=zbt(e.charCodeAt(n));if(ee===-1)return D("Invalid character in VLQ"),-1;J=(ee&32)!==0,q=q|(ee&31)<<$,$+=5}return q&1?(q=q>>1,q=-q):q=q>>1,q}}function KRe(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function zge(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function qbt(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:M.fail(`${e}: not a base64 value`)}function zbt(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function XRe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function QRe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function Wbt(e,t){return M.assert(e.sourceIndex===t.sourceIndex),tc(e.sourcePosition,t.sourcePosition)}function Gbt(e,t){return tc(e.generatedPosition,t.generatedPosition)}function Hbt(e){return e.sourcePosition}function $bt(e){return e.generatedPosition}function Wge(e,t,n){let i=yi(n),s=t.sourceRoot?Cs(t.sourceRoot,i):i,a=Cs(t.file,i),u=e.getSourceFileLike(a),m=t.sources.map($=>Cs($,s)),d=new Map(m.map(($,q)=>[e.getCanonicalFileName($),q])),S,E,x;return{getSourcePosition:J,getGeneratedPosition:F};function D($){let q=u!==void 0?k3(u,$.generatedLine,$.generatedCharacter,!0):-1,ee,W;if(zge($)){let pe=e.getSourceFileLike(m[$.sourceIndex]);ee=t.sources[$.sourceIndex],W=pe!==void 0?k3(pe,$.sourceLine,$.sourceCharacter,!0):-1}return{generatedPosition:q,source:ee,sourceIndex:$.sourceIndex,sourcePosition:W,nameIndex:$.nameIndex}}function I(){if(S===void 0){let $=wK(t.mappings),q=Os($,D);$.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${$.error}`),S=ve):S=q}return S}function R($){if(x===void 0){let q=[];for(let ee of I()){if(!XRe(ee))continue;let W=q[ee.sourceIndex];W||(q[ee.sourceIndex]=W=[]),W.push(ee)}x=q.map(ee=>BC(ee,Wbt,QRe))}return x[$]}function L(){if(E===void 0){let $=[];for(let q of I())$.push(q);E=BC($,Gbt,QRe)}return E}function F($){let q=d.get(e.getCanonicalFileName($.fileName));if(q===void 0)return $;let ee=R(q);if(!Dt(ee))return $;let W=UC(ee,$.pos,Hbt,tc);W<0&&(W=~W);let pe=ee[W];return pe===void 0||pe.sourceIndex!==q?$:{fileName:a,pos:pe.generatedPosition}}function J($){let q=L();if(!Dt(q))return $;let ee=UC(q,$.pos,$bt,tc);ee<0&&(ee=~ee);let W=q[ee];return W===void 0||!XRe(W)?$:{fileName:m[W.sourceIndex],pos:W.sourcePosition}}}var OK={getSourcePosition:ec,getGeneratedPosition:ec};function mf(e){return e=Bc(e),e?Sa(e):0}function ZRe(e){return!e||!Hg(e)&&!Pd(e)?!1:Dt(e.elements,eMe)}function eMe(e){return e.propertyName!==void 0?e.propertyName.escapedText==="default":e.name.escapedText==="default"}function ag(e,t){return n;function n(s){return s.kind===307?t(s):i(s)}function i(s){return e.factory.createBundle(kr(s.sourceFiles,t))}}function Gge(e){return!!XP(e)}function MB(e){if(XP(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!Hg(t))return!1;let n=0;for(let i of t.elements)eMe(i)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&aA(e)}function RK(e){return!MB(e)&&(aA(e)||!!e.importClause&&Hg(e.importClause.namedBindings)&&ZRe(e.importClause.namedBindings))}function MK(e,t){let n=e.getEmitResolver(),i=e.getCompilerOptions(),s=[],a=new Hge,u=[],m=new Map,d=new Set,S,E=!1,x,D=!1,I=!1,R=!1;for(let $ of t.statements)switch($.kind){case 272:s.push($),!I&&MB($)&&(I=!0),!R&&RK($)&&(R=!0);break;case 271:$.moduleReference.kind===283&&s.push($);break;case 278:if($.moduleSpecifier)if(!$.exportClause)s.push($),D=!0;else if(s.push($),Pd($.exportClause))F($),R||(R=ZRe($.exportClause));else{let q=$.exportClause.name;m.get(In(q))||($O(u,mf($),q),m.set(In(q),!0),S=Ut(S,q)),I=!0}else F($);break;case 277:$.isExportEquals&&!x&&(x=$);break;case 243:if(_i($,32))for(let q of $.declarationList.declarations)S=tMe(q,m,S,u);break;case 262:_i($,32)&&J($,void 0,_i($,2048));break;case 263:if(_i($,32))if(_i($,2048))E||($O(u,mf($),e.factory.getDeclarationName($)),E=!0);else{let q=$.name;q&&!m.get(In(q))&&($O(u,mf($),q),m.set(In(q),!0),S=Ut(S,q))}break}let L=NY(e.factory,e.getEmitHelperFactory(),t,i,D,I,R);return L&&s.unshift(L),{externalImports:s,exportSpecifiers:a,exportEquals:x,hasExportStarsToExportValues:D,exportedBindings:u,exportedNames:S,exportedFunctions:d,externalHelpersImportDeclaration:L};function F($){for(let q of ao($.exportClause,Pd).elements)if(!m.get(In(q.name))){let ee=q.propertyName||q.name;$.moduleSpecifier||a.add(ee,q);let W=n.getReferencedImportDeclaration(ee)||n.getReferencedValueDeclaration(ee);if(W){if(W.kind===262){J(W,q.name,q.name.escapedText==="default");continue}$O(u,mf(W),q.name)}m.set(In(q.name),!0),S=Ut(S,q.name)}}function J($,q,ee){d.add($),ee?E||($O(u,mf($),q??e.factory.getDeclarationName($)),E=!0):(q??(q=$.name),m.get(In(q))||($O(u,mf($),q),m.set(In(q),!0)))}}function tMe(e,t,n,i){if($s(e.name))for(let s of e.name.elements)du(s)||(n=tMe(s,t,n,i));else if(!Ec(e.name)){let s=In(e.name);t.get(s)||(t.set(s,!0),n=Ut(n,e.name),P0(e.name)&&$O(i,mf(e),e.name))}return n}function $O(e,t,n){let i=e[t];return i?i.push(n):e[t]=i=[n],i}var FN=class jI{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(jI.toKey(t))}get(t){return this._map.get(jI.toKey(t))}set(t,n){return this._map.set(jI.toKey(t),n),this}delete(t){var n;return((n=this._map)==null?void 0:n.delete(jI.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(zx(t)||Ec(t)){let n=t.emitNode.autoGenerate;if((n.flags&7)===4){let i=AM(t),s=xy(i)&&i!==t?jI.toKey(i):`(generated@${Sa(i)})`;return xT(!1,n.prefix,s,n.suffix,jI.toKey)}else{let i=`(auto@${n.id})`;return xT(!1,n.prefix,i,n.suffix,jI.toKey)}}return es(t)?In(t).slice(1):In(t)}},Hge=class extends FN{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){let n=this.get(e);n&&(qC(n,t),n.length||this.delete(e))}};function xE(e){return Ia(e)||e.kind===9||af(e.kind)||$e(e)}function Xg(e){return!$e(e)&&xE(e)}function YO(e){return e>=65&&e<=79}function KO(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function LB(e){if(!wu(e))return;let t=ba(e.expression);return Kx(t)?t:void 0}function rMe(e,t,n){for(let i=t;iKbt(i,t,n))}function Ybt(e){return Xbt(e)||$c(e)}function jB(e){return ti(e.members,Ybt)}function Kbt(e,t,n){return Ds(e)&&(!!e.initializer||!t)&&Jl(e)===n}function Xbt(e){return Ds(e)&&Jl(e)}function zM(e){return e.kind===172&&e.initializer!==void 0}function $ge(e){return!co(e)&&(XC(e)||Cf(e))&&es(e.name)}function Yge(e){let t;if(e){let n=e.parameters,i=n.length>0&&sE(n[0]),s=i?1:0,a=i?n.length-1:n.length;for(let u=0;ujK(n.privateEnv,t))}function Zge(e){return!e.initializer&&$e(e.name)}function WM(e){return Oi(e,Zge)}var ehe=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(ehe||{});function y2(e,t,n,i,s,a){let u=e,m;if(Iv(e))for(m=e.right;Gfe(e.left)||_$(e.left);)if(Iv(m))u=e=m,m=e.right;else return M.checkDefined(ct(m,t,Pt));let d,S={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:E,emitBindingOrAssignment:x,createArrayBindingOrAssignmentPattern:D=>aEt(n.factory,D),createObjectBindingOrAssignmentPattern:D=>lEt(n.factory,D),createArrayBindingOrAssignmentElement:_Et,visitor:t};if(m&&(m=ct(m,t,Pt),M.assert(m),$e(m)&&the(e,m.escapedText)||rhe(e)?m=ek(S,m,!1,u):s?m=ek(S,m,!0,u):Ka(e)&&(u=m)),XO(S,e,m,u,Iv(e)),m&&s){if(!Dt(d))return m;d.push(m)}return n.factory.inlineExpressions(d)||n.factory.createOmittedExpression();function E(D){d=Ut(d,D)}function x(D,I,R,L){M.assertNode(D,a?$e:Pt);let F=a?a(D,I,R):At(n.factory.createAssignment(M.checkDefined(ct(D,t,Pt)),I),R);F.original=L,E(F)}}function the(e,t){let n=iS(e);return z3(n)?eEt(n,t):$e(n)?n.escapedText===t:!1}function eEt(e,t){let n=kN(e);for(let i of n)if(the(i,t))return!0;return!1}function rhe(e){let t=rB(e);if(t&&Go(t)&&!Wb(t.expression))return!0;let n=iS(e);return!!n&&z3(n)&&tEt(n)}function tEt(e){return!!Et(kN(e),rhe)}function CE(e,t,n,i,s,a=!1,u){let m,d=[],S=[],E={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:a,emitExpression:x,emitBindingOrAssignment:D,createArrayBindingOrAssignmentPattern:I=>oEt(n.factory,I),createObjectBindingOrAssignmentPattern:I=>cEt(n.factory,I),createArrayBindingOrAssignmentElement:I=>uEt(n.factory,I),visitor:t};if(Ci(e)){let I=xM(e);I&&($e(I)&&the(e,I.escapedText)||rhe(e))&&(I=ek(E,M.checkDefined(ct(I,E.visitor,Pt)),!1,I),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,I))}if(XO(E,e,s,e,u),m){let I=n.factory.createTempVariable(void 0);if(a){let R=n.factory.inlineExpressions(m);m=void 0,D(I,R,void 0,void 0)}else{n.hoistVariableDeclaration(I);let R=qo(d);R.pendingExpressions=Ut(R.pendingExpressions,n.factory.createAssignment(I,R.value)),On(R.pendingExpressions,m),R.value=I}}for(let{pendingExpressions:I,name:R,value:L,location:F,original:J}of d){let $=n.factory.createVariableDeclaration(R,void 0,void 0,I?n.factory.inlineExpressions(Ut(I,L)):L);$.original=J,At($,F),S.push($)}return S;function x(I){m=Ut(m,I)}function D(I,R,L,F){M.assertNode(I,Wx),m&&(R=n.factory.inlineExpressions(Ut(m,R)),m=void 0),d.push({pendingExpressions:m,name:I,value:R,location:L,original:F})}}function XO(e,t,n,i,s){let a=iS(t);if(!s){let u=ct(xM(t),e.visitor,Pt);u?n?(n=iEt(e,n,u,i),!Xg(u)&&z3(a)&&(n=ek(e,n,!0,i))):n=u:n||(n=e.context.factory.createVoidZero())}KG(a)?rEt(e,t,a,n,i):XG(a)?nEt(e,t,a,n,i):e.emitBindingOrAssignment(a,n,i,t)}function rEt(e,t,n,i,s){let a=kN(n),u=a.length;if(u!==1){let S=!q3(t)||u!==0;i=ek(e,i,S,s)}let m,d;for(let S=0;S=1&&!(E.transformFlags&98304)&&!(iS(E).transformFlags&98304)&&!Go(x))m=Ut(m,ct(E,e.visitor,i_e));else{m&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(m),i,s,n),m=void 0);let D=sEt(e,i,x);Go(x)&&(d=Ut(d,D.argumentExpression)),XO(e,E,D,E)}}}m&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(m),i,s,n)}function nEt(e,t,n,i,s){let a=kN(n),u=a.length;if(e.level<1&&e.downlevelIteration)i=ek(e,At(e.context.getEmitHelperFactory().createReadHelper(i,u>0&&tB(a[u-1])?void 0:u),s),!1,s);else if(u!==1&&(e.level<1||u===0)||Oi(a,du)){let S=!q3(t)||u!==0;i=ek(e,i,S,s)}let m,d;for(let S=0;S=1)if(E.transformFlags&65536||e.hasTransformedPriorElement&&!iMe(E)){e.hasTransformedPriorElement=!0;let x=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(x),d=Ut(d,[x,E]),m=Ut(m,e.createArrayBindingOrAssignmentElement(x))}else m=Ut(m,E);else{if(du(E))continue;if(tB(E)){if(S===u-1){let x=e.context.factory.createArraySliceCall(i,S);XO(e,E,x,E)}}else{let x=e.context.factory.createElementAccessExpression(i,S);XO(e,E,x,E)}}}if(m&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(m),i,s,n),d)for(let[S,E]of d)XO(e,E,S,E)}function iMe(e){let t=iS(e);if(!t||du(t))return!0;let n=rB(e);if(n&&!Fg(n))return!1;let i=xM(e);return i&&!Xg(i)?!1:z3(t)?Oi(kN(t),iMe):$e(t)}function iEt(e,t,n,i){return t=ek(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}function sEt(e,t,n){let{factory:i}=e.context;if(Go(n)){let s=ek(e,M.checkDefined(ct(n.expression,e.visitor,Pt)),!1,n);return e.context.factory.createElementAccessExpression(t,s)}else if(Wp(n)){let s=i.cloneNode(n);return e.context.factory.createElementAccessExpression(t,s)}else{let s=e.context.factory.createIdentifier(In(n));return e.context.factory.createPropertyAccessExpression(t,s)}}function ek(e,t,n,i){if($e(t)&&n)return t;{let s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(At(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function oEt(e,t){return M.assertEachNode(t,j5),e.createArrayBindingPattern(t)}function aEt(e,t){return M.assertEachNode(t,G3),e.createArrayLiteralExpression(kr(t,e.converters.convertToArrayAssignmentElement))}function cEt(e,t){return M.assertEachNode(t,Zo),e.createObjectBindingPattern(t)}function lEt(e,t){return M.assertEachNode(t,W3),e.createObjectLiteralExpression(kr(t,e.converters.convertToObjectAssignmentElement))}function uEt(e,t){return e.createBindingElement(void 0,void 0,t)}function _Et(e){return e}function nhe(e,t,n=e.createThis()){let i=e.createAssignment(t,n),s=e.createExpressionStatement(i),a=e.createBlock([s],!1),u=e.createClassStaticBlockDeclaration(a);return d_(u).classThis=t,u}function QO(e){var t;if(!$c(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return wu(n)&&Tu(n.expression,!0)&&$e(n.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===n.expression.left&&n.expression.right.kind===110}function BK(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&Dt(e.members,QO)}function ihe(e,t,n,i){if(BK(t))return t;let s=nhe(e,n,i);t.name&&Wo(s.body.statements[0],t.name);let a=e.createNodeArray([s,...t.members]);At(a,t.members);let u=ru(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,a):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,a);return d_(u).classThis=n,u}function ZO(e,t,n){let i=Bc(Ml(n));return(ru(i)||El(i))&&!i.name&&_i(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function sMe(e,t,n){let{factory:i}=e;if(n!==void 0)return{assignedName:i.createStringLiteral(n),name:t};if(Fg(t)||es(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Fg(t.expression)&&!$e(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let s=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(s);let a=e.getEmitHelperFactory().createPropKeyHelper(t.expression),u=i.createAssignment(s,a),m=i.updateComputedPropertyName(t,u);return{assignedName:s,name:m}}function she(e,t,n=e.factory.createThis()){let{factory:i}=e,s=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),a=i.createExpressionStatement(s),u=i.createBlock([a],!1),m=i.createClassStaticBlockDeclaration(u);return d_(m).assignedName=t,m}function tk(e){var t;if(!$c(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return wu(n)&&vO(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function UB(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&Dt(e.members,tk)}function UK(e){return!!e.name||UB(e)}function VB(e,t,n,i){if(UB(t))return t;let{factory:s}=e,a=she(e,n,i);t.name&&Wo(a.body.statements[0],t.name);let u=Va(t.members,QO)+1,m=t.members.slice(0,u),d=t.members.slice(u),S=s.createNodeArray([...m,a,...d]);return At(S,t.members),t=ru(t)?s.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,S):s.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,S),d_(t).assignedName=n,t}function jN(e,t,n,i){if(i&&jo(n)&&PH(n))return t;let{factory:s}=e,a=Ml(t),u=tu(a)?ao(VB(e,a,n),tu):e.getEmitHelperFactory().createSetFunctionNameHelper(a,n);return s.restoreOuterExpressions(t,u)}function fEt(e,t,n,i){let{factory:s}=e,{assignedName:a,name:u}=sMe(e,t.name,i),m=jN(e,t.initializer,a,n);return s.updatePropertyAssignment(t,u,m)}function pEt(e,t,n,i){let{factory:s}=e,a=i!==void 0?s.createStringLiteral(i):ZO(s,t.name,t.objectAssignmentInitializer),u=jN(e,t.objectAssignmentInitializer,a,n);return s.updateShorthandPropertyAssignment(t,t.name,u)}function dEt(e,t,n,i){let{factory:s}=e,a=i!==void 0?s.createStringLiteral(i):ZO(s,t.name,t.initializer),u=jN(e,t.initializer,a,n);return s.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,u)}function mEt(e,t,n,i){let{factory:s}=e,a=i!==void 0?s.createStringLiteral(i):ZO(s,t.name,t.initializer),u=jN(e,t.initializer,a,n);return s.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,u)}function gEt(e,t,n,i){let{factory:s}=e,a=i!==void 0?s.createStringLiteral(i):ZO(s,t.name,t.initializer),u=jN(e,t.initializer,a,n);return s.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,u)}function hEt(e,t,n,i){let{factory:s}=e,{assignedName:a,name:u}=sMe(e,t.name,i),m=jN(e,t.initializer,a,n);return s.updatePropertyDeclaration(t,t.modifiers,u,t.questionToken??t.exclamationToken,t.type,m)}function yEt(e,t,n,i){let{factory:s}=e,a=i!==void 0?s.createStringLiteral(i):ZO(s,t.left,t.right),u=jN(e,t.right,a,n);return s.updateBinaryExpression(t,t.left,t.operatorToken,u)}function vEt(e,t,n,i){let{factory:s}=e,a=i!==void 0?s.createStringLiteral(i):s.createStringLiteral(t.isExportEquals?"":"default"),u=jN(e,t.expression,a,n);return s.updateExportAssignment(t,t.modifiers,u)}function gp(e,t,n,i){switch(t.kind){case 303:return fEt(e,t,n,i);case 304:return pEt(e,t,n,i);case 260:return dEt(e,t,n,i);case 169:return mEt(e,t,n,i);case 208:return gEt(e,t,n,i);case 172:return hEt(e,t,n,i);case 226:return yEt(e,t,n,i);case 277:return vEt(e,t,n,i)}}var ohe=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(ohe||{});function VK(e,t,n,i,s,a){let u=ct(t.tag,n,Pt);M.assert(u);let m=[void 0],d=[],S=[],E=t.template;if(a===0&&!XH(E))return jr(t,n,e);let{factory:x}=e;if(wA(E))d.push(ahe(x,E)),S.push(che(x,E,i));else{d.push(ahe(x,E.head)),S.push(che(x,E.head,i));for(let I of E.templateSpans)d.push(ahe(x,I.literal)),S.push(che(x,I.literal,i)),m.push(M.checkDefined(ct(I.expression,n,Pt)))}let D=e.getEmitHelperFactory().createTemplateObjectHelper(x.createArrayLiteralExpression(d),x.createArrayLiteralExpression(S));if(iu(i)){let I=x.createUniqueName("templateObject");s(I),m[0]=x.createLogicalOr(I,x.createAssignment(I,D))}else m[0]=D;return x.createCallExpression(u,void 0,m)}function ahe(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function che(e,t,n){let i=t.rawText;if(i===void 0){M.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=$b(n,t);let s=t.kind===15||t.kind===18;i=i.substring(1,i.length-(s?1:2))}return i=i.replace(/\r\n?/g,`
`),At(e.createStringLiteral(i),t)}var SEt=!1;function lhe(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:a,hoistVariableDeclaration:u}=e,m=e.getEmitResolver(),d=e.getCompilerOptions(),S=Qo(d),E=J_(d),x=!!d.experimentalDecorators,D=d.emitDecoratorMetadata?_he(e):void 0,I=e.onEmitNode,R=e.onSubstituteNode;e.onEmitNode=Bo,e.onSubstituteNode=Sc,e.enableSubstitution(211),e.enableSubstitution(212);let L,F,J,$,q,ee,W,pe;return K;function K(oe){return oe.kind===308?re(oe):ue(oe)}function re(oe){return t.createBundle(oe.sourceFiles.map(ue))}function ue(oe){if(oe.isDeclarationFile)return oe;L=oe;let Ke=ce(oe,we);return x0(Ke,e.readEmitHelpers()),L=void 0,Ke}function ce(oe,Ke){let Rt=$,xr=q,qn=ee;ne(oe);let mr=Ke(oe);return $!==Rt&&(q=xr),$=Rt,ee=qn,mr}function ne(oe){switch(oe.kind){case 307:case 269:case 268:case 241:$=oe,q=void 0;break;case 263:case 262:if(_i(oe,128))break;oe.name?z(oe):M.assert(oe.kind===263||_i(oe,2048));break}}function le(oe){return ce(oe,me)}function me(oe){return oe.transformFlags&1?tt(oe):oe}function de(oe){return ce(oe,Ae)}function Ae(oe){switch(oe.kind){case 272:case 271:case 277:case 278:return te(oe);default:return me(oe)}}function xe(oe){let Ke=Ps(oe);if(Ke===oe||pc(oe))return!1;if(!Ke||Ke.kind!==oe.kind)return!0;switch(oe.kind){case 272:if(M.assertNode(Ke,Yc),oe.importClause!==Ke.importClause||oe.attributes!==Ke.attributes)return!0;break;case 271:if(M.assertNode(Ke,nu),oe.name!==Ke.name||oe.isTypeOnly!==Ke.isTypeOnly||oe.moduleReference!==Ke.moduleReference&&(xf(oe.moduleReference)||xf(Ke.moduleReference)))return!0;break;case 278:if(M.assertNode(Ke,Cl),oe.exportClause!==Ke.exportClause||oe.attributes!==Ke.attributes)return!0;break}return!1}function te(oe){if(xe(oe))return oe.transformFlags&1?jr(oe,le,e):oe;switch(oe.kind){case 272:return gr(oe);case 271:return nn(oe);case 277:return Pr(oe);case 278:return Rn(oe);default:M.fail("Unhandled ellided statement")}}function he(oe){return ce(oe,Te)}function Te(oe){if(!(oe.kind===278||oe.kind===272||oe.kind===273||oe.kind===271&&oe.moduleReference.kind===283))return oe.transformFlags&1||_i(oe,32)?tt(oe):oe}function Ve(oe){return Ke=>ce(Ke,Rt=>Pe(Rt,oe))}function Pe(oe,Ke){switch(oe.kind){case 176:return qr(oe);case 172:return Xt(oe,Ke);case 177:return Ys(oe,Ke);case 178:return Sr(oe,Ke);case 174:return Vi(oe,Ke);case 175:return jr(oe,le,e);case 240:return oe;case 181:return;default:return M.failBadSyntaxKind(oe)}}function ke(oe){return Ke=>ce(Ke,Rt=>De(Rt,oe))}function De(oe,Ke){switch(oe.kind){case 303:case 304:case 305:return le(oe);case 177:return Ys(oe,Ke);case 178:return Sr(oe,Ke);case 174:return Vi(oe,Ke);default:return M.failBadSyntaxKind(oe)}}function Be(oe){return pu(oe)?void 0:le(oe)}function lt(oe){return Do(oe)?void 0:le(oe)}function ze(oe){if(!pu(oe)&&!(dA(oe.kind)&28895)&&!(F&&oe.kind===95))return oe}function tt(oe){if(Ji(oe)&&_i(oe,128))return t.createNotEmittedStatement(oe);switch(oe.kind){case 95:case 90:return F?void 0:oe;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(oe);case 270:return;case 264:return t.createNotEmittedStatement(oe);case 263:return ir(oe);case 231:return Tr(oe);case 298:return $r(oe);case 233:return Qs(oe);case 210:return ft(oe);case 176:case 172:case 174:case 177:case 178:case 175:return M.fail("Class and object literal elements must be visited with their respective visitors");case 262:return ia(oe);case 218:return ut(oe);case 219:return Tt(oe);case 169:return fe(oe);case 217:return Me(oe);case 216:case 234:return rt(oe);case 238:return nr(oe);case 213:return Oe(oe);case 214:return Nt(oe);case 215:return It(oe);case 235:return pt(oe);case 266:return Z(oe);case 243:return St(oe);case 260:return it(oe);case 267:return Ot(oe);case 271:return nn(oe);case 285:return Vt(oe);case 286:return Mt(oe);default:return jr(oe,le,e)}}function we(oe){let Ke=q_(d,"alwaysStrict")&&!(iu(oe)&&E>=5)&&!Xd(oe);return t.updateSourceFile(oe,PK(oe.statements,de,e,0,Ke))}function ft(oe){return t.updateObjectLiteralExpression(oe,Qr(oe.properties,ke(oe),d0))}function gt(oe){let Ke=0;Dt(LK(oe,!0,!0))&&(Ke|=1);let Rt=Lg(oe);return Rt&&Ml(Rt.expression).kind!==106&&(Ke|=64),Av(x,oe)&&(Ke|=2),Nw(x,oe)&&(Ke|=4),rr(oe)?Ke|=8:Fa(oe)?Ke|=32:pa(oe)&&(Ke|=16),Ke}function Qe(oe){return!!(oe.transformFlags&8192)}function yt(oe){return Gp(oe)||Dt(oe.typeParameters)||Dt(oe.heritageClauses,Qe)||Dt(oe.members,Qe)}function ir(oe){let Ke=gt(oe),Rt=S<=1&&!!(Ke&7);if(!yt(oe)&&!Av(x,oe)&&!rr(oe))return t.updateClassDeclaration(oe,Qr(oe.modifiers,ze,Do),oe.name,void 0,Qr(oe.heritageClauses,le,mp),Qr(oe.members,Ve(oe),_u));Rt&&e.startLexicalEnvironment();let xr=Rt||Ke&8,qn=xr?Qr(oe.modifiers,lt,xc):Qr(oe.modifiers,le,xc);Ke&2&&(qn=Vr(qn,oe));let zn=xr&&!oe.name||Ke&4||Ke&1?oe.name??t.getGeneratedNameForNode(oe):oe.name,Li=t.updateClassDeclaration(oe,qn,zn,void 0,Qr(oe.heritageClauses,le,mp),Ar(oe)),Pi=Ko(oe);Ke&1&&(Pi|=64),xn(Li,Pi);let Io;if(Rt){let mc=[Li],Wl=p$(zo(L.text,oe.members.end),20),Oc=t.getInternalName(oe),mu=t.createPartiallyEmittedExpression(Oc);dN(mu,Wl.end),xn(mu,3072);let gc=t.createReturnStatement(mu);uO(gc,Wl.pos),xn(gc,3840),mc.push(gc),Cy(mc,e.endLexicalEnvironment());let gu=t.createImmediatelyInvokedArrowFunction(mc);lM(gu,1);let Gf=t.createVariableDeclaration(t.getLocalName(oe,!1,!1),void 0,void 0,gu);Gn(Gf,oe);let rl=t.createVariableStatement(void 0,t.createVariableDeclarationList([Gf],1));Gn(rl,oe),eu(rl,oe),Wo(rl,S0(oe)),x_(rl),Io=rl}else Io=Li;if(xr){if(Ke&8)return[Io,wa(oe)];if(Ke&32)return[Io,t.createExportDefault(t.getLocalName(oe,!1,!0))];if(Ke&16)return[Io,t.createExternalModuleExport(t.getDeclarationName(oe,!1,!0))]}return Io}function Tr(oe){let Ke=Qr(oe.modifiers,lt,xc);return Av(x,oe)&&(Ke=Vr(Ke,oe)),t.updateClassExpression(oe,Ke,oe.name,void 0,Qr(oe.heritageClauses,le,mp),Ar(oe))}function Ar(oe){let Ke=Qr(oe.members,Ve(oe),_u),Rt,xr=Py(oe),qn=xr&&ti(xr.parameters,mr=>cp(mr,xr));if(qn)for(let mr of qn){let zn=t.createPropertyDeclaration(void 0,mr.name,void 0,void 0,void 0);Gn(zn,mr),Rt=Ut(Rt,zn)}return Rt?(Rt=On(Rt,Ke),At(t.createNodeArray(Rt),oe.members)):Ke}function Vr(oe,Ke){let Rt=ur(Ke,Ke);if(Dt(Rt)){let xr=[];On(xr,KW(oe,CM)),On(xr,ti(oe,pu)),On(xr,Rt),On(xr,ti(tle(oe,CM),Do)),oe=At(t.createNodeArray(xr),oe)}return oe}function fr(oe,Ke,Rt){if(vi(Rt)&&kH(x,Ke,Rt)){let xr=ur(Ke,Rt);if(Dt(xr)){let qn=[];On(qn,ti(oe,pu)),On(qn,xr),On(qn,ti(oe,Do)),oe=At(t.createNodeArray(qn),oe)}}return oe}function ur(oe,Ke){if(x)return SEt?Mi(oe,Ke):tn(oe,Ke)}function tn(oe,Ke){if(D){let Rt;if(br(oe)){let xr=n().createMetadataHelper("design:type",D.serializeTypeOfNode({currentLexicalScope:$,currentNameScope:Ke},oe,Ke));Rt=Ut(Rt,t.createDecorator(xr))}if(As(oe)){let xr=n().createMetadataHelper("design:paramtypes",D.serializeParameterTypesOfNode({currentLexicalScope:$,currentNameScope:Ke},oe,Ke));Rt=Ut(Rt,t.createDecorator(xr))}if(Di(oe)){let xr=n().createMetadataHelper("design:returntype",D.serializeReturnTypeOfNode({currentLexicalScope:$,currentNameScope:Ke},oe));Rt=Ut(Rt,t.createDecorator(xr))}return Rt}}function Mi(oe,Ke){if(D){let Rt;if(br(oe)){let xr=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),D.serializeTypeOfNode({currentLexicalScope:$,currentNameScope:Ke},oe,Ke)));Rt=Ut(Rt,xr)}if(As(oe)){let xr=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),D.serializeParameterTypesOfNode({currentLexicalScope:$,currentNameScope:Ke},oe,Ke)));Rt=Ut(Rt,xr)}if(Di(oe)){let xr=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),D.serializeReturnTypeOfNode({currentLexicalScope:$,currentNameScope:Ke},oe)));Rt=Ut(Rt,xr)}if(Rt){let xr=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(Rt,!0));return[t.createDecorator(xr)]}}}function br(oe){let Ke=oe.kind;return Ke===174||Ke===177||Ke===178||Ke===172}function Di(oe){return oe.kind===174}function As(oe){switch(oe.kind){case 263:case 231:return Py(oe)!==void 0;case 174:case 177:case 178:return!0}return!1}function os(oe,Ke){let Rt=oe.name;return es(Rt)?t.createIdentifier(""):Go(Rt)?Ke&&!Xg(Rt.expression)?t.getGeneratedNameForNode(Rt):Rt.expression:$e(Rt)?t.createStringLiteral(In(Rt)):t.cloneNode(Rt)}function Ri(oe){let Ke=oe.name;if(Go(Ke)&&(!Jl(oe)&&ee||Gp(oe)&&x)){let Rt=ct(Ke.expression,le,Pt);M.assert(Rt);let xr=km(Rt);if(!Xg(xr)){let qn=t.getGeneratedNameForNode(Ke);return u(qn),t.updateComputedPropertyName(Ke,t.createAssignment(qn,Rt))}}return M.checkDefined(ct(Ke,le,Ol))}function $r(oe){if(oe.token!==119)return jr(oe,le,e)}function Qs(oe){return t.updateExpressionWithTypeArguments(oe,M.checkDefined(ct(oe.expression,le,Af)),void 0)}function He(oe){return!Gc(oe.body)}function Xt(oe,Ke){let Rt=oe.flags&33554432||_i(oe,64);if(Rt&&!(x&&Gp(oe)))return;let xr=vi(Ke)?Rt?Qr(oe.modifiers,lt,xc):Qr(oe.modifiers,le,xc):Qr(oe.modifiers,Be,xc);return xr=fr(xr,oe,Ke),Rt?t.updatePropertyDeclaration(oe,ds(xr,t.createModifiersFromModifierFlags(128)),M.checkDefined(ct(oe.name,le,Ol)),void 0,void 0,void 0):t.updatePropertyDeclaration(oe,xr,Ri(oe),void 0,void 0,ct(oe.initializer,le,Pt))}function qr(oe){if(He(oe))return t.updateConstructorDeclaration(oe,void 0,Kc(oe.parameters,le,e),Ti(oe.body,oe))}function Pn(oe,Ke,Rt,xr,qn,mr){let zn=xr[qn],Li=Ke[zn];if(On(oe,Qr(Ke,le,Ji,Rt,zn-Rt)),c2(Li)){let Pi=[];Pn(Pi,Li.tryBlock.statements,0,xr,qn+1,mr);let Io=t.createNodeArray(Pi);At(Io,Li.tryBlock.statements),oe.push(t.updateTryStatement(Li,t.updateBlock(Li.tryBlock,Pi),ct(Li.catchClause,le,TE),ct(Li.finallyBlock,le,Js)))}else On(oe,Qr(Ke,le,Ji,zn,1)),On(oe,mr);On(oe,Qr(Ke,le,Ji,zn+1))}function Ti(oe,Ke){let Rt=Ke&&ti(Ke.parameters,Pi=>cp(Pi,Ke));if(!Dt(Rt))return Zp(oe,le,e);let xr=[];s();let qn=t.copyPrologue(oe.statements,xr,!1,le),mr=FB(oe.statements,qn),zn=Yi(Rt,ki);mr.length?Pn(xr,oe.statements,qn,mr,0,zn):(On(xr,zn),On(xr,Qr(oe.statements,le,Ji,qn))),xr=t.mergeLexicalEnvironment(xr,a());let Li=t.createBlock(At(t.createNodeArray(xr),oe.statements),!0);return At(Li,oe),Gn(Li,oe),Li}function ki(oe){let Ke=oe.name;if(!$e(Ke))return;let Rt=fa(At(t.cloneNode(Ke),Ke),Ke.parent);xn(Rt,3168);let xr=fa(At(t.cloneNode(Ke),Ke),Ke.parent);return xn(xr,3072),x_(cM(At(Gn(t.createExpressionStatement(t.createAssignment(At(t.createPropertyAccessExpression(t.createThis(),Rt),oe.name),xr)),oe),mT(oe,-1))))}function Vi(oe,Ke){if(!(oe.transformFlags&1))return oe;if(!He(oe))return;let Rt=vi(Ke)?Qr(oe.modifiers,le,xc):Qr(oe.modifiers,Be,xc);return Rt=fr(Rt,oe,Ke),t.updateMethodDeclaration(oe,Rt,oe.asteriskToken,Ri(oe),void 0,void 0,Kc(oe.parameters,le,e),void 0,Zp(oe.body,le,e))}function uo(oe){return!(Gc(oe.body)&&_i(oe,64))}function Ys(oe,Ke){if(!(oe.transformFlags&1))return oe;if(!uo(oe))return;let Rt=vi(Ke)?Qr(oe.modifiers,le,xc):Qr(oe.modifiers,Be,xc);return Rt=fr(Rt,oe,Ke),t.updateGetAccessorDeclaration(oe,Rt,Ri(oe),Kc(oe.parameters,le,e),void 0,Zp(oe.body,le,e)||t.createBlock([]))}function Sr(oe,Ke){if(!(oe.transformFlags&1))return oe;if(!uo(oe))return;let Rt=vi(Ke)?Qr(oe.modifiers,le,xc):Qr(oe.modifiers,Be,xc);return Rt=fr(Rt,oe,Ke),t.updateSetAccessorDeclaration(oe,Rt,Ri(oe),Kc(oe.parameters,le,e),Zp(oe.body,le,e)||t.createBlock([]))}function ia(oe){if(!He(oe))return t.createNotEmittedStatement(oe);let Ke=t.updateFunctionDeclaration(oe,Qr(oe.modifiers,ze,Do),oe.asteriskToken,oe.name,void 0,Kc(oe.parameters,le,e),void 0,Zp(oe.body,le,e)||t.createBlock([]));if(rr(oe)){let Rt=[Ke];return gs(Rt,oe),Rt}return Ke}function ut(oe){return He(oe)?t.updateFunctionExpression(oe,Qr(oe.modifiers,ze,Do),oe.asteriskToken,oe.name,void 0,Kc(oe.parameters,le,e),void 0,Zp(oe.body,le,e)||t.createBlock([])):t.createOmittedExpression()}function Tt(oe){return t.updateArrowFunction(oe,Qr(oe.modifiers,ze,Do),void 0,Kc(oe.parameters,le,e),void 0,oe.equalsGreaterThanToken,Zp(oe.body,le,e))}function fe(oe){if(sE(oe))return;let Ke=t.updateParameterDeclaration(oe,Qr(oe.modifiers,Rt=>pu(Rt)?le(Rt):void 0,xc),oe.dotDotDotToken,M.checkDefined(ct(oe.name,le,Wx)),void 0,void 0,ct(oe.initializer,le,Pt));return Ke!==oe&&(eu(Ke,oe),At(Ke,Vg(oe)),Wo(Ke,Vg(oe)),xn(Ke.name,64)),Ke}function St(oe){if(rr(oe)){let Ke=Xw(oe.declarationList);return Ke.length===0?void 0:At(t.createExpressionStatement(t.inlineExpressions(kr(Ke,Ce))),oe)}else return jr(oe,le,e)}function Ce(oe){let Ke=oe.name;return $s(Ke)?y2(oe,le,e,0,!1,vc):At(t.createAssignment(rs(Ke),M.checkDefined(ct(oe.initializer,le,Pt))),oe)}function it(oe){let Ke=t.updateVariableDeclaration(oe,M.checkDefined(ct(oe.name,le,Wx)),void 0,void 0,ct(oe.initializer,le,Pt));return oe.type&&tde(Ke.name,oe.type),Ke}function Me(oe){let Ke=Ml(oe.expression,-7);if(sT(Ke)||Jj(Ke)){let Rt=ct(oe.expression,le,Pt);return M.assert(Rt),t.createPartiallyEmittedExpression(Rt,oe)}return jr(oe,le,e)}function rt(oe){let Ke=ct(oe.expression,le,Pt);return M.assert(Ke),t.createPartiallyEmittedExpression(Ke,oe)}function pt(oe){let Ke=ct(oe.expression,le,Af);return M.assert(Ke),t.createPartiallyEmittedExpression(Ke,oe)}function nr(oe){let Ke=ct(oe.expression,le,Pt);return M.assert(Ke),t.createPartiallyEmittedExpression(Ke,oe)}function Oe(oe){return t.updateCallExpression(oe,M.checkDefined(ct(oe.expression,le,Pt)),void 0,Qr(oe.arguments,le,Pt))}function Nt(oe){return t.updateNewExpression(oe,M.checkDefined(ct(oe.expression,le,Pt)),void 0,Qr(oe.arguments,le,Pt))}function It(oe){return t.updateTaggedTemplateExpression(oe,M.checkDefined(ct(oe.tag,le,Pt)),void 0,M.checkDefined(ct(oe.template,le,QC)))}function Vt(oe){return t.updateJsxSelfClosingElement(oe,M.checkDefined(ct(oe.tagName,le,Tw)),void 0,M.checkDefined(ct(oe.attributes,le,SE)))}function Mt(oe){return t.updateJsxOpeningElement(oe,M.checkDefined(ct(oe.tagName,le,Tw)),void 0,M.checkDefined(ct(oe.attributes,le,SE)))}function sr(oe){return!Kb(oe)||lE(d)}function Z(oe){if(!sr(oe))return t.createNotEmittedStatement(oe);let Ke=[],Rt=4,xr=Re(Ke,oe);xr&&(E!==4||$!==L)&&(Rt|=1024);let qn=Wi(oe),mr=xu(oe),zn=rr(oe)?t.getExternalModuleOrNamespaceExportName(J,oe,!1,!0):t.getDeclarationName(oe,!1,!0),Li=t.createLogicalOr(zn,t.createAssignment(zn,t.createObjectLiteralExpression()));if(rr(oe)){let Io=t.getLocalName(oe,!1,!0);Li=t.createAssignment(Io,Li)}let Pi=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,qn)],void 0,Ye(oe,mr)),void 0,[Li]));return Gn(Pi,oe),xr&&(hT(Pi,void 0),NA(Pi,void 0)),At(Pi,oe),qg(Pi,Rt),Ke.push(Pi),Ke}function Ye(oe,Ke){let Rt=J;J=Ke;let xr=[];i();let qn=kr(oe.members,bt);return Cy(xr,a()),On(xr,qn),J=Rt,t.createBlock(At(t.createNodeArray(xr),oe.members),!0)}function bt(oe){let Ke=os(oe,!1),Rt=m.getEnumMemberValue(oe),xr=Q(oe,Rt?.value),qn=t.createAssignment(t.createElementAccessExpression(J,Ke),xr),mr=typeof Rt?.value=="string"||Rt?.isSyntacticallyString?qn:t.createAssignment(t.createElementAccessExpression(J,qn),Ke);return At(t.createExpressionStatement(At(mr,oe)),oe)}function Q(oe,Ke){return Ke!==void 0?typeof Ke=="string"?t.createStringLiteral(Ke):Ke<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Ke)):t.createNumericLiteral(Ke):(Ac(),oe.initializer?M.checkDefined(ct(oe.initializer,le,Pt)):t.createVoidZero())}function Xe(oe){let Ke=Ps(oe,xl);return Ke?AK(Ke,lE(d)):!0}function z(oe){q||(q=new Map);let Ke=be(oe);q.has(Ke)||q.set(Ke,oe)}function Ue(oe){if(q){let Ke=be(oe);return q.get(Ke)===oe}return!0}function be(oe){return M.assertNode(oe.name,$e),oe.name.escapedText}function Re(oe,Ke){let Rt=t.createVariableDeclaration(t.getLocalName(Ke,!1,!0)),xr=$.kind===307?0:1,qn=t.createVariableStatement(Qr(Ke.modifiers,ze,Do),t.createVariableDeclarationList([Rt],xr));return Gn(Rt,Ke),hT(Rt,void 0),NA(Rt,void 0),Gn(qn,Ke),z(Ke),Ue(Ke)?(Ke.kind===266?Wo(qn.declarationList,Ke):Wo(qn,Ke),eu(qn,Ke),qg(qn,2048),oe.push(qn),!0):!1}function Ot(oe){if(!Xe(oe))return t.createNotEmittedStatement(oe);M.assertNode(oe.name,$e,"A TypeScript namespace should have an Identifier name."),D_();let Ke=[],Rt=4,xr=Re(Ke,oe);xr&&(E!==4||$!==L)&&(Rt|=1024);let qn=Wi(oe),mr=xu(oe),zn=rr(oe)?t.getExternalModuleOrNamespaceExportName(J,oe,!1,!0):t.getDeclarationName(oe,!1,!0),Li=t.createLogicalOr(zn,t.createAssignment(zn,t.createObjectLiteralExpression()));if(rr(oe)){let Io=t.getLocalName(oe,!1,!0);Li=t.createAssignment(Io,Li)}let Pi=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,qn)],void 0,Ht(oe,mr)),void 0,[Li]));return Gn(Pi,oe),xr&&(hT(Pi,void 0),NA(Pi,void 0)),At(Pi,oe),qg(Pi,Rt),Ke.push(Pi),Ke}function Ht(oe,Ke){let Rt=J,xr=F,qn=q;J=Ke,F=oe,q=void 0;let mr=[];i();let zn,Li;if(oe.body)if(oe.body.kind===268)ce(oe.body,Io=>On(mr,Qr(Io.statements,he,Ji))),zn=oe.body.statements,Li=oe.body;else{let Io=Ot(oe.body);Io&&(Ms(Io)?On(mr,Io):mr.push(Io));let mc=$t(oe).body;zn=mT(mc.statements,-1)}Cy(mr,a()),J=Rt,F=xr,q=qn;let Pi=t.createBlock(At(t.createNodeArray(mr),zn),!0);return At(Pi,Li),(!oe.body||oe.body.kind!==268)&&xn(Pi,Ko(Pi)|3072),Pi}function $t(oe){if(oe.body.kind===267)return $t(oe.body)||oe.body}function gr(oe){if(!oe.importClause)return oe;if(oe.importClause.isTypeOnly)return;let Ke=ct(oe.importClause,Wr,ng);return Ke?t.updateImportDeclaration(oe,void 0,Ke,oe.moduleSpecifier,oe.attributes):void 0}function Wr(oe){M.assert(!oe.isTypeOnly);let Ke=Se(oe)?oe.name:void 0,Rt=ct(oe.namedBindings,Yr,tH);return Ke||Rt?t.updateImportClause(oe,!1,Ke,Rt):void 0}function Yr(oe){if(oe.kind===274)return Se(oe)?oe:void 0;{let Ke=d.verbatimModuleSyntax,Rt=Qr(oe.elements,gn,pf);return Ke||Dt(Rt)?t.updateNamedImports(oe,Rt):void 0}}function gn(oe){return!oe.isTypeOnly&&Se(oe)?oe:void 0}function Pr(oe){return d.verbatimModuleSyntax||m.isValueAliasDeclaration(oe)?jr(oe,le,e):void 0}function Rn(oe){if(oe.isTypeOnly)return;if(!oe.exportClause||qh(oe.exportClause))return oe;let Ke=!!d.verbatimModuleSyntax,Rt=ct(oe.exportClause,xr=>Xn(xr,Ke),zG);return Rt?t.updateExportDeclaration(oe,void 0,oe.isTypeOnly,Rt,oe.moduleSpecifier,oe.attributes):void 0}function Xi(oe,Ke){let Rt=Qr(oe.elements,hi,E_);return Ke||Dt(Rt)?t.updateNamedExports(oe,Rt):void 0}function us(oe){return t.updateNamespaceExport(oe,M.checkDefined(ct(oe.name,le,$e)))}function Xn(oe,Ke){return qh(oe)?us(oe):Xi(oe,Ke)}function hi(oe){return!oe.isTypeOnly&&(d.verbatimModuleSyntax||m.isValueAliasDeclaration(oe))?oe:void 0}function Cr(oe){return Se(oe)||!iu(L)&&m.isTopLevelValueImportEqualsWithEntityName(oe)}function nn(oe){if(oe.isTypeOnly)return;if(cT(oe))return Se(oe)?jr(oe,le,e):void 0;if(!Cr(oe))return;let Ke=TM(t,oe.moduleReference);return xn(Ke,7168),pa(oe)||!rr(oe)?Gn(At(t.createVariableStatement(Qr(oe.modifiers,ze,Do),t.createVariableDeclarationList([Gn(t.createVariableDeclaration(oe.name,void 0,void 0,Ke),oe)])),oe),oe):Gn(oo(oe.name,Ke,oe),oe)}function rr(oe){return F!==void 0&&_i(oe,32)}function zs(oe){return F===void 0&&_i(oe,32)}function pa(oe){return zs(oe)&&!_i(oe,2048)}function Fa(oe){return zs(oe)&&_i(oe,2048)}function wa(oe){let Ke=t.createAssignment(t.getExternalModuleOrNamespaceExportName(J,oe,!1,!0),t.getLocalName(oe));Wo(Ke,Ed(oe.name?oe.name.pos:oe.pos,oe.end));let Rt=t.createExpressionStatement(Ke);return Wo(Rt,Ed(-1,oe.end)),Rt}function gs(oe,Ke){oe.push(wa(Ke))}function oo(oe,Ke,Rt){return At(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(J,oe,!1,!0),Ke)),Rt)}function vc(oe,Ke,Rt){return At(t.createAssignment(rs(oe),Ke),Rt)}function rs(oe){return t.getNamespaceMemberName(J,oe,!1,!0)}function Wi(oe){let Ke=t.getGeneratedNameForNode(oe);return Wo(Ke,oe.name),Ke}function xu(oe){return t.getGeneratedNameForNode(oe)}function Ac(){W&8||(W|=8,e.enableSubstitution(80))}function D_(){W&2||(W|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function el(oe){return Bc(oe).kind===267}function Zu(oe){return Bc(oe).kind===266}function Bo(oe,Ke,Rt){let xr=pe,qn=L;qi(Ke)&&(L=Ke),W&2&&el(Ke)&&(pe|=2),W&8&&Zu(Ke)&&(pe|=8),I(oe,Ke,Rt),pe=xr,L=qn}function Sc(oe,Ke){return Ke=R(oe,Ke),oe===1?ga(Ke):m_(Ke)?ja(Ke):Ke}function ja(oe){if(W&2){let Ke=oe.name,Rt=Jc(Ke);if(Rt){if(oe.objectAssignmentInitializer){let xr=t.createAssignment(Rt,oe.objectAssignmentInitializer);return At(t.createPropertyAssignment(Ke,xr),oe)}return At(t.createPropertyAssignment(Ke,Rt),oe)}}return oe}function ga(oe){switch(oe.kind){case 80:return pr(oe);case 211:return W_(oe);case 212:return G_(oe)}return oe}function pr(oe){return Jc(oe)||oe}function Jc(oe){if(W&pe&&!Ec(oe)&&!P0(oe)){let Ke=m.getReferencedExportContainer(oe,!1);if(Ke&&Ke.kind!==307&&(pe&2&&Ke.kind===267||pe&8&&Ke.kind===266))return At(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Ke),oe),oe)}}function W_(oe){return dc(oe)}function G_(oe){return dc(oe)}function Wf(oe){return oe.replace(/\*\//g,"*_/")}function dc(oe){let Ke=tl(oe);if(Ke!==void 0){Zpe(oe,Ke);let Rt=typeof Ke=="string"?t.createStringLiteral(Ke):Ke<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-Ke)):t.createNumericLiteral(Ke);if(!d.removeComments){let xr=Bc(oe,ac);Nj(Rt,3,` ${Wf(Hc(xr))} `)}return Rt}return oe}function tl(oe){if(!Ad(d))return Hn(oe)||cc(oe)?m.getConstantValue(oe):void 0}function Se(oe){return d.verbatimModuleSyntax||vn(oe)||m.isReferencedAliasDeclaration(oe)}}function uhe(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:a,resumeLexicalEnvironment:u,addBlockScopedVariable:m}=e,d=e.getEmitResolver(),S=e.getCompilerOptions(),E=Qo(S),x=XR(S),D=!!S.experimentalDecorators,I=!x,R=x&&E<9,L=I||R,F=E<9,J=E<99?-1:x?0:3,$=E<9,q=$&&E>=2,ee=L||F||J===-1,W=e.onSubstituteNode;e.onSubstituteNode=W_;let pe=e.onEmitNode;e.onEmitNode=Jc;let K=!1,re,ue,ce,ne,le,me=new Map,de=new Set,Ae,xe,te=!1,he=!1;return ag(e,Te);function Te(Se){if(Se.isDeclarationFile||(le=void 0,K=!!(Pm(Se)&32),!ee&&!K))return Se;let oe=jr(Se,Pe,e);return x0(oe,e.readEmitHelpers()),oe}function Ve(Se){switch(Se.kind){case 129:return Xt()?void 0:Se;default:return ci(Se,Do)}}function Pe(Se){if(!(Se.transformFlags&16777216)&&!(Se.transformFlags&134234112))return Se;switch(Se.kind){case 129:return M.fail("Use `modifierVisitor` instead.");case 263:return Mt(Se);case 231:return Z(Se);case 175:case 172:return M.fail("Use `classElementVisitor` instead.");case 303:return Qe(Se);case 243:return yt(Se);case 260:return ir(Se);case 169:return Tr(Se);case 208:return Ar(Se);case 277:return Vr(Se);case 81:return ft(Se);case 211:return uo(Se);case 212:return Ys(Se);case 224:case 225:return Sr(Se,!1);case 226:return Me(Se,!1);case 217:return pt(Se,!1);case 213:return fe(Se);case 244:return ut(Se);case 215:return St(Se);case 248:return ia(Se);case 110:return Q(Se);case 262:case 218:return Di(void 0,ke,Se);case 176:case 174:case 177:case 178:return Di(Se,ke,Se);default:return ke(Se)}}function ke(Se){return jr(Se,Pe,e)}function De(Se){switch(Se.kind){case 224:case 225:return Sr(Se,!0);case 226:return Me(Se,!0);case 355:return rt(Se,!0);case 217:return pt(Se,!0);default:return Pe(Se)}}function Be(Se){switch(Se.kind){case 298:return jr(Se,Be,e);case 233:return It(Se);default:return Pe(Se)}}function lt(Se){switch(Se.kind){case 210:case 209:return pr(Se);default:return Pe(Se)}}function ze(Se){switch(Se.kind){case 176:return Di(Se,tn,Se);case 177:case 178:case 174:return Di(Se,br,Se);case 172:return Di(Se,qr,Se);case 175:return Di(Se,bt,Se);case 167:return ur(Se);case 240:return Se;default:return xc(Se)?Ve(Se):Pe(Se)}}function tt(Se){switch(Se.kind){case 167:return ur(Se);default:return Pe(Se)}}function we(Se){switch(Se.kind){case 172:return He(Se);case 177:case 178:return ze(Se);default:M.assertMissingNode(Se,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function ft(Se){return!F||Ji(Se.parent)?Se:Gn(t.createIdentifier(""),Se)}function gt(Se){let oe=Wi(Se.left);if(oe){let Ke=ct(Se.right,Pe,Pt);return Gn(n().createClassPrivateFieldInHelper(oe.brandCheckIdentifier,Ke),Se)}return jr(Se,Pe,e)}function Qe(Se){return up(Se,it)&&(Se=gp(e,Se)),jr(Se,Pe,e)}function yt(Se){let oe=ne;ne=[];let Ke=jr(Se,Pe,e),Rt=Dt(ne)?[Ke,...ne]:Ke;return ne=oe,Rt}function ir(Se){return up(Se,it)&&(Se=gp(e,Se)),jr(Se,Pe,e)}function Tr(Se){return up(Se,it)&&(Se=gp(e,Se)),jr(Se,Pe,e)}function Ar(Se){return up(Se,it)&&(Se=gp(e,Se)),jr(Se,Pe,e)}function Vr(Se){return up(Se,it)&&(Se=gp(e,Se,!0,Se.isExportEquals?"":"default")),jr(Se,Pe,e)}function fr(Se){return Dt(ce)&&(ff(Se)?(ce.push(Se.expression),Se=t.updateParenthesizedExpression(Se,t.inlineExpressions(ce))):(ce.push(Se),Se=t.inlineExpressions(ce)),ce=void 0),Se}function ur(Se){let oe=ct(Se.expression,Pe,Pt);return t.updateComputedPropertyName(Se,fr(oe))}function tn(Se){return Ae?Ue(Se,Ae):ke(Se)}function Mi(Se){return!!(F||Jl(Se)&&Pm(Se)&32)}function br(Se){if(M.assert(!Gp(Se)),!B_(Se)||!Mi(Se))return jr(Se,ze,e);let oe=Wi(Se.name);if(M.assert(oe,"Undeclared private name for property declaration."),!oe.isValid)return Se;let Ke=As(Se);Ke&&nn().push(t.createAssignment(Ke,t.createFunctionExpression(ti(Se.modifiers,Rt=>Do(Rt)&&!MA(Rt)&&!Jde(Rt)),Se.asteriskToken,Ke,void 0,Kc(Se.parameters,Pe,e),void 0,Zp(Se.body,Pe,e))))}function Di(Se,oe,Ke){if(Se!==xe){let Rt=xe;xe=Se;let xr=oe(Ke);return xe=Rt,xr}return oe(Ke)}function As(Se){M.assert(es(Se.name));let oe=Wi(Se.name);if(M.assert(oe,"Undeclared private name for property declaration."),oe.kind==="m")return oe.methodName;if(oe.kind==="a"){if(Tv(Se))return oe.getterName;if(wg(Se))return oe.setterName}}function os(){let Se=hi();return Se.classThis??Se.classConstructor??Ae?.name}function Ri(Se){let oe=zg(Se),Ke=Rv(Se),Rt=Se.name,xr=Rt,qn=Rt;if(Go(Rt)&&!Xg(Rt.expression)){let Wl=iB(Rt);if(Wl)xr=t.updateComputedPropertyName(Rt,ct(Rt.expression,Pe,Pt)),qn=t.updateComputedPropertyName(Rt,Wl.left);else{let Oc=t.createTempVariable(i);Wo(Oc,Rt.expression);let mu=ct(Rt.expression,Pe,Pt),gc=t.createAssignment(Oc,mu);Wo(gc,Rt.expression),xr=t.updateComputedPropertyName(Rt,gc),qn=t.updateComputedPropertyName(Rt,Oc)}}let mr=Qr(Se.modifiers,Ve,Do),zn=MY(t,Se,mr,Se.initializer);Gn(zn,Se),xn(zn,3072),Wo(zn,Ke);let Li=co(Se)?os()??t.createThis():t.createThis(),Pi=xme(t,Se,mr,xr,Li);Gn(Pi,Se),eu(Pi,oe),Wo(Pi,Ke);let Io=t.createModifiersFromModifierFlags(Ug(mr)),mc=Cme(t,Se,Io,qn,Li);return Gn(mc,Se),xn(mc,3072),Wo(mc,Ke),JM([zn,Pi,mc],we,_u)}function $r(Se){if(Mi(Se)){let oe=Wi(Se.name);if(M.assert(oe,"Undeclared private name for property declaration."),!oe.isValid)return Se;if(oe.isStatic&&!F){let Ke=Ht(Se,t.createThis());if(Ke)return t.createClassStaticBlockDeclaration(t.createBlock([Ke],!0))}return}return I&&!co(Se)&&le?.data&&le.data.facts&16?t.updatePropertyDeclaration(Se,Qr(Se.modifiers,Pe,xc),Se.name,void 0,void 0,void 0):(up(Se,it)&&(Se=gp(e,Se)),t.updatePropertyDeclaration(Se,Qr(Se.modifiers,Ve,Do),ct(Se.name,tt,Ol),void 0,void 0,ct(Se.initializer,Pe,Pt)))}function Qs(Se){if(L&&!Cf(Se)){let oe=Xi(Se.name,!!Se.initializer||x);if(oe&&nn().push(...Ame(oe)),co(Se)&&!F){let Ke=Ht(Se,t.createThis());if(Ke){let Rt=t.createClassStaticBlockDeclaration(t.createBlock([Ke]));return Gn(Rt,Se),eu(Rt,Se),eu(Ke,{pos:-1,end:-1}),hT(Ke,void 0),NA(Ke,void 0),Rt}}return}return t.updatePropertyDeclaration(Se,Qr(Se.modifiers,Ve,Do),ct(Se.name,tt,Ol),void 0,void 0,ct(Se.initializer,Pe,Pt))}function He(Se){return M.assert(!Gp(Se),"Decorators should already have been transformed and elided."),B_(Se)?$r(Se):Qs(Se)}function Xt(){return J===-1||J===3&&!!le?.data&&!!(le.data.facts&16)}function qr(Se){return Cf(Se)&&(Xt()||Jl(Se)&&Pm(Se)&32)?Ri(Se):He(Se)}function Pn(){return!!xe&&Jl(xe)&&U1(xe)&&Cf(Bc(xe))}function Ti(Se){if(Pn()){let oe=Ml(Se);oe.kind===110&&de.add(oe)}}function ki(Se,oe){return oe=ct(oe,Pe,Pt),Ti(oe),Vi(Se,oe)}function Vi(Se,oe){switch(eu(oe,mT(oe,-1)),Se.kind){case"a":return n().createClassPrivateFieldGetHelper(oe,Se.brandCheckIdentifier,Se.kind,Se.getterName);case"m":return n().createClassPrivateFieldGetHelper(oe,Se.brandCheckIdentifier,Se.kind,Se.methodName);case"f":return n().createClassPrivateFieldGetHelper(oe,Se.brandCheckIdentifier,Se.kind,Se.isStatic?Se.variableName:void 0);case"untransformed":return M.fail("Access helpers should not be created for untransformed private elements");default:M.assertNever(Se,"Unknown private element type")}}function uo(Se){if(es(Se.name)){let oe=Wi(Se.name);if(oe)return At(Gn(ki(oe,Se.expression),Se),Se)}if(q&&xe&&kf(Se)&&$e(Se.name)&&e6(xe)&&le?.data){let{classConstructor:oe,superClassReference:Ke,facts:Rt}=le.data;if(Rt&1)return Rn(Se);if(oe&&Ke){let xr=t.createReflectGetCall(Ke,t.createStringLiteralFromNode(Se.name),oe);return Gn(xr,Se.expression),At(xr,Se.expression),xr}}return jr(Se,Pe,e)}function Ys(Se){if(q&&xe&&kf(Se)&&e6(xe)&&le?.data){let{classConstructor:oe,superClassReference:Ke,facts:Rt}=le.data;if(Rt&1)return Rn(Se);if(oe&&Ke){let xr=t.createReflectGetCall(Ke,ct(Se.argumentExpression,Pe,Pt),oe);return Gn(xr,Se.expression),At(xr,Se.expression),xr}}return jr(Se,Pe,e)}function Sr(Se,oe){if(Se.operator===46||Se.operator===47){let Ke=ba(Se.operand);if(LP(Ke)){let Rt;if(Rt=Wi(Ke.name)){let xr=ct(Ke.expression,Pe,Pt);Ti(xr);let{readExpression:qn,initializeExpression:mr}=Tt(xr),zn=ki(Rt,qn),Li=tS(Se)||oe?void 0:t.createTempVariable(i);return zn=Xj(t,Se,zn,i,Li),zn=nr(Rt,mr||qn,zn,64),Gn(zn,Se),At(zn,Se),Li&&(zn=t.createComma(zn,Li),At(zn,Se)),zn}}else if(q&&xe&&kf(Ke)&&e6(xe)&&le?.data){let{classConstructor:Rt,superClassReference:xr,facts:qn}=le.data;if(qn&1){let mr=Rn(Ke);return tS(Se)?t.updatePrefixUnaryExpression(Se,mr):t.updatePostfixUnaryExpression(Se,mr)}if(Rt&&xr){let mr,zn;if(Hn(Ke)?$e(Ke.name)&&(zn=mr=t.createStringLiteralFromNode(Ke.name)):Xg(Ke.argumentExpression)?zn=mr=Ke.argumentExpression:(zn=t.createTempVariable(i),mr=t.createAssignment(zn,ct(Ke.argumentExpression,Pe,Pt))),mr&&zn){let Li=t.createReflectGetCall(xr,zn,Rt);At(Li,Ke);let Pi=oe?void 0:t.createTempVariable(i);return Li=Xj(t,Se,Li,i,Pi),Li=t.createReflectSetCall(xr,mr,Li,Rt),Gn(Li,Se),At(Li,Se),Pi&&(Li=t.createComma(Li,Pi),At(Li,Se)),Li}}}}return jr(Se,Pe,e)}function ia(Se){return t.updateForStatement(Se,ct(Se.initializer,De,Td),ct(Se.condition,Pe,Pt),ct(Se.incrementor,De,Pt),df(Se.statement,Pe,e))}function ut(Se){return t.updateExpressionStatement(Se,ct(Se.expression,De,Pt))}function Tt(Se){let oe=Ka(Se)?Se:t.cloneNode(Se);if(Se.kind===110&&de.has(Se)&&de.add(oe),Xg(Se))return{readExpression:oe,initializeExpression:void 0};let Ke=t.createTempVariable(i),Rt=t.createAssignment(Ke,oe);return{readExpression:Ke,initializeExpression:Rt}}function fe(Se){var oe;if(LP(Se.expression)&&Wi(Se.expression.name)){let{thisArg:Ke,target:Rt}=t.createCallBinding(Se.expression,i,E);return qx(Se)?t.updateCallChain(Se,t.createPropertyAccessChain(ct(Rt,Pe,Pt),Se.questionDotToken,"call"),void 0,void 0,[ct(Ke,Pe,Pt),...Qr(Se.arguments,Pe,Pt)]):t.updateCallExpression(Se,t.createPropertyAccessExpression(ct(Rt,Pe,Pt),"call"),void 0,[ct(Ke,Pe,Pt),...Qr(Se.arguments,Pe,Pt)])}if(q&&xe&&kf(Se.expression)&&e6(xe)&&((oe=le?.data)!=null&&oe.classConstructor)){let Ke=t.createFunctionCallCall(ct(Se.expression,Pe,Pt),le.data.classConstructor,Qr(Se.arguments,Pe,Pt));return Gn(Ke,Se),At(Ke,Se),Ke}return jr(Se,Pe,e)}function St(Se){var oe;if(LP(Se.tag)&&Wi(Se.tag.name)){let{thisArg:Ke,target:Rt}=t.createCallBinding(Se.tag,i,E);return t.updateTaggedTemplateExpression(Se,t.createCallExpression(t.createPropertyAccessExpression(ct(Rt,Pe,Pt),"bind"),void 0,[ct(Ke,Pe,Pt)]),void 0,ct(Se.template,Pe,QC))}if(q&&xe&&kf(Se.tag)&&e6(xe)&&((oe=le?.data)!=null&&oe.classConstructor)){let Ke=t.createFunctionBindCall(ct(Se.tag,Pe,Pt),le.data.classConstructor,[]);return Gn(Ke,Se),At(Ke,Se),t.updateTaggedTemplateExpression(Se,Ke,void 0,ct(Se.template,Pe,QC))}return jr(Se,Pe,e)}function Ce(Se){if(le&&me.set(Bc(Se),le),F){if(QO(Se)){let Rt=ct(Se.body.statements[0].expression,Pe,Pt);return Tu(Rt,!0)&&Rt.left===Rt.right?void 0:Rt}if(tk(Se))return ct(Se.body.statements[0].expression,Pe,Pt);a();let oe=Di(Se,Rt=>Qr(Rt,Pe,Ji),Se.body.statements);oe=t.mergeLexicalEnvironment(oe,s());let Ke=t.createImmediatelyInvokedArrowFunction(oe);return Gn(ba(Ke.expression),Se),qg(ba(Ke.expression),4),Gn(Ke,Se),At(Ke,Se),Ke}}function it(Se){if(tu(Se)&&!Se.name){let oe=jB(Se);return Dt(oe,tk)?!1:(F||!!Pm(Se))&&Dt(oe,Rt=>$c(Rt)||B_(Rt)||L&&zM(Rt))}return!1}function Me(Se,oe){if(Iv(Se)){let Ke=ce;ce=void 0,Se=t.updateBinaryExpression(Se,ct(Se.left,lt,Pt),Se.operatorToken,ct(Se.right,Pe,Pt));let Rt=Dt(ce)?t.inlineExpressions(un([...ce,Se])):Se;return ce=Ke,Rt}if(Tu(Se)){up(Se,it)&&(Se=gp(e,Se),M.assertNode(Se,Tu));let Ke=Ml(Se.left,9);if(LP(Ke)){let Rt=Wi(Ke.name);if(Rt)return At(Gn(nr(Rt,Ke.expression,Se.right,Se.operatorToken.kind),Se),Se)}else if(q&&xe&&kf(Se.left)&&e6(xe)&&le?.data){let{classConstructor:Rt,superClassReference:xr,facts:qn}=le.data;if(qn&1)return t.updateBinaryExpression(Se,Rn(Se.left),Se.operatorToken,ct(Se.right,Pe,Pt));if(Rt&&xr){let mr=cc(Se.left)?ct(Se.left.argumentExpression,Pe,Pt):$e(Se.left.name)?t.createStringLiteralFromNode(Se.left.name):void 0;if(mr){let zn=ct(Se.right,Pe,Pt);if(YO(Se.operatorToken.kind)){let Pi=mr;Xg(mr)||(Pi=t.createTempVariable(i),mr=t.createAssignment(Pi,mr));let Io=t.createReflectGetCall(xr,Pi,Rt);Gn(Io,Se.left),At(Io,Se.left),zn=t.createBinaryExpression(Io,KO(Se.operatorToken.kind),zn),At(zn,Se)}let Li=oe?void 0:t.createTempVariable(i);return Li&&(zn=t.createAssignment(Li,zn),At(Li,Se)),zn=t.createReflectSetCall(xr,mr,zn,Rt),Gn(zn,Se),At(zn,Se),Li&&(zn=t.createComma(zn,Li),At(zn,Se)),zn}}}}return CEt(Se)?gt(Se):jr(Se,Pe,e)}function rt(Se,oe){let Ke=oe?qM(Se.elements,De):qM(Se.elements,Pe,De);return t.updateCommaListExpression(Se,Ke)}function pt(Se,oe){let Ke=oe?De:Pe,Rt=ct(Se.expression,Ke,Pt);return t.updateParenthesizedExpression(Se,Rt)}function nr(Se,oe,Ke,Rt){if(oe=ct(oe,Pe,Pt),Ke=ct(Ke,Pe,Pt),Ti(oe),YO(Rt)){let{readExpression:xr,initializeExpression:qn}=Tt(oe);oe=qn||xr,Ke=t.createBinaryExpression(Vi(Se,xr),KO(Rt),Ke)}switch(eu(oe,mT(oe,-1)),Se.kind){case"a":return n().createClassPrivateFieldSetHelper(oe,Se.brandCheckIdentifier,Ke,Se.kind,Se.setterName);case"m":return n().createClassPrivateFieldSetHelper(oe,Se.brandCheckIdentifier,Ke,Se.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(oe,Se.brandCheckIdentifier,Ke,Se.kind,Se.isStatic?Se.variableName:void 0);case"untransformed":return M.fail("Access helpers should not be created for untransformed private elements");default:M.assertNever(Se,"Unknown private element type")}}function Oe(Se){return ti(Se.members,$ge)}function Nt(Se){var oe;let Ke=0,Rt=Bc(Se);vi(Rt)&&Av(D,Rt)&&(Ke|=1),F&&(BK(Se)||UB(Se))&&(Ke|=2);let xr=!1,qn=!1,mr=!1,zn=!1;for(let Pi of Se.members)co(Pi)?((Pi.name&&(es(Pi.name)||Cf(Pi))&&F||Cf(Pi)&&J===-1&&!Se.name&&!((oe=Se.emitNode)!=null&&oe.classThis))&&(Ke|=2),(Ds(Pi)||$c(Pi))&&($&&Pi.transformFlags&16384&&(Ke|=8,Ke&1||(Ke|=2)),q&&Pi.transformFlags&134217728&&(Ke&1||(Ke|=6)))):aE(Bc(Pi))||(Cf(Pi)?(zn=!0,mr||(mr=B_(Pi))):B_(Pi)?(mr=!0,d.hasNodeCheckFlag(Pi,262144)&&(Ke|=2)):Ds(Pi)&&(xr=!0,qn||(qn=!!Pi.initializer)));return(R&&xr||I&&qn||F&&mr||F&&zn&&J===-1)&&(Ke|=16),Ke}function It(Se){var oe;if((((oe=le?.data)==null?void 0:oe.facts)||0)&4){let Rt=t.createTempVariable(i,!0);return hi().superClassReference=Rt,t.updateExpressionWithTypeArguments(Se,t.createAssignment(Rt,ct(Se.expression,Pe,Pt)),void 0)}return jr(Se,Pe,e)}function Vt(Se,oe){var Ke;let Rt=Ae,xr=ce,qn=le;Ae=Se,ce=void 0,us();let mr=Pm(Se)&32;if(F||mr){let Pi=Ns(Se);if(Pi&&$e(Pi))Cr().data.className=Pi;else if((Ke=Se.emitNode)!=null&&Ke.assignedName&&jo(Se.emitNode.assignedName)){if(Se.emitNode.assignedName.textSourceNode&&$e(Se.emitNode.assignedName.textSourceNode))Cr().data.className=Se.emitNode.assignedName.textSourceNode;else if(ap(Se.emitNode.assignedName.text,E)){let Io=t.createIdentifier(Se.emitNode.assignedName.text);Cr().data.className=Io}}}if(F){let Pi=Oe(Se);Dt(Pi)&&(Cr().data.weakSetName=vc("instances",Pi[0].name))}let zn=Nt(Se);zn&&(hi().facts=zn),zn&8&&gn();let Li=oe(Se,zn);return Xn(),M.assert(le===qn),Ae=Rt,ce=xr,Li}function Mt(Se){return Vt(Se,sr)}function sr(Se,oe){var Ke,Rt;let xr;if(oe&2)if(F&&((Ke=Se.emitNode)!=null&&Ke.classThis))hi().classConstructor=Se.emitNode.classThis,xr=t.createAssignment(Se.emitNode.classThis,t.getInternalName(Se));else{let gc=t.createTempVariable(i,!0);hi().classConstructor=t.cloneNode(gc),xr=t.createAssignment(gc,t.getInternalName(Se))}(Rt=Se.emitNode)!=null&&Rt.classThis&&(hi().classThis=Se.emitNode.classThis);let qn=d.hasNodeCheckFlag(Se,262144),mr=_i(Se,32),zn=_i(Se,2048),Li=Qr(Se.modifiers,Ve,Do),Pi=Qr(Se.heritageClauses,Be,mp),{members:Io,prologue:mc}=Xe(Se),Wl=[];if(xr&&nn().unshift(xr),Dt(ce)&&Wl.push(t.createExpressionStatement(t.inlineExpressions(ce))),I||F||Pm(Se)&32){let gc=jB(Se);Dt(gc)&&Ot(Wl,gc,t.getInternalName(Se))}Wl.length>0&&mr&&zn&&(Li=Qr(Li,gc=>CM(gc)?void 0:gc,Do),Wl.push(t.createExportAssignment(void 0,!1,t.getLocalName(Se,!1,!0))));let Oc=hi().classConstructor;qn&&Oc&&(Yr(),ue[mf(Se)]=Oc);let mu=t.updateClassDeclaration(Se,Li,Se.name,void 0,Pi,Io);return Wl.unshift(mu),mc&&Wl.unshift(t.createExpressionStatement(mc)),Wl}function Z(Se){return Vt(Se,Ye)}function Ye(Se,oe){var Ke,Rt,xr;let qn=!!(oe&1),mr=jB(Se),zn=d.hasNodeCheckFlag(Se,262144),Li=d.hasNodeCheckFlag(Se,32768),Pi;function Io(){var rl;if(F&&((rl=Se.emitNode)!=null&&rl.classThis))return hi().classConstructor=Se.emitNode.classThis;let Gl=t.createTempVariable(Li?m:i,!0);return hi().classConstructor=t.cloneNode(Gl),Gl}(Ke=Se.emitNode)!=null&&Ke.classThis&&(hi().classThis=Se.emitNode.classThis),oe&2&&(Pi??(Pi=Io()));let mc=Qr(Se.modifiers,Ve,Do),Wl=Qr(Se.heritageClauses,Be,mp),{members:Oc,prologue:mu}=Xe(Se),gc=t.updateClassExpression(Se,mc,Se.name,void 0,Wl,Oc),gu=[];if(mu&&gu.push(mu),(F||Pm(Se)&32)&&Dt(mr,rl=>$c(rl)||B_(rl)||L&&zM(rl))||Dt(ce))if(qn)M.assertIsDefined(ne,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Dt(ce)&&On(ne,kr(ce,t.createExpressionStatement)),Dt(mr)&&Ot(ne,mr,((Rt=Se.emitNode)==null?void 0:Rt.classThis)??t.getInternalName(Se)),Pi?gu.push(t.createAssignment(Pi,gc)):F&&((xr=Se.emitNode)!=null&&xr.classThis)?gu.push(t.createAssignment(Se.emitNode.classThis,gc)):gu.push(gc);else{if(Pi??(Pi=Io()),zn){Yr();let rl=t.cloneNode(Pi);rl.emitNode.autoGenerate.flags&=-9,ue[mf(Se)]=rl}gu.push(t.createAssignment(Pi,gc)),On(gu,ce),On(gu,$t(mr,Pi)),gu.push(t.cloneNode(Pi))}else gu.push(gc);return gu.length>1&&(qg(gc,131072),gu.forEach(x_)),t.inlineExpressions(gu)}function bt(Se){if(!F)return jr(Se,Pe,e)}function Q(Se){if($&&xe&&$c(xe)&&le?.data){let{classThis:oe,classConstructor:Ke}=le.data;return oe??Ke??Se}return Se}function Xe(Se){let oe=!!(Pm(Se)&32);if(F||K){for(let mr of Se.members)if(B_(mr))if(Mi(mr))oo(mr,mr.name,rr);else{let zn=Cr();h2(zn,mr.name,{kind:"untransformed"})}if(F&&Dt(Oe(Se))&&z(),Xt()){for(let mr of Se.members)if(Cf(mr)){let zn=t.getGeneratedPrivateNameForNode(mr.name,void 0,"_accessor_storage");if(F||oe&&Jl(mr))oo(mr,zn,zs);else{let Li=Cr();h2(Li,zn,{kind:"untransformed"})}}}}let Ke=Qr(Se.members,ze,_u),Rt;Dt(Ke,Vc)||(Rt=Ue(void 0,Se));let xr,qn;if(!F&&Dt(ce)){let mr=t.createExpressionStatement(t.inlineExpressions(ce));if(mr.transformFlags&134234112){let Li=t.createTempVariable(i),Pi=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([mr]));xr=t.createAssignment(Li,Pi),mr=t.createExpressionStatement(t.createCallExpression(Li,void 0,[]))}let zn=t.createBlock([mr]);qn=t.createClassStaticBlockDeclaration(zn),ce=void 0}if(Rt||qn){let mr,zn=jn(Ke,QO),Li=jn(Ke,tk);mr=Ut(mr,zn),mr=Ut(mr,Li),mr=Ut(mr,Rt),mr=Ut(mr,qn);let Pi=zn||Li?ti(Ke,Io=>Io!==zn&&Io!==Li):Ke;mr=On(mr,Pi),Ke=At(t.createNodeArray(mr),Se.members)}return{members:Ke,prologue:xr}}function z(){let{weakSetName:Se}=Cr().data;M.assert(Se,"weakSetName should be set in private identifier environment"),nn().push(t.createAssignment(Se,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function Ue(Se,oe){if(Se=ct(Se,Pe,Vc),!le?.data||!(le.data.facts&16))return Se;let Ke=Lg(oe),Rt=!!(Ke&&Ml(Ke.expression).kind!==106),xr=Kc(Se?Se.parameters:void 0,Pe,e),qn=Re(oe,Se,Rt);return qn?Se?(M.assert(xr),t.updateConstructorDeclaration(Se,void 0,xr,qn)):x_(Gn(At(t.createConstructorDeclaration(void 0,xr??[],qn),Se||oe),Se)):Se}function be(Se,oe,Ke,Rt,xr,qn,mr){let zn=Rt[xr],Li=oe[zn];if(On(Se,Qr(oe,Pe,Ji,Ke,zn-Ke)),Ke=zn+1,c2(Li)){let Pi=[];be(Pi,Li.tryBlock.statements,0,Rt,xr+1,qn,mr);let Io=t.createNodeArray(Pi);At(Io,Li.tryBlock.statements),Se.push(t.updateTryStatement(Li,t.updateBlock(Li.tryBlock,Pi),ct(Li.catchClause,Pe,TE),ct(Li.finallyBlock,Pe,Js)))}else{for(On(Se,Qr(oe,Pe,Ji,zn,1));Ke!!Oc.initializer||es(Oc.name)||Bg(Oc)));let qn=Oe(Se),mr=Dt(xr)||Dt(qn);if(!oe&&!mr)return Zp(void 0,Pe,e);u();let zn=!oe&&Ke,Li=0,Pi=[],Io=[],mc=t.createThis();if(Pr(Io,qn,mc),oe){let Oc=ti(Rt,gc=>cp(Bc(gc),oe)),mu=ti(xr,gc=>!cp(Bc(gc),oe));Ot(Io,Oc,mc),Ot(Io,mu,mc)}else Ot(Io,xr,mc);if(oe?.body){Li=t.copyPrologue(oe.body.statements,Pi,!1,Pe);let Oc=FB(oe.body.statements,Li);if(Oc.length)be(Pi,oe.body.statements,Li,Oc,0,Io,oe);else{for(;Li=Pi.length?oe.body.multiLine??Pi.length>0:Pi.length>0;return At(t.createBlock(At(t.createNodeArray(Pi),oe?oe.body.statements:Se.members),Wl),oe?oe.body:void 0)}function Ot(Se,oe,Ke){for(let Rt of oe){if(co(Rt)&&!F)continue;let xr=Ht(Rt,Ke);xr&&Se.push(xr)}}function Ht(Se,oe){let Ke=$c(Se)?Di(Se,Ce,Se):gr(Se,oe);if(!Ke)return;let Rt=t.createExpressionStatement(Ke);Gn(Rt,Se),qg(Rt,Ko(Se)&3072),eu(Rt,Se);let xr=Bc(Se);return is(xr)?(Wo(Rt,xr),cM(Rt)):Wo(Rt,Vg(Se)),hT(Ke,void 0),NA(Ke,void 0),Bg(xr)&&qg(Rt,3072),Rt}function $t(Se,oe){let Ke=[];for(let Rt of Se){let xr=$c(Rt)?Di(Rt,Ce,Rt):Di(Rt,()=>gr(Rt,oe),void 0);xr&&(x_(xr),Gn(xr,Rt),qg(xr,Ko(Rt)&3072),Wo(xr,Vg(Rt)),eu(xr,Rt),Ke.push(xr))}return Ke}function gr(Se,oe){var Ke;let Rt=xe,xr=Wr(Se,oe);return xr&&Jl(Se)&&((Ke=le?.data)!=null&&Ke.facts)&&(Gn(xr,Se),qg(xr,4),Wo(xr,Rv(Se.name)),me.set(Bc(Se),le)),xe=Rt,xr}function Wr(Se,oe){let Ke=!x;up(Se,it)&&(Se=gp(e,Se));let Rt=Bg(Se)?t.getGeneratedPrivateNameForNode(Se.name):Go(Se.name)&&!Xg(Se.name.expression)?t.updateComputedPropertyName(Se.name,t.getGeneratedNameForNode(Se.name)):Se.name;if(Jl(Se)&&(xe=Se),es(Rt)&&Mi(Se)){let mr=Wi(Rt);if(mr)return mr.kind==="f"?mr.isStatic?TEt(t,mr.variableName,ct(Se.initializer,Pe,Pt)):bEt(t,oe,ct(Se.initializer,Pe,Pt),mr.brandCheckIdentifier):void 0;M.fail("Undeclared private name for property declaration.")}if((es(Rt)||Jl(Se))&&!Se.initializer)return;let xr=Bc(Se);if(_i(xr,64))return;let qn=ct(Se.initializer,Pe,Pt);if(cp(xr,xr.parent)&&$e(Rt)){let mr=t.cloneNode(Rt);qn?(ff(qn)&&bM(qn.expression)&&vO(qn.expression.left,"___runInitializers")&&UA(qn.expression.right)&&Df(qn.expression.right.expression)&&(qn=qn.expression.left),qn=t.inlineExpressions([qn,mr])):qn=mr,xn(Rt,3168),Wo(mr,xr.name),xn(mr,3072)}else qn??(qn=t.createVoidZero());if(Ke||es(Rt)){let mr=d2(t,oe,Rt,Rt);return qg(mr,1024),t.createAssignment(mr,qn)}else{let mr=Go(Rt)?Rt.expression:$e(Rt)?t.createStringLiteral(Zi(Rt.escapedText)):Rt,zn=t.createPropertyDescriptor({value:qn,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(oe,mr,zn)}}function Yr(){re&1||(re|=1,e.enableSubstitution(80),ue=[])}function gn(){re&2||(re|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function Pr(Se,oe,Ke){if(!F||!Dt(oe))return;let{weakSetName:Rt}=Cr().data;M.assert(Rt,"weakSetName should be set in private identifier environment"),Se.push(t.createExpressionStatement(EEt(t,Ke,Rt)))}function Rn(Se){return Hn(Se)?t.updatePropertyAccessExpression(Se,t.createVoidZero(),Se.name):t.updateElementAccessExpression(Se,t.createVoidZero(),ct(Se.argumentExpression,Pe,Pt))}function Xi(Se,oe){if(Go(Se)){let Ke=iB(Se),Rt=ct(Se.expression,Pe,Pt),xr=km(Rt),qn=Xg(xr);if(!(!!Ke||Tu(xr)&&Ec(xr.left))&&!qn&&oe){let zn=t.getGeneratedNameForNode(Se);return d.hasNodeCheckFlag(Se,32768)?m(zn):i(zn),t.createAssignment(zn,Rt)}return qn||$e(xr)?void 0:Rt}}function us(){le={previous:le,data:void 0}}function Xn(){le=le?.previous}function hi(){return M.assert(le),le.data??(le.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Cr(){return M.assert(le),le.privateEnv??(le.privateEnv=Xge({className:void 0,weakSetName:void 0}))}function nn(){return ce??(ce=[])}function rr(Se,oe,Ke,Rt,xr,qn,mr){Cf(Se)?gs(Se,oe,Ke,Rt,xr,qn,mr):Ds(Se)?zs(Se,oe,Ke,Rt,xr,qn,mr):_l(Se)?pa(Se,oe,Ke,Rt,xr,qn,mr):$p(Se)?Fa(Se,oe,Ke,Rt,xr,qn,mr):dp(Se)&&wa(Se,oe,Ke,Rt,xr,qn,mr)}function zs(Se,oe,Ke,Rt,xr,qn,mr){if(xr){let zn=M.checkDefined(Ke.classThis??Ke.classConstructor,"classConstructor should be set in private identifier environment"),Li=rs(oe);h2(Rt,oe,{kind:"f",isStatic:!0,brandCheckIdentifier:zn,variableName:Li,isValid:qn})}else{let zn=rs(oe);h2(Rt,oe,{kind:"f",isStatic:!1,brandCheckIdentifier:zn,isValid:qn}),nn().push(t.createAssignment(zn,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function pa(Se,oe,Ke,Rt,xr,qn,mr){let zn=rs(oe),Li=xr?M.checkDefined(Ke.classThis??Ke.classConstructor,"classConstructor should be set in private identifier environment"):M.checkDefined(Rt.data.weakSetName,"weakSetName should be set in private identifier environment");h2(Rt,oe,{kind:"m",methodName:zn,brandCheckIdentifier:Li,isStatic:xr,isValid:qn})}function Fa(Se,oe,Ke,Rt,xr,qn,mr){let zn=rs(oe,"_get"),Li=xr?M.checkDefined(Ke.classThis??Ke.classConstructor,"classConstructor should be set in private identifier environment"):M.checkDefined(Rt.data.weakSetName,"weakSetName should be set in private identifier environment");mr?.kind==="a"&&mr.isStatic===xr&&!mr.getterName?mr.getterName=zn:h2(Rt,oe,{kind:"a",getterName:zn,setterName:void 0,brandCheckIdentifier:Li,isStatic:xr,isValid:qn})}function wa(Se,oe,Ke,Rt,xr,qn,mr){let zn=rs(oe,"_set"),Li=xr?M.checkDefined(Ke.classThis??Ke.classConstructor,"classConstructor should be set in private identifier environment"):M.checkDefined(Rt.data.weakSetName,"weakSetName should be set in private identifier environment");mr?.kind==="a"&&mr.isStatic===xr&&!mr.setterName?mr.setterName=zn:h2(Rt,oe,{kind:"a",getterName:void 0,setterName:zn,brandCheckIdentifier:Li,isStatic:xr,isValid:qn})}function gs(Se,oe,Ke,Rt,xr,qn,mr){let zn=rs(oe,"_get"),Li=rs(oe,"_set"),Pi=xr?M.checkDefined(Ke.classThis??Ke.classConstructor,"classConstructor should be set in private identifier environment"):M.checkDefined(Rt.data.weakSetName,"weakSetName should be set in private identifier environment");h2(Rt,oe,{kind:"a",getterName:zn,setterName:Li,brandCheckIdentifier:Pi,isStatic:xr,isValid:qn})}function oo(Se,oe,Ke){let Rt=hi(),xr=Cr(),qn=jK(xr,oe),mr=Jl(Se),zn=!xEt(oe)&&qn===void 0;Ke(Se,oe,Rt,xr,mr,zn,qn)}function vc(Se,oe,Ke){let{className:Rt}=Cr().data,xr=Rt?{prefix:"_",node:Rt,suffix:"_"}:"_",qn=typeof Se=="object"?t.getGeneratedNameForNode(Se,24,xr,Ke):typeof Se=="string"?t.createUniqueName(Se,16,xr,Ke):t.createTempVariable(void 0,!0,xr,Ke);return d.hasNodeCheckFlag(oe,32768)?m(qn):i(qn),qn}function rs(Se,oe){let Ke=Aw(Se);return vc(Ke?.substring(1)??Se,Se,oe)}function Wi(Se){let oe=Qge(le,Se);return oe?.kind==="untransformed"?void 0:oe}function xu(Se){let oe=t.getGeneratedNameForNode(Se),Ke=Wi(Se.name);if(!Ke)return jr(Se,Pe,e);let Rt=Se.expression;return(_R(Se)||kf(Se)||!xE(Se.expression))&&(Rt=t.createTempVariable(i,!0),nn().push(t.createBinaryExpression(Rt,64,ct(Se.expression,Pe,Pt)))),t.createAssignmentTargetWrapper(oe,nr(Ke,Rt,oe,64))}function Ac(Se){if(ko(Se)||Ku(Se))return pr(Se);if(LP(Se))return xu(Se);if(q&&xe&&kf(Se)&&e6(xe)&&le?.data){let{classConstructor:oe,superClassReference:Ke,facts:Rt}=le.data;if(Rt&1)return Rn(Se);if(oe&&Ke){let xr=cc(Se)?ct(Se.argumentExpression,Pe,Pt):$e(Se.name)?t.createStringLiteralFromNode(Se.name):void 0;if(xr){let qn=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(qn,t.createReflectSetCall(Ke,xr,qn,oe))}}}return jr(Se,Pe,e)}function D_(Se){if(up(Se,it)&&(Se=gp(e,Se)),Tu(Se,!0)){let oe=Ac(Se.left),Ke=ct(Se.right,Pe,Pt);return t.updateBinaryExpression(Se,oe,Se.operatorToken,Ke)}return Ac(Se)}function el(Se){if(Af(Se.expression)){let oe=Ac(Se.expression);return t.updateSpreadElement(Se,oe)}return jr(Se,Pe,e)}function Zu(Se){if(G3(Se)){if(kd(Se))return el(Se);if(!du(Se))return D_(Se)}return jr(Se,Pe,e)}function Bo(Se){let oe=ct(Se.name,Pe,Ol);if(Tu(Se.initializer,!0)){let Ke=D_(Se.initializer);return t.updatePropertyAssignment(Se,oe,Ke)}if(Af(Se.initializer)){let Ke=Ac(Se.initializer);return t.updatePropertyAssignment(Se,oe,Ke)}return jr(Se,Pe,e)}function Sc(Se){return up(Se,it)&&(Se=gp(e,Se)),jr(Se,Pe,e)}function ja(Se){if(Af(Se.expression)){let oe=Ac(Se.expression);return t.updateSpreadAssignment(Se,oe)}return jr(Se,Pe,e)}function ga(Se){return M.assertNode(Se,W3),Ly(Se)?ja(Se):m_(Se)?Sc(Se):ql(Se)?Bo(Se):jr(Se,Pe,e)}function pr(Se){return Ku(Se)?t.updateArrayLiteralExpression(Se,Qr(Se.elements,Zu,Pt)):t.updateObjectLiteralExpression(Se,Qr(Se.properties,ga,d0))}function Jc(Se,oe,Ke){let Rt=Bc(oe),xr=me.get(Rt);if(xr){let qn=le,mr=he;le=xr,he=te,te=!$c(Rt)||!(Pm(Rt)&32),pe(Se,oe,Ke),te=he,he=mr,le=qn;return}switch(oe.kind){case 218:if(fc(Rt)||Ko(oe)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let qn=le,mr=he;le=void 0,he=te,te=!1,pe(Se,oe,Ke),te=he,he=mr,le=qn;return}case 167:{let qn=le,mr=te;le=le?.previous,te=he,pe(Se,oe,Ke),te=mr,le=qn;return}}pe(Se,oe,Ke)}function W_(Se,oe){return oe=W(Se,oe),Se===1?G_(oe):oe}function G_(Se){switch(Se.kind){case 80:return dc(Se);case 110:return Wf(Se)}return Se}function Wf(Se){if(re&2&&le?.data&&!de.has(Se)){let{facts:oe,classConstructor:Ke,classThis:Rt}=le.data,xr=te?Rt??Ke:Ke;if(xr)return At(Gn(t.cloneNode(xr),Se),Se);if(oe&1&&D)return t.createParenthesizedExpression(t.createVoidZero())}return Se}function dc(Se){return tl(Se)||Se}function tl(Se){if(re&1&&d.hasNodeCheckFlag(Se,536870912)){let oe=d.getReferencedValueDeclaration(Se);if(oe){let Ke=ue[oe.id];if(Ke){let Rt=t.cloneNode(Ke);return Wo(Rt,Se),eu(Rt,Se),Rt}}}}}function TEt(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}function bEt(e,t,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,n||e.createVoidZero()])}function EEt(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}function xEt(e){return!zx(e)&&e.escapedText==="#constructor"}function CEt(e){return es(e.left)&&e.operatorToken.kind===103}function AEt(e){return Ds(e)&&Jl(e)}function e6(e){return $c(e)||AEt(e)}function _he(e){let{factory:t,hoistVariableDeclaration:n}=e,i=e.getEmitResolver(),s=e.getCompilerOptions(),a=Qo(s),u=q_(s,"strictNullChecks"),m,d;return{serializeTypeNode:(ce,ne)=>S(ce,L,ne),serializeTypeOfNode:(ce,ne,le)=>S(ce,x,ne,le),serializeParameterTypesOfNode:(ce,ne,le)=>S(ce,D,ne,le),serializeReturnTypeOfNode:(ce,ne)=>S(ce,R,ne)};function S(ce,ne,le,me){let de=m,Ae=d;m=ce.currentLexicalScope,d=ce.currentNameScope;let xe=me===void 0?ne(le):ne(le,me);return m=de,d=Ae,xe}function E(ce,ne){let le=W1(ne.members,ce);return le.setAccessor&&Dfe(le.setAccessor)||le.getAccessor&&_p(le.getAccessor)}function x(ce,ne){switch(ce.kind){case 172:case 169:return L(ce.type);case 178:case 177:return L(E(ce,ne));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function D(ce,ne){let le=vi(ce)?Py(ce):Us(ce)&&Kd(ce.body)?ce:void 0,me=[];if(le){let de=I(le,ne),Ae=de.length;for(let xe=0;xede.parent&&dE(de.parent)&&(de.parent.trueType===de||de.parent.falseType===de)))return t.createIdentifier("Object");let le=W(ce.typeName),me=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(me,le),"function"),void 0,me,void 0,t.createIdentifier("Object"));case 1:return pe(ce.typeName);case 2:return t.createVoidZero();case 4:return ue("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return ue("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return M.assertNever(ne)}}function ee(ce,ne){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(ce),t.createStringLiteral("undefined")),ne)}function W(ce){if(ce.kind===80){let me=pe(ce);return ee(me,me)}if(ce.left.kind===80)return ee(pe(ce.left),pe(ce));let ne=W(ce.left),le=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd(ne.left,t.createStrictInequality(t.createAssignment(le,ne.right),t.createVoidZero())),t.createPropertyAccessExpression(le,ce.right))}function pe(ce){switch(ce.kind){case 80:let ne=fa(At(CT.cloneNode(ce),ce),ce.parent);return ne.original=void 0,fa(ne,Ps(m)),ne;case 166:return K(ce)}}function K(ce){return t.createPropertyAccessExpression(pe(ce.left),ce.right)}function re(ce){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(ce),"function"),void 0,t.createIdentifier(ce),void 0,t.createIdentifier("Object"))}function ue(ce,ne){return aCM(Xt)||pu(Xt)?void 0:Xt,xc),Vr=Vg(Qe),fr=Be(Qe),ur=u<2?t.getInternalName(Qe,!1,!0):t.getLocalName(Qe,!1,!0),tn=Qr(Qe.heritageClauses,x,mp),Mi=Qr(Qe.members,x,_u),br=[];({members:Mi,decorationStatements:br}=F(Qe,Mi));let Di=u>=9&&!!fr&&Dt(Mi,Xt=>Ds(Xt)&&_i(Xt,256)||$c(Xt));Di&&(Mi=At(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(fr,t.createThis()))])),...Mi]),Mi));let As=t.createClassExpression(Ar,yt&&Ec(yt)?void 0:yt,void 0,tn,Mi);Gn(As,Qe),At(As,Vr);let os=fr&&!Di?t.createAssignment(fr,As):As,Ri=t.createVariableDeclaration(ur,void 0,void 0,os);Gn(Ri,Qe);let $r=t.createVariableDeclarationList([Ri],1),Qs=t.createVariableStatement(void 0,$r);Gn(Qs,Qe),At(Qs,Vr),eu(Qs,Qe);let He=[Qs];if(On(He,br),he(He,Qe),ir)if(Tr){let Xt=t.createExportDefault(ur);He.push(Xt)}else{let Xt=t.createExternalModuleExport(t.getDeclarationName(Qe));He.push(Xt)}return He}function q(Qe){return t.updateClassExpression(Qe,Qr(Qe.modifiers,E,Do),Qe.name,void 0,Qr(Qe.heritageClauses,x,mp),Qr(Qe.members,x,_u))}function ee(Qe){return t.updateConstructorDeclaration(Qe,Qr(Qe.modifiers,E,Do),Qr(Qe.parameters,x,is),ct(Qe.body,x,Js))}function W(Qe,yt){return Qe!==yt&&(eu(Qe,yt),Wo(Qe,Vg(yt))),Qe}function pe(Qe){return W(t.updateMethodDeclaration(Qe,Qr(Qe.modifiers,E,Do),Qe.asteriskToken,M.checkDefined(ct(Qe.name,x,Ol)),void 0,void 0,Qr(Qe.parameters,x,is),void 0,ct(Qe.body,x,Js)),Qe)}function K(Qe){return W(t.updateGetAccessorDeclaration(Qe,Qr(Qe.modifiers,E,Do),M.checkDefined(ct(Qe.name,x,Ol)),Qr(Qe.parameters,x,is),void 0,ct(Qe.body,x,Js)),Qe)}function re(Qe){return W(t.updateSetAccessorDeclaration(Qe,Qr(Qe.modifiers,E,Do),M.checkDefined(ct(Qe.name,x,Ol)),Qr(Qe.parameters,x,is),ct(Qe.body,x,Js)),Qe)}function ue(Qe){if(!(Qe.flags&33554432||_i(Qe,128)))return W(t.updatePropertyDeclaration(Qe,Qr(Qe.modifiers,E,Do),M.checkDefined(ct(Qe.name,x,Ol)),void 0,void 0,ct(Qe.initializer,x,Pt)),Qe)}function ce(Qe){let yt=t.updateParameterDeclaration(Qe,Eme(t,Qe.modifiers),Qe.dotDotDotToken,M.checkDefined(ct(Qe.name,x,Wx)),void 0,void 0,ct(Qe.initializer,x,Pt));return yt!==Qe&&(eu(yt,Qe),At(yt,Vg(Qe)),Wo(yt,Vg(Qe)),xn(yt.name,64)),yt}function ne(Qe){return vO(Qe.expression,"___metadata")}function le(Qe){if(!Qe)return;let{false:yt,true:ir}=VW(Qe.decorators,ne),Tr=[];return On(Tr,kr(yt,Ve)),On(Tr,To(Qe.parameters,Pe)),On(Tr,kr(ir,Ve)),Tr}function me(Qe,yt,ir){On(Qe,kr(xe(yt,ir),Tr=>t.createExpressionStatement(Tr)))}function de(Qe,yt,ir){return dR(!0,Qe,ir)&&yt===co(Qe)}function Ae(Qe,yt){return ti(Qe.members,ir=>de(ir,yt,Qe))}function xe(Qe,yt){let ir=Ae(Qe,yt),Tr;for(let Ar of ir)Tr=Ut(Tr,te(Qe,Ar));return Tr}function te(Qe,yt){let ir=BB(yt,Qe,!0),Tr=le(ir);if(!Tr)return;let Ar=ze(Qe,yt),Vr=ke(yt,!_i(yt,128)),fr=Ds(yt)&&!Bg(yt)?t.createVoidZero():t.createNull(),ur=n().createDecorateHelper(Tr,Ar,Vr,fr);return xn(ur,3072),Wo(ur,Vg(yt)),ur}function he(Qe,yt){let ir=Te(yt);ir&&Qe.push(Gn(t.createExpressionStatement(ir),yt))}function Te(Qe){let yt=FK(Qe),ir=le(yt);if(!ir)return;let Tr=d&&d[mf(Qe)],Ar=u<2?t.getInternalName(Qe,!1,!0):t.getDeclarationName(Qe,!1,!0),Vr=n().createDecorateHelper(ir,Ar),fr=t.createAssignment(Ar,Tr?t.createAssignment(Tr,Vr):Vr);return xn(fr,3072),Wo(fr,Vg(Qe)),fr}function Ve(Qe){return M.checkDefined(ct(Qe.expression,x,Pt))}function Pe(Qe,yt){let ir;if(Qe){ir=[];for(let Tr of Qe){let Ar=n().createParamHelper(Ve(Tr),yt);At(Ar,Tr.expression),xn(Ar,3072),ir.push(Ar)}}return ir}function ke(Qe,yt){let ir=Qe.name;return es(ir)?t.createIdentifier(""):Go(ir)?yt&&!Xg(ir.expression)?t.getGeneratedNameForNode(ir):ir.expression:$e(ir)?t.createStringLiteral(In(ir)):t.cloneNode(ir)}function De(){d||(e.enableSubstitution(80),d=[])}function Be(Qe){if(s.hasNodeCheckFlag(Qe,262144)){De();let yt=t.createUniqueName(Qe.name&&!Ec(Qe.name)?In(Qe.name):"default");return d[mf(Qe)]=yt,i(yt),yt}}function lt(Qe){return t.createPropertyAccessExpression(t.getDeclarationName(Qe),"prototype")}function ze(Qe,yt){return co(yt)?t.getDeclarationName(Qe):lt(Qe)}function tt(Qe,yt){return yt=m(Qe,yt),Qe===1?we(yt):yt}function we(Qe){switch(Qe.kind){case 80:return ft(Qe)}return Qe}function ft(Qe){return gt(Qe)??Qe}function gt(Qe){if(d&&s.hasNodeCheckFlag(Qe,536870912)){let yt=s.getReferencedValueDeclaration(Qe);if(yt){let ir=d[yt.id];if(ir){let Tr=t.cloneNode(ir);return Wo(Tr,Qe),eu(Tr,Qe),Tr}}}}}function phe(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:a}=e,u=Qo(e.getCompilerOptions()),m,d,S,E,x,D;return ag(e,I);function I(Q){m=void 0,D=!1;let Xe=jr(Q,re,e);return x0(Xe,e.readEmitHelpers()),D&&(PA(Xe,32),D=!1),Xe}function R(){switch(d=void 0,S=void 0,E=void 0,m?.kind){case"class":d=m.classInfo;break;case"class-element":d=m.next.classInfo,S=m.classThis,E=m.classSuper;break;case"name":let Q=m.next.next.next;Q?.kind==="class-element"&&(d=Q.next.classInfo,S=Q.classThis,E=Q.classSuper);break}}function L(Q){m={kind:"class",next:m,classInfo:Q,savedPendingExpressions:x},x=void 0,R()}function F(){M.assert(m?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${m?.kind}' instead.`),x=m.savedPendingExpressions,m=m.next,R()}function J(Q){var Xe,z;M.assert(m?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${m?.kind}' instead.`),m={kind:"class-element",next:m},($c(Q)||Ds(Q)&&Jl(Q))&&(m.classThis=(Xe=m.next.classInfo)==null?void 0:Xe.classThis,m.classSuper=(z=m.next.classInfo)==null?void 0:z.classSuper),R()}function $(){var Q;M.assert(m?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${m?.kind}' instead.`),M.assert(((Q=m.next)==null?void 0:Q.kind)==="class","Incorrect value for top.next.kind.",()=>{var Xe;return`Expected top.next.kind to be 'class' but got '${(Xe=m.next)==null?void 0:Xe.kind}' instead.`}),m=m.next,R()}function q(){M.assert(m?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${m?.kind}' instead.`),m={kind:"name",next:m},R()}function ee(){M.assert(m?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${m?.kind}' instead.`),m=m.next,R()}function W(){m?.kind==="other"?(M.assert(!x),m.depth++):(m={kind:"other",next:m,depth:0,savedPendingExpressions:x},x=void 0,R())}function pe(){M.assert(m?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${m?.kind}' instead.`),m.depth>0?(M.assert(!x),m.depth--):(x=m.savedPendingExpressions,m=m.next,R())}function K(Q){return!!(Q.transformFlags&33554432)||!!S&&!!(Q.transformFlags&16384)||!!S&&!!E&&!!(Q.transformFlags&134217728)}function re(Q){if(!K(Q))return Q;switch(Q.kind){case 170:return M.fail("Use `modifierVisitor` instead.");case 263:return Te(Q);case 231:return Ve(Q);case 176:case 172:case 175:return M.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Vr(Q);case 226:return br(Q,!1);case 303:return Qs(Q);case 260:return He(Q);case 208:return Xt(Q);case 277:return ut(Q);case 110:return Qe(Q);case 248:return tn(Q);case 244:return Mi(Q);case 355:return As(Q,!1);case 217:return Tt(Q,!1);case 354:return fe(Q,!1);case 213:return yt(Q);case 215:return ir(Q);case 224:case 225:return Di(Q,!1);case 211:return Tr(Q);case 212:return Ar(Q);case 167:return $r(Q);case 174:case 178:case 177:case 218:case 262:{W();let Xe=jr(Q,ue,e);return pe(),Xe}default:return jr(Q,ue,e)}}function ue(Q){switch(Q.kind){case 170:return;default:return re(Q)}}function ce(Q){switch(Q.kind){case 170:return;default:return Q}}function ne(Q){switch(Q.kind){case 176:return De(Q);case 174:return ze(Q);case 177:return tt(Q);case 178:return we(Q);case 172:return gt(Q);case 175:return ft(Q);default:return re(Q)}}function le(Q){switch(Q.kind){case 224:case 225:return Di(Q,!0);case 226:return br(Q,!0);case 355:return As(Q,!0);case 217:return Tt(Q,!0);default:return re(Q)}}function me(Q){let Xe=Q.name&&$e(Q.name)&&!Ec(Q.name)?In(Q.name):Q.name&&es(Q.name)&&!Ec(Q.name)?In(Q.name).slice(1):Q.name&&jo(Q.name)&&ap(Q.name.text,99)?Q.name.text:vi(Q)?"class":"member";return Tv(Q)&&(Xe=`get_${Xe}`),wg(Q)&&(Xe=`set_${Xe}`),Q.name&&es(Q.name)&&(Xe=`private_${Xe}`),co(Q)&&(Xe=`static_${Xe}`),"_"+Xe}function de(Q,Xe){return t.createUniqueName(`${me(Q)}_${Xe}`,24)}function Ae(Q,Xe){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Q,void 0,void 0,Xe)],1))}function xe(Q){let Xe=t.createUniqueName("_metadata",48),z,Ue,be=!1,Re=!1,Ot=!1,Ht,$t,gr;if($P(!1,Q)){let Wr=Dt(Q.members,Yr=>(B_(Yr)||Cf(Yr))&&Jl(Yr));Ht=t.createUniqueName("_classThis",Wr?24:48)}for(let Wr of Q.members){if(XC(Wr)&&dR(!1,Wr,Q))if(Jl(Wr)){if(!Ue){Ue=t.createUniqueName("_staticExtraInitializers",48);let Yr=n().createRunInitializersHelper(Ht??t.createThis(),Ue);Wo(Yr,Q.name??S0(Q)),$t??($t=[]),$t.push(Yr)}}else{if(!z){z=t.createUniqueName("_instanceExtraInitializers",48);let Yr=n().createRunInitializersHelper(t.createThis(),z);Wo(Yr,Q.name??S0(Q)),gr??(gr=[]),gr.push(Yr)}z??(z=t.createUniqueName("_instanceExtraInitializers",48))}if($c(Wr)?tk(Wr)||(be=!0):Ds(Wr)&&(Jl(Wr)?be||(be=!!Wr.initializer||Gp(Wr)):Re||(Re=!yH(Wr))),(B_(Wr)||Cf(Wr))&&Jl(Wr)&&(Ot=!0),Ue&&z&&be&&Re&&Ot)break}return{class:Q,classThis:Ht,metadataReference:Xe,instanceMethodExtraInitializersName:z,staticMethodExtraInitializersName:Ue,hasStaticInitializers:be,hasNonAmbientInstanceFields:Re,hasStaticPrivateClassElements:Ot,pendingStaticInitializers:$t,pendingInstanceInitializers:gr}}function te(Q){i(),!UK(Q)&&Av(!1,Q)&&(Q=VB(e,Q,t.createStringLiteral("")));let Xe=t.getLocalName(Q,!1,!1,!0),z=xe(Q),Ue=[],be,Re,Ot,Ht,$t=!1,gr=Me(FK(Q));gr&&(z.classDecoratorsName=t.createUniqueName("_classDecorators",48),z.classDescriptorName=t.createUniqueName("_classDescriptor",48),z.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),M.assertIsDefined(z.classThis),Ue.push(Ae(z.classDecoratorsName,t.createArrayLiteralExpression(gr)),Ae(z.classDescriptorName),Ae(z.classExtraInitializersName,t.createArrayLiteralExpression()),Ae(z.classThis)),z.hasStaticPrivateClassElements&&($t=!0,D=!0));let Wr=RR(Q.heritageClauses,96),Yr=Wr&&Aa(Wr.types),gn=Yr&&ct(Yr.expression,re,Pt);if(gn){z.classSuper=t.createUniqueName("_classSuper",48);let Cr=Ml(gn),nn=tu(Cr)&&!Cr.name||ic(Cr)&&!Cr.name||fc(Cr)?t.createComma(t.createNumericLiteral(0),gn):gn;Ue.push(Ae(z.classSuper,nn));let rr=t.updateExpressionWithTypeArguments(Yr,z.classSuper,void 0),zs=t.updateHeritageClause(Wr,[rr]);Ht=t.createNodeArray([zs])}let Pr=z.classThis??t.createThis();L(z),be=Ut(be,Z(z.metadataReference,z.classSuper));let Rn=Q.members;if(Rn=Qr(Rn,Cr=>Vc(Cr)?Cr:ne(Cr),_u),Rn=Qr(Rn,Cr=>Vc(Cr)?ne(Cr):Cr,_u),x){let Cr;for(let nn of x){nn=ct(nn,function zs(pa){if(!(pa.transformFlags&16384))return pa;switch(pa.kind){case 110:return Cr||(Cr=t.createUniqueName("_outerThis",16),Ue.unshift(Ae(Cr,t.createThis()))),Cr;default:return jr(pa,zs,e)}},Pt);let rr=t.createExpressionStatement(nn);be=Ut(be,rr)}x=void 0}if(F(),Dt(z.pendingInstanceInitializers)&&!Py(Q)){let Cr=Pe(Q,z);if(Cr){let nn=Lg(Q),rr=!!(nn&&Ml(nn.expression).kind!==106),zs=[];if(rr){let Fa=t.createSpreadElement(t.createIdentifier("arguments")),wa=t.createCallExpression(t.createSuper(),void 0,[Fa]);zs.push(t.createExpressionStatement(wa))}On(zs,Cr);let pa=t.createBlock(zs,!0);Ot=t.createConstructorDeclaration(void 0,[],pa)}}if(z.staticMethodExtraInitializersName&&Ue.push(Ae(z.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),z.instanceMethodExtraInitializersName&&Ue.push(Ae(z.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),z.memberInfos&&Iu(z.memberInfos,(Cr,nn)=>{co(nn)&&(Ue.push(Ae(Cr.memberDecoratorsName)),Cr.memberInitializersName&&Ue.push(Ae(Cr.memberInitializersName,t.createArrayLiteralExpression())),Cr.memberExtraInitializersName&&Ue.push(Ae(Cr.memberExtraInitializersName,t.createArrayLiteralExpression())),Cr.memberDescriptorName&&Ue.push(Ae(Cr.memberDescriptorName)))}),z.memberInfos&&Iu(z.memberInfos,(Cr,nn)=>{co(nn)||(Ue.push(Ae(Cr.memberDecoratorsName)),Cr.memberInitializersName&&Ue.push(Ae(Cr.memberInitializersName,t.createArrayLiteralExpression())),Cr.memberExtraInitializersName&&Ue.push(Ae(Cr.memberExtraInitializersName,t.createArrayLiteralExpression())),Cr.memberDescriptorName&&Ue.push(Ae(Cr.memberDescriptorName)))}),be=On(be,z.staticNonFieldDecorationStatements),be=On(be,z.nonStaticNonFieldDecorationStatements),be=On(be,z.staticFieldDecorationStatements),be=On(be,z.nonStaticFieldDecorationStatements),z.classDescriptorName&&z.classDecoratorsName&&z.classExtraInitializersName&&z.classThis){be??(be=[]);let Cr=t.createPropertyAssignment("value",Pr),nn=t.createObjectLiteralExpression([Cr]),rr=t.createAssignment(z.classDescriptorName,nn),zs=t.createPropertyAccessExpression(Pr,"name"),pa=n().createESDecorateHelper(t.createNull(),rr,z.classDecoratorsName,{kind:"class",name:zs,metadata:z.metadataReference},t.createNull(),z.classExtraInitializersName),Fa=t.createExpressionStatement(pa);Wo(Fa,S0(Q)),be.push(Fa);let wa=t.createPropertyAccessExpression(z.classDescriptorName,"value"),gs=t.createAssignment(z.classThis,wa),oo=t.createAssignment(Xe,gs);be.push(t.createExpressionStatement(oo))}if(be.push(Ye(Pr,z.metadataReference)),Dt(z.pendingStaticInitializers)){for(let Cr of z.pendingStaticInitializers){let nn=t.createExpressionStatement(Cr);Wo(nn,Rv(Cr)),Re=Ut(Re,nn)}z.pendingStaticInitializers=void 0}if(z.classExtraInitializersName){let Cr=n().createRunInitializersHelper(Pr,z.classExtraInitializersName),nn=t.createExpressionStatement(Cr);Wo(nn,Q.name??S0(Q)),Re=Ut(Re,nn)}be&&Re&&!z.hasStaticInitializers&&(On(be,Re),Re=void 0);let Xi=be&&t.createClassStaticBlockDeclaration(t.createBlock(be,!0));Xi&&$t&&lM(Xi,32);let us=Re&&t.createClassStaticBlockDeclaration(t.createBlock(Re,!0));if(Xi||Ot||us){let Cr=[],nn=Rn.findIndex(tk);Xi?(On(Cr,Rn,0,nn+1),Cr.push(Xi),On(Cr,Rn,nn+1)):On(Cr,Rn),Ot&&Cr.push(Ot),us&&Cr.push(us),Rn=At(t.createNodeArray(Cr),Rn)}let Xn=s(),hi;if(gr){hi=t.createClassExpression(void 0,void 0,void 0,Ht,Rn),z.classThis&&(hi=ihe(t,hi,z.classThis));let Cr=t.createVariableDeclaration(Xe,void 0,void 0,hi),nn=t.createVariableDeclarationList([Cr]),rr=z.classThis?t.createAssignment(Xe,z.classThis):Xe;Ue.push(t.createVariableStatement(void 0,nn),t.createReturnStatement(rr))}else hi=t.createClassExpression(void 0,Q.name,void 0,Ht,Rn),Ue.push(t.createReturnStatement(hi));if($t){PA(hi,32);for(let Cr of hi.members)(B_(Cr)||Cf(Cr))&&Jl(Cr)&&PA(Cr,32)}return Gn(hi,Q),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(Ue,Xn))}function he(Q){return Av(!1,Q)||Nw(!1,Q)}function Te(Q){if(he(Q)){let Xe=[],z=Bc(Q,vi)??Q,Ue=z.name?t.createStringLiteralFromNode(z.name):t.createStringLiteral("default"),be=_i(Q,32),Re=_i(Q,2048);if(Q.name||(Q=VB(e,Q,Ue)),be&&Re){let Ot=te(Q);if(Q.name){let Ht=t.createVariableDeclaration(t.getLocalName(Q),void 0,void 0,Ot);Gn(Ht,Q);let $t=t.createVariableDeclarationList([Ht],1),gr=t.createVariableStatement(void 0,$t);Xe.push(gr);let Wr=t.createExportDefault(t.getDeclarationName(Q));Gn(Wr,Q),eu(Wr,zg(Q)),Wo(Wr,S0(Q)),Xe.push(Wr)}else{let Ht=t.createExportDefault(Ot);Gn(Ht,Q),eu(Ht,zg(Q)),Wo(Ht,S0(Q)),Xe.push(Ht)}}else{M.assertIsDefined(Q.name,"A class declaration that is not a default export must have a name.");let Ot=te(Q),Ht=be?Pr=>RA(Pr)?void 0:ce(Pr):ce,$t=Qr(Q.modifiers,Ht,Do),gr=t.getLocalName(Q,!1,!0),Wr=t.createVariableDeclaration(gr,void 0,void 0,Ot);Gn(Wr,Q);let Yr=t.createVariableDeclarationList([Wr],1),gn=t.createVariableStatement($t,Yr);if(Gn(gn,Q),eu(gn,zg(Q)),Xe.push(gn),be){let Pr=t.createExternalModuleExport(gr);Gn(Pr,Q),Xe.push(Pr)}}return Dh(Xe)}else{let Xe=Qr(Q.modifiers,ce,Do),z=Qr(Q.heritageClauses,re,mp);L(void 0);let Ue=Qr(Q.members,ne,_u);return F(),t.updateClassDeclaration(Q,Xe,Q.name,void 0,z,Ue)}}function Ve(Q){if(he(Q)){let Xe=te(Q);return Gn(Xe,Q),Xe}else{let Xe=Qr(Q.modifiers,ce,Do),z=Qr(Q.heritageClauses,re,mp);L(void 0);let Ue=Qr(Q.members,ne,_u);return F(),t.updateClassExpression(Q,Xe,Q.name,void 0,z,Ue)}}function Pe(Q,Xe){if(Dt(Xe.pendingInstanceInitializers)){let z=[];return z.push(t.createExpressionStatement(t.inlineExpressions(Xe.pendingInstanceInitializers))),Xe.pendingInstanceInitializers=void 0,z}}function ke(Q,Xe,z,Ue,be,Re){let Ot=Ue[be],Ht=Xe[Ot];if(On(Q,Qr(Xe,re,Ji,z,Ot-z)),c2(Ht)){let $t=[];ke($t,Ht.tryBlock.statements,0,Ue,be+1,Re);let gr=t.createNodeArray($t);At(gr,Ht.tryBlock.statements),Q.push(t.updateTryStatement(Ht,t.updateBlock(Ht.tryBlock,$t),ct(Ht.catchClause,re,TE),ct(Ht.finallyBlock,re,Js)))}else On(Q,Qr(Xe,re,Ji,Ot,1)),On(Q,Re);On(Q,Qr(Xe,re,Ji,Ot+1))}function De(Q){J(Q);let Xe=Qr(Q.modifiers,ce,Do),z=Qr(Q.parameters,re,is),Ue;if(Q.body&&d){let be=Pe(d.class,d);if(be){let Re=[],Ot=t.copyPrologue(Q.body.statements,Re,!1,re),Ht=FB(Q.body.statements,Ot);Ht.length>0?ke(Re,Q.body.statements,Ot,Ht,0,be):(On(Re,be),On(Re,Qr(Q.body.statements,re,Ji))),Ue=t.createBlock(Re,!0),Gn(Ue,Q.body),At(Ue,Q.body)}}return Ue??(Ue=ct(Q.body,re,Js)),$(),t.updateConstructorDeclaration(Q,Xe,z,Ue)}function Be(Q,Xe){return Q!==Xe&&(eu(Q,Xe),Wo(Q,S0(Xe))),Q}function lt(Q,Xe,z){let Ue,be,Re,Ot,Ht,$t;if(!Xe){let Yr=Qr(Q.modifiers,ce,Do);return q(),be=Ri(Q.name),ee(),{modifiers:Yr,referencedName:Ue,name:be,initializersName:Re,descriptorName:$t,thisArg:Ht}}let gr=Me(BB(Q,Xe.class,!1)),Wr=Qr(Q.modifiers,ce,Do);if(gr){let Yr=de(Q,"decorators"),gn=t.createArrayLiteralExpression(gr),Pr=t.createAssignment(Yr,gn),Rn={memberDecoratorsName:Yr};Xe.memberInfos??(Xe.memberInfos=new Map),Xe.memberInfos.set(Q,Rn),x??(x=[]),x.push(Pr);let Xi=XC(Q)||Cf(Q)?co(Q)?Xe.staticNonFieldDecorationStatements??(Xe.staticNonFieldDecorationStatements=[]):Xe.nonStaticNonFieldDecorationStatements??(Xe.nonStaticNonFieldDecorationStatements=[]):Ds(Q)&&!Cf(Q)?co(Q)?Xe.staticFieldDecorationStatements??(Xe.staticFieldDecorationStatements=[]):Xe.nonStaticFieldDecorationStatements??(Xe.nonStaticFieldDecorationStatements=[]):M.fail(),us=$p(Q)?"getter":dp(Q)?"setter":_l(Q)?"method":Cf(Q)?"accessor":Ds(Q)?"field":M.fail(),Xn;if($e(Q.name)||es(Q.name))Xn={computed:!1,name:Q.name};else if(Fg(Q.name))Xn={computed:!0,name:t.createStringLiteralFromNode(Q.name)};else{let Cr=Q.name.expression;Fg(Cr)&&!$e(Cr)?Xn={computed:!0,name:t.createStringLiteralFromNode(Cr)}:(q(),{referencedName:Ue,name:be}=os(Q.name),Xn={computed:!0,name:Ue},ee())}let hi={kind:us,name:Xn,static:co(Q),private:es(Q.name),access:{get:Ds(Q)||$p(Q)||_l(Q),set:Ds(Q)||dp(Q)},metadata:Xe.metadataReference};if(XC(Q)){let Cr=co(Q)?Xe.staticMethodExtraInitializersName:Xe.instanceMethodExtraInitializersName;M.assertIsDefined(Cr);let nn;B_(Q)&&z&&(nn=z(Q,Qr(Wr,pa=>ci(pa,SO),Do)),Rn.memberDescriptorName=$t=de(Q,"descriptor"),nn=t.createAssignment($t,nn));let rr=n().createESDecorateHelper(t.createThis(),nn??t.createNull(),Yr,hi,t.createNull(),Cr),zs=t.createExpressionStatement(rr);Wo(zs,S0(Q)),Xi.push(zs)}else if(Ds(Q)){Re=Rn.memberInitializersName??(Rn.memberInitializersName=de(Q,"initializers")),Ot=Rn.memberExtraInitializersName??(Rn.memberExtraInitializersName=de(Q,"extraInitializers")),co(Q)&&(Ht=Xe.classThis);let Cr;B_(Q)&&Bg(Q)&&z&&(Cr=z(Q,void 0),Rn.memberDescriptorName=$t=de(Q,"descriptor"),Cr=t.createAssignment($t,Cr));let nn=n().createESDecorateHelper(Cf(Q)?t.createThis():t.createNull(),Cr??t.createNull(),Yr,hi,Re,Ot),rr=t.createExpressionStatement(nn);Wo(rr,S0(Q)),Xi.push(rr)}}return be===void 0&&(q(),be=Ri(Q.name),ee()),!Dt(Wr)&&(_l(Q)||Ds(Q))&&xn(be,1024),{modifiers:Wr,referencedName:Ue,name:be,initializersName:Re,extraInitializersName:Ot,descriptorName:$t,thisArg:Ht}}function ze(Q){J(Q);let{modifiers:Xe,name:z,descriptorName:Ue}=lt(Q,d,nr);if(Ue)return $(),Be(Vt(Xe,z,Ue),Q);{let be=Qr(Q.parameters,re,is),Re=ct(Q.body,re,Js);return $(),Be(t.updateMethodDeclaration(Q,Xe,Q.asteriskToken,z,void 0,void 0,be,void 0,Re),Q)}}function tt(Q){J(Q);let{modifiers:Xe,name:z,descriptorName:Ue}=lt(Q,d,Oe);if(Ue)return $(),Be(Mt(Xe,z,Ue),Q);{let be=Qr(Q.parameters,re,is),Re=ct(Q.body,re,Js);return $(),Be(t.updateGetAccessorDeclaration(Q,Xe,z,be,void 0,Re),Q)}}function we(Q){J(Q);let{modifiers:Xe,name:z,descriptorName:Ue}=lt(Q,d,Nt);if(Ue)return $(),Be(sr(Xe,z,Ue),Q);{let be=Qr(Q.parameters,re,is),Re=ct(Q.body,re,Js);return $(),Be(t.updateSetAccessorDeclaration(Q,Xe,z,be,Re),Q)}}function ft(Q){J(Q);let Xe;if(tk(Q))Xe=jr(Q,re,e);else if(QO(Q)){let z=S;S=void 0,Xe=jr(Q,re,e),S=z}else if(Q=jr(Q,re,e),Xe=Q,d&&(d.hasStaticInitializers=!0,Dt(d.pendingStaticInitializers))){let z=[];for(let Re of d.pendingStaticInitializers){let Ot=t.createExpressionStatement(Re);Wo(Ot,Rv(Re)),z.push(Ot)}let Ue=t.createBlock(z,!0);Xe=[t.createClassStaticBlockDeclaration(Ue),Xe],d.pendingStaticInitializers=void 0}return $(),Xe}function gt(Q){up(Q,fr)&&(Q=gp(e,Q,ur(Q.initializer))),J(Q),M.assert(!yH(Q),"Not yet implemented.");let{modifiers:Xe,name:z,initializersName:Ue,extraInitializersName:be,descriptorName:Re,thisArg:Ot}=lt(Q,d,Bg(Q)?It:void 0);i();let Ht=ct(Q.initializer,re,Pt);Ue&&(Ht=n().createRunInitializersHelper(Ot??t.createThis(),Ue,Ht??t.createVoidZero())),co(Q)&&d&&Ht&&(d.hasStaticInitializers=!0);let $t=s();if(Dt($t)&&(Ht=t.createImmediatelyInvokedArrowFunction([...$t,t.createReturnStatement(Ht)])),d&&(co(Q)?(Ht=it(d,!0,Ht),be&&(d.pendingStaticInitializers??(d.pendingStaticInitializers=[]),d.pendingStaticInitializers.push(n().createRunInitializersHelper(d.classThis??t.createThis(),be)))):(Ht=it(d,!1,Ht),be&&(d.pendingInstanceInitializers??(d.pendingInstanceInitializers=[]),d.pendingInstanceInitializers.push(n().createRunInitializersHelper(t.createThis(),be))))),$(),Bg(Q)&&Re){let gr=zg(Q),Wr=Rv(Q),Yr=Q.name,gn=Yr,Pr=Yr;if(Go(Yr)&&!Xg(Yr.expression)){let hi=iB(Yr);if(hi)gn=t.updateComputedPropertyName(Yr,ct(Yr.expression,re,Pt)),Pr=t.updateComputedPropertyName(Yr,hi.left);else{let Cr=t.createTempVariable(a);Wo(Cr,Yr.expression);let nn=ct(Yr.expression,re,Pt),rr=t.createAssignment(Cr,nn);Wo(rr,Yr.expression),gn=t.updateComputedPropertyName(Yr,rr),Pr=t.updateComputedPropertyName(Yr,Cr)}}let Rn=Qr(Xe,hi=>hi.kind!==129?hi:void 0,Do),Xi=MY(t,Q,Rn,Ht);Gn(Xi,Q),xn(Xi,3072),Wo(Xi,Wr),Wo(Xi.name,Q.name);let us=Mt(Rn,gn,Re);Gn(us,Q),eu(us,gr),Wo(us,Wr);let Xn=sr(Rn,Pr,Re);return Gn(Xn,Q),xn(Xn,3072),Wo(Xn,Wr),[Xi,us,Xn]}return Be(t.updatePropertyDeclaration(Q,Xe,z,void 0,void 0,Ht),Q)}function Qe(Q){return S??Q}function yt(Q){if(kf(Q.expression)&&S){let Xe=ct(Q.expression,re,Pt),z=Qr(Q.arguments,re,Pt),Ue=t.createFunctionCallCall(Xe,S,z);return Gn(Ue,Q),At(Ue,Q),Ue}return jr(Q,re,e)}function ir(Q){if(kf(Q.tag)&&S){let Xe=ct(Q.tag,re,Pt),z=t.createFunctionBindCall(Xe,S,[]);Gn(z,Q),At(z,Q);let Ue=ct(Q.template,re,QC);return t.updateTaggedTemplateExpression(Q,z,void 0,Ue)}return jr(Q,re,e)}function Tr(Q){if(kf(Q)&&$e(Q.name)&&S&&E){let Xe=t.createStringLiteralFromNode(Q.name),z=t.createReflectGetCall(E,Xe,S);return Gn(z,Q.expression),At(z,Q.expression),z}return jr(Q,re,e)}function Ar(Q){if(kf(Q)&&S&&E){let Xe=ct(Q.argumentExpression,re,Pt),z=t.createReflectGetCall(E,Xe,S);return Gn(z,Q.expression),At(z,Q.expression),z}return jr(Q,re,e)}function Vr(Q){up(Q,fr)&&(Q=gp(e,Q,ur(Q.initializer)));let Xe=t.updateParameterDeclaration(Q,void 0,Q.dotDotDotToken,ct(Q.name,re,Wx),void 0,void 0,ct(Q.initializer,re,Pt));return Xe!==Q&&(eu(Xe,Q),At(Xe,Vg(Q)),Wo(Xe,Vg(Q)),xn(Xe.name,64)),Xe}function fr(Q){return tu(Q)&&!Q.name&&he(Q)}function ur(Q){let Xe=Ml(Q);return tu(Xe)&&!Xe.name&&!Av(!1,Xe)}function tn(Q){return t.updateForStatement(Q,ct(Q.initializer,le,Td),ct(Q.condition,re,Pt),ct(Q.incrementor,le,Pt),df(Q.statement,re,e))}function Mi(Q){return jr(Q,le,e)}function br(Q,Xe){if(Iv(Q)){let z=ia(Q.left),Ue=ct(Q.right,re,Pt);return t.updateBinaryExpression(Q,z,Q.operatorToken,Ue)}if(Tu(Q)){if(up(Q,fr))return Q=gp(e,Q,ur(Q.right)),jr(Q,re,e);if(kf(Q.left)&&S&&E){let z=cc(Q.left)?ct(Q.left.argumentExpression,re,Pt):$e(Q.left.name)?t.createStringLiteralFromNode(Q.left.name):void 0;if(z){let Ue=ct(Q.right,re,Pt);if(YO(Q.operatorToken.kind)){let Re=z;Xg(z)||(Re=t.createTempVariable(a),z=t.createAssignment(Re,z));let Ot=t.createReflectGetCall(E,Re,S);Gn(Ot,Q.left),At(Ot,Q.left),Ue=t.createBinaryExpression(Ot,KO(Q.operatorToken.kind),Ue),At(Ue,Q)}let be=Xe?void 0:t.createTempVariable(a);return be&&(Ue=t.createAssignment(be,Ue),At(be,Q)),Ue=t.createReflectSetCall(E,z,Ue,S),Gn(Ue,Q),At(Ue,Q),be&&(Ue=t.createComma(Ue,be),At(Ue,Q)),Ue}}}if(Q.operatorToken.kind===28){let z=ct(Q.left,le,Pt),Ue=ct(Q.right,Xe?le:re,Pt);return t.updateBinaryExpression(Q,z,Q.operatorToken,Ue)}return jr(Q,re,e)}function Di(Q,Xe){if(Q.operator===46||Q.operator===47){let z=ba(Q.operand);if(kf(z)&&S&&E){let Ue=cc(z)?ct(z.argumentExpression,re,Pt):$e(z.name)?t.createStringLiteralFromNode(z.name):void 0;if(Ue){let be=Ue;Xg(Ue)||(be=t.createTempVariable(a),Ue=t.createAssignment(be,Ue));let Re=t.createReflectGetCall(E,be,S);Gn(Re,Q),At(Re,Q);let Ot=Xe?void 0:t.createTempVariable(a);return Re=Xj(t,Q,Re,a,Ot),Re=t.createReflectSetCall(E,Ue,Re,S),Gn(Re,Q),At(Re,Q),Ot&&(Re=t.createComma(Re,Ot),At(Re,Q)),Re}}}return jr(Q,re,e)}function As(Q,Xe){let z=Xe?qM(Q.elements,le):qM(Q.elements,re,le);return t.updateCommaListExpression(Q,z)}function os(Q){if(Fg(Q)||es(Q)){let Re=t.createStringLiteralFromNode(Q),Ot=ct(Q,re,Ol);return{referencedName:Re,name:Ot}}if(Fg(Q.expression)&&!$e(Q.expression)){let Re=t.createStringLiteralFromNode(Q.expression),Ot=ct(Q,re,Ol);return{referencedName:Re,name:Ot}}let Xe=t.getGeneratedNameForNode(Q);a(Xe);let z=n().createPropKeyHelper(ct(Q.expression,re,Pt)),Ue=t.createAssignment(Xe,z),be=t.updateComputedPropertyName(Q,Ce(Ue));return{referencedName:Xe,name:be}}function Ri(Q){return Go(Q)?$r(Q):ct(Q,re,Ol)}function $r(Q){let Xe=ct(Q.expression,re,Pt);return Xg(Xe)||(Xe=Ce(Xe)),t.updateComputedPropertyName(Q,Xe)}function Qs(Q){return up(Q,fr)&&(Q=gp(e,Q,ur(Q.initializer))),jr(Q,re,e)}function He(Q){return up(Q,fr)&&(Q=gp(e,Q,ur(Q.initializer))),jr(Q,re,e)}function Xt(Q){return up(Q,fr)&&(Q=gp(e,Q,ur(Q.initializer))),jr(Q,re,e)}function qr(Q){if(ko(Q)||Ku(Q))return ia(Q);if(kf(Q)&&S&&E){let Xe=cc(Q)?ct(Q.argumentExpression,re,Pt):$e(Q.name)?t.createStringLiteralFromNode(Q.name):void 0;if(Xe){let z=t.createTempVariable(void 0),Ue=t.createAssignmentTargetWrapper(z,t.createReflectSetCall(E,Xe,z,S));return Gn(Ue,Q),At(Ue,Q),Ue}}return jr(Q,re,e)}function Pn(Q){if(Tu(Q,!0)){up(Q,fr)&&(Q=gp(e,Q,ur(Q.right)));let Xe=qr(Q.left),z=ct(Q.right,re,Pt);return t.updateBinaryExpression(Q,Xe,Q.operatorToken,z)}else return qr(Q)}function Ti(Q){if(Af(Q.expression)){let Xe=qr(Q.expression);return t.updateSpreadElement(Q,Xe)}return jr(Q,re,e)}function ki(Q){return M.assertNode(Q,G3),kd(Q)?Ti(Q):du(Q)?jr(Q,re,e):Pn(Q)}function Vi(Q){let Xe=ct(Q.name,re,Ol);if(Tu(Q.initializer,!0)){let z=Pn(Q.initializer);return t.updatePropertyAssignment(Q,Xe,z)}if(Af(Q.initializer)){let z=qr(Q.initializer);return t.updatePropertyAssignment(Q,Xe,z)}return jr(Q,re,e)}function uo(Q){return up(Q,fr)&&(Q=gp(e,Q,ur(Q.objectAssignmentInitializer))),jr(Q,re,e)}function Ys(Q){if(Af(Q.expression)){let Xe=qr(Q.expression);return t.updateSpreadAssignment(Q,Xe)}return jr(Q,re,e)}function Sr(Q){return M.assertNode(Q,W3),Ly(Q)?Ys(Q):m_(Q)?uo(Q):ql(Q)?Vi(Q):jr(Q,re,e)}function ia(Q){if(Ku(Q)){let Xe=Qr(Q.elements,ki,Pt);return t.updateArrayLiteralExpression(Q,Xe)}else{let Xe=Qr(Q.properties,Sr,d0);return t.updateObjectLiteralExpression(Q,Xe)}}function ut(Q){return up(Q,fr)&&(Q=gp(e,Q,ur(Q.expression))),jr(Q,re,e)}function Tt(Q,Xe){let z=Xe?le:re,Ue=ct(Q.expression,z,Pt);return t.updateParenthesizedExpression(Q,Ue)}function fe(Q,Xe){let z=Xe?le:re,Ue=ct(Q.expression,z,Pt);return t.updatePartiallyEmittedExpression(Q,Ue)}function St(Q,Xe){return Dt(Q)&&(Xe?ff(Xe)?(Q.push(Xe.expression),Xe=t.updateParenthesizedExpression(Xe,t.inlineExpressions(Q))):(Q.push(Xe),Xe=t.inlineExpressions(Q)):Xe=t.inlineExpressions(Q)),Xe}function Ce(Q){let Xe=St(x,Q);return M.assertIsDefined(Xe),Xe!==Q&&(x=void 0),Xe}function it(Q,Xe,z){let Ue=St(Xe?Q.pendingStaticInitializers:Q.pendingInstanceInitializers,z);return Ue!==z&&(Xe?Q.pendingStaticInitializers=void 0:Q.pendingInstanceInitializers=void 0),Ue}function Me(Q){if(!Q)return;let Xe=[];return On(Xe,kr(Q.decorators,rt)),Xe}function rt(Q){let Xe=ct(Q.expression,re,Pt);xn(Xe,3072);let z=Ml(Xe);if(ac(z)){let{target:Ue,thisArg:be}=t.createCallBinding(Xe,a,u,!0);return t.restoreOuterExpressions(Xe,t.createFunctionBindCall(Ue,be,[]))}return Xe}function pt(Q,Xe,z,Ue,be,Re,Ot){let Ht=t.createFunctionExpression(z,Ue,void 0,void 0,Re,void 0,Ot??t.createBlock([]));Gn(Ht,Q),Wo(Ht,S0(Q)),xn(Ht,3072);let $t=be==="get"||be==="set"?be:void 0,gr=t.createStringLiteralFromNode(Xe,void 0),Wr=n().createSetFunctionNameHelper(Ht,gr,$t),Yr=t.createPropertyAssignment(t.createIdentifier(be),Wr);return Gn(Yr,Q),Wo(Yr,S0(Q)),xn(Yr,3072),Yr}function nr(Q,Xe){return t.createObjectLiteralExpression([pt(Q,Q.name,Xe,Q.asteriskToken,"value",Qr(Q.parameters,re,is),ct(Q.body,re,Js))])}function Oe(Q,Xe){return t.createObjectLiteralExpression([pt(Q,Q.name,Xe,void 0,"get",[],ct(Q.body,re,Js))])}function Nt(Q,Xe){return t.createObjectLiteralExpression([pt(Q,Q.name,Xe,void 0,"set",Qr(Q.parameters,re,is),ct(Q.body,re,Js))])}function It(Q,Xe){return t.createObjectLiteralExpression([pt(Q,Q.name,Xe,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(Q.name)))])),pt(Q,Q.name,Xe,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(Q.name)),t.createIdentifier("value")))]))])}function Vt(Q,Xe,z){return Q=Qr(Q,Ue=>MA(Ue)?Ue:void 0,Do),t.createGetAccessorDeclaration(Q,Xe,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(z,t.createIdentifier("value")))]))}function Mt(Q,Xe,z){return Q=Qr(Q,Ue=>MA(Ue)?Ue:void 0,Do),t.createGetAccessorDeclaration(Q,Xe,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(z,t.createIdentifier("get")),t.createThis(),[]))]))}function sr(Q,Xe,z){return Q=Qr(Q,Ue=>MA(Ue)?Ue:void 0,Do),t.createSetAccessorDeclaration(Q,Xe,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(z,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function Z(Q,Xe){let z=t.createVariableDeclaration(Q,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[Xe?bt(Xe):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([z],2))}function Ye(Q,Xe){let z=t.createObjectDefinePropertyCall(Q,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:Xe},!0));return xn(t.createIfStatement(Xe,t.createExpressionStatement(z)),1)}function bt(Q){return t.createBinaryExpression(t.createElementAccessExpression(Q,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}function dhe(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:a}=e,u=e.getEmitResolver(),m=e.getCompilerOptions(),d=Qo(m),S,E=0,x,D,I,R,L=[],F=0,J=e.onEmitNode,$=e.onSubstituteNode;return e.onEmitNode=Mi,e.onSubstituteNode=br,ag(e,q);function q(He){if(He.isDeclarationFile)return He;ee(1,!1),ee(2,!hH(He,m));let Xt=jr(He,ne,e);return x0(Xt,e.readEmitHelpers()),Xt}function ee(He,Xt){F=Xt?F|He:F&~He}function W(He){return(F&He)!==0}function pe(){return!W(1)}function K(){return W(2)}function re(He,Xt,qr){let Pn=He&~F;if(Pn){ee(Pn,!0);let Ti=Xt(qr);return ee(Pn,!1),Ti}return Xt(qr)}function ue(He){return jr(He,ne,e)}function ce(He){switch(He.kind){case 218:case 262:case 174:case 177:case 178:case 176:return He;case 169:case 208:case 260:break;case 80:if(R&&u.isArgumentsLocalBinding(He))return R;break}return jr(He,ce,e)}function ne(He){if(!(He.transformFlags&256))return R?ce(He):He;switch(He.kind){case 134:return;case 223:return he(He);case 174:return re(3,Ve,He);case 262:return re(3,De,He);case 218:return re(3,Be,He);case 219:return re(1,lt,He);case 211:return D&&Hn(He)&&He.expression.kind===108&&D.add(He.name.escapedText),jr(He,ne,e);case 212:return D&&He.expression.kind===108&&(I=!0),jr(He,ne,e);case 177:return re(3,Pe,He);case 178:return re(3,ke,He);case 176:return re(3,Te,He);case 263:case 231:return re(3,ue,He);default:return jr(He,ne,e)}}function le(He){if(gfe(He))switch(He.kind){case 243:return de(He);case 248:return te(He);case 249:return Ae(He);case 250:return xe(He);case 299:return me(He);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return jr(He,le,e);default:return M.assertNever(He,"Unhandled node.")}return ne(He)}function me(He){let Xt=new Set;ze(He.variableDeclaration,Xt);let qr;if(Xt.forEach((Pn,Ti)=>{x.has(Ti)&&(qr||(qr=new Set(x)),qr.delete(Ti))}),qr){let Pn=x;x=qr;let Ti=jr(He,le,e);return x=Pn,Ti}else return jr(He,le,e)}function de(He){if(tt(He.declarationList)){let Xt=we(He.declarationList,!1);return Xt?t.createExpressionStatement(Xt):void 0}return jr(He,ne,e)}function Ae(He){return t.updateForInStatement(He,tt(He.initializer)?we(He.initializer,!0):M.checkDefined(ct(He.initializer,ne,Td)),M.checkDefined(ct(He.expression,ne,Pt)),df(He.statement,le,e))}function xe(He){return t.updateForOfStatement(He,ct(He.awaitModifier,ne,oY),tt(He.initializer)?we(He.initializer,!0):M.checkDefined(ct(He.initializer,ne,Td)),M.checkDefined(ct(He.expression,ne,Pt)),df(He.statement,le,e))}function te(He){let Xt=He.initializer;return t.updateForStatement(He,tt(Xt)?we(Xt,!1):ct(He.initializer,ne,Td),ct(He.condition,ne,Pt),ct(He.incrementor,ne,Pt),df(He.statement,le,e))}function he(He){return pe()?jr(He,ne,e):Gn(At(t.createYieldExpression(void 0,ct(He.expression,ne,Pt)),He),He)}function Te(He){let Xt=R;R=void 0;let qr=t.updateConstructorDeclaration(He,Qr(He.modifiers,ne,Do),Kc(He.parameters,ne,e),ir(He));return R=Xt,qr}function Ve(He){let Xt,qr=Rl(He),Pn=R;R=void 0;let Ti=t.updateMethodDeclaration(He,Qr(He.modifiers,ne,xc),He.asteriskToken,He.name,void 0,void 0,Xt=qr&2?Ar(He):Kc(He.parameters,ne,e),void 0,qr&2?Vr(He,Xt):ir(He));return R=Pn,Ti}function Pe(He){let Xt=R;R=void 0;let qr=t.updateGetAccessorDeclaration(He,Qr(He.modifiers,ne,xc),He.name,Kc(He.parameters,ne,e),void 0,ir(He));return R=Xt,qr}function ke(He){let Xt=R;R=void 0;let qr=t.updateSetAccessorDeclaration(He,Qr(He.modifiers,ne,xc),He.name,Kc(He.parameters,ne,e),ir(He));return R=Xt,qr}function De(He){let Xt,qr=R;R=void 0;let Pn=Rl(He),Ti=t.updateFunctionDeclaration(He,Qr(He.modifiers,ne,xc),He.asteriskToken,He.name,void 0,Xt=Pn&2?Ar(He):Kc(He.parameters,ne,e),void 0,Pn&2?Vr(He,Xt):Zp(He.body,ne,e));return R=qr,Ti}function Be(He){let Xt,qr=R;R=void 0;let Pn=Rl(He),Ti=t.updateFunctionExpression(He,Qr(He.modifiers,ne,Do),He.asteriskToken,He.name,void 0,Xt=Pn&2?Ar(He):Kc(He.parameters,ne,e),void 0,Pn&2?Vr(He,Xt):Zp(He.body,ne,e));return R=qr,Ti}function lt(He){let Xt,qr=Rl(He);return t.updateArrowFunction(He,Qr(He.modifiers,ne,Do),void 0,Xt=qr&2?Ar(He):Kc(He.parameters,ne,e),void 0,He.equalsGreaterThanToken,qr&2?Vr(He,Xt):Zp(He.body,ne,e))}function ze({name:He},Xt){if($e(He))Xt.add(He.escapedText);else for(let qr of He.elements)du(qr)||ze(qr,Xt)}function tt(He){return!!He&&Fu(He)&&!(He.flags&7)&&He.declarations.some(yt)}function we(He,Xt){ft(He);let qr=Xw(He);return qr.length===0?Xt?ct(t.converters.convertToAssignmentElementTarget(He.declarations[0].name),ne,Pt):void 0:t.inlineExpressions(kr(qr,Qe))}function ft(He){Et(He.declarations,gt)}function gt({name:He}){if($e(He))a(He);else for(let Xt of He.elements)du(Xt)||gt(Xt)}function Qe(He){let Xt=Wo(t.createAssignment(t.converters.convertToAssignmentElementTarget(He.name),He.initializer),He);return M.checkDefined(ct(Xt,ne,Pt))}function yt({name:He}){if($e(He))return x.has(He.escapedText);for(let Xt of He.elements)if(!du(Xt)&&yt(Xt))return!0;return!1}function ir(He){M.assertIsDefined(He.body);let Xt=D,qr=I;D=new Set,I=!1;let Pn=Zp(He.body,ne,e),Ti=Bc(He,$a);if(d>=2&&(u.hasNodeCheckFlag(He,256)||u.hasNodeCheckFlag(He,128))&&(Rl(Ti)&3)!==3){if(tn(),D.size){let Vi=JB(t,u,He,D);L[Sa(Vi)]=!0;let uo=Pn.statements.slice();Cy(uo,[Vi]),Pn=t.updateBlock(Pn,uo)}I&&(u.hasNodeCheckFlag(He,256)?DA(Pn,Oj):u.hasNodeCheckFlag(He,128)&&DA(Pn,wj))}return D=Xt,I=qr,Pn}function Tr(){M.assert(R);let He=t.createVariableDeclaration(R,void 0,void 0,t.createIdentifier("arguments")),Xt=t.createVariableStatement(void 0,[He]);return x_(Xt),qg(Xt,2097152),Xt}function Ar(He){if(WM(He.parameters))return Kc(He.parameters,ne,e);let Xt=[];for(let Pn of He.parameters){if(Pn.initializer||Pn.dotDotDotToken){if(He.kind===219){let ki=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Xt.push(ki)}break}let Ti=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Pn.name,8));Xt.push(Ti)}let qr=t.createNodeArray(Xt);return At(qr,He.parameters),qr}function Vr(He,Xt){let qr=WM(He.parameters)?void 0:Kc(He.parameters,ne,e);i();let Ti=Bc(He,Us).type,ki=d<2?ur(Ti):void 0,Vi=He.kind===219,uo=R,Sr=u.hasNodeCheckFlag(He,512)&&!R;Sr&&(R=t.createUniqueName("arguments"));let ia;if(qr)if(Vi){let Me=[];M.assert(Xt.length<=He.parameters.length);for(let rt=0;rt=2&&(u.hasNodeCheckFlag(He,256)||u.hasNodeCheckFlag(He,128));if(rt&&(tn(),D.size)){let nr=JB(t,u,He,D);L[Sa(nr)]=!0,Cy(Me,[nr])}Sr&&Cy(Me,[Tr()]);let pt=t.createBlock(Me,!0);At(pt,He.body),rt&&I&&(u.hasNodeCheckFlag(He,256)?DA(pt,Oj):u.hasNodeCheckFlag(He,128)&&DA(pt,wj)),it=pt}return x=ut,Vi||(D=Tt,I=fe,R=uo),it}function fr(He,Xt){return Js(He)?t.updateBlock(He,Qr(He.statements,le,Ji,Xt)):t.converters.convertToFunctionBlock(M.checkDefined(ct(He,le,U5)))}function ur(He){let Xt=He&&fR(He);if(Xt&&xf(Xt)){let qr=u.getTypeReferenceSerializationKind(Xt);if(qr===1||qr===0)return Xt}}function tn(){S&1||(S|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function Mi(He,Xt,qr){if(S&1&&$r(Xt)){let Pn=(u.hasNodeCheckFlag(Xt,128)?128:0)|(u.hasNodeCheckFlag(Xt,256)?256:0);if(Pn!==E){let Ti=E;E=Pn,J(He,Xt,qr),E=Ti;return}}else if(S&&L[Sa(Xt)]){let Pn=E;E=0,J(He,Xt,qr),E=Pn;return}J(He,Xt,qr)}function br(He,Xt){return Xt=$(He,Xt),He===1&&E?Di(Xt):Xt}function Di(He){switch(He.kind){case 211:return As(He);case 212:return os(He);case 213:return Ri(He)}return He}function As(He){return He.expression.kind===108?At(t.createPropertyAccessExpression(t.createUniqueName("_super",48),He.name),He):He}function os(He){return He.expression.kind===108?Qs(He.argumentExpression,He):He}function Ri(He){let Xt=He.expression;if(kf(Xt)){let qr=Hn(Xt)?As(Xt):os(Xt);return t.createCallExpression(t.createPropertyAccessExpression(qr,"call"),void 0,[t.createThis(),...He.arguments])}return He}function $r(He){let Xt=He.kind;return Xt===263||Xt===176||Xt===174||Xt===177||Xt===178}function Qs(He,Xt){return E&256?At(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[He]),"value"),Xt):At(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[He]),Xt)}}function JB(e,t,n,i){let s=t.hasNodeCheckFlag(n,256),a=[];return i.forEach((u,m)=>{let d=Zi(m),S=[];S.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,xn(e.createPropertyAccessExpression(xn(e.createSuper(),8),d),8)))),s&&S.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment(xn(e.createPropertyAccessExpression(xn(e.createSuper(),8),d),8),e.createIdentifier("v"))))),a.push(e.createPropertyAssignment(d,e.createObjectLiteralExpression(S)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(a,!0)]))],2))}function mhe(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:a}=e,u=e.getEmitResolver(),m=e.getCompilerOptions(),d=Qo(m),S=e.onEmitNode;e.onEmitNode=uo;let E=e.onSubstituteNode;e.onSubstituteNode=Ys;let x=!1,D,I,R,L=0,F=0,J,$,q,ee,W=[];return ag(e,ce);function pe(Ce,it){return F!==(F&~Ce|it)}function K(Ce,it){let Me=F;return F=(F&~Ce|it)&3,Me}function re(Ce){F=Ce}function ue(Ce){$=Ut($,t.createVariableDeclaration(Ce))}function ce(Ce){if(Ce.isDeclarationFile)return Ce;J=Ce;let it=lt(Ce);return x0(it,e.readEmitHelpers()),J=void 0,$=void 0,it}function ne(Ce){return xe(Ce,!1)}function le(Ce){return xe(Ce,!0)}function me(Ce){if(Ce.kind!==134)return Ce}function de(Ce,it,Me,rt){if(pe(Me,rt)){let pt=K(Me,rt),nr=Ce(it);return re(pt),nr}return Ce(it)}function Ae(Ce){return jr(Ce,ne,e)}function xe(Ce,it){if(!(Ce.transformFlags&128))return Ce;switch(Ce.kind){case 223:return te(Ce);case 229:return he(Ce);case 253:return Te(Ce);case 256:return Ve(Ce);case 210:return ke(Ce);case 226:return tt(Ce,it);case 355:return we(Ce,it);case 299:return ft(Ce);case 243:return gt(Ce);case 260:return Qe(Ce);case 246:case 247:case 249:return de(Ae,Ce,0,2);case 250:return Ar(Ce,void 0);case 248:return de(ir,Ce,0,2);case 222:return Tr(Ce);case 176:return de(As,Ce,2,1);case 174:return de($r,Ce,2,1);case 177:return de(os,Ce,2,1);case 178:return de(Ri,Ce,2,1);case 262:return de(Qs,Ce,2,1);case 218:return de(Xt,Ce,2,1);case 219:return de(He,Ce,2,0);case 169:return br(Ce);case 244:return De(Ce);case 217:return Be(Ce,it);case 215:return ze(Ce);case 211:return q&&Hn(Ce)&&Ce.expression.kind===108&&q.add(Ce.name.escapedText),jr(Ce,ne,e);case 212:return q&&Ce.expression.kind===108&&(ee=!0),jr(Ce,ne,e);case 263:case 231:return de(Ae,Ce,2,1);default:return jr(Ce,ne,e)}}function te(Ce){return I&2&&I&1?Gn(At(t.createYieldExpression(void 0,n().createAwaitHelper(ct(Ce.expression,ne,Pt))),Ce),Ce):jr(Ce,ne,e)}function he(Ce){if(I&2&&I&1){if(Ce.asteriskToken){let it=ct(M.checkDefined(Ce.expression),ne,Pt);return Gn(At(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(Ce,Ce.asteriskToken,At(n().createAsyncDelegatorHelper(At(n().createAsyncValuesHelper(it),it)),it)))),Ce),Ce)}return Gn(At(t.createYieldExpression(void 0,ur(Ce.expression?ct(Ce.expression,ne,Pt):t.createVoidZero())),Ce),Ce)}return jr(Ce,ne,e)}function Te(Ce){return I&2&&I&1?t.updateReturnStatement(Ce,ur(Ce.expression?ct(Ce.expression,ne,Pt):t.createVoidZero())):jr(Ce,ne,e)}function Ve(Ce){if(I&2){let it=AH(Ce);return it.kind===250&&it.awaitModifier?Ar(it,Ce):t.restoreEnclosingLabel(ct(it,ne,Ji,t.liftToBlock),Ce)}return jr(Ce,ne,e)}function Pe(Ce){let it,Me=[];for(let rt of Ce)if(rt.kind===305){it&&(Me.push(t.createObjectLiteralExpression(it)),it=void 0);let pt=rt.expression;Me.push(ct(pt,ne,Pt))}else it=Ut(it,rt.kind===303?t.createPropertyAssignment(rt.name,ct(rt.initializer,ne,Pt)):ct(rt,ne,d0));return it&&Me.push(t.createObjectLiteralExpression(it)),Me}function ke(Ce){if(Ce.transformFlags&65536){let it=Pe(Ce.properties);it.length&&it[0].kind!==210&&it.unshift(t.createObjectLiteralExpression());let Me=it[0];if(it.length>1){for(let rt=1;rt=2&&(u.hasNodeCheckFlag(Ce,256)||u.hasNodeCheckFlag(Ce,128));if(Nt){Vi();let Vt=JB(t,u,Ce,q);W[Sa(Vt)]=!0,Cy(pt,[Vt])}pt.push(Oe);let It=t.updateBlock(Ce.body,pt);return Nt&&ee&&(u.hasNodeCheckFlag(Ce,256)?DA(It,Oj):u.hasNodeCheckFlag(Ce,128)&&DA(It,wj)),q=Me,ee=rt,It}function Ti(Ce){i();let it=0,Me=[],rt=ct(Ce.body,ne,U5)??t.createBlock([]);Js(rt)&&(it=t.copyPrologue(rt.statements,Me,!1,ne)),On(Me,ki(void 0,Ce));let pt=s();if(it>0||Dt(Me)||Dt(pt)){let nr=t.converters.convertToFunctionBlock(rt,!0);return Cy(Me,pt),On(Me,nr.statements.slice(it)),t.updateBlock(nr,At(t.createNodeArray(Me),nr.statements))}return rt}function ki(Ce,it){let Me=!1;for(let rt of it.parameters)if(Me){if($s(rt.name)){if(rt.name.elements.length>0){let pt=CE(rt,ne,e,0,t.getGeneratedNameForNode(rt));if(Dt(pt)){let nr=t.createVariableDeclarationList(pt),Oe=t.createVariableStatement(void 0,nr);xn(Oe,2097152),Ce=Ut(Ce,Oe)}}else if(rt.initializer){let pt=t.getGeneratedNameForNode(rt),nr=ct(rt.initializer,ne,Pt),Oe=t.createAssignment(pt,nr),Nt=t.createExpressionStatement(Oe);xn(Nt,2097152),Ce=Ut(Ce,Nt)}}else if(rt.initializer){let pt=t.cloneNode(rt.name);At(pt,rt.name),xn(pt,96);let nr=ct(rt.initializer,ne,Pt);qg(nr,3168);let Oe=t.createAssignment(pt,nr);At(Oe,rt),xn(Oe,3072);let Nt=t.createBlock([t.createExpressionStatement(Oe)]);At(Nt,rt),xn(Nt,3905);let It=t.createTypeCheck(t.cloneNode(rt.name),"undefined"),Vt=t.createIfStatement(It,Nt);x_(Vt),At(Vt,rt),xn(Vt,2101056),Ce=Ut(Ce,Vt)}}else if(rt.transformFlags&65536){Me=!0;let pt=CE(rt,ne,e,1,t.getGeneratedNameForNode(rt),!1,!0);if(Dt(pt)){let nr=t.createVariableDeclarationList(pt),Oe=t.createVariableStatement(void 0,nr);xn(Oe,2097152),Ce=Ut(Ce,Oe)}}return Ce}function Vi(){D&1||(D|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function uo(Ce,it,Me){if(D&1&&fe(it)){let rt=(u.hasNodeCheckFlag(it,128)?128:0)|(u.hasNodeCheckFlag(it,256)?256:0);if(rt!==L){let pt=L;L=rt,S(Ce,it,Me),L=pt;return}}else if(D&&W[Sa(it)]){let rt=L;L=0,S(Ce,it,Me),L=rt;return}S(Ce,it,Me)}function Ys(Ce,it){return it=E(Ce,it),Ce===1&&L?Sr(it):it}function Sr(Ce){switch(Ce.kind){case 211:return ia(Ce);case 212:return ut(Ce);case 213:return Tt(Ce)}return Ce}function ia(Ce){return Ce.expression.kind===108?At(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ce.name),Ce):Ce}function ut(Ce){return Ce.expression.kind===108?St(Ce.argumentExpression,Ce):Ce}function Tt(Ce){let it=Ce.expression;if(kf(it)){let Me=Hn(it)?ia(it):ut(it);return t.createCallExpression(t.createPropertyAccessExpression(Me,"call"),void 0,[t.createThis(),...Ce.arguments])}return Ce}function fe(Ce){let it=Ce.kind;return it===263||it===176||it===174||it===177||it===178}function St(Ce,it){return L&256?At(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[Ce]),"value"),it):At(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[Ce]),it)}}function ghe(e){let t=e.factory;return ag(e,n);function n(a){return a.isDeclarationFile?a:jr(a,i,e)}function i(a){if(!(a.transformFlags&64))return a;switch(a.kind){case 299:return s(a);default:return jr(a,i,e)}}function s(a){return a.variableDeclaration?jr(a,i,e):t.updateCatchClause(a,t.createVariableDeclaration(t.createTempVariable(void 0)),ct(a.block,i,Js))}}function hhe(e){let{factory:t,hoistVariableDeclaration:n}=e;return ag(e,i);function i(R){return R.isDeclarationFile?R:jr(R,s,e)}function s(R){if(!(R.transformFlags&32))return R;switch(R.kind){case 213:{let L=d(R,!1);return M.assertNotNode(L,qA),L}case 211:case 212:if(b_(R)){let L=E(R,!1,!1);return M.assertNotNode(L,qA),L}return jr(R,s,e);case 226:return R.operatorToken.kind===61?D(R):jr(R,s,e);case 220:return I(R);default:return jr(R,s,e)}}function a(R){M.assertNotNode(R,M5);let L=[R];for(;!R.questionDotToken&&!hE(R);)R=ao(km(R.expression),b_),M.assertNotNode(R,M5),L.unshift(R);return{expression:R.expression,chain:L}}function u(R,L,F){let J=S(R.expression,L,F);return qA(J)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(R,J.expression),J.thisArg):t.updateParenthesizedExpression(R,J)}function m(R,L,F){if(b_(R))return E(R,L,F);let J=ct(R.expression,s,Pt);M.assertNotNode(J,qA);let $;return L&&(xE(J)?$=J:($=t.createTempVariable(n),J=t.createAssignment($,J))),J=R.kind===211?t.updatePropertyAccessExpression(R,J,ct(R.name,s,$e)):t.updateElementAccessExpression(R,J,ct(R.argumentExpression,s,Pt)),$?t.createSyntheticReferenceExpression(J,$):J}function d(R,L){if(b_(R))return E(R,L,!1);if(ff(R.expression)&&b_(ba(R.expression))){let F=u(R.expression,!0,!1),J=Qr(R.arguments,s,Pt);return qA(F)?At(t.createFunctionCallCall(F.expression,F.thisArg,J),R):t.updateCallExpression(R,F,void 0,J)}return jr(R,s,e)}function S(R,L,F){switch(R.kind){case 217:return u(R,L,F);case 211:case 212:return m(R,L,F);case 213:return d(R,L);default:return ct(R,s,Pt)}}function E(R,L,F){let{expression:J,chain:$}=a(R),q=S(km(J),qx($[0]),!1),ee=qA(q)?q.thisArg:void 0,W=qA(q)?q.expression:q,pe=t.restoreOuterExpressions(J,W,8);xE(W)||(W=t.createTempVariable(n),pe=t.createAssignment(W,pe));let K=W,re;for(let ce=0;ce<$.length;ce++){let ne=$[ce];switch(ne.kind){case 211:case 212:ce===$.length-1&&L&&(xE(K)?re=K:(re=t.createTempVariable(n),K=t.createAssignment(re,K))),K=ne.kind===211?t.createPropertyAccessExpression(K,ct(ne.name,s,$e)):t.createElementAccessExpression(K,ct(ne.argumentExpression,s,Pt));break;case 213:ce===0&&ee?(Ec(ee)||(ee=t.cloneNode(ee),qg(ee,3072)),K=t.createFunctionCallCall(K,ee.kind===108?t.createThis():ee,Qr(ne.arguments,s,Pt))):K=t.createCallExpression(K,void 0,Qr(ne.arguments,s,Pt));break}Gn(K,ne)}let ue=F?t.createConditionalExpression(x(pe,W,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(K)):t.createConditionalExpression(x(pe,W,!0),void 0,t.createVoidZero(),void 0,K);return At(ue,R),re?t.createSyntheticReferenceExpression(ue,re):ue}function x(R,L,F){return t.createBinaryExpression(t.createBinaryExpression(R,t.createToken(F?37:38),t.createNull()),t.createToken(F?57:56),t.createBinaryExpression(L,t.createToken(F?37:38),t.createVoidZero()))}function D(R){let L=ct(R.left,s,Pt),F=L;return xE(L)||(F=t.createTempVariable(n),L=t.createAssignment(F,L)),At(t.createConditionalExpression(x(L,F),void 0,F,void 0,ct(R.right,s,Pt)),R)}function I(R){return b_(ba(R.expression))?Gn(S(R.expression,!1,!0),R):t.updateDeleteExpression(R,ct(R.expression,s,Pt))}}function yhe(e){let{hoistVariableDeclaration:t,factory:n}=e;return ag(e,i);function i(u){return u.isDeclarationFile?u:jr(u,s,e)}function s(u){return u.transformFlags&16?a$(u)?a(u):jr(u,s,e):u}function a(u){let m=u.operatorToken,d=KO(m.kind),S=ba(ct(u.left,s,Af)),E=S,x=ba(ct(u.right,s,Pt));if(ac(S)){let D=xE(S.expression),I=D?S.expression:n.createTempVariable(t),R=D?S.expression:n.createAssignment(I,S.expression);if(Hn(S))E=n.createPropertyAccessExpression(I,S.name),S=n.createPropertyAccessExpression(R,S.name);else{let L=xE(S.argumentExpression),F=L?S.argumentExpression:n.createTempVariable(t);E=n.createElementAccessExpression(I,F),S=n.createElementAccessExpression(R,L?S.argumentExpression:n.createAssignment(F,S.argumentExpression))}}return n.createBinaryExpression(S,d,n.createParenthesizedExpression(n.createAssignment(E,x)))}}function vhe(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,startLexicalEnvironment:s,endLexicalEnvironment:a}=e,u,m,d,S;return ag(e,E);function E(de){if(de.isDeclarationFile)return de;let Ae=ct(de,x,qi);return x0(Ae,e.readEmitHelpers()),m=void 0,u=void 0,d=void 0,Ae}function x(de){if(!(de.transformFlags&4))return de;switch(de.kind){case 307:return D(de);case 241:return I(de);case 248:return R(de);case 250:return L(de);case 255:return J(de);default:return jr(de,x,e)}}function D(de){let Ae=JK(de.statements);if(Ae){s(),u=new FN,m=[];let xe=oMe(de.statements),te=[];On(te,JM(de.statements,x,Ji,0,xe));let he=xe;for(;hexe&&On(te,Qr(de.statements,x,Ji,xe,he-xe));break}he++}M.assert(heF(te,xe))))],xe,Ae===2)}return jr(de,x,e)}function $(de,Ae,xe,te,he){let Te=[];for(let ke=Ae;ket&&(t=i)}return t}function PEt(e){let t=0;for(let n of e){let i=JK(n.statements);if(i===2)return 2;i>t&&(t=i)}return t}function bhe(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getCompilerOptions(),s,a;return ag(e,x);function u(){if(a.filenameDeclaration)return a.filenameDeclaration.name;let ze=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(s.fileName));return a.filenameDeclaration=ze,a.filenameDeclaration.name}function m(ze){return i.jsx===5?"jsxDEV":ze?"jsxs":"jsx"}function d(ze){let tt=m(ze);return E(tt)}function S(){return E("Fragment")}function E(ze){var tt,we;let ft=ze==="createElement"?a.importSpecifier:oj(a.importSpecifier,i),gt=(we=(tt=a.utilizedImplicitRuntimeImports)==null?void 0:tt.get(ft))==null?void 0:we.get(ze);if(gt)return gt.name;a.utilizedImplicitRuntimeImports||(a.utilizedImplicitRuntimeImports=new Map);let Qe=a.utilizedImplicitRuntimeImports.get(ft);Qe||(Qe=new Map,a.utilizedImplicitRuntimeImports.set(ft,Qe));let yt=t.createUniqueName(`_${ze}`,112),ir=t.createImportSpecifier(!1,t.createIdentifier(ze),yt);return nde(yt,ir),Qe.set(ze,ir),yt}function x(ze){if(ze.isDeclarationFile)return ze;s=ze,a={},a.importSpecifier=sj(i,ze);let tt=jr(ze,D,e);x0(tt,e.readEmitHelpers());let we=tt.statements;if(a.filenameDeclaration&&(we=$x(we.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([a.filenameDeclaration],2)))),a.utilizedImplicitRuntimeImports){for(let[ft,gt]of Os(a.utilizedImplicitRuntimeImports.entries()))if(iu(ze)){let Qe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Os(gt.values()))),t.createStringLiteral(ft),void 0);E0(Qe,!1),we=$x(we.slice(),Qe)}else if(Jf(ze)){let Qe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(Os(gt.values(),yt=>t.createBindingElement(void 0,yt.propertyName,yt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(ft)]))],2));E0(Qe,!1),we=$x(we.slice(),Qe)}}return we!==tt.statements&&(tt=t.updateSourceFile(tt,we)),a=void 0,tt}function D(ze){return ze.transformFlags&2?I(ze):ze}function I(ze){switch(ze.kind){case 284:return $(ze,!1);case 285:return q(ze,!1);case 288:return ee(ze,!1);case 294:return lt(ze);default:return jr(ze,D,e)}}function R(ze){switch(ze.kind){case 12:return he(ze);case 294:return lt(ze);case 284:return $(ze,!0);case 285:return q(ze,!0);case 288:return ee(ze,!0);default:return M.failBadSyntaxKind(ze)}}function L(ze){return ze.properties.some(tt=>ql(tt)&&($e(tt.name)&&In(tt.name)==="__proto__"||jo(tt.name)&&tt.name.text==="__proto__"))}function F(ze){let tt=!1;for(let we of ze.attributes.properties)if(zA(we)&&(!ko(we.expression)||we.expression.properties.some(Ly)))tt=!0;else if(tt&&Yg(we)&&$e(we.name)&&we.name.escapedText==="key")return!0;return!1}function J(ze){return a.importSpecifier===void 0||F(ze)}function $(ze,tt){return(J(ze.openingElement)?ue:K)(ze.openingElement,ze.children,tt,ze)}function q(ze,tt){return(J(ze)?ue:K)(ze,void 0,tt,ze)}function ee(ze,tt){return(a.importSpecifier===void 0?ne:ce)(ze.openingFragment,ze.children,tt,ze)}function W(ze){let tt=pe(ze);return tt&&t.createObjectLiteralExpression([tt])}function pe(ze){let tt=nN(ze);if(kt(tt)===1&&!tt[0].dotDotDotToken){let ft=R(tt[0]);return ft&&t.createPropertyAssignment("children",ft)}let we=Yi(ze,R);return kt(we)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(we)):void 0}function K(ze,tt,we,ft){let gt=De(ze),Qe=tt&&tt.length?pe(tt):void 0,yt=jn(ze.attributes.properties,Ar=>!!Ar.name&&$e(Ar.name)&&Ar.name.escapedText==="key"),ir=yt?ti(ze.attributes.properties,Ar=>Ar!==yt):ze.attributes.properties,Tr=kt(ir)?me(ir,Qe):t.createObjectLiteralExpression(Qe?[Qe]:ve);return re(gt,Tr,yt,tt||ve,we,ft)}function re(ze,tt,we,ft,gt,Qe){var yt;let ir=nN(ft),Tr=kt(ir)>1||!!((yt=ir[0])!=null&&yt.dotDotDotToken),Ar=[ze,tt];if(we&&Ar.push(te(we.initializer)),i.jsx===5){let fr=Bc(s);if(fr&&qi(fr)){we===void 0&&Ar.push(t.createVoidZero()),Ar.push(Tr?t.createTrue():t.createFalse());let ur=Eo(fr,Qe.pos);Ar.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",u()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(ur.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(ur.character+1))])),Ar.push(t.createThis())}}let Vr=At(t.createCallExpression(d(Tr),void 0,Ar),Qe);return gt&&x_(Vr),Vr}function ue(ze,tt,we,ft){let gt=De(ze),Qe=ze.attributes.properties,yt=kt(Qe)?me(Qe):t.createNull(),ir=a.importSpecifier===void 0?xY(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,ze):E("createElement"),Tr=cme(t,ir,gt,yt,Yi(tt,R),ft);return we&&x_(Tr),Tr}function ce(ze,tt,we,ft){let gt;if(tt&&tt.length){let Qe=W(tt);Qe&&(gt=Qe)}return re(S(),gt||t.createObjectLiteralExpression([]),void 0,tt,we,ft)}function ne(ze,tt,we,ft){let gt=lme(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,Yi(tt,R),ze,ft);return we&&x_(gt),gt}function le(ze){return ko(ze.expression)&&!L(ze.expression)?js(ze.expression.properties,tt=>M.checkDefined(ct(tt,D,d0))):t.createSpreadAssignment(M.checkDefined(ct(ze.expression,D,Pt)))}function me(ze,tt){let we=Qo(i);return we&&we>=5?t.createObjectLiteralExpression(de(ze,tt)):Ae(ze,tt)}function de(ze,tt){let we=rf(xP(ze,zA,(ft,gt)=>rf(kr(ft,Qe=>gt?le(Qe):xe(Qe)))));return tt&&we.push(tt),we}function Ae(ze,tt){let we=[],ft=[];for(let Qe of ze){if(zA(Qe)){if(ko(Qe.expression)&&!L(Qe.expression)){for(let yt of Qe.expression.properties){if(Ly(yt)){gt(),we.push(M.checkDefined(ct(yt.expression,D,Pt)));continue}ft.push(M.checkDefined(ct(yt,D)))}continue}gt(),we.push(M.checkDefined(ct(Qe.expression,D,Pt)));continue}ft.push(xe(Qe))}return tt&&ft.push(tt),gt(),we.length&&!ko(we[0])&&we.unshift(t.createObjectLiteralExpression()),Nh(we)||n().createAssignHelper(we);function gt(){ft.length&&(we.push(t.createObjectLiteralExpression(ft)),ft=[])}}function xe(ze){let tt=Be(ze),we=te(ze.initializer);return t.createPropertyAssignment(tt,we)}function te(ze){if(ze===void 0)return t.createTrue();if(ze.kind===11){let tt=ze.singleQuote!==void 0?ze.singleQuote:!T9(ze,s),we=t.createStringLiteral(ke(ze.text)||ze.text,tt);return At(we,ze)}return ze.kind===294?ze.expression===void 0?t.createTrue():M.checkDefined(ct(ze.expression,D,Pt)):My(ze)?$(ze,!1):u2(ze)?q(ze,!1):vE(ze)?ee(ze,!1):M.failBadSyntaxKind(ze)}function he(ze){let tt=Te(ze.text);return tt===void 0?void 0:t.createStringLiteral(tt)}function Te(ze){let tt,we=0,ft=-1;for(let gt=0;gt{if(Qe)return lw(parseInt(Qe,10));if(yt)return lw(parseInt(yt,16));{let Tr=NEt.get(ir);return Tr?lw(Tr):tt}})}function ke(ze){let tt=Pe(ze);return tt===ze?void 0:tt}function De(ze){if(ze.kind===284)return De(ze.openingElement);{let tt=ze.tagName;return $e(tt)&&iN(tt.escapedText)?t.createStringLiteral(In(tt)):ig(tt)?t.createStringLiteral(In(tt.namespace)+":"+In(tt.name)):TM(t,tt)}}function Be(ze){let tt=ze.name;if($e(tt)){let we=In(tt);return/^[A-Za-z_]\w*$/.test(we)?tt:t.createStringLiteral(we)}return t.createStringLiteral(In(tt.namespace)+":"+In(tt.name))}function lt(ze){let tt=ct(ze.expression,D,Pt);return ze.dotDotDotToken?t.createSpreadElement(tt):tt}}var NEt=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}));function Ehe(e){let{factory:t,hoistVariableDeclaration:n}=e;return ag(e,i);function i(d){return d.isDeclarationFile?d:jr(d,s,e)}function s(d){if(!(d.transformFlags&512))return d;switch(d.kind){case 226:return a(d);default:return jr(d,s,e)}}function a(d){switch(d.operatorToken.kind){case 68:return u(d);case 43:return m(d);default:return jr(d,s,e)}}function u(d){let S,E,x=ct(d.left,s,Pt),D=ct(d.right,s,Pt);if(cc(x)){let I=t.createTempVariable(n),R=t.createTempVariable(n);S=At(t.createElementAccessExpression(At(t.createAssignment(I,x.expression),x.expression),At(t.createAssignment(R,x.argumentExpression),x.argumentExpression)),x),E=At(t.createElementAccessExpression(I,R),x)}else if(Hn(x)){let I=t.createTempVariable(n);S=At(t.createPropertyAccessExpression(At(t.createAssignment(I,x.expression),x.expression),x.name),x),E=At(t.createPropertyAccessExpression(I,x.name),x)}else S=x,E=x;return At(t.createAssignment(S,At(t.createGlobalMethodCall("Math","pow",[E,D]),d)),d)}function m(d){let S=ct(d.left,s,Pt),E=ct(d.right,s,Pt);return At(t.createGlobalMethodCall("Math","pow",[S,E]),d)}}function cMe(e,t){return{kind:e,expression:t}}function xhe(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:a,hoistVariableDeclaration:u}=e,m=e.getCompilerOptions(),d=e.getEmitResolver(),S=e.onSubstituteNode,E=e.onEmitNode;e.onEmitNode=sd,e.onSubstituteNode=od;let x,D,I,R;function L(ae){R=Ut(R,t.createVariableDeclaration(ae))}let F,J;return ag(e,$);function $(ae){if(ae.isDeclarationFile)return ae;x=ae,D=ae.text;let vt=me(ae);return x0(vt,e.readEmitHelpers()),x=void 0,D=void 0,R=void 0,I=0,vt}function q(ae,vt){let Kt=I;return I=(I&~ae|vt)&32767,Kt}function ee(ae,vt,Kt){I=(I&~vt|Kt)&-32768|ae}function W(ae){return(I&8192)!==0&&ae.kind===253&&!ae.expression}function pe(ae){return ae.transformFlags&4194304&&(im(ae)||vT(ae)||Hde(ae)||kO(ae)||PO(ae)||TN(ae)||DO(ae)||c2(ae)||TE(ae)||rS(ae)||V1(ae,!1)||Js(ae))}function K(ae){return(ae.transformFlags&1024)!==0||F!==void 0||I&8192&&pe(ae)||V1(ae,!1)&&rs(ae)||(Pm(ae)&1)!==0}function re(ae){return K(ae)?le(ae,!1):ae}function ue(ae){return K(ae)?le(ae,!0):ae}function ce(ae){if(K(ae)){let vt=Bc(ae);if(Ds(vt)&&Jl(vt)){let Kt=q(32670,16449),Zt=le(ae,!1);return ee(Kt,229376,0),Zt}return le(ae,!1)}return ae}function ne(ae){return ae.kind===108?Hf(ae,!0):re(ae)}function le(ae,vt){switch(ae.kind){case 126:return;case 263:return De(ae);case 231:return Be(ae);case 169:return Ys(ae);case 262:return Mt(ae);case 219:return It(ae);case 218:return Vt(ae);case 260:return gr(ae);case 80:return Pe(ae);case 261:return Re(ae);case 255:return de(ae);case 269:return Ae(ae);case 241:return Ye(ae,!1);case 252:case 251:return ke(ae);case 256:return gn(ae);case 246:case 247:return Xi(ae,void 0);case 248:return us(ae,void 0);case 249:return hi(ae,void 0);case 250:return Cr(ae,void 0);case 244:return bt(ae);case 210:return Fa(ae);case 299:return Li(ae);case 304:return Wl(ae);case 167:return Oc(ae);case 209:return gc(ae);case 213:return gu(ae);case 214:return Gl(ae);case 217:return Q(ae,vt);case 226:return Xe(ae,vt);case 355:return z(ae,vt);case 15:case 16:case 17:case 18:return ca(ae);case 11:return pl(ae);case 9:return au(ae);case 215:return Ja(ae);case 228:return Ba(ae);case 229:return mu(ae);case 230:return ea(ae);case 108:return Hf(ae,!1);case 110:return Te(ae);case 236:return _g(ae);case 174:return Io(ae);case 177:case 178:return mc(ae);case 243:return be(ae);case 253:return he(ae);case 222:return Ve(ae);default:return jr(ae,re,e)}}function me(ae){let vt=q(8064,64),Kt=[],Zt=[];i();let Ur=t.copyPrologue(ae.statements,Kt,!1,re);return On(Zt,Qr(ae.statements,re,Ji,Ur)),R&&Zt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(R))),t.mergeLexicalEnvironment(Kt,a()),Ce(Kt,ae),ee(vt,0,0),t.updateSourceFile(ae,At(t.createNodeArray(ds(Kt,Zt)),ae.statements))}function de(ae){if(F!==void 0){let vt=F.allowedNonLabeledJumps;F.allowedNonLabeledJumps|=2;let Kt=jr(ae,re,e);return F.allowedNonLabeledJumps=vt,Kt}return jr(ae,re,e)}function Ae(ae){let vt=q(7104,0),Kt=jr(ae,re,e);return ee(vt,0,0),Kt}function xe(ae){return Gn(t.createReturnStatement(te()),ae)}function te(){return t.createUniqueName("_this",48)}function he(ae){return F?(F.nonLocalJumps|=8,W(ae)&&(ae=xe(ae)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),ae.expression?M.checkDefined(ct(ae.expression,re,Pt)):t.createVoidZero())]))):W(ae)?xe(ae):jr(ae,re,e)}function Te(ae){return I|=65536,I&2&&!(I&16384)&&(I|=131072),F?I&2?(F.containsLexicalThis=!0,ae):F.thisName||(F.thisName=t.createUniqueName("this")):ae}function Ve(ae){return jr(ae,ue,e)}function Pe(ae){return F&&d.isArgumentsLocalBinding(ae)?F.argumentsName||(F.argumentsName=t.createUniqueName("arguments")):ae.flags&256?Gn(At(t.createIdentifier(Zi(ae.escapedText)),ae),ae):ae}function ke(ae){if(F){let vt=ae.kind===252?2:4;if(!(ae.label&&F.labels&&F.labels.get(In(ae.label))||!ae.label&&F.allowedNonLabeledJumps&vt)){let Zt,Ur=ae.label;Ur?ae.kind===252?(Zt=`break-${Ur.escapedText}`,oe(F,!0,In(Ur),Zt)):(Zt=`continue-${Ur.escapedText}`,oe(F,!1,In(Ur),Zt)):ae.kind===252?(F.nonLocalJumps|=2,Zt="break"):(F.nonLocalJumps|=4,Zt="continue");let on=t.createStringLiteral(Zt);if(F.loopOutParameters.length){let Yn=F.loopOutParameters,bi;for(let G=0;G$e(vt.name)&&!vt.initializer)}function yt(ae){if(Kx(ae))return!0;if(!(ae.transformFlags&134217728))return!1;switch(ae.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let vt=ae;return Go(vt.name)?!!qs(vt.name,yt):!1}}return!!qs(ae,yt)}function ir(ae,vt,Kt,Zt){let Ur=!!Kt&&Ml(Kt.expression).kind!==106;if(!ae)return gt(vt,Ur);let on=[],Yn=[];s();let bi=t.copyStandardPrologue(ae.body.statements,on,0);(Zt||yt(ae.body))&&(I|=8192),On(Yn,Qr(ae.body.statements,re,Ji,bi));let G=Ur||I&8192;ia(on,ae),St(on,ae,Zt),Me(on,ae),G?it(on,ae,Vi()):Ce(on,ae),t.mergeLexicalEnvironment(on,a()),G&&!ki(ae.body)&&Yn.push(t.createReturnStatement(te()));let Fe=t.createBlock(At(t.createNodeArray([...on,...Yn]),ae.body.statements),!0);return At(Fe,ae.body),Ti(Fe,ae.body,Zt)}function Tr(ae){return Ec(ae)&&In(ae)==="_this"}function Ar(ae){return Ec(ae)&&In(ae)==="_super"}function Vr(ae){return fl(ae)&&ae.declarationList.declarations.length===1&&fr(ae.declarationList.declarations[0])}function fr(ae){return Ci(ae)&&Tr(ae.name)&&!!ae.initializer}function ur(ae){return Tu(ae,!0)&&Tr(ae.left)}function tn(ae){return to(ae)&&Hn(ae.expression)&&Ar(ae.expression.expression)&&$e(ae.expression.name)&&(In(ae.expression.name)==="call"||In(ae.expression.name)==="apply")&&ae.arguments.length>=1&&ae.arguments[0].kind===110}function Mi(ae){return Dn(ae)&&ae.operatorToken.kind===57&&ae.right.kind===110&&tn(ae.left)}function br(ae){return Dn(ae)&&ae.operatorToken.kind===56&&Dn(ae.left)&&ae.left.operatorToken.kind===38&&Ar(ae.left.left)&&ae.left.right.kind===106&&tn(ae.right)&&In(ae.right.expression.name)==="apply"}function Di(ae){return Dn(ae)&&ae.operatorToken.kind===57&&ae.right.kind===110&&br(ae.left)}function As(ae){return ur(ae)&&Mi(ae.right)}function os(ae){return ur(ae)&&Di(ae.right)}function Ri(ae){return tn(ae)||Mi(ae)||As(ae)||br(ae)||Di(ae)||os(ae)}function $r(ae){for(let vt=0;vt0;Zt--){let Ur=ae.statements[Zt];if(im(Ur)&&Ur.expression&&Tr(Ur.expression)){let on=ae.statements[Zt-1],Yn;if(wu(on)&&As(Ml(on.expression)))Yn=on.expression;else if(Kt&&Vr(on)){let Fe=on.declarationList.declarations[0];Ri(Ml(Fe.initializer))&&(Yn=t.createAssignment(te(),Fe.initializer))}if(!Yn)break;let bi=t.createReturnStatement(Yn);Gn(bi,on),At(bi,on);let G=t.createNodeArray([...ae.statements.slice(0,Zt-1),bi,...ae.statements.slice(Zt+1)]);return At(G,ae.statements),t.updateBlock(ae,G)}}return ae}function He(ae){if(Vr(ae)){if(ae.declarationList.declarations[0].initializer.kind===110)return}else if(ur(ae))return t.createPartiallyEmittedExpression(ae.right,ae);switch(ae.kind){case 219:case 218:case 262:case 176:case 175:return ae;case 177:case 178:case 174:case 172:{let vt=ae;return Go(vt.name)?t.replacePropertyName(vt,jr(vt.name,He,void 0)):ae}}return jr(ae,He,void 0)}function Xt(ae,vt){if(vt.transformFlags&16384||I&65536||I&131072)return ae;for(let Kt of vt.statements)if(Kt.transformFlags&134217728&&!LB(Kt))return ae;return t.updateBlock(ae,Qr(ae.statements,He,Ji))}function qr(ae){if(tn(ae)&&ae.arguments.length===2&&$e(ae.arguments[1])&&In(ae.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Al(),t.createNull()),ae);switch(ae.kind){case 219:case 218:case 262:case 176:case 175:return ae;case 177:case 178:case 174:case 172:{let vt=ae;return Go(vt.name)?t.replacePropertyName(vt,jr(vt.name,qr,void 0)):ae}}return jr(ae,qr,void 0)}function Pn(ae){return t.updateBlock(ae,Qr(ae.statements,qr,Ji))}function Ti(ae,vt,Kt){let Zt=ae;return ae=$r(ae),ae=Qs(ae,vt),ae!==Zt&&(ae=Xt(ae,vt)),Kt&&(ae=Pn(ae)),ae}function ki(ae){if(ae.kind===253)return!0;if(ae.kind===245){let vt=ae;if(vt.elseStatement)return ki(vt.thenStatement)&&ki(vt.elseStatement)}else if(ae.kind===241){let vt=yc(ae.statements);if(vt&&ki(vt))return!0}return!1}function Vi(){return xn(t.createThis(),8)}function uo(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Al(),t.createNull()),t.createFunctionApplyCall(Al(),Vi(),t.createIdentifier("arguments"))),Vi())}function Ys(ae){if(!ae.dotDotDotToken)return $s(ae.name)?Gn(At(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(ae),void 0,void 0,void 0),ae),ae):ae.initializer?Gn(At(t.createParameterDeclaration(void 0,void 0,ae.name,void 0,void 0,void 0),ae),ae):ae}function Sr(ae){return ae.initializer!==void 0||$s(ae.name)}function ia(ae,vt){if(!Dt(vt.parameters,Sr))return!1;let Kt=!1;for(let Zt of vt.parameters){let{name:Ur,initializer:on,dotDotDotToken:Yn}=Zt;Yn||($s(Ur)?Kt=ut(ae,Zt,Ur,on)||Kt:on&&(Tt(ae,Zt,Ur,on),Kt=!0))}return Kt}function ut(ae,vt,Kt,Zt){return Kt.elements.length>0?($x(ae,xn(t.createVariableStatement(void 0,t.createVariableDeclarationList(CE(vt,re,e,0,t.getGeneratedNameForNode(vt)))),2097152)),!0):Zt?($x(ae,xn(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(vt),M.checkDefined(ct(Zt,re,Pt)))),2097152)),!0):!1}function Tt(ae,vt,Kt,Zt){Zt=M.checkDefined(ct(Zt,re,Pt));let Ur=t.createIfStatement(t.createTypeCheck(t.cloneNode(Kt),"undefined"),xn(At(t.createBlock([t.createExpressionStatement(xn(At(t.createAssignment(xn(fa(At(t.cloneNode(Kt),Kt),Kt.parent),96),xn(Zt,96|Ko(Zt)|3072)),vt),3072))]),vt),3905));x_(Ur),At(Ur,vt),xn(Ur,2101056),$x(ae,Ur)}function fe(ae,vt){return!!(ae&&ae.dotDotDotToken&&!vt)}function St(ae,vt,Kt){let Zt=[],Ur=yc(vt.parameters);if(!fe(Ur,Kt))return!1;let on=Ur.name.kind===80?fa(At(t.cloneNode(Ur.name),Ur.name),Ur.name.parent):t.createTempVariable(void 0);xn(on,96);let Yn=Ur.name.kind===80?t.cloneNode(Ur.name):on,bi=vt.parameters.length-1,G=t.createLoopVariable();Zt.push(xn(At(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(on,void 0,void 0,t.createArrayLiteralExpression([]))])),Ur),2097152));let Fe=t.createForStatement(At(t.createVariableDeclarationList([t.createVariableDeclaration(G,void 0,void 0,t.createNumericLiteral(bi))]),Ur),At(t.createLessThan(G,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),Ur),At(t.createPostfixIncrement(G),Ur),t.createBlock([x_(At(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Yn,bi===0?G:t.createSubtract(G,t.createNumericLiteral(bi))),t.createElementAccessExpression(t.createIdentifier("arguments"),G))),Ur))]));return xn(Fe,2097152),x_(Fe),Zt.push(Fe),Ur.name.kind!==80&&Zt.push(xn(At(t.createVariableStatement(void 0,t.createVariableDeclarationList(CE(Ur,re,e,0,Yn))),Ur),2097152)),cH(ae,Zt),!0}function Ce(ae,vt){return I&131072&&vt.kind!==219?(it(ae,vt,t.createThis()),!0):!1}function it(ae,vt,Kt){wd();let Zt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(te(),void 0,void 0,Kt)]));xn(Zt,2100224),Wo(Zt,vt),$x(ae,Zt)}function Me(ae,vt){if(I&32768){let Kt;switch(vt.kind){case 219:return ae;case 174:case 177:case 178:Kt=t.createVoidZero();break;case 176:Kt=t.createPropertyAccessExpression(xn(t.createThis(),8),"constructor");break;case 262:case 218:Kt=t.createConditionalExpression(t.createLogicalAnd(xn(t.createThis(),8),t.createBinaryExpression(xn(t.createThis(),8),104,t.getLocalName(vt))),void 0,t.createPropertyAccessExpression(xn(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return M.failBadSyntaxKind(vt)}let Zt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Kt)]));xn(Zt,2100224),$x(ae,Zt)}return ae}function rt(ae,vt){for(let Kt of vt.members)switch(Kt.kind){case 240:ae.push(pt(Kt));break;case 174:ae.push(nr(rh(vt,Kt),Kt,vt));break;case 177:case 178:let Zt=W1(vt.members,Kt);Kt===Zt.firstAccessor&&ae.push(Oe(rh(vt,Kt),Zt,vt));break;case 176:case 175:break;default:M.failBadSyntaxKind(Kt,x&&x.fileName);break}}function pt(ae){return At(t.createEmptyStatement(),ae)}function nr(ae,vt,Kt){let Zt=zg(vt),Ur=Rv(vt),on=sr(vt,vt,void 0,Kt),Yn=ct(vt.name,re,Ol);M.assert(Yn);let bi;if(!es(Yn)&&XR(e.getCompilerOptions())){let Fe=Go(Yn)?Yn.expression:$e(Yn)?t.createStringLiteral(Zi(Yn.escapedText)):Yn;bi=t.createObjectDefinePropertyCall(ae,Fe,t.createPropertyDescriptor({value:on,enumerable:!1,writable:!0,configurable:!0}))}else{let Fe=d2(t,ae,Yn,vt.name);bi=t.createAssignment(Fe,on)}xn(on,3072),Wo(on,Ur);let G=At(t.createExpressionStatement(bi),vt);return Gn(G,vt),eu(G,Zt),xn(G,96),G}function Oe(ae,vt,Kt){let Zt=t.createExpressionStatement(Nt(ae,vt,Kt,!1));return xn(Zt,3072),Wo(Zt,Rv(vt.firstAccessor)),Zt}function Nt(ae,{firstAccessor:vt,getAccessor:Kt,setAccessor:Zt},Ur,on){let Yn=fa(At(t.cloneNode(ae),ae),ae.parent);xn(Yn,3136),Wo(Yn,vt.name);let bi=ct(vt.name,re,Ol);if(M.assert(bi),es(bi))return M.failBadSyntaxKind(bi,"Encountered unhandled private identifier while transforming ES2015.");let G=AY(t,bi);xn(G,3104),Wo(G,vt.name);let Fe=[];if(Kt){let Zr=sr(Kt,void 0,void 0,Ur);Wo(Zr,Rv(Kt)),xn(Zr,1024);let Fi=t.createPropertyAssignment("get",Zr);eu(Fi,zg(Kt)),Fe.push(Fi)}if(Zt){let Zr=sr(Zt,void 0,void 0,Ur);Wo(Zr,Rv(Zt)),xn(Zr,1024);let Fi=t.createPropertyAssignment("set",Zr);eu(Fi,zg(Zt)),Fe.push(Fi)}Fe.push(t.createPropertyAssignment("enumerable",Kt||Zt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Bt=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Yn,G,t.createObjectLiteralExpression(Fe,!0)]);return on&&x_(Bt),Bt}function It(ae){ae.transformFlags&16384&&!(I&16384)&&(I|=131072);let vt=F;F=void 0;let Kt=q(15232,66),Zt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Kc(ae.parameters,re,e),void 0,Z(ae));return At(Zt,ae),Gn(Zt,ae),xn(Zt,16),ee(Kt,0,0),F=vt,Zt}function Vt(ae){let vt=Ko(ae)&524288?q(32662,69):q(32670,65),Kt=F;F=void 0;let Zt=Kc(ae.parameters,re,e),Ur=Z(ae),on=I&32768?t.getLocalName(ae):ae.name;return ee(vt,229376,0),F=Kt,t.updateFunctionExpression(ae,void 0,ae.asteriskToken,on,void 0,Zt,void 0,Ur)}function Mt(ae){let vt=F;F=void 0;let Kt=q(32670,65),Zt=Kc(ae.parameters,re,e),Ur=Z(ae),on=I&32768?t.getLocalName(ae):ae.name;return ee(Kt,229376,0),F=vt,t.updateFunctionDeclaration(ae,Qr(ae.modifiers,re,Do),ae.asteriskToken,on,void 0,Zt,void 0,Ur)}function sr(ae,vt,Kt,Zt){let Ur=F;F=void 0;let on=Zt&&vi(Zt)&&!co(ae)?q(32670,73):q(32670,65),Yn=Kc(ae.parameters,re,e),bi=Z(ae);return I&32768&&!Kt&&(ae.kind===262||ae.kind===218)&&(Kt=t.getGeneratedNameForNode(ae)),ee(on,229376,0),F=Ur,Gn(At(t.createFunctionExpression(void 0,ae.asteriskToken,Kt,void 0,Yn,void 0,bi),vt),ae)}function Z(ae){let vt=!1,Kt=!1,Zt,Ur,on=[],Yn=[],bi=ae.body,G;if(s(),Js(bi)&&(G=t.copyStandardPrologue(bi.statements,on,0,!1),G=t.copyCustomPrologue(bi.statements,Yn,G,re,o9),G=t.copyCustomPrologue(bi.statements,Yn,G,re,a9)),vt=ia(Yn,ae)||vt,vt=St(Yn,ae,!1)||vt,Js(bi))G=t.copyCustomPrologue(bi.statements,Yn,G,re),Zt=bi.statements,On(Yn,Qr(bi.statements,re,Ji,G)),!vt&&bi.multiLine&&(vt=!0);else{M.assert(ae.kind===219),Zt=z9(bi,-1);let Bt=ae.equalsGreaterThanToken;!Ka(Bt)&&!Ka(bi)&&(HR(Bt,bi,x)?Kt=!0:vt=!0);let Zr=ct(bi,re,Pt),Fi=t.createReturnStatement(Zr);At(Fi,bi),Xpe(Fi,bi),xn(Fi,2880),Yn.push(Fi),Ur=bi}if(t.mergeLexicalEnvironment(on,a()),Me(on,ae),Ce(on,ae),Dt(on)&&(vt=!0),Yn.unshift(...on),Js(bi)&&Jp(Yn,bi.statements))return bi;let Fe=t.createBlock(At(t.createNodeArray(Yn),Zt),vt);return At(Fe,ae.body),!vt&&Kt&&xn(Fe,1),Ur&&Kpe(Fe,20,Ur),Gn(Fe,ae.body),Fe}function Ye(ae,vt){if(vt)return jr(ae,re,e);let Kt=I&256?q(7104,512):q(6976,128),Zt=jr(ae,re,e);return ee(Kt,0,0),Zt}function bt(ae){return jr(ae,ue,e)}function Q(ae,vt){return jr(ae,vt?ue:re,e)}function Xe(ae,vt){return Iv(ae)?y2(ae,re,e,0,!vt):ae.operatorToken.kind===28?t.updateBinaryExpression(ae,M.checkDefined(ct(ae.left,ue,Pt)),ae.operatorToken,M.checkDefined(ct(ae.right,vt?ue:re,Pt))):jr(ae,re,e)}function z(ae,vt){if(vt)return jr(ae,ue,e);let Kt;for(let Ur=0;UrG.name)),bi=Zt?t.createYieldExpression(t.createToken(42),xn(Yn,8388608)):Yn;if(on)Ur.push(t.createExpressionStatement(bi)),dc(vt.loopOutParameters,1,0,Ur);else{let G=t.createUniqueName("state"),Fe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(G,void 0,void 0,bi)]));if(Ur.push(Fe),dc(vt.loopOutParameters,1,0,Ur),vt.nonLocalJumps&8){let Bt;Kt?(Kt.nonLocalJumps|=8,Bt=t.createReturnStatement(G)):Bt=t.createReturnStatement(t.createPropertyAccessExpression(G,"value")),Ur.push(t.createIfStatement(t.createTypeCheck(G,"object"),Bt))}if(vt.nonLocalJumps&2&&Ur.push(t.createIfStatement(t.createStrictEquality(G,t.createStringLiteral("break")),t.createBreakStatement())),vt.labeledNonLocalBreaks||vt.labeledNonLocalContinues){let Bt=[];Ke(vt.labeledNonLocalBreaks,!0,G,Kt,Bt),Ke(vt.labeledNonLocalContinues,!1,G,Kt,Bt),Ur.push(t.createSwitchStatement(G,t.createCaseBlock(Bt)))}}return Ur}function oe(ae,vt,Kt,Zt){vt?(ae.labeledNonLocalBreaks||(ae.labeledNonLocalBreaks=new Map),ae.labeledNonLocalBreaks.set(Kt,Zt)):(ae.labeledNonLocalContinues||(ae.labeledNonLocalContinues=new Map),ae.labeledNonLocalContinues.set(Kt,Zt))}function Ke(ae,vt,Kt,Zt,Ur){ae&&ae.forEach((on,Yn)=>{let bi=[];if(!Zt||Zt.labels&&Zt.labels.get(Yn)){let G=t.createIdentifier(Yn);bi.push(vt?t.createBreakStatement(G):t.createContinueStatement(G))}else oe(Zt,vt,Yn,on),bi.push(t.createReturnStatement(Kt));Ur.push(t.createCaseClause(t.createStringLiteral(on),bi))})}function Rt(ae,vt,Kt,Zt,Ur){let on=vt.name;if($s(on))for(let Yn of on.elements)du(Yn)||Rt(ae,Yn,Kt,Zt,Ur);else{Kt.push(t.createParameterDeclaration(void 0,void 0,on));let Yn=d.hasNodeCheckFlag(vt,65536);if(Yn||Ur){let bi=t.createUniqueName("out_"+In(on)),G=0;Yn&&(G|=1),ST(ae)&&(ae.initializer&&d.isBindingCapturedByNode(ae.initializer,vt)&&(G|=2),(ae.condition&&d.isBindingCapturedByNode(ae.condition,vt)||ae.incrementor&&d.isBindingCapturedByNode(ae.incrementor,vt))&&(G|=1)),Zt.push({flags:G,originalName:on,outParamName:bi})}}}function xr(ae,vt,Kt,Zt){let Ur=vt.properties,on=Ur.length;for(let Yn=Zt;Ynfl(qc)&&!!Fo(qc.declarationList.declarations).initializer,Zt=F;F=void 0;let Ur=Qr(vt.statements,ce,Ji);F=Zt;let on=ti(Ur,Kt),Yn=ti(Ur,qc=>!Kt(qc)),G=ao(Fo(on),fl).declarationList.declarations[0],Fe=Ml(G.initializer),Bt=ci(Fe,Tu);!Bt&&Dn(Fe)&&Fe.operatorToken.kind===28&&(Bt=ci(Fe.left,Tu));let Zr=ao(Bt?Ml(Bt.right):Fe,to),Fi=ao(Ml(Zr.expression),ic),Vs=Fi.body.statements,Ts=0,Ws=-1,Ta=[];if(Bt){let qc=ci(Vs[Ts],wu);qc&&(Ta.push(qc),Ts++),Ta.push(Vs[Ts]),Ts++,Ta.push(t.createExpressionStatement(t.createAssignment(Bt.left,ao(G.name,$e))))}for(;!im(Dl(Vs,Ws));)Ws--;On(Ta,Vs,Ts,Ws),Ws<-1&&On(Ta,Vs,Ws+1);let Ho=ci(Dl(Vs,Ws),im);for(let qc of Yn)im(qc)&&Ho?.expression&&!$e(Ho.expression)?Ta.push(Ho):Ta.push(qc);return On(Ta,on,1),t.restoreOuterExpressions(ae.expression,t.restoreOuterExpressions(G.initializer,t.restoreOuterExpressions(Bt&&Bt.right,t.updateCallExpression(Zr,t.restoreOuterExpressions(Zr.expression,t.updateFunctionExpression(Fi,void 0,void 0,void 0,void 0,Fi.parameters,void 0,t.updateBlock(Fi.body,Ta))),void 0,Zr.arguments))))}function rl(ae,vt){if(ae.transformFlags&32768||ae.expression.kind===108||kf(Ml(ae.expression))){let{target:Kt,thisArg:Zt}=t.createCallBinding(ae.expression,u);ae.expression.kind===108&&xn(Zt,8);let Ur;if(ae.transformFlags&32768?Ur=t.createFunctionApplyCall(M.checkDefined(ct(Kt,ne,Pt)),ae.expression.kind===108?Zt:M.checkDefined(ct(Zt,re,Pt)),id(ae.arguments,!0,!1,!1)):Ur=At(t.createFunctionCallCall(M.checkDefined(ct(Kt,ne,Pt)),ae.expression.kind===108?Zt:M.checkDefined(ct(Zt,re,Pt)),Qr(ae.arguments,re,Pt)),ae),ae.expression.kind===108){let on=t.createLogicalOr(Ur,Vi());Ur=vt?t.createAssignment(te(),on):on}return Gn(Ur,ae)}return Kx(ae)&&(I|=131072),jr(ae,re,e)}function Gl(ae){if(Dt(ae.arguments,kd)){let{target:vt,thisArg:Kt}=t.createCallBinding(t.createPropertyAccessExpression(ae.expression,"bind"),u);return t.createNewExpression(t.createFunctionApplyCall(M.checkDefined(ct(vt,re,Pt)),Kt,id(t.createNodeArray([t.createVoidZero(),...ae.arguments]),!0,!1,!1)),void 0,[])}return jr(ae,re,e)}function id(ae,vt,Kt,Zt){let Ur=ae.length,on=rf(xP(ae,Je,(Fe,Bt,Zr,Fi)=>Bt(Fe,Kt,Zt&&Fi===Ur)));if(on.length===1){let Fe=on[0];if(vt&&!m.downlevelIteration||V$(Fe.expression)||vO(Fe.expression,"___spreadArray"))return Fe.expression}let Yn=n(),bi=on[0].kind!==0,G=bi?t.createArrayLiteralExpression():on[0].expression;for(let Fe=bi?0:1;Fe0&&Zt.push(t.createStringLiteral(Kt.literal.text)),vt=t.createCallExpression(t.createPropertyAccessExpression(vt,"concat"),void 0,Zt)}return At(vt,ae)}function Al(){return t.createUniqueName("_super",48)}function Hf(ae,vt){let Kt=I&8&&!vt?t.createPropertyAccessExpression(Gn(Al(),ae),"prototype"):Al();return Gn(Kt,ae),eu(Kt,ae),Wo(Kt,ae),Kt}function _g(ae){return ae.keywordToken===105&&ae.name.escapedText==="target"?(I|=32768,t.createUniqueName("_newTarget",48)):ae}function sd(ae,vt,Kt){if(J&1&&Us(vt)){let Zt=q(32670,Ko(vt)&16?81:65);E(ae,vt,Kt),ee(Zt,0,0);return}E(ae,vt,Kt)}function Rf(){J&2||(J|=2,e.enableSubstitution(80))}function wd(){J&1||(J|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function od(ae,vt){return vt=S(ae,vt),ae===1?Mf(vt):$e(vt)?Hh(vt):vt}function Hh(ae){if(J&2&&!kY(ae)){let vt=Ps(ae,$e);if(vt&&$h(vt))return At(t.getGeneratedNameForNode(vt),ae)}return ae}function $h(ae){switch(ae.parent.kind){case 208:case 263:case 266:case 260:return ae.parent.name===ae&&d.isDeclarationWithCollidingName(ae.parent)}return!1}function Mf(ae){switch(ae.kind){case 80:return Hl(ae);case 110:return $f(ae)}return ae}function Hl(ae){if(J&2&&!kY(ae)){let vt=d.getReferencedDeclarationWithCollidingName(ae);if(vt&&!(vi(vt)&&Yh(vt,ae)))return At(t.getGeneratedNameForNode(Ns(vt)),ae)}return ae}function Yh(ae,vt){let Kt=Ps(vt);if(!Kt||Kt===ae||Kt.end<=ae.pos||Kt.pos>=ae.end)return!1;let Zt=Zm(ae);for(;Kt;){if(Kt===Zt||Kt===ae)return!1;if(_u(Kt)&&Kt.parent===ae)return!0;Kt=Kt.parent}return!1}function $f(ae){return J&1&&I&16?At(te(),ae):ae}function rh(ae,vt){return co(vt)?t.getInternalName(ae):t.createPropertyAccessExpression(t.getInternalName(ae),"prototype")}function ad(ae,vt){if(!ae||!vt||Dt(ae.parameters))return!1;let Kt=Aa(ae.body.statements);if(!Kt||!Ka(Kt)||Kt.kind!==244)return!1;let Zt=Kt.expression;if(!Ka(Zt)||Zt.kind!==213)return!1;let Ur=Zt.expression;if(!Ka(Ur)||Ur.kind!==108)return!1;let on=Nh(Zt.arguments);if(!on||!Ka(on)||on.kind!==230)return!1;let Yn=on.expression;return $e(Yn)&&Yn.escapedText==="arguments"}}function DEt(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function Che(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:a,hoistVariableDeclaration:u}=e,m=e.getCompilerOptions(),d=Qo(m),S=e.getEmitResolver(),E=e.onSubstituteNode;e.onSubstituteNode=bt;let x,D,I,R,L,F,J,$,q,ee,W=1,pe,K,re,ue,ce=0,ne=0,le,me,de,Ae,xe,te,he,Te;return ag(e,Ve);function Ve(Je){if(Je.isDeclarationFile||!(Je.transformFlags&2048))return Je;let zt=jr(Je,Pe,e);return x0(zt,e.readEmitHelpers()),zt}function Pe(Je){let zt=Je.transformFlags;return R?ke(Je):I?De(Je):$a(Je)&&Je.asteriskToken?lt(Je):zt&2048?jr(Je,Pe,e):Je}function ke(Je){switch(Je.kind){case 246:return uo(Je);case 247:return Sr(Je);case 255:return Nt(Je);case 256:return Vt(Je);default:return De(Je)}}function De(Je){switch(Je.kind){case 262:return ze(Je);case 218:return tt(Je);case 177:case 178:return we(Je);case 243:return gt(Je);case 248:return ut(Je);case 249:return fe(Je);case 252:return Me(Je);case 251:return Ce(Je);case 253:return pt(Je);default:return Je.transformFlags&1048576?Be(Je):Je.transformFlags&4196352?jr(Je,Pe,e):Je}}function Be(Je){switch(Je.kind){case 226:return Qe(Je);case 355:return Ar(Je);case 227:return fr(Je);case 229:return ur(Je);case 209:return tn(Je);case 210:return br(Je);case 212:return Di(Je);case 213:return As(Je);case 214:return os(Je);default:return jr(Je,Pe,e)}}function lt(Je){switch(Je.kind){case 262:return ze(Je);case 218:return tt(Je);default:return M.failBadSyntaxKind(Je)}}function ze(Je){if(Je.asteriskToken)Je=Gn(At(t.createFunctionDeclaration(Je.modifiers,void 0,Je.name,void 0,Kc(Je.parameters,Pe,e),void 0,ft(Je.body)),Je),Je);else{let zt=I,Kr=R;I=!1,R=!1,Je=jr(Je,Pe,e),I=zt,R=Kr}if(I){a(Je);return}else return Je}function tt(Je){if(Je.asteriskToken)Je=Gn(At(t.createFunctionExpression(void 0,void 0,Je.name,void 0,Kc(Je.parameters,Pe,e),void 0,ft(Je.body)),Je),Je);else{let zt=I,Kr=R;I=!1,R=!1,Je=jr(Je,Pe,e),I=zt,R=Kr}return Je}function we(Je){let zt=I,Kr=R;return I=!1,R=!1,Je=jr(Je,Pe,e),I=zt,R=Kr,Je}function ft(Je){let zt=[],Kr=I,hs=R,ea=L,ca=F,pl=J,au=$,Ja=q,Ba=ee,Al=W,Hf=pe,_g=K,sd=re,Rf=ue;I=!0,R=!1,L=void 0,F=void 0,J=void 0,$=void 0,q=void 0,ee=void 0,W=1,pe=void 0,K=void 0,re=void 0,ue=t.createTempVariable(void 0),i();let wd=t.copyPrologue(Je.statements,zt,!1,Pe);Ri(Je.statements,wd);let od=oe();return Cy(zt,s()),zt.push(t.createReturnStatement(od)),I=Kr,R=hs,L=ea,F=ca,J=pl,$=au,q=Ja,ee=Ba,W=Al,pe=Hf,K=_g,re=sd,ue=Rf,At(t.createBlock(zt,Je.multiLine),Je)}function gt(Je){if(Je.transformFlags&1048576){Pn(Je.declarationList);return}else{if(Ko(Je)&2097152)return Je;for(let Kr of Je.declarationList.declarations)u(Kr.name);let zt=Xw(Je.declarationList);return zt.length===0?void 0:Wo(t.createExpressionStatement(t.inlineExpressions(kr(zt,Ti))),Je)}}function Qe(Je){let zt=HH(Je);switch(zt){case 0:return ir(Je);case 1:return yt(Je);default:return M.assertNever(zt)}}function yt(Je){let{left:zt,right:Kr}=Je;if(Z(Kr)){let hs;switch(zt.kind){case 211:hs=t.updatePropertyAccessExpression(zt,z(M.checkDefined(ct(zt.expression,Pe,Af))),zt.name);break;case 212:hs=t.updateElementAccessExpression(zt,z(M.checkDefined(ct(zt.expression,Pe,Af))),z(M.checkDefined(ct(zt.argumentExpression,Pe,Pt))));break;default:hs=M.checkDefined(ct(zt,Pe,Pt));break}let ea=Je.operatorToken.kind;return YO(ea)?At(t.createAssignment(hs,At(t.createBinaryExpression(z(hs),KO(ea),M.checkDefined(ct(Kr,Pe,Pt))),Je)),Je):t.updateBinaryExpression(Je,hs,Je.operatorToken,M.checkDefined(ct(Kr,Pe,Pt)))}return jr(Je,Pe,e)}function ir(Je){return Z(Je.right)?qfe(Je.operatorToken.kind)?Vr(Je):Je.operatorToken.kind===28?Tr(Je):t.updateBinaryExpression(Je,z(M.checkDefined(ct(Je.left,Pe,Pt))),Je.operatorToken,M.checkDefined(ct(Je.right,Pe,Pt))):jr(Je,Pe,e)}function Tr(Je){let zt=[];return Kr(Je.left),Kr(Je.right),t.inlineExpressions(zt);function Kr(hs){Dn(hs)&&hs.operatorToken.kind===28?(Kr(hs.left),Kr(hs.right)):(Z(hs)&&zt.length>0&&(Se(1,[t.createExpressionStatement(t.inlineExpressions(zt))]),zt=[]),zt.push(M.checkDefined(ct(hs,Pe,Pt))))}}function Ar(Je){let zt=[];for(let Kr of Je.elements)Dn(Kr)&&Kr.operatorToken.kind===28?zt.push(Tr(Kr)):(Z(Kr)&&zt.length>0&&(Se(1,[t.createExpressionStatement(t.inlineExpressions(zt))]),zt=[]),zt.push(M.checkDefined(ct(Kr,Pe,Pt))));return t.inlineExpressions(zt)}function Vr(Je){let zt=be(),Kr=Ue();return ja(Kr,M.checkDefined(ct(Je.left,Pe,Pt)),Je.left),Je.operatorToken.kind===56?Jc(zt,Kr,Je.left):pr(zt,Kr,Je.left),ja(Kr,M.checkDefined(ct(Je.right,Pe,Pt)),Je.right),Re(zt),Kr}function fr(Je){if(Z(Je.whenTrue)||Z(Je.whenFalse)){let zt=be(),Kr=be(),hs=Ue();return Jc(zt,M.checkDefined(ct(Je.condition,Pe,Pt)),Je.condition),ja(hs,M.checkDefined(ct(Je.whenTrue,Pe,Pt)),Je.whenTrue),ga(Kr),Re(zt),ja(hs,M.checkDefined(ct(Je.whenFalse,Pe,Pt)),Je.whenFalse),Re(Kr),hs}return jr(Je,Pe,e)}function ur(Je){let zt=be(),Kr=ct(Je.expression,Pe,Pt);if(Je.asteriskToken){let hs=Ko(Je.expression)&8388608?Kr:At(n().createValuesHelper(Kr),Je);W_(hs,Je)}else G_(Kr,Je);return Re(zt),Zu(Je)}function tn(Je){return Mi(Je.elements,void 0,void 0,Je.multiLine)}function Mi(Je,zt,Kr,hs){let ea=Ye(Je),ca;if(ea>0){ca=Ue();let Ja=Qr(Je,Pe,Pt,0,ea);ja(ca,t.createArrayLiteralExpression(zt?[zt,...Ja]:Ja)),zt=void 0}let pl=F_(Je,au,[],ea);return ca?t.createArrayConcatCall(ca,[t.createArrayLiteralExpression(pl,hs)]):At(t.createArrayLiteralExpression(zt?[zt,...pl]:pl,hs),Kr);function au(Ja,Ba){if(Z(Ba)&&Ja.length>0){let Al=ca!==void 0;ca||(ca=Ue()),ja(ca,Al?t.createArrayConcatCall(ca,[t.createArrayLiteralExpression(Ja,hs)]):t.createArrayLiteralExpression(zt?[zt,...Ja]:Ja,hs)),zt=void 0,Ja=[]}return Ja.push(M.checkDefined(ct(Ba,Pe,Pt))),Ja}}function br(Je){let zt=Je.properties,Kr=Je.multiLine,hs=Ye(zt),ea=Ue();ja(ea,t.createObjectLiteralExpression(Qr(zt,Pe,d0,0,hs),Kr));let ca=F_(zt,pl,[],hs);return ca.push(Kr?x_(fa(At(t.cloneNode(ea),ea),ea.parent)):ea),t.inlineExpressions(ca);function pl(au,Ja){Z(Ja)&&au.length>0&&(Sc(t.createExpressionStatement(t.inlineExpressions(au))),au=[]);let Ba=ume(t,Je,Ja,ea),Al=ct(Ba,Pe,Pt);return Al&&(Kr&&x_(Al),au.push(Al)),au}}function Di(Je){return Z(Je.argumentExpression)?t.updateElementAccessExpression(Je,z(M.checkDefined(ct(Je.expression,Pe,Af))),M.checkDefined(ct(Je.argumentExpression,Pe,Pt))):jr(Je,Pe,e)}function As(Je){if(!Dp(Je)&&Et(Je.arguments,Z)){let{target:zt,thisArg:Kr}=t.createCallBinding(Je.expression,u,d,!0);return Gn(At(t.createFunctionApplyCall(z(M.checkDefined(ct(zt,Pe,Af))),Kr,Mi(Je.arguments)),Je),Je)}return jr(Je,Pe,e)}function os(Je){if(Et(Je.arguments,Z)){let{target:zt,thisArg:Kr}=t.createCallBinding(t.createPropertyAccessExpression(Je.expression,"bind"),u);return Gn(At(t.createNewExpression(t.createFunctionApplyCall(z(M.checkDefined(ct(zt,Pe,Pt))),Kr,Mi(Je.arguments,t.createVoidZero())),void 0,[]),Je),Je)}return jr(Je,Pe,e)}function Ri(Je,zt=0){let Kr=Je.length;for(let hs=zt;hs0)break;ea.push(Ti(pl))}ea.length&&(Sc(t.createExpressionStatement(t.inlineExpressions(ea))),hs+=ea.length,ea=[])}}function Ti(Je){return Wo(t.createAssignment(Wo(t.cloneNode(Je.name),Je.name),M.checkDefined(ct(Je.initializer,Pe,Pt))),Je)}function ki(Je){if(Z(Je))if(Z(Je.thenStatement)||Z(Je.elseStatement)){let zt=be(),Kr=Je.elseStatement?be():void 0;Jc(Je.elseStatement?Kr:zt,M.checkDefined(ct(Je.expression,Pe,Pt)),Je.expression),$r(Je.thenStatement),Je.elseStatement&&(ga(zt),Re(Kr),$r(Je.elseStatement)),Re(zt)}else Sc(ct(Je,Pe,Ji));else Sc(ct(Je,Pe,Ji))}function Vi(Je){if(Z(Je)){let zt=be(),Kr=be();Xn(zt),Re(Kr),$r(Je.statement),Re(zt),pr(Kr,M.checkDefined(ct(Je.expression,Pe,Pt))),hi()}else Sc(ct(Je,Pe,Ji))}function uo(Je){return R?(us(),Je=jr(Je,Pe,e),hi(),Je):jr(Je,Pe,e)}function Ys(Je){if(Z(Je)){let zt=be(),Kr=Xn(zt);Re(zt),Jc(Kr,M.checkDefined(ct(Je.expression,Pe,Pt))),$r(Je.statement),ga(zt),hi()}else Sc(ct(Je,Pe,Ji))}function Sr(Je){return R?(us(),Je=jr(Je,Pe,e),hi(),Je):jr(Je,Pe,e)}function ia(Je){if(Z(Je)){let zt=be(),Kr=be(),hs=Xn(Kr);if(Je.initializer){let ea=Je.initializer;Fu(ea)?Pn(ea):Sc(At(t.createExpressionStatement(M.checkDefined(ct(ea,Pe,Pt))),ea))}Re(zt),Je.condition&&Jc(hs,M.checkDefined(ct(Je.condition,Pe,Pt))),$r(Je.statement),Re(Kr),Je.incrementor&&Sc(At(t.createExpressionStatement(M.checkDefined(ct(Je.incrementor,Pe,Pt))),Je.incrementor)),ga(zt),hi()}else Sc(ct(Je,Pe,Ji))}function ut(Je){R&&us();let zt=Je.initializer;if(zt&&Fu(zt)){for(let hs of zt.declarations)u(hs.name);let Kr=Xw(zt);Je=t.updateForStatement(Je,Kr.length>0?t.inlineExpressions(kr(Kr,Ti)):void 0,ct(Je.condition,Pe,Pt),ct(Je.incrementor,Pe,Pt),df(Je.statement,Pe,e))}else Je=jr(Je,Pe,e);return R&&hi(),Je}function Tt(Je){if(Z(Je)){let zt=Ue(),Kr=Ue(),hs=Ue(),ea=t.createLoopVariable(),ca=Je.initializer;u(ea),ja(zt,M.checkDefined(ct(Je.expression,Pe,Pt))),ja(Kr,t.createArrayLiteralExpression()),Sc(t.createForInStatement(hs,zt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Kr,"push"),void 0,[hs])))),ja(ea,t.createNumericLiteral(0));let pl=be(),au=be(),Ja=Xn(au);Re(pl),Jc(Ja,t.createLessThan(ea,t.createPropertyAccessExpression(Kr,"length"))),ja(hs,t.createElementAccessExpression(Kr,ea)),Jc(au,t.createBinaryExpression(hs,103,zt));let Ba;if(Fu(ca)){for(let Al of ca.declarations)u(Al.name);Ba=t.cloneNode(ca.declarations[0].name)}else Ba=M.checkDefined(ct(ca,Pe,Pt)),M.assert(Af(Ba));ja(Ba,hs),$r(Je.statement),Re(au),Sc(t.createExpressionStatement(t.createPostfixIncrement(ea))),ga(pl),hi()}else Sc(ct(Je,Pe,Ji))}function fe(Je){R&&us();let zt=Je.initializer;if(Fu(zt)){for(let Kr of zt.declarations)u(Kr.name);Je=t.updateForInStatement(Je,zt.declarations[0].name,M.checkDefined(ct(Je.expression,Pe,Pt)),M.checkDefined(ct(Je.statement,Pe,Ji,t.liftToBlock)))}else Je=jr(Je,Pe,e);return R&&hi(),Je}function St(Je){let zt=Wi(Je.label?In(Je.label):void 0);zt>0?ga(zt,Je):Sc(Je)}function Ce(Je){if(R){let zt=Wi(Je.label&&In(Je.label));if(zt>0)return D_(zt,Je)}return jr(Je,Pe,e)}function it(Je){let zt=rs(Je.label?In(Je.label):void 0);zt>0?ga(zt,Je):Sc(Je)}function Me(Je){if(R){let zt=rs(Je.label&&In(Je.label));if(zt>0)return D_(zt,Je)}return jr(Je,Pe,e)}function rt(Je){Wf(ct(Je.expression,Pe,Pt),Je)}function pt(Je){return el(ct(Je.expression,Pe,Pt),Je)}function nr(Je){Z(Je)?(Wr(z(M.checkDefined(ct(Je.expression,Pe,Pt)))),$r(Je.statement),Yr()):Sc(ct(Je,Pe,Ji))}function Oe(Je){if(Z(Je.caseBlock)){let zt=Je.caseBlock,Kr=zt.clauses.length,hs=nn(),ea=z(M.checkDefined(ct(Je.expression,Pe,Pt))),ca=[],pl=-1;for(let Ba=0;Ba0)break;Ja.push(t.createCaseClause(M.checkDefined(ct(Hf.expression,Pe,Pt)),[D_(ca[Al],Hf.expression)]))}else Ba++}Ja.length&&(Sc(t.createSwitchStatement(ea,t.createCaseBlock(Ja))),au+=Ja.length,Ja=[]),Ba>0&&(au+=Ba,Ba=0)}pl>=0?ga(ca[pl]):ga(hs);for(let Ba=0;Ba=0;Kr--){let hs=$[Kr];if(gs(hs)){if(hs.labelText===Je)return!0}else break}return!1}function rs(Je){if($)if(Je)for(let zt=$.length-1;zt>=0;zt--){let Kr=$[zt];if(gs(Kr)&&Kr.labelText===Je)return Kr.breakLabel;if(wa(Kr)&&vc(Je,zt-1))return Kr.breakLabel}else for(let zt=$.length-1;zt>=0;zt--){let Kr=$[zt];if(wa(Kr))return Kr.breakLabel}return 0}function Wi(Je){if($)if(Je)for(let zt=$.length-1;zt>=0;zt--){let Kr=$[zt];if(oo(Kr)&&vc(Je,zt-1))return Kr.continueLabel}else for(let zt=$.length-1;zt>=0;zt--){let Kr=$[zt];if(oo(Kr))return Kr.continueLabel}return 0}function xu(Je){if(Je!==void 0&&Je>0){ee===void 0&&(ee=[]);let zt=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return ee[Je]===void 0?ee[Je]=[zt]:ee[Je].push(zt),zt}return t.createOmittedExpression()}function Ac(Je){let zt=t.createNumericLiteral(Je);return Nj(zt,3,DEt(Je)),zt}function D_(Je,zt){return M.assertLessThan(0,Je,"Invalid label"),At(t.createReturnStatement(t.createArrayLiteralExpression([Ac(3),xu(Je)])),zt)}function el(Je,zt){return At(t.createReturnStatement(t.createArrayLiteralExpression(Je?[Ac(2),Je]:[Ac(2)])),zt)}function Zu(Je){return At(t.createCallExpression(t.createPropertyAccessExpression(ue,"sent"),void 0,[]),Je)}function Bo(){Se(0)}function Sc(Je){Je?Se(1,[Je]):Bo()}function ja(Je,zt,Kr){Se(2,[Je,zt],Kr)}function ga(Je,zt){Se(3,[Je],zt)}function pr(Je,zt,Kr){Se(4,[Je,zt],Kr)}function Jc(Je,zt,Kr){Se(5,[Je,zt],Kr)}function W_(Je,zt){Se(7,[Je],zt)}function G_(Je,zt){Se(6,[Je],zt)}function Wf(Je,zt){Se(8,[Je],zt)}function dc(Je,zt){Se(9,[Je],zt)}function tl(){Se(10)}function Se(Je,zt,Kr){pe===void 0&&(pe=[],K=[],re=[]),q===void 0&&Re(be());let hs=pe.length;pe[hs]=Je,K[hs]=zt,re[hs]=Kr}function oe(){ce=0,ne=0,le=void 0,me=!1,de=!1,Ae=void 0,xe=void 0,te=void 0,he=void 0,Te=void 0;let Je=Ke();return n().createGeneratorHelper(xn(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ue)],void 0,t.createBlock(Je,Je.length>0)),1048576))}function Ke(){if(pe){for(let Je=0;Je=0;zt--){let Kr=Te[zt];xe=[t.createWithStatement(Kr.expression,t.createBlock(xe))]}if(he){let{startLabel:zt,catchLabel:Kr,finallyLabel:hs,endLabel:ea}=he;xe.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ue,"trys"),"push"),void 0,[t.createArrayLiteralExpression([xu(zt),xu(Kr),xu(hs),xu(ea)])]))),he=void 0}Je&&xe.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ue,"label"),t.createNumericLiteral(ne+1))))}Ae.push(t.createCaseClause(t.createNumericLiteral(ne),xe||[])),xe=void 0}function zn(Je){if(q)for(let zt=0;ztn.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(In(Re))),be),n.createVoidZero())));for(let z of F.exportedFunctions)ut(Ye,z);Ut(Ye,ct(F.externalHelpersImportDeclaration,le,Ji)),On(Ye,Qr(Z.statements,le,Ji,Q)),ne(Ye,!1),Cy(Ye,a());let Xe=n.updateSourceFile(Z,At(n.createNodeArray(Ye),Z.statements));return x0(Xe,e.readEmitHelpers()),Xe}function pe(Z){let Ye=n.createIdentifier("define"),bt=EM(n,Z,S,m),Q=Xd(Z)&&Z,{aliasedModuleNames:Xe,unaliasedModuleNames:z,importAliasNames:Ue}=re(Z,!0),be=n.updateSourceFile(Z,At(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(Ye,void 0,[...bt?[bt]:[],n.createArrayLiteralExpression(Q?ve:[n.createStringLiteral("require"),n.createStringLiteral("exports"),...Xe,...z]),Q?Q.statements.length?Q.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...Ue],void 0,ce(Z))]))]),Z.statements));return x0(be,e.readEmitHelpers()),be}function K(Z){let{aliasedModuleNames:Ye,unaliasedModuleNames:bt,importAliasNames:Q}=re(Z,!1),Xe=EM(n,Z,S,m),z=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,At(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),xn(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,[...Xe?[Xe]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...Ye,...bt]),n.createIdentifier("factory")]))])))],!0),void 0)),Ue=n.updateSourceFile(Z,At(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(z,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...Q],void 0,ce(Z))]))]),Z.statements));return x0(Ue,e.readEmitHelpers()),Ue}function re(Z,Ye){let bt=[],Q=[],Xe=[];for(let z of Z.amdDependencies)z.name?(bt.push(n.createStringLiteral(z.path)),Xe.push(n.createParameterDeclaration(void 0,void 0,z.name))):Q.push(n.createStringLiteral(z.path));for(let z of F.externalImports){let Ue=GA(n,z,L,S,d,m),be=AN(n,z,L);Ue&&(Ye&&be?(xn(be,8),bt.push(Ue),Xe.push(n.createParameterDeclaration(void 0,void 0,be))):Q.push(Ue))}return{aliasedModuleNames:bt,unaliasedModuleNames:Q,importAliasNames:Xe}}function ue(Z){if(nu(Z)||Cl(Z)||!GA(n,Z,L,S,d,m))return;let Ye=AN(n,Z,L),bt=As(Z,Ye);if(bt!==Ye)return n.createExpressionStatement(n.createAssignment(Ye,bt))}function ce(Z){s();let Ye=[],bt=n.copyPrologue(Z.statements,Ye,!0,le);ee()&&Ut(Ye,St()),Dt(F.exportedNames)&&Ut(Ye,n.createExpressionStatement(F_(F.exportedNames,(Xe,z)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(In(z))),Xe),n.createVoidZero())));for(let Xe of F.exportedFunctions)ut(Ye,Xe);Ut(Ye,ct(F.externalHelpersImportDeclaration,le,Ji)),x===2&&On(Ye,Yi(F.externalImports,ue)),On(Ye,Qr(Z.statements,le,Ji,bt)),ne(Ye,!0),Cy(Ye,a());let Q=n.createBlock(Ye,!0);return $&&DA(Q,IEt),Q}function ne(Z,Ye){if(F.exportEquals){let bt=ct(F.exportEquals.expression,Ae,Pt);if(bt)if(Ye){let Q=n.createReturnStatement(bt);At(Q,F.exportEquals),xn(Q,3840),Z.push(Q)}else{let Q=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),bt));At(Q,F.exportEquals),xn(Q,3072),Z.push(Q)}}}function le(Z){switch(Z.kind){case 272:return os(Z);case 271:return $r(Z);case 278:return Qs(Z);case 277:return He(Z);default:return me(Z)}}function me(Z){switch(Z.kind){case 243:return Pn(Z);case 262:return Xt(Z);case 263:return qr(Z);case 248:return Te(Z,!0);case 249:return Ve(Z);case 250:return Pe(Z);case 246:return ke(Z);case 247:return De(Z);case 256:return Be(Z);case 254:return lt(Z);case 245:return ze(Z);case 255:return tt(Z);case 269:return we(Z);case 296:return ft(Z);case 297:return gt(Z);case 258:return Qe(Z);case 299:return yt(Z);case 241:return ir(Z);default:return Ae(Z)}}function de(Z,Ye){if(!(Z.transformFlags&276828160))return Z;switch(Z.kind){case 248:return Te(Z,!1);case 244:return Tr(Z);case 217:return Ar(Z,Ye);case 354:return Vr(Z,Ye);case 213:if(Dp(Z)&&L.impliedNodeFormat===void 0)return ur(Z);break;case 226:if(Iv(Z))return he(Z,Ye);break;case 224:case 225:return fr(Z,Ye)}return jr(Z,Ae,e)}function Ae(Z){return de(Z,!1)}function xe(Z){return de(Z,!0)}function te(Z){if(ko(Z))for(let Ye of Z.properties)switch(Ye.kind){case 303:if(te(Ye.initializer))return!0;break;case 304:if(te(Ye.name))return!0;break;case 305:if(te(Ye.expression))return!0;break;case 174:case 177:case 178:return!1;default:M.assertNever(Ye,"Unhandled object member kind")}else if(Ku(Z)){for(let Ye of Z.elements)if(kd(Ye)){if(te(Ye.expression))return!0}else if(te(Ye))return!0}else if($e(Z))return kt(sr(Z))>(Qj(Z)?1:0);return!1}function he(Z,Ye){return te(Z.left)?y2(Z,Ae,e,0,!Ye,Ti):jr(Z,Ae,e)}function Te(Z,Ye){if(Ye&&Z.initializer&&Fu(Z.initializer)&&!(Z.initializer.flags&7)){let bt=Sr(void 0,Z.initializer,!1);if(bt){let Q=[],Xe=ct(Z.initializer,xe,Fu),z=n.createVariableStatement(void 0,Xe);Q.push(z),On(Q,bt);let Ue=ct(Z.condition,Ae,Pt),be=ct(Z.incrementor,xe,Pt),Re=df(Z.statement,Ye?me:Ae,e);return Q.push(n.updateForStatement(Z,void 0,Ue,be,Re)),Q}}return n.updateForStatement(Z,ct(Z.initializer,xe,Td),ct(Z.condition,Ae,Pt),ct(Z.incrementor,xe,Pt),df(Z.statement,Ye?me:Ae,e))}function Ve(Z){if(Fu(Z.initializer)&&!(Z.initializer.flags&7)){let Ye=Sr(void 0,Z.initializer,!0);if(Dt(Ye)){let bt=ct(Z.initializer,xe,Td),Q=ct(Z.expression,Ae,Pt),Xe=df(Z.statement,me,e),z=Js(Xe)?n.updateBlock(Xe,[...Ye,...Xe.statements]):n.createBlock([...Ye,Xe],!0);return n.updateForInStatement(Z,bt,Q,z)}}return n.updateForInStatement(Z,ct(Z.initializer,xe,Td),ct(Z.expression,Ae,Pt),df(Z.statement,me,e))}function Pe(Z){if(Fu(Z.initializer)&&!(Z.initializer.flags&7)){let Ye=Sr(void 0,Z.initializer,!0),bt=ct(Z.initializer,xe,Td),Q=ct(Z.expression,Ae,Pt),Xe=df(Z.statement,me,e);return Dt(Ye)&&(Xe=Js(Xe)?n.updateBlock(Xe,[...Ye,...Xe.statements]):n.createBlock([...Ye,Xe],!0)),n.updateForOfStatement(Z,Z.awaitModifier,bt,Q,Xe)}return n.updateForOfStatement(Z,Z.awaitModifier,ct(Z.initializer,xe,Td),ct(Z.expression,Ae,Pt),df(Z.statement,me,e))}function ke(Z){return n.updateDoStatement(Z,df(Z.statement,me,e),ct(Z.expression,Ae,Pt))}function De(Z){return n.updateWhileStatement(Z,ct(Z.expression,Ae,Pt),df(Z.statement,me,e))}function Be(Z){return n.updateLabeledStatement(Z,Z.label,M.checkDefined(ct(Z.statement,me,Ji,n.liftToBlock)))}function lt(Z){return n.updateWithStatement(Z,ct(Z.expression,Ae,Pt),M.checkDefined(ct(Z.statement,me,Ji,n.liftToBlock)))}function ze(Z){return n.updateIfStatement(Z,ct(Z.expression,Ae,Pt),M.checkDefined(ct(Z.thenStatement,me,Ji,n.liftToBlock)),ct(Z.elseStatement,me,Ji,n.liftToBlock))}function tt(Z){return n.updateSwitchStatement(Z,ct(Z.expression,Ae,Pt),M.checkDefined(ct(Z.caseBlock,me,PO)))}function we(Z){return n.updateCaseBlock(Z,Qr(Z.clauses,me,J5))}function ft(Z){return n.updateCaseClause(Z,ct(Z.expression,Ae,Pt),Qr(Z.statements,me,Ji))}function gt(Z){return jr(Z,me,e)}function Qe(Z){return jr(Z,me,e)}function yt(Z){return n.updateCatchClause(Z,Z.variableDeclaration,M.checkDefined(ct(Z.block,me,Js)))}function ir(Z){return Z=jr(Z,me,e),Z}function Tr(Z){return n.updateExpressionStatement(Z,ct(Z.expression,xe,Pt))}function Ar(Z,Ye){return n.updateParenthesizedExpression(Z,ct(Z.expression,Ye?xe:Ae,Pt))}function Vr(Z,Ye){return n.updatePartiallyEmittedExpression(Z,ct(Z.expression,Ye?xe:Ae,Pt))}function fr(Z,Ye){if((Z.operator===46||Z.operator===47)&&$e(Z.operand)&&!Ec(Z.operand)&&!P0(Z.operand)&&!m$(Z.operand)){let bt=sr(Z.operand);if(bt){let Q,Xe=ct(Z.operand,Ae,Pt);tS(Z)?Xe=n.updatePrefixUnaryExpression(Z,Xe):(Xe=n.updatePostfixUnaryExpression(Z,Xe),Ye||(Q=n.createTempVariable(u),Xe=n.createAssignment(Q,Xe),At(Xe,Z)),Xe=n.createComma(Xe,n.cloneNode(Z.operand)),At(Xe,Z));for(let z of bt)J[Sa(Xe)]=!0,Xe=it(z,Xe),At(Xe,Z);return Q&&(J[Sa(Xe)]=!0,Xe=n.createComma(Xe,Q),At(Xe,Z)),Xe}}return jr(Z,Ae,e)}function ur(Z){if(x===0&&E>=7)return jr(Z,Ae,e);let Ye=GA(n,Z,L,S,d,m),bt=ct(Aa(Z.arguments),Ae,Pt),Q=Ye&&(!bt||!jo(bt)||bt.text!==Ye.text)?Ye:bt,Xe=!!(Z.transformFlags&16384);switch(m.module){case 2:return Mi(Q,Xe);case 3:return tn(Q??n.createVoidZero(),Xe);case 1:default:return br(Q)}}function tn(Z,Ye){if($=!0,xE(Z)){let bt=Ec(Z)?Z:jo(Z)?n.createStringLiteralFromNode(Z):xn(At(n.cloneNode(Z),Z),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,br(Z),void 0,Mi(bt,Ye))}else{let bt=n.createTempVariable(u);return n.createComma(n.createAssignment(bt,Z),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,br(bt,!0),void 0,Mi(bt,Ye)))}}function Mi(Z,Ye){let bt=n.createUniqueName("resolve"),Q=n.createUniqueName("reject"),Xe=[n.createParameterDeclaration(void 0,void 0,bt),n.createParameterDeclaration(void 0,void 0,Q)],z=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([Z||n.createOmittedExpression()]),bt,Q]))]),Ue;E>=2?Ue=n.createArrowFunction(void 0,void 0,Xe,void 0,void 0,z):(Ue=n.createFunctionExpression(void 0,void 0,void 0,void 0,Xe,void 0,z),Ye&&xn(Ue,16));let be=n.createNewExpression(n.createIdentifier("Promise"),void 0,[Ue]);return Iy(m)?n.createCallExpression(n.createPropertyAccessExpression(be,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):be}function br(Z,Ye){let bt=Z&&!Xg(Z)&&!Ye,Q=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,bt?E>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(Z,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[Z])]:[]),Xe=n.createCallExpression(n.createIdentifier("require"),void 0,bt?[n.createIdentifier("s")]:Z?[Z]:[]);Iy(m)&&(Xe=i().createImportStarHelper(Xe));let z=bt?[n.createParameterDeclaration(void 0,void 0,"s")]:[],Ue;return E>=2?Ue=n.createArrowFunction(void 0,void 0,z,void 0,void 0,Xe):Ue=n.createFunctionExpression(void 0,void 0,void 0,void 0,z,void 0,n.createBlock([n.createReturnStatement(Xe)])),n.createCallExpression(n.createPropertyAccessExpression(Q,"then"),void 0,[Ue])}function Di(Z,Ye){return!Iy(m)||Pm(Z)&2?Ye:Gge(Z)?i().createImportStarHelper(Ye):Ye}function As(Z,Ye){return!Iy(m)||Pm(Z)&2?Ye:MB(Z)?i().createImportStarHelper(Ye):RK(Z)?i().createImportDefaultHelper(Ye):Ye}function os(Z){let Ye,bt=XP(Z);if(x!==2)if(Z.importClause){let Q=[];bt&&!aA(Z)?Q.push(n.createVariableDeclaration(n.cloneNode(bt.name),void 0,void 0,As(Z,Ri(Z)))):(Q.push(n.createVariableDeclaration(n.getGeneratedNameForNode(Z),void 0,void 0,As(Z,Ri(Z)))),bt&&aA(Z)&&Q.push(n.createVariableDeclaration(n.cloneNode(bt.name),void 0,void 0,n.getGeneratedNameForNode(Z)))),Ye=Ut(Ye,Gn(At(n.createVariableStatement(void 0,n.createVariableDeclarationList(Q,E>=2?2:0)),Z),Z))}else return Gn(At(n.createExpressionStatement(Ri(Z)),Z),Z);else bt&&aA(Z)&&(Ye=Ut(Ye,n.createVariableStatement(void 0,n.createVariableDeclarationList([Gn(At(n.createVariableDeclaration(n.cloneNode(bt.name),void 0,void 0,n.getGeneratedNameForNode(Z)),Z),Z)],E>=2?2:0))));return Ye=Vi(Ye,Z),Dh(Ye)}function Ri(Z){let Ye=GA(n,Z,L,S,d,m),bt=[];return Ye&&bt.push(Ye),n.createCallExpression(n.createIdentifier("require"),void 0,bt)}function $r(Z){M.assert(cT(Z),"import= for internal module references should be handled in an earlier transformer.");let Ye;return x!==2?_i(Z,32)?Ye=Ut(Ye,Gn(At(n.createExpressionStatement(it(Z.name,Ri(Z))),Z),Z)):Ye=Ut(Ye,Gn(At(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(Z.name),void 0,void 0,Ri(Z))],E>=2?2:0)),Z),Z)):_i(Z,32)&&(Ye=Ut(Ye,Gn(At(n.createExpressionStatement(it(n.getExportName(Z),n.getLocalName(Z))),Z),Z))),Ye=uo(Ye,Z),Dh(Ye)}function Qs(Z){if(!Z.moduleSpecifier)return;let Ye=n.getGeneratedNameForNode(Z);if(Z.exportClause&&Pd(Z.exportClause)){let bt=[];x!==2&&bt.push(Gn(At(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(Ye,void 0,void 0,Ri(Z))])),Z),Z));for(let Q of Z.exportClause.elements){let Xe=!!Iy(m)&&!(Pm(Z)&2)&&In(Q.propertyName||Q.name)==="default",z=n.createPropertyAccessExpression(Xe?i().createImportDefaultHelper(Ye):Ye,Q.propertyName||Q.name);bt.push(Gn(At(n.createExpressionStatement(it(n.getExportName(Q),z,void 0,!0)),Q),Q))}return Dh(bt)}else if(Z.exportClause){let bt=[];return bt.push(Gn(At(n.createExpressionStatement(it(n.cloneNode(Z.exportClause.name),Di(Z,x!==2?Ri(Z):e9(Z)?Ye:n.createIdentifier(In(Z.exportClause.name))))),Z),Z)),Dh(bt)}else return Gn(At(n.createExpressionStatement(i().createExportStarHelper(x!==2?Ri(Z):Ye)),Z),Z)}function He(Z){if(!Z.isExportEquals)return Ce(n.createIdentifier("default"),ct(Z.expression,Ae,Pt),Z,!0)}function Xt(Z){let Ye;return _i(Z,32)?Ye=Ut(Ye,Gn(At(n.createFunctionDeclaration(Qr(Z.modifiers,Me,Do),Z.asteriskToken,n.getDeclarationName(Z,!0,!0),void 0,Qr(Z.parameters,Ae,is),void 0,jr(Z.body,Ae,e)),Z),Z)):Ye=Ut(Ye,jr(Z,Ae,e)),Dh(Ye)}function qr(Z){let Ye;return _i(Z,32)?Ye=Ut(Ye,Gn(At(n.createClassDeclaration(Qr(Z.modifiers,Me,xc),n.getDeclarationName(Z,!0,!0),void 0,Qr(Z.heritageClauses,Ae,mp),Qr(Z.members,Ae,_u)),Z),Z)):Ye=Ut(Ye,jr(Z,Ae,e)),Ye=ut(Ye,Z),Dh(Ye)}function Pn(Z){let Ye,bt,Q;if(_i(Z,32)){let Xe,z=!1;for(let Ue of Z.declarationList.declarations)if($e(Ue.name)&&P0(Ue.name))if(Xe||(Xe=Qr(Z.modifiers,Me,Do)),Ue.initializer){let be=n.updateVariableDeclaration(Ue,Ue.name,void 0,void 0,it(Ue.name,ct(Ue.initializer,Ae,Pt)));bt=Ut(bt,be)}else bt=Ut(bt,Ue);else if(Ue.initializer)if(!$s(Ue.name)&&(fc(Ue.initializer)||ic(Ue.initializer)||tu(Ue.initializer))){let be=n.createAssignment(At(n.createPropertyAccessExpression(n.createIdentifier("exports"),Ue.name),Ue.name),n.createIdentifier(Zd(Ue.name))),Re=n.createVariableDeclaration(Ue.name,Ue.exclamationToken,Ue.type,ct(Ue.initializer,Ae,Pt));bt=Ut(bt,Re),Q=Ut(Q,be),z=!0}else Q=Ut(Q,ki(Ue));if(bt&&(Ye=Ut(Ye,n.updateVariableStatement(Z,Xe,n.updateVariableDeclarationList(Z.declarationList,bt)))),Q){let Ue=Gn(At(n.createExpressionStatement(n.inlineExpressions(Q)),Z),Z);z&&cM(Ue),Ye=Ut(Ye,Ue)}}else Ye=Ut(Ye,jr(Z,Ae,e));return Ye=Ys(Ye,Z),Dh(Ye)}function Ti(Z,Ye,bt){let Q=sr(Z);if(Q){let Xe=Qj(Z)?Ye:n.createAssignment(Z,Ye);for(let z of Q)xn(Xe,8),Xe=it(z,Xe,bt);return Xe}return n.createAssignment(Z,Ye)}function ki(Z){return $s(Z.name)?y2(ct(Z,Ae,$R),Ae,e,0,!1,Ti):n.createAssignment(At(n.createPropertyAccessExpression(n.createIdentifier("exports"),Z.name),Z.name),Z.initializer?ct(Z.initializer,Ae,Pt):n.createVoidZero())}function Vi(Z,Ye){if(F.exportEquals)return Z;let bt=Ye.importClause;if(!bt)return Z;let Q=new FN;bt.name&&(Z=Tt(Z,Q,bt));let Xe=bt.namedBindings;if(Xe)switch(Xe.kind){case 274:Z=Tt(Z,Q,Xe);break;case 275:for(let z of Xe.elements)Z=Tt(Z,Q,z,!0);break}return Z}function uo(Z,Ye){return F.exportEquals?Z:Tt(Z,new FN,Ye)}function Ys(Z,Ye){return Sr(Z,Ye.declarationList,!1)}function Sr(Z,Ye,bt){if(F.exportEquals)return Z;for(let Q of Ye.declarations)Z=ia(Z,Q,bt);return Z}function ia(Z,Ye,bt){if(F.exportEquals)return Z;if($s(Ye.name))for(let Q of Ye.name.elements)du(Q)||(Z=ia(Z,Q,bt));else!Ec(Ye.name)&&(!Ci(Ye)||Ye.initializer||bt)&&(Z=Tt(Z,new FN,Ye));return Z}function ut(Z,Ye){if(F.exportEquals)return Z;let bt=new FN;if(_i(Ye,32)){let Q=_i(Ye,2048)?n.createIdentifier("default"):n.getDeclarationName(Ye);Z=fe(Z,bt,Q,n.getLocalName(Ye),Ye)}return Ye.name&&(Z=Tt(Z,bt,Ye)),Z}function Tt(Z,Ye,bt,Q){let Xe=n.getDeclarationName(bt),z=F.exportSpecifiers.get(Xe);if(z)for(let Ue of z)Z=fe(Z,Ye,Ue.name,Xe,Ue.name,void 0,Q);return Z}function fe(Z,Ye,bt,Q,Xe,z,Ue){return Ye.has(bt)||(Ye.set(bt,!0),Z=Ut(Z,Ce(bt,Q,Xe,z,Ue))),Z}function St(){let Z=n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])]));return xn(Z,2097152),Z}function Ce(Z,Ye,bt,Q,Xe){let z=At(n.createExpressionStatement(it(Z,Ye,void 0,Xe)),bt);return x_(z),Q||xn(z,3072),z}function it(Z,Ye,bt,Q){return At(Q?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(Z),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(Ye)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(Z)),Ye),bt)}function Me(Z){switch(Z.kind){case 95:case 90:return}return Z}function rt(Z,Ye,bt){Ye.kind===307?(L=Ye,F=R[mf(L)],I(Z,Ye,bt),L=void 0,F=void 0):I(Z,Ye,bt)}function pt(Z,Ye){return Ye=D(Z,Ye),Ye.id&&J[Ye.id]?Ye:Z===1?Oe(Ye):m_(Ye)?nr(Ye):Ye}function nr(Z){let Ye=Z.name,bt=Vt(Ye);if(bt!==Ye){if(Z.objectAssignmentInitializer){let Q=n.createAssignment(bt,Z.objectAssignmentInitializer);return At(n.createPropertyAssignment(Ye,Q),Z)}return At(n.createPropertyAssignment(Ye,bt),Z)}return Z}function Oe(Z){switch(Z.kind){case 80:return Vt(Z);case 213:return Nt(Z);case 215:return It(Z);case 226:return Mt(Z)}return Z}function Nt(Z){if($e(Z.expression)){let Ye=Vt(Z.expression);if(J[Sa(Ye)]=!0,!$e(Ye)&&!(Ko(Z.expression)&8192))return PA(n.updateCallExpression(Z,Ye,void 0,Z.arguments),16)}return Z}function It(Z){if($e(Z.tag)){let Ye=Vt(Z.tag);if(J[Sa(Ye)]=!0,!$e(Ye)&&!(Ko(Z.tag)&8192))return PA(n.updateTaggedTemplateExpression(Z,Ye,void 0,Z.template),16)}return Z}function Vt(Z){var Ye,bt;if(Ko(Z)&8192){let Q=eB(L);return Q?n.createPropertyAccessExpression(Q,Z):Z}else if(!(Ec(Z)&&!(Z.emitNode.autoGenerate.flags&64))&&!P0(Z)){let Q=d.getReferencedExportContainer(Z,Qj(Z));if(Q&&Q.kind===307)return At(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(Z)),Z);let Xe=d.getReferencedImportDeclaration(Z);if(Xe){if(ng(Xe))return At(n.createPropertyAccessExpression(n.getGeneratedNameForNode(Xe.parent),n.createIdentifier("default")),Z);if(pf(Xe)){let z=Xe.propertyName||Xe.name;return At(n.createPropertyAccessExpression(n.getGeneratedNameForNode(((bt=(Ye=Xe.parent)==null?void 0:Ye.parent)==null?void 0:bt.parent)||Xe),n.cloneNode(z)),Z)}}}return Z}function Mt(Z){if(v0(Z.operatorToken.kind)&&$e(Z.left)&&(!Ec(Z.left)||J3(Z.left))&&!P0(Z.left)){let Ye=sr(Z.left);if(Ye){let bt=Z;for(let Q of Ye)J[Sa(bt)]=!0,bt=it(Q,bt,Z);return bt}}return Z}function sr(Z){if(Ec(Z)){if(J3(Z)){let Ye=F?.exportSpecifiers.get(Z);if(Ye){let bt=[];for(let Q of Ye)bt.push(Q.name);return bt}}}else{let Ye=d.getReferencedImportDeclaration(Z);if(Ye)return F?.exportedBindings[mf(Ye)];let bt=new Set,Q=d.getReferencedValueDeclarations(Z);if(Q){for(let Xe of Q){let z=F?.exportedBindings[mf(Xe)];if(z)for(let Ue of z)bt.add(Ue)}if(bt.size)return Os(bt)}}}}var IEt={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
            var __syncRequire = typeof module === "object" && typeof module.exports === "object";`};function Ahe(e){let{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,a=e.getCompilerOptions(),u=e.getEmitResolver(),m=e.getEmitHost(),d=e.onSubstituteNode,S=e.onEmitNode;e.onSubstituteNode=it,e.onEmitNode=Ce,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);let E=[],x=[],D=[],I=[],R,L,F,J,$,q,ee;return ag(e,W);function W(Z){if(Z.isDeclarationFile||!(eA(Z,a)||Z.transformFlags&8388608))return Z;let Ye=mf(Z);R=Z,q=Z,L=E[Ye]=MK(e,Z),F=t.createUniqueName("exports"),x[Ye]=F,J=I[Ye]=t.createUniqueName("context");let bt=pe(L.externalImports),Q=K(Z,bt),Xe=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,F),t.createParameterDeclaration(void 0,void 0,J)],void 0,Q),z=EM(t,Z,m,a),Ue=t.createArrayLiteralExpression(kr(bt,Re=>Re.name)),be=xn(t.updateSourceFile(Z,At(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,z?[z,Ue,Xe]:[Ue,Xe]))]),Z.statements)),2048);return a.outFile||ede(be,Q,Re=>!Re.scoped),ee&&(D[Ye]=ee,ee=void 0),R=void 0,L=void 0,F=void 0,J=void 0,$=void 0,q=void 0,be}function pe(Z){let Ye=new Map,bt=[];for(let Q of Z){let Xe=GA(t,Q,R,m,u,a);if(Xe){let z=Xe.text,Ue=Ye.get(z);Ue!==void 0?bt[Ue].externalImports.push(Q):(Ye.set(z,bt.length),bt.push({name:Xe,externalImports:[Q]}))}}return bt}function K(Z,Ye){let bt=[];n();let Q=q_(a,"alwaysStrict")||iu(R),Xe=t.copyPrologue(Z.statements,bt,Q,ne);bt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(J,t.createPropertyAccessExpression(J,"id")))]))),ct(L.externalHelpersImportDeclaration,ne,Ji);let z=Qr(Z.statements,ne,Ji,Xe);On(bt,$),Cy(bt,i());let Ue=re(bt),be=Z.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Re=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",ce(Ue,Ye)),t.createPropertyAssignment("execute",t.createFunctionExpression(be,void 0,void 0,void 0,[],void 0,t.createBlock(z,!0)))],!0);return bt.push(t.createReturnStatement(Re)),t.createBlock(bt,!0)}function re(Z){if(!L.hasExportStarsToExportValues)return;if(!Dt(L.exportedNames)&&L.exportedFunctions.size===0&&L.exportSpecifiers.size===0){let Xe=!1;for(let z of L.externalImports)if(z.kind===278&&z.exportClause){Xe=!0;break}if(!Xe){let z=ue(void 0);return Z.push(z),z.name}}let Ye=[];if(L.exportedNames)for(let Xe of L.exportedNames)Xe.escapedText!=="default"&&Ye.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Xe),t.createTrue()));for(let Xe of L.exportedFunctions)_i(Xe,2048)||(M.assert(!!Xe.name),Ye.push(t.createPropertyAssignment(t.createStringLiteralFromNode(Xe.name),t.createTrue())));let bt=t.createUniqueName("exportedNames");Z.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(bt,void 0,void 0,t.createObjectLiteralExpression(Ye,!0))])));let Q=ue(bt);return Z.push(Q),Q.name}function ue(Z){let Ye=t.createUniqueName("exportStar"),bt=t.createIdentifier("m"),Q=t.createIdentifier("n"),Xe=t.createIdentifier("exports"),z=t.createStrictInequality(Q,t.createStringLiteral("default"));return Z&&(z=t.createLogicalAnd(z,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(Z,"hasOwnProperty"),void 0,[Q])))),t.createFunctionDeclaration(void 0,void 0,Ye,void 0,[t.createParameterDeclaration(void 0,void 0,bt)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Xe,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(Q)]),bt,t.createBlock([xn(t.createIfStatement(z,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Xe,Q),t.createElementAccessExpression(bt,Q)))),1)])),t.createExpressionStatement(t.createCallExpression(F,void 0,[Xe]))],!0))}function ce(Z,Ye){let bt=[];for(let Q of Ye){let Xe=Et(Q.externalImports,be=>AN(t,be,R)),z=Xe?t.getGeneratedNameForNode(Xe):t.createUniqueName(""),Ue=[];for(let be of Q.externalImports){let Re=AN(t,be,R);switch(be.kind){case 272:if(!be.importClause)break;case 271:M.assert(Re!==void 0),Ue.push(t.createExpressionStatement(t.createAssignment(Re,z))),_i(be,32)&&Ue.push(t.createExpressionStatement(t.createCallExpression(F,void 0,[t.createStringLiteral(In(Re)),z])));break;case 278:if(M.assert(Re!==void 0),be.exportClause)if(Pd(be.exportClause)){let Ot=[];for(let Ht of be.exportClause.elements)Ot.push(t.createPropertyAssignment(t.createStringLiteral(In(Ht.name)),t.createElementAccessExpression(z,t.createStringLiteral(In(Ht.propertyName||Ht.name)))));Ue.push(t.createExpressionStatement(t.createCallExpression(F,void 0,[t.createObjectLiteralExpression(Ot,!0)])))}else Ue.push(t.createExpressionStatement(t.createCallExpression(F,void 0,[t.createStringLiteral(In(be.exportClause.name)),z])));else Ue.push(t.createExpressionStatement(t.createCallExpression(Z,void 0,[z])));break}}bt.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,z)],void 0,t.createBlock(Ue,!0)))}return t.createArrayLiteralExpression(bt,!0)}function ne(Z){switch(Z.kind){case 272:return le(Z);case 271:return de(Z);case 278:return me(Z);case 277:return Ae(Z);default:return Tr(Z)}}function le(Z){let Ye;return Z.importClause&&s(AN(t,Z,R)),Dh(lt(Ye,Z))}function me(Z){M.assertIsDefined(Z)}function de(Z){M.assert(cT(Z),"import= for internal module references should be handled in an earlier transformer.");let Ye;return s(AN(t,Z,R)),Dh(ze(Ye,Z))}function Ae(Z){if(Z.isExportEquals)return;let Ye=ct(Z.expression,ki,Pt);return yt(t.createIdentifier("default"),Ye,!0)}function xe(Z){_i(Z,32)?$=Ut($,t.updateFunctionDeclaration(Z,Qr(Z.modifiers,St,xc),Z.asteriskToken,t.getDeclarationName(Z,!0,!0),void 0,Qr(Z.parameters,ki,is),void 0,ct(Z.body,ki,Js))):$=Ut($,jr(Z,ki,e)),$=ft($,Z)}function te(Z){let Ye,bt=t.getLocalName(Z);return s(bt),Ye=Ut(Ye,At(t.createExpressionStatement(t.createAssignment(bt,At(t.createClassExpression(Qr(Z.modifiers,St,xc),Z.name,void 0,Qr(Z.heritageClauses,ki,mp),Qr(Z.members,ki,_u)),Z))),Z)),Ye=ft(Ye,Z),Dh(Ye)}function he(Z){if(!Ve(Z.declarationList))return ct(Z,ki,Ji);let Ye;if(aR(Z.declarationList)||oR(Z.declarationList)){let bt=Qr(Z.modifiers,St,xc),Q=[];for(let z of Z.declarationList.declarations)Q.push(t.updateVariableDeclaration(z,t.getGeneratedNameForNode(z.name),void 0,void 0,Pe(z,!1)));let Xe=t.updateVariableDeclarationList(Z.declarationList,Q);Ye=Ut(Ye,t.updateVariableStatement(Z,bt,Xe))}else{let bt,Q=_i(Z,32);for(let Xe of Z.declarationList.declarations)Xe.initializer?bt=Ut(bt,Pe(Xe,Q)):Te(Xe);bt&&(Ye=Ut(Ye,At(t.createExpressionStatement(t.inlineExpressions(bt)),Z)))}return Ye=tt(Ye,Z,!1),Dh(Ye)}function Te(Z){if($s(Z.name))for(let Ye of Z.name.elements)du(Ye)||Te(Ye);else s(t.cloneNode(Z.name))}function Ve(Z){return(Ko(Z)&4194304)===0&&(q.kind===307||(Bc(Z).flags&7)===0)}function Pe(Z,Ye){let bt=Ye?ke:De;return $s(Z.name)?y2(Z,ki,e,0,!1,bt):Z.initializer?bt(Z.name,ct(Z.initializer,ki,Pt)):Z.name}function ke(Z,Ye,bt){return Be(Z,Ye,bt,!0)}function De(Z,Ye,bt){return Be(Z,Ye,bt,!1)}function Be(Z,Ye,bt,Q){return s(t.cloneNode(Z)),Q?ir(Z,Mt(At(t.createAssignment(Z,Ye),bt))):Mt(At(t.createAssignment(Z,Ye),bt))}function lt(Z,Ye){if(L.exportEquals)return Z;let bt=Ye.importClause;if(!bt)return Z;bt.name&&(Z=gt(Z,bt));let Q=bt.namedBindings;if(Q)switch(Q.kind){case 274:Z=gt(Z,Q);break;case 275:for(let Xe of Q.elements)Z=gt(Z,Xe);break}return Z}function ze(Z,Ye){return L.exportEquals?Z:gt(Z,Ye)}function tt(Z,Ye,bt){if(L.exportEquals)return Z;for(let Q of Ye.declarationList.declarations)(Q.initializer||bt)&&(Z=we(Z,Q,bt));return Z}function we(Z,Ye,bt){if(L.exportEquals)return Z;if($s(Ye.name))for(let Q of Ye.name.elements)du(Q)||(Z=we(Z,Q,bt));else if(!Ec(Ye.name)){let Q;bt&&(Z=Qe(Z,Ye.name,t.getLocalName(Ye)),Q=In(Ye.name)),Z=gt(Z,Ye,Q)}return Z}function ft(Z,Ye){if(L.exportEquals)return Z;let bt;if(_i(Ye,32)){let Q=_i(Ye,2048)?t.createStringLiteral("default"):Ye.name;Z=Qe(Z,Q,t.getLocalName(Ye)),bt=Zd(Q)}return Ye.name&&(Z=gt(Z,Ye,bt)),Z}function gt(Z,Ye,bt){if(L.exportEquals)return Z;let Q=t.getDeclarationName(Ye),Xe=L.exportSpecifiers.get(Q);if(Xe)for(let z of Xe)z.name.escapedText!==bt&&(Z=Qe(Z,z.name,Q));return Z}function Qe(Z,Ye,bt,Q){return Z=Ut(Z,yt(Ye,bt,Q)),Z}function yt(Z,Ye,bt){let Q=t.createExpressionStatement(ir(Z,Ye));return x_(Q),bt||xn(Q,3072),Q}function ir(Z,Ye){let bt=$e(Z)?t.createStringLiteralFromNode(Z):Z;return xn(Ye,Ko(Ye)|3072),eu(t.createCallExpression(F,void 0,[bt,Ye]),Ye)}function Tr(Z){switch(Z.kind){case 243:return he(Z);case 262:return xe(Z);case 263:return te(Z);case 248:return Ar(Z,!0);case 249:return Vr(Z);case 250:return fr(Z);case 246:return Mi(Z);case 247:return br(Z);case 256:return Di(Z);case 254:return As(Z);case 245:return os(Z);case 255:return Ri(Z);case 269:return $r(Z);case 296:return Qs(Z);case 297:return He(Z);case 258:return Xt(Z);case 299:return qr(Z);case 241:return Pn(Z);default:return ki(Z)}}function Ar(Z,Ye){let bt=q;return q=Z,Z=t.updateForStatement(Z,ct(Z.initializer,Ye?tn:Vi,Td),ct(Z.condition,ki,Pt),ct(Z.incrementor,Vi,Pt),df(Z.statement,Ye?Tr:ki,e)),q=bt,Z}function Vr(Z){let Ye=q;return q=Z,Z=t.updateForInStatement(Z,tn(Z.initializer),ct(Z.expression,ki,Pt),df(Z.statement,Tr,e)),q=Ye,Z}function fr(Z){let Ye=q;return q=Z,Z=t.updateForOfStatement(Z,Z.awaitModifier,tn(Z.initializer),ct(Z.expression,ki,Pt),df(Z.statement,Tr,e)),q=Ye,Z}function ur(Z){return Fu(Z)&&Ve(Z)}function tn(Z){if(ur(Z)){let Ye;for(let bt of Z.declarations)Ye=Ut(Ye,Pe(bt,!1)),bt.initializer||Te(bt);return Ye?t.inlineExpressions(Ye):t.createOmittedExpression()}else return ct(Z,Vi,Td)}function Mi(Z){return t.updateDoStatement(Z,df(Z.statement,Tr,e),ct(Z.expression,ki,Pt))}function br(Z){return t.updateWhileStatement(Z,ct(Z.expression,ki,Pt),df(Z.statement,Tr,e))}function Di(Z){return t.updateLabeledStatement(Z,Z.label,M.checkDefined(ct(Z.statement,Tr,Ji,t.liftToBlock)))}function As(Z){return t.updateWithStatement(Z,ct(Z.expression,ki,Pt),M.checkDefined(ct(Z.statement,Tr,Ji,t.liftToBlock)))}function os(Z){return t.updateIfStatement(Z,ct(Z.expression,ki,Pt),M.checkDefined(ct(Z.thenStatement,Tr,Ji,t.liftToBlock)),ct(Z.elseStatement,Tr,Ji,t.liftToBlock))}function Ri(Z){return t.updateSwitchStatement(Z,ct(Z.expression,ki,Pt),M.checkDefined(ct(Z.caseBlock,Tr,PO)))}function $r(Z){let Ye=q;return q=Z,Z=t.updateCaseBlock(Z,Qr(Z.clauses,Tr,J5)),q=Ye,Z}function Qs(Z){return t.updateCaseClause(Z,ct(Z.expression,ki,Pt),Qr(Z.statements,Tr,Ji))}function He(Z){return jr(Z,Tr,e)}function Xt(Z){return jr(Z,Tr,e)}function qr(Z){let Ye=q;return q=Z,Z=t.updateCatchClause(Z,Z.variableDeclaration,M.checkDefined(ct(Z.block,Tr,Js))),q=Ye,Z}function Pn(Z){let Ye=q;return q=Z,Z=jr(Z,Tr,e),q=Ye,Z}function Ti(Z,Ye){if(!(Z.transformFlags&276828160))return Z;switch(Z.kind){case 248:return Ar(Z,!1);case 244:return uo(Z);case 217:return Ys(Z,Ye);case 354:return Sr(Z,Ye);case 226:if(Iv(Z))return ut(Z,Ye);break;case 213:if(Dp(Z))return ia(Z);break;case 224:case 225:return fe(Z,Ye)}return jr(Z,ki,e)}function ki(Z){return Ti(Z,!1)}function Vi(Z){return Ti(Z,!0)}function uo(Z){return t.updateExpressionStatement(Z,ct(Z.expression,Vi,Pt))}function Ys(Z,Ye){return t.updateParenthesizedExpression(Z,ct(Z.expression,Ye?Vi:ki,Pt))}function Sr(Z,Ye){return t.updatePartiallyEmittedExpression(Z,ct(Z.expression,Ye?Vi:ki,Pt))}function ia(Z){let Ye=GA(t,Z,R,m,u,a),bt=ct(Aa(Z.arguments),ki,Pt),Q=Ye&&(!bt||!jo(bt)||bt.text!==Ye.text)?Ye:bt;return t.createCallExpression(t.createPropertyAccessExpression(J,t.createIdentifier("import")),void 0,Q?[Q]:[])}function ut(Z,Ye){return Tt(Z.left)?y2(Z,ki,e,0,!Ye):jr(Z,ki,e)}function Tt(Z){if(Tu(Z,!0))return Tt(Z.left);if(kd(Z))return Tt(Z.expression);if(ko(Z))return Dt(Z.properties,Tt);if(Ku(Z))return Dt(Z.elements,Tt);if(m_(Z))return Tt(Z.name);if(ql(Z))return Tt(Z.initializer);if($e(Z)){let Ye=u.getReferencedExportContainer(Z);return Ye!==void 0&&Ye.kind===307}else return!1}function fe(Z,Ye){if((Z.operator===46||Z.operator===47)&&$e(Z.operand)&&!Ec(Z.operand)&&!P0(Z.operand)&&!m$(Z.operand)){let bt=It(Z.operand);if(bt){let Q,Xe=ct(Z.operand,ki,Pt);tS(Z)?Xe=t.updatePrefixUnaryExpression(Z,Xe):(Xe=t.updatePostfixUnaryExpression(Z,Xe),Ye||(Q=t.createTempVariable(s),Xe=t.createAssignment(Q,Xe),At(Xe,Z)),Xe=t.createComma(Xe,t.cloneNode(Z.operand)),At(Xe,Z));for(let z of bt)Xe=ir(z,Mt(Xe));return Q&&(Xe=t.createComma(Xe,Q),At(Xe,Z)),Xe}}return jr(Z,ki,e)}function St(Z){switch(Z.kind){case 95:case 90:return}return Z}function Ce(Z,Ye,bt){if(Ye.kind===307){let Q=mf(Ye);R=Ye,L=E[Q],F=x[Q],ee=D[Q],J=I[Q],ee&&delete D[Q],S(Z,Ye,bt),R=void 0,L=void 0,F=void 0,J=void 0,ee=void 0}else S(Z,Ye,bt)}function it(Z,Ye){return Ye=d(Z,Ye),sr(Ye)?Ye:Z===1?pt(Ye):Z===4?Me(Ye):Ye}function Me(Z){switch(Z.kind){case 304:return rt(Z)}return Z}function rt(Z){var Ye,bt;let Q=Z.name;if(!Ec(Q)&&!P0(Q)){let Xe=u.getReferencedImportDeclaration(Q);if(Xe){if(ng(Xe))return At(t.createPropertyAssignment(t.cloneNode(Q),t.createPropertyAccessExpression(t.getGeneratedNameForNode(Xe.parent),t.createIdentifier("default"))),Z);if(pf(Xe))return At(t.createPropertyAssignment(t.cloneNode(Q),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((bt=(Ye=Xe.parent)==null?void 0:Ye.parent)==null?void 0:bt.parent)||Xe),t.cloneNode(Xe.propertyName||Xe.name))),Z)}}return Z}function pt(Z){switch(Z.kind){case 80:return nr(Z);case 226:return Oe(Z);case 236:return Nt(Z)}return Z}function nr(Z){var Ye,bt;if(Ko(Z)&8192){let Q=eB(R);return Q?t.createPropertyAccessExpression(Q,Z):Z}if(!Ec(Z)&&!P0(Z)){let Q=u.getReferencedImportDeclaration(Z);if(Q){if(ng(Q))return At(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Q.parent),t.createIdentifier("default")),Z);if(pf(Q))return At(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((bt=(Ye=Q.parent)==null?void 0:Ye.parent)==null?void 0:bt.parent)||Q),t.cloneNode(Q.propertyName||Q.name)),Z)}}return Z}function Oe(Z){if(v0(Z.operatorToken.kind)&&$e(Z.left)&&(!Ec(Z.left)||J3(Z.left))&&!P0(Z.left)){let Ye=It(Z.left);if(Ye){let bt=Z;for(let Q of Ye)bt=ir(Q,Mt(bt));return bt}}return Z}function Nt(Z){return GP(Z)?t.createPropertyAccessExpression(J,t.createIdentifier("meta")):Z}function It(Z){let Ye,bt=Vt(Z);if(bt){let Q=u.getReferencedExportContainer(Z,!1);Q&&Q.kind===307&&(Ye=Ut(Ye,t.getDeclarationName(bt))),Ye=On(Ye,L?.exportedBindings[mf(bt)])}else if(Ec(Z)&&J3(Z)){let Q=L?.exportSpecifiers.get(Z);if(Q){let Xe=[];for(let z of Q)Xe.push(z.name);return Xe}}return Ye}function Vt(Z){if(!Ec(Z)){let Ye=u.getReferencedImportDeclaration(Z);if(Ye)return Ye;let bt=u.getReferencedValueDeclaration(Z);if(bt&&L?.exportedBindings[mf(bt)])return bt;let Q=u.getReferencedValueDeclarations(Z);if(Q){for(let Xe of Q)if(Xe!==bt&&L?.exportedBindings[mf(Xe)])return Xe}return bt}}function Mt(Z){return ee===void 0&&(ee=[]),ee[Sa(Z)]=!0,Z}function sr(Z){return ee&&Z.id&&ee[Z.id]}}function zK(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getEmitHost(),s=e.getEmitResolver(),a=e.getCompilerOptions(),u=Qo(a),m=e.onEmitNode,d=e.onSubstituteNode;e.onEmitNode=ee,e.onSubstituteNode=W,e.enableEmitNotification(307),e.enableSubstitution(80);let S,E,x;return ag(e,D);function D(K){if(K.isDeclarationFile)return K;if(iu(K)||Ad(a)){E=K,x=void 0;let re=I(K);return E=void 0,x&&(re=t.updateSourceFile(re,At(t.createNodeArray(cH(re.statements.slice(),x)),re.statements))),!iu(K)||J_(a)===200||Dt(re.statements,$3)?re:t.updateSourceFile(re,At(t.createNodeArray([...re.statements,SM(t)]),re.statements))}return K}function I(K){let re=NY(t,n(),K,a);if(re){let ue=[],ce=t.copyPrologue(K.statements,ue);return Ut(ue,re),On(ue,Qr(K.statements,R,Ji,ce)),t.updateSourceFile(K,At(t.createNodeArray(ue),K.statements))}else return jr(K,R,e)}function R(K){switch(K.kind){case 271:return J_(a)>=100?F(K):void 0;case 277:return $(K);case 278:return q(K)}return K}function L(K){let re=GA(t,K,M.checkDefined(E),i,s,a),ue=[];if(re&&ue.push(re),J_(a)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,ue);if(!x){let ne=t.createUniqueName("_createRequire",48),le=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),ne)])),t.createStringLiteral("module"),void 0),me=t.createUniqueName("__require",48),de=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(me,void 0,void 0,t.createCallExpression(t.cloneNode(ne),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],u>=2?2:0));x=[le,de]}let ce=x[1].declarationList.declarations[0].name;return M.assertNode(ce,$e),t.createCallExpression(t.cloneNode(ce),void 0,ue)}function F(K){M.assert(cT(K),"import= for internal module references should be handled in an earlier transformer.");let re;return re=Ut(re,Gn(At(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(K.name),void 0,void 0,L(K))],u>=2?2:0)),K),K)),re=J(re,K),Dh(re)}function J(K,re){return _i(re,32)&&(K=Ut(K,t.createExportDeclaration(void 0,re.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,In(re.name))])))),K}function $(K){return K.isExportEquals?J_(a)===200?Gn(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),K.expression)),K):void 0:K}function q(K){if(a.module!==void 0&&a.module>5||!K.exportClause||!qh(K.exportClause)||!K.moduleSpecifier)return K;let re=K.exportClause.name,ue=t.getGeneratedNameForNode(re),ce=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(ue)),K.moduleSpecifier,K.attributes);Gn(ce,K.exportClause);let ne=e9(K)?t.createExportDefault(ue):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,ue,re)]));return Gn(ne,K),[ce,ne]}function ee(K,re,ue){qi(re)?((iu(re)||Ad(a))&&a.importHelpers&&(S=new Map),m(K,re,ue),S=void 0):m(K,re,ue)}function W(K,re){return re=d(K,re),S&&$e(re)&&Ko(re)&8192?pe(re):re}function pe(K){let re=In(K),ue=S.get(re);return ue||S.set(re,ue=t.createUniqueName(re,48)),ue}}function khe(e){let t=e.onSubstituteNode,n=e.onEmitNode,i=zK(e),s=e.onSubstituteNode,a=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;let u=qK(e),m=e.onSubstituteNode,d=e.onEmitNode;e.onSubstituteNode=E,e.onEmitNode=x,e.enableSubstitution(307),e.enableEmitNotification(307);let S;return R;function E(F,J){return qi(J)?(S=J,t(F,J)):S?S.impliedNodeFormat===99?s(F,J):m(F,J):t(F,J)}function x(F,J,$){return qi(J)&&(S=J),S?S.impliedNodeFormat===99?a(F,J,$):d(F,J,$):n(F,J,$)}function D(F){return F.impliedNodeFormat===99?i:u}function I(F){if(F.isDeclarationFile)return F;S=F;let J=D(F)(F);return S=void 0,M.assert(qi(J)),J}function R(F){return F.kind===307?I(F):L(F)}function L(F){return e.factory.createBundle(kr(F.sourceFiles,I))}}function qB(e){return Ci(e)||Ds(e)||If(e)||Zo(e)||wg(e)||Tv(e)||mM(e)||LA(e)||_l(e)||Wg(e)||El(e)||is(e)||Cc(e)||C0(e)||nu(e)||sm(e)||Vc(e)||fE(e)||Hn(e)||cc(e)||Dn(e)||Qd(e)}function Phe(e){if(wg(e)||Tv(e))return t;return Wg(e)||_l(e)?i:jv(e);function t(a){let u=n(a);return u!==void 0?{diagnosticMessage:u,errorNode:e,typeName:e.name}:void 0}function n(a){return co(e)?a.errorModuleName?a.accessibility===2?v.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:v.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?a.errorModuleName?a.accessibility===2?v.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:v.Public_property_0_of_exported_class_has_or_is_using_private_name_1:a.errorModuleName?v.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:v.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(a){let u=s(a);return u!==void 0?{diagnosticMessage:u,errorNode:e,typeName:e.name}:void 0}function s(a){return co(e)?a.errorModuleName?a.accessibility===2?v.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:v.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?a.errorModuleName?a.accessibility===2?v.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:v.Public_method_0_of_exported_class_has_or_is_using_private_name_1:a.errorModuleName?v.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:v.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function jv(e){if(Ci(e)||Ds(e)||If(e)||Hn(e)||cc(e)||Dn(e)||Zo(e)||Vc(e))return n;return wg(e)||Tv(e)?i:mM(e)||LA(e)||_l(e)||Wg(e)||El(e)||fE(e)?s:is(e)?cp(e,e.parent)&&_i(e.parent,2)?n:a:Cc(e)?m:C0(e)?d:nu(e)?S:sm(e)||Qd(e)?E:M.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${M.formatSyntaxKind(e.kind)}`);function t(x){if(e.kind===260||e.kind===208)return x.errorModuleName?x.accessibility===2?v.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:v.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&_i(e.parent,2))return co(e)?x.errorModuleName?x.accessibility===2?v.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:v.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?x.errorModuleName?x.accessibility===2?v.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:v.Public_property_0_of_exported_class_has_or_is_using_private_name_1:x.errorModuleName?v.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:v.Property_0_of_exported_interface_has_or_is_using_private_name_1}function n(x){let D=t(x);return D!==void 0?{diagnosticMessage:D,errorNode:e,typeName:e.name}:void 0}function i(x){let D;return e.kind===178?co(e)?D=x.errorModuleName?v.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:v.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:D=x.errorModuleName?v.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:v.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:co(e)?D=x.errorModuleName?x.accessibility===2?v.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:v.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:D=x.errorModuleName?x.accessibility===2?v.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:v.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:D,errorNode:e.name,typeName:e.name}}function s(x){let D;switch(e.kind){case 180:D=x.errorModuleName?v.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:v.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:D=x.errorModuleName?v.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:v.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:D=x.errorModuleName?v.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:v.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:co(e)?D=x.errorModuleName?x.accessibility===2?v.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:v.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:v.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?D=x.errorModuleName?x.accessibility===2?v.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:v.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:v.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:D=x.errorModuleName?v.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:v.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:D=x.errorModuleName?x.accessibility===2?v.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:v.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:v.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return M.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:D,errorNode:e.name||e}}function a(x){let D=u(x);return D!==void 0?{diagnosticMessage:D,errorNode:e,typeName:e.name}:void 0}function u(x){switch(e.parent.kind){case 176:return x.errorModuleName?x.accessibility===2?v.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:v.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return x.errorModuleName?v.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:v.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return x.errorModuleName?v.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:v.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return x.errorModuleName?v.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:v.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return co(e.parent)?x.errorModuleName?x.accessibility===2?v.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:v.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?x.errorModuleName?x.accessibility===2?v.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:v.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:x.errorModuleName?v.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:v.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return x.errorModuleName?x.accessibility===2?v.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:v.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return x.errorModuleName?x.accessibility===2?v.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:v.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:v.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return M.fail(`Unknown parent for parameter: ${M.formatSyntaxKind(e.parent.kind)}`)}}function m(){let x;switch(e.parent.kind){case 263:x=v.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:x=v.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:x=v.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:x=v.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:x=v.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:co(e.parent)?x=v.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?x=v.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:x=v.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:x=v.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:x=v.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:x=v.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return M.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:x,errorNode:e,typeName:e.name}}function d(){let x;return ru(e.parent.parent)?x=mp(e.parent)&&e.parent.token===119?v.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?v.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:v.extends_clause_of_exported_class_has_or_is_using_private_name_0:x=v.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:x,errorNode:e,typeName:Ns(e.parent.parent)}}function S(){return{diagnosticMessage:v.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function E(x){return{diagnosticMessage:x.errorModuleName?v.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:v.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Qd(e)?M.checkDefined(e.typeExpression):e.type,typeName:Qd(e)?Ns(e):e.name}}}function Nhe(e){let t={219:v.Add_a_return_type_to_the_function_expression,218:v.Add_a_return_type_to_the_function_expression,174:v.Add_a_return_type_to_the_method,177:v.Add_a_return_type_to_the_get_accessor_declaration,178:v.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:v.Add_a_return_type_to_the_function_declaration,180:v.Add_a_return_type_to_the_function_declaration,169:v.Add_a_type_annotation_to_the_parameter_0,260:v.Add_a_type_annotation_to_the_variable_0,172:v.Add_a_type_annotation_to_the_property_0,171:v.Add_a_type_annotation_to_the_property_0,277:v.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={218:v.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:v.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:v.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:v.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:v.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:v.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,178:v.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,169:v.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:v.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:v.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:v.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:v.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:v.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:v.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:v.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:v.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:v.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return i;function i(F){if(Dr(F,mp))return mn(F,v.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Mg(F)||pE(F.parent))&&(xf(F)||nc(F)))return R(F);switch(M.type(F),F.kind){case 177:case 178:return a(F);case 167:case 304:case 305:return m(F);case 209:case 230:return d(F);case 174:case 180:case 218:case 219:case 262:return S(F);case 208:return E(F);case 172:case 260:return x(F);case 169:return D(F);case 303:return L(F.initializer);case 231:return I(F);default:return L(F)}}function s(F){let J=Dr(F,$=>pc($)||Ji($)||Ci($)||Ds($)||is($));if(J)return pc(J)?J:im(J)?Dr(J,$=>$a($)&&!Vc($)):Ji(J)?void 0:J}function a(F){let{getAccessor:J,setAccessor:$}=W1(F.symbol.declarations,F),q=(wg(F)?F.parameters[0]:F)??F,ee=mn(q,n[F.kind]);return $&&lo(ee,mn($,t[$.kind])),J&&lo(ee,mn(J,t[J.kind])),ee}function u(F,J){let $=s(F);if($){let q=pc($)||!$.name?"":Hc($.name,!1);lo(J,mn($,t[$.kind],q))}return J}function m(F){let J=mn(F,n[F.kind]);return u(F,J),J}function d(F){let J=mn(F,n[F.kind]);return u(F,J),J}function S(F){let J=mn(F,n[F.kind]);return u(F,J),lo(J,mn(F,t[F.kind])),J}function E(F){return mn(F,v.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}function x(F){let J=mn(F,n[F.kind]),$=Hc(F.name,!1);return lo(J,mn(F,t[F.kind],$)),J}function D(F){if(wg(F.parent))return a(F.parent);let J=e.requiresAddingImplicitUndefined(F);if(!J&&F.initializer)return L(F.initializer);let $=J?v.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations:n[F.kind],q=mn(F,$),ee=Hc(F.name,!1);return lo(q,mn(F,t[F.kind],ee)),q}function I(F){return L(F,v.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}function R(F){let J=mn(F,v.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Hc(F,!1));return u(F,J),J}function L(F,J){let $=s(F),q;if($){let ee=pc($)||!$.name?"":Hc($.name,!1),W=Dr(F.parent,pe=>pc(pe)||(Ji(pe)?"quit":!ff(pe)&&!cY(pe)&&!EO(pe)));$===W?(q=mn(F,J??n[$.kind]),lo(q,mn($,t[$.kind],ee))):(q=mn(F,J??v.Expression_type_can_t_be_inferred_with_isolatedDeclarations),lo(q,mn($,t[$.kind],ee)),lo(q,mn(F,v.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else q=mn(F,J??v.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return q}}function Dhe(e,t,n){let i=e.getCompilerOptions(),s=ti(M9(e,n),v9);return $M(t,e,U,i,n?xs(s,n)?[n]:ve:s,[WK],!1).diagnostics}var GM=531469;function WK(e){let t=()=>M.fail("Diagnostic emitted without context"),n=t,i=!0,s=!1,a=!1,u=!1,m=!1,d,S,E,x,{factory:D}=e,I=e.getEmitHost(),R={trackSymbol:me,reportInaccessibleThisError:he,reportInaccessibleUniqueSymbolError:xe,reportCyclicStructureError:te,reportPrivateInBaseOfClassExpression:de,reportLikelyUnsafeImportRequiredError:Te,reportTruncationError:Ve,moduleResolverHost:I,reportNonlocalAugmentation:Pe,reportNonSerializableProperty:ke,reportInferenceFallback:ne},L,F,J,$,q,ee,W=e.getEmitResolver(),pe=e.getCompilerOptions(),K=Nhe(W),{stripInternal:re,isolatedDeclarations:ue}=pe;return Be;function ce(fe){W.getPropertiesOfContainerFunction(fe).forEach(St=>{if(AA(St.valueDeclaration)){let Ce=Dn(St.valueDeclaration)?St.valueDeclaration.left:St.valueDeclaration;e.addDiagnostic(mn(Ce,v.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function))}})}function ne(fe){!ue||Pf(J)||Jr(fe)===J&&(Ci(fe)&&W.isExpandoFunctionDeclaration(fe)?ce(fe):e.addDiagnostic(K(fe)))}function le(fe){if(fe.accessibility===0){if(fe.aliasesToMakeVisible)if(!S)S=fe.aliasesToMakeVisible;else for(let St of fe.aliasesToMakeVisible)cl(S,St)}else if(fe.accessibility!==3){let St=n(fe);if(St)return St.typeName?e.addDiagnostic(mn(fe.errorNode||St.errorNode,St.diagnosticMessage,Hc(St.typeName),fe.errorSymbolName,fe.errorModuleName)):e.addDiagnostic(mn(fe.errorNode||St.errorNode,St.diagnosticMessage,fe.errorSymbolName,fe.errorModuleName)),!0}return!1}function me(fe,St,Ce){return fe.flags&262144?!1:le(W.isSymbolAccessible(fe,St,Ce,!0))}function de(fe){(L||F)&&e.addDiagnostic(mn(L||F,v.Property_0_of_exported_class_expression_may_not_be_private_or_protected,fe))}function Ae(){return L?Ya(L):F&&Ns(F)?Ya(Ns(F)):F&&pc(F)?F.isExportEquals?"export=":"default":"(Missing)"}function xe(){(L||F)&&e.addDiagnostic(mn(L||F,v.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ae(),"unique symbol"))}function te(){(L||F)&&e.addDiagnostic(mn(L||F,v.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Ae()))}function he(){(L||F)&&e.addDiagnostic(mn(L||F,v.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ae(),"this"))}function Te(fe){(L||F)&&e.addDiagnostic(mn(L||F,v.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Ae(),fe))}function Ve(){(L||F)&&e.addDiagnostic(mn(L||F,v.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Pe(fe,St,Ce){var it;let Me=(it=St.declarations)==null?void 0:it.find(pt=>Jr(pt)===fe),rt=ti(Ce.declarations,pt=>Jr(pt)!==fe);if(Me&&rt)for(let pt of rt)e.addDiagnostic(lo(mn(pt,v.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),mn(Me,v.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function ke(fe){(L||F)&&e.addDiagnostic(mn(L||F,v.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,fe))}function De(fe){let St=n;n=it=>it.errorNode&&qB(it.errorNode)?jv(it.errorNode)(it):{diagnosticMessage:it.errorModuleName?v.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:v.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:it.errorNode||fe};let Ce=W.getDeclarationStatementsForSourceFile(fe,GM,R);return n=St,Ce}function Be(fe){if(fe.kind===307&&fe.isDeclarationFile)return fe;if(fe.kind===308){s=!0,$=[],q=[],ee=[];let Oe=!1,Nt=D.createBundle(kr(fe.sourceFiles,Vt=>{if(Vt.isDeclarationFile)return;if(Oe=Oe||Vt.hasNoDefaultLib,J=Vt,d=Vt,S=void 0,x=!1,E=new Map,n=t,u=!1,m=!1,it(Vt),Jf(Vt)||Xd(Vt)){a=!1,i=!1;let sr=Pf(Vt)?D.createNodeArray(De(Vt)):Qr(Vt.statements,$r,Ji);return D.updateSourceFile(Vt,[D.createModuleDeclaration([D.createModifier(138)],D.createStringLiteral(e$(e.getEmitHost(),Vt)),D.createModuleBlock(At(D.createNodeArray(As(sr)),Vt.statements)))],!0,[],[],!1,[])}i=!0;let Mt=Pf(Vt)?D.createNodeArray(De(Vt)):Qr(Vt.statements,$r,Ji);return D.updateSourceFile(Vt,As(Mt),!0,[],[],!1,[])})),It=yi(Wu(r6(fe,I,!0).declarationFilePath));return Nt.syntheticFileReferences=nr(It),Nt.syntheticTypeReferences=rt(),Nt.syntheticLibReferences=pt(),Nt.hasNoDefaultLib=Oe,Nt}i=!0,u=!1,m=!1,d=fe,J=fe,n=t,s=!1,a=!1,x=!1,S=void 0,E=new Map,$=[],q=[],ee=[],it(J);let St;if(Pf(J))St=D.createNodeArray(De(fe));else{let Oe=Qr(fe.statements,$r,Ji);St=At(D.createNodeArray(As(Oe)),fe.statements),iu(fe)&&(!a||u&&!m)&&(St=At(D.createNodeArray([...St,SM(D)]),St))}let Ce=yi(Wu(r6(fe,I,!0).declarationFilePath));return D.updateSourceFile(fe,St,!0,nr(Ce),rt(),fe.hasNoDefaultLib,pt());function it(Oe){$=ds($,kr(Oe.referencedFiles,Nt=>[Oe,Nt])),q=ds(q,Oe.typeReferenceDirectives),ee=ds(ee,Oe.libReferenceDirectives)}function Me(Oe){let Nt={...Oe};return Nt.pos=-1,Nt.end=-1,Nt}function rt(){return Yi(q,Oe=>{if(Oe.preserve)return Me(Oe)})}function pt(){return Yi(ee,Oe=>{if(Oe.preserve)return Me(Oe)})}function nr(Oe){return Yi($,([Nt,It])=>{if(!It.preserve)return;let Vt=I.getSourceFileFromReference(Nt,It);if(!Vt)return;let Mt;if(Vt.isDeclarationFile)Mt=Vt.fileName;else{if(s&&xs(fe.sourceFiles,Vt))return;let Ye=r6(Vt,I,!0);Mt=Ye.declarationFilePath||Ye.jsFilePath||Vt.fileName}if(!Mt)return;let sr=GC(Oe,Mt,I.getCurrentDirectory(),I.getCanonicalFileName,!1),Z=Me(It);return Z.fileName=sr,Z})}}function lt(fe){if(fe.kind===80)return fe;return fe.kind===207?D.updateArrayBindingPattern(fe,Qr(fe.elements,St,j5)):D.updateObjectBindingPattern(fe,Qr(fe.elements,St,Zo));function St(Ce){return Ce.kind===232?Ce:(Ce.propertyName&&Go(Ce.propertyName)&&nc(Ce.propertyName.expression)&&fr(Ce.propertyName.expression,d),D.updateBindingElement(Ce,Ce.dotDotDotToken,Ce.propertyName,lt(Ce.name),void 0))}}function ze(fe,St,Ce){let it;x||(it=n,n=jv(fe));let Me=D.updateParameterDeclaration(fe,OEt(D,fe,St),fe.dotDotDotToken,lt(fe.name),W.isOptionalParameter(fe)?fe.questionToken||D.createToken(58):void 0,ft(fe,Ce||fe.type,!0),we(fe));return x||(n=it),Me}function tt(fe){return uMe(fe)&&!!fe.initializer&&W.isLiteralConstDeclaration(Ps(fe))}function we(fe){if(tt(fe)){let St=Vpe(fe.initializer);return Cj(St)||ne(fe),W.createLiteralConstValue(Ps(fe,uMe),R)}}function ft(fe,St,Ce){if(!Ce&&fp(fe,2)||tt(fe))return;let it=fe.kind===169&&W.requiresAddingImplicitUndefined(fe);if(St&&!it)return ct(St,os,wi);L=fe.name;let Me;x||(Me=n,n=jv(fe));let rt;switch(fe.kind){case 169:case 171:case 172:case 208:case 260:rt=W.createTypeOfDeclaration(fe,d,GM,R);break;case 262:case 180:case 173:case 174:case 177:case 179:rt=W.createReturnTypeOfSignatureDeclaration(fe,d,GM,R);break;default:M.assertNever(fe)}return L=void 0,x||(n=Me),rt??D.createKeywordTypeNode(133)}function gt(fe){switch(fe=Ps(fe),fe.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!W.isDeclarationVisible(fe);case 260:return!yt(fe);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Qe(fe){var St;if(fe.body)return!0;let Ce=(St=fe.symbol.declarations)==null?void 0:St.filter(it=>El(it)&&!it.body);return!Ce||Ce.indexOf(fe)===Ce.length-1}function yt(fe){return du(fe)?!1:$s(fe.name)?Dt(fe.name.elements,yt):W.isDeclarationVisible(fe)}function ir(fe,St,Ce){if(fp(fe,2))return D.createNodeArray();let it=kr(St,Me=>ze(Me,Ce));return it?D.createNodeArray(it,St.hasTrailingComma):D.createNodeArray()}function Tr(fe,St){let Ce;if(!St){let it=iE(fe);it&&(Ce=[ze(it)])}if(dp(fe)){let it;if(!St){let Me=aN(fe);if(Me){let rt=ut(fe,W1(ko(fe.parent)?fe.parent.properties:fe.parent.members,fe));it=ze(Me,void 0,rt)}}it||(it=D.createParameterDeclaration(void 0,void 0,"value")),Ce=Ut(Ce,it)}return D.createNodeArray(Ce||ve)}function Ar(fe,St){return fp(fe,2)?void 0:Qr(St,os,Cc)}function Vr(fe){return qi(fe)||sm(fe)||xl(fe)||ru(fe)||Xu(fe)||Us(fe)||fE(fe)||a2(fe)}function fr(fe,St){let Ce=W.isEntityNameVisible(fe,St);le(Ce)}function ur(fe,St){return Np(fe)&&Np(St)&&(fe.jsDoc=St.jsDoc),eu(fe,zg(St))}function tn(fe,St){if(St){if(a=a||fe.kind!==267&&fe.kind!==205,Ia(St)&&s){let Ce=Afe(e.getEmitHost(),W,fe);if(Ce)return D.createStringLiteral(Ce)}return St}}function Mi(fe){if(W.isDeclarationVisible(fe))if(fe.moduleReference.kind===283){let St=Dw(fe);return D.updateImportEqualsDeclaration(fe,fe.modifiers,fe.isTypeOnly,fe.name,D.updateExternalModuleReference(fe.moduleReference,tn(fe,St)))}else{let St=n;return n=jv(fe),fr(fe.moduleReference,d),n=St,fe}}function br(fe){if(!fe.importClause)return D.updateImportDeclaration(fe,fe.modifiers,fe.importClause,tn(fe,fe.moduleSpecifier),Di(fe.attributes));let St=fe.importClause&&fe.importClause.name&&W.isDeclarationVisible(fe.importClause)?fe.importClause.name:void 0;if(!fe.importClause.namedBindings)return St&&D.updateImportDeclaration(fe,fe.modifiers,D.updateImportClause(fe.importClause,fe.importClause.isTypeOnly,St,void 0),tn(fe,fe.moduleSpecifier),Di(fe.attributes));if(fe.importClause.namedBindings.kind===274){let it=W.isDeclarationVisible(fe.importClause.namedBindings)?fe.importClause.namedBindings:void 0;return St||it?D.updateImportDeclaration(fe,fe.modifiers,D.updateImportClause(fe.importClause,fe.importClause.isTypeOnly,St,it),tn(fe,fe.moduleSpecifier),Di(fe.attributes)):void 0}let Ce=Yi(fe.importClause.namedBindings.elements,it=>W.isDeclarationVisible(it)?it:void 0);if(Ce&&Ce.length||St)return D.updateImportDeclaration(fe,fe.modifiers,D.updateImportClause(fe.importClause,fe.importClause.isTypeOnly,St,Ce&&Ce.length?D.updateNamedImports(fe.importClause.namedBindings,Ce):void 0),tn(fe,fe.moduleSpecifier),Di(fe.attributes));if(W.isImportRequiredByAugmentation(fe))return ue&&e.addDiagnostic(mn(fe,v.Declaration_emit_for_this_file_requires_preserving_this_import_for_augmentations_This_is_not_supported_with_isolatedDeclarations)),D.updateImportDeclaration(fe,fe.modifiers,void 0,tn(fe,fe.moduleSpecifier),Di(fe.attributes))}function Di(fe){let St=UN(fe);return fe&&St!==void 0?fe:void 0}function As(fe){for(;kt(S);){let Ce=S.shift();if(!r9(Ce))return M.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${M.formatSyntaxKind(Ce.kind)}`);let it=i;i=Ce.parent&&qi(Ce.parent)&&!(iu(Ce.parent)&&s);let Me=Xt(Ce);i=it,E.set(mf(Ce),Me)}return Qr(fe,St,Ji);function St(Ce){if(r9(Ce)){let it=mf(Ce);if(E.has(it)){let Me=E.get(it);return E.delete(it),Me&&((Ms(Me)?Dt(Me,B5):B5(Me))&&(u=!0),qi(Ce.parent)&&(Ms(Me)?Dt(Me,$3):$3(Me))&&(a=!0)),Me}}return Ce}}function os(fe){if(Vi(fe))return;if(f_(fe)){if(gt(fe))return;if(y0(fe)){if(ue){if(!W.isDefinitelyReferenceToGlobalSymbolObject(fe.name.expression)){if(ru(fe.parent)||ko(fe.parent)){e.addDiagnostic(mn(fe,v.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));return}else if((Xu(fe.parent)||_f(fe.parent))&&!nc(fe.name.expression)){e.addDiagnostic(mn(fe,v.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations));return}}}else if(!W.isLateBound(Ps(fe))||!nc(fe.name.expression))return}}if(Us(fe)&&W.isImplementationOfOverload(fe)||Gde(fe))return;let St;Vr(fe)&&(St=d,d=fe);let Ce=n,it=qB(fe),Me=x,rt=(fe.kind===187||fe.kind===200)&&fe.parent.kind!==265;if((_l(fe)||Wg(fe))&&fp(fe,2))return fe.symbol&&fe.symbol.declarations&&fe.symbol.declarations[0]!==fe?void 0:pt(D.createPropertyDeclaration(Sr(fe),fe.name,void 0,void 0,void 0));if(it&&!x&&(n=jv(fe)),pE(fe)&&fr(fe.exprName,d),rt&&(x=!0),MEt(fe))switch(fe.kind){case 233:{(xf(fe.expression)||nc(fe.expression))&&fr(fe.expression,d);let nr=jr(fe,os,e);return pt(D.updateExpressionWithTypeArguments(nr,nr.expression,nr.typeArguments))}case 183:{fr(fe.typeName,d);let nr=jr(fe,os,e);return pt(D.updateTypeReferenceNode(nr,nr.typeName,nr.typeArguments))}case 180:return pt(D.updateConstructSignature(fe,Ar(fe,fe.typeParameters),ir(fe,fe.parameters),ft(fe,fe.type)));case 176:{let nr=D.createConstructorDeclaration(Sr(fe),ir(fe,fe.parameters,0),void 0);return pt(nr)}case 174:{if(es(fe.name))return pt(void 0);let nr=D.createMethodDeclaration(Sr(fe),void 0,fe.name,fe.questionToken,Ar(fe,fe.typeParameters),ir(fe,fe.parameters),ft(fe,fe.type),void 0);return pt(nr)}case 177:{if(es(fe.name))return pt(void 0);let nr=ut(fe,W1(ko(fe.parent)?fe.parent.properties:fe.parent.members,fe));return pt(D.updateGetAccessorDeclaration(fe,Sr(fe),fe.name,Tr(fe,fp(fe,2)),ft(fe,nr),void 0))}case 178:return es(fe.name)?pt(void 0):pt(D.updateSetAccessorDeclaration(fe,Sr(fe),fe.name,Tr(fe,fp(fe,2)),void 0));case 172:return es(fe.name)?pt(void 0):pt(D.updatePropertyDeclaration(fe,Sr(fe),fe.name,fe.questionToken,ft(fe,fe.type),we(fe)));case 171:return es(fe.name)?pt(void 0):pt(D.updatePropertySignature(fe,Sr(fe),fe.name,fe.questionToken,ft(fe,fe.type)));case 173:return es(fe.name)?pt(void 0):pt(D.updateMethodSignature(fe,Sr(fe),fe.name,fe.questionToken,Ar(fe,fe.typeParameters),ir(fe,fe.parameters),ft(fe,fe.type)));case 179:return pt(D.updateCallSignature(fe,Ar(fe,fe.typeParameters),ir(fe,fe.parameters),ft(fe,fe.type)));case 181:return pt(D.updateIndexSignature(fe,Sr(fe),ir(fe,fe.parameters),ct(fe.type,os,wi)||D.createKeywordTypeNode(133)));case 260:return $s(fe.name)?Pn(fe.name):(rt=!0,x=!0,pt(D.updateVariableDeclaration(fe,fe.name,void 0,ft(fe,fe.type),we(fe))));case 168:return Ri(fe)&&(fe.default||fe.constraint)?pt(D.updateTypeParameterDeclaration(fe,fe.modifiers,fe.name,void 0,void 0)):pt(jr(fe,os,e));case 194:{let nr=ct(fe.checkType,os,wi),Oe=ct(fe.extendsType,os,wi),Nt=d;d=fe.trueType;let It=ct(fe.trueType,os,wi);d=Nt;let Vt=ct(fe.falseType,os,wi);return M.assert(nr),M.assert(Oe),M.assert(It),M.assert(Vt),pt(D.updateConditionalTypeNode(fe,nr,Oe,It,Vt))}case 184:return pt(D.updateFunctionTypeNode(fe,Qr(fe.typeParameters,os,Cc),ir(fe,fe.parameters),M.checkDefined(ct(fe.type,os,wi))));case 185:return pt(D.updateConstructorTypeNode(fe,Sr(fe),Qr(fe.typeParameters,os,Cc),ir(fe,fe.parameters),M.checkDefined(ct(fe.type,os,wi))));case 205:return xv(fe)?pt(D.updateImportTypeNode(fe,D.updateLiteralTypeNode(fe.argument,tn(fe,fe.argument.literal)),fe.attributes,fe.qualifier,Qr(fe.typeArguments,os,wi),fe.isTypeOf)):pt(fe);default:M.assertNever(fe,`Attempted to process unhandled node kind: ${M.formatSyntaxKind(fe.kind)}`)}return jA(fe)&&Eo(J,fe.pos).line===Eo(J,fe.end).line&&xn(fe,1),pt(jr(fe,os,e));function pt(nr){return nr&&it&&y0(fe)&&ki(fe),Vr(fe)&&(d=St),it&&!x&&(n=Ce),rt&&(x=Me),nr===fe?nr:nr&&Gn(ur(nr,fe),fe)}}function Ri(fe){return fe.parent.kind===174&&fp(fe.parent,2)}function $r(fe){if(!REt(fe)||Vi(fe))return;switch(fe.kind){case 278:return qi(fe.parent)&&(a=!0),m=!0,D.updateExportDeclaration(fe,fe.modifiers,fe.isTypeOnly,fe.exportClause,tn(fe,fe.moduleSpecifier),Di(fe.attributes));case 277:{if(qi(fe.parent)&&(a=!0),m=!0,fe.expression.kind===80)return fe;{let Ce=D.createUniqueName("_default",16);n=()=>({diagnosticMessage:v.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:fe}),F=fe;let it=D.createVariableDeclaration(Ce,void 0,W.createTypeOfExpression(fe.expression,fe,GM,R),void 0);F=void 0;let Me=D.createVariableStatement(i?[D.createModifier(138)]:[],D.createVariableDeclarationList([it],2));return ur(Me,fe),cM(fe),[Me,D.updateExportAssignment(fe,fe.modifiers,Ce)]}}}let St=Xt(fe);return E.set(mf(fe),St),fe}function Qs(fe){if(nu(fe)||fp(fe,2048)||!Im(fe))return fe;let St=D.createModifiersFromModifierFlags(V_(fe)&131039);return D.replaceModifiers(fe,St)}function He(fe,St,Ce,it){let Me=D.updateModuleDeclaration(fe,St,Ce,it);if(U_(Me)||Me.flags&32)return Me;let rt=D.createModuleDeclaration(Me.modifiers,Me.name,Me.body,Me.flags|32);return Gn(rt,Me),At(rt,Me),rt}function Xt(fe){if(S)for(;GI(S,fe););if(Vi(fe))return;switch(fe.kind){case 271:return Mi(fe);case 272:return br(fe)}if(f_(fe)&>(fe)||Kg(fe)||Us(fe)&&W.isImplementationOfOverload(fe))return;let St;Vr(fe)&&(St=d,d=fe);let Ce=qB(fe),it=n;Ce&&(n=jv(fe));let Me=i;switch(fe.kind){case 265:{i=!1;let pt=rt(D.updateTypeAliasDeclaration(fe,Sr(fe),fe.name,Qr(fe.typeParameters,os,Cc),M.checkDefined(ct(fe.type,os,wi))));return i=Me,pt}case 264:return rt(D.updateInterfaceDeclaration(fe,Sr(fe),fe.name,Ar(fe,fe.typeParameters),Tt(fe.heritageClauses),Qr(fe.members,os,Gb)));case 262:{let pt=rt(D.updateFunctionDeclaration(fe,Sr(fe),void 0,fe.name,Ar(fe,fe.typeParameters),ir(fe,fe.parameters),ft(fe,fe.type),void 0));if(pt&&W.isExpandoFunctionDeclaration(fe)&&Qe(fe)){let nr=W.getPropertiesOfContainerFunction(fe);ue&&ce(fe);let Oe=CT.createModuleDeclaration(void 0,pt.name||D.createIdentifier("_default"),D.createModuleBlock([]),32);fa(Oe,d),Oe.locals=po(nr),Oe.symbol=nr[0].parent;let Nt=[],It=Yi(nr,bt=>{if(!AA(bt.valueDeclaration))return;let Q=Zi(bt.escapedName);if(!ap(Q,99))return;n=jv(bt.valueDeclaration);let Xe=W.createTypeOfDeclaration(bt.valueDeclaration,Oe,GM|-2147483648,R);n=it;let z=_A(Q),Ue=z?D.getGeneratedNameForNode(bt.valueDeclaration):D.createIdentifier(Q);z&&Nt.push([Ue,Q]);let be=D.createVariableDeclaration(Ue,void 0,Xe,void 0);return D.createVariableStatement(z?void 0:[D.createToken(95)],D.createVariableDeclarationList([be]))});Nt.length?It.push(D.createExportDeclaration(void 0,!1,D.createNamedExports(kr(Nt,([bt,Q])=>D.createExportSpecifier(!1,bt,Q))))):It=Yi(It,bt=>D.replaceModifiers(bt,0));let Vt=D.createModuleDeclaration(Sr(fe),fe.name,D.createModuleBlock(It),32);if(!fp(pt,2048))return[pt,Vt];let Mt=D.createModifiersFromModifierFlags(V_(pt)&-2081|128),sr=D.updateFunctionDeclaration(pt,Mt,void 0,pt.name,pt.typeParameters,pt.parameters,pt.type,void 0),Z=D.updateModuleDeclaration(Vt,Mt,Vt.name,Vt.body),Ye=D.createExportAssignment(void 0,!1,Vt.name);return qi(fe.parent)&&(a=!0),m=!0,[sr,Z,Ye]}else return pt}case 267:{i=!1;let pt=fe.body;if(pt&&pt.kind===268){let nr=u,Oe=m;m=!1,u=!1;let Nt=Qr(pt.statements,$r,Ji),It=As(Nt);fe.flags&33554432&&(u=!1),!Og(fe)&&!Ys(It)&&!m&&(u?It=D.createNodeArray([...It,SM(D)]):It=Qr(It,Qs,Ji));let Vt=D.updateModuleBlock(pt,It);i=Me,u=nr,m=Oe;let Mt=Sr(fe);return rt(He(fe,Mt,Yb(fe)?tn(fe,fe.name):fe.name,Vt))}else{i=Me;let nr=Sr(fe);i=!1,ct(pt,$r);let Oe=mf(pt),Nt=E.get(Oe);return E.delete(Oe),rt(He(fe,nr,fe.name,Nt))}}case 263:{L=fe.name,F=fe;let pt=D.createNodeArray(Sr(fe)),nr=Ar(fe,fe.typeParameters),Oe=Py(fe),Nt;if(Oe){let Ye=n;Nt=un(To(Oe.parameters,bt=>{if(!_i(bt,31)||Vi(bt))return;if(n=jv(bt),bt.name.kind===80)return ur(D.createPropertyDeclaration(Sr(bt),bt.name,bt.questionToken,ft(bt,bt.type),we(bt)),bt);return Q(bt.name);function Q(Xe){let z;for(let Ue of Xe.elements)du(Ue)||($s(Ue.name)&&(z=ds(z,Q(Ue.name))),z=z||[],z.push(D.createPropertyDeclaration(Sr(bt),Ue.name,void 0,ft(Ue,void 0),void 0)));return z}})),n=Ye}let Vt=Dt(fe.members,Ye=>!!Ye.name&&es(Ye.name))?[D.createPropertyDeclaration(void 0,D.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,Mt=ds(ds(Vt,Nt),Qr(fe.members,os,_u)),sr=D.createNodeArray(Mt),Z=Lg(fe);if(Z&&!nc(Z.expression)&&Z.expression.kind!==106){let Ye=fe.name?Zi(fe.name.escapedText):"default",bt=D.createUniqueName(`${Ye}_base`,16);n=()=>({diagnosticMessage:v.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:Z,typeName:fe.name});let Q=D.createVariableDeclaration(bt,void 0,W.createTypeOfExpression(Z.expression,fe,GM,R),void 0),Xe=D.createVariableStatement(i?[D.createModifier(138)]:[],D.createVariableDeclarationList([Q],2)),z=D.createNodeArray(kr(fe.heritageClauses,Ue=>{if(Ue.token===96){let be=n;n=jv(Ue.types[0]);let Re=D.updateHeritageClause(Ue,kr(Ue.types,Ot=>D.updateExpressionWithTypeArguments(Ot,bt,Qr(Ot.typeArguments,os,wi))));return n=be,Re}return D.updateHeritageClause(Ue,Qr(D.createNodeArray(ti(Ue.types,be=>nc(be.expression)||be.expression.kind===106)),os,C0))}));return[Xe,rt(D.updateClassDeclaration(fe,pt,fe.name,nr,z,sr))]}else{let Ye=Tt(fe.heritageClauses);return rt(D.updateClassDeclaration(fe,pt,fe.name,nr,Ye,sr))}}case 243:return rt(qr(fe));case 266:return rt(D.updateEnumDeclaration(fe,D.createNodeArray(Sr(fe)),fe.name,D.createNodeArray(Yi(fe.members,pt=>{if(Vi(pt))return;let nr=W.getEnumMemberValue(pt),Oe=nr?.value;ue&&pt.initializer&&nr?.hasExternalReferences&&!Go(pt.name)&&e.addDiagnostic(mn(pt,v.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations));let Nt=Oe===void 0?void 0:typeof Oe=="string"?D.createStringLiteral(Oe):Oe<0?D.createPrefixUnaryExpression(41,D.createNumericLiteral(-Oe)):D.createNumericLiteral(Oe);return ur(D.updateEnumMember(pt,pt.name,Nt),pt)}))))}return M.assertNever(fe,`Unhandled top-level node in declaration emit: ${M.formatSyntaxKind(fe.kind)}`);function rt(pt){return Vr(fe)&&(d=St),Ce&&(n=it),fe.kind===267&&(i=Me),pt===fe?pt:(F=void 0,L=void 0,pt&&Gn(ur(pt,fe),fe))}}function qr(fe){if(!Et(fe.declarationList.declarations,yt))return;let St=Qr(fe.declarationList.declarations,os,Ci);if(!kt(St))return;let Ce=D.createNodeArray(Sr(fe)),it;return aR(fe.declarationList)||oR(fe.declarationList)?(it=D.createVariableDeclarationList(St,2),Gn(it,fe.declarationList),At(it,fe.declarationList),eu(it,fe.declarationList)):it=D.updateVariableDeclarationList(fe.declarationList,St),D.updateVariableStatement(fe,Ce,it)}function Pn(fe){return rf(Yi(fe.elements,St=>Ti(St)))}function Ti(fe){if(fe.kind!==232&&fe.name)return yt(fe)?$s(fe.name)?Pn(fe.name):D.createVariableDeclaration(fe.name,void 0,ft(fe,void 0),void 0):void 0}function ki(fe){let St;x||(St=n,n=Phe(fe)),L=fe.name,M.assert(y0(fe));let it=fe.name.expression;fr(it,d),x||(n=St),L=void 0}function Vi(fe){return!!re&&!!fe&&y_e(fe,J)}function uo(fe){return pc(fe)||Cl(fe)}function Ys(fe){return Dt(fe,uo)}function Sr(fe){let St=V_(fe),Ce=ia(fe);return St===Ce?JM(fe.modifiers,it=>ci(it,Do),Do):D.createModifiersFromModifierFlags(Ce)}function ia(fe){let St=130030,Ce=i&&!wEt(fe)?128:0,it=fe.parent.kind===307;return(!it||s&&it&&iu(fe.parent))&&(St^=128,Ce=0),lMe(fe,St,Ce)}function ut(fe,St){let Ce=Ihe(fe);return!Ce&&fe!==St.firstAccessor&&(Ce=Ihe(St.firstAccessor),n=jv(St.firstAccessor)),!Ce&&St.secondAccessor&&fe!==St.secondAccessor&&(Ce=Ihe(St.secondAccessor),n=jv(St.secondAccessor)),Ce}function Tt(fe){return D.createNodeArray(ti(kr(fe,St=>D.updateHeritageClause(St,Qr(D.createNodeArray(ti(St.types,Ce=>nc(Ce.expression)||St.token===96&&Ce.expression.kind===106)),os,C0))),St=>St.types&&!!St.types.length))}}function wEt(e){return e.kind===264}function OEt(e,t,n,i){return e.createModifiersFromModifierFlags(lMe(t,n,i))}function lMe(e,t=131070,n=0){let i=V_(e)&t|n;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function Ihe(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function uMe(e){switch(e.kind){case 172:case 171:return!fp(e,2);case 169:case 260:return!0}return!1}function REt(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function MEt(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}function LEt(e){switch(e){case 99:case 7:case 6:case 5:case 200:return zK;case 4:return Ahe;case 100:case 199:return khe;default:return qK}}var whe={scriptTransformers:ve,declarationTransformers:ve};function Ohe(e,t,n){return{scriptTransformers:FEt(e,t,n),declarationTransformers:jEt(t)}}function FEt(e,t,n){if(n)return ve;let i=Qo(e),s=J_(e),a=XR(e),u=[];return On(u,t&&kr(t.before,fMe)),u.push(lhe),e.experimentalDecorators&&u.push(fhe),ij(e)&&u.push(bhe),i<99&&u.push(vhe),!e.experimentalDecorators&&(i<99||!a)&&u.push(phe),u.push(uhe),i<8&&u.push(yhe),i<7&&u.push(hhe),i<6&&u.push(ghe),i<5&&u.push(mhe),i<4&&u.push(dhe),i<3&&u.push(Ehe),i<2&&(u.push(xhe),u.push(Che)),u.push(LEt(s)),On(u,t&&kr(t.after,fMe)),u}function jEt(e){let t=[];return t.push(WK),On(t,e&&kr(e.afterDeclarations,UEt)),t}function BEt(e){return t=>Xde(t)?e.transformBundle(t):e.transformSourceFile(t)}function _Me(e,t){return n=>{let i=e(n);return typeof i=="function"?t(n,i):BEt(i)}}function fMe(e){return _Me(e,ag)}function UEt(e){return _Me(e,(t,n)=>n)}function t6(e,t){return t}function HM(e,t,n){n(e,t)}function $M(e,t,n,i,s,a,u){var m,d;let S=new Array(357),E,x,D,I=0,R=[],L=[],F=[],J=[],$=0,q=!1,ee=[],W=0,pe,K,re=t6,ue=HM,ce=0,ne=[],le={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:nf(()=>ode(le)),startLexicalEnvironment:ze,suspendLexicalEnvironment:tt,resumeLexicalEnvironment:we,endLexicalEnvironment:ft,setLexicalEnvironmentFlags:gt,getLexicalEnvironmentFlags:Qe,hoistVariableDeclaration:De,hoistFunctionDeclaration:Be,addInitializationStatement:lt,startBlockScope:yt,endBlockScope:ir,addBlockScopedVariable:Tr,requestEmitHelper:Ar,readEmitHelpers:Vr,enableSubstitution:te,enableEmitNotification:Ve,isSubstitutionEnabled:he,isEmitNotificationEnabled:Pe,get onSubstituteNode(){return re},set onSubstituteNode(ur){M.assert(ce<1,"Cannot modify transformation hooks after initialization has completed."),M.assert(ur!==void 0,"Value must not be 'undefined'"),re=ur},get onEmitNode(){return ue},set onEmitNode(ur){M.assert(ce<1,"Cannot modify transformation hooks after initialization has completed."),M.assert(ur!==void 0,"Value must not be 'undefined'"),ue=ur},addDiagnostic(ur){ne.push(ur)}};for(let ur of s)K$(Jr(Ps(ur)));jc("beforeTransform");let me=a.map(ur=>ur(le)),de=ur=>{for(let tn of me)ur=tn(ur);return ur};ce=1;let Ae=[];for(let ur of s)(m=kn)==null||m.push(kn.Phase.Emit,"transformNodes",ur.kind===307?{path:ur.path}:{kind:ur.kind,pos:ur.pos,end:ur.end}),Ae.push((u?de:xe)(ur)),(d=kn)==null||d.pop();return ce=2,jc("afterTransform"),Sd("transformTime","beforeTransform","afterTransform"),{transformed:Ae,substituteNode:Te,emitNodeWithNotification:ke,isEmitNotificationEnabled:Pe,dispose:fr,diagnostics:ne};function xe(ur){return ur&&(!qi(ur)||!ur.isDeclarationFile)?de(ur):ur}function te(ur){M.assert(ce<2,"Cannot modify the transformation context after transformation has completed."),S[ur]|=1}function he(ur){return(S[ur.kind]&1)!==0&&(Ko(ur)&8)===0}function Te(ur,tn){return M.assert(ce<3,"Cannot substitute a node after the result is disposed."),tn&&he(tn)&&re(ur,tn)||tn}function Ve(ur){M.assert(ce<2,"Cannot modify the transformation context after transformation has completed."),S[ur]|=2}function Pe(ur){return(S[ur.kind]&2)!==0||(Ko(ur)&4)!==0}function ke(ur,tn,Mi){M.assert(ce<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),tn&&(Pe(tn)?ue(ur,tn,Mi):Mi(ur,tn))}function De(ur){M.assert(ce>0,"Cannot modify the lexical environment during initialization."),M.assert(ce<2,"Cannot modify the lexical environment after transformation has completed.");let tn=xn(n.createVariableDeclaration(ur),128);E?E.push(tn):E=[tn],I&1&&(I|=2)}function Be(ur){M.assert(ce>0,"Cannot modify the lexical environment during initialization."),M.assert(ce<2,"Cannot modify the lexical environment after transformation has completed."),xn(ur,2097152),x?x.push(ur):x=[ur]}function lt(ur){M.assert(ce>0,"Cannot modify the lexical environment during initialization."),M.assert(ce<2,"Cannot modify the lexical environment after transformation has completed."),xn(ur,2097152),D?D.push(ur):D=[ur]}function ze(){M.assert(ce>0,"Cannot modify the lexical environment during initialization."),M.assert(ce<2,"Cannot modify the lexical environment after transformation has completed."),M.assert(!q,"Lexical environment is suspended."),R[$]=E,L[$]=x,F[$]=D,J[$]=I,$++,E=void 0,x=void 0,D=void 0,I=0}function tt(){M.assert(ce>0,"Cannot modify the lexical environment during initialization."),M.assert(ce<2,"Cannot modify the lexical environment after transformation has completed."),M.assert(!q,"Lexical environment is already suspended."),q=!0}function we(){M.assert(ce>0,"Cannot modify the lexical environment during initialization."),M.assert(ce<2,"Cannot modify the lexical environment after transformation has completed."),M.assert(q,"Lexical environment is not suspended."),q=!1}function ft(){M.assert(ce>0,"Cannot modify the lexical environment during initialization."),M.assert(ce<2,"Cannot modify the lexical environment after transformation has completed."),M.assert(!q,"Lexical environment is suspended.");let ur;if(E||x||D){if(x&&(ur=[...x]),E){let tn=n.createVariableStatement(void 0,n.createVariableDeclarationList(E));xn(tn,2097152),ur?ur.push(tn):ur=[tn]}D&&(ur?ur=[...ur,...D]:ur=[...D])}return $--,E=R[$],x=L[$],D=F[$],I=J[$],$===0&&(R=[],L=[],F=[],J=[]),ur}function gt(ur,tn){I=tn?I|ur:I&~ur}function Qe(){return I}function yt(){M.assert(ce>0,"Cannot start a block scope during initialization."),M.assert(ce<2,"Cannot start a block scope after transformation has completed."),ee[W]=pe,W++,pe=void 0}function ir(){M.assert(ce>0,"Cannot end a block scope during initialization."),M.assert(ce<2,"Cannot end a block scope after transformation has completed.");let ur=Dt(pe)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(pe.map(tn=>n.createVariableDeclaration(tn)),1))]:void 0;return W--,pe=ee[W],W===0&&(ee=[]),ur}function Tr(ur){M.assert(W>0,"Cannot add a block scoped variable outside of an iteration body."),(pe||(pe=[])).push(ur)}function Ar(ur){if(M.assert(ce>0,"Cannot modify the transformation context during initialization."),M.assert(ce<2,"Cannot modify the transformation context after transformation has completed."),M.assert(!ur.scoped,"Cannot request a scoped emit helper."),ur.dependencies)for(let tn of ur.dependencies)Ar(tn);K=Ut(K,ur)}function Vr(){M.assert(ce>0,"Cannot modify the transformation context during initialization."),M.assert(ce<2,"Cannot modify the transformation context after transformation has completed.");let ur=K;return K=void 0,ur}function fr(){if(ce<3){for(let ur of s)K$(Jr(Ps(ur)));E=void 0,R=void 0,x=void 0,L=void 0,re=void 0,ue=void 0,K=void 0,ce=3}}}var YM={factory:U,getCompilerOptions:()=>({}),getEmitResolver:fo,getEmitHost:fo,getEmitHelperFactory:fo,startLexicalEnvironment:aa,resumeLexicalEnvironment:aa,suspendLexicalEnvironment:aa,endLexicalEnvironment:Vb,setLexicalEnvironmentFlags:aa,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:aa,hoistFunctionDeclaration:aa,addInitializationStatement:aa,startBlockScope:aa,endBlockScope:Vb,addBlockScopedVariable:aa,requestEmitHelper:aa,readEmitHelpers:fo,enableSubstitution:aa,enableEmitNotification:aa,isSubstitutionEnabled:fo,isEmitNotificationEnabled:fo,onSubstituteNode:t6,onEmitNode:HM,addDiagnostic:aa},pMe=VEt();function Rhe(e){return wc(e,".tsbuildinfo")}function GK(e,t,n,i=!1,s,a){let u=Ms(n)?n:M9(e,n,i),m=e.getCompilerOptions();if(m.outFile){if(u.length){let d=U.createBundle(u),S=t(r6(d,e,i),d);if(S)return S}}else{if(!s)for(let d of u){let S=t(r6(d,e,i),d);if(S)return S}if(a){let d=Bv(m);if(d)return t({buildInfoPath:d},void 0)}}}function Bv(e){let t=e.configFilePath;if(!tO(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let n=e.outFile,i;if(n)i=lf(n);else{if(!t)return;let s=lf(t);i=e.outDir?e.rootDir?QS(e.outDir,Km(e.rootDir,s,!0)):ii(e.outDir,Ul(s)):s}return i+".tsbuildinfo"}function zB(e,t){let n=e.outFile,i=e.emitDeclarationOnly?void 0:n,s=i&&dMe(i,e),a=t||Hp(e)?lf(n)+".d.ts":void 0,u=a&&Z9(e)?a+".map":void 0,m=Bv(e);return{jsFilePath:i,sourceMapFilePath:s,declarationFilePath:a,declarationMapPath:u,buildInfoPath:m}}function r6(e,t,n){let i=t.getCompilerOptions();if(e.kind===308)return zB(i,n);{let s=kfe(e.fileName,t,WB(e.fileName,i)),a=Xd(e),u=a&&f0(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,m=i.emitDeclarationOnly||u?void 0:s,d=!m||Xd(e)?void 0:dMe(m,i),S=n||Hp(i)&&!a?Pfe(e.fileName,t):void 0,E=S&&Z9(i)?S+".map":void 0;return{jsFilePath:m,sourceMapFilePath:d,declarationFilePath:S,declarationMapPath:E,buildInfoPath:void 0}}}function dMe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function WB(e,t){return wc(e,".json")?".json":t.jsx===1&&Il(e,[".jsx",".tsx"])?".jsx":Il(e,[".mts",".mjs"])?".mjs":Il(e,[".cts",".cjs"])?".cjs":".js"}function mMe(e,t,n,i){return n?QS(n,Km(i(),e,t)):e}function BN(e,t,n,i=()=>rk(t,n)){return HK(e,t.options,n,i)}function HK(e,t,n,i){return Y1(mMe(e,n,t.declarationDir||t.outDir,i),O9(e))}function gMe(e,t,n,i=()=>rk(t,n)){if(t.options.emitDeclarationOnly)return;let s=wc(e,".json"),a=$K(e,t.options,n,i);return!s||f0(e,a,M.checkDefined(t.options.configFilePath),n)!==0?a:void 0}function $K(e,t,n,i){return Y1(mMe(e,n,t.outDir,i),WB(e,t))}function hMe(){let e;return{addOutput:t,getOutputs:n};function t(i){i&&(e||(e=[])).push(i)}function n(){return e||ve}}function yMe(e,t){let{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:a,buildInfoPath:u}=zB(e.options,!1);t(n),t(i),t(s),t(a),t(u)}function vMe(e,t,n,i,s){if(ju(t))return;let a=gMe(t,e,n,s);if(i(a),!wc(t,".json")&&(a&&e.options.sourceMap&&i(`${a}.map`),Hp(e.options))){let u=BN(t,e,n,s);i(u),e.options.declarationMap&&i(`${u}.map`)}}function n6(e,t,n,i,s){let a;return e.rootDir?(a=Cs(e.rootDir,n),s?.(e.rootDir)):e.composite&&e.configFilePath?(a=yi(Wu(e.configFilePath)),s?.(a)):a=Jhe(t(),n,i),a&&a[a.length-1]!==bc&&(a+=bc),a}function rk({options:e,fileNames:t},n){return n6(e,()=>ti(t,i=>!(e.noEmitForJsFiles&&Il(i,fN))&&!ju(i)),yi(Wu(M.checkDefined(e.configFilePath))),__(!n))}function GB(e,t){let{addOutput:n,getOutputs:i}=hMe();if(e.options.outFile)yMe(e,n);else{let s=nf(()=>rk(e,t));for(let a of e.fileNames)vMe(e,a,t,n,s);n(Bv(e.options))}return i()}function SMe(e,t,n){t=eo(t),M.assert(xs(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:s}=hMe();return e.options.outFile?yMe(e,i):vMe(e,t,n,i),s()}function YK(e,t){if(e.options.outFile){let{jsFilePath:s,declarationFilePath:a}=zB(e.options,!1);return M.checkDefined(s||a,`project ${e.options.configFilePath} expected to have at least one output`)}let n=nf(()=>rk(e,t));for(let s of e.fileNames){if(ju(s))continue;let a=gMe(s,e,t,n);if(a)return a;if(!wc(s,".json")&&Hp(e.options))return BN(s,e,t,n)}let i=Bv(e.options);return i||M.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function KK(e,t){return!!t&&!!e}function XK(e,t,n,{scriptTransformers:i,declarationTransformers:s},a,u,m){var d=t.getCompilerOptions(),S=d.sourceMap||d.inlineSourceMap||Z9(d)?[]:void 0,E=d.listEmittedFiles?[]:void 0,x=qw(),D=wv(d),I=UR(D),{enter:R,exit:L}=QW("printTime","beforePrint","afterPrint"),F=!1;return R(),GK(t,J,M9(t,n,m),m,u,!n),L(),{emitSkipped:F,diagnostics:x.getDiagnostics(),emittedFiles:E,sourceMaps:S};function J({jsFilePath:le,sourceMapFilePath:me,declarationFilePath:de,declarationMapPath:Ae,buildInfoPath:xe},te){var he,Te,Ve,Pe,ke,De;(he=kn)==null||he.push(kn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:le}),q(te,le,me),(Te=kn)==null||Te.pop(),(Ve=kn)==null||Ve.push(kn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:de}),ee(te,de,Ae),(Pe=kn)==null||Pe.pop(),(ke=kn)==null||ke.push(kn.Phase.Emit,"emitBuildInfo",{buildInfoPath:xe}),$(xe),(De=kn)==null||De.pop()}function $(le){if(!le||n||F)return;if(t.isEmitBlocked(le)){F=!0;return}let me=t.getBuildInfo()||HB(void 0);VR(t,x,le,Mhe(me),!1,void 0,{buildInfo:me}),E?.push(le)}function q(le,me,de){if(!le||a||!me)return;if(t.isEmitBlocked(me)||d.noEmit){F=!0;return}(qi(le)?[le]:ti(le.sourceFiles,v9)).forEach(he=>{(d.noCheck||!tM(he,d))&&pe(he)});let Ae=$M(e,t,U,d,[le],i,!1),xe={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:d.noEmitHelpers,module:J_(d),target:Qo(d),sourceMap:d.sourceMap,inlineSourceMap:d.inlineSourceMap,inlineSources:d.inlineSources,extendedDiagnostics:d.extendedDiagnostics},te=aS(xe,{hasGlobalName:e.hasGlobalName,onEmitNode:Ae.emitNodeWithNotification,isEmitNotificationEnabled:Ae.isEmitNotificationEnabled,substituteNode:Ae.substituteNode});M.assert(Ae.transformed.length===1,"Should only see one output from the transform"),K(me,de,Ae,te,d),Ae.dispose(),E&&(E.push(me),de&&E.push(de))}function ee(le,me,de){if(!le||a===0)return;if(!me){(a||d.emitDeclarationOnly)&&(F=!0);return}let Ae=qi(le)?[le]:le.sourceFiles,xe=m?Ae:ti(Ae,v9),te=d.outFile?[U.createBundle(xe)]:xe;xe.forEach(Ve=>{(a&&!Hp(d)||d.noCheck||KK(a,m)||!tM(Ve,d))&&W(Ve)});let he=$M(e,t,U,d,te,s,!1);if(kt(he.diagnostics))for(let Ve of he.diagnostics)x.add(Ve);let Te=!!he.diagnostics&&!!he.diagnostics.length||!!t.isEmitBlocked(me)||!!d.noEmit;if(F=F||Te,!Te||m){M.assert(he.transformed.length===1,"Should only see one output from the decl transform");let Ve={removeComments:d.removeComments,newLine:d.newLine,noEmitHelpers:!0,module:d.module,target:d.target,sourceMap:a!==2&&d.declarationMap,inlineSourceMap:d.inlineSourceMap,extendedDiagnostics:d.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0},Pe=aS(Ve,{hasGlobalName:e.hasGlobalName,onEmitNode:he.emitNodeWithNotification,isEmitNotificationEnabled:he.isEmitNotificationEnabled,substituteNode:he.substituteNode});K(me,de,he,Pe,{sourceMap:Ve.sourceMap,sourceRoot:d.sourceRoot,mapRoot:d.mapRoot,extendedDiagnostics:d.extendedDiagnostics}),E&&(E.push(me),de&&E.push(de))}he.dispose()}function W(le){if(pc(le)){le.expression.kind===80&&e.collectLinkedAliases(le.expression,!0);return}else if(E_(le)){e.collectLinkedAliases(le.propertyName||le.name,!0);return}qs(le,W)}function pe(le){HA(le,me=>{if(nu(me)&&!(Dv(me)&32)||Yc(me))return"skip";e.markLinkedReferences(me)})}function K(le,me,de,Ae,xe){let te=de.transformed[0],he=te.kind===308?te:void 0,Te=te.kind===307?te:void 0,Ve=he?he.sourceFiles:[Te],Pe;re(xe,te)&&(Pe=Bge(t,Ul(Wu(le)),ue(xe),ce(xe,le,Te),xe)),he?Ae.writeBundle(he,I,Pe):Ae.writeFile(Te,I,Pe);let ke;if(Pe){S&&S.push({inputSourceFileNames:Pe.getSources(),sourceMap:Pe.toJSON()});let Be=ne(xe,Pe,le,me,Te);if(Be&&(I.isAtStartOfLine()||I.rawWrite(D),ke=I.getTextPos(),I.writeComment(`//# sourceMappingURL=${Be}`)),me){let lt=Pe.toString();VR(t,x,me,lt,!1,Ve)}}else I.writeLine();let De=I.getText();VR(t,x,le,De,!!d.emitBOM,Ve,{sourceMapUrlPos:ke,diagnostics:de.diagnostics}),I.clear()}function re(le,me){return(le.sourceMap||le.inlineSourceMap)&&(me.kind!==307||!wc(me.fileName,".json"))}function ue(le){let me=Wu(le.sourceRoot||"");return me&&vu(me)}function ce(le,me,de){if(le.sourceRoot)return t.getCommonSourceDirectory();if(le.mapRoot){let Ae=Wu(le.mapRoot);return de&&(Ae=yi(L9(de.fileName,t,Ae))),Oh(Ae)===0&&(Ae=ii(t.getCommonSourceDirectory(),Ae)),Ae}return yi(eo(me))}function ne(le,me,de,Ae,xe){if(le.inlineSourceMap){let he=me.toString();return`data:application/json;base64,${$fe(uu,he)}`}let te=Ul(Wu(M.checkDefined(Ae)));if(le.mapRoot){let he=Wu(le.mapRoot);return xe&&(he=yi(L9(xe.fileName,t,he))),Oh(he)===0?(he=ii(t.getCommonSourceDirectory(),he),encodeURI(GC(yi(eo(de)),ii(he,te),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(ii(he,te))}return encodeURI(te)}}function HB(e){return{program:e,version:se}}function Mhe(e){return JSON.stringify(e)}function QK(e,t){return f$(e,t)}var Lhe={hasGlobalName:fo,getReferencedExportContainer:fo,getReferencedImportDeclaration:fo,getReferencedDeclarationWithCollidingName:fo,isDeclarationWithCollidingName:fo,isValueAliasDeclaration:fo,isReferencedAliasDeclaration:fo,isTopLevelValueImportEqualsWithEntityName:fo,hasNodeCheckFlag:fo,isDeclarationVisible:fo,isLateBound:e=>!1,collectLinkedAliases:fo,markLinkedReferences:fo,isImplementationOfOverload:fo,requiresAddingImplicitUndefined:fo,isExpandoFunctionDeclaration:fo,getPropertiesOfContainerFunction:fo,createTypeOfDeclaration:fo,createReturnTypeOfSignatureDeclaration:fo,createTypeOfExpression:fo,createLiteralConstValue:fo,isSymbolAccessible:fo,isEntityNameVisible:fo,getConstantValue:fo,getEnumMemberValue:fo,getReferencedValueDeclaration:fo,getReferencedValueDeclarations:fo,getTypeReferenceSerializationKind:fo,isOptionalParameter:fo,isArgumentsLocalBinding:fo,getExternalModuleFileFromDeclaration:fo,isLiteralConstDeclaration:fo,getJsxFactoryEntity:fo,getJsxFragmentFactoryEntity:fo,isBindingCapturedByNode:fo,getDeclarationStatementsForSourceFile:fo,isImportRequiredByAugmentation:fo,isDefinitelyReferenceToGlobalSymbolObject:fo},Fhe=nf(()=>aS({})),v2=nf(()=>aS({removeComments:!0})),jhe=nf(()=>aS({removeComments:!0,neverAsciiEscape:!0})),$B=nf(()=>aS({removeComments:!0,omitTrailingSemicolon:!0}));function aS(e={},t={}){var{hasGlobalName:n,onEmitNode:i=HM,isEmitNotificationEnabled:s,substituteNode:a=t6,onBeforeEmitNode:u,onAfterEmitNode:m,onBeforeEmitNodeArray:d,onAfterEmitNodeArray:S,onBeforeEmitToken:E,onAfterEmitToken:x}=t,D=!!e.extendedDiagnostics,I=!!e.omitBraceSourceMapPositions,R=wv(e),L=J_(e),F=new Map,J,$,q,ee,W,pe,K,re,ue,ce,ne,le,me,de,Ae,xe=e.preserveSourceNewlines,te,he,Te,Ve=U6,Pe,ke=!0,De,Be,lt=-1,ze,tt=-1,we=-1,ft=-1,gt=-1,Qe,yt,ir=!1,Tr=!!e.removeComments,Ar,Vr,{enter:fr,exit:ur}=gOe(D,"commentTime","beforeComment","afterComment"),tn=U.parenthesizer,Mi={select:O=>O===0?tn.parenthesizeLeadingTypeArgument:void 0},br=au();return uo(),{printNode:Di,printList:As,printFile:Ri,printBundle:os,writeNode:$r,writeList:Qs,writeFile:Xt,writeBundle:He};function Di(O,ye,wt){switch(O){case 0:M.assert(qi(ye),"Expected a SourceFile node.");break;case 2:M.assert($e(ye),"Expected an Identifier node.");break;case 1:M.assert(Pt(ye),"Expected an Expression node.");break}switch(ye.kind){case 307:return Ri(ye);case 308:return os(ye)}return $r(O,ye,wt,qr()),Pn()}function As(O,ye,wt){return Qs(O,ye,wt,qr()),Pn()}function os(O){return He(O,qr(),void 0),Pn()}function Ri(O){return Xt(O,qr(),void 0),Pn()}function $r(O,ye,wt,tr){let Ei=he;Vi(tr,void 0),Ti(O,ye,wt),uo(),he=Ei}function Qs(O,ye,wt,tr){let Ei=he;Vi(tr,void 0),wt&&ki(wt),sc(void 0,ye,O),uo(),he=Ei}function He(O,ye,wt){Pe=!1;let tr=he;Vi(ye,wt),B0(O),j0(O),Mt(O),B6(O);for(let Ei of O.sourceFiles)Ti(0,Ei,Ei);uo(),he=tr}function Xt(O,ye,wt){Pe=!0;let tr=he;Vi(ye,wt),B0(O),j0(O),Ti(0,O,O),uo(),he=tr}function qr(){return Te||(Te=UR(R))}function Pn(){let O=Te.getText();return Te.clear(),O}function Ti(O,ye,wt){wt&&ki(wt),Ce(O,ye,void 0)}function ki(O){J=O,Qe=void 0,yt=void 0,O&&pd(O)}function Vi(O,ye){O&&e.omitTrailingSemicolon&&(O=ZH(O)),he=O,De=ye,ke=!he||!De}function uo(){$=[],q=[],ee=[],W=new Set,pe=[],K=new Map,re=[],ue=0,ce=[],ne=0,le=[],me=void 0,de=[],Ae=void 0,J=void 0,Qe=void 0,yt=void 0,Vi(void 0,void 0)}function Ys(){return Qe||(Qe=vy(M.checkDefined(J)))}function Sr(O,ye){O!==void 0&&Ce(4,O,ye)}function ia(O){O!==void 0&&Ce(2,O,void 0)}function ut(O,ye){O!==void 0&&Ce(1,O,ye)}function Tt(O){Ce(jo(O)?6:4,O)}function fe(O){xe&&Pm(O)&4&&(xe=!1)}function St(O){xe=O}function Ce(O,ye,wt){Vr=wt,rt(0,O,ye)(O,ye),Vr=void 0}function it(O){return!Tr&&!qi(O)}function Me(O){return!ke&&!qi(O)&&!y9(O)}function rt(O,ye,wt){switch(O){case 0:if(i!==HM&&(!s||s(wt)))return nr;case 1:if(a!==t6&&(Ar=a(ye,wt)||wt)!==wt)return Vr&&(Ar=Vr(Ar)),Vt;case 2:if(it(wt))return WE;case 3:if(Me(wt))return uh;case 4:return Oe;default:return M.assertNever(O)}}function pt(O,ye,wt){return rt(O+1,ye,wt)}function nr(O,ye){let wt=pt(0,O,ye);i(O,ye,wt)}function Oe(O,ye){if(u?.(ye),xe){let wt=xe;fe(ye),Nt(O,ye),St(wt)}else Nt(O,ye);m?.(ye),Vr=void 0}function Nt(O,ye,wt=!0){if(wt){let tr=X$(ye);if(tr)return bt(O,ye,tr)}if(O===0)return F0(ao(ye,qi));if(O===2)return z(ao(ye,$e));if(O===6)return Ye(ao(ye,jo),!0);if(O===3)return It(ao(ye,Cc));if(O===7)return Cn(ao(ye,l2));if(O===5)return M.assertNode(ye,uY),$f(!0);if(O===4){switch(ye.kind){case 16:case 17:case 18:return Ye(ye,!1);case 80:return z(ye);case 81:return Ue(ye);case 166:return be(ye);case 167:return Ot(ye);case 168:return Ht(ye);case 169:return $t(ye);case 170:return gr(ye);case 171:return Wr(ye);case 172:return Yr(ye);case 173:return gn(ye);case 174:return Pr(ye);case 175:return Rn(ye);case 176:return Xi(ye);case 177:case 178:return us(ye);case 179:return Xn(ye);case 180:return hi(ye);case 181:return Cr(ye);case 182:return zs(ye);case 183:return pa(ye);case 184:return Fa(ye);case 185:return xu(ye);case 186:return Ac(ye);case 187:return D_(ye);case 188:return el(ye);case 189:return Bo(ye);case 190:return ja(ye);case 192:return ga(ye);case 193:return pr(ye);case 194:return Jc(ye);case 195:return W_(ye);case 196:return G_(ye);case 233:return sd(ye);case 197:return Wf();case 198:return dc(ye);case 199:return tl(ye);case 200:return Se(ye);case 201:return oe(ye);case 202:return Sc(ye);case 203:return Ke(ye);case 204:return nn(ye);case 205:return Rt(ye);case 206:return xr(ye);case 207:return qn(ye);case 208:return mr(ye);case 239:return $h(ye);case 240:return rr();case 241:return Mf(ye);case 243:return Yh(ye);case 242:return $f(!1);case 244:return rh(ye);case 245:return ad(ye);case 246:return vt(ye);case 247:return Kt(ye);case 248:return Zt(ye);case 249:return Ur(ye);case 250:return on(ye);case 251:return bi(ye);case 252:return G(ye);case 253:return Ts(ye);case 254:return Ws(ye);case 255:return Ta(ye);case 256:return Ho(ye);case 257:return qc(ye);case 258:return Od(ye);case 259:return Om(ye);case 260:return Kh(ye);case 261:return Uy(ye);case 262:return Hv(ye);case 263:return pS(ye);case 264:return dS(ye);case 265:return um(ye);case 266:return VT(ye);case 267:return fg(ye);case 268:return ld(ye);case 269:return M0(ye);case 270:return Is(ye);case 271:return Ge(ye);case 272:return qt(ye);case 273:return ar(ye);case 274:return Nr(ye);case 280:return Oo(ye);case 275:return pn(ye);case 276:return Mr(ye);case 277:return Nn(ye);case 278:return Bi(ye);case 279:return Cu(ye);case 281:return I_(ye);case 300:return Ii(ye);case 301:return cn(ye);case 282:return;case 283:return fm(ye);case 12:return JT(ye);case 286:case 289:return FE(ye);case 287:case 290:return qT(ye);case 291:return P2(ye);case 292:return zT(ye);case 293:return Kv(ye);case 294:return da(ye);case 295:return N2(ye);case 296:return WT(ye);case 297:return L0(ye);case 298:return Md(ye);case 299:return Lf(ye);case 303:return vp(ye);case 304:return Yf(ye);case 305:return Xv(ye);case 306:return Ek(ye);case 307:return F0(ye);case 308:return M.fail("Bundles should be printed using printBundle");case 309:return ih(ye);case 310:return Ck(ye);case 312:return Fn("*");case 313:return Fn("?");case 314:return vc(ye);case 315:return rs(ye);case 316:return Wi(ye);case 317:return oo(ye);case 191:case 318:return Zu(ye);case 319:return;case 320:return xk(ye);case 322:return Mm(ye);case 323:return Au(ye);case 327:case 332:case 337:return Ze(ye);case 328:case 329:return cu(ye);case 330:case 331:return;case 333:case 334:case 335:case 336:return;case 338:return pg(ye);case 339:return I2(ye);case 341:case 348:return $T(ye);case 340:case 342:case 343:case 344:case 349:case 350:return GT(ye);case 345:return Zv(ye);case 346:return Ak(ye);case 347:return Qv(ye);case 351:return HT(ye);case 353:return}if(Pt(ye)&&(O=1,a!==t6)){let tr=a(O,ye)||ye;tr!==ye&&(ye=tr,Vr&&(ye=Vr(ye)))}}if(O===1)switch(ye.kind){case 9:case 10:return Z(ye);case 11:case 14:case 15:return Ye(ye,!1);case 80:return z(ye);case 81:return Ue(ye);case 209:return zn(ye);case 210:return Li(ye);case 211:return Pi(ye);case 212:return mc(ye);case 213:return Wl(ye);case 214:return Oc(ye);case 215:return mu(ye);case 216:return gc(ye);case 217:return gu(ye);case 218:return Gf(ye);case 219:return rl(ye);case 220:return Je(ye);case 221:return zt(ye);case 222:return Kr(ye);case 223:return hs(ye);case 224:return ea(ye);case 225:return pl(ye);case 226:return br(ye);case 227:return Ja(ye);case 228:return Ba(ye);case 229:return Al(ye);case 230:return Hf(ye);case 231:return _g(ye);case 232:return;case 234:return Rf(ye);case 235:return wd(ye);case 233:return sd(ye);case 238:return od(ye);case 236:return Hh(ye);case 237:return M.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Tk(ye);case 285:return gD(ye);case 288:return bk(ye);case 352:return M.fail("SyntaxList should not be printed");case 353:return;case 354:return w2(ye);case 355:return O2(ye);case 356:return M.fail("SyntheticReferenceExpression should not be printed")}if(af(ye.kind))return qE(ye,Fs);if(WG(ye.kind))return qE(ye,Fn);M.fail(`Unhandled SyntaxKind: ${M.formatSyntaxKind(ye.kind)}.`)}function It(O){Sr(O.name),Sn(),Fs("in"),Sn(),Sr(O.constraint)}function Vt(O,ye){let wt=pt(1,O,ye);M.assertIsDefined(Ar),ye=Ar,Ar=void 0,wt(O,ye)}function Mt(O){let ye=!1,wt=O.kind===308?O:void 0;if(wt&&L===0)return;let tr=wt?wt.sourceFiles.length:1;for(let Ei=0;Ei")}function gs(O){Sn(),Sr(O.type)}function oo(O){Fs("function"),U0(O,O.parameters),Fn(":"),Sr(O.type)}function vc(O){Fn("?"),Sr(O.type)}function rs(O){Fn("!"),Sr(O.type)}function Wi(O){Sr(O.type),Fn("=")}function xu(O){Op(O,O.modifiers),Fs("new"),Sn(),Rd(O,wa,gs)}function Ac(O){Fs("typeof"),Sn(),Sr(O.exprName),Qh(O,O.typeArguments)}function D_(O){i1(O),Et(O.members,q0),Fn("{");let ye=Ko(O)&1?768:32897;sc(O,O.members,ye|524288),Fn("}"),dm(O)}function el(O){Sr(O.elementType,tn.parenthesizeNonArrayTypeOfPostfixType),Fn("["),Fn("]")}function Zu(O){Fn("..."),Sr(O.type)}function Bo(O){Fe(23,O.pos,Fn,O);let ye=Ko(O)&1?528:657;sc(O,O.elements,ye|524288,tn.parenthesizeElementTypeOfTupleType),Fe(24,O.elements.end,Fn,O)}function Sc(O){Sr(O.dotDotDotToken),Sr(O.name),Sr(O.questionToken),Fe(59,O.name.end,Fn,O),Sn(),Sr(O.type)}function ja(O){Sr(O.type,tn.parenthesizeTypeOfOptionalType),Fn("?")}function ga(O){sc(O,O.types,516,tn.parenthesizeConstituentTypeOfUnionType)}function pr(O){sc(O,O.types,520,tn.parenthesizeConstituentTypeOfIntersectionType)}function Jc(O){Sr(O.checkType,tn.parenthesizeCheckTypeOfConditionalType),Sn(),Fs("extends"),Sn(),Sr(O.extendsType,tn.parenthesizeExtendsTypeOfConditionalType),Sn(),Fn("?"),Sn(),Sr(O.trueType),Sn(),Fn(":"),Sn(),Sr(O.falseType)}function W_(O){Fs("infer"),Sn(),Sr(O.typeParameter)}function G_(O){Fn("("),Sr(O.type),Fn(")")}function Wf(){Fs("this")}function dc(O){sh(O.operator,Fs),Sn();let ye=O.operator===148?tn.parenthesizeOperandOfReadonlyTypeOperator:tn.parenthesizeOperandOfTypeOperator;Sr(O.type,ye)}function tl(O){Sr(O.objectType,tn.parenthesizeNonArrayTypeOfPostfixType),Fn("["),Sr(O.indexType),Fn("]")}function Se(O){let ye=Ko(O);Fn("{"),ye&1?Sn():($_(),jm()),O.readonlyToken&&(Sr(O.readonlyToken),O.readonlyToken.kind!==148&&Fs("readonly"),Sn()),Fn("["),Ce(3,O.typeParameter),O.nameType&&(Sn(),Fs("as"),Sn(),Sr(O.nameType)),Fn("]"),O.questionToken&&(Sr(O.questionToken),O.questionToken.kind!==58&&Fn("?")),Fn(":"),Sn(),Sr(O.type),w_(),ye&1?Sn():($_(),pm()),sc(O,O.members,2),Fn("}")}function oe(O){ut(O.literal)}function Ke(O){Sr(O.head),sc(O,O.templateSpans,262144)}function Rt(O){O.isTypeOf&&(Fs("typeof"),Sn()),Fs("import"),Fn("("),Sr(O.argument),O.attributes&&(Fn(","),Sn(),Ce(7,O.attributes)),Fn(")"),O.qualifier&&(Fn("."),Sr(O.qualifier)),Qh(O,O.typeArguments)}function xr(O){Fn("{"),sc(O,O.elements,525136),Fn("}")}function qn(O){Fn("["),sc(O,O.elements,524880),Fn("]")}function mr(O){Sr(O.dotDotDotToken),O.propertyName&&(Sr(O.propertyName),Fn(":"),Sn()),Sr(O.name),t1(O.initializer,O.name.end,O,tn.parenthesizeExpressionForDisallowedComma)}function zn(O){let ye=O.elements,wt=O.multiLine?65536:0;qy(O,ye,8914|wt,tn.parenthesizeExpressionForDisallowedComma)}function Li(O){i1(O),Et(O.properties,q0);let ye=Ko(O)&131072;ye&&jm();let wt=O.multiLine?65536:0,tr=J&&J.languageVersion>=1&&!Xd(J)?64:0;sc(O,O.properties,526226|tr|wt),ye&&pm(),dm(O)}function Pi(O){ut(O.expression,tn.parenthesizeLeftSideOfAccess);let ye=O.questionDotToken||Jg(U.createToken(25),O.expression.end,O.name.pos),wt=Bm(O,O.expression,ye),tr=Bm(O,ye,O.name);Fd(wt,!1),ye.kind!==29&&Io(O.expression)&&!he.hasTrailingComment()&&!he.hasTrailingWhitespace()&&Fn("."),O.questionDotToken?Sr(ye):Fe(ye.kind,O.expression.end,Fn,O),Fd(tr,!1),Sr(O.name),zy(wt,tr)}function Io(O){if(O=km(O),Df(O)){let ye=J0(O,!0,!1);return!(O.numericLiteralFlags&448)&&!ye.includes(bo(25))&&!ye.includes("E")&&!ye.includes("e")}else if(ac(O)){let ye=Qpe(O);return typeof ye=="number"&&isFinite(ye)&&ye>=0&&Math.floor(ye)===ye}}function mc(O){ut(O.expression,tn.parenthesizeLeftSideOfAccess),Sr(O.questionDotToken),Fe(23,O.expression.end,Fn,O),ut(O.argumentExpression),Fe(24,O.argumentExpression.end,Fn,O)}function Wl(O){let ye=Pm(O)&16;ye&&(Fn("("),JE("0"),Fn(","),Sn()),ut(O.expression,tn.parenthesizeLeftSideOfAccess),ye&&Fn(")"),Sr(O.questionDotToken),Qh(O,O.typeArguments),qy(O,O.arguments,2576,tn.parenthesizeExpressionForDisallowedComma)}function Oc(O){Fe(105,O.pos,Fs,O),Sn(),ut(O.expression,tn.parenthesizeExpressionOfNew),Qh(O,O.typeArguments),qy(O,O.arguments,18960,tn.parenthesizeExpressionForDisallowedComma)}function mu(O){let ye=Pm(O)&16;ye&&(Fn("("),JE("0"),Fn(","),Sn()),ut(O.tag,tn.parenthesizeLeftSideOfAccess),ye&&Fn(")"),Qh(O,O.typeArguments),Sn(),ut(O.template)}function gc(O){Fn("<"),Sr(O.type),Fn(">"),ut(O.expression,tn.parenthesizeOperandOfPrefixUnary)}function gu(O){let ye=Fe(21,O.pos,Fn,O),wt=TD(O.expression,O);ut(O.expression,void 0),F2(O.expression,O),zy(wt),Fe(22,O.expression?O.expression.end:ye,Fn,O)}function Gf(O){ah(O.name),Vy(O)}function rl(O){Op(O,O.modifiers),Rd(O,Gl,id)}function Gl(O){r1(O,O.typeParameters),XT(O,O.parameters),e1(O.type),Sn(),Sr(O.equalsGreaterThanToken)}function id(O){Js(O.body)?Rm(O.body):(Sn(),ut(O.body,tn.parenthesizeConciseBodyOfArrowFunction))}function Je(O){Fe(91,O.pos,Fs,O),Sn(),ut(O.expression,tn.parenthesizeOperandOfPrefixUnary)}function zt(O){Fe(114,O.pos,Fs,O),Sn(),ut(O.expression,tn.parenthesizeOperandOfPrefixUnary)}function Kr(O){Fe(116,O.pos,Fs,O),Sn(),ut(O.expression,tn.parenthesizeOperandOfPrefixUnary)}function hs(O){Fe(135,O.pos,Fs,O),Sn(),ut(O.expression,tn.parenthesizeOperandOfPrefixUnary)}function ea(O){sh(O.operator,V0),ca(O)&&Sn(),ut(O.operand,tn.parenthesizeOperandOfPrefixUnary)}function ca(O){let ye=O.operand;return ye.kind===224&&(O.operator===40&&(ye.operator===40||ye.operator===46)||O.operator===41&&(ye.operator===41||ye.operator===47))}function pl(O){ut(O.operand,tn.parenthesizeOperandOfPostfixUnary),sh(O.operator,V0)}function au(){return nB(O,ye,wt,tr,Ei,void 0);function O(ps,ks){if(ks){ks.stackIndex++,ks.preserveSourceNewlinesStack[ks.stackIndex]=xe,ks.containerPosStack[ks.stackIndex]=we,ks.containerEndStack[ks.stackIndex]=ft,ks.declarationListContainerEndStack[ks.stackIndex]=gt;let Ro=ks.shouldEmitCommentsStack[ks.stackIndex]=it(ps),K_=ks.shouldEmitSourceMapsStack[ks.stackIndex]=Me(ps);u?.(ps),Ro&&nb(ps),K_&&W0(ps),fe(ps)}else ks={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return ks}function ye(ps,ks,Ro){return vs(ps,Ro,"left")}function wt(ps,ks,Ro){let K_=ps.kind!==28,O_=Bm(Ro,Ro.left,ps),a1=Bm(Ro,ps,Ro.right);Fd(O_,K_),sa(ps.pos),qE(ps,ps.kind===103?Fs:V0),e_(ps.end,!0),Fd(a1,!0)}function tr(ps,ks,Ro){return vs(ps,Ro,"right")}function Ei(ps,ks){let Ro=Bm(ps,ps.left,ps.operatorToken),K_=Bm(ps,ps.operatorToken,ps.right);if(zy(Ro,K_),ks.stackIndex>0){let O_=ks.preserveSourceNewlinesStack[ks.stackIndex],a1=ks.containerPosStack[ks.stackIndex],HE=ks.containerEndStack[ks.stackIndex],bp=ks.declarationListContainerEndStack[ks.stackIndex],mg=ks.shouldEmitCommentsStack[ks.stackIndex],G0=ks.shouldEmitSourceMapsStack[ks.stackIndex];St(O_),G0&&J2(ps),mg&&Ff(ps,a1,HE,bp),m?.(ps),ks.stackIndex--}}function vs(ps,ks,Ro){let K_=Ro==="left"?tn.getParenthesizeLeftSideOfBinaryForOperator(ks.operatorToken.kind):tn.getParenthesizeRightSideOfBinaryForOperator(ks.operatorToken.kind),O_=rt(0,1,ps);if(O_===Vt&&(M.assertIsDefined(Ar),ps=K_(ao(Ar,Pt)),O_=pt(1,1,ps),Ar=void 0),(O_===WE||O_===uh||O_===Oe)&&Dn(ps))return ps;Vr=K_,O_(1,ps)}}function Ja(O){let ye=Bm(O,O.condition,O.questionToken),wt=Bm(O,O.questionToken,O.whenTrue),tr=Bm(O,O.whenTrue,O.colonToken),Ei=Bm(O,O.colonToken,O.whenFalse);ut(O.condition,tn.parenthesizeConditionOfConditionalExpression),Fd(ye,!0),Sr(O.questionToken),Fd(wt,!0),ut(O.whenTrue,tn.parenthesizeBranchOfConditionalExpression),zy(ye,wt),Fd(tr,!0),Sr(O.colonToken),Fd(Ei,!0),ut(O.whenFalse,tn.parenthesizeBranchOfConditionalExpression),zy(tr,Ei)}function Ba(O){Sr(O.head),sc(O,O.templateSpans,262144)}function Al(O){Fe(127,O.pos,Fs,O),Sr(O.asteriskToken),h_(O.expression&&Fi(O.expression),Vs)}function Hf(O){Fe(26,O.pos,Fn,O),ut(O.expression,tn.parenthesizeExpressionForDisallowedComma)}function _g(O){ah(O.name),lm(O)}function sd(O){ut(O.expression,tn.parenthesizeLeftSideOfAccess),Qh(O,O.typeArguments)}function Rf(O){ut(O.expression,void 0),O.type&&(Sn(),Fs("as"),Sn(),Sr(O.type))}function wd(O){ut(O.expression,tn.parenthesizeLeftSideOfAccess),V0("!")}function od(O){ut(O.expression,void 0),O.type&&(Sn(),Fs("satisfies"),Sn(),Sr(O.type))}function Hh(O){n1(O.keywordToken,O.pos,Fn),Fn("."),Sr(O.name)}function $h(O){ut(O.expression),Sr(O.literal)}function Mf(O){Hl(O,!O.multiLine&&bD(O))}function Hl(O,ye){Fe(19,O.pos,Fn,O);let wt=ye||Ko(O)&1?768:129;sc(O,O.statements,wt),Fe(20,O.statements.end,Fn,O,!!(wt&1))}function Yh(O){ud(O,O.modifiers,!1),Sr(O.declarationList),w_()}function $f(O){O?Fn(";"):w_()}function rh(O){ut(O.expression,tn.parenthesizeExpressionOfExpressionStatement),(!J||!Xd(J)||Ka(O.expression))&&w_()}function ad(O){let ye=Fe(101,O.pos,Fs,O);Sn(),Fe(21,ye,Fn,O),ut(O.expression),Fe(22,O.expression.end,Fn,O),Fm(O,O.thenStatement),O.elseStatement&&(Tp(O,O.thenStatement,O.elseStatement),Fe(93,O.thenStatement.end,Fs,O),O.elseStatement.kind===245?(Sn(),Sr(O.elseStatement)):Fm(O,O.elseStatement))}function ae(O,ye){let wt=Fe(117,ye,Fs,O);Sn(),Fe(21,wt,Fn,O),ut(O.expression),Fe(22,O.expression.end,Fn,O)}function vt(O){Fe(92,O.pos,Fs,O),Fm(O,O.statement),Js(O.statement)&&!xe?Sn():Tp(O,O.statement,O.expression),ae(O,O.statement.end),w_()}function Kt(O){ae(O,O.pos),Fm(O,O.statement)}function Zt(O){let ye=Fe(99,O.pos,Fs,O);Sn();let wt=Fe(21,ye,Fn,O);Yn(O.initializer),wt=Fe(27,O.initializer?O.initializer.end:wt,Fn,O),h_(O.condition),wt=Fe(27,O.condition?O.condition.end:wt,Fn,O),h_(O.incrementor),Fe(22,O.incrementor?O.incrementor.end:wt,Fn,O),Fm(O,O.statement)}function Ur(O){let ye=Fe(99,O.pos,Fs,O);Sn(),Fe(21,ye,Fn,O),Yn(O.initializer),Sn(),Fe(103,O.initializer.end,Fs,O),Sn(),ut(O.expression),Fe(22,O.expression.end,Fn,O),Fm(O,O.statement)}function on(O){let ye=Fe(99,O.pos,Fs,O);Sn(),hD(O.awaitModifier),Fe(21,ye,Fn,O),Yn(O.initializer),Sn(),Fe(165,O.initializer.end,Fs,O),Sn(),ut(O.expression),Fe(22,O.expression.end,Fn,O),Fm(O,O.statement)}function Yn(O){O!==void 0&&(O.kind===261?Sr(O):ut(O))}function bi(O){Fe(88,O.pos,Fs,O),Wn(O.label),w_()}function G(O){Fe(83,O.pos,Fs,O),Wn(O.label),w_()}function Fe(O,ye,wt,tr,Ei){let vs=Ps(tr),ps=vs&&vs.kind===tr.kind,ks=ye;if(ps&&J&&(ye=zo(J.text,ye)),ps&&tr.pos!==ks){let Ro=Ei&&J&&!xd(ks,ye,J);Ro&&jm(),sa(ks),Ro&&pm()}if(!I&&(O===19||O===20)?ye=n1(O,ye,wt,tr):ye=sh(O,wt,ye),ps&&tr.end!==ye){let Ro=tr.kind===294;e_(ye,!Ro,Ro)}return ye}function Bt(O){return O.kind===2||!!O.hasTrailingNewLine}function Zr(O){if(!J)return!1;let ye=Ty(J.text,O.pos);if(ye){let wt=Ps(O);if(wt&&ff(wt.parent))return!0}return Dt(ye,Bt)||Dt(gN(O),Bt)?!0:qj(O)?O.pos!==O.expression.pos&&Dt(L1(J.text,O.expression.pos),Bt)?!0:Zr(O.expression):!1}function Fi(O){if(!Tr&&qj(O)&&Zr(O)){let ye=Ps(O);if(ye&&ff(ye)){let wt=U.createParenthesizedExpression(O.expression);return Gn(wt,O),At(wt,ye),wt}return U.createParenthesizedExpression(O)}return O}function Vs(O){return Fi(tn.parenthesizeExpressionForDisallowedComma(O))}function Ts(O){Fe(107,O.pos,Fs,O),h_(O.expression&&Fi(O.expression),Fi),w_()}function Ws(O){let ye=Fe(118,O.pos,Fs,O);Sn(),Fe(21,ye,Fn,O),ut(O.expression),Fe(22,O.expression.end,Fn,O),Fm(O,O.statement)}function Ta(O){let ye=Fe(109,O.pos,Fs,O);Sn(),Fe(21,ye,Fn,O),ut(O.expression),Fe(22,O.expression.end,Fn,O),Sn(),Sr(O.caseBlock)}function Ho(O){Sr(O.label),Fe(59,O.label.end,Fn,O),Sn(),Sr(O.statement)}function qc(O){Fe(111,O.pos,Fs,O),h_(Fi(O.expression),Fi),w_()}function Od(O){Fe(113,O.pos,Fs,O),Sn(),Sr(O.tryBlock),O.catchClause&&(Tp(O,O.tryBlock,O.catchClause),Sr(O.catchClause)),O.finallyBlock&&(Tp(O,O.catchClause||O.tryBlock,O.finallyBlock),Fe(98,(O.catchClause||O.tryBlock).end,Fs,O),Sn(),Sr(O.finallyBlock))}function Om(O){n1(89,O.pos,Fs),w_()}function Kh(O){var ye,wt,tr;Sr(O.name),Sr(O.exclamationToken),e1(O.type),t1(O.initializer,((ye=O.type)==null?void 0:ye.end)??((tr=(wt=O.name.emitNode)==null?void 0:wt.typeNode)==null?void 0:tr.end)??O.name.end,O,tn.parenthesizeExpressionForDisallowedComma)}function Uy(O){if(oR(O))Fs("await"),Sn(),Fs("using");else{let ye=s9(O)?"let":WP(O)?"const":aR(O)?"using":"var";Fs(ye)}Sn(),sc(O,O.declarations,528)}function Hv(O){Vy(O)}function Vy(O){ud(O,O.modifiers,!1),Fs("function"),Sr(O.asteriskToken),Sn(),ia(O.name),Rd(O,g_,cd)}function Rd(O,ye,wt){let tr=Ko(O)&131072;tr&&jm(),i1(O),Et(O.parameters,Ou),ye(O),wt(O),dm(O),tr&&pm()}function cd(O){let ye=O.body;ye?Rm(ye):w_()}function qa(O){w_()}function g_(O){r1(O,O.typeParameters),U0(O,O.parameters),e1(O.type)}function H_(O){if(Ko(O)&1)return!0;if(O.multiLine||!Ka(O)&&J&&!n2(O,J)||QT(O,Aa(O.statements),2)||L2(O,yc(O.statements),2,O.statements))return!1;let ye;for(let wt of O.statements){if(Ik(ye,wt,2)>0)return!1;ye=wt}return!0}function Rm(O){Ou(O),u?.(O),Sn(),Fn("{"),jm();let ye=H_(O)?$v:R0;B2(O,O.statements,ye),pm(),n1(20,O.statements.end,Fn,O),m?.(O)}function $v(O){R0(O,!0)}function R0(O,ye){let wt=YT(O.statements),tr=he.getTextPos();Mt(O),wt===0&&tr===he.getTextPos()&&ye?(pm(),sc(O,O.statements,768),jm()):sc(O,O.statements,1,void 0,wt)}function pS(O){lm(O)}function lm(O){ud(O,O.modifiers,!0),Fe(86,Vg(O).pos,Fs,O),O.name&&(Sn(),ia(O.name));let ye=Ko(O)&131072;ye&&jm(),r1(O,O.typeParameters),sc(O,O.heritageClauses,0),Sn(),Fn("{"),i1(O),Et(O.members,q0),sc(O,O.members,129),dm(O),Fn("}"),ye&&pm()}function dS(O){ud(O,O.modifiers,!1),Fs("interface"),Sn(),Sr(O.name),r1(O,O.typeParameters),sc(O,O.heritageClauses,512),Sn(),Fn("{"),i1(O),Et(O.members,q0),sc(O,O.members,129),dm(O),Fn("}")}function um(O){ud(O,O.modifiers,!1),Fs("type"),Sn(),Sr(O.name),r1(O,O.typeParameters),Sn(),Fn("="),Sn(),Sr(O.type),w_()}function VT(O){ud(O,O.modifiers,!1),Fs("enum"),Sn(),Sr(O.name),Sn(),Fn("{"),sc(O,O.members,145),Fn("}")}function fg(O){ud(O,O.modifiers,!1),~O.flags&2048&&(Fs(O.flags&32?"namespace":"module"),Sn()),Sr(O.name);let ye=O.body;if(!ye)return w_();for(;ye&&xl(ye);)Fn("."),Sr(ye.name),ye=ye.body;Sn(),Sr(ye)}function ld(O){i1(O),Et(O.statements,Ou),Hl(O,bD(O)),dm(O)}function M0(O){Fe(19,O.pos,Fn,O),sc(O,O.clauses,129),Fe(20,O.clauses.end,Fn,O,!0)}function Ge(O){ud(O,O.modifiers,!1),Fe(102,O.modifiers?O.modifiers.end:O.pos,Fs,O),Sn(),O.isTypeOnly&&(Fe(156,O.pos,Fs,O),Sn()),Sr(O.name),Sn(),Fe(64,O.name.end,Fn,O),Sn(),ot(O.moduleReference),w_()}function ot(O){O.kind===80?ut(O):Sr(O)}function qt(O){ud(O,O.modifiers,!1),Fe(102,O.modifiers?O.modifiers.end:O.pos,Fs,O),Sn(),O.importClause&&(Sr(O.importClause),Sn(),Fe(161,O.importClause.end,Fs,O),Sn()),ut(O.moduleSpecifier),O.attributes&&Wn(O.attributes),w_()}function ar(O){O.isTypeOnly&&(Fe(156,O.pos,Fs,O),Sn()),Sr(O.name),O.name&&O.namedBindings&&(Fe(28,O.name.end,Fn,O),Sn()),Sr(O.namedBindings)}function Nr(O){let ye=Fe(42,O.pos,Fn,O);Sn(),Fe(130,ye,Fs,O),Sn(),Sr(O.name)}function pn(O){_m(O)}function Mr(O){Yv(O)}function Nn(O){let ye=Fe(95,O.pos,Fs,O);Sn(),O.isExportEquals?Fe(64,ye,V0,O):Fe(90,ye,Fs,O),Sn(),ut(O.expression,O.isExportEquals?tn.getParenthesizeRightSideOfBinaryForOperator(64):tn.parenthesizeExpressionOfExportDefault),w_()}function Bi(O){ud(O,O.modifiers,!1);let ye=Fe(95,O.pos,Fs,O);if(Sn(),O.isTypeOnly&&(ye=Fe(156,ye,Fs,O),Sn()),O.exportClause?Sr(O.exportClause):ye=Fe(42,ye,Fn,O),O.moduleSpecifier){Sn();let wt=O.exportClause?O.exportClause.end:ye;Fe(161,wt,Fs,O),Sn(),ut(O.moduleSpecifier)}O.attributes&&Wn(O.attributes),w_()}function Cn(O){Fn("{"),Sn(),Fs(O.token===132?"assert":"with"),Fn(":"),Sn();let ye=O.elements;sc(O,ye,526226),Sn(),Fn("}")}function Ii(O){Fe(O.token,O.pos,Fs,O),Sn();let ye=O.elements;sc(O,ye,526226)}function cn(O){Sr(O.name),Fn(":"),Sn();let ye=O.value;if(!(Ko(ye)&1024)){let wt=zg(ye);e_(wt.pos)}Sr(ye)}function Is(O){let ye=Fe(95,O.pos,Fs,O);Sn(),ye=Fe(130,ye,Fs,O),Sn(),ye=Fe(145,ye,Fs,O),Sn(),Sr(O.name),w_()}function Oo(O){let ye=Fe(42,O.pos,Fn,O);Sn(),Fe(130,ye,Fs,O),Sn(),Sr(O.name)}function Cu(O){_m(O)}function I_(O){Yv(O)}function _m(O){Fn("{"),sc(O,O.elements,525136),Fn("}")}function Yv(O){O.isTypeOnly&&(Fs("type"),Sn()),O.propertyName&&(Sr(O.propertyName),Sn(),Fe(130,O.propertyName.end,Fs,O),Sn()),Sr(O.name)}function fm(O){Fs("require"),Fn("("),ut(O.expression),Fn(")")}function Tk(O){Sr(O.openingElement),sc(O,O.children,262144),Sr(O.closingElement)}function gD(O){Fn("<"),D2(O.tagName),Qh(O,O.typeArguments),Sn(),Sr(O.attributes),Fn("/>")}function bk(O){Sr(O.openingFragment),sc(O,O.children,262144),Sr(O.closingFragment)}function FE(O){if(Fn("<"),$g(O)){let ye=TD(O.tagName,O);D2(O.tagName),Qh(O,O.typeArguments),O.attributes.properties&&O.attributes.properties.length>0&&Sn(),Sr(O.attributes),F2(O.attributes,O),zy(ye)}Fn(">")}function JT(O){he.writeLiteral(O.text)}function qT(O){Fn("")}function zT(O){sc(O,O.properties,262656)}function P2(O){Sr(O.name),as("=",Fn,O.initializer,Tt)}function Kv(O){Fn("{..."),ut(O.expression),Fn("}")}function jE(O){let ye=!1;return D3(J?.text||"",O+1,()=>ye=!0),ye}function Jy(O){let ye=!1;return N3(J?.text||"",O+1,()=>ye=!0),ye}function BE(O){return jE(O)||Jy(O)}function da(O){var ye;if(O.expression||!Tr&&!Ka(O)&&BE(O.pos)){let wt=J&&!Ka(O)&&Eo(J,O.pos).line!==Eo(J,O.end).line;wt&&he.increaseIndent();let tr=Fe(19,O.pos,Fn,O);Sr(O.dotDotDotToken),ut(O.expression),Fe(20,((ye=O.expression)==null?void 0:ye.end)||tr,Fn,O),wt&&he.decreaseIndent()}}function N2(O){ia(O.namespace),Fn(":"),ia(O.name)}function D2(O){O.kind===80?ut(O):Sr(O)}function WT(O){Fe(84,O.pos,Fs,O),Sn(),ut(O.expression,tn.parenthesizeExpressionForDisallowedComma),nh(O,O.statements,O.expression.end)}function L0(O){let ye=Fe(90,O.pos,Fs,O);nh(O,O.statements,ye)}function nh(O,ye,wt){let tr=ye.length===1&&(!J||Ka(O)||Ka(ye[0])||W9(O,ye[0],J)),Ei=163969;tr?(n1(59,wt,Fn,O),Sn(),Ei&=-130):Fe(59,wt,Fn,O),sc(O,ye,Ei)}function Md(O){Sn(),sh(O.token,Fs),Sn(),sc(O,O.types,528)}function Lf(O){let ye=Fe(85,O.pos,Fs,O);Sn(),O.variableDeclaration&&(Fe(21,ye,Fn,O),Sr(O.variableDeclaration),Fe(22,O.variableDeclaration.end,Fn,O),Sn()),Sr(O.block)}function vp(O){Sr(O.name),Fn(":"),Sn();let ye=O.initializer;if(!(Ko(ye)&1024)){let wt=zg(ye);e_(wt.pos)}ut(ye,tn.parenthesizeExpressionForDisallowedComma)}function Yf(O){Sr(O.name),O.objectAssignmentInitializer&&(Sn(),Fn("="),Sn(),ut(O.objectAssignmentInitializer,tn.parenthesizeExpressionForDisallowedComma))}function Xv(O){O.expression&&(Fe(26,O.pos,Fn,O),ut(O.expression,tn.parenthesizeExpressionForDisallowedComma))}function Ek(O){Sr(O.name),t1(O.initializer,O.name.end,O,tn.parenthesizeExpressionForDisallowedComma)}function xk(O){if(Ve("/**"),O.comment){let ye=B3(O.comment);if(ye){let wt=ye.split(/\r\n?|\n/g);for(let tr of wt)$_(),Sn(),Fn("*"),Sn(),Ve(tr)}}O.tags&&(O.tags.length===1&&O.tags[0].kind===344&&!O.comment?(Sn(),Sr(O.tags[0])):sc(O,O.tags,33)),Sn(),Ve("*/")}function GT(O){Xh(O.tagName),ih(O.typeExpression),Ld(O.comment)}function Qv(O){Xh(O.tagName),Sr(O.name),Ld(O.comment)}function HT(O){Xh(O.tagName),Sn(),O.importClause&&(Sr(O.importClause),Sn(),Fe(161,O.importClause.end,Fs,O),Sn()),ut(O.moduleSpecifier),O.attributes&&Wn(O.attributes),Ld(O.comment)}function Ck(O){Sn(),Fn("{"),Sr(O.name),Fn("}")}function cu(O){Xh(O.tagName),Sn(),Fn("{"),Sr(O.class),Fn("}"),Ld(O.comment)}function Zv(O){Xh(O.tagName),ih(O.constraint),Sn(),sc(O,O.typeParameters,528),Ld(O.comment)}function Ak(O){Xh(O.tagName),O.typeExpression&&(O.typeExpression.kind===309?ih(O.typeExpression):(Sn(),Fn("{"),Ve("Object"),O.typeExpression.isArrayType&&(Fn("["),Fn("]")),Fn("}"))),O.fullName&&(Sn(),Sr(O.fullName)),Ld(O.comment),O.typeExpression&&O.typeExpression.kind===322&&Mm(O.typeExpression)}function pg(O){Xh(O.tagName),O.name&&(Sn(),Sr(O.name)),Ld(O.comment),Au(O.typeExpression)}function I2(O){Ld(O.comment),Au(O.typeExpression)}function Ze(O){Xh(O.tagName),Ld(O.comment)}function Mm(O){sc(O,U.createNodeArray(O.jsDocPropertyTags),33)}function Au(O){O.typeParameters&&sc(O,U.createNodeArray(O.typeParameters),33),O.parameters&&sc(O,U.createNodeArray(O.parameters),33),O.type&&($_(),Sn(),Fn("*"),Sn(),Sr(O.type))}function $T(O){Xh(O.tagName),ih(O.typeExpression),Sn(),O.isBracketed&&Fn("["),Sr(O.name),O.isBracketed&&Fn("]"),Ld(O.comment)}function Xh(O){Fn("@"),Sr(O)}function Ld(O){let ye=B3(O);ye&&(Sn(),Ve(ye))}function ih(O){O&&(Sn(),Fn("{"),Sr(O.type),Fn("}"))}function F0(O){$_();let ye=O.statements;if(ye.length===0||!Rg(ye[0])||Ka(ye[0])){B2(O,ye,UE);return}UE(O)}function B6(O){Lm(!!O.hasNoDefaultLib,O.syntheticFileReferences||[],O.syntheticTypeReferences||[],O.syntheticLibReferences||[])}function ta(O){O.isDeclarationFile&&Lm(O.hasNoDefaultLib,O.referencedFiles,O.typeReferenceDirectives,O.libReferenceDirectives)}function Lm(O,ye,wt,tr){if(O&&(Sp('/// '),$_()),J&&J.moduleName&&(Sp(`/// `),$_()),J&&J.amdDependencies)for(let vs of J.amdDependencies)vs.name?Sp(`/// `):Sp(`/// `),$_();function Ei(vs,ps){for(let ks of ps){let Ro=ks.resolutionMode?`resolution-mode="${ks.resolutionMode===99?"import":"require"}" `:"",K_=ks.preserve?'preserve="true" ':"";Sp(`/// `),$_()}}Ei("path",ye),Ei("types",wt),Ei("lib",tr)}function UE(O){let ye=O.statements;i1(O),Et(O.statements,Ou),Mt(O);let wt=Va(ye,tr=>!Rg(tr));ta(O),sc(O,ye,1,void 0,wt===-1?ye.length:wt),dm(O)}function w2(O){let ye=Ko(O);!(ye&1024)&&O.pos!==O.expression.pos&&e_(O.expression.pos),ut(O.expression),!(ye&2048)&&O.end!==O.expression.end&&sa(O.expression.end)}function O2(O){qy(O,O.elements,528,void 0)}function YT(O,ye,wt){let tr=!!ye;for(let Ei=0;Ei=wt.length||ps===0;if(Ro&&tr&32768){d?.(wt),S?.(wt);return}tr&15360&&(Fn(JEt(tr)),Ro&&wt&&e_(wt.pos,!0)),d?.(wt),Ro?tr&1&&!(xe&&(!ye||J&&n2(ye,J)))?$_():tr&256&&!(tr&524288)&&Sn():R2(O,ye,wt,tr,Ei,vs,ps,wt.hasTrailingComma,wt),S?.(wt),tr&15360&&(Ro&&wt&&sa(wt.end),Fn(qEt(tr)))}function R2(O,ye,wt,tr,Ei,vs,ps,ks,Ro){let K_=(tr&262144)===0,O_=K_,a1=QT(ye,wt[vs],tr);a1?($_(a1),O_=!1):tr&256&&Sn(),tr&128&&jm();let HE=HEt(O,Ei),bp,mg=!1;for(let ab=0;ab0){if(tr&131||(jm(),mg=!0),O_&&tr&60&&!rg(c1.pos)){let ns=zg(c1);e_(ns.pos,!!(tr&512),!0)}$_(TS),O_=!1}else bp&&tr&512&&Sn()}if(O_){let TS=zg(c1);e_(TS.pos)}else O_=K_;te=c1.pos,HE(c1,O,Ei,ab),mg&&(pm(),mg=!1),bp=c1}let G0=bp?Ko(bp):0,$E=Tr||!!(G0&2048),ID=ks&&tr&64&&tr&16;ID&&(bp&&!$E?Fe(28,bp.end,Fn,bp):Fn(",")),bp&&(ye?ye.end:-1)!==bp.end&&tr&60&&!$E&&sa(ID&&Ro?.end?Ro.end:bp.end),tr&128&&pm();let H0=L2(ye,wt[vs+ps-1],tr,Ro);H0?$_(H0):tr&2097408&&Sn()}function JE(O){he.writeLiteral(O)}function Pk(O){he.writeStringLiteral(O)}function U6(O){he.write(O)}function SD(O,ye){he.writeSymbol(O,ye)}function Fn(O){he.writePunctuation(O)}function w_(){he.writeTrailingSemicolon(";")}function Fs(O){he.writeKeyword(O)}function V0(O){he.writeOperator(O)}function M2(O){he.writeParameter(O)}function Sp(O){he.writeComment(O)}function Sn(){he.writeSpace(" ")}function Nk(O){he.writeProperty(O)}function Dk(O){he.nonEscapingWrite?he.nonEscapingWrite(O):he.write(O)}function $_(O=1){for(let ye=0;ye0)}function jm(){he.increaseIndent()}function pm(){he.decreaseIndent()}function n1(O,ye,wt,tr){return ke?sh(O,wt,ye):o1(tr,O,wt,ye,sh)}function qE(O,ye){E&&E(O),ye(bo(O.kind)),x&&x(O)}function sh(O,ye,wt){let tr=bo(O);return ye(tr),wt<0?wt:wt+tr.length}function Tp(O,ye,wt){if(Ko(O)&1)Sn();else if(xe){let tr=Bm(O,ye,wt);tr?$_(tr):Sn()}else $_()}function oh(O){let ye=O.split(/\r\n?|\n/g),wt=h_e(ye);for(let tr of ye){let Ei=wt?tr.slice(wt):tr;Ei.length&&($_(),Ve(Ei))}}function Fd(O,ye){O?(jm(),$_(O)):ye&&Sn()}function zy(O,ye){O&&pm(),ye&&pm()}function QT(O,ye,wt){if(wt&2||xe){if(wt&65536)return 1;if(ye===void 0)return!O||J&&n2(O,J)?0:1;if(ye.pos===te||ye.kind===12)return 0;if(J&&O&&!rg(O.pos)&&!Ka(ye)&&(!ye.parent||Bc(ye.parent)===Bc(O)))return xe?zE(tr=>Zfe(ye.pos,O.pos,J,tr)):W9(O,ye,J)?0:1;if(ZT(ye,wt))return 1}return wt&1?1:0}function Ik(O,ye,wt){if(wt&2||xe){if(O===void 0||ye===void 0||ye.kind===12)return 0;if(J&&!Ka(O)&&!Ka(ye))return xe&&kD(O,ye)?zE(tr=>d$(O,ye,J,tr)):!xe&&_d(O,ye)?HR(O,ye,J)?0:1:wt&65536?1:0;if(ZT(O,wt)||ZT(ye,wt))return 1}else if(gO(ye))return 1;return wt&1?1:0}function L2(O,ye,wt,tr){if(wt&2||xe){if(wt&65536)return 1;if(ye===void 0)return!O||J&&n2(O,J)?0:1;if(J&&O&&!rg(O.pos)&&!Ka(ye)&&(!ye.parent||ye.parent===O)){if(xe){let Ei=tr&&!rg(tr.end)?tr.end:ye.end;return zE(vs=>epe(Ei,O.end,J,vs))}return Kfe(O,ye,J)?0:1}if(ZT(ye,wt))return 1}return wt&1&&!(wt&131072)?1:0}function zE(O){M.assert(!!xe);let ye=O(!0);return ye===0?O(!1):ye}function TD(O,ye){let wt=xe&&QT(ye,O,0);return wt&&Fd(wt,!1),!!wt}function F2(O,ye){let wt=xe&&L2(ye,O,0,void 0);wt&&$_(wt)}function ZT(O,ye){if(Ka(O)){let wt=gO(O);return wt===void 0?(ye&65536)!==0:wt}return(ye&65536)!==0}function Bm(O,ye,wt){return Ko(O)&262144?0:(O=eb(O),ye=eb(ye),wt=eb(wt),gO(wt)?1:J&&!Ka(O)&&!Ka(ye)&&!Ka(wt)?xe?zE(tr=>d$(ye,wt,J,tr)):HR(ye,wt,J)?0:1:0)}function bD(O){return O.statements.length===0&&(!J||HR(O,O,J))}function eb(O){for(;O.kind===217&&Ka(O);)O=O.expression;return O}function mS(O,ye){if(Ec(O)||zx(O))return dl(O);if(jo(O)&&O.textSourceNode)return mS(O.textSourceNode,ye);let wt=J,tr=!!wt&&!!O.parent&&!Ka(O);if(xy(O)){if(!tr||Jr(O)!==Bc(wt))return In(O)}else if(ig(O)){if(!tr||Jr(O)!==Bc(wt))return mO(O)}else if(M.assertNode(O,Wb),!tr)return O.text;return $b(wt,O,ye)}function J0(O,ye,wt){if(O.kind===11&&O.textSourceNode){let Ei=O.textSourceNode;if($e(Ei)||es(Ei)||Df(Ei)||ig(Ei)){let vs=Df(Ei)?Ei.text:mS(Ei);return wt?`"${QH(vs)}"`:ye||Ko(O)&16777216?`"${Uh(vs)}"`:`"${D9(vs)}"`}else return J0(Ei,ye,wt)}let tr=(ye?1:0)|(wt?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return N_e(O,J,tr)}function i1(O){re.push(ue),ue=0,de.push(Ae),!(O&&Ko(O)&1048576)&&(ce.push(ne),ne=0,pe.push(K),K=void 0,le.push(me))}function dm(O){ue=re.pop(),Ae=de.pop(),!(O&&Ko(O)&1048576)&&(ne=ce.pop(),K=pe.pop(),me=le.pop())}function s1(O){(!me||me===yc(le))&&(me=new Set),me.add(O)}function tb(O){(!Ae||Ae===yc(de))&&(Ae=new Set),Ae.add(O)}function Ou(O){if(O)switch(O.kind){case 241:Et(O.statements,Ou);break;case 256:case 254:case 246:case 247:Ou(O.statement);break;case 245:Ou(O.thenStatement),Ou(O.elseStatement);break;case 248:case 250:case 249:Ou(O.initializer),Ou(O.statement);break;case 255:Ou(O.caseBlock);break;case 269:Et(O.clauses,Ou);break;case 296:case 297:Et(O.statements,Ou);break;case 258:Ou(O.tryBlock),Ou(O.catchClause),Ou(O.finallyBlock);break;case 299:Ou(O.variableDeclaration),Ou(O.block);break;case 243:Ou(O.declarationList);break;case 261:Et(O.declarations,Ou);break;case 260:case 169:case 208:case 263:ah(O.name);break;case 262:ah(O.name),Ko(O)&1048576&&(Et(O.parameters,Ou),Ou(O.body));break;case 206:case 207:Et(O.elements,Ou);break;case 272:Ou(O.importClause);break;case 273:ah(O.name),Ou(O.namedBindings);break;case 274:ah(O.name);break;case 280:ah(O.name);break;case 275:Et(O.elements,Ou);break;case 276:ah(O.propertyName||O.name);break}}function q0(O){if(O)switch(O.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:ah(O.name);break}}function ah(O){O&&(Ec(O)||zx(O)?dl(O):$s(O)&&Ou(O))}function dl(O){let ye=O.emitNode.autoGenerate;if((ye.flags&7)===4)return ku(AM(O),es(O),ye.flags,ye.prefix,ye.suffix);{let wt=ye.id;return ee[wt]||(ee[wt]=j2(O))}}function ku(O,ye,wt,tr,Ei){let vs=Sa(O),ps=ye?q:$;return ps[vs]||(ps[vs]=Y_(O,ye,wt??0,PN(tr,dl),PN(Ei)))}function z0(O,ye){return jd(O,ye)&&!Kf(O,ye)&&!W.has(O)}function Kf(O,ye){let wt,tr;if(ye?(wt=Ae,tr=de):(wt=me,tr=le),wt?.has(O))return!0;for(let Ei=tr.length-1;Ei>=0;Ei--)if(wt!==tr[Ei]&&(wt=tr[Ei],wt?.has(O)))return!0;return!1}function jd(O,ye){return J?Q5(J,O,n):!0}function wk(O,ye){for(let wt=ye;wt&&rE(wt,ye);wt=wt.nextContainer)if(Mh(wt)&&wt.locals){let tr=wt.locals.get(Uc(O));if(tr&&tr.flags&3257279)return!1}return!0}function ch(O){switch(O){case"":return ne;case"#":return ue;default:return K?.get(O)??0}}function Ok(O,ye){switch(O){case"":ne=ye;break;case"#":ue=ye;break;default:K??(K=new Map),K.set(O,ye);break}}function lh(O,ye,wt,tr,Ei){tr.length>0&&tr.charCodeAt(0)===35&&(tr=tr.slice(1));let vs=xT(wt,tr,"",Ei),ps=ch(vs);if(O&&!(ps&O)){let Ro=xT(wt,tr,O===268435456?"_i":"_n",Ei);if(z0(Ro,wt))return ps|=O,wt?tb(Ro):ye&&s1(Ro),Ok(vs,ps),Ro}for(;;){let ks=ps&268435455;if(ps++,ks!==8&&ks!==13){let Ro=ks<26?"_"+String.fromCharCode(97+ks):"_"+(ks-26),K_=xT(wt,tr,Ro,Ei);if(z0(K_,wt))return wt?tb(K_):ye&&s1(K_),Ok(vs,ps),K_}}}function gS(O,ye=z0,wt,tr,Ei,vs,ps){if(O.length>0&&O.charCodeAt(0)===35&&(O=O.slice(1)),vs.length>0&&vs.charCodeAt(0)===35&&(vs=vs.slice(1)),wt){let Ro=xT(Ei,vs,O,ps);if(ye(Ro,Ei))return Ei?tb(Ro):tr?s1(Ro):W.add(Ro),Ro}O.charCodeAt(O.length-1)!==95&&(O+="_");let ks=1;for(;;){let Ro=xT(Ei,vs,O+ks,ps);if(ye(Ro,Ei))return Ei?tb(Ro):tr?s1(Ro):W.add(Ro),Ro;ks++}}function ED(O){return gS(O,jd,!0,!1,!1,"","")}function nl(O){let ye=mS(O.name);return wk(ye,ci(O,Mh))?ye:gS(ye,z0,!1,!1,!1,"","")}function xD(O){let ye=oA(O),wt=jo(ye)?I_e(ye.text):"module";return gS(wt,z0,!1,!1,!1,"","")}function CD(){return gS("default",z0,!1,!1,!1,"","")}function rb(){return gS("class",z0,!1,!1,!1,"","")}function V6(O,ye,wt,tr){return $e(O.name)?ku(O.name,ye):lh(0,!1,ye,wt,tr)}function Y_(O,ye,wt,tr,Ei){switch(O.kind){case 80:case 81:return gS(mS(O),z0,!!(wt&16),!!(wt&8),ye,tr,Ei);case 267:case 266:return M.assert(!tr&&!Ei&&!ye),nl(O);case 272:case 278:return M.assert(!tr&&!Ei&&!ye),xD(O);case 262:case 263:{M.assert(!tr&&!Ei&&!ye);let vs=O.name;return vs&&!Ec(vs)?Y_(vs,!1,wt,tr,Ei):CD()}case 277:return M.assert(!tr&&!Ei&&!ye),CD();case 231:return M.assert(!tr&&!Ei&&!ye),rb();case 174:case 177:case 178:return V6(O,ye,tr,Ei);case 167:return lh(0,!0,ye,tr,Ei);default:return lh(0,!1,ye,tr,Ei)}}function j2(O){let ye=O.emitNode.autoGenerate,wt=PN(ye.prefix,dl),tr=PN(ye.suffix);switch(ye.flags&7){case 1:return lh(0,!!(ye.flags&8),es(O),wt,tr);case 2:return M.assertNode(O,$e),lh(268435456,!!(ye.flags&8),!1,wt,tr);case 3:return gS(In(O),ye.flags&32?jd:z0,!!(ye.flags&16),!!(ye.flags&8),es(O),wt,tr)}return M.fail(`Unsupported GeneratedIdentifierKind: ${M.formatEnum(ye.flags&7,sG,!0)}.`)}function WE(O,ye){let wt=pt(2,O,ye),tr=we,Ei=ft,vs=gt;nb(ye),wt(O,ye),Ff(ye,tr,Ei,vs)}function nb(O){let ye=Ko(O),wt=zg(O);J6(O,ye,wt.pos,wt.end),ye&4096&&(Tr=!0)}function Ff(O,ye,wt,tr){let Ei=Ko(O),vs=zg(O);Ei&4096&&(Tr=!1),ib(O,Ei,vs.pos,vs.end,ye,wt,tr);let ps=rde(O);ps&&ib(O,Ei,ps.pos,ps.end,ye,wt,tr)}function J6(O,ye,wt,tr){fr(),ir=!1;let Ei=wt<0||(ye&1024)!==0||O.kind===12,vs=tr<0||(ye&2048)!==0||O.kind===12;(wt>0||tr>0)&&wt!==tr&&(Ei||hS(wt,O.kind!==353),(!Ei||wt>=0&&ye&1024)&&(we=wt),(!vs||tr>=0&&ye&2048)&&(ft=tr,O.kind===261&&(gt=tr))),Et(gN(O),AD),ur()}function ib(O,ye,wt,tr,Ei,vs,ps){fr();let ks=tr<0||(ye&2048)!==0||O.kind===12;Et(uM(O),sb),(wt>0||tr>0)&&wt!==tr&&(we=Ei,ft=vs,gt=ps,!ks&&O.kind!==353&&Un(tr)),ur()}function AD(O){(O.hasLeadingNewline||O.kind===2)&&he.writeLine(),GE(O),O.hasTrailingNewLine||O.kind===2?he.writeLine():he.writeSpace(" ")}function sb(O){he.isAtStartOfLine()||he.writeSpace(" "),GE(O),O.hasTrailingNewLine&&he.writeLine()}function GE(O){let ye=Rk(O),wt=O.kind===3?HC(ye):void 0;cN(ye,wt,he,0,ye.length,R)}function Rk(O){return O.kind===3?`/*${O.text}*/`:`//${O.text}`}function B2(O,ye,wt){fr();let{pos:tr,end:Ei}=ye,vs=Ko(O),ps=tr<0||(vs&1024)!==0,ks=Tr||Ei<0||(vs&2048)!==0;ps||Um(ye),ur(),vs&4096&&!Tr?(Tr=!0,wt(O),Tr=!1):wt(O),fr(),ks||(hS(ye.end,!0),ir&&!he.isAtStartOfLine()&&he.writeLine()),ur()}function _d(O,ye){return O=Bc(O),O.parent&&O.parent===Bc(ye).parent}function kD(O,ye){if(ye.pos-1&&tr.indexOf(ye)===Ei+1}function hS(O,ye){ir=!1,ye?O===0&&J?.isDeclarationFile?ob(O,dg):ob(O,V2):O===0&&ob(O,Mp)}function Mp(O,ye,wt,tr,Ei){Zh(O,ye)&&V2(O,ye,wt,tr,Ei)}function dg(O,ye,wt,tr,Ei){Zh(O,ye)||V2(O,ye,wt,tr,Ei)}function U2(O,ye){return e.onlyPrintJsDocStyle?LY(O,ye)||Z5(O,ye):!0}function V2(O,ye,wt,tr,Ei){!J||!U2(J.text,O)||(ir||(Mfe(Ys(),he,Ei,O),ir=!0),Vm(O),cN(J.text,Ys(),he,O,ye,R),Vm(ye),tr?he.writeLine():wt===3&&he.writeSpace(" "))}function sa(O){Tr||O===-1||hS(O,!0)}function Un(O){yS(O,fd)}function fd(O,ye,wt,tr){!J||!U2(J.text,O)||(he.isAtStartOfLine()||he.writeSpace(" "),Vm(O),cN(J.text,Ys(),he,O,ye,R),Vm(ye),tr&&he.writeLine())}function e_(O,ye,wt){Tr||(fr(),yS(O,ye?fd:wt?PD:ND),ur())}function PD(O,ye,wt){J&&(Vm(O),cN(J.text,Ys(),he,O,ye,R),Vm(ye),wt===2&&he.writeLine())}function ND(O,ye,wt,tr){J&&(Vm(O),cN(J.text,Ys(),he,O,ye,R),Vm(ye),tr?he.writeLine():he.writeSpace(" "))}function ob(O,ye){J&&(we===-1||O!==we)&&(DD(O)?vS(ye):N3(J.text,O,ye,O))}function yS(O,ye){J&&(ft===-1||O!==ft&&O!==gt)&&D3(J.text,O,ye)}function DD(O){return yt!==void 0&&qo(yt).nodePos===O}function vS(O){if(!J)return;let ye=qo(yt).detachedCommentEndPos;yt.length-1?yt.pop():yt=void 0,N3(J.text,ye,O,ye)}function Um(O){let ye=J&&Ffe(J.text,Ys(),he,Lp,O,R,Tr);ye&&(yt?yt.push(ye):yt=[ye])}function Lp(O,ye,wt,tr,Ei,vs){!J||!U2(J.text,tr)||(Vm(tr),cN(O,ye,wt,tr,Ei,vs),Vm(Ei))}function Zh(O,ye){return!!J&&lH(J.text,O,ye)}function uh(O,ye){let wt=pt(3,O,ye);W0(ye),wt(O,ye),J2(ye)}function W0(O){let ye=Ko(O),wt=Rv(O),tr=wt.source||Be;O.kind!==353&&!(ye&32)&&wt.pos>=0&&Fp(wt.source||Be,Ll(tr,wt.pos)),ye&128&&(ke=!0)}function J2(O){let ye=Ko(O),wt=Rv(O);ye&128&&(ke=!1),O.kind!==353&&!(ye&64)&&wt.end>=0&&Fp(wt.source||Be,wt.end)}function Ll(O,ye){return O.skipTrivia?O.skipTrivia(ye):zo(O.text,ye)}function Vm(O){if(ke||rg(O)||SS(Be))return;let{line:ye,character:wt}=Eo(Be,O);De.addMapping(he.getLine(),he.getColumn(),lt,ye,wt,void 0)}function Fp(O,ye){if(O!==Be){let wt=Be,tr=lt;pd(O),Vm(ye),q2(wt,tr)}else Vm(ye)}function o1(O,ye,wt,tr,Ei){if(ke||O&&y9(O))return Ei(ye,wt,tr);let vs=O&&O.emitNode,ps=vs&&vs.flags||0,ks=vs&&vs.tokenSourceMapRanges&&vs.tokenSourceMapRanges[ye],Ro=ks&&ks.source||Be;return tr=Ll(Ro,ks?ks.pos:tr),!(ps&256)&&tr>=0&&Fp(Ro,tr),tr=Ei(ye,wt,tr),ks&&(tr=ks.end),!(ps&512)&&tr>=0&&Fp(Ro,tr),tr}function pd(O){if(!ke){if(Be=O,O===ze){lt=tt;return}SS(O)||(lt=De.addSource(O.fileName),e.inlineSources&&De.setSourceContent(lt,O.text),ze=O,tt=lt)}}function q2(O,ye){Be=O,lt=ye}function SS(O){return wc(O.fileName,".json")}}function VEt(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function JEt(e){return pMe[e&15360][0]}function qEt(e){return pMe[e&15360][1]}function zEt(e,t,n,i){t(e)}function WEt(e,t,n,i){t(e,n.select(i))}function GEt(e,t,n,i){t(e,n)}function HEt(e,t){return e.length===1?zEt:typeof t=="object"?WEt:GEt}function YB(e,t,n){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,s=__(n);return{useCaseSensitiveFileNames:n,fileExists:I,readFile:(K,re)=>e.readFile(K,re),directoryExists:e.directoryExists&&R,getDirectories:F,readDirectory:J,createDirectory:e.createDirectory&&L,writeFile:e.writeFile&&D,addOrDeleteFileOrDirectory:q,addOrDeleteFile:ee,clearCache:pe,realpath:e.realpath&&$};function a(K){return rc(K,t,s)}function u(K){return i.get(vu(K))}function m(K){let re=u(yi(K));return re&&(re.sortedAndCanonicalizedFiles||(re.sortedAndCanonicalizedFiles=re.files.map(s).sort(),re.sortedAndCanonicalizedDirectories=re.directories.map(s).sort()),re)}function d(K){return Ul(eo(K))}function S(K,re){var ue;if(!e.realpath||vu(a(e.realpath(K)))===re){let ce={files:kr(e.readDirectory(K,void 0,void 0,["*.*"]),d)||[],directories:e.getDirectories(K)||[]};return i.set(vu(re),ce),ce}if((ue=e.directoryExists)!=null&&ue.call(e,K))return i.set(re,!1),!1}function E(K,re){re=vu(re);let ue=u(re);if(ue)return ue;try{return S(K,re)}catch{M.assert(!i.has(vu(re)));return}}function x(K,re){return gv(K,re,ec,u_)>=0}function D(K,re,ue){let ce=a(K),ne=m(ce);return ne&&W(ne,d(K),!0),e.writeFile(K,re,ue)}function I(K){let re=a(K),ue=m(re);return ue&&x(ue.sortedAndCanonicalizedFiles,s(d(K)))||e.fileExists(K)}function R(K){let re=a(K);return i.has(vu(re))||e.directoryExists(K)}function L(K){let re=a(K),ue=m(re);if(ue){let ce=d(K),ne=s(ce),le=ue.sortedAndCanonicalizedDirectories;u0(le,ne,u_)&&ue.directories.push(ce)}e.createDirectory(K)}function F(K){let re=a(K),ue=E(K,re);return ue?ue.directories.slice():e.getDirectories(K)}function J(K,re,ue,ce,ne){let le=a(K),me=E(K,le),de;if(me!==void 0)return I$(K,re,ue,ce,n,t,ne,Ae,$);return e.readDirectory(K,re,ue,ce,ne);function Ae(te){let he=a(te);if(he===le)return me||xe(te,he);let Te=E(te,he);return Te!==void 0?Te||xe(te,he):R$}function xe(te,he){if(de&&he===le)return de;let Te={files:kr(e.readDirectory(te,void 0,void 0,["*.*"]),d)||ve,directories:e.getDirectories(te)||ve};return he===le&&(de=Te),Te}}function $(K){return e.realpath?e.realpath(K):K}function q(K,re){if(u(re)!==void 0){pe();return}let ce=m(re);if(!ce)return;if(!e.directoryExists){pe();return}let ne=d(K),le={fileExists:e.fileExists(K),directoryExists:e.directoryExists(K)};return le.directoryExists||x(ce.sortedAndCanonicalizedDirectories,s(ne))?pe():W(ce,ne,le.fileExists),le}function ee(K,re,ue){if(ue===1)return;let ce=m(re);ce&&W(ce,d(K),ue===0)}function W(K,re,ue){let ce=K.sortedAndCanonicalizedFiles,ne=s(re);if(ue)u0(ce,ne,u_)&&K.files.push(re);else{let le=gv(ce,ne,ec,u_);if(le>=0){ce.splice(le,1);let me=K.files.findIndex(de=>s(de)===ne);K.files.splice(me,1)}}}function pe(){i.clear()}}var Bhe=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(Bhe||{});function KB(e,t,n,i,s){var a;let u=CP(((a=t?.configFile)==null?void 0:a.extendedSourceFiles)||ve,s);n.forEach((m,d)=>{u.has(d)||(m.projects.delete(e),m.close())}),u.forEach((m,d)=>{let S=n.get(d);S?S.projects.add(e):n.set(d,{projects:new Set([e]),watcher:i(m,d),close:()=>{let E=n.get(d);!E||E.projects.size!==0||(E.watcher.close(),n.delete(d))}})})}function ZK(e,t){t.forEach(n=>{n.projects.delete(e)&&n.close()})}function XB(e,t,n){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var a;(a=i.extendedSourceFiles)!=null&&a.some(u=>n(u)===t)&&XB(e,s,n)})}function eX(e,t,n){Zw(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:Dm})}function KM(e,t,n){t?Zw(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Dd,onExistingValue:s}):qf(e,Dd);function i(a,u){return{watcher:n(a,u),flags:u}}function s(a,u,m){a.flags!==u&&(a.watcher.close(),e.set(m,i(m,u)))}}function XM({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:i,options:s,program:a,extraFileExtensions:u,currentDirectory:m,useCaseSensitiveFileNames:d,writeLog:S,toPath:E,getScriptKind:x}){let D=oU(n);if(!D)return S(`Project: ${i} Detected ignored path: ${t}`),!0;if(n=D,n===e)return!1;if(PP(n)&&!(Cpe(t,s,u)||J()))return S(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(ege(t,s.configFile.configFileSpecs,Cs(yi(i),m),d,m))return S(`Project: ${i} Detected excluded file: ${t}`),!0;if(!a||s.outFile||s.outDir)return!1;if(ju(n)){if(s.declarationDir)return!1}else if(!Il(n,fN))return!1;let I=lf(n),R=Ms(a)?void 0:$Et(a)?a.getProgramOrUndefined():a,L=!R&&!Ms(a)?a:void 0;if(F(I+".ts")||F(I+".tsx"))return S(`Project: ${i} Detected output file: ${t}`),!0;return!1;function F($){return R?!!R.getSourceFileByPath($):L?L.getState().fileInfos.has($):!!jn(a,q=>E(q)===$)}function J(){if(!x)return!1;switch(x(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return H1(s);case 6:return cE(s);case 0:return!1}}}function $Et(e){return!!e.getState}function Uhe(e,t){return e?e.isEmittedFile(t):!1}var Vhe=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(Vhe||{});function tX(e,t,n,i){due(t===2?n:aa);let s={watchFile:(L,F,J,$)=>e.watchFile(L,F,J,$),watchDirectory:(L,F,J,$)=>e.watchDirectory(L,F,(J&1)!==0,$)},a=t!==0?{watchFile:I("watchFile"),watchDirectory:I("watchDirectory")}:void 0,u=t===2?{watchFile:x,watchDirectory:D}:a||s,m=t===2?E:c6;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(L){return(F,J,$,q,ee,W)=>{var pe;return SB(F,L==="watchFile"?q?.excludeFiles:q?.excludeDirectories,S(),((pe=e.getCurrentDirectory)==null?void 0:pe.call(e))||"")?m(F,$,q,ee,W):u[L].call(void 0,F,J,$,q,ee,W)}}function S(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function E(L,F,J,$,q){return n(`ExcludeWatcher:: Added:: ${R(L,F,J,$,q,i)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${R(L,F,J,$,q,i)}`)}}function x(L,F,J,$,q,ee){n(`FileWatcher:: Added:: ${R(L,J,$,q,ee,i)}`);let W=a.watchFile(L,F,J,$,q,ee);return{close:()=>{n(`FileWatcher:: Close:: ${R(L,J,$,q,ee,i)}`),W.close()}}}function D(L,F,J,$,q,ee){let W=`DirectoryWatcher:: Added:: ${R(L,J,$,q,ee,i)}`;n(W);let pe=Tc(),K=a.watchDirectory(L,F,J,$,q,ee),re=Tc()-pe;return n(`Elapsed:: ${re}ms ${W}`),{close:()=>{let ue=`DirectoryWatcher:: Close:: ${R(L,J,$,q,ee,i)}`;n(ue);let ce=Tc();K.close();let ne=Tc()-ce;n(`Elapsed:: ${ne}ms ${ue}`)}}}function I(L){return(F,J,$,q,ee,W)=>s[L].call(void 0,F,(...pe)=>{let K=`${L==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${pe[0]} ${pe[1]!==void 0?pe[1]:""}:: ${R(F,$,q,ee,W,i)}`;n(K);let re=Tc();J.call(void 0,...pe);let ue=Tc()-re;n(`Elapsed:: ${ue}ms ${K}`)},$,q,ee,W)}function R(L,F,J,$,q,ee){return`WatchInfo: ${L} ${F} ${JSON.stringify(J)} ${ee?ee($,q):q===void 0?$:`${$} ${q}`}`}}function QM(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Dd(e){e.watcher.close()}function rX(e,t,n="tsconfig.json"){return Am(e,i=>{let s=ii(i,n);return t(s)?s:void 0})}function nX(e,t){let n=yi(t),i=op(e)?e:ii(n,e);return eo(i)}function Jhe(e,t,n){let i;return Et(e,a=>{let u=C3(a,t);if(u.pop(),!i){i=u;return}let m=Math.min(i.length,u.length);for(let d=0;d{let a;try{jc("beforeIORead"),a=e(n),jc("afterIORead"),Sd("I/O Read","beforeIORead","afterIORead")}catch(u){s&&s(u.message),a=""}return a!==void 0?$A(n,a,i,t):void 0}}function sX(e,t,n){return(i,s,a,u)=>{try{jc("beforeIOWrite"),r$(i,s,a,e,t,n),jc("afterIOWrite"),Sd("I/O Write","beforeIOWrite","afterIOWrite")}catch(m){u&&u(m.message)}}}function QB(e,t,n=uu){let i=new Map,s=__(n.useCaseSensitiveFileNames);function a(E){return i.has(E)?!0:(S.directoryExists||n.directoryExists)(E)?(i.set(E,!0),!0):!1}function u(){return yi(eo(n.getExecutingFilePath()))}let m=wv(e),d=n.realpath&&(E=>n.realpath(E)),S={getSourceFile:iX(E=>S.readFile(E),t),getDefaultLibLocation:u,getDefaultLibFileName:E=>ii(u(),w3(E)),writeFile:sX((E,x,D)=>n.writeFile(E,x,D),E=>(S.createDirectory||n.createDirectory)(E),E=>a(E)),getCurrentDirectory:nf(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>m,fileExists:E=>n.fileExists(E),readFile:E=>n.readFile(E),trace:E=>n.write(E+m),directoryExists:E=>n.directoryExists(E),getEnvironmentVariable:E=>n.getEnvironmentVariable?n.getEnvironmentVariable(E):"",getDirectories:E=>n.getDirectories(E),realpath:d,readDirectory:(E,x,D,I,R)=>n.readDirectory(E,x,D,I,R),createDirectory:E=>n.createDirectory(E),createHash:so(n,n.createHash)};return S}function i6(e,t,n){let i=e.readFile,s=e.fileExists,a=e.directoryExists,u=e.createDirectory,m=e.writeFile,d=new Map,S=new Map,E=new Map,x=new Map,D=L=>{let F=t(L),J=d.get(F);return J!==void 0?J!==!1?J:void 0:I(F,L)},I=(L,F)=>{let J=i.call(e,F);return d.set(L,J!==void 0?J:!1),J};e.readFile=L=>{let F=t(L),J=d.get(F);return J!==void 0?J!==!1?J:void 0:!wc(L,".json")&&!Rhe(L)?i.call(e,L):I(F,L)};let R=n?(L,F,J,$)=>{let q=t(L),ee=typeof F=="object"?F.impliedNodeFormat:void 0,W=x.get(ee),pe=W?.get(q);if(pe)return pe;let K=n(L,F,J,$);return K&&(ju(L)||wc(L,".json"))&&x.set(ee,(W||new Map).set(q,K)),K}:void 0;return e.fileExists=L=>{let F=t(L),J=S.get(F);if(J!==void 0)return J;let $=s.call(e,L);return S.set(F,!!$),$},m&&(e.writeFile=(L,F,...J)=>{let $=t(L);S.delete($);let q=d.get($);q!==void 0&&q!==F?(d.delete($),x.forEach(ee=>ee.delete($))):R&&x.forEach(ee=>{let W=ee.get($);W&&W.text!==F&&ee.delete($)}),m.call(e,L,F,...J)}),a&&(e.directoryExists=L=>{let F=t(L),J=E.get(F);if(J!==void 0)return J;let $=a.call(e,L);return E.set(F,!!$),$},u&&(e.createDirectory=L=>{let F=t(L);E.delete(F),u.call(e,L)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:a,originalCreateDirectory:u,originalWriteFile:m,getSourceFileWithCache:R,readFileWithCache:D}}function TMe(e,t,n){let i;return i=On(i,e.getConfigFileParsingDiagnostics()),i=On(i,e.getOptionsDiagnostics(n)),i=On(i,e.getSyntacticDiagnostics(t,n)),i=On(i,e.getGlobalDiagnostics(n)),i=On(i,e.getSemanticDiagnostics(t,n)),Hp(e.getCompilerOptions())&&(i=On(i,e.getDeclarationDiagnostics(t,n))),wP(i||ve)}function bMe(e,t){let n="";for(let i of e)n+=oX(i,t);return n}function oX(e,t){let n=`${Bx(e)} TS${e.code}: ${Qg(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:s}=Eo(e.file,e.start),a=e.file.fileName;return`${nw(a,t.getCurrentDirectory(),m=>t.getCanonicalFileName(m))}(${i+1},${s+1}): `+n}return n}var zhe=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(zhe||{}),Whe="\x1B[7m",Ghe=" ",EMe="\x1B[0m",xMe="...",YEt="  ",CMe="    ";function AMe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return M.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function AE(e,t){return t+e+EMe}function kMe(e,t,n,i,s,a){let{line:u,character:m}=Eo(e,t),{line:d,character:S}=Eo(e,t+n),E=Eo(e,e.text.length).line,x=d-u>=4,D=(d+1+"").length;x&&(D=Math.max(xMe.length,D));let I="";for(let R=u;R<=d;R++){I+=a.getNewLine(),x&&u+1n.getCanonicalFileName(d)):e.fileName,m="";return m+=i(u,"\x1B[96m"),m+=":",m+=i(`${s+1}`,"\x1B[93m"),m+=":",m+=i(`${a+1}`,"\x1B[93m"),m}function Hhe(e,t){let n="";for(let i of e){if(i.file){let{file:s,start:a}=i;n+=aX(s,a,t),n+=" - "}if(n+=AE(Bx(i),AMe(i.category)),n+=AE(` TS${i.code}: `,"\x1B[90m"),n+=Qg(i.messageText,t.getNewLine()),i.file&&i.code!==v.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=kMe(i.file,i.start,i.length,"",AMe(i.category),t)),i.relatedInformation){n+=t.getNewLine();for(let{file:s,start:a,length:u,messageText:m}of i.relatedInformation)s&&(n+=t.getNewLine(),n+=YEt+aX(s,a,t),n+=kMe(s,a,u,CMe,"\x1B[96m",t)),n+=t.getNewLine(),n+=CMe+Qg(m,t.getNewLine())}n+=t.getNewLine()}return n}function Qg(e,t,n=0){if(bs(e))return e;if(e===void 0)return"";let i="";if(n){i+=t;for(let s=0;slX(t,e,n)};function fX(e,t,n,i,s){return{nameAndMode:_X,resolve:(a,u)=>ZA(a,e,n,i,s,t,u)}}function pX(e){return bs(e)?e:e.fileName}var KEt={getName:pX,getMode:(e,t)=>ZM(e,t?.impliedNodeFormat)};function ZB(e,t,n,i,s){return{nameAndMode:KEt,resolve:(a,u)=>uge(a,e,n,i,t,s,u)}}function e8(e,t,n,i,s,a,u,m){if(e.length===0)return ve;let d=[],S=new Map,E=m(t,n,i,a,u);for(let x of e){let D=E.nameAndMode.getName(x),I=E.nameAndMode.getMode(x,s,n?.commandLine.options||i),R=qO(D,I),L=S.get(R);L||S.set(R,L=E.resolve(D,I)),d.push(L)}return d}function dX(e,t){return eU(void 0,e,(n,i)=>n&&t(n,i))}function eU(e,t,n,i){let s;return a(e,t,void 0);function a(u,m,d){if(i){let S=i(u,d);if(S)return S}return Et(m,(S,E)=>{if(S&&s?.has(S.sourceFile.path))return;let x=n(S,d,E);return x||!S?x:((s||(s=new Set)).add(S.sourceFile.path),a(S.commandLine.projectReferences,S.references,S))})}}var s6="__inferred type names__.ts";function tU(e,t,n){let i=e.configFilePath?yi(e.configFilePath):t;return ii(i,`__lib_node_modules_lookup_${n}__.ts`)}function mX(e){let t=e.split("."),n=t[1],i=2;for(;t[i]&&t[i]!=="d";)n+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+n}function NMe(e){return R1(e.fileName)}function DMe(e){let t=NMe(e);return JY.get(t)}function wT(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function VN(e){return e.pos!==void 0}function o6(e,t){var n,i,s,a;let u=M.checkDefined(e.getSourceFileByPath(t.file)),{kind:m,index:d}=t,S,E,x;switch(m){case 3:let D=n8(u,d);if(x=(i=(n=e.getResolvedModuleFromModuleSpecifier(D,u))==null?void 0:n.resolvedModule)==null?void 0:i.packageId,D.pos===-1)return{file:u,packageId:x,text:D.text};S=zo(u.text,D.pos),E=D.end;break;case 4:({pos:S,end:E}=u.referencedFiles[d]);break;case 5:({pos:S,end:E}=u.typeReferenceDirectives[d]),x=(a=(s=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(u.typeReferenceDirectives[d],u))==null?void 0:s.resolvedTypeReferenceDirective)==null?void 0:a.packageId;break;case 7:({pos:S,end:E}=u.libReferenceDirectives[d]);break;default:return M.assertNever(m)}return{file:u,pos:S,end:E,packageId:x}}function gX(e,t,n,i,s,a,u,m,d,S){if(!e||m?.()||!Jp(e.getRootFileNames(),t))return!1;let E;if(!Jp(e.getProjectReferences(),S,L)||e.getSourceFiles().some(I))return!1;let x=e.getMissingFilePaths();if(x&&Iu(x,s))return!1;let D=e.getCompilerOptions();if(!h$(D,n)||e.resolvedLibReferences&&Iu(e.resolvedLibReferences,(J,$)=>u($)))return!1;if(D.configFile&&n.configFile)return D.configFile.text===n.configFile.text;return!0;function I(J){return!R(J)||a(J.path)}function R(J){return J.version===i(J.resolvedPath,J.fileName)}function L(J,$,q){return oH(J,$)&&F(e.getResolvedProjectReferences()[q],J)}function F(J,$){if(J){if(xs(E,J))return!0;let ee=JN($),W=d(ee);return!W||J.commandLine.options.configFile!==W.options.configFile||!Jp(J.commandLine.fileNames,W.fileNames)?!1:((E||(E=[])).push(J),!Et(J.references,(pe,K)=>!F(pe,J.commandLine.projectReferences[K])))}let q=JN($);return!d(q)}}function kE(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function t8(e,t,n,i){let s=rU(e,t,n,i);return typeof s=="object"?s.impliedNodeFormat:s}function rU(e,t,n,i){switch(cf(i)){case 3:case 99:return Il(e,[".d.mts",".mts",".mjs"])?99:Il(e,[".d.cts",".cts",".cjs"])?1:Il(e,[".d.ts",".ts",".tsx",".js",".jsx"])?s():void 0;default:return}function s(){let a=zO(t,n,i),u=[];a.failedLookupLocations=u,a.affectingLocations=u;let m=WO(e,a);return{impliedNodeFormat:m?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:u,packageJsonScope:m}}}var hX=new Set([v.Cannot_redeclare_block_scoped_variable_0.code,v.A_module_cannot_have_multiple_default_exports.code,v.Another_export_default_is_here.code,v.The_first_export_default_is_here.code,v.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,v.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,v.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,v.constructor_is_a_reserved_word.code,v.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,v.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,v.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,v.Invalid_use_of_0_in_strict_mode.code,v.A_label_is_not_allowed_here.code,v.with_statements_are_not_allowed_in_strict_mode.code,v.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,v.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,v.A_class_declaration_without_the_default_modifier_must_have_a_name.code,v.A_class_member_cannot_have_the_0_keyword.code,v.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,v.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,v.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,v.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,v.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,v.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,v.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,v.A_destructuring_declaration_must_have_an_initializer.code,v.A_get_accessor_cannot_have_parameters.code,v.A_rest_element_cannot_contain_a_binding_pattern.code,v.A_rest_element_cannot_have_a_property_name.code,v.A_rest_element_cannot_have_an_initializer.code,v.A_rest_element_must_be_last_in_a_destructuring_pattern.code,v.A_rest_parameter_cannot_have_an_initializer.code,v.A_rest_parameter_must_be_last_in_a_parameter_list.code,v.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,v.A_return_statement_cannot_be_used_inside_a_class_static_block.code,v.A_set_accessor_cannot_have_rest_parameter.code,v.A_set_accessor_must_have_exactly_one_parameter.code,v.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,v.An_export_declaration_cannot_have_modifiers.code,v.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,v.An_import_declaration_cannot_have_modifiers.code,v.An_object_member_cannot_be_declared_optional.code,v.Argument_of_dynamic_import_cannot_be_spread_element.code,v.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,v.Cannot_redeclare_identifier_0_in_catch_clause.code,v.Catch_clause_variable_cannot_have_an_initializer.code,v.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,v.Classes_can_only_extend_a_single_class.code,v.Classes_may_not_have_a_field_named_constructor.code,v.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,v.Duplicate_label_0.code,v.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,v.for_await_loops_cannot_be_used_inside_a_class_static_block.code,v.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,v.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,v.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,v.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,v.Jump_target_cannot_cross_function_boundary.code,v.Line_terminator_not_permitted_before_arrow.code,v.Modifiers_cannot_appear_here.code,v.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,v.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,v.Private_identifiers_are_not_allowed_outside_class_bodies.code,v.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,v.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,v.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,v.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,v.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,v.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,v.Trailing_comma_not_allowed.code,v.Variable_declaration_list_cannot_be_empty.code,v._0_and_1_operations_cannot_be_mixed_without_parentheses.code,v._0_expected.code,v._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,v._0_list_cannot_be_empty.code,v._0_modifier_already_seen.code,v._0_modifier_cannot_appear_on_a_constructor_declaration.code,v._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,v._0_modifier_cannot_appear_on_a_parameter.code,v._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,v._0_modifier_cannot_be_used_here.code,v._0_modifier_must_precede_1_modifier.code,v._0_declarations_can_only_be_declared_inside_a_block.code,v._0_declarations_must_be_initialized.code,v.extends_clause_already_seen.code,v.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,v.Class_constructor_may_not_be_a_generator.code,v.Class_constructor_may_not_be_an_accessor.code,v.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,v.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,v.Private_field_0_must_be_declared_in_an_enclosing_class.code,v.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function XEt(e,t){return e?VP(e.getCompilerOptions(),t,WY):!1}function QEt(e,t,n,i,s,a){return{rootNames:e,options:t,host:n,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:a}}function r8(e,t,n,i,s){var a,u,m,d,S,E,x,D,I,R,L,F,J,$,q,ee;let W=Ms(e)?QEt(e,t,n,i,s):e,{rootNames:pe,options:K,configFileParsingDiagnostics:re,projectReferences:ue,typeScriptVersion:ce}=W,{oldProgram:ne}=W;for(let Ge of Vme)if(Ha(K,Ge.name)&&typeof K[Ge.name]=="string")throw new Error(`${Ge.name} is a string value; tsconfig JSON must be parsed with parseJsonSourceFileConfigFileContent or getParsedCommandLineOfConfigFile before passing to createProgram`);let le=nf(()=>g_("ignoreDeprecations",v.Invalid_value_for_ignoreDeprecations)),me,de,Ae,xe,te,he,Te,Ve=new Map,Pe=vd(),ke,De,Be,lt={},ze={},tt,we,ft,gt,Qe,yt,ir,Tr,Ar,Vr,fr=typeof K.maxNodeModuleJsDepth=="number"?K.maxNodeModuleJsDepth:0,ur=0,tn=new Map,Mi=new Map;(a=kn)==null||a.push(kn.Phase.Program,"createProgram",{configFilePath:K.configFilePath,rootDir:K.rootDir},!0),jc("beforeProgram");let br=W.host||qhe(K),Di=iU(br),As=K.noLib,os=nf(()=>br.getDefaultLibFileName(K)),Ri=br.getDefaultLibLocation?br.getDefaultLibLocation():yi(os()),$r=qw(),Qs=[],He=br.getCurrentDirectory(),Xt=iO(K),qr=QR(K,Xt),Pn=new Map,Ti,ki,Vi,uo,Ys=br.hasInvalidatedResolutions||Ng;br.resolveModuleNameLiterals?(uo=br.resolveModuleNameLiterals.bind(br),Vi=(u=br.getModuleResolutionCache)==null?void 0:u.call(br)):br.resolveModuleNames?(uo=(Ge,ot,qt,ar,Nr,pn)=>br.resolveModuleNames(Ge.map(Yhe),ot,pn?.map(Yhe),qt,ar,Nr).map(Mr=>Mr?Mr.extension!==void 0?{resolvedModule:Mr}:{resolvedModule:{...Mr,extension:oO(Mr.resolvedFileName)}}:PMe),Vi=(m=br.getModuleResolutionCache)==null?void 0:m.call(br)):(Vi=ON(He,Yn,K),uo=(Ge,ot,qt,ar,Nr)=>e8(Ge,ot,qt,ar,Nr,br,Vi,fX));let Sr;if(br.resolveTypeReferenceDirectiveReferences)Sr=br.resolveTypeReferenceDirectiveReferences.bind(br);else if(br.resolveTypeReferenceDirectives)Sr=(Ge,ot,qt,ar,Nr)=>br.resolveTypeReferenceDirectives(Ge.map(pX),ot,qt,ar,Nr?.impliedNodeFormat).map(pn=>({resolvedTypeReferenceDirective:pn}));else{let Ge=CB(He,Yn,void 0,Vi?.getPackageJsonInfoCache(),Vi?.optionsToRedirectsKey);Sr=(ot,qt,ar,Nr,pn)=>e8(ot,qt,ar,Nr,pn,br,Ge,ZB)}let ia=br.hasInvalidatedLibResolutions||Ng,ut;if(br.resolveLibrary)ut=br.resolveLibrary.bind(br);else{let Ge=ON(He,Yn,K,Vi?.getPackageJsonInfoCache());ut=(ot,qt,ar)=>AB(ot,qt,ar,br,Ge)}let Tt=new Map,fe=new Map,St=vd(),Ce=!1,it=new Map,Me=new Map,rt=br.useCaseSensitiveFileNames()?new Map:void 0,pt,nr,Oe,Nt,It=!!((d=br.useSourceOfProjectReferenceRedirect)!=null&&d.call(br))&&!K.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:Vt,fileExists:Mt,directoryExists:sr}=ZEt({compilerHost:br,getSymlinkCache:fg,useSourceOfProjectReferenceRedirect:It,toPath:rr,getResolvedProjectReferences:xu,getSourceOfProjectReferenceRedirect:Yh,forEachResolvedProjectReference:Hl}),Z=br.readFile.bind(br);(S=kn)==null||S.push(kn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!ne});let Ye=XEt(ne,K);(E=kn)==null||E.pop();let bt;if((x=kn)==null||x.push(kn.Phase.Program,"tryReuseStructureFromOldProgram",{}),bt=oo(),(D=kn)==null||D.pop(),bt!==2){if(me=[],de=[],ue&&(pt||(pt=ue.map(Fe)),pe.length&&pt?.forEach((Ge,ot)=>{if(!Ge)return;let qt=Ge.commandLine.options.outFile;if(It){if(qt||J_(Ge.commandLine.options)===0)for(let ar of Ge.commandLine.fileNames)au(ar,{kind:1,index:ot})}else if(qt)au(Y1(qt,".d.ts"),{kind:2,index:ot});else if(J_(Ge.commandLine.options)===0){let ar=nf(()=>rk(Ge.commandLine,!br.useCaseSensitiveFileNames()));for(let Nr of Ge.commandLine.fileNames)!ju(Nr)&&!wc(Nr,".json")&&au(BN(Nr,Ge.commandLine,!br.useCaseSensitiveFileNames(),ar),{kind:2,index:ot})}})),(I=kn)==null||I.push(kn.Phase.Program,"processRootFiles",{count:pe.length}),Et(pe,(Ge,ot)=>Gl(Ge,!1,!1,{kind:0,index:ot})),(R=kn)==null||R.pop(),we??(we=pe.length?EB(K,br):ve),ft=wN(),we.length){(L=kn)==null||L.push(kn.Phase.Program,"processTypeReferences",{count:we.length});let Ge=K.configFilePath?yi(K.configFilePath):He,ot=ii(Ge,s6),qt=wa(we,ot);for(let ar=0;ar{Gl(Zt(ot),!0,!1,{kind:6,index:qt})})}Ae=Zs(me,Cr).concat(de),me=void 0,de=void 0,ke=void 0}if(ne&&br.onReleaseOldSourceFile){let Ge=ne.getSourceFiles();for(let ot of Ge){let qt=pr(ot.resolvedPath);(Ye||!qt||qt.impliedNodeFormat!==ot.impliedNodeFormat||ot.resolvedPath===ot.path&&qt.resolvedPath!==ot.path)&&br.onReleaseOldSourceFile(ot,ne.getCompilerOptions(),!!pr(ot.path))}br.getParsedCommandLine||ne.forEachResolvedProjectReference(ot=>{rh(ot.sourceFile.path)||br.onReleaseOldSourceFile(ot.sourceFile,ne.getCompilerOptions(),!1)})}ne&&br.onReleaseParsedCommandLine&&eU(ne.getProjectReferences(),ne.getResolvedProjectReferences(),(Ge,ot,qt)=>{let ar=ot?.commandLine.projectReferences[qt]||ne.getProjectReferences()[qt],Nr=JN(ar);nr?.has(rr(Nr))||br.onReleaseParsedCommandLine(Nr,Ge,ne.getCompilerOptions())}),ne=void 0,Qe=void 0,ir=void 0,Ar=void 0;let Q={getRootFileNames:()=>pe,getSourceFile:ga,getSourceFileByPath:pr,getSourceFiles:()=>Ae,getMissingFilePaths:()=>Me,getModuleResolutionCache:()=>Vi,getFilesByNameMap:()=>it,getCompilerOptions:()=>K,getSyntacticDiagnostics:W_,getOptionsDiagnostics:gc,getGlobalDiagnostics:Gf,getSemanticDiagnostics:G_,getCachedSemanticDiagnostics:Wf,getSuggestionDiagnostics:Li,getDeclarationDiagnostics:Se,getBindAndCheckDiagnostics:dc,getProgramDiagnostics:tl,getTypeChecker:Zu,getClassifiableNames:pa,getCommonSourceDirectory:zs,emit:Bo,getCurrentDirectory:()=>He,getNodeCount:()=>Zu().getNodeCount(),getIdentifierCount:()=>Zu().getIdentifierCount(),getSymbolCount:()=>Zu().getSymbolCount(),getTypeCount:()=>Zu().getTypeCount(),getInstantiationCount:()=>Zu().getInstantiationCount(),getRelationCacheSizes:()=>Zu().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>tt,getAutomaticTypeDirectiveNames:()=>we,getAutomaticTypeDirectiveResolutions:()=>ft,isSourceFileFromExternalLibrary:D_,isSourceFileDefaultLibrary:el,getModeForUsageLocation:ld,getModeForResolutionAtIndex:M0,getSourceFileFromReference:ea,getLibFileFromReference:hs,sourceFileToPackageName:fe,redirectTargetsMap:St,usesUriStyleNodeCoreModules:Ce,resolvedModules:yt,resolvedTypeReferenceDirectiveNames:Tr,resolvedLibReferences:gt,getResolvedModule:Ue,getResolvedModuleFromModuleSpecifier:be,getResolvedTypeReferenceDirective:Re,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:Ot,forEachResolvedModule:Ht,forEachResolvedTypeReferenceDirective:$t,getCurrentPackagesMap:()=>Vr,typesPackageExists:Yr,packageBundlesTypes:gn,isEmittedFile:um,getConfigFileParsingDiagnostics:rl,getProjectReferences:Ac,getResolvedProjectReferences:xu,getProjectReferenceRedirect:od,getResolvedProjectReferenceToRedirect:Mf,getResolvedProjectReferenceByPath:rh,forEachResolvedProjectReference:Hl,isSourceOfProjectReferenceRedirect:$f,getRedirectReferenceForResolutionFromSourceOfProject:hi,emitBuildInfo:Wi,fileExists:Mt,readFile:Z,directoryExists:sr,getSymlinkCache:fg,realpath:(q=br.realpath)==null?void 0:q.bind(br),useCaseSensitiveFileNames:()=>br.useCaseSensitiveFileNames(),getCanonicalFileName:Yn,getFileIncludeReasons:()=>Pe,structureIsReused:bt,writeFile:rs};return Vt(),Bt(),jc("afterProgram"),Sd("Program","beforeProgram","afterProgram"),(ee=kn)==null||ee.pop(),Q;function Xe(){return Qs&&(tt?.forEach(Ge=>{switch(Ge.kind){case 1:return $r.add(Ws(Ge.file&&pr(Ge.file),Ge.fileProcessingReason,Ge.diagnostic,Ge.args||ve));case 0:return $r.add(z(Ge));case 2:return Ge.diagnostics.forEach(ot=>$r.add(ot));default:M.assertNever(Ge)}}),Qs.forEach(({file:Ge,diagnostic:ot,args:qt})=>$r.add(Ws(Ge,void 0,ot,qt))),Qs=void 0,De=void 0,Be=void 0),$r}function z({reason:Ge}){let{file:ot,pos:qt,end:ar}=o6(Q,Ge),Nr=ot.libReferenceDirectives[Ge.index],pn=NMe(Nr),Mr=kP(HI(pn,"lib."),".d.ts"),Nn=Fx(Mr,aB,ec);return bu(ot,M.checkDefined(qt),M.checkDefined(ar)-qt,Nn?v.Cannot_find_lib_definition_for_0_Did_you_mean_1:v.Cannot_find_lib_definition_for_0,pn,Nn)}function Ue(Ge,ot,qt){var ar;return(ar=yt?.get(Ge.path))==null?void 0:ar.get(ot,qt)}function be(Ge,ot){return ot??(ot=Jr(Ge)),M.assertIsDefined(ot,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),Ue(ot,Ge.text,ld(ot,Ge))}function Re(Ge,ot,qt){var ar;return(ar=Tr?.get(Ge.path))==null?void 0:ar.get(ot,qt)}function Ot(Ge,ot){return Re(ot,Ge.fileName,Ge.resolutionMode||ot.impliedNodeFormat)}function Ht(Ge,ot){gr(yt,Ge,ot)}function $t(Ge,ot){gr(Tr,Ge,ot)}function gr(Ge,ot,qt){var ar;qt?(ar=Ge?.get(qt.path))==null||ar.forEach((Nr,pn,Mr)=>ot(Nr,pn,Mr,qt.path)):Ge?.forEach((Nr,pn)=>Nr.forEach((Mr,Nn,Bi)=>ot(Mr,Nn,Bi,pn)))}function Wr(){return Vr||(Vr=new Map,Ht(({resolvedModule:Ge})=>{Ge?.packageId&&Vr.set(Ge.packageId.name,Ge.extension===".d.ts"||!!Vr.get(Ge.packageId.name))}),Vr)}function Yr(Ge){return Wr().has(DB(Ge))}function gn(Ge){return!!Wr().get(Ge)}function Pr(Ge){var ot;(ot=Ge.resolutionDiagnostics)!=null&&ot.length&&(tt??(tt=[])).push({kind:2,diagnostics:Ge.resolutionDiagnostics})}function Rn(Ge,ot,qt,ar){if(br.resolveModuleNameLiterals||!br.resolveModuleNames)return Pr(qt);if(!Vi||Su(ot))return;let Nr=Cs(Ge.originalFileName,He),pn=yi(Nr),Mr=Xn(Ge),Nn=Vi.getFromNonRelativeNameCache(ot,ar,pn,Mr);Nn&&Pr(Nn)}function Xi(Ge,ot,qt){var ar,Nr;if(!Ge.length)return ve;let pn=Cs(ot.originalFileName,He),Mr=Xn(ot);(ar=kn)==null||ar.push(kn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:pn}),jc("beforeResolveModule");let Nn=uo(Ge,pn,Mr,K,ot,qt);return jc("afterResolveModule"),Sd("ResolveModule","beforeResolveModule","afterResolveModule"),(Nr=kn)==null||Nr.pop(),Nn}function us(Ge,ot,qt){var ar,Nr;if(!Ge.length)return[];let pn=bs(ot)?void 0:ot,Mr=bs(ot)?ot:Cs(ot.originalFileName,He),Nn=pn&&Xn(pn);(ar=kn)==null||ar.push(kn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:Mr}),jc("beforeResolveTypeReference");let Bi=Sr(Ge,Mr,Nn,K,pn,qt);return jc("afterResolveTypeReference"),Sd("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Nr=kn)==null||Nr.pop(),Bi}function Xn(Ge){let ot=Mf(Ge.originalFileName);if(ot||!ju(Ge.originalFileName))return ot;let qt=hi(Ge.path);if(qt)return qt;if(!br.realpath||!K.preserveSymlinks||!Ge.originalFileName.includes(Fy))return;let ar=rr(br.realpath(Ge.originalFileName));return ar===Ge.path?void 0:hi(ar)}function hi(Ge){let ot=Yh(Ge);if(bs(ot))return Mf(ot);if(ot)return Hl(qt=>{let ar=qt.commandLine.options.outFile;if(ar)return rr(ar)===Ge?qt:void 0})}function Cr(Ge,ot){return tc(nn(Ge),nn(ot))}function nn(Ge){if(Cm(Ri,Ge.fileName,!1)){let ot=Ul(Ge.fileName);if(ot==="lib.d.ts"||ot==="lib.es6.d.ts")return 0;let qt=kP(HI(ot,"lib."),".d.ts"),ar=aB.indexOf(qt);if(ar!==-1)return ar+1}return aB.length+2}function rr(Ge){return rc(Ge,He,Yn)}function zs(){if(te===void 0){let Ge=ti(Ae,ot=>t2(ot,Q));te=n6(K,()=>Yi(Ge,ot=>ot.isDeclarationFile?void 0:ot.fileName),He,Yn,ot=>G(Ge,ot))}return te}function pa(){var Ge;if(!Te){Zu(),Te=new Set;for(let ot of Ae)(Ge=ot.classifiableNames)==null||Ge.forEach(qt=>Te.add(qt))}return Te}function Fa(Ge,ot){if(bt===0&&!ot.ambientModuleNames.length)return Xi(Ge,ot,void 0);let qt,ar,Nr,pn=PMe,Mr=ne&&ne.getSourceFile(ot.fileName);for(let Ii=0;Ii{let ar=(ot?ot.commandLine.projectReferences:ue)[qt],Nr=Fe(ar);return Ge?!Nr||Nr.sourceFile!==Ge.sourceFile||!Jp(Ge.commandLine.fileNames,Nr.commandLine.fileNames):Nr!==void 0},(Ge,ot)=>{let qt=ot?rh(ot.sourceFile.path).commandLine.projectReferences:ue;return!Jp(Ge,qt,oH)})}function oo(){var Ge;if(!ne)return 0;let ot=ne.getCompilerOptions();if(H5(ot,K))return 0;let qt=ne.getRootFileNames();if(!Jp(qt,pe)||!gs())return 0;ue&&(pt=ue.map(Fe));let ar=[],Nr=[];if(bt=2,Iu(ne.getMissingFilePaths(),Cn=>br.fileExists(Cn)))return 0;let pn=ne.getSourceFiles(),Mr;(Cn=>{Cn[Cn.Exists=0]="Exists",Cn[Cn.Modified=1]="Modified"})(Mr||(Mr={}));let Nn=new Map;for(let Cn of pn){let Ii=Hf(Cn.fileName,Vi,br,K),cn=br.getSourceFileByPath?br.getSourceFileByPath(Cn.fileName,Cn.resolvedPath,Ii,void 0,Ye):br.getSourceFile(Cn.fileName,Ii,void 0,Ye);if(!cn)return 0;cn.packageJsonLocations=(Ge=Ii.packageJsonLocations)!=null&&Ge.length?Ii.packageJsonLocations:void 0,cn.packageJsonScope=Ii.packageJsonScope,M.assert(!cn.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Is;if(Cn.redirectInfo){if(cn!==Cn.redirectInfo.unredirected)return 0;Is=!1,cn=Cn}else if(ne.redirectTargetsMap.has(Cn.path)){if(cn!==Cn)return 0;Is=!1}else Is=cn!==Cn;cn.path=Cn.path,cn.originalFileName=Cn.originalFileName,cn.resolvedPath=Cn.resolvedPath,cn.fileName=Cn.fileName;let Oo=ne.sourceFileToPackageName.get(Cn.path);if(Oo!==void 0){let Cu=Nn.get(Oo),I_=Is?1:0;if(Cu!==void 0&&I_===1||Cu===1)return 0;Nn.set(Oo,I_)}if(Is)Cn.impliedNodeFormat!==cn.impliedNodeFormat?bt=1:Jp(Cn.libReferenceDirectives,cn.libReferenceDirectives,id)?Cn.hasNoDefaultLib!==cn.hasNoDefaultLib?bt=1:Jp(Cn.referencedFiles,cn.referencedFiles,id)?(Kr(cn),Jp(Cn.imports,cn.imports,Je)&&Jp(Cn.moduleAugmentations,cn.moduleAugmentations,Je)?(Cn.flags&12582912)!==(cn.flags&12582912)?bt=1:Jp(Cn.typeReferenceDirectives,cn.typeReferenceDirectives,id)||(bt=1):bt=1):bt=1:bt=1,Nr.push(cn);else if(Ys(Cn.path))bt=1,Nr.push(cn);else for(let Cu of Cn.ambientModuleNames)Ve.set(Cu,Cn.fileName);ar.push(cn)}if(bt!==2)return bt;for(let Cn of Nr){let Ii=IMe(Cn),cn=Fa(Ii,Cn);(ir??(ir=new Map)).set(Cn.path,cn),aH(Ii,cn,_m=>ne.getResolvedModule(Cn,_m.text,ld(Cn,_m)),E_e)&&(bt=1);let Oo=Cn.typeReferenceDirectives,Cu=wa(Oo,Cn);(Ar??(Ar=new Map)).set(Cn.path,Cu),aH(Oo,Cu,_m=>ne.getResolvedTypeReferenceDirective(Cn,pX(_m),ZM(_m,Cn.impliedNodeFormat)),x_e)&&(bt=1)}if(bt!==2)return bt;if(T_e(ot,K)||ne.resolvedLibReferences&&Iu(ne.resolvedLibReferences,(Cn,Ii)=>Ur(Ii).actual!==Cn.actual))return 1;if(br.hasChangedAutomaticTypeDirectiveNames){if(br.hasChangedAutomaticTypeDirectiveNames())return 1}else if(we=EB(K,br),!Jp(ne.getAutomaticTypeDirectiveNames(),we))return 1;Me=ne.getMissingFilePaths(),M.assert(ar.length===ne.getSourceFiles().length);for(let Cn of ar)it.set(Cn.path,Cn);return ne.getFilesByNameMap().forEach((Cn,Ii)=>{if(!Cn){it.set(Ii,Cn);return}if(Cn.path===Ii){ne.isSourceFileFromExternalLibrary(Cn)&&Mi.set(Cn.path,!0);return}it.set(Ii,it.get(Cn.path))}),Ae=ar,Pe=ne.getFileIncludeReasons(),tt=ne.getFileProcessingDiagnostics(),we=ne.getAutomaticTypeDirectiveNames(),ft=ne.getAutomaticTypeDirectiveResolutions(),fe=ne.sourceFileToPackageName,St=ne.redirectTargetsMap,Ce=ne.usesUriStyleNodeCoreModules,yt=ne.resolvedModules,Tr=ne.resolvedTypeReferenceDirectiveNames,gt=ne.resolvedLibReferences,Vr=ne.getCurrentPackagesMap(),2}function vc(Ge){return{getCanonicalFileName:Yn,getCommonSourceDirectory:Q.getCommonSourceDirectory,getCompilerOptions:Q.getCompilerOptions,getCurrentDirectory:()=>He,getSourceFile:Q.getSourceFile,getSourceFileByPath:Q.getSourceFileByPath,getSourceFiles:Q.getSourceFiles,isSourceFileFromExternalLibrary:D_,getResolvedProjectReferenceToRedirect:Mf,getProjectReferenceRedirect:od,isSourceOfProjectReferenceRedirect:$f,getSymlinkCache:fg,writeFile:Ge||rs,isEmitBlocked:Sc,readFile:ot=>br.readFile(ot),fileExists:ot=>{let qt=rr(ot);return pr(qt)?!0:Me.has(qt)?!1:br.fileExists(ot)},realpath:so(br,br.realpath),useCaseSensitiveFileNames:()=>br.useCaseSensitiveFileNames(),getBuildInfo:()=>{var ot;return(ot=Q.getBuildInfo)==null?void 0:ot.call(Q)},getSourceFileFromReference:(ot,qt)=>Q.getSourceFileFromReference(ot,qt),redirectTargetsMap:St,getFileIncludeReasons:Q.getFileIncludeReasons,createHash:so(br,br.createHash),getModuleResolutionCache:()=>Q.getModuleResolutionCache(),trace:so(br,br.trace)}}function rs(Ge,ot,qt,ar,Nr,pn){br.writeFile(Ge,ot,qt,ar,Nr,pn)}function Wi(Ge){var ot,qt;M.assert(!K.outFile),(ot=kn)==null||ot.push(kn.Phase.Emit,"emitBuildInfo",{},!0),jc("beforeEmit");let ar=XK(Lhe,vc(Ge),void 0,whe,!1,!0);return jc("afterEmit"),Sd("Emit","beforeEmit","afterEmit"),(qt=kn)==null||qt.pop(),ar}function xu(){return pt}function Ac(){return ue}function D_(Ge){return!!Mi.get(Ge.path)}function el(Ge){if(!Ge.isDeclarationFile)return!1;if(Ge.hasNoDefaultLib)return!0;if(!K.noLib)return!1;let ot=br.useCaseSensitiveFileNames()?Lx:KS;return K.lib?Dt(K.lib,qt=>ot(Ge.fileName,gt.get(qt).actual)):ot(Ge.fileName,os())}function Zu(){return he||(he=Fge(Q))}function Bo(Ge,ot,qt,ar,Nr,pn){var Mr,Nn;(Mr=kn)==null||Mr.push(kn.Phase.Emit,"emit",{path:Ge?.path},!0);let Bi=Ke(()=>ja(Q,Ge,ot,qt,ar,Nr,pn));return(Nn=kn)==null||Nn.pop(),Bi}function Sc(Ge){return Pn.has(rr(Ge))}function ja(Ge,ot,qt,ar,Nr,pn,Mr){if(!Mr){let Ii=vX(Ge,ot,qt,ar);if(Ii)return Ii}let Nn=Zu(),Bi=Nn.getEmitResolver(K.outFile?void 0:ot,ar,KK(Nr,Mr));jc("beforeEmit");let Cn=Nn.runWithCancellationToken(ar,()=>XK(Bi,vc(qt),ot,Ohe(K,pn,Nr),Nr,!1,Mr));return jc("afterEmit"),Sd("Emit","beforeEmit","afterEmit"),Cn}function ga(Ge){return pr(rr(Ge))}function pr(Ge){return it.get(Ge)||void 0}function Jc(Ge,ot,qt){return wP(Ge?ot(Ge,qt):To(Q.getSourceFiles(),ar=>(qt&&qt.throwIfCancellationRequested(),ot(ar,qt))))}function W_(Ge,ot){return Jc(Ge,oe,ot)}function G_(Ge,ot){return Jc(Ge,Rt,ot)}function Wf(Ge){var ot;return Ge?(ot=lt.perFile)==null?void 0:ot.get(Ge.path):lt.allDiagnostics}function dc(Ge,ot){return xr(Ge,ot)}function tl(Ge){var ot;if(cO(Ge,K,Q))return ve;let qt=Xe().getDiagnostics(Ge.fileName);return(ot=Ge.commentDirectives)!=null&&ot.length?zn(Ge,Ge.commentDirectives,qt).diagnostics:qt}function Se(Ge,ot){let qt=Q.getCompilerOptions();return!Ge||qt.outFile?mc(Ge,ot):Jc(Ge,mu,ot)}function oe(Ge){return Pf(Ge)?(Ge.additionalSyntacticDiagnostics||(Ge.additionalSyntacticDiagnostics=Io(Ge)),ds(Ge.additionalSyntacticDiagnostics,Ge.parseDiagnostics)):Ge.parseDiagnostics}function Ke(Ge){try{return Ge()}catch(ot){throw ot instanceof ZI&&(he=void 0),ot}}function Rt(Ge,ot){return ds(nU(xr(Ge,ot),K),tl(Ge))}function xr(Ge,ot){return Oc(Ge,ot,lt,qn)}function qn(Ge,ot){return Ke(()=>{if(cO(Ge,K,Q))return ve;let qt=Zu();M.assert(!!Ge.bindDiagnostics);let Nr=(Ge.scriptKind===1||Ge.scriptKind===2)&&aO(Ge,K),pn=xw(Ge,K.checkJs),Mr=Ge.bindDiagnostics,Nn=qt.getDiagnostics(Ge,ot);return pn&&(Mr=ti(Mr,Bi=>hX.has(Bi.code)),Nn=ti(Nn,Bi=>hX.has(Bi.code))),mr(Ge,!pn,Mr,Nn,Nr?Ge.jsDocDiagnostics:void 0)})}function mr(Ge,ot,...qt){var ar;let Nr=rf(qt);if(!ot||!((ar=Ge.commentDirectives)!=null&&ar.length))return Nr;let{diagnostics:pn,directives:Mr}=zn(Ge,Ge.commentDirectives,Nr);for(let Nn of Mr.getUnusedExpectations())pn.push(V_e(Ge,Nn.range,v.Unused_ts_expect_error_directive));return pn}function zn(Ge,ot,qt){let ar=k_e(Ge,ot);return{diagnostics:qt.filter(pn=>Pi(pn,ar)===-1),directives:ar}}function Li(Ge,ot){return Ke(()=>Zu().getSuggestionDiagnostics(Ge,ot))}function Pi(Ge,ot){let{file:qt,start:ar}=Ge;if(!qt)return-1;let Nr=vy(qt),pn=DP(Nr,ar).line-1;for(;pn>=0;){if(ot.markUsed(pn))return pn;let Mr=qt.text.slice(Nr[pn],Nr[pn+1]).trim();if(Mr!==""&&!/^(\s*)\/\/(.*)$/.test(Mr))return-1;pn--}return-1}function Io(Ge){return Ke(()=>{let ot=[];return qt(Ge,Ge),HA(Ge,qt,ar),ot;function qt(Nn,Bi){switch(Bi.kind){case 169:case 172:case 174:if(Bi.questionToken===Nn)return ot.push(Mr(Nn,v.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(Bi.type===Nn)return ot.push(Mr(Nn,v.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Nn.kind){case 273:if(Nn.isTypeOnly)return ot.push(Mr(Bi,v._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Nn.isTypeOnly)return ot.push(Mr(Nn,v._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Nn.isTypeOnly)return ot.push(Mr(Nn,v._0_declarations_can_only_be_used_in_TypeScript_files,pf(Nn)?"import...type":"export...type")),"skip";break;case 271:return ot.push(Mr(Nn,v.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Nn.isExportEquals)return ot.push(Mr(Nn,v.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Nn.token===119)return ot.push(Mr(Nn,v.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let Ii=bo(120);return M.assertIsDefined(Ii),ot.push(Mr(Nn,v._0_declarations_can_only_be_used_in_TypeScript_files,Ii)),"skip";case 267:let cn=Nn.flags&32?bo(145):bo(144);return M.assertIsDefined(cn),ot.push(Mr(Nn,v._0_declarations_can_only_be_used_in_TypeScript_files,cn)),"skip";case 265:return ot.push(Mr(Nn,v.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Nn.body?void 0:(ot.push(Mr(Nn,v.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Is=M.checkDefined(bo(94));return ot.push(Mr(Nn,v._0_declarations_can_only_be_used_in_TypeScript_files,Is)),"skip";case 235:return ot.push(Mr(Nn,v.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return ot.push(Mr(Nn.type,v.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return ot.push(Mr(Nn.type,v.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:M.fail()}}function ar(Nn,Bi){if(wY(Bi)){let Cn=jn(Bi.modifiers,pu);Cn&&ot.push(Mr(Cn,v.Decorators_are_not_valid_here))}else if(bE(Bi)&&Bi.modifiers){let Cn=Va(Bi.modifiers,pu);if(Cn>=0){if(is(Bi)&&!K.experimentalDecorators)ot.push(Mr(Bi.modifiers[Cn],v.Decorators_are_not_valid_here));else if(ru(Bi)){let Ii=Va(Bi.modifiers,RA);if(Ii>=0){let cn=Va(Bi.modifiers,Fj);if(Cn>Ii&&cn>=0&&Cn=0&&Cn=0&&ot.push(lo(Mr(Bi.modifiers[Is],v.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Mr(Bi.modifiers[Cn],v.Decorator_used_before_export_here)))}}}}}switch(Bi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(Nn===Bi.typeParameters)return ot.push(pn(Nn,v.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Nn===Bi.modifiers)return Nr(Bi.modifiers,Bi.kind===243),"skip";break;case 172:if(Nn===Bi.modifiers){for(let Cn of Nn)Do(Cn)&&Cn.kind!==126&&Cn.kind!==129&&ot.push(Mr(Cn,v.The_0_modifier_can_only_be_used_in_TypeScript_files,bo(Cn.kind)));return"skip"}break;case 169:if(Nn===Bi.modifiers&&Dt(Nn,Do))return ot.push(pn(Nn,v.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(Nn===Bi.typeArguments)return ot.push(pn(Nn,v.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Nr(Nn,Bi){for(let Cn of Nn)switch(Cn.kind){case 87:if(Bi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:ot.push(Mr(Cn,v.The_0_modifier_can_only_be_used_in_TypeScript_files,bo(Cn.kind)));break;case 126:case 95:case 90:case 129:}}function pn(Nn,Bi,...Cn){let Ii=Nn.pos;return bu(Ge,Ii,Nn.end-Ii,Bi,...Cn)}function Mr(Nn,Bi,...Cn){return bd(Ge,Nn,Bi,...Cn)}})}function mc(Ge,ot){return Oc(Ge,ot,ze,Wl)}function Wl(Ge,ot){return Ke(()=>{let qt=Zu().getEmitResolver(Ge,ot);return Dhe(vc(aa),qt,Ge)||ve})}function Oc(Ge,ot,qt,ar){var Nr;let pn=Ge?(Nr=qt.perFile)==null?void 0:Nr.get(Ge.path):qt.allDiagnostics;if(pn)return pn;let Mr=ar(Ge,ot);return Ge?(qt.perFile||(qt.perFile=new Map)).set(Ge.path,Mr):qt.allDiagnostics=Mr,Mr}function mu(Ge,ot){return Ge.isDeclarationFile?[]:mc(Ge,ot)}function gc(){return wP(ds(Xe().getGlobalDiagnostics(),gu()))}function gu(){if(!K.configFile)return ve;let Ge=Xe().getDiagnostics(K.configFile.fileName);return Hl(ot=>{Ge=ds(Ge,Xe().getDiagnostics(ot.sourceFile.fileName))}),Ge}function Gf(){return pe.length?wP(Zu().getGlobalDiagnostics().slice()):ve}function rl(){return re||ve}function Gl(Ge,ot,qt,ar){pl(eo(Ge),ot,qt,void 0,ar)}function id(Ge,ot){return Ge.fileName===ot.fileName}function Je(Ge,ot){return Ge.kind===80?ot.kind===80&&Ge.escapedText===ot.escapedText:ot.kind===11&&Ge.text===ot.text}function zt(Ge,ot){let qt=U.createStringLiteral(Ge),ar=U.createImportDeclaration(void 0,void 0,qt);return PA(ar,2),fa(qt,ar),fa(ar,ot),qt.flags&=-17,ar.flags&=-17,qt}function Kr(Ge){if(Ge.imports)return;let ot=Pf(Ge),qt=iu(Ge),ar,Nr,pn;if(ot||!Ge.isDeclarationFile&&(Ad(K)||iu(Ge))){K.importHelpers&&(ar=[zt(oT,Ge)]);let Cn=oj(sj(K,Ge),K);Cn&&(ar||(ar=[])).push(zt(Cn,Ge))}for(let Cn of Ge.statements)Mr(Cn,!1);(Ge.flags&4194304||ot)&&Nn(Ge),Ge.imports=ar||ve,Ge.moduleAugmentations=Nr||ve,Ge.ambientModuleNames=pn||ve;return;function Mr(Cn,Ii){if(rR(Cn)){let cn=oA(Cn);cn&&jo(cn)&&cn.text&&(!Ii||!Su(cn.text))&&(E0(Cn,!1),ar=Ut(ar,cn),!Ce&&ur===0&&!Ge.isDeclarationFile&&(Ce=fs(cn.text,"node:")))}else if(xl(Cn)&&U_(Cn)&&(Ii||_i(Cn,128)||Ge.isDeclarationFile)){Cn.name.parent=Cn;let cn=Zd(Cn.name);if(qt||Ii&&!Su(cn))(Nr||(Nr=[])).push(Cn.name);else if(!Ii){Ge.isDeclarationFile&&(pn||(pn=[])).push(cn);let Is=Cn.body;if(Is)for(let Oo of Is.statements)Mr(Oo,!0)}}}function Nn(Cn){let Ii=/import|require/g;for(;Ii.exec(Cn.text)!==null;){let cn=Bi(Cn,Ii.lastIndex);if(ot&&Nf(cn,!0))E0(cn,!1),ar=Ut(ar,cn.arguments[0]);else if(Dp(cn)&&cn.arguments.length>=1&&Ia(cn.arguments[0]))E0(cn,!1),ar=Ut(ar,cn.arguments[0]);else if(xv(cn))E0(cn,!1),ar=Ut(ar,cn.argument.literal);else if(ot&&Kg(cn)){let Is=oA(cn);Is&&jo(Is)&&Is.text&&(E0(cn,!1),ar=Ut(ar,Is))}}}function Bi(Cn,Ii){let cn=Cn,Is=Oo=>{if(Oo.pos<=Ii&&(Iiwc(Nr,Mr))){qt&&(wy(Nr)?qt(v.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ge):qt(v.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ge,"'"+rf(Xt).join("', '")+"'"));return}let pn=ot(Ge);if(qt)if(pn)wT(ar)&&Nr===br.getCanonicalFileName(pr(ar.file).fileName)&&qt(v.A_file_cannot_have_a_reference_to_itself);else{let Mr=od(Ge);Mr?qt(v.Output_file_0_has_not_been_built_from_source_file_1,Mr,Ge):qt(v.File_0_not_found,Ge)}return pn}else{let Nr=K.allowNonTsExtensions&&ot(Ge);if(Nr)return Nr;if(qt&&K.allowNonTsExtensions){qt(v.File_0_not_found,Ge);return}let pn=Et(Xt[0],Mr=>ot(Ge+Mr));return qt&&!pn&&qt(v.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ge,"'"+rf(Xt).join("', '")+"'"),pn}}function pl(Ge,ot,qt,ar,Nr){ca(Ge,pn=>Al(pn,ot,qt,Nr,ar),(pn,...Mr)=>Ta(void 0,Nr,pn,Mr),Nr)}function au(Ge,ot){return pl(Ge,!1,!1,void 0,ot)}function Ja(Ge,ot,qt){!wT(qt)&&Dt(Pe.get(ot.path),wT)?Ta(ot,qt,v.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[ot.fileName,Ge]):Ta(ot,qt,v.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ge,ot.fileName])}function Ba(Ge,ot,qt,ar,Nr,pn,Mr){var Nn;let Bi=CT.createRedirectedSourceFile({redirectTarget:Ge,unredirected:ot});return Bi.fileName=qt,Bi.path=ar,Bi.resolvedPath=Nr,Bi.originalFileName=pn,Bi.packageJsonLocations=(Nn=Mr.packageJsonLocations)!=null&&Nn.length?Mr.packageJsonLocations:void 0,Bi.packageJsonScope=Mr.packageJsonScope,Mi.set(ar,ur>0),Bi}function Al(Ge,ot,qt,ar,Nr){var pn,Mr;(pn=kn)==null||pn.push(kn.Phase.Program,"findSourceFile",{fileName:Ge,isDefaultLib:ot||void 0,fileIncludeKind:oG[ar.kind]});let Nn=_g(Ge,ot,qt,ar,Nr);return(Mr=kn)==null||Mr.pop(),Nn}function Hf(Ge,ot,qt,ar){let Nr=rU(Cs(Ge,He),ot?.getPackageJsonInfoCache(),qt,ar),pn=Qo(ar),Mr=KR(ar);return typeof Nr=="object"?{...Nr,languageVersion:pn,setExternalModuleIndicator:Mr,jsDocParsingMode:qt.jsDocParsingMode}:{languageVersion:pn,impliedNodeFormat:Nr,setExternalModuleIndicator:Mr,jsDocParsingMode:qt.jsDocParsingMode}}function _g(Ge,ot,qt,ar,Nr){var pn;let Mr=rr(Ge);if(It){let cn=Yh(Mr);if(!cn&&br.realpath&&K.preserveSymlinks&&ju(Ge)&&Ge.includes(Fy)){let Is=rr(br.realpath(Ge));Is!==Mr&&(cn=Yh(Is))}if(cn){let Is=bs(cn)?Al(cn,ot,qt,ar,Nr):void 0;return Is&&Rf(Is,Mr,Ge,void 0),Is}}let Nn=Ge;if(it.has(Mr)){let cn=it.get(Mr),Is=sd(cn||void 0,ar,!0);if(cn&&Is&&K.forceConsistentCasingInFileNames!==!1){let Oo=cn.fileName;rr(Oo)!==rr(Ge)&&(Ge=od(Ge)||Ge);let I_=xG(Oo,He),_m=xG(Ge,He);I_!==_m&&Ja(Ge,cn,ar)}return cn&&Mi.get(cn.path)&&ur===0?(Mi.set(cn.path,!1),K.noResolve||(ad(cn,ot),ae(cn)),K.noLib||on(cn),tn.set(cn.path,!1),bi(cn)):cn&&tn.get(cn.path)&&urTa(void 0,ar,v.Cannot_read_file_0_Colon_1,[Ge,cn]),Ye);if(Nr){let cn=J1(Nr),Is=Tt.get(cn);if(Is){let Oo=Ba(Is,Ii,Ge,Mr,rr(Ge),Nn,Cn);return St.add(Is.path,Ge),Rf(Oo,Mr,Ge,Bi),sd(Oo,ar,!1),fe.set(Mr,K5(Nr)),de.push(Oo),Oo}else Ii&&(Tt.set(cn,Ii),fe.set(Mr,K5(Nr)))}if(Rf(Ii,Mr,Ge,Bi),Ii){if(Mi.set(Mr,ur>0),Ii.fileName=Ge,Ii.path=Mr,Ii.resolvedPath=rr(Ge),Ii.originalFileName=Nn,Ii.packageJsonLocations=(pn=Cn.packageJsonLocations)!=null&&pn.length?Cn.packageJsonLocations:void 0,Ii.packageJsonScope=Cn.packageJsonScope,sd(Ii,ar,!1),br.useCaseSensitiveFileNames()){let cn=R1(Mr),Is=rt.get(cn);Is?Ja(Ge,Is,ar):rt.set(cn,Ii)}As=As||Ii.hasNoDefaultLib&&!qt,K.noResolve||(ad(Ii,ot),ae(Ii)),K.noLib||on(Ii),bi(Ii),ot?me.push(Ii):de.push(Ii),(ke??(ke=new Set)).add(Ii.path)}return Ii}function sd(Ge,ot,qt){return Ge&&(!qt||!wT(ot)||!ke?.has(ot.file))?(Pe.add(Ge.path,ot),!0):!1}function Rf(Ge,ot,qt,ar){ar?(wd(qt,ar,Ge),wd(qt,ot,Ge||!1)):wd(qt,ot,Ge)}function wd(Ge,ot,qt){it.set(ot,qt),qt!==void 0?Me.delete(ot):Me.set(ot,Ge)}function od(Ge){let ot=Hh(Ge);return ot&&$h(ot,Ge)}function Hh(Ge){if(!(!pt||!pt.length||ju(Ge)||wc(Ge,".json")))return Mf(Ge)}function $h(Ge,ot){let qt=Ge.commandLine.options.outFile;return qt?Y1(qt,".d.ts"):BN(ot,Ge.commandLine,!br.useCaseSensitiveFileNames())}function Mf(Ge){Oe===void 0&&(Oe=new Map,Hl(qt=>{rr(K.configFilePath)!==qt.sourceFile.path&&qt.commandLine.fileNames.forEach(ar=>Oe.set(rr(ar),qt.sourceFile.path))}));let ot=Oe.get(rr(Ge));return ot&&rh(ot)}function Hl(Ge){return dX(pt,Ge)}function Yh(Ge){if(ju(Ge))return Nt===void 0&&(Nt=new Map,Hl(ot=>{let qt=ot.commandLine.options.outFile;if(qt){let ar=Y1(qt,".d.ts");Nt.set(rr(ar),!0)}else{let ar=nf(()=>rk(ot.commandLine,!br.useCaseSensitiveFileNames()));Et(ot.commandLine.fileNames,Nr=>{if(!ju(Nr)&&!wc(Nr,".json")){let pn=BN(Nr,ot.commandLine,!br.useCaseSensitiveFileNames(),ar);Nt.set(rr(pn),Nr)}})}})),Nt.get(Ge)}function $f(Ge){return It&&!!Mf(Ge)}function rh(Ge){if(nr)return nr.get(Ge)||void 0}function ad(Ge,ot){Et(Ge.referencedFiles,(qt,ar)=>{pl(nX(qt.fileName,Ge.fileName),ot,!1,void 0,{kind:4,file:Ge.path,index:ar})})}function ae(Ge){let ot=Ge.typeReferenceDirectives;if(!ot.length)return;let qt=Ar?.get(Ge.path)||wa(ot,Ge),ar=wN();(Tr??(Tr=new Map)).set(Ge.path,ar);for(let Nr=0;Nr{let ar=DMe(ot);ar?Gl(Zt(ar),!0,!0,{kind:7,file:Ge.path,index:qt}):(tt||(tt=[])).push({kind:0,reason:{kind:7,file:Ge.path,index:qt}})})}function Yn(Ge){return br.getCanonicalFileName(Ge)}function bi(Ge){var ot;if(Kr(Ge),Ge.imports.length||Ge.moduleAugmentations.length){let qt=IMe(Ge),ar=ir?.get(Ge.path)||Fa(qt,Ge);M.assert(ar.length===qt.length);let Nr=((ot=Xn(Ge))==null?void 0:ot.commandLine.options)||K,pn=wN();(yt??(yt=new Map)).set(Ge.path,pn);for(let Mr=0;Mrfr,I_=Oo&&!SX(Nr,Nn,Ge)&&!Nr.noResolve&&Mriu(Mr)&&!Mr.isDeclarationFile);if(K.isolatedModules||K.verbatimModuleSyntax)K.module===0&&ot<2&&K.isolatedModules&&qa(v.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),K.preserveConstEnums===!1&&qa(v.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,K.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(qt&&ot<2&&K.module===0){let Mr=Yx(qt,typeof qt.externalModuleIndicator=="boolean"?qt:qt.externalModuleIndicator);$r.add(bu(qt,Mr.start,Mr.length,v.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ge&&!K.emitDeclarationOnly){if(K.module&&!(K.module===2||K.module===4))qa(v.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(K.module===void 0&&qt){let Mr=Yx(qt,typeof qt.externalModuleIndicator=="boolean"?qt:qt.externalModuleIndicator);$r.add(bu(qt,Mr.start,Mr.length,v.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}}if(cE(K)&&(cf(K)===1?qa(v.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):tj(K)||qa(v.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),K.outDir||K.rootDir||K.sourceRoot||K.mapRoot||Hp(K)&&K.declarationDir){let Mr=zs();K.outDir&&Mr===""&&Ae.some(Nn=>Oh(Nn.fileName)>1)&&qa(v.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}K.checkJs&&!H1(K)&&qa(v.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"),K.emitDeclarationOnly&&(Hp(K)||qa(v.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),K.noEmit&&qa(v.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),K.noCheck&&K.noEmit&&qa(v.Option_0_cannot_be_specified_with_option_1,"noCheck","noEmit"),K.emitDecoratorMetadata&&!K.experimentalDecorators&&qa(v.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),K.jsxFactory?(K.reactNamespace&&qa(v.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(K.jsx===4||K.jsx===5)&&qa(v.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",DM.get(""+K.jsx)),YA(K.jsxFactory,ot)||g_("jsxFactory",v.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,K.jsxFactory)):K.reactNamespace&&!ap(K.reactNamespace,ot)&&g_("reactNamespace",v.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,K.reactNamespace),K.jsxFragmentFactory&&(K.jsxFactory||qa(v.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(K.jsx===4||K.jsx===5)&&qa(v.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",DM.get(""+K.jsx)),YA(K.jsxFragmentFactory,ot)||g_("jsxFragmentFactory",v.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,K.jsxFragmentFactory)),K.reactNamespace&&(K.jsx===4||K.jsx===5)&&qa(v.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",DM.get(""+K.jsx)),K.jsxImportSource&&K.jsx===2&&qa(v.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",DM.get(""+K.jsx));let ar=J_(K);K.verbatimModuleSyntax&&(ar===2||ar===3||ar===4)&&qa(v.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),K.allowImportingTsExtensions&&!(K.noEmit||K.emitDeclarationOnly)&&g_("allowImportingTsExtensions",v.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let Nr=cf(K);if(K.resolvePackageJsonExports&&!bA(Nr)&&qa(v.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),K.resolvePackageJsonImports&&!bA(Nr)&&qa(v.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),K.customConditions&&!bA(Nr)&&qa(v.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Nr===100&&!ej(ar)&&ar!==200&&g_("moduleResolution",v.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),E3[ar]&&100<=ar&&ar<=199&&!(3<=Nr&&Nr<=99)){let Mr=E3[ar];g_("moduleResolution",v.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,Mr,Mr)}else if(ew[Nr]&&3<=Nr&&Nr<=99&&!(100<=ar&&ar<=199)){let Mr=ew[Nr];g_("module",v.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,Mr,Mr)}if(!K.noEmit&&!K.suppressOutputPathCheck){let Mr=vc(),Nn=new Set;GK(Mr,Bi=>{K.emitDeclarationOnly||pn(Bi.jsFilePath,Nn),pn(Bi.declarationFilePath,Nn)})}function pn(Mr,Nn){if(Mr){let Bi=rr(Mr);if(it.has(Bi)){let Ii;K.configFilePath||(Ii=Bs(void 0,v.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),Ii=Bs(Ii,v.Cannot_write_file_0_because_it_would_overwrite_input_file,Mr),dS(Mr,K9(Ii))}let Cn=br.useCaseSensitiveFileNames()?Bi:R1(Bi);Nn.has(Cn)?dS(Mr,Pc(v.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,Mr)):Nn.add(Cn)}}}function Zr(){let Ge=K.ignoreDeprecations;if(Ge){if(Ge==="5.0")return new Ym(Ge);le()}return Ym.zero}function Fi(Ge,ot,qt,ar,Nr){let pn=new Ym(Ge),Mr=new Ym(qt),Nn=new Ym(ce||j),Bi=Zr(),Cn=Mr.compareTo(Nn)!==1,Ii=!Cn&&Bi.compareTo(pn)===-1;(Cn||Ii)&&Nr((cn,Is,Oo)=>{Cn?Is===void 0?ar(cn,Is,Oo,v.Option_0_has_been_removed_Please_remove_it_from_your_configuration,cn):ar(cn,Is,Oo,v.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,cn,Is):Is===void 0?ar(cn,Is,Oo,v.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,cn,ot,Ge):ar(cn,Is,Oo,v.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,cn,Is,ot,Ge)})}function Vs(){function Ge(ot,qt,ar,Nr,...pn){if(ar){let Mr=Bs(void 0,v.Use_0_instead,ar),Nn=Bs(Mr,Nr,...pn);Rm(!qt,ot,void 0,Nn)}else Rm(!qt,ot,void 0,Nr,...pn)}Fi("5.0","5.5","6.0",Ge,ot=>{K.target===0&&ot("target","ES3"),K.noImplicitUseStrict&&ot("noImplicitUseStrict"),K.keyofStringsOnly&&ot("keyofStringsOnly"),K.suppressExcessPropertyErrors&&ot("suppressExcessPropertyErrors"),K.suppressImplicitAnyIndexErrors&&ot("suppressImplicitAnyIndexErrors"),K.noStrictGenericChecks&&ot("noStrictGenericChecks"),K.charset&&ot("charset"),K.out&&ot("out",void 0,"outFile"),K.importsNotUsedAsValues&&ot("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),K.preserveValueImports&&ot("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Ts(Ge,ot,qt){function ar(Nr,pn,Mr,Nn,...Bi){H_(ot,qt,Nn,...Bi)}Fi("5.0","5.5","6.0",ar,Nr=>{Ge.prepend&&Nr("prepend")})}function Ws(Ge,ot,qt,ar){let Nr,pn=Ge&&Pe.get(Ge.path),Mr,Nn,Bi=wT(ot)?ot:void 0,Cn,Ii,cn=Ge&&De?.get(Ge.path),Is;cn?(cn.fileIncludeReasonDetails?(Nr=new Set(pn),pn?.forEach(_m)):pn?.forEach(I_),Ii=cn.redirectInfo):(pn?.forEach(I_),Ii=Ge&&MX(Ge)),ot&&I_(ot);let Oo=Nr?.size!==pn?.length;Bi&&Nr?.size===1&&(Nr=void 0),Nr&&cn&&(cn.details&&!Oo?Is=Bs(cn.details,qt,...ar||ve):cn.fileIncludeReasonDetails&&(Oo?Yv()?Mr=Ut(cn.fileIncludeReasonDetails.next.slice(0,pn.length),Mr[0]):Mr=[...cn.fileIncludeReasonDetails.next,Mr[0]]:Yv()?Mr=cn.fileIncludeReasonDetails.next.slice(0,pn.length):Cn=cn.fileIncludeReasonDetails)),Is||(Cn||(Cn=Nr&&Bs(Mr,v.The_file_is_in_the_program_because_Colon)),Is=Bs(Ii?Cn?[Cn,...Ii]:Ii:Cn,qt,...ar||ve)),Ge&&(cn?(!cn.fileIncludeReasonDetails||!Oo&&Cn)&&(cn.fileIncludeReasonDetails=Cn):(De??(De=new Map)).set(Ge.path,cn={fileIncludeReasonDetails:Cn,redirectInfo:Ii}),!cn.details&&!Oo&&(cn.details=Is.next));let Cu=Bi&&o6(Q,Bi);return Cu&&VN(Cu)?i9(Cu.file,Cu.pos,Cu.end-Cu.pos,Is,Nn):K9(Is,Nn);function I_(fm){Nr?.has(fm)||((Nr??(Nr=new Set)).add(fm),(Mr??(Mr=[])).push(jX(Q,fm)),_m(fm))}function _m(fm){!Bi&&wT(fm)?Bi=fm:Bi!==fm&&(Nn=Ut(Nn,qc(fm)))}function Yv(){var fm;return((fm=cn.fileIncludeReasonDetails.next)==null?void 0:fm.length)!==pn?.length}}function Ta(Ge,ot,qt,ar){(tt||(tt=[])).push({kind:1,file:Ge&&Ge.path,fileProcessingReason:ot,diagnostic:qt,args:ar})}function Ho(Ge,ot,qt){Qs.push({file:Ge,diagnostic:ot,args:qt})}function qc(Ge){let ot=Be?.get(Ge);return ot===void 0&&(Be??(Be=new Map)).set(Ge,ot=Od(Ge)??!1),ot||void 0}function Od(Ge){if(wT(Ge)){let ar=o6(Q,Ge),Nr;switch(Ge.kind){case 3:Nr=v.File_is_included_via_import_here;break;case 4:Nr=v.File_is_included_via_reference_here;break;case 5:Nr=v.File_is_included_via_type_library_reference_here;break;case 7:Nr=v.File_is_included_via_library_reference_here;break;default:M.assertNever(Ge)}return VN(ar)?bu(ar.file,ar.pos,ar.end-ar.pos,Nr):void 0}if(!K.configFile)return;let ot,qt;switch(Ge.kind){case 0:if(!K.configFile.configFileSpecs)return;let ar=Cs(pe[Ge.index],He),Nr=LX(Q,ar);if(Nr){ot=u9(K.configFile,"files",Nr),qt=v.File_is_matched_by_files_list_specified_here;break}let pn=FX(Q,ar);if(!pn||!bs(pn))return;ot=u9(K.configFile,"include",pn),qt=v.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let Mr=M.checkDefined(pt?.[Ge.index]),Nn=eU(ue,pt,(Is,Oo,Cu)=>Is===Mr?{sourceFile:Oo?.sourceFile||K.configFile,index:Cu}:void 0);if(!Nn)return;let{sourceFile:Bi,index:Cn}=Nn,Ii=lR(Bi,"references",Is=>Ku(Is.initializer)?Is.initializer:void 0);return Ii&&Ii.elements.length>Cn?bd(Bi,Ii.elements[Cn],Ge.kind===2?v.File_is_output_from_referenced_project_specified_here:v.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!K.types)return;ot=cd("types",Ge.typeReference),qt=v.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ge.index!==void 0){ot=cd("lib",K.lib[Ge.index]),qt=v.File_is_library_specified_here;break}let cn=rj(Qo(K));ot=cn?Rd("target",cn):void 0,qt=v.File_is_default_library_for_target_specified_here;break;default:M.assertNever(Ge)}return ot&&bd(K.configFile,ot,qt)}function Om(){let Ge=K.suppressOutputPathCheck?void 0:Bv(K);eU(ue,pt,(ot,qt,ar)=>{let Nr=(qt?qt.commandLine.projectReferences:ue)[ar],pn=qt&&qt.sourceFile;if(Ts(Nr,pn,ar),!ot){H_(pn,ar,v.File_0_not_found,Nr.path);return}let Mr=ot.commandLine.options;(!Mr.composite||Mr.noEmit)&&(qt?qt.commandLine.fileNames:pe).length&&(Mr.composite||H_(pn,ar,v.Referenced_project_0_must_have_setting_composite_Colon_true,Nr.path),Mr.noEmit&&H_(pn,ar,v.Referenced_project_0_may_not_disable_emit,Nr.path)),!qt&&Ge&&Ge===Bv(Mr)&&(H_(pn,ar,v.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ge,Nr.path),Pn.set(rr(Ge),!0))})}function Kh(Ge,ot,qt,...ar){let Nr=!0;Vy(pn=>{ko(pn.initializer)&&HP(pn.initializer,Ge,Mr=>{let Nn=Mr.initializer;Ku(Nn)&&Nn.elements.length>ot&&($r.add(bd(K.configFile,Nn.elements[ot],qt,...ar)),Nr=!1)})}),Nr&&$v(qt,...ar)}function Uy(Ge,ot,qt,...ar){let Nr=!0;Vy(pn=>{ko(pn.initializer)&&lm(pn.initializer,Ge,ot,void 0,qt,...ar)&&(Nr=!1)}),Nr&&$v(qt,...ar)}function Hv(Ge,ot){return HP(R0(),Ge,ot)}function Vy(Ge){return Hv("paths",Ge)}function Rd(Ge,ot){return Hv(Ge,qt=>jo(qt.initializer)&&qt.initializer.text===ot?qt.initializer:void 0)}function cd(Ge,ot){let qt=R0();return qt&&tfe(qt,Ge,ot)}function qa(Ge,ot,qt,ar){Rm(!0,ot,qt,Ge,ot,qt,ar)}function g_(Ge,ot,...qt){Rm(!1,Ge,void 0,ot,...qt)}function H_(Ge,ot,qt,...ar){let Nr=lR(Ge||K.configFile,"references",pn=>Ku(pn.initializer)?pn.initializer:void 0);Nr&&Nr.elements.length>ot?$r.add(bd(Ge||K.configFile,Nr.elements[ot],qt,...ar)):$r.add(Pc(qt,...ar))}function Rm(Ge,ot,qt,ar,...Nr){let pn=R0();(!pn||!lm(pn,Ge,ot,qt,ar,...Nr))&&$v(ar,...Nr)}function $v(Ge,...ot){let qt=pS();qt?"messageText"in Ge?$r.add(Ay(K.configFile,qt.name,Ge)):$r.add(bd(K.configFile,qt.name,Ge,...ot)):"messageText"in Ge?$r.add(K9(Ge)):$r.add(Pc(Ge,...ot))}function R0(){if(Ti===void 0){let Ge=pS();Ti=Ge&&ci(Ge.initializer,ko)||!1}return Ti||void 0}function pS(){return ki===void 0&&(ki=HP(Pw(K.configFile),"compilerOptions",ec)||!1),ki||void 0}function lm(Ge,ot,qt,ar,Nr,...pn){let Mr=!1;return HP(Ge,qt,Nn=>{"messageText"in Nr?$r.add(Ay(K.configFile,ot?Nn.name:Nn.initializer,Nr)):$r.add(bd(K.configFile,ot?Nn.name:Nn.initializer,Nr,...pn)),Mr=!0},ar),Mr}function dS(Ge,ot){Pn.set(rr(Ge),!0),$r.add(ot)}function um(Ge){if(K.noEmit)return!1;let ot=rr(Ge);if(pr(ot))return!1;let qt=K.outFile;if(qt)return VT(ot,qt)||VT(ot,lf(qt)+".d.ts");if(K.declarationDir&&Cm(K.declarationDir,ot,He,!br.useCaseSensitiveFileNames()))return!0;if(K.outDir)return Cm(K.outDir,ot,He,!br.useCaseSensitiveFileNames());if(Il(ot,fN)||ju(ot)){let ar=lf(ot);return!!pr(ar+".ts")||!!pr(ar+".tsx")}return!1}function VT(Ge,ot){return f0(Ge,ot,He,!br.useCaseSensitiveFileNames())===0}function fg(){return br.getSymlinkCache?br.getSymlinkCache():(xe||(xe=P$(He,Yn)),Ae&&!xe.hasProcessedResolutions()&&xe.setSymlinksFromResolutions(Ht,$t,ft),xe)}function ld(Ge,ot){var qt;let ar=((qt=Xn(Ge))==null?void 0:qt.commandLine.options)||K;return uX(Ge,ot,ar)}function M0(Ge,ot){return ld(Ge,n8(Ge,ot))}}function ZEt(e){let t,n=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,a=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:aa,fileExists:d};e.compilerHost.fileExists=d;let u;return i&&(u=e.compilerHost.directoryExists=I=>i.call(e.compilerHost,I)?(x(I),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(R=>{let L=R.commandLine.options.outFile;if(L)t.add(yi(e.toPath(L)));else{let F=R.commandLine.options.declarationDir||R.commandLine.options.outDir;F&&t.add(e.toPath(F))}})),D(I,!1)):!1),s&&(e.compilerHost.getDirectories=I=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,I)?s.call(e.compilerHost,I):[]),a&&(e.compilerHost.realpath=I=>{var R;return((R=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:R.get(e.toPath(I)))||a.call(e.compilerHost,I)}),{onProgramCreateComplete:m,fileExists:d,directoryExists:u};function m(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function d(I){return n.call(e.compilerHost,I)?!0:!e.getResolvedProjectReferences()||!ju(I)?!1:D(I,!0)}function S(I){let R=e.getSourceOfProjectReferenceRedirect(e.toPath(I));return R!==void 0?bs(R)?n.call(e.compilerHost,R):!0:void 0}function E(I){let R=e.toPath(I),L=`${R}${bc}`;return m0(t,F=>R===F||fs(F,L)||fs(R,`${F}/`))}function x(I){var R;if(!e.getResolvedProjectReferences()||_O(I)||!a||!I.includes(Fy))return;let L=e.getSymlinkCache(),F=vu(e.toPath(I));if((R=L.getSymlinkedDirectories())!=null&&R.has(F))return;let J=eo(a.call(e.compilerHost,I)),$;if(J===I||($=vu(e.toPath(J)))===F){L.setSymlinkedDirectory(F,!1);return}L.setSymlinkedDirectory(I,{real:vu(J),realPath:$})}function D(I,R){var L;let F=R?W=>S(W):W=>E(W),J=F(I);if(J!==void 0)return J;let $=e.getSymlinkCache(),q=$.getSymlinkedDirectories();if(!q)return!1;let ee=e.toPath(I);return ee.includes(Fy)?R&&((L=$.getSymlinkedFiles())!=null&&L.has(ee))?!0:ra(q.entries(),([W,pe])=>{if(!pe||!fs(ee,W))return;let K=F(ee.replace(W,pe.realPath));if(R&&K){let re=Cs(I,e.compilerHost.getCurrentDirectory());$.setSymlinkedFile(ee,`${pe.real}${re.replace(new RegExp(W,"i"),"")}`)}return K})||!1:!1}}var yX={diagnostics:ve,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function vX(e,t,n,i){let s=e.getCompilerOptions();if(s.noEmit)return e.getSemanticDiagnostics(t,i),t||s.outFile?yX:e.emitBuildInfo(n,i);if(!s.noEmitOnError)return;let a=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(a.length===0&&Hp(e.getCompilerOptions())&&(a=e.getDeclarationDiagnostics(void 0,i)),!a.length)return;let u;if(!t&&!s.outFile){let m=e.emitBuildInfo(n,i);m.diagnostics&&(a=[...a,...m.diagnostics]),u=m.emittedFiles}return{diagnostics:a,sourceMaps:void 0,emittedFiles:u,emitSkipped:!0}}function nU(e,t){return ti(e,n=>!n.skippedOn||!t[n.skippedOn])}function iU(e,t=e){return{fileExists:n=>t.fileExists(n),readDirectory(n,i,s,a,u){return M.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,i,s,a,u)},readFile:n=>t.readFile(n),directoryExists:so(t,t.directoryExists),getDirectories:so(t,t.getDirectories),realpath:so(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Vb,trace:e.trace?n=>e.trace(n):void 0}}function JN(e){return HX(e.path)}function SX(e,{extension:t},{isDeclarationFile:n}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||s();case".js":case".mjs":case".cjs":return s();case".json":return a();default:return u()}function i(){return e.jsx?void 0:v.Module_0_was_resolved_to_1_but_jsx_is_not_set}function s(){return H1(e)||!q_(e,"noImplicitAny")?void 0:v.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function a(){return cE(e)?void 0:v.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function u(){return n||e.allowArbitraryExtensions?void 0:v.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function IMe({imports:e,moduleAugmentations:t}){let n=e.map(i=>i);for(let i of t)i.kind===11&&n.push(i);return n}function n8({imports:e,moduleAugmentations:t},n){if(n(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(Xhe||{}),cg;(e=>{function t(){function ce(ne,le,me){let de={getKeys:Ae=>le.get(Ae),getValues:Ae=>ne.get(Ae),keys:()=>ne.keys(),size:()=>ne.size,deleteKey:Ae=>{(me||(me=new Set)).add(Ae);let xe=ne.get(Ae);return xe?(xe.forEach(te=>i(le,te,Ae)),ne.delete(Ae),!0):!1},set:(Ae,xe)=>{me?.delete(Ae);let te=ne.get(Ae);return ne.set(Ae,xe),te?.forEach(he=>{xe.has(he)||i(le,he,Ae)}),xe.forEach(he=>{te?.has(he)||n(le,he,Ae)}),de}};return de}return ce(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function n(ce,ne,le){let me=ce.get(ne);me||(me=new Set,ce.set(ne,me)),me.add(le)}function i(ce,ne,le){let me=ce.get(ne);return me?.delete(le)?(me.size||ce.delete(ne),!0):!1}function s(ce){return Yi(ce.declarations,ne=>{var le;return(le=Jr(ne))==null?void 0:le.resolvedPath})}function a(ce,ne){let le=ce.getSymbolAtLocation(ne);return le&&s(le)}function u(ce,ne,le,me){return rc(ce.getProjectReferenceRedirect(ne)||ne,le,me)}function m(ce,ne,le){let me;if(ne.imports&&ne.imports.length>0){let te=ce.getTypeChecker();for(let he of ne.imports){let Te=a(te,he);Te?.forEach(xe)}}let de=yi(ne.resolvedPath);if(ne.referencedFiles&&ne.referencedFiles.length>0)for(let te of ne.referencedFiles){let he=u(ce,te.fileName,de,le);xe(he)}if(ce.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:te})=>{if(!te)return;let he=te.resolvedFileName,Te=u(ce,he,de,le);xe(Te)},ne),ne.moduleAugmentations.length){let te=ce.getTypeChecker();for(let he of ne.moduleAugmentations){if(!jo(he))continue;let Te=te.getSymbolAtLocation(he);Te&&Ae(Te)}}for(let te of ce.getTypeChecker().getAmbientModules())te.declarations&&te.declarations.length>1&&Ae(te);return me;function Ae(te){if(te.declarations)for(let he of te.declarations){let Te=Jr(he);Te&&Te!==ne&&xe(Te.resolvedPath)}}function xe(te){(me||(me=new Set)).add(te)}}function d(ce,ne){return ne&&!ne.referencedMap==!ce}e.canReuseOldState=d;function S(ce){return ce.module!==0&&!ce.outFile?t():void 0}e.createReferencedMap=S;function E(ce,ne,le){var me,de;let Ae=new Map,xe=ce.getCompilerOptions(),te=S(xe),he=d(te,ne);ce.getTypeChecker();for(let Te of ce.getSourceFiles()){let Ve=M.checkDefined(Te.version,"Program intended to be used with Builder should have source files with versions set"),Pe=he?(me=ne.oldSignatures)==null?void 0:me.get(Te.resolvedPath):void 0,ke=Pe===void 0?he?(de=ne.fileInfos.get(Te.resolvedPath))==null?void 0:de.signature:void 0:Pe||void 0;if(te){let De=m(ce,Te,ce.getCanonicalFileName);De&&te.set(Te.resolvedPath,De)}Ae.set(Te.resolvedPath,{version:Ve,signature:ke,affectsGlobalScope:xe.outFile?void 0:pe(Te)||void 0,impliedFormat:Te.impliedNodeFormat})}return{fileInfos:Ae,referencedMap:te,useFileVersionAsSignature:!le&&!he}}e.create=E;function x(ce){ce.allFilesExcludingDefaultLibraryFile=void 0,ce.allFileNames=void 0}e.releaseCache=x;function D(ce,ne,le,me,de){var Ae;let xe=I(ce,ne,le,me,de);return(Ae=ce.oldSignatures)==null||Ae.clear(),xe}e.getFilesAffectedBy=D;function I(ce,ne,le,me,de){let Ae=ne.getSourceFileByPath(le);return Ae?F(ce,ne,Ae,me,de)?(ce.referencedMap?ue:re)(ce,ne,Ae,me,de):[Ae]:ve}e.getFilesAffectedByWithOldState=I;function R(ce,ne,le){ce.fileInfos.get(le).signature=ne,(ce.hasCalledUpdateShapeSignature||(ce.hasCalledUpdateShapeSignature=new Set)).add(le)}e.updateSignatureOfFile=R;function L(ce,ne,le,me,de){ce.emit(ne,(Ae,xe,te,he,Te,Ve)=>{M.assert(ju(Ae),`File extension for signature expected to be dts: Got:: ${Ae}`),de(TX(ce,ne,xe,me,Ve),Te)},le,2,void 0,!0)}e.computeDtsSignature=L;function F(ce,ne,le,me,de,Ae=ce.useFileVersionAsSignature){var xe;if((xe=ce.hasCalledUpdateShapeSignature)!=null&&xe.has(le.resolvedPath))return!1;let te=ce.fileInfos.get(le.resolvedPath),he=te.signature,Te;return!le.isDeclarationFile&&!Ae&&L(ne,le,me,de,Ve=>{Te=Ve,de.storeSignatureInfo&&(ce.signatureInfo??(ce.signatureInfo=new Map)).set(le.resolvedPath,0)}),Te===void 0&&(Te=le.version,de.storeSignatureInfo&&(ce.signatureInfo??(ce.signatureInfo=new Map)).set(le.resolvedPath,2)),(ce.oldSignatures||(ce.oldSignatures=new Map)).set(le.resolvedPath,he||!1),(ce.hasCalledUpdateShapeSignature||(ce.hasCalledUpdateShapeSignature=new Set)).add(le.resolvedPath),te.signature=Te,Te!==he}e.updateShapeSignature=F;function J(ce,ne,le){if(ne.getCompilerOptions().outFile||!ce.referencedMap||pe(le))return $(ce,ne);let de=new Set,Ae=[le.resolvedPath];for(;Ae.length;){let xe=Ae.pop();if(!de.has(xe)){de.add(xe);let te=ce.referencedMap.getValues(xe);if(te)for(let he of te.keys())Ae.push(he)}}return Os(Vp(de.keys(),xe=>{var te;return((te=ne.getSourceFileByPath(xe))==null?void 0:te.fileName)??xe}))}e.getAllDependencies=J;function $(ce,ne){if(!ce.allFileNames){let le=ne.getSourceFiles();ce.allFileNames=le===ve?ve:le.map(me=>me.fileName)}return ce.allFileNames}function q(ce,ne){let le=ce.referencedMap.getKeys(ne);return le?Os(le.keys()):[]}e.getReferencedByPaths=q;function ee(ce){for(let ne of ce.statements)if(!t9(ne))return!1;return!0}function W(ce){return Dt(ce.moduleAugmentations,ne=>Og(ne.parent))}function pe(ce){return W(ce)||!Jf(ce)&&!Xd(ce)&&!ee(ce)}function K(ce,ne,le){if(ce.allFilesExcludingDefaultLibraryFile)return ce.allFilesExcludingDefaultLibraryFile;let me;le&&de(le);for(let Ae of ne.getSourceFiles())Ae!==le&&de(Ae);return ce.allFilesExcludingDefaultLibraryFile=me||ve,ce.allFilesExcludingDefaultLibraryFile;function de(Ae){ne.isSourceFileDefaultLibrary(Ae)||(me||(me=[])).push(Ae)}}e.getAllFilesExcludingDefaultLibraryFile=K;function re(ce,ne,le){let me=ne.getCompilerOptions();return me&&me.outFile?[le]:K(ce,ne,le)}function ue(ce,ne,le,me,de){if(pe(le))return K(ce,ne,le);let Ae=ne.getCompilerOptions();if(Ae&&(Ad(Ae)||Ae.outFile))return[le];let xe=new Map;xe.set(le.resolvedPath,le);let te=q(ce,le.resolvedPath);for(;te.length>0;){let he=te.pop();if(!xe.has(he)){let Te=ne.getSourceFileByPath(he);xe.set(he,Te),Te&&F(ce,ne,Te,me,de)&&te.push(...q(ce,Te.resolvedPath))}}return Os(Vp(xe.values(),he=>he))}})(cg||(cg={}));var Qhe=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(Qhe||{});function cS(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Hp(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function qN(e,t){let n=t&&(O1(t)?t:cS(t)),i=O1(e)?e:cS(e);if(n===i)return 0;if(!n||!i)return i;let s=n^i,a=0;return s&7&&(a=i&7),s&24&&(a=a|i&24),a}function ext(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!m0(e,n=>!t.has(n))}function txt(e,t){var n,i;let s=cg.create(e,t,!1);s.program=e;let a=e.getCompilerOptions();s.compilerOptions=a;let u=a.outFile;u?a.composite&&t?.outSignature&&u===t.compilerOptions.outFile&&(s.outSignature=t.outSignature&&OMe(a,t.compilerOptions,t.outSignature)):s.semanticDiagnosticsPerFile=new Map,s.changedFilesSet=new Set,s.latestChangedDtsFile=a.composite?t?.latestChangedDtsFile:void 0;let m=cg.canReuseOldState(s.referencedMap,t),d=m?t.compilerOptions:void 0,S=m&&t.semanticDiagnosticsPerFile&&!!s.semanticDiagnosticsPerFile&&!fpe(a,d),E=a.composite&&t?.emitSignatures&&!u&&!dpe(a,t.compilerOptions);m?((n=t.changedFilesSet)==null||n.forEach(L=>s.changedFilesSet.add(L)),!u&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(s.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),s.seenAffectedFiles=new Set),s.programEmitPending=t.programEmitPending):s.buildInfoEmitPending=!0;let x=s.referencedMap,D=m?t.referencedMap:void 0,I=S&&!a.skipLibCheck==!d.skipLibCheck,R=I&&!a.skipDefaultLibCheck==!d.skipDefaultLibCheck;if(s.fileInfos.forEach((L,F)=>{var J;let $,q;if(!m||!($=t.fileInfos.get(F))||$.version!==L.version||$.impliedFormat!==L.impliedFormat||!ext(q=x&&x.getValues(F),D&&D.getValues(F))||q&&m0(q,ee=>!s.fileInfos.has(ee)&&t.fileInfos.has(ee)))wMe(s,F);else{let ee=e.getSourceFileByPath(F),W=(J=t.emitDiagnosticsPerFile)==null?void 0:J.get(F);if(W&&(s.emitDiagnosticsPerFile??(s.emitDiagnosticsPerFile=new Map)).set(F,t.hasReusableDiagnostic?LMe(W,F,e):RMe(W,e)),S){if(ee.isDeclarationFile&&!I||ee.hasNoDefaultLib&&!R)return;let pe=t.semanticDiagnosticsPerFile.get(F);pe&&(s.semanticDiagnosticsPerFile.set(F,t.hasReusableDiagnostic?LMe(pe,F,e):RMe(pe,e)),(s.semanticDiagnosticsFromOldState??(s.semanticDiagnosticsFromOldState=new Set)).add(F))}}if(E){let ee=t.emitSignatures.get(F);ee&&(s.emitSignatures??(s.emitSignatures=new Map)).set(F,OMe(a,t.compilerOptions,ee))}}),m&&Iu(t.fileInfos,(L,F)=>s.fileInfos.has(F)?!1:u||L.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!1)))cg.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(L=>wMe(s,L.resolvedPath));else if(d){let L=ppe(a,d)?cS(a):qN(a,d);L!==0&&(u?s.programEmitPending=s.programEmitPending?s.programEmitPending|L:L:(e.getSourceFiles().forEach(F=>{s.changedFilesSet.has(F.resolvedPath)||EX(s,F.resolvedPath,L)}),M.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set,s.buildInfoEmitPending=!0))}return s}function wMe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function OMe(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:bs(n)?[n]:n[0]}function RMe(e,t){return e.length?js(e,n=>{if(bs(n.messageText))return n;let i=Zhe(n.messageText,n.file,t,s=>{var a;return(a=s.repopulateInfo)==null?void 0:a.call(s)});return i===n.messageText?n:{...n,messageText:i}}):e}function Zhe(e,t,n,i){let s=i(e);if(s)return{...Y5(t,n,s.moduleReference,s.mode,s.packageName||s.moduleReference),next:MMe(e.next,t,n,i)};let a=MMe(e.next,t,n,i);return a===e.next?e:{...e,next:a}}function MMe(e,t,n,i){return js(e,s=>Zhe(s,t,n,i))}function LMe(e,t,n){if(!e.length)return ve;let i;return e.map(a=>{let u=FMe(a,t,n,s);u.reportsUnnecessary=a.reportsUnnecessary,u.reportsDeprecated=a.reportDeprecated,u.source=a.source,u.skippedOn=a.skippedOn;let{relatedInformation:m}=a;return u.relatedInformation=m?m.length?m.map(d=>FMe(d,t,n,s)):[]:void 0,u});function s(a){return i??(i=yi(Cs(Bv(n.getCompilerOptions()),n.getCurrentDirectory()))),rc(a,i,n.getCanonicalFileName)}}function FMe(e,t,n,i){let{file:s}=e,a=s!==!1?n.getSourceFileByPath(s?i(s):t):void 0;return{...e,file:a,messageText:bs(e.messageText)?e.messageText:Zhe(e.messageText,a,n,u=>u.info)}}function rxt(e){cg.releaseCache(e),e.program=void 0}function nxt(e){let t=e.compilerOptions.outFile;return M.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function ixt(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function jMe(e,t){M.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function BMe(e,t,n){for(var i;;){let{affectedFiles:s}=e;if(s){let d=e.seenAffectedFiles,S=e.affectedFilesIndex;for(;S{let a=i&7;a?e.affectedFilesPendingEmit.set(s,a):e.affectedFilesPendingEmit.delete(s)})}}function oxt(e,t){var n;if((n=e.affectedFilesPendingEmit)!=null&&n.size)return Iu(e.affectedFilesPendingEmit,(i,s)=>{var a;let u=e.program.getSourceFileByPath(s);if(!u||!t2(u,e.program)){e.affectedFilesPendingEmit.delete(s);return}let m=(a=e.seenEmittedFiles)==null?void 0:a.get(u.resolvedPath),d=qN(i,m);if(t&&(d=d&24),d)return{affectedFile:u,emitKind:d}})}function axt(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return Iu(e.emitDiagnosticsPerFile,(n,i)=>{var s;let a=e.program.getSourceFileByPath(i);if(!a||!t2(a,e.program)){e.emitDiagnosticsPerFile.delete(i);return}let u=((s=e.seenEmittedFiles)==null?void 0:s.get(a.resolvedPath))||0;if(!(u&24))return{affectedFile:a,diagnostics:n,seenKind:u}})}function UMe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=M.checkDefined(e.program),n=t.getCompilerOptions();Et(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!cO(i,n,t)&&tye(e,i.resolvedPath))}}function cxt(e,t,n,i){if(tye(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){UMe(e),cg.updateShapeSignature(e,M.checkDefined(e.program),t,n,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||lxt(e,t,n,i)}function eye(e,t,n,i,s){if(tye(e,t),!e.changedFilesSet.has(t)){let a=M.checkDefined(e.program),u=a.getSourceFileByPath(t);u&&(cg.updateShapeSignature(e,a,u,i,s,!0),n?EX(e,t,cS(e.compilerOptions)):Hp(e.compilerOptions)&&EX(e,t,e.compilerOptions.declarationMap?24:8))}}function tye(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function VMe(e,t){let n=M.checkDefined(e.oldSignatures).get(t)||void 0;return M.checkDefined(e.fileInfos.get(t)).signature!==n}function rye(e,t,n,i,s){var a;return(a=e.fileInfos.get(t))!=null&&a.affectsGlobalScope?(cg.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(u=>eye(e,u.resolvedPath,n,i,s)),UMe(e),!0):!1}function lxt(e,t,n,i){var s,a;if(!e.referencedMap||!e.changedFilesSet.has(t.resolvedPath)||!VMe(e,t.resolvedPath))return;if(Ad(e.compilerOptions)){let d=new Map;d.set(t.resolvedPath,!0);let S=cg.getReferencedByPaths(e,t.resolvedPath);for(;S.length>0;){let E=S.pop();if(!d.has(E)){if(d.set(E,!0),rye(e,E,!1,n,i))return;if(eye(e,E,!1,n,i),VMe(e,E)){let x=M.checkDefined(e.program).getSourceFileByPath(E);S.push(...cg.getReferencedByPaths(e,x.resolvedPath))}}}}let u=new Set,m=!!((s=t.symbol)!=null&&s.exports)&&!!Iu(t.symbol.exports,d=>{if(d.flags&128)return!0;let S=$u(d,e.program.getTypeChecker());return S===d?!1:(S.flags&128)!==0&&Dt(S.declarations,E=>Jr(E)===t)});(a=e.referencedMap.getKeys(t.resolvedPath))==null||a.forEach(d=>{if(rye(e,d,m,n,i))return!0;let S=e.referencedMap.getKeys(d);return S&&m0(S,E=>JMe(e,E,m,u,n,i))})}function JMe(e,t,n,i,s,a){var u;if(kg(i,t)){if(rye(e,t,n,s,a))return!0;eye(e,t,n,s,a),(u=e.referencedMap.getKeys(t))==null||u.forEach(m=>JMe(e,m,n,i,s,a))}}function nye(e,t,n){return ds(uxt(e,t,n),M.checkDefined(e.program).getProgramDiagnostics(t))}function uxt(e,t,n){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let a=e.semanticDiagnosticsPerFile.get(i);if(a)return nU(a,e.compilerOptions)}let s=M.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,s),nU(s,e.compilerOptions)}function iye(e){var t;return!!((t=e.options)!=null&&t.outFile)}function _xt(e){var t,n;let i=M.checkDefined(e.program).getCurrentDirectory(),s=yi(Cs(Bv(e.compilerOptions),i)),a=e.latestChangedDtsFile?ee(e.latestChangedDtsFile):void 0,u=[],m=new Map,d=new Set(e.program.getRootFileNames().map(he=>rc(he,i,e.program.getCanonicalFileName))),S=[];if(e.compilerOptions.outFile){let he=Os(e.fileInfos.entries(),([Ve,Pe])=>{let ke=pe(Ve);return re(Ve,ke),Pe.impliedFormat?{version:Pe.version,impliedFormat:Pe.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Pe.version}),Te={fileNames:u,fileInfos:he,root:S,resolvedRoot:ue(),options:ce(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:a,pendingEmit:e.programEmitPending?e.programEmitPending===cS(e.compilerOptions)?!1:e.programEmitPending:void 0};return HB(Te)}let E,x,D,I=Os(e.fileInfos.entries(),([he,Te])=>{var Ve,Pe;let ke=pe(he);re(he,ke),M.assert(u[ke-1]===W(he));let De=(Ve=e.oldSignatures)==null?void 0:Ve.get(he),Be=De!==void 0?De||void 0:Te.signature;if(e.compilerOptions.composite){let lt=e.program.getSourceFileByPath(he);if(!Xd(lt)&&t2(lt,e.program)){let ze=(Pe=e.emitSignatures)==null?void 0:Pe.get(he);ze!==Be&&(D=Ut(D,ze===void 0?ke:[ke,!bs(ze)&&ze[0]===Be?ve:ze]))}}return Te.version===Be?Te.affectsGlobalScope||Te.impliedFormat?{version:Te.version,signature:void 0,affectsGlobalScope:Te.affectsGlobalScope,impliedFormat:Te.impliedFormat}:Te.version:Be!==void 0?De===void 0?Te:{version:Te.version,signature:Be,affectsGlobalScope:Te.affectsGlobalScope,impliedFormat:Te.impliedFormat}:{version:Te.version,signature:!1,affectsGlobalScope:Te.affectsGlobalScope,impliedFormat:Te.impliedFormat}}),R;(t=e.referencedMap)!=null&&t.size()&&(R=Os(e.referencedMap.keys()).sort(u_).map(he=>[pe(he),K(e.referencedMap.getValues(he))]));let L=le(),F;if((n=e.affectedFilesPendingEmit)!=null&&n.size){let he=cS(e.compilerOptions),Te=new Set;for(let Ve of Os(e.affectedFilesPendingEmit.keys()).sort(u_))if(kg(Te,Ve)){let Pe=e.program.getSourceFileByPath(Ve);if(!Pe||!t2(Pe,e.program))continue;let ke=pe(Ve),De=e.affectedFilesPendingEmit.get(Ve);F=Ut(F,De===he?ke:De===8?[ke]:[ke,De])}}let J;if(e.changedFilesSet.size)for(let he of Os(e.changedFilesSet.keys()).sort(u_))J=Ut(J,pe(he));let $=me(),q={fileNames:u,fileInfos:I,root:S,resolvedRoot:ue(),options:ce(e.compilerOptions),fileIdsList:E,referencedMap:R,semanticDiagnosticsPerFile:L,emitDiagnosticsPerFile:$,affectedFilesPendingEmit:F,changeFileSet:J,emitSignatures:D,latestChangedDtsFile:a};return HB(q);function ee(he){return W(Cs(he,i))}function W(he){return Vx(Km(s,he,e.program.getCanonicalFileName))}function pe(he){let Te=m.get(he);return Te===void 0&&(u.push(W(he)),m.set(he,Te=u.length)),Te}function K(he){let Te=Os(he.keys(),pe).sort(tc),Ve=Te.join(),Pe=x?.get(Ve);return Pe===void 0&&(E=Ut(E,Te),(x??(x=new Map)).set(Ve,Pe=E.length)),Pe}function re(he,Te){let Ve=e.program.getSourceFile(he);if(!e.program.getFileIncludeReasons().get(Ve.path).some(Be=>Be.kind===0))return;if(!S.length)return S.push(Te);let Pe=S[S.length-1],ke=Ms(Pe);if(ke&&Pe[1]===Te-1)return Pe[1]=Te;if(ke||S.length===1||Pe!==Te-1)return S.push(Te);let De=S[S.length-2];return!O1(De)||De!==Pe-1?S.push(Te):(S[S.length-2]=[De,Te],S.length=S.length-1)}function ue(){let he;return d.forEach(Te=>{let Ve=e.program.getSourceFileByPath(Te);Ve&&Te!==Ve.resolvedPath&&(he=Ut(he,[pe(Ve.resolvedPath),pe(Te)]))}),he}function ce(he){let Te,{optionsNameMap:Ve}=DN();for(let Pe of Pg(he).sort(u_)){let ke=Ve.get(Pe.toLowerCase());ke?.affectsBuildInfo&&((Te||(Te={}))[Pe]=ne(ke,he[Pe]))}return Te}function ne(he,Te){if(he){if(M.assert(he.type!=="listOrElement"),he.type==="list"){let Ve=Te;if(he.element.isFilePath&&Ve.length)return Ve.map(ee)}else if(he.isFilePath)return ee(Te)}return Te}function le(){let he;return e.fileInfos.forEach((Te,Ve)=>{var Pe;let ke=(Pe=e.semanticDiagnosticsPerFile)==null?void 0:Pe.get(Ve);ke?ke.length&&(he=Ut(he,[pe(Ve),de(ke,Ve)])):e.changedFilesSet.has(Ve)||(he=Ut(he,pe(Ve)))}),he}function me(){var he;let Te;if(!((he=e.emitDiagnosticsPerFile)!=null&&he.size))return Te;for(let Ve of Os(e.emitDiagnosticsPerFile.keys()).sort(u_)){let Pe=e.emitDiagnosticsPerFile.get(Ve);Te=Ut(Te,[pe(Ve),de(Pe,Ve)])}return Te}function de(he,Te){return M.assert(!!he.length),he.map(Ve=>{let Pe=Ae(Ve,Te);Pe.reportsUnnecessary=Ve.reportsUnnecessary,Pe.reportDeprecated=Ve.reportsDeprecated,Pe.source=Ve.source,Pe.skippedOn=Ve.skippedOn;let{relatedInformation:ke}=Ve;return Pe.relatedInformation=ke?ke.length?ke.map(De=>Ae(De,Te)):[]:void 0,Pe})}function Ae(he,Te){let{file:Ve}=he;return{...he,file:Ve?Ve.resolvedPath===Te?void 0:W(Ve.resolvedPath):!1,messageText:bs(he.messageText)?he.messageText:xe(he.messageText)}}function xe(he){if(he.repopulateInfo)return{info:he.repopulateInfo(),next:te(he.next)};let Te=te(he.next);return Te===he.next?he:{...he,next:Te}}function te(he){return he&&(Et(he,(Te,Ve)=>{let Pe=xe(Te);if(Te===Pe)return;let ke=Ve>0?he.slice(0,Ve-1):[];ke.push(Pe);for(let De=Ve+1;De(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(sye||{});function sU(e,t,n,i,s,a){let u,m,d;return e===void 0?(M.assert(t===void 0),u=n,d=i,M.assert(!!d),m=d.getProgram()):Ms(e)?(d=i,m=r8({rootNames:e,options:t,host:n,oldProgram:d&&d.getProgramOrUndefined(),configFileParsingDiagnostics:s,projectReferences:a}),u=n):(m=e,u=t,d=n,s=i),{host:u,newProgram:m,oldProgram:d,configFileParsingDiagnostics:s||ve}}function qMe(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function TX(e,t,n,i,s){var a;n=qMe(n,s);let u;return(a=s?.diagnostics)!=null&&a.length&&(n+=s.diagnostics.map(S=>`${d(S)}${m5[S.category]}${S.code}: ${m(S.messageText)}`).join(`
`)),(i.createHash??tw)(n);function m(S){return bs(S)?S:S===void 0?"":S.next?S.messageText+S.next.map(m).join(`
`):S.messageText}function d(S){return S.file.resolvedPath===t.resolvedPath?`(${S.start},${S.length})`:(u===void 0&&(u=yi(t.resolvedPath)),`${Vx(Km(u,S.file.resolvedPath,e.getCanonicalFileName))}(${S.start},${S.length})`)}}function oye(e,t,n){return(t.createHash??tw)(qMe(e,n))}function bX(e,{newProgram:t,host:n,oldProgram:i,configFileParsingDiagnostics:s}){let a=i&&i.getState();if(a&&t===a.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,a=void 0,i;let u=txt(t,a);t.getBuildInfo=()=>_xt(u),t=void 0,i=void 0,a=void 0;let m=()=>u,d=CX(m,s);return d.getState=m,d.saveEmitState=()=>nxt(u),d.restoreEmitState=L=>ixt(u,L),d.hasChangedEmitSignature=()=>!!u.hasChangedEmitSignature,d.getAllDependencies=L=>cg.getAllDependencies(u,M.checkDefined(u.program),L),d.getSemanticDiagnostics=R,d.emit=D,d.releaseProgram=()=>rxt(u),e===0?d.getSemanticDiagnosticsOfNextAffectedFile=I:e===1?(d.getSemanticDiagnosticsOfNextAffectedFile=I,d.emitNextAffectedFile=E,d.emitBuildInfo=S):fo(),d;function S(L,F){if(u.buildInfoEmitPending){let J=M.checkDefined(u.program).emitBuildInfo(L||so(n,n.writeFile),F);return u.buildInfoEmitPending=!1,J}return yX}function E(L,F,J,$){var q,ee,W;let pe=BMe(u,F,n),K=cS(u.compilerOptions),re=J?K&24:K;if(!pe)if(u.compilerOptions.outFile){if(!u.programEmitPending||(re=u.programEmitPending,J&&(re=re&24),!re))return;pe=u.program}else{let ne=oxt(u,J);if(!ne){let le=axt(u);if(le)return(u.seenEmittedFiles??(u.seenEmittedFiles=new Map)).set(le.affectedFile.resolvedPath,le.seenKind|24),{result:{emitSkipped:!0,diagnostics:le.diagnostics},affected:le.affectedFile};if(!u.buildInfoEmitPending)return;let me=u.program,de=me.emitBuildInfo(L||so(n,n.writeFile),F);return u.buildInfoEmitPending=!1,{result:de,affected:me}}({affectedFile:pe,emitKind:re}=ne)}let ue;re&7&&(ue=0),re&24&&(ue=ue===void 0?1:void 0),pe===u.program&&(u.programEmitPending=u.changedFilesSet.size?qN(K,re):u.programEmitPending?qN(u.programEmitPending,re):void 0);let ce=u.program.emit(pe===u.program?void 0:pe,x(L,$),F,ue,$);if(pe!==u.program){let ne=pe;u.seenAffectedFiles.add(ne.resolvedPath),u.affectedFilesIndex!==void 0&&u.affectedFilesIndex++,u.buildInfoEmitPending=!0;let le=((q=u.seenEmittedFiles)==null?void 0:q.get(ne.resolvedPath))||0;(u.seenEmittedFiles??(u.seenEmittedFiles=new Map)).set(ne.resolvedPath,re|le);let me=((ee=u.affectedFilesPendingEmit)==null?void 0:ee.get(ne.resolvedPath))||K,de=qN(me,re|le);de?(u.affectedFilesPendingEmit??(u.affectedFilesPendingEmit=new Map)).set(ne.resolvedPath,de):(W=u.affectedFilesPendingEmit)==null||W.delete(ne.resolvedPath),ce.diagnostics.length&&(u.emitDiagnosticsPerFile??(u.emitDiagnosticsPerFile=new Map)).set(ne.resolvedPath,ce.diagnostics)}else u.changedFilesSet.clear();return{result:ce,affected:pe}}function x(L,F){return Hp(u.compilerOptions)?(J,$,q,ee,W,pe)=>{var K,re,ue;if(ju(J))if(u.compilerOptions.outFile){if(u.compilerOptions.composite){let ne=ce(u.outSignature,void 0);if(!ne)return;u.outSignature=ne}}else{M.assert(W?.length===1);let ne;if(!F){let le=W[0],me=u.fileInfos.get(le.resolvedPath);if(me.signature===le.version){let de=TX(u.program,le,$,n,pe);(K=pe?.diagnostics)!=null&&K.length||(ne=de),de!==le.version&&(n.storeSignatureInfo&&(u.signatureInfo??(u.signatureInfo=new Map)).set(le.resolvedPath,1),u.affectedFiles&&((re=u.oldSignatures)==null?void 0:re.get(le.resolvedPath))===void 0&&(u.oldSignatures??(u.oldSignatures=new Map)).set(le.resolvedPath,me.signature||!1),me.signature=de)}}if(u.compilerOptions.composite){let le=W[0].resolvedPath;if(ne=ce((ue=u.emitSignatures)==null?void 0:ue.get(le),ne),!ne)return;(u.emitSignatures??(u.emitSignatures=new Map)).set(le,ne)}}L?L(J,$,q,ee,W,pe):n.writeFile?n.writeFile(J,$,q,ee,W,pe):u.program.writeFile(J,$,q,ee,W,pe);function ce(ne,le){let me=!ne||bs(ne)?ne:ne[0];if(le??(le=oye($,n,pe)),le===me){if(ne===me)return;pe?pe.differsOnlyInMap=!0:pe={differsOnlyInMap:!0}}else u.hasChangedEmitSignature=!0,u.latestChangedDtsFile=J;return le}}:L||so(n,n.writeFile)}function D(L,F,J,$,q){e===1&&jMe(u,L);let ee=vX(d,L,F,J);if(ee)return ee;if(!L)if(e===1){let W=[],pe=!1,K,re=[],ue;for(;ue=E(F,J,$,q);)pe=pe||ue.result.emitSkipped,K=On(K,ue.result.diagnostics),re=On(re,ue.result.emittedFiles),W=On(W,ue.result.sourceMaps);return{emitSkipped:pe,diagnostics:K||ve,emittedFiles:re,sourceMaps:W}}else sxt(u,$);return M.checkDefined(u.program).emit(L,x(F,q),J,$,q)}function I(L,F){for(;;){let J=BMe(u,L,n),$;if(J)if(J!==u.program){let q=J;if((!F||!F(q))&&($=nye(u,q,L)),u.seenAffectedFiles.add(q.resolvedPath),u.affectedFilesIndex++,u.buildInfoEmitPending=!0,!$)continue}else $=u.program.getSemanticDiagnostics(void 0,L),u.changedFilesSet.clear(),u.programEmitPending=cS(u.compilerOptions);else return;return{result:$,affected:J}}}function R(L,F){if(jMe(u,L),M.checkDefined(u.program).getCompilerOptions().outFile)return M.assert(!u.semanticDiagnosticsPerFile),M.checkDefined(u.program).getSemanticDiagnostics(L,F);if(L)return nye(u,L,F);for(;I(F););let $;for(let q of M.checkDefined(u.program).getSourceFiles())$=On($,nye(u,q,F));return $||ve}}function EX(e,t,n){var i,s;let a=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,a|n),(s=e.emitDiagnosticsPerFile)==null||s.delete(t)}function aye(e){return bs(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:bs(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function cye(e,t){return O1(e)?t:e[1]||8}function lye(e,t){return e||cS(t||{})}function uye(e,t,n){var i,s,a,u;let m=e.program,d=yi(Cs(t,n.getCurrentDirectory())),S=__(n.useCaseSensitiveFileNames()),E,x=(i=m.fileNames)==null?void 0:i.map(R),D,I=m.latestChangedDtsFile?L(m.latestChangedDtsFile):void 0;if(iye(m)){let W=new Map;m.fileInfos.forEach((pe,K)=>{let re=F(K+1);W.set(re,bs(pe)?{version:pe,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:pe)}),E={fileInfos:W,compilerOptions:m.options?gB(m.options,L):{},latestChangedDtsFile:I,outSignature:m.outSignature,programEmitPending:m.pendingEmit===void 0?void 0:lye(m.pendingEmit,m.options)}}else{D=(s=m.fileIdsList)==null?void 0:s.map(ue=>new Set(ue.map(F)));let W=new Map,pe=(a=m.options)!=null&&a.composite&&!m.options.outFile?new Map:void 0;m.fileInfos.forEach((ue,ce)=>{let ne=F(ce+1),le=aye(ue);W.set(ne,le),pe&&le.signature&&pe.set(ne,le.signature)}),(u=m.emitSignatures)==null||u.forEach(ue=>{if(O1(ue))pe.delete(F(ue));else{let ce=F(ue[0]);pe.set(ce,!bs(ue[1])&&!ue[1].length?[pe.get(ce)]:ue[1])}});let K=new Set(kr(m.changeFileSet,F)),re=m.affectedFilesPendingEmit?cS(m.options||{}):void 0;E={fileInfos:W,compilerOptions:m.options?gB(m.options,L):{},referencedMap:$(m.referencedMap,m.options??{}),semanticDiagnosticsPerFile:q(m.semanticDiagnosticsPerFile,W,K),emitDiagnosticsPerFile:ee(m.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:m.affectedFilesPendingEmit&&CP(m.affectedFilesPendingEmit,ue=>F(O1(ue)?ue:ue[0]),ue=>cye(ue,re)),changedFilesSet:K,latestChangedDtsFile:I,emitSignatures:pe?.size?pe:void 0}}return{getState:()=>E,saveEmitState:aa,restoreEmitState:aa,getProgram:fo,getProgramOrUndefined:Vb,releaseProgram:aa,getCompilerOptions:()=>E.compilerOptions,getSourceFile:fo,getSourceFiles:fo,getOptionsDiagnostics:fo,getGlobalDiagnostics:fo,getConfigFileParsingDiagnostics:fo,getSyntacticDiagnostics:fo,getDeclarationDiagnostics:fo,getSemanticDiagnostics:fo,emit:fo,getAllDependencies:fo,getCurrentDirectory:fo,emitNextAffectedFile:fo,getSemanticDiagnosticsOfNextAffectedFile:fo,emitBuildInfo:fo,close:aa,hasChangedEmitSignature:Ng};function R(W){return rc(W,d,S)}function L(W){return Cs(W,d)}function F(W){return x[W-1]}function J(W){return D[W-1]}function $(W,pe){let K=cg.createReferencedMap(pe);return!K||!W||W.forEach(([re,ue])=>K.set(F(re),J(ue))),K}function q(W,pe,K){let re=new Map(Vp(pe.keys(),ue=>K.has(ue)?void 0:[ue,ve]));return W?.forEach(ue=>{O1(ue)?re.delete(F(ue)):re.set(F(ue[0]),ue[1])}),re.size?re:void 0}function ee(W){return W&&CP(W,pe=>F(pe[0]),pe=>pe[1])}}function xX(e,t,n){let i=yi(Cs(t,n.getCurrentDirectory())),s=__(n.useCaseSensitiveFileNames()),a=new Map,u=0,m=new Map,d=new Map(e.resolvedRoot);return e.fileInfos.forEach((E,x)=>{let D=rc(e.fileNames[x],i,s),I=bs(E)?E:E.version;if(a.set(D,I),ue().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>n().getSourceFile(i),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:i=>n().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>n().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,s)=>n().getSyntacticDiagnostics(i,s),getDeclarationDiagnostics:(i,s)=>n().getDeclarationDiagnostics(i,s),getSemanticDiagnostics:(i,s)=>n().getSemanticDiagnostics(i,s),emit:(i,s,a,u,m)=>n().emit(i,s,a,u,m),emitBuildInfo:(i,s)=>n().emitBuildInfo(i,s),getAllDependencies:fo,getCurrentDirectory:()=>n().getCurrentDirectory(),close:aa};function n(){return M.checkDefined(e().program)}}function zMe(e,t,n,i,s,a){return bX(0,sU(e,t,n,i,s,a))}function AX(e,t,n,i,s,a){return bX(1,sU(e,t,n,i,s,a))}function WMe(e,t,n,i,s,a){let{newProgram:u,configFileParsingDiagnostics:m}=sU(e,t,n,i,s,a);return CX(()=>({program:u,compilerOptions:u.getCompilerOptions()}),m)}function oU(e){return Wc(e,"/node_modules/.staging")?kP(e,"/.staging"):Dt(y5,t=>e.includes(t))?void 0:e}function _ye(e,t){if(t<=1)return 1;let n=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==bc&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;n=2,i=!0}return i&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function aU(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let n=_ye(e,t);return t>n+1}function fye(e){return HMe(yi(e))}function GMe(e,t){if(t.lengths.length+1?dye(m,u,Math.max(s.length+1,d+1),E):{dir:n,dirPath:i,nonRecursive:!0}:$Me(m,u,u.length-1,d,S,s,E)}function $Me(e,t,n,i,s,a,u){if(s!==-1)return dye(e,t,s+1,u);let m=!0,d=n;for(let S=0;S=n&&i+2fxt(i,s,a,e,n,t,u)}}function fxt(e,t,n,i,s,a,u){let m=cU(e),d=ZA(n,i,s,m,t,a,u);if(!e.getGlobalCache)return d;let S=e.getGlobalCache();if(S!==void 0&&!Su(n)&&!(d.resolvedModule&&gj(d.resolvedModule.extension))){let{resolvedModule:E,failedLookupLocations:x,affectingLocations:D,resolutionDiagnostics:I}=xge(M.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,s,m,S,t);if(E)return d.resolvedModule=E,d.failedLookupLocations=IN(d.failedLookupLocations,x),d.affectingLocations=IN(d.affectingLocations,D),d.resolutionDiagnostics=IN(d.resolutionDiagnostics,I),d}return d}function PX(e,t,n){let i,s,a,u=vd(),m=new Set,d=new Set,S=new Map,E=new Map,x=!1,D,I,R,L,F,J=!1,$=nf(()=>e.getCurrentDirectory()),q=e.getCachedDirectoryStructureHost(),ee=new Map,W=ON($(),e.getCanonicalFileName,e.getCompilationSettings()),pe=new Map,K=CB($(),e.getCanonicalFileName,e.getCompilationSettings(),W.getPackageJsonInfoCache(),W.optionsToRedirectsKey),re=new Map,ue=ON($(),e.getCanonicalFileName,_K(e.getCompilationSettings()),W.getPackageJsonInfoCache()),ce=new Map,ne=new Map,le=gye(t,$),me=e.toPath(le),de=yu(me),Ae=new Map,xe=new Map,te=new Map,he=new Map;return{rootDirForResolution:t,resolvedModuleNames:ee,resolvedTypeReferenceDirectives:pe,resolvedLibraries:re,resolvedFileToResolution:S,resolutionsWithFailedLookups:m,resolutionsWithOnlyAffectingLocations:d,directoryWatchesOfFailedLookups:ce,fileWatchesOfAffectingLocations:ne,packageDirWatchers:xe,dirPathToSymlinkPackageRefCount:te,watchFailedLookupLocationsOfExternalModuleResolutions:tn,getModuleResolutionCache:()=>W,startRecordingFilesWithChangedResolutions:De,finishRecordingFilesWithChangedResolutions:Be,startCachingPerDirectoryResolution:tt,finishCachingPerDirectoryResolution:ft,resolveModuleNameLiterals:Ar,resolveTypeReferenceDirectiveReferences:Tr,resolveLibrary:Vr,resolveSingleModuleNameWithoutWatching:fr,removeResolutionsFromProjectReferenceRedirects:Vi,removeResolutionsOfFile:uo,hasChangedAutomaticTypeDirectiveNames:()=>x,invalidateResolutionOfFile:Sr,invalidateResolutionsOfFailedLookupLocations:fe,setFilesWithInvalidatedNonRelativeUnresolvedImports:ia,createHasInvalidatedResolutions:ze,isFileWithInvalidatedNonRelativeUnresolvedImports:lt,updateTypeRootsWatch:pt,closeTypeRootsWatch:Me,clear:Pe,onChangesAffectModuleResolution:ke};function Te(Oe){return Oe.resolvedModule}function Ve(Oe){return Oe.resolvedTypeReferenceDirective}function Pe(){qf(ce,Dd),qf(ne,Dd),Ae.clear(),xe.clear(),te.clear(),u.clear(),Me(),ee.clear(),pe.clear(),S.clear(),m.clear(),d.clear(),R=void 0,L=void 0,F=void 0,I=void 0,D=void 0,J=!1,W.clear(),K.clear(),W.update(e.getCompilationSettings()),K.update(e.getCompilationSettings()),ue.clear(),E.clear(),re.clear(),x=!1}function ke(){J=!0,W.clearAllExceptPackageJsonInfoCache(),K.clearAllExceptPackageJsonInfoCache(),W.update(e.getCompilationSettings()),K.update(e.getCompilationSettings())}function De(){i=[]}function Be(){let Oe=i;return i=void 0,Oe}function lt(Oe){if(!a)return!1;let Nt=a.get(Oe);return!!Nt&&!!Nt.length}function ze(Oe,Nt){fe();let It=s;return s=void 0,{hasInvalidatedResolutions:Vt=>Oe(Vt)||J||!!It?.has(Vt)||lt(Vt),hasInvalidatedLibResolutions:Vt=>{var Mt;return Nt(Vt)||!!((Mt=re?.get(Vt))!=null&&Mt.isInvalidated)}}}function tt(){W.isReadonly=void 0,K.isReadonly=void 0,ue.isReadonly=void 0,W.getPackageJsonInfoCache().isReadonly=void 0,W.clearAllExceptPackageJsonInfoCache(),K.clearAllExceptPackageJsonInfoCache(),ue.clearAllExceptPackageJsonInfoCache(),u.forEach(Ri),u.clear(),Ae.clear()}function we(Oe){re.forEach((Nt,It)=>{var Vt;(Vt=Oe?.resolvedLibReferences)!=null&&Vt.has(It)||(qr(Nt,e.toPath(tU(e.getCompilationSettings(),$(),It)),Te),re.delete(It))})}function ft(Oe,Nt){a=void 0,J=!1,u.forEach(Ri),u.clear(),Oe!==Nt&&(we(Oe),Oe?.getSourceFiles().forEach(It=>{var Vt;let Mt=Jf(It)?((Vt=It.packageJsonLocations)==null?void 0:Vt.length)??0:0,sr=E.get(It.resolvedPath)??ve;for(let Z=sr.length;ZMt)for(let Z=Mt;Z{let Mt=Oe?.getSourceFileByPath(Vt);(!Mt||Mt.resolvedPath!==Vt)&&(It.forEach(sr=>ne.get(sr).files--),E.delete(Vt))})),ce.forEach(Qe),ne.forEach(yt),xe.forEach(gt),x=!1,W.isReadonly=!0,K.isReadonly=!0,ue.isReadonly=!0,W.getPackageJsonInfoCache().isReadonly=!0,Ae.clear()}function gt(Oe,Nt){Oe.dirPathToWatcher.size===0&&xe.delete(Nt)}function Qe(Oe,Nt){Oe.refCount===0&&(ce.delete(Nt),Oe.watcher.close())}function yt(Oe,Nt){var It;Oe.files===0&&Oe.resolutions===0&&!((It=Oe.symlinks)!=null&&It.size)&&(ne.delete(Nt),Oe.watcher.close())}function ir({entries:Oe,containingFile:Nt,containingSourceFile:It,redirectedReference:Vt,options:Mt,perFileCache:sr,reusedNames:Z,loader:Ye,getResolutionWithResolvedFileName:bt,deferWatchingNonRelativeResolution:Q,shouldRetryResolution:Xe,logChanges:z}){let Ue=e.toPath(Nt),be=sr.get(Ue)||sr.set(Ue,wN()).get(Ue),Re=[],Ot=z&<(Ue),Ht=e.getCurrentProgram(),$t=Ht&&Ht.getResolvedProjectReferenceToRedirect(Nt),gr=$t?!Vt||Vt.sourceFile.path!==$t.sourceFile.path:!!Vt,Wr=wN();for(let gn of Oe){let Pr=Ye.nameAndMode.getName(gn),Rn=Ye.nameAndMode.getMode(gn,It,Vt?.commandLine.options||Mt),Xi=be.get(Pr,Rn);if(!Wr.has(Pr,Rn)&&(J||gr||!Xi||Xi.isInvalidated||Ot&&!Su(Pr)&&Xe(Xi))){let us=Xi;Xi=Ye.resolve(Pr,Rn),e.onDiscoveredSymlink&&pxt(Xi)&&e.onDiscoveredSymlink(),be.set(Pr,Rn,Xi),Xi!==us&&(tn(Pr,Xi,Ue,bt,Q),us&&qr(us,Ue,bt)),z&&i&&!Yr(us,Xi)&&(i.push(Ue),z=!1)}else{let us=cU(e);if(N0(Mt,us)&&!Wr.has(Pr,Rn)){let Xn=bt(Xi);ms(us,sr===ee?Xn?.resolvedFileName?Xn.packageId?v.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:v.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:v.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Xn?.resolvedFileName?Xn.packageId?v.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:v.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:v.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Pr,Nt,Xn?.resolvedFileName,Xn?.packageId&&J1(Xn.packageId))}}M.assert(Xi!==void 0&&!Xi.isInvalidated),Wr.set(Pr,Rn,!0),Re.push(Xi)}return Z?.forEach(gn=>Wr.set(Ye.nameAndMode.getName(gn),Ye.nameAndMode.getMode(gn,It,Vt?.commandLine.options||Mt),!0)),be.size()!==Wr.size()&&be.forEach((gn,Pr,Rn)=>{Wr.has(Pr,Rn)||(qr(gn,Ue,bt),be.delete(Pr,Rn))}),Re;function Yr(gn,Pr){if(gn===Pr)return!0;if(!gn||!Pr)return!1;let Rn=bt(gn),Xi=bt(Pr);return Rn===Xi?!0:!Rn||!Xi?!1:Rn.resolvedFileName===Xi.resolvedFileName}}function Tr(Oe,Nt,It,Vt,Mt,sr){return ir({entries:Oe,containingFile:Nt,containingSourceFile:Mt,redirectedReference:It,options:Vt,reusedNames:sr,perFileCache:pe,loader:ZB(Nt,It,Vt,cU(e),K),getResolutionWithResolvedFileName:Ve,shouldRetryResolution:Z=>Z.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Ar(Oe,Nt,It,Vt,Mt,sr){return ir({entries:Oe,containingFile:Nt,containingSourceFile:Mt,redirectedReference:It,options:Vt,reusedNames:sr,perFileCache:ee,loader:hye(Nt,It,Vt,e,W),getResolutionWithResolvedFileName:Te,shouldRetryResolution:Z=>!Z.resolvedModule||!sO(Z.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})}function Vr(Oe,Nt,It,Vt){let Mt=cU(e),sr=re?.get(Vt);if(!sr||sr.isInvalidated){let Z=sr;sr=AB(Oe,Nt,It,Mt,ue);let Ye=e.toPath(Nt);tn(Oe,sr,Ye,Te,!1),re.set(Vt,sr),Z&&qr(Z,Ye,Te)}else if(N0(It,Mt)){let Z=Te(sr);ms(Mt,Z?.resolvedFileName?Z.packageId?v.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:v.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:v.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Oe,Nt,Z?.resolvedFileName,Z?.packageId&&J1(Z.packageId))}return sr}function fr(Oe,Nt){var It,Vt;let Mt=e.toPath(Nt),sr=ee.get(Mt),Z=sr?.get(Oe,void 0);if(Z&&!Z.isInvalidated)return Z;let Ye=(It=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:It.call(e,W),bt=cU(e),Q=ZA(Oe,Nt,e.getCompilationSettings(),bt,W);return(Vt=e.afterResolveSingleModuleNameWithoutWatching)==null||Vt.call(e,W,Oe,Nt,Q,Ye),Q}function ur(Oe){return Wc(Oe,"/node_modules/@types")}function tn(Oe,Nt,It,Vt,Mt){var sr;if(Nt.refCount)Nt.refCount++,M.assertIsDefined(Nt.files);else{Nt.refCount=1,M.assert(!((sr=Nt.files)!=null&&sr.size)),!Mt||Su(Oe)?br(Nt):u.add(Oe,Nt);let Z=Vt(Nt);if(Z&&Z.resolvedFileName){let Ye=e.toPath(Z.resolvedFileName),bt=S.get(Ye);bt||S.set(Ye,bt=new Set),bt.add(Nt)}}(Nt.files??(Nt.files=new Set)).add(It)}function Mi(Oe,Nt){let It=e.toPath(Oe),Vt=kX(Oe,It,le,me,de,$);if(Vt){let{dir:Mt,dirPath:sr,nonRecursive:Z,packageDir:Ye,packageDirPath:bt}=Vt;sr===me?(M.assert(Z),M.assert(!Ye),Nt=!0):Qs(Mt,sr,Ye,bt,Z)}return Nt}function br(Oe){M.assert(!!Oe.refCount);let{failedLookupLocations:Nt,affectingLocations:It,alternateResult:Vt}=Oe;if(!Nt?.length&&!It?.length&&!Vt)return;(Nt?.length||Vt)&&m.add(Oe);let Mt=!1;if(Nt)for(let sr of Nt)Mt=Mi(sr,Mt);Vt&&(Mt=Mi(Vt,Mt)),Mt&&Qs(le,me,void 0,void 0,!0),Di(Oe,!Nt?.length&&!Vt)}function Di(Oe,Nt){M.assert(!!Oe.refCount);let{affectingLocations:It}=Oe;if(It?.length){Nt&&d.add(Oe);for(let Vt of It)As(Vt,!0)}}function As(Oe,Nt){let It=ne.get(Oe);if(It){Nt?It.resolutions++:It.files++;return}let Vt=Oe,Mt=!1,sr;e.realpath&&(Vt=e.realpath(Oe),Oe!==Vt&&(Mt=!0,sr=ne.get(Vt)));let Z=Nt?1:0,Ye=Nt?0:1;if(!Mt||!sr){let bt={watcher:pye(e.toPath(Vt))?e.watchAffectingFileLocation(Vt,(Q,Xe)=>{q?.addOrDeleteFile(Q,e.toPath(Vt),Xe),os(Vt,W.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):a6,resolutions:Mt?0:Z,files:Mt?0:Ye,symlinks:void 0};ne.set(Vt,bt),Mt&&(sr=bt)}if(Mt){M.assert(!!sr);let bt={watcher:{close:()=>{var Q;let Xe=ne.get(Vt);(Q=Xe?.symlinks)!=null&&Q.delete(Oe)&&!Xe.symlinks.size&&!Xe.resolutions&&!Xe.files&&(ne.delete(Vt),Xe.watcher.close())}},resolutions:Z,files:Ye,symlinks:void 0};ne.set(Oe,bt),(sr.symlinks??(sr.symlinks=new Set)).add(Oe)}}function os(Oe,Nt){var It;let Vt=ne.get(Oe);Vt?.resolutions&&(I??(I=new Set)).add(Oe),Vt?.files&&(D??(D=new Set)).add(Oe),(It=Vt?.symlinks)==null||It.forEach(Mt=>os(Mt,Nt)),Nt?.delete(e.toPath(Oe))}function Ri(Oe,Nt){let It=e.getCurrentProgram();!It||!It.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Nt)?Oe.forEach(br):Oe.forEach(Vt=>Di(Vt,!0))}function $r(Oe,Nt,It,Vt,Mt){M.assert(!Mt);let sr=Ae.get(Vt),Z=xe.get(Vt);if(sr===void 0){let Q=e.realpath(It);sr=Q!==It&&e.toPath(Q)!==Vt,Ae.set(Vt,sr),Z?Z.isSymlink!==sr&&(Z.dirPathToWatcher.forEach(Xe=>{Pn(Z.isSymlink?Vt:Nt,!1),Xe.watcher=bt()}),Z.isSymlink=sr):xe.set(Vt,Z={dirPathToWatcher:new Map,isSymlink:sr})}else M.assertIsDefined(Z),M.assert(sr===Z.isSymlink);let Ye=Z.dirPathToWatcher.get(Nt);Ye?Ye.refCount++:(Z.dirPathToWatcher.set(Nt,{watcher:bt(),refCount:1}),sr&&te.set(Nt,(te.get(Nt)??0)+1));function bt(){return sr?He(It,Vt,Mt):He(Oe,Nt,Mt)}}function Qs(Oe,Nt,It,Vt,Mt){!Vt||!e.realpath?He(Oe,Nt,Mt):$r(Oe,Nt,It,Vt,Mt)}function He(Oe,Nt,It){let Vt=ce.get(Nt);return Vt?(M.assert(!!It==!!Vt.nonRecursive),Vt.refCount++):ce.set(Nt,Vt={watcher:Ti(Oe,Nt,It),refCount:1,nonRecursive:It}),Vt}function Xt(Oe,Nt,It){let Vt=e.toPath(Oe),Mt=kX(Oe,Vt,le,me,de,$);if(Mt){let{dirPath:sr,packageDirPath:Z}=Mt;if(sr===me)Nt=!0;else if(Z&&e.realpath){let Ye=xe.get(Z),bt=Ye.dirPathToWatcher.get(sr);if(bt.refCount--,bt.refCount===0){if(Pn(Ye.isSymlink?Z:sr,It),Ye.dirPathToWatcher.delete(sr),Ye.isSymlink){let Q=te.get(sr)-1;Q===0?te.delete(sr):te.set(sr,Q)}It&>(Ye,Z)}}else Pn(sr,It)}return Nt}function qr(Oe,Nt,It,Vt){if(M.checkDefined(Oe.files).delete(Nt),Oe.refCount--,Oe.refCount)return;let Mt=It(Oe);if(Mt&&Mt.resolvedFileName){let bt=e.toPath(Mt.resolvedFileName),Q=S.get(bt);Q?.delete(Oe)&&!Q.size&&S.delete(bt)}let{failedLookupLocations:sr,affectingLocations:Z,alternateResult:Ye}=Oe;if(m.delete(Oe)){let bt=!1;if(sr)for(let Q of sr)bt=Xt(Q,bt,Vt);Ye&&(bt=Xt(Ye,bt,Vt)),bt&&Pn(me,Vt)}else Z?.length&&d.delete(Oe);if(Z)for(let bt of Z){let Q=ne.get(bt);Q.resolutions--,Vt&&yt(Q,bt)}}function Pn(Oe,Nt){let It=ce.get(Oe);It.refCount--,Nt&&Qe(It,Oe)}function Ti(Oe,Nt,It){return e.watchDirectoryOfFailedLookupLocation(Oe,Vt=>{let Mt=e.toPath(Vt);q&&q.addOrDeleteFileOrDirectory(Vt,Mt),ut(Mt,Nt===Mt)},It?0:1)}function ki(Oe,Nt,It,Vt){let Mt=Oe.get(Nt);Mt&&(Mt.forEach(sr=>qr(sr,Nt,It,Vt)),Oe.delete(Nt))}function Vi(Oe){if(!wc(Oe,".json"))return;let Nt=e.getCurrentProgram();if(!Nt)return;let It=Nt.getResolvedProjectReferenceByPath(Oe);It&&It.commandLine.fileNames.forEach(Vt=>uo(e.toPath(Vt)))}function uo(Oe,Nt){ki(ee,Oe,Te,Nt),ki(pe,Oe,Ve,Nt)}function Ys(Oe,Nt){if(!Oe)return!1;let It=!1;return Oe.forEach(Vt=>{if(!(Vt.isInvalidated||!Nt(Vt))){Vt.isInvalidated=It=!0;for(let Mt of M.checkDefined(Vt.files))(s??(s=new Set)).add(Mt),x=x||Wc(Mt,s6)}}),It}function Sr(Oe){uo(Oe);let Nt=x;Ys(S.get(Oe),YS)&&x&&!Nt&&e.onChangedAutomaticTypeDirectiveNames()}function ia(Oe){M.assert(a===Oe||a===void 0),a=Oe}function ut(Oe,Nt){if(Nt)(F||(F=new Set)).add(Oe);else{let It=oU(Oe);if(!It||(Oe=It,e.fileIsOpen(Oe)))return!1;let Vt=yi(Oe);if(ur(Oe)||T5(Oe)||ur(Vt)||T5(Vt))(R||(R=new Set)).add(Oe),(L||(L=new Set)).add(Oe);else{if(Uhe(e.getCurrentProgram(),Oe)||wc(Oe,".map"))return!1;(R||(R=new Set)).add(Oe);let Mt=jM(Oe,!0);Mt&&(L||(L=new Set)).add(Mt)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Tt(){let Oe=W.getPackageJsonInfoCache().getInternalMap();Oe&&(R||L||F)&&Oe.forEach((Nt,It)=>Ce(It)?Oe.delete(It):void 0)}function fe(){var Oe;if(J)return D=void 0,Tt(),(R||L||F||I)&&Ys(re,St),R=void 0,L=void 0,F=void 0,I=void 0,!0;let Nt=!1;return D&&((Oe=e.getCurrentProgram())==null||Oe.getSourceFiles().forEach(It=>{Dt(It.packageJsonLocations,Vt=>D.has(Vt))&&((s??(s=new Set)).add(It.path),Nt=!0)}),D=void 0),!R&&!L&&!F&&!I||(Nt=Ys(m,St)||Nt,Tt(),R=void 0,L=void 0,F=void 0,Nt=Ys(d,it)||Nt,I=void 0),Nt}function St(Oe){var Nt;return it(Oe)?!0:!R&&!L&&!F?!1:((Nt=Oe.failedLookupLocations)==null?void 0:Nt.some(It=>Ce(e.toPath(It))))||!!Oe.alternateResult&&Ce(e.toPath(Oe.alternateResult))}function Ce(Oe){return R?.has(Oe)||ra(L?.keys()||[],Nt=>fs(Oe,Nt)?!0:void 0)||ra(F?.keys()||[],Nt=>Oe.length>Nt.length&&fs(Oe,Nt)&&(bG(Nt)||Oe[Nt.length]===bc)?!0:void 0)}function it(Oe){var Nt;return!!I&&((Nt=Oe.affectingLocations)==null?void 0:Nt.some(It=>I.has(It)))}function Me(){qf(he,Dm)}function rt(Oe){return nr(Oe)?e.watchTypeRootsDirectory(Oe,Nt=>{let It=e.toPath(Nt);q&&q.addOrDeleteFileOrDirectory(Nt,It),x=!0,e.onChangedAutomaticTypeDirectiveNames();let Vt=mye(Oe,e.toPath(Oe),me,de,$,Mt=>ce.has(Mt)||te.has(Mt));Vt&&ut(It,Vt===It)},1):a6}function pt(){let Oe=e.getCompilationSettings();if(Oe.types){Me();return}let Nt=JO(Oe,{getCurrentDirectory:$});Nt?Zw(he,new Set(Nt),{createNewValue:rt,onDeleteValue:Dm}):Me()}function nr(Oe){return e.getCompilationSettings().typeRoots?!0:fye(e.toPath(Oe))}}function pxt(e){var t,n;return!!((t=e.resolvedModule)!=null&&t.originalPath||(n=e.resolvedTypeReferenceDirective)!=null&&n.originalPath)}var KMe=uu?{getCurrentDirectory:()=>uu.getCurrentDirectory(),getNewLine:()=>uu.newLine,getCanonicalFileName:__(uu.useCaseSensitiveFileNames)}:void 0;function nk(e,t){let n=e===uu&&KMe?KMe:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:__(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(oX(s,n));let i=new Array(1);return s=>{i[0]=s,e.write(Hhe(i,n)+n.getNewLine()),i[0]=void 0}}function XMe(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&xs(NX,t.code)?(e.clearScreen(),!0):!1}var NX=[v.Starting_compilation_in_watch_mode.code,v.File_change_detected_Starting_incremental_compilation.code];function dxt(e,t){return xs(NX,e.code)?t+t:t}function i8(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function DX(e,t){return t?(n,i,s)=>{XMe(e,n,s);let a=`[${AE(i8(e),"\x1B[90m")}] `;a+=`${Qg(n.messageText,e.newLine)}${i+i}`,e.write(a)}:(n,i,s)=>{let a="";XMe(e,n,s)||(a+=i),a+=`${i8(e)} - `,a+=`${Qg(n.messageText,e.newLine)}${dxt(n,i)}`,e.write(a)}}function yye(e,t,n,i,s,a){let u=s;u.onUnRecoverableConfigFileDiagnostic=d=>e8e(s,a,d);let m=wM(e,t,u,n,i);return u.onUnRecoverableConfigFileDiagnostic=void 0,m}function lU(e){return yy(e,t=>t.category===1)}function uU(e){return ti(e,n=>n.category===1).map(n=>{if(n.file!==void 0)return`${n.file.fileName}`}).map(n=>{if(n===void 0)return;let i=jn(e,s=>s.file!==void 0&&s.file.fileName===n);if(i!==void 0){let{line:s}=Eo(i.file,i.start);return{fileName:n,line:s+1}}})}function IX(e){return e===1?v.Found_1_error_Watching_for_file_changes:v.Found_0_errors_Watching_for_file_changes}function QMe(e,t){let n=AE(":"+e.line,"\x1B[90m");return rw(e.fileName)&&rw(t)?Km(t,e.fileName,!1)+n:e.fileName+n}function wX(e,t,n,i){if(e===0)return"";let s=t.filter(E=>E!==void 0),a=s.map(E=>`${E.fileName}:${E.line}`).filter((E,x,D)=>D.indexOf(E)===x),u=s[0]&&QMe(s[0],i.getCurrentDirectory()),m;e===1?m=t[0]!==void 0?[v.Found_1_error_in_0,u]:[v.Found_1_error]:m=a.length===0?[v.Found_0_errors,e]:a.length===1?[v.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,u]:[v.Found_0_errors_in_1_files,e,a.length];let d=Pc(...m),S=a.length>1?mxt(s,i):"";return`${n}${Qg(d.messageText,n)}${n}${n}${S}`}function mxt(e,t){let n=e.filter((x,D,I)=>D===I.findIndex(R=>R?.fileName===x?.fileName));if(n.length===0)return"";let i=x=>Math.log(x)*Math.LOG10E+1,s=n.map(x=>[x,yy(e,D=>D.fileName===x.fileName)]),a=s.reduce((x,D)=>Math.max(x,D[1]||0),0),u=v.Errors_Files.message,m=u.split(" ")[0].length,d=Math.max(m,i(a)),S=Math.max(i(a)-m,0),E="";return E+=" ".repeat(S)+u+`
`,s.forEach(x=>{let[D,I]=x,R=Math.log(I)*Math.LOG10E+1|0,L=R{t(i.fileName)})}function RX(e,t){var n,i;let s=e.getFileIncludeReasons(),a=u=>nw(u,e.getCurrentDirectory(),e.getCanonicalFileName);for(let u of e.getSourceFiles())t(`${zN(u,a)}`),(n=s.get(u.path))==null||n.forEach(m=>t(`  ${jX(e,m,a).messageText}`)),(i=MX(u,a))==null||i.forEach(m=>t(`  ${m.messageText}`))}function MX(e,t){var n;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(Bs(void 0,v.File_is_output_of_project_reference_source_0,zN(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(Bs(void 0,v.File_redirects_to_file_0,zN(e.redirectInfo.redirectTarget,t))),Jf(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(Bs(void 0,v.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,zN(qo(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(Bs(void 0,e.packageJsonScope.contents.packageJsonContent.type?v.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:v.File_is_CommonJS_module_because_0_does_not_have_field_type,zN(qo(e.packageJsonLocations),t))):(n=e.packageJsonLocations)!=null&&n.length&&(i??(i=[])).push(Bs(void 0,v.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function LX(e,t){var n;let i=e.getCompilerOptions().configFile;if(!((n=i?.configFileSpecs)!=null&&n.validatedFilesSpec))return;let s=e.getCanonicalFileName(t),a=yi(Cs(i.fileName,e.getCurrentDirectory())),u=Va(i.configFileSpecs.validatedFilesSpec,m=>e.getCanonicalFileName(Cs(m,a))===s);return u!==-1?i.configFileSpecs.validatedFilesSpecBeforeSubstitution[u]:void 0}function FX(e,t){var n,i;let s=e.getCompilerOptions().configFile;if(!((n=s?.configFileSpecs)!=null&&n.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;let a=wc(t,".json"),u=yi(Cs(s.fileName,e.getCurrentDirectory())),m=e.useCaseSensitiveFileNames(),d=Va((i=s?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,S=>{if(a&&!Wc(S,".json"))return!1;let E=vpe(S,u,"files");return!!E&&$1(`(${E})$`,m).test(t)});return d!==-1?s.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[d]:void 0}function jX(e,t,n){var i,s;let a=e.getCompilerOptions();if(wT(t)){let u=o6(e,t),m=VN(u)?u.file.text.substring(u.pos,u.end):`"${u.text}"`,d;switch(M.assert(VN(u)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:VN(u)?d=u.packageId?v.Imported_via_0_from_file_1_with_packageId_2:v.Imported_via_0_from_file_1:u.text===oT?d=u.packageId?v.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:v.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:d=u.packageId?v.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:v.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:M.assert(!u.packageId),d=v.Referenced_via_0_from_file_1;break;case 5:d=u.packageId?v.Type_library_referenced_via_0_from_file_1_with_packageId_2:v.Type_library_referenced_via_0_from_file_1;break;case 7:M.assert(!u.packageId),d=v.Library_referenced_via_0_from_file_1;break;default:M.assertNever(t)}return Bs(void 0,d,m,zN(u.file,n),u.packageId&&J1(u.packageId))}switch(t.kind){case 0:if(!((i=a.configFile)!=null&&i.configFileSpecs))return Bs(void 0,v.Root_file_specified_for_compilation);let u=Cs(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(LX(e,u))return Bs(void 0,v.Part_of_files_list_in_tsconfig_json);let d=FX(e,u);return bs(d)?Bs(void 0,v.Matched_by_include_pattern_0_in_1,d,zN(a.configFile,n)):Bs(void 0,d?v.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:v.Root_file_specified_for_compilation);case 1:case 2:let S=t.kind===2,E=M.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return Bs(void 0,a.outFile?S?v.Output_from_referenced_project_0_included_because_1_specified:v.Source_from_referenced_project_0_included_because_1_specified:S?v.Output_from_referenced_project_0_included_because_module_is_specified_as_none:v.Source_from_referenced_project_0_included_because_module_is_specified_as_none,zN(E.sourceFile.fileName,n),a.outFile?"--outFile":"--out");case 8:{let x=a.types?t.packageId?[v.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,J1(t.packageId)]:[v.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[v.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,J1(t.packageId)]:[v.Entry_point_for_implicit_type_library_0,t.typeReference];return Bs(void 0,...x)}case 6:{if(t.index!==void 0)return Bs(void 0,v.Library_0_specified_in_compilerOptions,a.lib[t.index]);let x=rj(Qo(a)),D=x?[v.Default_library_for_target_0,x]:[v.Default_library];return Bs(void 0,...D)}default:M.assertNever(t)}}function zN(e,t){let n=bs(e)?e:e.fileName;return t?t(n):n}function _U(e,t,n,i,s,a,u,m){let d=!!e.getCompilerOptions().listFilesOnly,S=e.getConfigFileParsingDiagnostics().slice(),E=S.length;On(S,e.getSyntacticDiagnostics(void 0,a)),S.length===E&&(On(S,e.getOptionsDiagnostics(a)),d||(On(S,e.getGlobalDiagnostics(a)),S.length===E&&On(S,e.getSemanticDiagnostics(void 0,a))));let x=d?{emitSkipped:!0,diagnostics:ve}:e.emit(void 0,s,a,u,m),{emittedFiles:D,diagnostics:I}=x;On(S,I);let R=wP(S);if(R.forEach(t),n){let L=e.getCurrentDirectory();Et(D,F=>{let J=Cs(F,L);n(`TSFILE: ${J}`)}),OX(e,n)}return i&&i(lU(R),uU(R)),{emitResult:x,diagnostics:R}}function BX(e,t,n,i,s,a,u,m){let{emitResult:d,diagnostics:S}=_U(e,t,n,i,s,a,u,m);return d.emitSkipped&&S.length>0?1:S.length>0?2:0}var a6={close:aa},c6=()=>a6;function UX(e=uu,t){return{onWatchStatusChange:t||DX(e),watchFile:so(e,e.watchFile)||c6,watchDirectory:so(e,e.watchDirectory)||c6,setTimeout:so(e,e.setTimeout)||aa,clearTimeout:so(e,e.clearTimeout)||aa}}var Eu={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"};function VX(e,t){let n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=n!==0?a=>e.trace(a):aa,s=tX(e,n,i);return s.writeLog=i,s}function JX(e,t,n=e){let i=e.useCaseSensitiveFileNames(),s={getSourceFile:iX((a,u)=>u?e.readFile(a,u):s.readFile(a),void 0),getDefaultLibLocation:so(e,e.getDefaultLibLocation),getDefaultLibFileName:a=>e.getDefaultLibFileName(a),writeFile:sX((a,u,m)=>e.writeFile(a,u,m),a=>e.createDirectory(a),a=>e.directoryExists(a)),getCurrentDirectory:nf(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:__(i),getNewLine:()=>wv(t()),fileExists:a=>e.fileExists(a),readFile:a=>e.readFile(a),trace:so(e,e.trace),directoryExists:so(n,n.directoryExists),getDirectories:so(n,n.getDirectories),realpath:so(e,e.realpath),getEnvironmentVariable:so(e,e.getEnvironmentVariable)||(()=>""),createHash:so(e,e.createHash),readDirectory:so(e,e.readDirectory),storeSignatureInfo:e.storeSignatureInfo,jsDocParsingMode:e.jsDocParsingMode};return s}function fU(e,t){if(t.match(Uge)){let n=t.length,i=n;for(let s=n-1;s>=0;s--){let a=t.charCodeAt(s);switch(a){case 10:s&&t.charCodeAt(s-1)===13&&s--;case 13:break;default:if(a<127||!T_(a)){i=s;continue}break}let u=t.substring(i,n);if(u.match(NK)){t=t.substring(0,i);break}else if(!u.match(DK))break;n=i}}return(e.createHash||tw)(t)}function pU(e){let t=e.getSourceFile;e.getSourceFile=(...n)=>{let i=t.call(e,...n);return i&&(i.version=fU(e,i.text)),i}}function qX(e,t){let n=nf(()=>yi(eo(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:nf(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:i=>ii(n(),w3(i)),fileExists:i=>e.fileExists(i),readFile:(i,s)=>e.readFile(i,s),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,s,a,u,m)=>e.readDirectory(i,s,a,u,m),realpath:so(e,e.realpath),getEnvironmentVariable:so(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,s,a)=>e.writeFile(i,s,a),createHash:so(e,e.createHash),createProgram:t||AX,storeSignatureInfo:e.storeSignatureInfo,now:so(e,e.now)}}function ZMe(e=uu,t,n,i){let s=u=>e.write(u+e.newLine),a=qX(e,t);return JW(a,UX(e,i)),a.afterProgramCreate=u=>{let m=u.getCompilerOptions(),d=wv(m);_U(u,n,s,S=>a.onWatchStatusChange(Pc(IX(S),S),d,m,S))},a}function e8e(e,t,n){t(n),e.exit(1)}function zX({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:i,system:s,createProgram:a,reportDiagnostic:u,reportWatchStatus:m}){let d=u||nk(s),S=ZMe(s,a,d,m);return S.onUnRecoverableConfigFileDiagnostic=E=>e8e(s,d,E),S.configFileName=e,S.optionsToExtend=t,S.watchOptionsToExtend=n,S.extraFileExtensions=i,S}function WX({rootFiles:e,options:t,watchOptions:n,projectReferences:i,system:s,createProgram:a,reportDiagnostic:u,reportWatchStatus:m}){let d=ZMe(s,a,u||nk(s),m);return d.rootFiles=e,d.options=t,d.watchOptions=n,d.projectReferences=i,d}function Sye(e){let t=e.system||uu,n=e.host||(e.host=mU(e.options,t)),i=Tye(e),s=BX(i,e.reportDiagnostic||nk(t),a=>n.trace&&n.trace(a),e.reportErrorSummary||e.options.pretty?(a,u)=>t.write(wX(a,u,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}function dU(e,t){let n=Bv(e);if(!n)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(n,e.configFilePath);else{let s=t.readFile(n);if(!s)return;i=QK(n,s)}if(!(!i||i.version!==se||!i.program))return uye(i,n,t)}function mU(e,t=uu){let n=QB(e,void 0,t);return n.createHash=so(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,pU(n),i6(n,i=>rc(i,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function Tye({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:i,host:s,createProgram:a}){s=s||mU(t),a=a||AX;let u=dU(t,s);return a(e,t,s,u,n,i)}function t8e(e,t,n,i,s,a,u,m){return Ms(e)?WX({rootFiles:e,options:t,watchOptions:m,projectReferences:u,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:a}):zX({configFileName:e,optionsToExtend:t,watchOptionsToExtend:u,extraFileExtensions:m,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:a})}function GX(e){let t,n,i,s,a,u,m,d,S=e.extendedConfigCache,E=!1,x=new Map,D,I=!1,R=e.useCaseSensitiveFileNames(),L=e.getCurrentDirectory(),{configFileName:F,optionsToExtend:J={},watchOptionsToExtend:$,extraFileExtensions:q,createProgram:ee}=e,{rootFiles:W,options:pe,watchOptions:K,projectReferences:re}=e,ue,ce,ne=!1,le=!1,me=F===void 0?void 0:YB(e,L,R),de=me||e,Ae=iU(e,de),xe=Ar();F&&e.configFileParsingResult&&(Ys(e.configFileParsingResult),xe=Ar()),os(v.Starting_compilation_in_watch_mode),F&&!e.configFileParsingResult&&(xe=wv(J),M.assert(!W),uo(),xe=Ar()),M.assert(pe),M.assert(W);let{watchFile:te,watchDirectory:he,writeLog:Te}=VX(e,pe),Ve=__(R);Te(`Current directory: ${L} CaseSensitiveFileNames: ${R}`);let Pe;F&&(Pe=te(F,qr,2e3,K,Eu.ConfigFile));let ke=JX(e,()=>pe,de);pU(ke);let De=ke.getSourceFile;ke.getSourceFile=(Oe,...Nt)=>Mi(Oe,Vr(Oe),...Nt),ke.getSourceFileByPath=Mi,ke.getNewLine=()=>xe,ke.fileExists=tn,ke.onReleaseOldSourceFile=As,ke.onReleaseParsedCommandLine=ut,ke.toPath=Vr,ke.getCompilationSettings=()=>pe,ke.useSourceOfProjectReferenceRedirect=so(e,e.useSourceOfProjectReferenceRedirect),ke.watchDirectoryOfFailedLookupLocation=(Oe,Nt,It)=>he(Oe,Nt,It,K,Eu.FailedLookupLocations),ke.watchAffectingFileLocation=(Oe,Nt)=>te(Oe,Nt,2e3,K,Eu.AffectingFileLocation),ke.watchTypeRootsDirectory=(Oe,Nt,It)=>he(Oe,Nt,It,K,Eu.TypeRoots),ke.getCachedDirectoryStructureHost=()=>me,ke.scheduleInvalidateResolutionsOfFailedLookupLocations=Qs,ke.onInvalidatedResolution=Xt,ke.onChangedAutomaticTypeDirectiveNames=Xt,ke.fileIsOpen=Ng,ke.getCurrentProgram=Qe,ke.writeLog=Te,ke.getParsedCommandLine=Sr;let Be=PX(ke,F?yi(Cs(F,L)):L,!1);ke.resolveModuleNameLiterals=so(e,e.resolveModuleNameLiterals),ke.resolveModuleNames=so(e,e.resolveModuleNames),!ke.resolveModuleNameLiterals&&!ke.resolveModuleNames&&(ke.resolveModuleNameLiterals=Be.resolveModuleNameLiterals.bind(Be)),ke.resolveTypeReferenceDirectiveReferences=so(e,e.resolveTypeReferenceDirectiveReferences),ke.resolveTypeReferenceDirectives=so(e,e.resolveTypeReferenceDirectives),!ke.resolveTypeReferenceDirectiveReferences&&!ke.resolveTypeReferenceDirectives&&(ke.resolveTypeReferenceDirectiveReferences=Be.resolveTypeReferenceDirectiveReferences.bind(Be)),ke.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):Be.resolveLibrary.bind(Be),ke.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?so(e,e.getModuleResolutionCache):()=>Be.getModuleResolutionCache();let ze=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?so(e,e.hasInvalidatedResolutions)||YS:Ng,tt=e.resolveLibrary?so(e,e.hasInvalidatedLibResolutions)||YS:Ng;return t=dU(pe,ke),yt(),Me(),F&&pt(Vr(F),pe,K,Eu.ExtendedConfigFile),F?{getCurrentProgram:gt,getProgram:Ti,close:we,getResolutionCache:ft}:{getCurrentProgram:gt,getProgram:Ti,updateRootFileNames:Tr,close:we,getResolutionCache:ft};function we(){$r(),Be.clear(),qf(x,Oe=>{Oe&&Oe.fileWatcher&&(Oe.fileWatcher.close(),Oe.fileWatcher=void 0)}),Pe&&(Pe.close(),Pe=void 0),S?.clear(),S=void 0,d&&(qf(d,Dd),d=void 0),s&&(qf(s,Dd),s=void 0),i&&(qf(i,Dm),i=void 0),m&&(qf(m,Oe=>{var Nt;(Nt=Oe.watcher)==null||Nt.close(),Oe.watcher=void 0,Oe.watchedDirectories&&qf(Oe.watchedDirectories,Dd),Oe.watchedDirectories=void 0}),m=void 0),t=void 0}function ft(){return Be}function gt(){return t}function Qe(){return t&&t.getProgramOrUndefined()}function yt(){Te("Synchronizing program"),M.assert(pe),M.assert(W),$r();let Oe=gt();I&&(xe=Ar(),Oe&&H5(Oe.getCompilerOptions(),pe)&&Be.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:Nt,hasInvalidatedLibResolutions:It}=Be.createHasInvalidatedResolutions(ze,tt),{originalReadFile:Vt,originalFileExists:Mt,originalDirectoryExists:sr,originalCreateDirectory:Z,originalWriteFile:Ye,readFileWithCache:bt}=i6(ke,Vr);return gX(Qe(),W,pe,Q=>Di(Q,bt),Q=>ke.fileExists(Q),Nt,It,Ri,Sr,re)?le&&(E&&os(v.File_change_detected_Starting_incremental_compilation),t=ee(void 0,void 0,ke,t,ce,re),le=!1):(E&&os(v.File_change_detected_Starting_incremental_compilation),ir(Nt,It)),E=!1,e.afterProgramCreate&&Oe!==t&&e.afterProgramCreate(t),ke.readFile=Vt,ke.fileExists=Mt,ke.directoryExists=sr,ke.createDirectory=Z,ke.writeFile=Ye,t}function ir(Oe,Nt){Te("CreatingProgramWith::"),Te(`  roots: ${JSON.stringify(W)}`),Te(`  options: ${JSON.stringify(pe)}`),re&&Te(`  projectReferences: ${JSON.stringify(re)}`);let It=I||!Qe();I=!1,le=!1,Be.startCachingPerDirectoryResolution(),ke.hasInvalidatedResolutions=Oe,ke.hasInvalidatedLibResolutions=Nt,ke.hasChangedAutomaticTypeDirectiveNames=Ri;let Vt=Qe();if(t=ee(W,pe,ke,t,ce,re),Be.finishCachingPerDirectoryResolution(t.getProgram(),Vt),eX(t.getProgram(),i||(i=new Map),Ce),It&&Be.updateTypeRootsWatch(),D){for(let Mt of D)i.has(Mt)||x.delete(Mt);D=void 0}}function Tr(Oe){M.assert(!F,"Cannot update root file names with config file watch mode"),W=Oe,Xt()}function Ar(){return wv(pe||J)}function Vr(Oe){return rc(Oe,L,Ve)}function fr(Oe){return typeof Oe=="boolean"}function ur(Oe){return typeof Oe.version=="boolean"}function tn(Oe){let Nt=Vr(Oe);return fr(x.get(Nt))?!1:de.fileExists(Oe)}function Mi(Oe,Nt,It,Vt,Mt){let sr=x.get(Nt);if(fr(sr))return;let Z=typeof It=="object"?It.impliedNodeFormat:void 0;if(sr===void 0||Mt||ur(sr)||sr.sourceFile.impliedNodeFormat!==Z){let Ye=De(Oe,It,Vt);if(sr)Ye?(sr.sourceFile=Ye,sr.version=Ye.version,sr.fileWatcher||(sr.fileWatcher=Tt(Nt,Oe,fe,250,K,Eu.SourceFile))):(sr.fileWatcher&&sr.fileWatcher.close(),x.set(Nt,!1));else if(Ye){let bt=Tt(Nt,Oe,fe,250,K,Eu.SourceFile);x.set(Nt,{sourceFile:Ye,version:Ye.version,fileWatcher:bt})}else x.set(Nt,!1);return Ye}return sr.sourceFile}function br(Oe){let Nt=x.get(Oe);Nt!==void 0&&(fr(Nt)?x.set(Oe,{version:!1}):Nt.version=!1)}function Di(Oe,Nt){let It=x.get(Oe);if(!It)return;if(It.version)return It.version;let Vt=Nt(Oe);return Vt!==void 0?fU(ke,Vt):void 0}function As(Oe,Nt,It){let Vt=x.get(Oe.resolvedPath);Vt!==void 0&&(fr(Vt)?(D||(D=[])).push(Oe.path):Vt.sourceFile===Oe&&(Vt.fileWatcher&&Vt.fileWatcher.close(),x.delete(Oe.resolvedPath),It||Be.removeResolutionsOfFile(Oe.path)))}function os(Oe){e.onWatchStatusChange&&e.onWatchStatusChange(Pc(Oe),xe,pe||J)}function Ri(){return Be.hasChangedAutomaticTypeDirectiveNames()}function $r(){return u?(e.clearTimeout(u),u=void 0,!0):!1}function Qs(){if(!e.setTimeout||!e.clearTimeout)return Be.invalidateResolutionsOfFailedLookupLocations();let Oe=$r();Te(`Scheduling invalidateFailedLookup${Oe?", Cancelled earlier one":""}`),u=e.setTimeout(He,250,"timerToInvalidateFailedLookupResolutions")}function He(){u=void 0,Be.invalidateResolutionsOfFailedLookupLocations()&&Xt()}function Xt(){!e.setTimeout||!e.clearTimeout||(a&&e.clearTimeout(a),Te("Scheduling update"),a=e.setTimeout(Pn,250,"timerToUpdateProgram"))}function qr(){M.assert(!!F),n=2,Xt()}function Pn(){a=void 0,E=!0,Ti()}function Ti(){var Oe,Nt,It,Vt;switch(n){case 1:(Oe=sf)==null||Oe.logStartUpdateProgram("PartialConfigReload"),ki();break;case 2:(Nt=sf)==null||Nt.logStartUpdateProgram("FullConfigReload"),Vi();break;default:(It=sf)==null||It.logStartUpdateProgram("SynchronizeProgram"),yt();break}return(Vt=sf)==null||Vt.logStopUpdateProgram("Done"),gt()}function ki(){Te("Reloading new file names and options"),M.assert(pe),M.assert(F),n=0,W=UO(pe.configFile.configFileSpecs,Cs(yi(F),L),pe,Ae,q),vB(W,Cs(F,L),pe.configFile.configFileSpecs,ce,ne)&&(le=!0),yt()}function Vi(){M.assert(F),Te(`Reloading config file: ${F}`),n=0,me&&me.clearCache(),uo(),I=!0,yt(),Me(),pt(Vr(F),pe,K,Eu.ExtendedConfigFile)}function uo(){M.assert(F),Ys(wM(F,J,Ae,S||(S=new Map),$,q))}function Ys(Oe){W=Oe.fileNames,pe=Oe.options,K=Oe.watchOptions,re=Oe.projectReferences,ue=Oe.wildcardDirectories,ce=kE(Oe).slice(),ne=BO(Oe.raw),le=!0}function Sr(Oe){let Nt=Vr(Oe),It=m?.get(Nt);if(It){if(!It.updateLevel)return It.parsedCommandLine;if(It.parsedCommandLine&&It.updateLevel===1&&!e.getParsedCommandLine){Te("Reloading new file names and options"),M.assert(pe);let Mt=UO(It.parsedCommandLine.options.configFile.configFileSpecs,Cs(yi(Oe),L),pe,Ae);return It.parsedCommandLine={...It.parsedCommandLine,fileNames:Mt},It.updateLevel=void 0,It.parsedCommandLine}}Te(`Loading config file: ${Oe}`);let Vt=e.getParsedCommandLine?e.getParsedCommandLine(Oe):ia(Oe);return It?(It.parsedCommandLine=Vt,It.updateLevel=void 0):(m||(m=new Map)).set(Nt,It={parsedCommandLine:Vt}),nr(Oe,Nt,It),Vt}function ia(Oe){let Nt=Ae.onUnRecoverableConfigFileDiagnostic;Ae.onUnRecoverableConfigFileDiagnostic=aa;let It=wM(Oe,void 0,Ae,S||(S=new Map),$);return Ae.onUnRecoverableConfigFileDiagnostic=Nt,It}function ut(Oe){var Nt;let It=Vr(Oe),Vt=m?.get(It);Vt&&(m.delete(It),Vt.watchedDirectories&&qf(Vt.watchedDirectories,Dd),(Nt=Vt.watcher)==null||Nt.close(),ZK(It,d))}function Tt(Oe,Nt,It,Vt,Mt,sr){return te(Nt,(Z,Ye)=>It(Z,Ye,Oe),Vt,Mt,sr)}function fe(Oe,Nt,It){St(Oe,It,Nt),Nt===2&&x.has(It)&&Be.invalidateResolutionOfFile(It),br(It),Xt()}function St(Oe,Nt,It){me&&me.addOrDeleteFile(Oe,Nt,It)}function Ce(Oe,Nt){return m?.has(Oe)?a6:Tt(Oe,Nt,it,500,K,Eu.MissingFile)}function it(Oe,Nt,It){St(Oe,It,Nt),Nt===0&&i.has(It)&&(i.get(It).close(),i.delete(It),br(It),Xt())}function Me(){KM(s||(s=new Map),ue,rt)}function rt(Oe,Nt){return he(Oe,It=>{M.assert(F),M.assert(pe);let Vt=Vr(It);me&&me.addOrDeleteFileOrDirectory(It,Vt),br(Vt),!XM({watchedDirPath:Vr(Oe),fileOrDirectory:It,fileOrDirectoryPath:Vt,configFileName:F,extraFileExtensions:q,options:pe,program:gt()||W,currentDirectory:L,useCaseSensitiveFileNames:R,writeLog:Te,toPath:Vr})&&n!==2&&(n=1,Xt())},Nt,K,Eu.WildcardDirectory)}function pt(Oe,Nt,It,Vt){KB(Oe,Nt,d||(d=new Map),(Mt,sr)=>te(Mt,(Z,Ye)=>{var bt;St(Mt,sr,Ye),S&&XB(S,sr,Vr);let Q=(bt=d.get(sr))==null?void 0:bt.projects;Q?.size&&Q.forEach(Xe=>{if(F&&Vr(F)===Xe)n=2;else{let z=m?.get(Xe);z&&(z.updateLevel=2),Be.removeResolutionsFromProjectReferenceRedirects(Xe)}Xt()})},2e3,It,Vt),Vr)}function nr(Oe,Nt,It){var Vt,Mt,sr,Z;It.watcher||(It.watcher=te(Oe,(Ye,bt)=>{St(Oe,Nt,bt);let Q=m?.get(Nt);Q&&(Q.updateLevel=2),Be.removeResolutionsFromProjectReferenceRedirects(Nt),Xt()},2e3,((Vt=It.parsedCommandLine)==null?void 0:Vt.watchOptions)||K,Eu.ConfigFileOfReferencedProject)),KM(It.watchedDirectories||(It.watchedDirectories=new Map),(Mt=It.parsedCommandLine)==null?void 0:Mt.wildcardDirectories,(Ye,bt)=>{var Q;return he(Ye,Xe=>{let z=Vr(Xe);me&&me.addOrDeleteFileOrDirectory(Xe,z),br(z);let Ue=m?.get(Nt);Ue?.parsedCommandLine&&(XM({watchedDirPath:Vr(Ye),fileOrDirectory:Xe,fileOrDirectoryPath:z,configFileName:Oe,options:Ue.parsedCommandLine.options,program:Ue.parsedCommandLine.fileNames,currentDirectory:L,useCaseSensitiveFileNames:R,writeLog:Te,toPath:Vr})||Ue.updateLevel!==2&&(Ue.updateLevel=1,Xt()))},bt,((Q=It.parsedCommandLine)==null?void 0:Q.watchOptions)||K,Eu.WildcardDirectoryOfReferencedProject)}),pt(Nt,(sr=It.parsedCommandLine)==null?void 0:sr.options,((Z=It.parsedCommandLine)==null?void 0:Z.watchOptions)||K,Eu.ExtendedConfigOfReferencedProject)}}var bye=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutputMissing=3]="OutputMissing",e[e.ErrorReadingFile=4]="ErrorReadingFile",e[e.OutOfDateWithSelf=5]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=7]="OutOfDateBuildInfo",e[e.OutOfDateOptions=8]="OutOfDateOptions",e[e.OutOfDateRoots=9]="OutOfDateRoots",e[e.UpstreamOutOfDate=10]="UpstreamOutOfDate",e[e.UpstreamBlocked=11]="UpstreamBlocked",e[e.ComputingUpstream=12]="ComputingUpstream",e[e.TsVersionOutputOfDate=13]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=14]="UpToDateWithInputFileText",e[e.ContainerOnly=15]="ContainerOnly",e[e.ForceBuild=16]="ForceBuild",e))(bye||{});function HX(e){return wc(e,".json")?e:ii(e,"tsconfig.json")}var gxt=new Date(-864e13),hxt=new Date(864e13);function yxt(e,t,n){let i=e.get(t),s;return i||(s=n(),e.set(t,s)),i||s}function Eye(e,t){return yxt(e,t,()=>new Map)}function s8(e){return e.now?e.now():new Date}function ik(e){return!!e&&!!e.buildOrder}function o8(e){return ik(e)?e.buildOrder:e}function gU(e,t){return n=>{let i=t?`[${AE(i8(e),"\x1B[90m")}] `:`${i8(e)} - `;i+=`${Qg(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function r8e(e,t,n,i){let s=qX(e,t);return s.getModifiedTime=e.getModifiedTime?a=>e.getModifiedTime(a):Vb,s.setModifiedTime=e.setModifiedTime?(a,u)=>e.setModifiedTime(a,u):aa,s.deleteFile=e.deleteFile?a=>e.deleteFile(a):aa,s.reportDiagnostic=n||nk(e),s.reportSolutionBuilderStatus=i||gU(e),s.now=so(e,e.now),s}function xye(e=uu,t,n,i,s){let a=r8e(e,t,n,i);return a.reportErrorSummary=s,a}function Cye(e=uu,t,n,i,s){let a=r8e(e,t,n,i),u=UX(e,s);return JW(a,u),a}function vxt(e){let t={};return cB.forEach(n=>{Ha(e,n.name)&&(t[n.name]=e[n.name])}),t}function Aye(e,t,n){return C8e(!1,e,t,n)}function kye(e,t,n,i){return C8e(!0,e,t,n,i)}function Sxt(e,t,n,i,s){let a=t,u=t,m=vxt(i),d=JX(a,()=>L.projectCompilerOptions);pU(d),d.getParsedCommandLine=F=>WN(L,F,Wh(L,F)),d.resolveModuleNameLiterals=so(a,a.resolveModuleNameLiterals),d.resolveTypeReferenceDirectiveReferences=so(a,a.resolveTypeReferenceDirectiveReferences),d.resolveLibrary=so(a,a.resolveLibrary),d.resolveModuleNames=so(a,a.resolveModuleNames),d.resolveTypeReferenceDirectives=so(a,a.resolveTypeReferenceDirectives),d.getModuleResolutionCache=so(a,a.getModuleResolutionCache);let S,E;!d.resolveModuleNameLiterals&&!d.resolveModuleNames&&(S=ON(d.getCurrentDirectory(),d.getCanonicalFileName),d.resolveModuleNameLiterals=(F,J,$,q,ee)=>e8(F,J,$,q,ee,a,S,fX),d.getModuleResolutionCache=()=>S),!d.resolveTypeReferenceDirectiveReferences&&!d.resolveTypeReferenceDirectives&&(E=CB(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,S?.getPackageJsonInfoCache(),S?.optionsToRedirectsKey),d.resolveTypeReferenceDirectiveReferences=(F,J,$,q,ee)=>e8(F,J,$,q,ee,a,E,ZB));let x;d.resolveLibrary||(x=ON(d.getCurrentDirectory(),d.getCanonicalFileName,void 0,S?.getPackageJsonInfoCache()),d.resolveLibrary=(F,J,$)=>AB(F,J,$,a,x)),d.getBuildInfo=(F,J)=>g8e(L,F,Wh(L,J),void 0);let{watchFile:D,watchDirectory:I,writeLog:R}=VX(u,i),L={host:a,hostWithWatch:u,parseConfigFileHost:iU(a),write:so(a,a.trace),options:i,baseCompilerOptions:m,rootNames:n,baseWatchOptions:s,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:d,moduleResolutionCache:S,typeReferenceDirectiveResolutionCache:E,libraryResolutionCache:x,buildOrder:void 0,readFileWithCache:F=>a.readFile(F),projectCompilerOptions:m,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:D,watchDirectory:I,writeLog:R};return L}function wm(e,t){return rc(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Wh(e,t){let{resolvedConfigFilePaths:n}=e,i=n.get(t);if(i!==void 0)return i;let s=wm(e,t);return n.set(t,s),s}function n8e(e){return!!e.options}function Txt(e,t){let n=e.configFileCache.get(t);return n&&n8e(n)?n:void 0}function WN(e,t,n){let{configFileCache:i}=e,s=i.get(n);if(s)return n8e(s)?s:void 0;jc("SolutionBuilder::beforeConfigFileParsing");let a,{parseConfigFileHost:u,baseCompilerOptions:m,baseWatchOptions:d,extendedConfigCache:S,host:E}=e,x;return E.getParsedCommandLine?(x=E.getParsedCommandLine(t),x||(a=Pc(v.File_0_not_found,t))):(u.onUnRecoverableConfigFileDiagnostic=D=>a=D,x=wM(t,m,u,S,d),u.onUnRecoverableConfigFileDiagnostic=aa),i.set(n,x||a),jc("SolutionBuilder::afterConfigFileParsing"),Sd("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),x}function a8(e,t){return HX(QS(e.compilerHost.getCurrentDirectory(),t))}function i8e(e,t){let n=new Map,i=new Map,s=[],a,u;for(let d of t)m(d);return u?{buildOrder:a||ve,circularDiagnostics:u}:a||ve;function m(d,S){let E=Wh(e,d);if(i.has(E))return;if(n.has(E)){S||(u||(u=[])).push(Pc(v.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r
`)));return}n.set(E,!0),s.push(d);let x=WN(e,d,E);if(x&&x.projectReferences)for(let D of x.projectReferences){let I=a8(e,D.path);m(I,S||D.circular)}s.pop(),i.set(E,!0),(a||(a=[])).push(d)}}function hU(e){return e.buildOrder||bxt(e)}function bxt(e){let t=i8e(e,e.rootNames.map(s=>a8(e,s)));e.resolvedConfigFilePaths.clear();let n=new Set(o8(t).map(s=>Wh(e,s))),i={onDeleteValue:aa};return Ny(e.configFileCache,n,i),Ny(e.projectStatus,n,i),Ny(e.builderPrograms,n,i),Ny(e.diagnostics,n,i),Ny(e.projectPendingBuild,n,i),Ny(e.projectErrorsReported,n,i),Ny(e.buildInfoCache,n,i),Ny(e.outputTimeStamps,n,i),Ny(e.lastCachedPackageJsonLookups,n,i),e.watch&&(Ny(e.allWatchedConfigFiles,n,{onDeleteValue:Dm}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(a=>{n.has(a)||s.projects.delete(a)}),s.close()}),Ny(e.allWatchedWildcardDirectories,n,{onDeleteValue:s=>s.forEach(Dd)}),Ny(e.allWatchedInputFiles,n,{onDeleteValue:s=>s.forEach(Dm)}),Ny(e.allWatchedPackageJsonFiles,n,{onDeleteValue:s=>s.forEach(Dm)})),e.buildOrder=t}function s8e(e,t,n){let i=t&&a8(e,t),s=hU(e);if(ik(s))return s;if(i){let u=Wh(e,i);if(Va(s,d=>Wh(e,d)===u)===-1)return}let a=i?i8e(e,[i]):s;return M.assert(!ik(a)),M.assert(!n||i!==void 0),M.assert(!n||a[a.length-1]===i),n?a.slice(0,a.length-1):a}function o8e(e){e.cache&&Pye(e);let{compilerHost:t,host:n}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:a,originalFileExists:u,originalDirectoryExists:m,originalCreateDirectory:d,originalWriteFile:S,getSourceFileWithCache:E,readFileWithCache:x}=i6(n,D=>wm(e,D),(...D)=>s.call(t,...D));e.readFileWithCache=x,t.getSourceFile=E,e.cache={originalReadFile:a,originalFileExists:u,originalDirectoryExists:m,originalCreateDirectory:d,originalWriteFile:S,originalReadFileWithCache:i,originalGetSourceFile:s}}function Pye(e){if(!e.cache)return;let{cache:t,host:n,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:a,typeReferenceDirectiveResolutionCache:u,libraryResolutionCache:m}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,s.clear(),a?.clear(),u?.clear(),m?.clear(),e.cache=void 0}function a8e(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function c8e({projectPendingBuild:e},t,n){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(Wh(e,i),0)),t&&t.throwIfCancellationRequested()}var Nye=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(Nye||{});function u8e(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function Ext(e,t,n,i,s){let a=!0;return{kind:1,project:t,projectPath:n,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{y8e(e,i,n),a=!1},done:()=>(a&&y8e(e,i,n),jc("SolutionBuilder::Timestamps only updates"),u8e(e,n))}}function xxt(e,t,n,i,s,a){let u=0,m,d;return{kind:0,project:t,projectPath:n,buildOrder:a,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>E(ec),getProgram:()=>E(ee=>ee.getProgramOrUndefined()),getSourceFile:ee=>E(W=>W.getSourceFile(ee)),getSourceFiles:()=>x(ee=>ee.getSourceFiles()),getOptionsDiagnostics:ee=>x(W=>W.getOptionsDiagnostics(ee)),getGlobalDiagnostics:ee=>x(W=>W.getGlobalDiagnostics(ee)),getConfigFileParsingDiagnostics:()=>x(ee=>ee.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(ee,W)=>x(pe=>pe.getSyntacticDiagnostics(ee,W)),getAllDependencies:ee=>x(W=>W.getAllDependencies(ee)),getSemanticDiagnostics:(ee,W)=>x(pe=>pe.getSemanticDiagnostics(ee,W)),getSemanticDiagnosticsOfNextAffectedFile:(ee,W)=>E(pe=>pe.getSemanticDiagnosticsOfNextAffectedFile&&pe.getSemanticDiagnosticsOfNextAffectedFile(ee,W)),emit:(ee,W,pe,K,re)=>{if(ee||K)return E(ue=>{var ce,ne;return ue.emit(ee,W,pe,K,re||((ne=(ce=e.host).getCustomTransformers)==null?void 0:ne.call(ce,t)))});if(q(2,pe),u===4)return J(W,pe);if(u===3)return F(W,pe,re)},done:S};function S(ee,W,pe){return q(6,ee,W,pe),jc("SolutionBuilder::Projects built"),u8e(e,n)}function E(ee){return q(0),m&&ee(m)}function x(ee){return E(ee)||ve}function D(){var ee,W,pe;if(M.assert(m===void 0),e.options.dry){wp(e,v.A_non_dry_build_would_build_project_0,t),d=1,u=5;return}if(e.options.verbose&&wp(e,v.Building_project_0,t),s.fileNames.length===0){l6(e,n,kE(s)),d=0,u=5;return}let{host:K,compilerHost:re}=e;if(e.projectCompilerOptions=s.options,(ee=e.moduleResolutionCache)==null||ee.update(s.options),(W=e.typeReferenceDirectiveResolutionCache)==null||W.update(s.options),m=K.createProgram(s.fileNames,s.options,re,Cxt(e,n,s),kE(s),s.projectReferences),e.watch){let ue=(pe=e.moduleResolutionCache)==null?void 0:pe.getPackageJsonInfoCache().getInternalMap();e.lastCachedPackageJsonLookups.set(n,ue&&new Set(Os(ue.values(),ce=>e.host.realpath&&(xB(ce)||ce.directoryExists)?e.host.realpath(ii(ce.packageDirectory,"package.json")):ii(ce.packageDirectory,"package.json")))),e.builderPrograms.set(n,m)}u++}function I(ee,W,pe){ee.length?{buildResult:d,step:u}=wye(e,n,m,s,ee,W,pe):u++}function R(ee){M.assertIsDefined(m),I([...m.getConfigFileParsingDiagnostics(),...m.getOptionsDiagnostics(ee),...m.getGlobalDiagnostics(ee),...m.getSyntacticDiagnostics(void 0,ee)],8,"Syntactic")}function L(ee){I(M.checkDefined(m).getSemanticDiagnostics(void 0,ee),16,"Semantic")}function F(ee,W,pe){var K,re,ue;M.assertIsDefined(m),M.assert(u===3);let ce=m.saveEmitState(),ne,le=Be=>(ne||(ne=[])).push(Be),me=[],{emitResult:de}=_U(m,le,void 0,void 0,(Be,lt,ze,tt,we,ft)=>me.push({name:Be,text:lt,writeByteOrderMark:ze,data:ft}),W,!1,pe||((re=(K=e.host).getCustomTransformers)==null?void 0:re.call(K,t)));if(ne)return m.restoreEmitState(ce),{buildResult:d,step:u}=wye(e,n,m,s,ne,32,"Declaration file"),{emitSkipped:!0,diagnostics:de.diagnostics};let{host:Ae,compilerHost:xe}=e,te=(ue=m.hasChangedEmitSignature)!=null&&ue.call(m)?0:2,he=qw(),Te=new Map,Ve=m.getCompilerOptions(),Pe=tO(Ve),ke,De;return me.forEach(({name:Be,text:lt,writeByteOrderMark:ze,data:tt})=>{let we=wm(e,Be);Te.set(wm(e,Be),Be),tt?.buildInfo&&m8e(e,tt.buildInfo,n,Ve,te);let ft=tt?.differsOnlyInMap?WC(e.host,Be):void 0;VR(ee?{writeFile:ee}:xe,he,Be,lt,ze),tt?.differsOnlyInMap?e.host.setModifiedTime(Be,ft):!Pe&&e.watch&&(ke||(ke=Oye(e,n))).set(we,De||(De=s8(e.host)))}),$(he,Te,me.length?me[0].name:YK(s,!Ae.useCaseSensitiveFileNames()),te),de}function J(ee,W){M.assertIsDefined(m),M.assert(u===4);let pe=m.emitBuildInfo((K,re,ue,ce,ne,le)=>{le?.buildInfo&&m8e(e,le.buildInfo,n,m.getCompilerOptions(),2),ee?ee(K,re,ue,ce,ne,le):e.compilerHost.writeFile(K,re,ue,ce,ne,le)},W);return pe.diagnostics.length&&(vU(e,pe.diagnostics),e.diagnostics.set(n,[...e.diagnostics.get(n),...pe.diagnostics]),d=64&d),pe.emittedFiles&&e.write&&pe.emittedFiles.forEach(K=>p8e(e,s,K)),Iye(e,m),u=5,pe}function $(ee,W,pe,K){let re=ee.getDiagnostics();return re.length?({buildResult:d,step:u}=wye(e,n,m,s,re,64,"Emit"),re):(e.write&&W.forEach(ue=>p8e(e,s,ue)),h8e(e,s,n,v.Updating_unchanged_output_timestamps_of_project_0,W),e.diagnostics.delete(n),e.projectStatus.set(n,{type:1,oldestOutputFileName:pe}),Iye(e,m),u=5,d=K,re)}function q(ee,W,pe,K){for(;u<=ee&&u<6;){let re=u;switch(u){case 0:D();break;case 1:R(W);break;case 2:L(W);break;case 3:F(pe,W,K);break;case 4:J(pe,W);break;case 5:Nxt(e,t,n,i,s,a,M.checkDefined(d)),u++;break;case 6:default:}M.assert(u>re)}}}function _8e(e,t,n){if(!e.projectPendingBuild.size||ik(t))return;let{options:i,projectPendingBuild:s}=e;for(let a=0;a{let I=M.checkDefined(e.filesWatched.get(m));M.assert($X(I)),I.modifiedTime=D,I.callbacks.forEach(R=>R(E,x,D))},i,s,a,u);e.filesWatched.set(m,{callbacks:[n],watcher:S,modifiedTime:d})}return{close:()=>{let S=M.checkDefined(e.filesWatched.get(m));M.assert($X(S)),S.callbacks.length===1?(e.filesWatched.delete(m),Dd(S)):qC(S.callbacks,n)}}}function Oye(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function m8e(e,t,n,i,s){let a=Bv(i),u=Rye(e,a,n),m=s8(e.host);u?(u.buildInfo=t,u.modifiedTime=m,s&2||(u.latestChangedDtsTime=m)):e.buildInfoCache.set(n,{path:wm(e,a),buildInfo:t,modifiedTime:m,latestChangedDtsTime:s&2?void 0:m})}function Rye(e,t,n){let i=wm(e,t),s=e.buildInfoCache.get(n);return s?.path===i?s:void 0}function g8e(e,t,n,i){let s=wm(e,t),a=e.buildInfoCache.get(n);if(a!==void 0&&a.path===s)return a.buildInfo||void 0;let u=e.readFileWithCache(t),m=u?QK(t,u):void 0;return e.buildInfoCache.set(n,{path:s,buildInfo:m||!1,modifiedTime:i||sp}),m}function Mye(e,t,n,i){let s=d8e(e,t);if(nJ&&(F=ce,J=ne),R&&q.add(le)}if(R){L||(L=xX(R,E,S));let ce=Iu(L.roots,(ne,le)=>q.has(le)?void 0:le);if(ce)return{type:9,buildInfoFile:E,inputFile:ce}}if(!E){let ce=GB(t,!S.useCaseSensitiveFileNames()),ne=Oye(e,n);for(let le of ce){let me=wm(e,le),de=ne?.get(me);if(de||(de=WC(e.host,le),ne?.set(me,de)),de===sp)return{type:3,missingOutputFileName:le};if(deMye(e,ce,D,x));if(K)return K;let re=e.lastCachedPackageJsonLookups.get(n),ue=re&&m0(re,ce=>Mye(e,ce,D,x));return ue||{type:W?2:$?14:1,newestInputFileTime:J,newestInputFileName:F,oldestOutputFileName:x}}function kxt(e,t,n){return e.buildInfoCache.get(n).path===t.path}function Lye(e,t,n){if(t===void 0)return{type:0,reason:"File deleted mid-build"};let i=e.projectStatus.get(n);if(i!==void 0)return i;jc("SolutionBuilder::beforeUpToDateCheck");let s=Axt(e,t,n);return jc("SolutionBuilder::afterUpToDateCheck"),Sd("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,s),s}function h8e(e,t,n,i,s){if(t.options.noEmit)return;let a,u=Bv(t.options);if(u){s?.has(wm(e,u))||(e.options.verbose&&wp(e,i,t.options.configFilePath),e.host.setModifiedTime(u,a=s8(e.host)),Rye(e,u,n).modifiedTime=a),e.outputTimeStamps.delete(n);return}let{host:m}=e,d=GB(t,!m.useCaseSensitiveFileNames()),S=Oye(e,n),E=S?new Set:void 0;if(!s||d.length!==s.size){let x=!!e.options.verbose;for(let D of d){let I=wm(e,D);s?.has(I)||(x&&(x=!1,wp(e,i,t.options.configFilePath)),m.setModifiedTime(D,a||(a=s8(e.host))),S&&(S.set(I,a),E.add(I)))}}S?.forEach((x,D)=>{!s?.has(D)&&!E.has(D)&&S.delete(D)})}function Pxt(e,t,n){if(!t.composite)return;let i=M.checkDefined(e.buildInfoCache.get(n));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let s=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(Cs(i.buildInfo.program.latestChangedDtsFile,yi(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function y8e(e,t,n){if(e.options.dry)return wp(e,v.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);h8e(e,t,n,v.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:YK(t,!e.host.useCaseSensitiveFileNames())})}function Nxt(e,t,n,i,s,a,u){if(!(u&124)&&s.options.composite)for(let m=i+1;me.diagnostics.has(Wh(e,S)))?d?2:1:0}function S8e(e,t,n){jc("SolutionBuilder::beforeClean");let i=Ixt(e,t,n);return jc("SolutionBuilder::afterClean"),Sd("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function Ixt(e,t,n){let i=s8e(e,t,n);if(!i)return 3;if(ik(i))return vU(e,i.circularDiagnostics),4;let{options:s,host:a}=e,u=s.dry?[]:void 0;for(let m of i){let d=Wh(e,m),S=WN(e,m,d);if(S===void 0){A8e(e,d);continue}let E=GB(S,!a.useCaseSensitiveFileNames());if(!E.length)continue;let x=new Set(S.fileNames.map(D=>wm(e,D)));for(let D of E)x.has(wm(e,D))||a.fileExists(D)&&(u?u.push(D):(a.deleteFile(D),Fye(e,d,0)))}return u&&wp(e,v.A_non_dry_build_would_delete_the_following_files_Colon_0,u.map(m=>`\r
 * ${m}`).join("")),0}function Fye(e,t,n){e.host.getParsedCommandLine&&n===1&&(n=2),n===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,a8e(e,t),c8e(e,t,n),o8e(e)}function yU(e,t,n){e.reportFileChangeDetected=!0,Fye(e,t,n),T8e(e,250,!0)}function T8e(e,t,n){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(wxt,t,"timerToBuildInvalidatedProject",e,n))}function wxt(e,t,n){jc("SolutionBuilder::beforeBuild");let i=Oxt(t,n);jc("SolutionBuilder::afterBuild"),Sd("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&k8e(t,i)}function Oxt(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Uye(e,v.File_change_detected_Starting_incremental_compilation));let n=0,i=hU(e),s=Dye(e,i,!1);if(s)for(s.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let a=_8e(e,i,!1);if(!a)break;if(a.kind!==1&&(t||n===5)){T8e(e,100,!1);return}f8e(e,a,i).done(),a.kind!==1&&n++}return Pye(e),i}function b8e(e,t,n,i){!e.watch||e.allWatchedConfigFiles.has(n)||e.allWatchedConfigFiles.set(n,YX(e,t,()=>yU(e,n,2),2e3,i?.watchOptions,Eu.ConfigFile,t))}function E8e(e,t,n){KB(t,n?.options,e.allWatchedExtendedConfigFiles,(i,s)=>YX(e,i,()=>{var a;return(a=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:a.projects.forEach(u=>yU(e,u,2))},2e3,n?.watchOptions,Eu.ExtendedConfigFile),i=>wm(e,i))}function x8e(e,t,n,i){e.watch&&KM(Eye(e.allWatchedWildcardDirectories,n),i.wildcardDirectories,(s,a)=>e.watchDirectory(s,u=>{var m;XM({watchedDirPath:wm(e,s),fileOrDirectory:u,fileOrDirectoryPath:wm(e,u),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(n)||((m=Txt(e,n))==null?void 0:m.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:d=>e.writeLog(d),toPath:d=>wm(e,d)})||yU(e,n,1)},a,i?.watchOptions,Eu.WildcardDirectory,t))}function jye(e,t,n,i){e.watch&&Zw(Eye(e.allWatchedInputFiles,n),new Set(i.fileNames),{createNewValue:s=>YX(e,s,()=>yU(e,n,0),250,i?.watchOptions,Eu.SourceFile,t),onDeleteValue:Dm})}function Bye(e,t,n,i){!e.watch||!e.lastCachedPackageJsonLookups||Zw(Eye(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:s=>YX(e,s,()=>yU(e,n,0),2e3,i?.watchOptions,Eu.PackageJson,t),onDeleteValue:Dm})}function Rxt(e,t){if(e.watchAllProjectsPending){jc("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let n of o8(t)){let i=Wh(e,n),s=WN(e,n,i);b8e(e,n,i,s),E8e(e,i,s),s&&(x8e(e,n,i,s),jye(e,n,i,s),Bye(e,n,i,s))}jc("SolutionBuilder::afterWatcherCreation"),Sd("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function Mxt(e){qf(e.allWatchedConfigFiles,Dm),qf(e.allWatchedExtendedConfigFiles,Dd),qf(e.allWatchedWildcardDirectories,t=>qf(t,Dd)),qf(e.allWatchedInputFiles,t=>qf(t,Dm)),qf(e.allWatchedPackageJsonFiles,t=>qf(t,Dm))}function C8e(e,t,n,i,s){let a=Sxt(e,t,n,i,s);return{build:(u,m,d,S)=>v8e(a,u,m,d,S),clean:u=>S8e(a,u),buildReferences:(u,m,d,S)=>v8e(a,u,m,d,S,!0),cleanReferences:u=>S8e(a,u,!0),getNextInvalidatedProject:u=>(l8e(a,u),Dye(a,hU(a),!1)),getBuildOrder:()=>hU(a),getUpToDateStatusOfProject:u=>{let m=a8(a,u),d=Wh(a,m);return Lye(a,WN(a,m,d),d)},invalidateProject:(u,m)=>Fye(a,u,m||0),close:()=>Mxt(a)}}function A_(e,t){return nw(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function wp(e,t,...n){e.host.reportSolutionBuilderStatus(Pc(t,...n))}function Uye(e,t,...n){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,Pc(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function vU({host:e},t){t.forEach(n=>e.reportDiagnostic(n))}function l6(e,t,n){vU(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function A8e(e,t){l6(e,t,[e.configFileCache.get(t)])}function k8e(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,s=0,a=[];ik(t)?(P8e(e,t.buildOrder),vU(e,t.circularDiagnostics),n&&(s+=lU(t.circularDiagnostics)),n&&(a=[...a,...uU(t.circularDiagnostics)])):(t.forEach(u=>{let m=Wh(e,u);e.projectErrorsReported.has(m)||vU(e,i.get(m)||ve)}),n&&i.forEach(u=>s+=lU(u)),n&&i.forEach(u=>[...a,...uU(u)])),e.watch?Uye(e,IX(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,a)}function P8e(e,t){e.options.verbose&&wp(e,v.Projects_in_this_build_Colon_0,t.map(n=>`\r
    * `+A_(e,n)).join(""))}function Lxt(e,t,n){switch(n.type){case 5:return wp(e,v.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,A_(e,t),A_(e,n.outOfDateOutputFileName),A_(e,n.newerInputFileName));case 6:return wp(e,v.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,A_(e,t),A_(e,n.outOfDateOutputFileName),A_(e,n.newerProjectName));case 3:return wp(e,v.Project_0_is_out_of_date_because_output_file_1_does_not_exist,A_(e,t),A_(e,n.missingOutputFileName));case 4:return wp(e,v.Project_0_is_out_of_date_because_there_was_error_reading_file_1,A_(e,t),A_(e,n.fileName));case 7:return wp(e,v.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,A_(e,t),A_(e,n.buildInfoFile));case 8:return wp(e,v.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,A_(e,t),A_(e,n.buildInfoFile));case 9:return wp(e,v.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,A_(e,t),A_(e,n.buildInfoFile),A_(e,n.inputFile));case 1:if(n.newestInputFileTime!==void 0)return wp(e,v.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,A_(e,t),A_(e,n.newestInputFileName||""),A_(e,n.oldestOutputFileName||""));break;case 2:return wp(e,v.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,A_(e,t));case 14:return wp(e,v.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,A_(e,t));case 10:return wp(e,v.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,A_(e,t),A_(e,n.upstreamProjectName));case 11:return wp(e,n.upstreamProjectBlocked?v.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:v.Project_0_can_t_be_built_because_its_dependency_1_has_errors,A_(e,t),A_(e,n.upstreamProjectName));case 0:return wp(e,v.Failed_to_parse_file_0_Colon_1,A_(e,t),n.reason);case 13:return wp(e,v.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,A_(e,t),n.version,se);case 16:return wp(e,v.Project_0_is_being_forcibly_rebuilt,A_(e,t));case 15:case 12:break;default:}}function KX(e,t,n){e.options.verbose&&Lxt(e,t,n)}var Vye=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(Vye||{});function Fxt(e){let t=jxt();return Et(e.getSourceFiles(),n=>{let i=Bxt(e,n),s=vy(n).length;t.set(i,t.get(i)+s)}),t}function jxt(){let e=new Map;return e.set("Library",0),e.set("Definitions",0),e.set("TypeScript",0),e.set("JavaScript",0),e.set("JSON",0),e.set("Other",0),e}function Bxt(e,t){if(e.isSourceFileDefaultLibrary(t))return"Library";if(t.isDeclarationFile)return"Definitions";let n=t.path;return Il(n,w$)?"TypeScript":Il(n,fN)?"JavaScript":wc(n,".json")?"JSON":"Other"}function XX(e,t,n){return SU(e,n)?nk(e,!0):t}function N8e(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function SU(e,t){return!t||typeof t.pretty>"u"?N8e(e):t.pretty}function D8e(e){return e.options.all?mo(og,(t,n)=>v3(t.name,n.name)):ti(og.slice(),t=>!!t.showInSimplifiedHelpView)}function QX(e){e.write(wf(v.Version_0,se)+e.newLine)}function ZX(e){if(!N8e(e))return{bold:E=>E,blue:E=>E,blueBackground:E=>E,brightWhite:E=>E};function n(E){return`\x1B[1m${E}\x1B[22m`}let i=e.getEnvironmentVariable("OS")&&e.getEnvironmentVariable("OS").toLowerCase().includes("windows"),s=e.getEnvironmentVariable("WT_SESSION"),a=e.getEnvironmentVariable("TERM_PROGRAM")&&e.getEnvironmentVariable("TERM_PROGRAM")==="vscode";function u(E){return i&&!s&&!a?S(E):`\x1B[94m${E}\x1B[39m`}let m=e.getEnvironmentVariable("COLORTERM")==="truecolor"||e.getEnvironmentVariable("TERM")==="xterm-256color";function d(E){return m?`\x1B[48;5;68m${E}\x1B[39;49m`:`\x1B[44m${E}\x1B[39;49m`}function S(E){return`\x1B[97m${E}\x1B[39m`}return{bold:n,blue:u,brightWhite:S,blueBackground:d}}function I8e(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function Uxt(e,t,n,i){var s;let a=[],u=ZX(e),m=I8e(t),d=R(t),S=typeof t.defaultValueDescription=="object"?wf(t.defaultValueDescription):x(t.defaultValueDescription,t.type==="list"||t.type==="listOrElement"?t.element.type:t.type),E=((s=e.getWidthOfTerminal)==null?void 0:s.call(e))??0;if(E>=80){let L="";t.description&&(L=wf(t.description)),a.push(...I(m,L,n,i,E,!0),e.newLine),D(d,t)&&(d&&a.push(...I(d.valueType,d.possibleValues,n,i,E,!1),e.newLine),S&&a.push(...I(wf(v.default_Colon),S,n,i,E,!1),e.newLine)),a.push(e.newLine)}else{if(a.push(u.blue(m),e.newLine),t.description){let L=wf(t.description);a.push(L)}if(a.push(e.newLine),D(d,t)){if(d&&a.push(`${d.valueType} ${d.possibleValues}`),S){d&&a.push(e.newLine);let L=wf(v.default_Colon);a.push(`${L} ${S}`)}a.push(e.newLine)}a.push(e.newLine)}return a;function x(L,F){return L!==void 0&&typeof F=="object"?Os(F.entries()).filter(([,J])=>J===L).map(([J])=>J).join("/"):String(L)}function D(L,F){let J=["string"],$=[void 0,"false","n/a"],q=F.defaultValueDescription;return!(F.category===v.Command_line_Options||xs(J,L?.possibleValues)&&xs($,q))}function I(L,F,J,$,q,ee){let W=[],pe=!0,K=F,re=q-$;for(;K.length>0;){let ue="";pe?(ue=L.padStart(J),ue=ue.padEnd($),ue=ee?u.blue(ue):ue):ue="".padStart($);let ce=K.substr(0,re);K=K.slice(re),W.push(`${ue}${ce}`),pe=!1}return W}function R(L){if(L.type==="object")return;return{valueType:F(L),possibleValues:J(L)};function F($){switch(M.assert($.type!=="listOrElement"),$.type){case"string":case"number":case"boolean":return wf(v.type_Colon);case"list":return wf(v.one_or_more_Colon);default:return wf(v.one_of_Colon)}}function J($){let q;switch($.type){case"string":case"number":case"boolean":q=$.type;break;case"list":case"listOrElement":q=J($.element);break;case"object":q="";break;default:let ee={};return $.type.forEach((W,pe)=>{var K;(K=$.deprecatedKeys)!=null&&K.has(pe)||(ee[W]||(ee[W]=[])).push(pe)}),Object.entries(ee).map(([,W])=>W.join("/")).join(", ")}return q}}}function w8e(e,t){let n=0;for(let u of t){let m=I8e(u).length;n=n>m?n:m}let i=n+2,s=i+2,a=[];for(let u of t){let m=Uxt(e,u,i,s);a=[...a,...m]}return a[a.length-2]!==e.newLine&&a.push(e.newLine),a}function c8(e,t,n,i,s,a){let u=[];if(u.push(ZX(e).bold(t)+e.newLine+e.newLine),s&&u.push(s+e.newLine+e.newLine),!i)return u=[...u,...w8e(e,n)],a&&u.push(a+e.newLine+e.newLine),u;let m=new Map;for(let d of n){if(!d.category)continue;let S=wf(d.category),E=m.get(S)??[];E.push(d),m.set(S,E)}return m.forEach((d,S)=>{u.push(`### ${S}${e.newLine}${e.newLine}`),u=[...u,...w8e(e,d)]}),a&&u.push(a+e.newLine+e.newLine),u}function Vxt(e,t){let n=ZX(e),i=[...eQ(e,`${wf(v.tsc_Colon_The_TypeScript_Compiler)} - ${wf(v.Version_0,se)}`)];i.push(n.bold(wf(v.COMMON_COMMANDS))+e.newLine+e.newLine),u("tsc",v.Compiles_the_current_project_tsconfig_json_in_the_working_directory),u("tsc app.ts util.ts",v.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),u("tsc -b",v.Build_a_composite_project_in_the_working_directory),u("tsc --init",v.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),u("tsc -p ./path/to/tsconfig.json",v.Compiles_the_TypeScript_project_located_at_the_specified_path),u("tsc --help --all",v.An_expanded_version_of_this_information_showing_all_possible_compiler_options),u(["tsc --noEmit","tsc --target esnext"],v.Compiles_the_current_project_with_additional_settings);let s=t.filter(m=>m.isCommandLineOnly||m.category===v.Command_line_Options),a=t.filter(m=>!xs(s,m));i=[...i,...c8(e,wf(v.COMMAND_LINE_FLAGS),s,!1,void 0,void 0),...c8(e,wf(v.COMMON_COMPILER_OPTIONS),a,!1,void 0,SA(v.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))];for(let m of i)e.write(m);function u(m,d){let S=typeof m=="string"?[m]:m;for(let E of S)i.push("  "+n.blue(E)+e.newLine);i.push("  "+wf(d)+e.newLine+e.newLine)}}function Jxt(e,t,n,i){let s=[...eQ(e,`${wf(v.tsc_Colon_The_TypeScript_Compiler)} - ${wf(v.Version_0,se)}`)];s=[...s,...c8(e,wf(v.ALL_COMPILER_OPTIONS),t,!0,void 0,SA(v.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],s=[...s,...c8(e,wf(v.WATCH_OPTIONS),i,!1,wf(v.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],s=[...s,...c8(e,wf(v.BUILD_OPTIONS),n,!1,SA(v.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let a of s)e.write(a)}function O8e(e,t){let n=[...eQ(e,`${wf(v.tsc_Colon_The_TypeScript_Compiler)} - ${wf(v.Version_0,se)}`)];n=[...n,...c8(e,wf(v.BUILD_OPTIONS),t,!1,SA(v.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0,"https://aka.ms/tsc-composite-builds"))];for(let i of n)e.write(i)}function eQ(e,t){var n;let i=ZX(e),s=[],a=((n=e.getWidthOfTerminal)==null?void 0:n.call(e))??0,u=5,m=i.blueBackground("".padStart(u)),d=i.blueBackground(i.brightWhite("TS ".padStart(u)));if(a>=t.length+u){let E=(a>120?120:a)-u;s.push(t.padEnd(E)+m+e.newLine),s.push("".padStart(E)+d+e.newLine)}else s.push(t+e.newLine),s.push(e.newLine);return s}function R8e(e,t){t.options.all?Jxt(e,D8e(t),GY,KA):Vxt(e,D8e(t))}function M8e(e,t,n){let i=nk(e);if(n.options.build)return i(Pc(v.Option_build_must_be_the_first_command_line_argument)),e.exit(1);let s;if(n.options.locale&&LG(n.options.locale,e,n.errors),n.errors.length>0)return n.errors.forEach(i),e.exit(1);if(n.options.init)return Gxt(e,i,n.options,n.fileNames),e.exit(0);if(n.options.version)return QX(e),e.exit(0);if(n.options.help||n.options.all)return R8e(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(Pc(v.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(n.fileNames.length!==0)return i(Pc(v.Option_project_cannot_be_mixed_with_source_files_on_a_command_line)),e.exit(1);let m=eo(n.options.project);if(!m||e.directoryExists(m)){if(s=ii(m,"tsconfig.json"),!e.fileExists(s))return i(Pc(v.Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0,n.options.project)),e.exit(1)}else if(s=m,!e.fileExists(s))return i(Pc(v.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else if(n.fileNames.length===0){let m=eo(e.getCurrentDirectory());s=rX(m,d=>e.fileExists(d))}if(n.fileNames.length===0&&!s)return n.options.showConfig?i(Pc(v.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,eo(e.getCurrentDirectory()))):(QX(e),R8e(e,n)),e.exit(1);let a=e.getCurrentDirectory(),u=gB(n.options,m=>Cs(m,a));if(s){let m=new Map,d=yye(s,u,m,n.watchOptions,e,i);if(u.showConfig)return d.errors.length!==0?(i=XX(e,i,d.options),d.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(eK(d,s,e),null,4)+e.newLine),e.exit(0));if(i=XX(e,i,d.options),g$(d.options))return qye(e,i)?void 0:qxt(e,t,i,d,u,n.watchOptions,m);tO(d.options)?B8e(e,t,i,d):j8e(e,t,i,d)}else{if(u.showConfig)return e.write(JSON.stringify(eK(n,ii(a,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=XX(e,i,u),g$(u))return qye(e,i)?void 0:zxt(e,t,i,n.fileNames,u,n.watchOptions);tO(u)?B8e(e,t,i,{...n,options:u}):j8e(e,t,i,{...n,options:u})}}function Jye(e){if(e.length>0&&e[0].charCodeAt(0)===45){let t=e[0].slice(e[0].charCodeAt(1)===45?2:1).toLowerCase();return t==="build"||t==="b"}return!1}function L8e(e,t,n){if(Jye(n)){let{buildOptions:s,watchOptions:a,projects:u,errors:m}=Hme(n.slice(1));if(s.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(s.generateCpuProfile,()=>F8e(e,t,s,a,u,m));else return F8e(e,t,s,a,u,m)}let i=Wme(n,s=>e.readFile(s));if(i.options.generateCpuProfile&&e.enableCPUProfiler)e.enableCPUProfiler(i.options.generateCpuProfile,()=>M8e(e,t,i));else return M8e(e,t,i)}function qye(e,t){return!e.watchFile||!e.watchDirectory?(t(Pc(v.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0):!1}var TU=2;function F8e(e,t,n,i,s,a){let u=XX(e,nk(e),n);if(n.locale&&LG(n.locale,e,a),a.length>0)return a.forEach(u),e.exit(1);if(n.help||s.length===0)return QX(e),O8e(e,IM),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return u(Pc(v.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(qye(e,u))return;let x=Cye(e,void 0,u,gU(e,SU(e,n)),Wye(e,n));x.jsDocParsingMode=TU;let D=q8e(e,n);U8e(e,t,x,D);let I=x.onWatchStatusChange,R=!1;x.onWatchStatusChange=(F,J,$,q)=>{I?.(F,J,$,q),R&&(F.code===v.Found_0_errors_Watching_for_file_changes.code||F.code===v.Found_1_error_Watching_for_file_changes.code)&&Gye(L,D)};let L=kye(x,s,n,i);return L.build(),Gye(L,D),R=!0,L}let m=xye(e,void 0,u,gU(e,SU(e,n)),zye(e,n));m.jsDocParsingMode=TU;let d=q8e(e,n);U8e(e,t,m,d);let S=Aye(m,s,n),E=n.clean?S.clean():S.build();return Gye(S,d),fle(),e.exit(E)}function zye(e,t){return SU(e,t)?(n,i)=>e.write(wX(n,i,e.newLine,e)):void 0}function j8e(e,t,n,i){let{fileNames:s,options:a,projectReferences:u}=i,m=QB(a,void 0,e);m.jsDocParsingMode=TU;let d=m.getCurrentDirectory(),S=__(m.useCaseSensitiveFileNames());i6(m,I=>rc(I,d,S)),Hye(e,a,!1);let E={rootNames:s,options:a,projectReferences:u,host:m,configFileParsingDiagnostics:kE(i)},x=r8(E),D=BX(x,n,I=>e.write(I+e.newLine),zye(e,a));return rQ(e,x,void 0),t(x),e.exit(D)}function B8e(e,t,n,i){let{options:s,fileNames:a,projectReferences:u}=i;Hye(e,s,!1);let m=mU(s,e);m.jsDocParsingMode=TU;let d=Sye({host:m,system:e,rootNames:a,options:s,configFileParsingDiagnostics:kE(i),projectReferences:u,reportDiagnostic:n,reportErrorSummary:zye(e,s),afterProgramEmitAndDiagnostics:S=>{rQ(e,S.getProgram(),void 0),t(S)}});return e.exit(d)}function U8e(e,t,n,i){V8e(e,n,!0),n.afterProgramEmitAndDiagnostics=s=>{rQ(e,s.getProgram(),i),t(s)}}function V8e(e,t,n){let i=t.createProgram;t.createProgram=(s,a,u,m,d,S)=>(M.assert(s!==void 0||a===void 0&&!!m),a!==void 0&&Hye(e,a,n),i(s,a,u,m,d,S))}function J8e(e,t,n){n.jsDocParsingMode=TU,V8e(e,n,!1);let i=n.afterProgramCreate;n.afterProgramCreate=s=>{i(s),rQ(e,s.getProgram(),void 0),t(s)}}function Wye(e,t){return DX(e,SU(e,t))}function qxt(e,t,n,i,s,a,u){let m=zX({configFileName:i.options.configFilePath,optionsToExtend:s,watchOptionsToExtend:a,system:e,reportDiagnostic:n,reportWatchStatus:Wye(e,i.options)});return J8e(e,t,m),m.configFileParsingResult=i,m.extendedConfigCache=u,GX(m)}function zxt(e,t,n,i,s,a){let u=WX({rootFiles:i,options:s,watchOptions:a,system:e,reportDiagnostic:n,reportWatchStatus:Wye(e,s)});return J8e(e,t,u),GX(u)}function q8e(e,t){if(e===uu&&t.extendedDiagnostics)return eG(),Wxt()}function Wxt(){let e;return{addAggregateStatistic:t,forEachAggregateStatistics:n,clear:i};function t(s){let a=e?.get(s.name);a?a.type===2?a.value=Math.max(a.value,s.value):a.value+=s.value:(e??(e=new Map)).set(s.name,s)}function n(s){e?.forEach(s)}function i(){e=void 0}}function Gye(e,t){if(!t)return;if(!lle()){uu.write(v.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+`
`);return}let n=[];n.push({name:"Projects in scope",value:o8(e.getBuildOrder()).length,type:1}),i("SolutionBuilder::Projects built"),i("SolutionBuilder::Timestamps only updates"),i("SolutionBuilder::Bundles updated"),t.forEachAggregateStatistics(a=>{a.name=`Aggregate ${a.name}`,n.push(a)}),ZW((a,u)=>{tQ(a)&&n.push({name:`${s(a)} time`,value:u,type:0})}),ule(),eG(),t.clear(),G8e(uu,n);function i(a){let u=yOe(a);u&&n.push({name:s(a),value:u,type:1})}function s(a){return a.replace("SolutionBuilder::","")}}function z8e(e,t){return e===uu&&(t.diagnostics||t.extendedDiagnostics)}function W8e(e,t){return e===uu&&t.generateTrace}function Hye(e,t,n){z8e(e,t)&&eG(e),W8e(e,t)&&_le(n?"build":"project",t.generateTrace,t.configFilePath)}function tQ(e){return fs(e,"SolutionBuilder::")}function rQ(e,t,n){var i;let s=t.getCompilerOptions();W8e(e,s)&&((i=kn)==null||i.stopTracing());let a;if(z8e(e,s)){a=[];let S=e.getMemoryUsage?e.getMemoryUsage():-1;m("Files",t.getSourceFiles().length);let E=Fxt(t);if(s.extendedDiagnostics)for(let[F,J]of E.entries())m("Lines of "+F,J);else m("Lines",Ql(E.values(),(F,J)=>F+J,0));m("Identifiers",t.getIdentifierCount()),m("Symbols",t.getSymbolCount()),m("Types",t.getTypeCount()),m("Instantiations",t.getInstantiationCount()),S>=0&&u({name:"Memory used",value:S,type:2},!0);let x=lle(),D=x?QI("Program"):0,I=x?QI("Bind"):0,R=x?QI("Check"):0,L=x?QI("Emit"):0;if(s.extendedDiagnostics){let F=t.getRelationCacheSizes();m("Assignability cache size",F.assignable),m("Identity cache size",F.identity),m("Subtype cache size",F.subtype),m("Strict subtype cache size",F.strictSubtype),x&&ZW((J,$)=>{tQ(J)||d(`${J} time`,$,!0)})}else x&&(d("I/O read",QI("I/O Read"),!0),d("I/O write",QI("I/O Write"),!0),d("Parse time",D,!0),d("Bind time",I,!0),d("Check time",R,!0),d("Emit time",L,!0));x&&d("Total time",D+I+R+L,!1),G8e(e,a),x?n?(ZW(F=>{tQ(F)||SOe(F)}),vOe(F=>{tQ(F)||TOe(F)})):ule():e.write(v.Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found.message+`
`)}function u(S,E){a.push(S),E&&n?.addAggregateStatistic(S)}function m(S,E){u({name:S,value:E,type:1},!0)}function d(S,E,x){u({name:S,value:E,type:0},x)}}function G8e(e,t){let n=0,i=0;for(let s of t){s.name.length>n&&(n=s.name.length);let a=H8e(s);a.length>i&&(i=a.length)}for(let s of t)e.write(`${s.name}:`.padEnd(n+2)+H8e(s).toString().padStart(i)+e.newLine)}function H8e(e){switch(e.type){case 1:return""+e.value;case 0:return(e.value/1e3).toFixed(2)+"s";case 2:return Math.round(e.value/1e3)+"K";default:M.assertNever(e.type)}}function Gxt(e,t,n,i){let s=e.getCurrentDirectory(),a=eo(ii(s,"tsconfig.json"));if(e.fileExists(a))t(Pc(v.A_tsconfig_json_file_is_already_defined_at_Colon_0,a));else{e.writeFile(a,Qme(n,i,e.newLine));let u=[e.newLine,...eQ(e,"Created a new tsconfig.json with:")];u.push(Xme(n,e.newLine)+e.newLine+e.newLine),u.push("You can learn more at https://aka.ms/tsconfig"+e.newLine);for(let m of u)e.write(m)}}function $ye(e,t){let n=q_(e,"strictNullChecks");return{typeFromExpression:$,serializeTypeOfDeclaration:a,serializeReturnTypeForSignature:u,serializeTypeOfExpression:s};function i(te,he){return te!==void 0&&(!he||te&&de(te))?!0:void 0}function s(te,he,Te,Ve){return $(te,he,!1,Te,Ve)??R(te,he)}function a(te,he){switch(te.kind){case 171:return i(Vl(te));case 169:return x(te,he);case 260:return E(te,he);case 172:return D(te,he);case 208:return I(te,he);case 277:return s(te.expression,he,void 0,!0);case 211:case 212:case 226:return i(Vl(te))||I(te,he);case 303:return $(te.initializer,he)||I(te,he);default:M.assertNever(te,`Node needs to be an inferrable node, found ${M.formatSyntaxKind(te.kind)}`)}}function u(te,he){switch(te.kind){case 177:return S(te,he);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323:return Ae(te,he);default:M.assertNever(te,`Node needs to be an inferrable node, found ${M.formatSyntaxKind(te.kind)}`)}}function m(te){if(te)return te.kind===177?_p(te):te.parameters.length>0?Vl(te.parameters[0]):void 0}function d(te,he){let Te=m(te);return!Te&&te!==he.firstAccessor&&(Te=m(he.firstAccessor)),!Te&&he.secondAccessor&&te!==he.secondAccessor&&(Te=m(he.secondAccessor)),Te}function S(te,he){let Te=t.getAllAccessorDeclarations(te),Ve=d(te,Te);return Ve?i(Ve):Te.getAccessor?Ae(Te.getAccessor,he):!1}function E(te,he){let Te=Vl(te);if(Te)return i(Te);let Ve;return te.initializer&&(t.isExpandoFunctionDeclaration(te)||(Ve=$(te.initializer,he,void 0,void 0,z_e(te)))),Ve??I(te,he)}function x(te,he){let Te=te.parent;if(Te.kind===178)return S(Te,he);let Ve=Vl(te),Pe=t.requiresAddingImplicitUndefined(te),ke;return Ve?ke=i(Ve,Pe):te.initializer&&$e(te.name)&&(ke=$(te.initializer,he,void 0,Pe)),ke??I(te,he)}function D(te,he){let Te=Vl(te);if(Te)return i(Te);let Ve;if(te.initializer){let Pe=sR(te);Ve=$(te.initializer,he,void 0,void 0,Pe)}return Ve??I(te,he)}function I(te,he){return he.tracker.reportInferenceFallback(te),!1}function R(te,he){return he.tracker.reportInferenceFallback(te),!1}function L(te,he){return he.tracker.reportInferenceFallback(te),!1}function F(te,he,Te){return te.kind===177?Ae(te,Te):(Te.tracker.reportInferenceFallback(te),!1)}function J(te,he,Te,Ve){return Xm(he)?$(te,Te,!0,Ve):(Ve&&!de(he)&&Te.tracker.reportInferenceFallback(he),i(he))}function $(te,he,Te=!1,Ve=!1,Pe=!1){switch(te.kind){case 217:return m2(te)?J(te.expression,MO(te),he,Ve):$(te.expression,he,Te,Ve);case 80:if(t.isUndefinedIdentifierExpression(te))return!0;break;case 106:return!0;case 219:case 218:return q(te,he);case 216:case 234:let ke=te;return J(ke.expression,ke.type,he,Ve);case 224:let De=te;if(Cj(De)&&(De.operand.kind===10||De.operand.kind===9))return me();break;case 9:return me();case 228:if(!Te&&!Pe)return!0;break;case 15:case 11:return me();case 10:return me();case 112:case 97:return me();case 209:return W(te,he,Te);case 210:return K(te,he,Te);case 231:return R(te,he)}}function q(te,he){let Te=i(te.type)??Ae(te,he),Ve=ce(te.typeParameters),Pe=te.parameters.every(ke=>ue(ke,he));return Te&&Ve&&Pe}function ee(te,he,Te){if(!Te)return he.tracker.reportInferenceFallback(te),!1;for(let Ve of te.elements)if(Ve.kind===230)return he.tracker.reportInferenceFallback(Ve),!1;return!0}function W(te,he,Te){if(!ee(te,he,Te))return!1;let Ve=!0;for(let Pe of te.elements)M.assert(Pe.kind!==230),Pe.kind!==232&&(Ve=($(Pe,he,Te)??R(Pe,he))&&Ve);return!0}function pe(te,he){let Te=!0;for(let Ve of te.properties){if(Ve.flags&262144){Te=!1;break}if(Ve.kind===304||Ve.kind===305)he.tracker.reportInferenceFallback(Ve),Te=!1;else if(Ve.name.flags&262144){Te=!1;break}else if(Ve.name.kind===81)Te=!1;else if(Ve.name.kind===167){let Pe=Ve.name.expression;!Cj(Pe,!1)&&!t.isDefinitelyReferenceToGlobalSymbolObject(Pe)&&(he.tracker.reportInferenceFallback(Ve.name),Te=!1)}}return Te}function K(te,he,Te){if(!pe(te,he))return!1;let Ve=!0;for(let Pe of te.properties){M.assert(!m_(Pe)&&!Ly(Pe));let ke=Pe.name;switch(Pe.kind){case 174:Ve=!!ne(Pe,ke,he)&&Ve;break;case 303:Ve=!!re(Pe,ke,he,Te)&&Ve;break;case 178:case 177:Ve=!!le(Pe,ke,he)&&Ve;break}}return Ve}function re(te,he,Te,Ve){return $(te.initializer,Te,Ve)??I(te,Te)}function ue(te,he){return x(te,he)}function ce(te){return te?.every(he=>i(he.constraint)&&i(he.default))??!0}function ne(te,he,Te){let Ve=Ae(te,Te),Pe=ce(te.typeParameters),ke=te.parameters.every(De=>ue(De,Te));return Ve&&Pe&&ke}function le(te,he,Te){let Ve=t.getAllAccessorDeclarations(te),Pe=Ve.getAccessor&&m(Ve.getAccessor),ke=Ve.setAccessor&&m(Ve.setAccessor);if(Pe!==void 0&&ke!==void 0){let De=te.parameters.every(Be=>ue(Be,Te));return Tv(te)?De&&i(Pe):De}else if(Ve.firstAccessor===te){let De=Pe??ke;return De?i(De):F(te,Ve,Te)}return!1}function me(){return!0}function de(te){return!n||af(te.kind)||te.kind===201||te.kind===184||te.kind===185||te.kind===188||te.kind===189||te.kind===187||te.kind===203||te.kind===197?!0:te.kind===196?de(te.type):te.kind===192||te.kind===193?te.types.every(de):!1}function Ae(te,he){let Te,Ve=_p(te);return Ve&&(Te=i(Ve)),!Te&&uA(te)&&(Te=xe(te,he)),Te??L(te,he)}function xe(te,he){let Te;if(te&&!Gc(te.body)){if(Rl(te)&3)return;let Ve=te.body;Ve&&Js(Ve)?Cv(Ve,Pe=>{if(!Te)Te=Pe.expression;else return Te=void 0,!0}):Te=Ve}if(Te)return $(Te,he)}}var Zg={};k(Zg,{NameValidationResult:()=>iLe,discoverTypings:()=>Yxt,isTypingUpToDate:()=>Q8e,loadSafeList:()=>Hxt,loadTypesMap:()=>$xt,nodeCoreModuleList:()=>tLe,nodeCoreModules:()=>rLe,nonRelativeModuleNameForTypingCache:()=>nLe,prefixedNodeCoreModuleList:()=>eLe,renderPackageNameValidationFailure:()=>Xxt,validatePackageName:()=>Kxt});var bU="action::set",EU="action::invalidate",xU="action::packageInstalled",nQ="event::typesRegistry",iQ="event::beginInstallTypes",sQ="event::endInstallTypes",Yye="event::initializationFailed",l8="action::watchTypingLocations",oQ;(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(oQ||(oQ={}));function $8e(e){return uu.args.includes(e)}function Y8e(e){let t=uu.args.indexOf(e);return t>=0&&t`node:${e}`),tLe=[...Z8e,...eLe],rLe=new Set(tLe);function nLe(e){return rLe.has(e)?"node":e}function Hxt(e,t){let n=OM(t,i=>e.readFile(i));return new Map(Object.entries(n.config))}function $xt(e,t){var n;let i=OM(t,s=>e.readFile(s));if((n=i.config)!=null&&n.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function Yxt(e,t,n,i,s,a,u,m,d,S){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let E=new Map;n=Yi(n,ee=>{let W=eo(ee);if(wy(W))return W});let x=[];u.include&&J(u.include,"Explicitly included types");let D=u.exclude||[];if(!S.types){let ee=new Set(n.map(yi));ee.add(i),ee.forEach(W=>{$(W,"bower.json","bower_components",x),$(W,"package.json","node_modules",x)})}if(u.disableFilenameBasedTypeAcquisition||q(n),m){let ee=w1(m.map(nLe),Lx,u_);J(ee,"Inferred typings from unresolved imports")}for(let ee of D)E.delete(ee)&&t&&t(`Typing for ${ee} is in exclude list, will be ignored.`);a.forEach((ee,W)=>{let pe=d.get(W);E.get(W)===!1&&pe!==void 0&&Q8e(ee,pe)&&E.set(W,ee.typingLocation)});let I=[],R=[];E.forEach((ee,W)=>{ee?R.push(ee):I.push(W)});let L={cachedTypingPaths:R,newTypingNames:I,filesToWatch:x};return t&&t(`Finished typings discovery:${OT(L)}`),L;function F(ee){E.has(ee)||E.set(ee,!1)}function J(ee,W){t&&t(`${W}: ${JSON.stringify(ee)}`),Et(ee,F)}function $(ee,W,pe,K){let re=ii(ee,W),ue,ce;e.fileExists(re)&&(K.push(re),ue=OM(re,de=>e.readFile(de)).config,ce=To([ue.dependencies,ue.devDependencies,ue.optionalDependencies,ue.peerDependencies],Pg),J(ce,`Typing names in '${re}' dependencies`));let ne=ii(ee,pe);if(K.push(ne),!e.directoryExists(ne))return;let le=[],me=ce?ce.map(de=>ii(ne,de,W)):e.readDirectory(ne,[".json"],void 0,void 0,3).filter(de=>{if(Ul(de)!==W)return!1;let Ae=yu(eo(de)),xe=Ae[Ae.length-3][0]==="@";return xe&&R1(Ae[Ae.length-4])===pe||!xe&&R1(Ae[Ae.length-3])===pe});t&&t(`Searching for typing names in ${ne}; all files: ${JSON.stringify(me)}`);for(let de of me){let Ae=eo(de),te=OM(Ae,Te=>e.readFile(Te)).config;if(!te.name)continue;let he=te.types||te.typings;if(he){let Te=Cs(he,yi(Ae));e.fileExists(Te)?(t&&t(`    Package '${te.name}' provides its own types.`),E.set(te.name,Te)):t&&t(`    Package '${te.name}' provides its own types but they are missing.`)}else le.push(te.name)}J(le,"    Found package names")}function q(ee){let W=Yi(ee,K=>{if(!wy(K))return;let re=lf(R1(Ul(K))),ue=GW(re);return s.get(ue)});W.length&&J(W,"Inferred typings from file names"),Dt(ee,K=>wc(K,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),F("react"))}}var iLe=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(iLe||{}),sLe=214;function Kxt(e){return Kye(e,!0)}function Kye(e,t){if(!e)return 1;if(e.length>sLe)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){let i=Kye(n[1],!1);if(i!==0)return{name:n[1],isScopeName:!0,result:i};let s=Kye(n[2],!1);return s!==0?{name:n[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function Xxt(e,t){return typeof e=="object"?oLe(t,e.result,e.name,e.isScopeName):oLe(t,e,t,!1)}function oLe(e,t,n,i){let s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${n}' cannot be empty`;case 2:return`'${e}':: ${s} name '${n}' should be less than ${sLe} characters`;case 3:return`'${e}':: ${s} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${n}' contains non URI safe characters`;case 0:return M.fail();default:M.assertNever(t)}}var CU;(e=>{class t{constructor(s){this.text=s}getText(s,a){return s===0&&a===this.text.length?this.text:this.text.substring(s,a)}getLength(){return this.text.length}getChangeRange(){}}function n(i){return new t(i)}e.fromString=n})(CU||(CU={}));var Xye=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(Xye||{}),Qye=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(Qye||{}),Zye=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(Zye||{}),am={},e0e=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(e0e||{}),aQ=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(aQ||{}),cQ=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(cQ||{}),t0e=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(t0e||{}),r0e=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(r0e||{}),n0e=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(n0e||{}),lQ=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(lQ||{});function AU(e){return{indentSize:4,tabSize:4,newLineCharacter:e||`
`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var aLe=AU(`
`),kU=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(kU||{}),i0e=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(i0e||{}),s0e=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(s0e||{}),o0e=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(o0e||{}),a0e=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(a0e||{}),c0e=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(c0e||{}),l0e=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(l0e||{}),u0e=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(u0e||{}),_0e=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(_0e||{}),uQ=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(uQ||{}),z_=Ey(99,!0),f0e=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(f0e||{});function PU(e){switch(e.kind){case 260:return vn(e)&&UG(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return U_(e)||D0(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function S2(e){e=EQ(e);let t=e.parent;return e.kind===307?1:pc(t)||E_(t)||A0(t)||pf(t)||ng(t)||nu(t)&&e===t.name?7:NU(e)?Qxt(e):Bh(e)?PU(t):xf(e)&&Dr(e,qp(IO,ZC,ET))?7:r2t(e)?2:Zxt(e)?4:Cc(t)?(M.assert(om(t.parent)),2):Lv(t)?3:1}function Qxt(e){let t=e.kind===166?e:uf(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function NU(e){for(;e.parent.kind===166;)e=e.parent;return iA(e.parent)&&e.parent.moduleReference===e}function Zxt(e){return e2t(e)||t2t(e)}function e2t(e){let t=e,n=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;n=t.right===e}return t.parent.kind===183&&!n}function t2t(e){let t=e,n=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;n=t.name===e}if(!n&&t.parent.kind===233&&t.parent.parent.kind===298){let i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function r2t(e){switch(Hw(e)&&(e=e.parent),e.kind){case 110:return!eg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Mg(e.parent)}return!1}function _Q(e,t=!1,n=!1){return u8(e,to,pQ,t,n)}function _6(e,t=!1,n=!1){return u8(e,gE,pQ,t,n)}function fQ(e,t=!1,n=!1){return u8(e,Ig,pQ,t,n)}function p0e(e,t=!1,n=!1){return u8(e,hE,n2t,t,n)}function d0e(e,t=!1,n=!1){return u8(e,pu,pQ,t,n)}function m0e(e,t=!1,n=!1){return u8(e,p_,i2t,t,n)}function pQ(e){return e.expression}function n2t(e){return e.tag}function i2t(e){return e.tagName}function u8(e,t,n,i,s){let a=i?g0e(e):DU(e);return s&&(a=Ml(a)),!!a&&!!a.parent&&t(a.parent)&&n(a.parent)===a}function DU(e){return GN(e)?e.parent:e}function g0e(e){return GN(e)||hQ(e)?e.parent:e}function IU(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function _8(e,t){return Hn(e.expression)?e.expression.name.text===t:!1}function f8(e){var t;return $e(e)&&((t=ci(e.parent,dw))==null?void 0:t.label)===e}function dQ(e){var t;return $e(e)&&((t=ci(e.parent,rS))==null?void 0:t.label)===e}function mQ(e){return dQ(e)||f8(e)}function gQ(e){var t;return((t=ci(e.parent,BP))==null?void 0:t.tagName)===e}function h0e(e){var t;return((t=ci(e.parent,uf))==null?void 0:t.right)===e}function GN(e){var t;return((t=ci(e.parent,Hn))==null?void 0:t.name)===e}function hQ(e){var t;return((t=ci(e.parent,cc))==null?void 0:t.argumentExpression)===e}function yQ(e){var t;return((t=ci(e.parent,xl))==null?void 0:t.name)===e}function vQ(e){var t;return $e(e)&&((t=ci(e.parent,Us))==null?void 0:t.name)===e}function wU(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Ns(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function y0e(e){return cT(e.parent.parent)&&Dw(e.parent.parent)===e}function T2(e){for(Qd(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function PE(e){switch(e.kind){case 307:return iu(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(jg(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:n}=e;return Us(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return _i(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=ll(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let u=PE(s);return u===""?"const":u;case 3:return ic(s)?"method":"property";case 4:return"property";case 5:return ic(s)?"method":"property";case 6:return"local class";default:return""}case 80:return ng(e.parent)?"alias":"";case 277:let a=PE(e.expression);return a===""?"const":a;default:return""}function t(n){return WP(n)?"const":s9(n)?"let":"var"}}function HN(e){switch(e.kind){case 110:return!0;case 80:return n$(e)&&e.parent.kind===169;default:return!1}}var s2t=/^\/\/\/\s*=n.end}function m8(e,t,n){return e.pos<=t&&e.end>=n}function f6(e,t,n){return RU(e.pos,e.end,t,n)}function OU(e,t,n,i){return RU(e.getStart(t),e.end,n,i)}function RU(e,t,n,i){let s=Math.max(e,n),a=Math.min(t,i);return si.kind===t)}function MU(e){let t=jn(e.parent.getChildren(),n=>CN(n)&&ed(n,e));return M.assert(!t||xs(t.getChildren(),e)),t}function cLe(e){return e.kind===90}function o2t(e){return e.kind===86}function a2t(e){return e.kind===100}function c2t(e){if(Hu(e))return e.name;if(ru(e)){let t=e.modifiers&&jn(e.modifiers,cLe);if(t)return t}if(tu(e)){let t=jn(e.getChildren(),o2t);if(t)return t}}function l2t(e){if(Hu(e))return e.name;if(El(e)){let t=jn(e.modifiers,cLe);if(t)return t}if(ic(e)){let t=jn(e.getChildren(),a2t);if(t)return t}}function u2t(e){let t;return Dr(e,n=>(wi(n)&&(t=n),!uf(n.parent)&&!wi(n.parent)&&!Gb(n.parent))),t}function LU(e,t){if(e.flags&16777216)return;let n=eV(e,t);if(n)return n;let i=u2t(e);return i&&t.getTypeAtLocation(i)}function _2t(e,t){if(!t)switch(e.kind){case 263:case 231:return c2t(e);case 262:case 218:return l2t(e);case 176:return e}if(Hu(e))return e.name}function lLe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(Hg(e.importClause.namedBindings)){let n=Nh(e.importClause.namedBindings.elements);return n?n.name:void 0}else if(Ry(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function uLe(e,t){if(e.exportClause){if(Pd(e.exportClause))return Nh(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(qh(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function f2t(e){if(e.types.length===1)return e.types[0].expression}function _Le(e,t){let{parent:n}=e;if(Do(e)&&(t||e.kind!==90)?Im(n)&&xs(n.modifiers,e):e.kind===86?ru(n)||tu(e):e.kind===100?El(n)||ic(e):e.kind===120?Xu(n):e.kind===94?TT(n):e.kind===156?sm(n):e.kind===145||e.kind===144?xl(n):e.kind===102?nu(n):e.kind===139?$p(n):e.kind===153&&dp(n)){let i=_2t(n,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Fu(n)&&n.declarations.length===1){let i=n.declarations[0];if($e(i.name))return i.name}if(e.kind===156){if(ng(n)&&n.isTypeOnly){let i=lLe(n.parent,t);if(i)return i}if(Cl(n)&&n.isTypeOnly){let i=uLe(n,t);if(i)return i}}if(e.kind===130){if(pf(n)&&n.propertyName||E_(n)&&n.propertyName||Ry(n)||qh(n))return n.name;if(Cl(n)&&n.exportClause&&qh(n.exportClause))return n.exportClause.name}if(e.kind===102&&Yc(n)){let i=lLe(n,t);if(i)return i}if(e.kind===95){if(Cl(n)){let i=uLe(n,t);if(i)return i}if(pc(n))return Ml(n.expression)}if(e.kind===149&&A0(n))return n.expression;if(e.kind===161&&(Yc(n)||Cl(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((e.kind===96||e.kind===119)&&mp(n)&&n.token===e.kind){let i=f2t(n);if(i)return i}if(e.kind===96){if(Cc(n)&&n.constraint&&Yp(n.constraint))return n.constraint.typeName;if(dE(n)&&Yp(n.extendsType))return n.extendsType.typeName}if(e.kind===140&&s2(n))return n.typeParameter.name;if(e.kind===103&&Cc(n)&&a2(n.parent))return n.name;if(e.kind===143&&yT(n)&&n.operator===143&&Yp(n.type))return n.type.typeName;if(e.kind===148&&yT(n)&&n.operator===148&&gM(n.type)&&Yp(n.type.elementType))return n.type.elementType.typeName;if(!t){if((e.kind===105&&gE(n)||e.kind===116&&UA(n)||e.kind===114&&SN(n)||e.kind===135&&eS(n)||e.kind===127&&Vj(n)||e.kind===91&&Wde(n))&&n.expression)return Ml(n.expression);if((e.kind===103||e.kind===104)&&Dn(n)&&n.operatorToken===e)return Ml(n.right);if(e.kind===130&&EO(n)&&Yp(n.type))return n.type.typeName;if(e.kind===103&&zj(n)||e.kind===165&&hM(n))return Ml(n.expression)}return e}function EQ(e){return _Le(e,!1)}function FU(e){return _Le(e,!0)}function Of(e,t){return $N(e,t,n=>Fg(n)||af(n.kind)||es(n))}function $N(e,t,n){return fLe(e,t,!1,n,!1)}function Ki(e,t){return fLe(e,t,!0,void 0,!1)}function fLe(e,t,n,i,s){let a=e,u;e:for(;;){let d=a.getChildren(e),S=UC(d,t,(E,x)=>x,(E,x)=>{let D=d[E].getEnd();if(Dt?1:m(d[E],I,D)?d[E-1]&&m(d[E-1])?1:0:i&&I===t&&d[E-1]&&d[E-1].getEnd()===t&&m(d[E-1])?1:-1});if(u)return u;if(S>=0&&d[S]){a=d[S];continue e}return a}function m(d,S,E){if(E??(E=d.getEnd()),Et))return!1;if(tn.getStart(e)&&t(a.pos<=e.pos&&a.end>e.end||a.pos===e.end)&&P0e(a,n)?i(a):void 0)}}function su(e,t,n,i){let s=a(n||t);return M.assert(!(s&&BU(s))),s;function a(u){if(pLe(u)&&u.kind!==1)return u;let m=u.getChildren(t),d=UC(m,e,(E,x)=>x,(E,x)=>e=m[E-1].end?0:1:-1);if(d>=0&&m[d]){let E=m[d];if(e=e||!P0e(E,t)||BU(E)){let I=E0e(m,d,t,u.kind);return I?!i&&q5(I)&&I.getChildren(t).length?a(I):b0e(I,t):void 0}else return a(E)}M.assert(n!==void 0||u.kind===307||u.kind===1||q5(u));let S=E0e(m,m.length,t,u.kind);return S&&b0e(S,t)}}function pLe(e){return $C(e)&&!BU(e)}function b0e(e,t){if(pLe(e))return e;let n=e.getChildren(t);if(n.length===0)return e;let i=E0e(n,n.length,t,e.kind);return i&&b0e(i,t)}function E0e(e,t,n,i){for(let s=t-1;s>=0;s--){let a=e[s];if(BU(a))s===0&&(i===12||i===285)&&M.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(P0e(e[s],n))return e[s]}}function sk(e,t,n=su(t,e)){if(n&&HG(n)){let i=n.getStart(e),s=n.getEnd();if(in.getStart(e)}function C0e(e,t){let n=Ki(e,t);return!!(IA(n)||n.kind===19&&NO(n.parent)&&My(n.parent.parent)||n.kind===30&&p_(n.parent)&&My(n.parent.parent))}function UU(e,t){function n(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return n(Ki(e,t))}function VU(e,t,n){let i=bo(e.kind),s=bo(t),a=e.getFullStart(),u=n.text.lastIndexOf(s,a);if(u===-1)return;if(n.text.lastIndexOf(i,a-1)!!a.typeParameters&&a.typeParameters.length>=t)}function AQ(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let n=e,i=0,s=0;for(;n;){switch(n.kind){case 30:if(n=su(n.getFullStart(),t),n&&n.kind===29&&(n=su(n.getFullStart(),t)),!n||!$e(n))return;if(!i)return Bh(n)?void 0:{called:n,nTypeArguments:s};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(n=VU(n,19,t),!n)return;break;case 22:if(n=VU(n,21,t),!n)return;break;case 24:if(n=VU(n,23,t),!n)return;break;case 28:s++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(wi(n))break;return}n=su(n.getFullStart(),t)}}function Uv(e,t,n){return zl.getRangeOfEnclosingComment(e,t,void 0,n)}function k0e(e,t){let n=Ki(e,t);return!!Dr(n,sg)}function P0e(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function p6(e,t=0){let n=[],i=f_(e)?MG(e)&~t:0;return i&2&&n.push("private"),i&4&&n.push("protected"),i&1&&n.push("public"),(i&256||$c(e))&&n.push("static"),i&64&&n.push("abstract"),i&32&&n.push("export"),i&65536&&n.push("deprecated"),e.flags&33554432&&n.push("declare"),e.kind===277&&n.push("export"),n.length>0?n.join(","):""}function N0e(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(Us(e)||e.kind===263||e.kind===264)return e.typeParameters}function JU(e){return e===2||e===3}function kQ(e){return!!(e===11||e===14||B1(e))}function dLe(e,t,n){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(n)}function D0e(e){if(!e.isIntersection())return!1;let{types:t,checker:n}=e;return t.length===2&&(dLe(n,t[0],t[1])||dLe(n,t[1],t[0]))}function y8(e,t,n){return B1(e.kind)&&e.getStart(n){let n=Sa(t);return!e[n]&&(e[n]=!0)}}function ok(e){return e.getText(0,e.getLength())}function S8(e,t){let n="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function R0e(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function LQ(e){return!!e.module||Qo(e)>=2||!!e.noEmit}function ak(e,t){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:so(t,t.readFile),useCaseSensitiveFileNames:so(t,t.useCaseSensitiveFileNames),getSymlinkCache:so(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:so(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getModuleResolutionCache())==null?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:so(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:so(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function FQ(e,t){return{...ak(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function GU(e){return e===2||e>=3&&e<=99||e===100}function uS(e,t,n,i,s){return U.createImportDeclaration(void 0,e||t?U.createImportClause(!!s,e,t&&t.length?U.createNamedImports(t):void 0):void 0,typeof n=="string"?m6(n,i):n,void 0)}function m6(e,t){return U.createStringLiteral(e,t===0)}var M0e=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(M0e||{});function jQ(e,t){return T9(e,t)?1:0}function td(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let n=kv(e)&&e.imports&&jn(e.imports,i=>jo(i)&&!Ka(i.parent));return n?jQ(n,e):1}}function BQ(e){switch(e){case 0:return"'";case 1:return'"';default:return M.assertNever(e)}}function UQ(e){let t=HU(e);return t===void 0?void 0:Zi(t)}function HU(e){return e.escapedName!=="default"?e.escapedName:di(e.declarations,t=>{let n=Ns(t);return n&&n.kind===80?n.escapedText:void 0})}function $U(e){return Ia(e)&&(A0(e.parent)||Yc(e.parent)||Kg(e.parent)||Nf(e.parent,!1)&&e.parent.arguments[0]===e||Dp(e.parent)&&e.parent.arguments[0]===e)}function b8(e){return Zo(e)&&Kp(e.parent)&&$e(e.name)&&!e.propertyName}function YU(e,t){let n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function E8(e,t,n){if(e)for(;e.parent;){if(qi(e.parent)||!p2t(n,e.parent,t))return e;e=e.parent}}function p2t(e,t,n){return RG(e,t.getStart(n))&&t.getEnd()<=bl(e)}function KN(e,t){return Im(e)?jn(e.modifiers,n=>n.kind===t):void 0}function VQ(e,t,n,i,s){var a;let m=(Ms(n)?n[0]:n).kind===243?hR:tA,d=ti(t.statements,m),{comparer:S,isSorted:E}=UT.getOrganizeImportsStringComparerWithDetection(d,s),x=Ms(n)?Zs(n,(D,I)=>UT.compareImportsOrRequireStatements(D,I,S)):[n];if(!d?.length){if(kv(t))e.insertNodesAtTopOfFile(t,x,i);else for(let D of x)e.insertStatementsInNewFile(t.fileName,[D],(a=Bc(D))==null?void 0:a.getSourceFile());return}if(M.assert(kv(t)),d&&E)for(let D of x){let I=UT.getImportDeclarationInsertionIndex(d,D,S);if(I===0){let R=d[0]===t.statements[0]?{leadingTriviaOption:bn.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],D,!1,R)}else{let R=d[I-1];e.insertNodeAfter(t,R,D)}}else{let D=yc(d);D?e.insertNodesAfter(t,D,x):e.insertNodesAtTopOfFile(t,x,i)}}function JQ(e,t){return M.assert(e.isTypeOnly),ao(e.getChildAt(0,t),RQ)}function XN(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function qQ(e,t,n){return(n?Lx:KS)(e.fileName,t.fileName)&&XN(e.textSpan,t.textSpan)}function zQ(e){return(t,n)=>qQ(t,n,e)}function WQ(e,t){if(e){for(let n=0;nis(n)?!0:Zo(n)||Kp(n)||Fv(n)?!1:"quit")}var F0e=d2t();function d2t(){let e=bw*10,t,n,i,s;E();let a=x=>m(x,17);return{displayParts:()=>{let x=t.length&&t[t.length-1].text;return s>e&&x&&x!=="..."&&(Sy(x.charCodeAt(x.length-1))||t.push(zf(" ",16)),t.push(zf("...",15))),t},writeKeyword:x=>m(x,5),writeOperator:x=>m(x,12),writePunctuation:x=>m(x,15),writeTrailingSemicolon:x=>m(x,15),writeSpace:x=>m(x,16),writeStringLiteral:x=>m(x,8),writeParameter:x=>m(x,13),writeProperty:x=>m(x,14),writeLiteral:x=>m(x,8),writeSymbol:d,writeLine:S,write:a,writeComment:a,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:fo,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:E};function u(){if(!(s>e)&&n){let x=I9(i);x&&(s+=x.length,t.push(zf(x,16))),n=!1}}function m(x,D){s>e||(u(),s+=x.length,t.push(zf(x,D)))}function d(x,D){s>e||(u(),s+=x.length,t.push(j0e(x,D)))}function S(){s>e||(s+=1,t.push(QN()),n=!0)}function E(){t=[],n=!0,i=0,s=0}}function j0e(e,t){return zf(e,n(t));function n(i){let s=i.flags;return s&3?HQ(i)?13:9:s&4||s&32768||s&65536?14:s&8?19:s&16?20:s&32?1:s&64?4:s&384?2:s&1536?11:s&8192?10:s&262144?18:s&524288||s&2097152?0:17}}function zf(e,t){return{text:e,kind:kU[t]}}function Zc(){return zf(" ",16)}function hp(e){return zf(bo(e),5)}function k_(e){return zf(bo(e),15)}function h6(e){return zf(bo(e),12)}function B0e(e){return zf(e,13)}function U0e(e){return zf(e,14)}function $Q(e){let t=Jb(e);return t===void 0?rd(e):hp(t)}function rd(e){return zf(e,17)}function V0e(e){return zf(e,0)}function J0e(e){return zf(e,18)}function XU(e){return zf(e,24)}function q0e(e,t){return{text:e,kind:kU[23],target:{fileName:Jr(t).fileName,textSpan:gf(t)}}}function YQ(e){return zf(e,22)}function z0e(e,t){var n;let i=Qde(e)?"link":Zde(e)?"linkcode":"linkplain",s=[YQ(`{@${i} `)];if(!e.name)e.text&&s.push(XU(e.text));else{let a=t?.getSymbolAtLocation(e.name),u=a&&t?QQ(a,t):void 0,m=g2t(e.text),d=Hc(e.name)+e.text.slice(0,m),S=m2t(e.text.slice(m)),E=u?.valueDeclaration||((n=u?.declarations)==null?void 0:n[0]);if(E)s.push(q0e(d,E)),S&&s.push(XU(S));else{let x=m===0||e.text.charCodeAt(m)===124&&d.charCodeAt(d.length-1)!==32?" ":"";s.push(XU(d+x+S))}}return s.push(YQ("}")),s}function m2t(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&n--,i++,!n)return i}return 0}var h2t=`
`;function Jv(e,t){var n;return t?.newLineCharacter||((n=e.getNewLine)==null?void 0:n.call(e))||h2t}function QN(){return zf(`
`,6)}function _S(e){try{return e(F0e),F0e.displayParts()}finally{F0e.clear()}}function x8(e,t,n,i=0){return _S(s=>{e.writeType(t,n,i|1024|16384,s)})}function y6(e,t,n,i,s=0){return _S(a=>{e.writeSymbol(t,n,i,s|8,a)})}function KQ(e,t,n,i=0){return i|=25632,_S(s=>{e.writeSignature(t,n,i,void 0,s)})}function gLe(e,t){let n=t.getSourceFile();return _S(i=>{$B().writeNode(4,e,n,i)})}function W0e(e){return!!e.parent&&YC(e.parent)&&e.parent.propertyName===e}function XQ(e,t){return uj(e,t.getScriptKind&&t.getScriptKind(e))}function QQ(e,t){let n=e;for(;y2t(n)||Fh(n)&&n.links.target;)Fh(n)&&n.links.target?n=n.links.target:n=$u(n,t);return n}function y2t(e){return(e.flags&2097152)!==0}function G0e(e,t){return Po($u(e,t))}function H0e(e,t){for(;Sy(e.charCodeAt(t));)t+=1;return t}function QU(e,t){for(;t>-1&&Dg(e.charCodeAt(t));)t-=1;return t+1}function ka(e,t=!0){let n=e&&hLe(e);return n&&!t&&yp(n),E0(n,!1)}function C8(e,t,n){let i=n(e);return i?Gn(i,e):i=hLe(e,n),i&&!t&&yp(i),i}function hLe(e,t){let n=t?a=>C8(a,!0,t):ka,s=jr(e,n,void 0,t?a=>a&&ZQ(a,!0,t):a=>a&&DE(a),n);if(s===e){let a=jo(e)?Gn(U.createStringLiteralFromNode(e),e):Df(e)?Gn(U.createNumericLiteral(e.text,e.numericLiteralFlags),e):U.cloneNode(e);return At(a,e)}return s.parent=void 0,s}function DE(e,t=!0){if(e){let n=U.createNodeArray(e.map(i=>ka(i,t)),e.hasTrailingComma);return At(n,e),n}return e}function ZQ(e,t,n){return U.createNodeArray(e.map(i=>C8(i,t,n)),e.hasTrailingComma)}function yp(e){eZ(e),$0e(e)}function eZ(e){Y0e(e,1024,S2t)}function $0e(e){Y0e(e,2048,y$)}function b2(e,t){let n=e.getSourceFile(),i=n.text;v2t(e,i)?ZN(e,t,n):k8(e,t,n),v6(e,t,n)}function v2t(e,t){let n=e.getFullStart(),i=e.getStart();for(let s=n;st)}function E2(e,t){let n=e;for(let i=1;!Q5(t,n);i++)n=`${e}_${i}`;return n}function A8(e,t,n,i){let s=0,a=-1;for(let{fileName:u,textChanges:m}of e){M.assert(u===t);for(let d of m){let{span:S,newText:E}=d,x=T2t(E,Uh(n));if(x!==-1&&(a=S.start+s+x,!i))return a;s+=E.length-S.length}}return M.assert(i),M.assert(a>=0),a}function ZN(e,t,n,i,s){N3(n.text,e.pos,K0e(t,n,i,s,hO))}function v6(e,t,n,i,s){D3(n.text,e.end,K0e(t,n,i,s,Nj))}function k8(e,t,n,i,s){D3(n.text,e.pos,K0e(t,n,i,s,hO))}function K0e(e,t,n,i,s){return(a,u,m,d)=>{m===3?(a+=2,u-=2):a+=2,s(e,n||m,t.text.slice(a,u),i!==void 0?i:d)}}function T2t(e,t){if(fs(e,t))return 0;let n=e.indexOf(" "+t);return n===-1&&(n=e.indexOf("."+t)),n===-1&&(n=e.indexOf('"'+t)),n===-1?-1:n+1}function ZU(e){return Dn(e)&&e.operatorToken.kind===28||ko(e)||(EO(e)||Jj(e))&&ko(e.expression)}function eV(e,t,n){let i=h0(e.parent);switch(i.kind){case 214:return t.getContextualType(i,n);case 226:{let{left:s,operatorToken:a,right:u}=i;return tV(a.kind)?t.getTypeAtLocation(e===u?s:u):t.getContextualType(e,n)}case 296:return rZ(i,t);default:return t.getContextualType(e,n)}}function S6(e,t,n){let i=td(e,t),s=JSON.stringify(n);return i===0?`'${em(s).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:s}function tV(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function X0e(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function tZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function rZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var nZ="anonymous function";function T6(e,t,n,i){let s=n.getTypeChecker(),a=!0,u=()=>a=!1,m=s.typeToTypeNode(e,t,1,{trackSymbol:(d,S,E)=>(a=a&&s.isSymbolAccessible(d,S,E,!1).accessibility===0,!a),reportInaccessibleThisError:u,reportPrivateInBaseOfClassExpression:u,reportInaccessibleUniqueSymbolError:u,moduleResolverHost:FQ(n,i)});return a?m:void 0}function Q0e(e){return e===179||e===180||e===181||e===171||e===173}function yLe(e){return e===262||e===176||e===174||e===177||e===178}function vLe(e){return e===267}function rV(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}var Z0e=qp(Q0e,yLe,vLe,rV);function b2t(e,t){let n=e.getLastToken(t);if(n&&n.kind===27)return!1;if(Q0e(e.kind)){if(n&&n.kind===28)return!1}else if(vLe(e.kind)){let m=qo(e.getChildren(t));if(m&&Gg(m))return!1}else if(yLe(e.kind)){let m=qo(e.getChildren(t));if(m&&Xb(m))return!1}else if(!rV(e.kind))return!1;if(e.kind===246)return!0;let i=Dr(e,m=>!m.parent),s=NE(e,i,t);if(!s||s.kind===20)return!0;let a=t.getLineAndCharacterOfPosition(e.getEnd()).line,u=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return a!==u}function nV(e,t,n){let i=Dr(t,s=>s.end!==e?"quit":Z0e(s.kind));return!!i&&b2t(i,n)}function P8(e){let t=0,n=0,i=5;return qs(e,function s(a){if(rV(a.kind)){let u=a.getLastToken(e);u?.kind===27?t++:n++}else if(Q0e(a.kind)){let u=a.getLastToken(e);if(u?.kind===27)t++;else if(u&&u.kind!==28){let m=Eo(e,u.getStart(e)).line,d=Eo(e,jh(e,u.end).start).line;m!==d&&n++}}return t+n>=i?!0:qs(a,s)}),t===0&&n<=1?!0:t/n>1/i}function iV(e,t){return aV(e,e.getDirectories,t)||[]}function iZ(e,t,n,i,s){return aV(e,e.readDirectory,t,n,i,s)||ve}function N8(e,t){return aV(e,e.fileExists,t)}function sV(e,t){return oV(()=>tg(t,e))||!1}function oV(e){try{return e()}catch{return}}function aV(e,t,...n){return oV(()=>t&&t.apply(e,n))}function sZ(e,t,n){let i=[];return Am(e,s=>{if(s===n)return!0;let a=ii(s,"package.json");N8(t,a)&&i.push(a)}),i}function eve(e,t){let n;return Am(e,i=>{if(i==="node_modules"||(n=rX(i,s=>N8(t,s),"package.json"),n))return!0}),n}function tve(e,t){if(!t.fileExists)return[];let n=[];return Am(yi(e),i=>{let s=ii(i,"package.json");if(t.fileExists(s)){let a=oZ(s,t);a&&n.push(a)}}),n}function oZ(e,t){if(!t.readFile)return;let n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=q9(i),a={};if(s)for(let d of n){let S=s[d];if(!S)continue;let E=new Map;for(let x in S)E.set(x,S[x]);a[d]=E}let u=[[1,a.dependencies],[2,a.devDependencies],[8,a.optionalDependencies],[4,a.peerDependencies]];return{...a,parseable:!!s,fileName:e,get:m,has(d,S){return!!m(d,S)}};function m(d,S=15){for(let[E,x]of u)if(x&&S&E){let D=x.get(d);if(D!==void 0)return D}}}function eD(e,t,n){let i=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||tve(e.fileName,n)).filter(R=>R.parseable),s,a,u;return{allowsImportingAmbientModule:d,allowsImportingSourceFile:S,allowsImportingSpecifier:E};function m(R){let L=I(R);for(let F of i)if(F.has(L)||F.has(DB(L)))return!0;return!1}function d(R,L){if(!i.length||!R.valueDeclaration)return!0;if(!a)a=new Map;else{let ee=a.get(R);if(ee!==void 0)return ee}let F=em(R.getName());if(x(F))return a.set(R,!0),!0;let J=R.valueDeclaration.getSourceFile(),$=D(J.fileName,L);if(typeof $>"u")return a.set(R,!0),!0;let q=m($)||m(F);return a.set(R,q),q}function S(R,L){if(!i.length)return!0;if(!u)u=new Map;else{let $=u.get(R);if($!==void 0)return $}let F=D(R.fileName,L);if(!F)return u.set(R,!0),!0;let J=m(F);return u.set(R,J),J}function E(R){return!i.length||x(R)||zp(R)||op(R)?!0:m(R)}function x(R){return!!(kv(e)&&Pf(e)&&Zg.nodeCoreModules.has(R)&&(s===void 0&&(s=cV(e)),s))}function D(R,L){if(!R.includes("node_modules"))return;let F=IT.getNodeModulesPackageName(n.getCompilationSettings(),e,R,L,t);if(F&&!zp(F)&&!op(F))return I(F)}function I(R){let L=yu(GO(R)).slice(1);return fs(L[0],"@")?`${L[0]}/${L[1]}`:L[0]}}function cV(e){return Dt(e.imports,({text:t})=>Zg.nodeCoreModules.has(t))}function D8(e){return xs(yu(e),"node_modules")}function aZ(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function rve(e,t){let n=gf(e),i=UC(t,n,ec,a5);if(i>=0){let s=t[i];return M.assertEqual(s.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),ao(s,aZ)}}function nve(e,t){var n;let i=UC(t,e.start,u=>u.start,tc);for(i<0&&(i=~i);((n=t[i-1])==null?void 0:n.start)===e.start;)i--;let s=[],a=bl(e);for(;;){let u=ci(t[i],aZ);if(!u||u.start>a)break;Nue(e,u)&&s.push(u),i++}return s}function ck({startPosition:e,endPosition:t}){return wl(e,t===void 0?e:t)}function cZ(e,t){let n=Ki(e,t.start);return Dr(n,s=>s.getStart(e)bl(t)?"quit":Pt(s)&&XN(t,gf(s,e)))}function lZ(e,t,n=ec){return e?Ms(e)?n(kr(e,t)):t(e,0):void 0}function uZ(e){return Ms(e)?Fo(e):e}function ive(e,t){if(SLe(e)){let n=uV(e);if(n)return n;let i=b6(_V(e),t,!1),s=b6(_V(e),t,!0);return i===s?i:[i,s]}return e.name}function lV(e,t,n){return SLe(e)?uV(e)||b6(_V(e),t,!!n):e.name}function SLe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function uV(e){return di(e.declarations,t=>{var n,i,s;return pc(t)?(n=ci(Ml(t.expression),$e))==null?void 0:n.text:E_(t)&&t.symbol.flags===2097152?(i=ci(t.propertyName,$e))==null?void 0:i.text:(s=ci(Ns(t),$e))==null?void 0:s.text})}function _V(e){var t;return M.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${M.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(n=>{let i=M.formatSyntaxKind(n.kind),s=vn(n),{expression:a}=n;return(s?"[JS]":"")+i+(a?` (expression: ${M.formatSyntaxKind(a.kind)})`:"")}).join(", ")}.`)}function b6(e,t,n){return I8(lf(em(e.name)),t,n)}function I8(e,t,n){let i=Ul(kP(e,"/index")),s="",a=!0,u=i.charCodeAt(0);by(u,t)?(s+=String.fromCharCode(u),n&&(s=s.toUpperCase())):a=!1;for(let m=1;me.length)return!1;for(let s=0;sxl(n)&&Og(n))}function fV(e){return!!(MG(e)&65536)}function pV(e,t){return di(e.imports,i=>{if(Zg.nodeCoreModules.has(i.text))return fs(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function w8(e){return e===`
`?1:0}function IE(e){return Ms(e)?Dy(Ls(e[0]),e.slice(1)):Ls(e)}function dV({options:e},t){let n=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||n&&!P8(t);return{...e,semicolons:i?"remove":"ignore"}}function fZ(e){return e===2||e===3}function tD(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function mV(e,t){let n=new Set,i=new Set,s=new Set;for(let m of t)if(!DO(m)){let d=ba(m.expression);if(Wb(d))switch(d.kind){case 15:case 11:n.add(d.text);break;case 9:i.add(parseInt(d.text));break;case 10:let S=Npe(Wc(d.text,"n")?d.text.slice(0,-1):d.text);S&&s.add(uE(S));break}else{let S=e.getSymbolAtLocation(m.expression);if(S&&S.valueDeclaration&&nS(S.valueDeclaration)){let E=e.getConstantValue(S.valueDeclaration);E!==void 0&&a(E)}}}return{addValue:a,hasValue:u};function a(m){switch(typeof m){case"string":n.add(m);break;case"number":i.add(m)}}function u(m){switch(typeof m){case"string":return n.has(m);case"number":return i.has(m);case"object":return s.has(uE(m))}}}function pZ(e,t,n,i){var s;let a=typeof e=="string"?e:e.fileName;if(!wy(a))return!1;let u=t.getCompilerOptions(),m=J_(u),d=typeof e=="string"?t8(rc(e,n.getCurrentDirectory(),Nv(n)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),n,u):e.impliedNodeFormat;if(d===99)return!1;if(d===1||u.verbatimModuleSyntax&&m===1)return!0;if(u.verbatimModuleSyntax&&ej(m))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}function rD(e){switch(e.kind){case 241:case 307:case 268:case 296:return!0;default:return!1}}function gV(e,t,n,i){var s;let a=rU(e,(s=n.getPackageJsonInfoCache)==null?void 0:s.call(n),i,n.getCompilerOptions()),u,m;return typeof a=="object"&&(u=a.impliedNodeFormat,m=a.packageJsonScope),{path:rc(e,n.getCurrentDirectory(),n.getCanonicalFileName),fileName:e,externalModuleIndicator:t===99?!0:void 0,commonJsModuleIndicator:t===1?!0:void 0,impliedNodeFormat:u,packageJsonScope:m,statements:ve,imports:ve}}var ave=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(ave||{}),cve=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(cve||{});function dZ(e){let t=1,n=vd(),i=new Map,s=new Map,a,u={isUsableByFile:I=>I===a,isEmpty:()=>!n.size,clear:()=>{n.clear(),i.clear(),a=void 0},add:(I,R,L,F,J,$,q,ee)=>{I!==a&&(u.clear(),a=I);let W;if(J){let xe=Tj(J.fileName);if(xe){let{topLevelNodeModulesIndex:te,topLevelPackageNameIndex:he,packageRootIndex:Te}=xe;if(W=UM(GO(J.fileName.substring(he+1,Te))),fs(I,J.path.substring(0,te))){let Ve=s.get(W),Pe=J.fileName.substring(0,he+1);if(Ve){let ke=Ve.indexOf(Fy);te>ke&&s.set(W,Pe)}else s.set(W,Pe)}}}let K=$===1&&$w(R)||R,re=$===0||UP(K)?Zi(L):ive(K,void 0),ue=typeof re=="string"?re:re[0],ce=typeof re=="string"?void 0:re[1],ne=em(F.name),le=t++,me=$u(R,ee),de=R.flags&33554432?void 0:R,Ae=F.flags&33554432?void 0:F;(!de||!Ae)&&i.set(le,[R,F]),n.add(d(ue,R,Su(ne)?void 0:ne,ee),{id:le,symbolTableKey:L,symbolName:ue,capitalizedSymbolName:ce,moduleName:ne,moduleFile:J,moduleFileName:J?.fileName,packageName:W,exportKind:$,targetFlags:me.flags,isFromPackageJson:q,symbol:de,moduleSymbol:Ae})},get:(I,R)=>{if(I!==a)return;let L=n.get(R);return L?.map(m)},search:(I,R,L,F)=>{if(I===a)return Iu(n,(J,$)=>{let{symbolName:q,ambientModuleName:ee}=S($),W=R&&J[0].capitalizedSymbolName||q;if(L(W,J[0].targetFlags)){let K=J.map(m).filter((re,ue)=>D(re,J[ue].packageName));if(K.length){let re=F(K,W,!!ee,$);if(re!==void 0)return re}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(I,R,L)=>E(I)&&E(R)?!1:a&&a!==R.path||L&&cV(I)!==cV(R)||!Jp(I.moduleAugmentations,R.moduleAugmentations)||!x(I,R)?(u.clear(),!0):(a=R.path,!1)};return M.isDebugging&&Object.defineProperty(u,"__cache",{value:n}),u;function m(I){if(I.symbol&&I.moduleSymbol)return I;let{id:R,exportKind:L,targetFlags:F,isFromPackageJson:J,moduleFileName:$}=I,[q,ee]=i.get(R)||ve;if(q&&ee)return{symbol:q,moduleSymbol:ee,moduleFileName:$,exportKind:L,targetFlags:F,isFromPackageJson:J};let W=(J?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),pe=I.moduleSymbol||ee||M.checkDefined(I.moduleFile?W.getMergedSymbol(I.moduleFile.symbol):W.tryFindAmbientModule(I.moduleName)),K=I.symbol||q||M.checkDefined(L===2?W.resolveExternalModuleSymbol(pe):W.tryGetMemberInModuleExportsAndProperties(Zi(I.symbolTableKey),pe),`Could not find symbol '${I.symbolName}' by key '${I.symbolTableKey}' in module ${pe.name}`);return i.set(R,[K,pe]),{symbol:K,moduleSymbol:pe,moduleFileName:$,exportKind:L,targetFlags:F,isFromPackageJson:J}}function d(I,R,L,F){let J=L||"";return`${I.length} ${Po($u(R,F))} ${I} ${J}`}function S(I){let R=I.indexOf(" "),L=I.indexOf(" ",R+1),F=parseInt(I.substring(0,R),10),J=I.substring(L+1),$=J.substring(0,F),q=J.substring(F+1);return{symbolName:$,ambientModuleName:q===""?void 0:q}}function E(I){return!I.commonJsModuleIndicator&&!I.externalModuleIndicator&&!I.moduleAugmentations&&!I.ambientModuleNames}function x(I,R){if(!Jp(I.ambientModuleNames,R.ambientModuleNames))return!1;let L=-1,F=-1;for(let J of R.ambientModuleNames){let $=q=>dH(q)&&q.name.text===J;if(L=Va(I.statements,$,L+1),F=Va(R.statements,$,F+1),I.statements[L]!==R.statements[F])return!1}return!0}function D(I,R){if(!R||!I.moduleFileName)return!0;let L=e.getGlobalTypingsCacheLocation();if(L&&fs(I.moduleFileName,L))return!0;let F=s.get(R);return!F||fs(I.moduleFileName,F)}}function mZ(e,t,n,i,s,a,u){var m;if(t===n)return!1;let d=u?.get(t.path,n.path,i,{});if(d?.isBlockedByPackageJsonDependencies!==void 0)return!d.isBlockedByPackageJsonDependencies;let S=Nv(a),E=(m=a.getGlobalTypingsCacheLocation)==null?void 0:m.call(a),x=!!IT.forEachFileNameOfModule(t.fileName,n.fileName,a,!1,D=>{let I=e.getSourceFile(D);return(I===n||!I)&&E2t(t.fileName,D,S,E)});if(s){let D=x&&s.allowsImportingSourceFile(n,a);return u?.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},!D),D}return x}function E2t(e,t,n,i){let s=Am(t,u=>Ul(u)==="node_modules"?u:void 0),a=s&&yi(n(s));return a===void 0||fs(n(e),a)||!!i&&fs(n(i),a)}function gZ(e,t,n,i,s){var a,u;let m=oN(t),d=n.autoImportFileExcludePatterns&&Yi(n.autoImportFileExcludePatterns,E=>{let x=cj(E,"","exclude");return x?$1(x,m):void 0});bLe(e.getTypeChecker(),e.getSourceFiles(),d,t,(E,x)=>s(E,x,e,!1));let S=i&&((a=t.getPackageJsonAutoImportProvider)==null?void 0:a.call(t));if(S){let E=Tc(),x=e.getTypeChecker();bLe(S.getTypeChecker(),S.getSourceFiles(),d,t,(D,I)=>{(I&&!e.getSourceFile(I.fileName)||!I&&!x.resolveName(D.name,void 0,1536,!1))&&s(D,I,S,!0)}),(u=t.log)==null||u.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Tc()-E}`)}}function bLe(e,t,n,i,s){var a,u;let m=(a=i.getSymlinkCache)==null?void 0:a.call(i).getSymlinkedDirectoriesByRealpath(),d=n&&(({fileName:S,path:E})=>{if(n.some(x=>x.test(S)))return!0;if(m?.size&&NT(S)){let x=yi(S);return Am(yi(E),D=>{let I=m.get(vu(D));if(I)return I.some(R=>n.some(L=>L.test(S.replace(x,R))));x=yi(x)})??!1}return!1});for(let S of e.getAmbientModules())!S.name.includes("*")&&!(n&&((u=S.declarations)!=null&&u.every(E=>d(E.getSourceFile()))))&&s(S,void 0);for(let S of t)Jf(S)&&!d?.(S)&&s(e.getMergedSymbol(S.symbol),S)}function O8(e,t,n,i,s){var a,u,m,d,S;let E=Tc();(a=t.getPackageJsonAutoImportProvider)==null||a.call(t);let x=((u=t.getCachedExportInfoMap)==null?void 0:u.call(t))||dZ({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var I;return(I=t.getPackageJsonAutoImportProvider)==null?void 0:I.call(t)},getGlobalTypingsCacheLocation:()=>{var I;return(I=t.getGlobalTypingsCacheLocation)==null?void 0:I.call(t)}});if(x.isUsableByFile(e.path))return(m=t.log)==null||m.call(t,"getExportInfoMap: cache hit"),x;(d=t.log)==null||d.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let D=0;try{gZ(n,t,i,!0,(I,R,L,F)=>{++D%100===0&&s?.throwIfCancellationRequested();let J=new Map,$=L.getTypeChecker(),q=hV(I,$);q&&ELe(q.symbol,$)&&x.add(e.path,q.symbol,q.exportKind===1?"default":"export=",I,R,q.exportKind,F,$),$.forEachExportAndPropertyOfModule(I,(ee,W)=>{ee!==q?.symbol&&ELe(ee,$)&&tm(J,W)&&x.add(e.path,ee,W,I,R,0,F,$)})})}catch(I){throw x.clear(),I}return(S=t.log)==null||S.call(t,`getExportInfoMap: done in ${Tc()-E} ms`),x}function hV(e,t){let n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function ELe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!LR(e)&&!Tfe(e)}function hZ(e,t,n,i,s){let a,u=e,m=new Map;for(;u;){let d=uV(u);if(d){let S=s(d);if(S)return S}if(u.escapedName!=="default"&&u.escapedName!=="export="){let S=s(u.name);if(S)return S}if(a=Ut(a,u),!tm(m,u))break;u=u.flags&2097152?t.getImmediateAliasedSymbol(u):void 0}for(let d of a??ve)if(d.parent&&UP(d.parent)){let S=s(b6(d.parent,Qo(n),i));if(S)return S}}function xLe(){let e=Ey(99,!1);function t(i,s,a){return k2t(n(i,s,a),i)}function n(i,s,a){let u=0,m=0,d=[],{prefix:S,pushTemplate:E}=D2t(s);i=S+i;let x=S.length;E&&d.push(16),e.setText(i);let D=0,I=[],R=0;do{u=e.scan(),rN(u)||(L(),m=u);let F=e.getTokenEnd();if(A2t(e.getTokenStart(),F,x,O2t(u),I),F>=i.length){let J=C2t(e,u,yc(d));J!==void 0&&(D=J)}}while(u!==1);function L(){switch(u){case 44:case 69:!x2t[m]&&e.reScanSlashToken()===14&&(u=14);break;case 30:m===80&&R++;break;case 32:R>0&&R--;break;case 133:case 154:case 150:case 136:case 155:R>0&&!a&&(u=80);break;case 16:d.push(u);break;case 19:d.length>0&&d.push(u);break;case 20:if(d.length>0){let F=yc(d);F===16?(u=e.reScanTemplateToken(!1),u===18?d.pop():M.assertEqual(u,17,"Should have been a template middle.")):(M.assertEqual(F,19,"Should have been an open brace"),d.pop())}break;default:if(!af(u))break;(m===25||af(m)&&af(u)&&!N2t(m,u))&&(u=80)}}return{endOfLineState:D,spans:I}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:n}}var x2t=Jce([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0);function C2t(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),s=i.length-1,a=0;for(;i.charCodeAt(s-a)===92;)a++;return a&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(B1(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return M.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return n===16?6:void 0}}function A2t(e,t,n,i,s){if(i===8)return;e===0&&n>0&&(e+=n);let a=t-e;a>0&&s.push(e-n,a,i)}function k2t(e,t){let n=[],i=e.spans,s=0;for(let u=0;u=0){let E=m-s;E>0&&n.push({length:E,classification:4})}n.push({length:d,classification:P2t(S)}),s=m+d}let a=t.length-s;return a>0&&n.push({length:a,classification:4}),{entries:n,finalLexState:e.endOfLineState}}function P2t(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function N2t(e,t){if(!PQ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function D2t(e){switch(e){case 3:return{prefix:`"\\
`};case 2:return{prefix:`'\\
`};case 1:return{prefix:`/*
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return M.assertNever(e)}}function I2t(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function w2t(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function O2t(e){if(af(e))return 3;if(I2t(e)||w2t(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return B1(e)?6:2}}function lve(e,t,n,i,s){return kLe(yZ(e,t,n,i,s))}function CLe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function yZ(e,t,n,i,s){let a=[];return n.forEachChild(function m(d){if(!(!d||!k5(s,d.pos,d.getFullWidth()))){if(CLe(t,d.kind),$e(d)&&!Gc(d)&&i.has(d.escapedText)){let S=e.getSymbolAtLocation(d),E=S&&ALe(S,S2(d),e);E&&u(d.getStart(n),d.getEnd(),E)}d.forEachChild(m)}}),{spans:a,endOfLineState:0};function u(m,d,S){let E=d-m;M.assert(E>0,`Classification had non-positive length of ${E}`),a.push(m),a.push(E),a.push(S)}}function ALe(e,t,n){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&R2t(e)?14:void 0:i&2097152?ALe(n.getAliasedSymbol(e),t,n):t&2?i&64?13:i&262144?15:void 0:void 0}function R2t(e){return Dt(e.declarations,t=>xl(t)&&D0(t)===1)}function M2t(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function kLe(e){M.assert(e.spans.length%3===0);let t=e.spans,n=[];for(let i=0;i])*)(\/>)?)?/im,re=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,ue=t.text.substr(W,pe),ce=K.exec(ue);if(!ce||!ce[3]||!(ce[3]in g5))return!1;let ne=W;x(ne,ce[1].length),ne+=ce[1].length,d(ne,ce[2].length,10),ne+=ce[2].length,d(ne,ce[3].length,21),ne+=ce[3].length;let le=ce[4],me=ne;for(;;){let Ae=re.exec(le);if(!Ae)break;let xe=ne+Ae.index+Ae[1].length;xe>me&&(x(me,xe-me),me=xe),d(me,Ae[2].length,22),me+=Ae[2].length,Ae[3].length&&(x(me,Ae[3].length),me+=Ae[3].length),d(me,Ae[4].length,5),me+=Ae[4].length,Ae[5].length&&(x(me,Ae[5].length),me+=Ae[5].length),d(me,Ae[6].length,24),me+=Ae[6].length}ne+=ce[4].length,ne>me&&x(me,ne-me),ce[5]&&(d(ne,ce[5].length,10),ne+=ce[5].length);let de=W+pe;return ne=0),re>0){let ue=pe||q(W.kind,W);ue&&d(K,re,ue)}return!0}function $(W){switch(W.parent&&W.parent.kind){case 286:if(W.parent.tagName===W)return 19;break;case 287:if(W.parent.tagName===W)return 20;break;case 285:if(W.parent.tagName===W)return 21;break;case 291:if(W.parent.name===W)return 22;break}}function q(W,pe){if(af(W))return 3;if((W===30||W===32)&&pe&&N0e(pe.parent))return 10;if(VH(W)){if(pe){let K=pe.parent;if(W===64&&(K.kind===260||K.kind===172||K.kind===169||K.kind===291)||K.kind===226||K.kind===224||K.kind===225||K.kind===227)return 5}return 10}else{if(W===9)return 4;if(W===10)return 25;if(W===11)return pe&&pe.parent.kind===291?24:6;if(W===14)return 6;if(B1(W))return 6;if(W===12)return 23;if(W===80){if(pe){switch(pe.parent.kind){case 263:return pe.parent.name===pe?11:void 0;case 168:return pe.parent.name===pe?15:void 0;case 264:return pe.parent.name===pe?13:void 0;case 266:return pe.parent.name===pe?12:void 0;case 267:return pe.parent.name===pe?14:void 0;case 169:return pe.parent.name===pe?z1(pe)?3:17:void 0}if(Xm(pe.parent))return 3}return 2}}}function ee(W){if(W&&R3(i,s,W.pos,W.getFullWidth())){CLe(e,W.kind);for(let pe of W.getChildren(t))J(pe)||ee(pe)}}}var yV;(e=>{function t(ne,le,me,de,Ae){let xe=Of(me,de);if(xe.parent&&($g(xe.parent)&&xe.parent.tagName===xe||yE(xe.parent))){let{openingElement:te,closingElement:he}=xe.parent.parent,Te=[te,he].map(({tagName:Ve})=>n(Ve,me));return[{fileName:me.fileName,highlightSpans:Te}]}return i(de,xe,ne,le,Ae)||s(xe,me)}e.getDocumentHighlights=t;function n(ne,le){return{fileName:le.fileName,textSpan:gf(ne,le),kind:"none"}}function i(ne,le,me,de,Ae){let xe=new Set(Ae.map(Ve=>Ve.fileName)),te=lc.getReferenceEntriesForNode(ne,le,me,Ae,de,void 0,xe);if(!te)return;let he=h3(te.map(lc.toHighlightSpan),Ve=>Ve.fileName,Ve=>Ve.span),Te=__(me.useCaseSensitiveFileNames());return Os(Vp(he.entries(),([Ve,Pe])=>{if(!xe.has(Ve)){if(!me.redirectTargetsMap.has(rc(Ve,me.getCurrentDirectory(),Te)))return;let ke=me.getSourceFile(Ve);Ve=jn(Ae,Be=>!!Be.redirectInfo&&Be.redirectInfo.redirectTarget===ke).fileName,M.assert(xe.has(Ve))}return{fileName:Ve,highlightSpans:Pe}}))}function s(ne,le){let me=a(ne,le);return me&&[{fileName:le.fileName,highlightSpans:me}]}function a(ne,le){switch(ne.kind){case 101:case 93:return vT(ne.parent)?re(ne.parent,le):void 0;case 107:return de(ne.parent,im,ee);case 111:return de(ne.parent,fY,q);case 113:case 85:case 98:let xe=ne.kind===85?ne.parent.parent:ne.parent;return de(xe,c2,$);case 109:return de(ne.parent,kO,J);case 84:case 90:return DO(ne.parent)||TN(ne.parent)?de(ne.parent.parent.parent,kO,J):void 0;case 83:case 88:return de(ne.parent,dw,F);case 99:case 117:case 92:return de(ne.parent,te=>V1(te,!0),L);case 137:return me(Vc,[137]);case 139:case 153:return me(U1,[139,153]);case 135:return de(ne.parent,eS,W);case 134:return Ae(W(ne));case 127:return Ae(pe(ne));case 103:case 147:return;default:return Sv(ne.kind)&&(f_(ne.parent)||fl(ne.parent))?Ae(D(ne.kind,ne.parent)):void 0}function me(xe,te){return de(ne.parent,xe,he=>{var Te;return Yi((Te=ci(he,Qm))==null?void 0:Te.symbol.declarations,Ve=>xe(Ve)?jn(Ve.getChildren(le),Pe=>xs(te,Pe.kind)):void 0)})}function de(xe,te,he){return te(xe)?Ae(he(xe,le)):void 0}function Ae(xe){return xe&&xe.map(te=>n(te,le))}}function u(ne){return fY(ne)?[ne]:c2(ne)?ds(ne.catchClause?u(ne.catchClause):ne.tryBlock&&u(ne.tryBlock),ne.finallyBlock&&u(ne.finallyBlock)):Us(ne)?void 0:S(ne,u)}function m(ne){let le=ne;for(;le.parent;){let me=le.parent;if(Xb(me)||me.kind===307)return me;if(c2(me)&&me.tryBlock===le&&me.catchClause)return le;le=me}}function d(ne){return dw(ne)?[ne]:Us(ne)?void 0:S(ne,d)}function S(ne,le){let me=[];return ne.forEachChild(de=>{let Ae=le(de);Ae!==void 0&&me.push(...JC(Ae))}),me}function E(ne,le){let me=x(le);return!!me&&me===ne}function x(ne){return Dr(ne,le=>{switch(le.kind){case 255:if(ne.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!ne.label||ce(le,ne.label.escapedText);default:return Us(le)&&"quit"}})}function D(ne,le){return Yi(I(le,dA(ne)),me=>KN(me,ne))}function I(ne,le){let me=ne.parent;switch(me.kind){case 268:case 307:case 241:case 296:case 297:return le&64&&ru(ne)?[...ne.members,ne]:me.statements;case 176:case 174:case 262:return[...me.parameters,...vi(me.parent)?me.parent.members:[]];case 263:case 231:case 264:case 187:let de=me.members;if(le&15){let Ae=jn(me.members,Vc);if(Ae)return[...de,...Ae.parameters]}else if(le&64)return[...de,me];return de;case 210:return;default:M.assertNever(me,"Invalid container kind.")}}function R(ne,le,...me){return le&&xs(me,le.kind)?(ne.push(le),!0):!1}function L(ne){let le=[];if(R(le,ne.getFirstToken(),99,117,92)&&ne.kind===246){let me=ne.getChildren();for(let de=me.length-1;de>=0&&!R(le,me[de],117);de--);}return Et(d(ne.statement),me=>{E(ne,me)&&R(le,me.getFirstToken(),83,88)}),le}function F(ne){let le=x(ne);if(le)switch(le.kind){case 248:case 249:case 250:case 246:case 247:return L(le);case 255:return J(le)}}function J(ne){let le=[];return R(le,ne.getFirstToken(),109),Et(ne.caseBlock.clauses,me=>{R(le,me.getFirstToken(),84,90),Et(d(me),de=>{E(ne,de)&&R(le,de.getFirstToken(),83)})}),le}function $(ne,le){let me=[];if(R(me,ne.getFirstToken(),113),ne.catchClause&&R(me,ne.catchClause.getFirstToken(),85),ne.finallyBlock){let de=Ma(ne,98,le);R(me,de,98)}return me}function q(ne,le){let me=m(ne);if(!me)return;let de=[];return Et(u(me),Ae=>{de.push(Ma(Ae,111,le))}),Xb(me)&&Cv(me,Ae=>{de.push(Ma(Ae,107,le))}),de}function ee(ne,le){let me=Ip(ne);if(!me)return;let de=[];return Cv(ao(me.body,Js),Ae=>{de.push(Ma(Ae,107,le))}),Et(u(me.body),Ae=>{de.push(Ma(Ae,111,le))}),de}function W(ne){let le=Ip(ne);if(!le)return;let me=[];return le.modifiers&&le.modifiers.forEach(de=>{R(me,de,134)}),qs(le,de=>{K(de,Ae=>{eS(Ae)&&R(me,Ae.getFirstToken(),135)})}),me}function pe(ne){let le=Ip(ne);if(!le)return;let me=[];return qs(le,de=>{K(de,Ae=>{Vj(Ae)&&R(me,Ae.getFirstToken(),127)})}),me}function K(ne,le){le(ne),!Us(ne)&&!vi(ne)&&!Xu(ne)&&!xl(ne)&&!sm(ne)&&!wi(ne)&&qs(ne,me=>K(me,le))}function re(ne,le){let me=ue(ne,le),de=[];for(let Ae=0;Ae=xe.end;Te--)if(!Dg(le.text.charCodeAt(Te))){he=!1;break}if(he){de.push({fileName:le.fileName,textSpan:wl(xe.getStart(),te.end),kind:"reference"}),Ae++;continue}}de.push(n(me[Ae],le))}return de}function ue(ne,le){let me=[];for(;vT(ne.parent)&&ne.parent.elseStatement===ne;)ne=ne.parent;for(;;){let de=ne.getChildren(le);R(me,de[0],101);for(let Ae=de.length-1;Ae>=0&&!R(me,de[Ae],93);Ae--);if(!ne.elseStatement||!vT(ne.elseStatement))break;ne=ne.elseStatement}return me}function ce(ne,le){return!!Dr(ne.parent,me=>rS(me)?me.label.escapedText===le:"quit")}})(yV||(yV={}));function R8(e){return!!e.sourceFile}function _ve(e,t,n){return SZ(e,t,n)}function SZ(e,t="",n,i){let s=new Map,a=__(!!e);function u(){let F=Os(s.keys()).filter(J=>J&&J.charAt(0)==="_").map(J=>{let $=s.get(J),q=[];return $.forEach((ee,W)=>{R8(ee)?q.push({name:W,scriptKind:ee.sourceFile.scriptKind,refCount:ee.languageServiceRefCount}):ee.forEach((pe,K)=>q.push({name:W,scriptKind:K,refCount:pe.languageServiceRefCount}))}),q.sort((ee,W)=>W.refCount-ee.refCount),{bucket:J,sourceFiles:q}});return JSON.stringify(F,void 0,2)}function m(F){return typeof F.getCompilationSettings=="function"?F.getCompilationSettings():F}function d(F,J,$,q,ee,W){let pe=rc(F,t,a),K=TZ(m(J));return S(F,pe,J,K,$,q,ee,W)}function S(F,J,$,q,ee,W,pe,K){return I(F,J,$,q,ee,W,!0,pe,K)}function E(F,J,$,q,ee,W){let pe=rc(F,t,a),K=TZ(m(J));return x(F,pe,J,K,$,q,ee,W)}function x(F,J,$,q,ee,W,pe,K){return I(F,J,m($),q,ee,W,!1,pe,K)}function D(F,J){let $=R8(F)?F:F.get(M.checkDefined(J,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return M.assert(J===void 0||!$||$.sourceFile.scriptKind===J,`Script kind should match provided ScriptKind:${J} and sourceFile.scriptKind: ${$?.sourceFile.scriptKind}, !entry: ${!$}`),$}function I(F,J,$,q,ee,W,pe,K,re){var ue,ce,ne,le;K=uj(F,K);let me=m($),de=$===me?void 0:$,Ae=K===6?100:Qo(me),xe=typeof re=="object"?re:{languageVersion:Ae,impliedNodeFormat:de&&t8(J,(le=(ne=(ce=(ue=de.getCompilerHost)==null?void 0:ue.call(de))==null?void 0:ce.getModuleResolutionCache)==null?void 0:ne.call(ce))==null?void 0:le.getPackageJsonInfoCache(),de,me),setExternalModuleIndicator:KR(me),jsDocParsingMode:n};xe.languageVersion=Ae,M.assertEqual(n,xe.jsDocParsingMode);let te=s.size,he=fve(q,xe.impliedNodeFormat),Te=mv(s,he,()=>new Map);if(kn){s.size>te&&kn.instant(kn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:me.configFilePath,key:he});let De=!ju(J)&&Iu(s,(Be,lt)=>lt!==he&&Be.has(J)&<);De&&kn.instant(kn.Phase.Session,"documentRegistryBucketOverlap",{path:J,key1:De,key2:he})}let Ve=Te.get(J),Pe=Ve&&D(Ve,K);if(!Pe&&i){let De=i.getDocument(he,J);De&&De.scriptKind===K&&De.text===ok(ee)&&(M.assert(pe),Pe={sourceFile:De,languageServiceRefCount:0},ke())}if(Pe)Pe.sourceFile.version!==W&&(Pe.sourceFile=eee(Pe.sourceFile,ee,W,ee.getChangeRange(Pe.sourceFile.scriptSnapshot)),i&&i.setDocument(he,J,Pe.sourceFile)),pe&&Pe.languageServiceRefCount++;else{let De=RV(F,ee,xe,W,!1,K);i&&i.setDocument(he,J,De),Pe={sourceFile:De,languageServiceRefCount:1},ke()}return M.assert(Pe.languageServiceRefCount!==0),Pe.sourceFile;function ke(){if(!Ve)Te.set(J,Pe);else if(R8(Ve)){let De=new Map;De.set(Ve.sourceFile.scriptKind,Ve),De.set(K,Pe),Te.set(J,De)}else Ve.set(K,Pe)}}function R(F,J,$,q){let ee=rc(F,t,a),W=TZ(J);return L(ee,W,$,q)}function L(F,J,$,q){let ee=M.checkDefined(s.get(fve(J,q))),W=ee.get(F),pe=D(W,$);pe.languageServiceRefCount--,M.assert(pe.languageServiceRefCount>=0),pe.languageServiceRefCount===0&&(R8(W)?ee.delete(F):(W.delete($),W.size===1&&ee.set(F,ra(W.values(),ec))))}return{acquireDocument:d,acquireDocumentWithKey:S,updateDocument:E,updateDocumentWithKey:x,releaseDocument:R,releaseDocumentWithKey:L,getKeyForCompilationSettings:TZ,getDocumentRegistryBucketKeyWithMode:fve,reportStats:u,getBuckets:()=>s}}function TZ(e){return lK(e,WY)}function fve(e,t){return t?`${e}|${t}`:e}function pve(e,t,n,i,s,a,u){let m=oN(i),d=__(m),S=bZ(t,n,d,u),E=bZ(n,t,d,u);return bn.ChangeTracker.with({host:i,formatContext:s,preferences:a},x=>{F2t(e,x,S,t,n,i.getCurrentDirectory(),m),j2t(e,x,S,E,i,d)})}function bZ(e,t,n,i){let s=n(e);return u=>{let m=i&&i.tryGetSourcePosition({fileName:u,pos:0}),d=a(m?m.fileName:u);return m?d===void 0?void 0:L2t(m.fileName,d,u,n):d};function a(u){if(n(u)===s)return t;let m=N$(u,s,n);return m===void 0?void 0:t+"/"+m}}function L2t(e,t,n,i){let s=iw(e,t,i);return dve(yi(n),s)}function F2t(e,t,n,i,s,a,u){let{configFile:m}=e.getCompilerOptions();if(!m)return;let d=yi(m.fileName),S=Pw(m);if(!S)return;mve(S,(I,R)=>{switch(R){case"files":case"include":case"exclude":{if(E(I)||R!=="include"||!Ku(I.initializer))return;let F=Yi(I.initializer.elements,$=>jo($)?$.text:void 0);if(F.length===0)return;let J=lj(d,[],F,u,a);$1(M.checkDefined(J.includeFilePattern),u).test(i)&&!$1(M.checkDefined(J.includeFilePattern),u).test(s)&&t.insertNodeAfter(m,qo(I.initializer.elements),U.createStringLiteral(D(s)));return}case"compilerOptions":mve(I.initializer,(L,F)=>{let J=YY(F);M.assert(J?.type!=="listOrElement"),J&&(J.isFilePath||J.type==="list"&&J.element.isFilePath)?E(L):F==="paths"&&mve(L.initializer,$=>{if(Ku($.initializer))for(let q of $.initializer.elements)x(q)})});return}});function E(I){let R=Ku(I.initializer)?I.initializer.elements:[I.initializer],L=!1;for(let F of R)L=x(F)||L;return L}function x(I){if(!jo(I))return!1;let R=dve(d,I.text),L=n(R);return L!==void 0?(t.replaceRangeWithText(m,NLe(I,m),D(L)),!0):!1}function D(I){return Km(d,I,!u)}}function j2t(e,t,n,i,s,a){let u=e.getSourceFiles();for(let m of u){let d=n(m.fileName),S=d??m.fileName,E=yi(S),x=i(m.fileName),D=x||m.fileName,I=yi(D),R=d!==void 0||x!==void 0;V2t(m,t,L=>{if(!zp(L))return;let F=dve(I,L),J=n(F);return J===void 0?void 0:Vx(Km(E,J,a))},L=>{let F=e.getTypeChecker().getSymbolAtLocation(L);if(F?.declarations&&F.declarations.some($=>U_($)))return;let J=x!==void 0?PLe(L,ZA(L.text,D,e.getCompilerOptions(),s),n,u):U2t(F,L,m,e,s,n);return J!==void 0&&(J.updated||R&&zp(L.text))?IT.updateModuleSpecifier(e.getCompilerOptions(),m,S,J.newFileName,ak(e,s),L.text):void 0})}}function B2t(e,t){return eo(ii(e,t))}function dve(e,t){return Vx(B2t(e,t))}function U2t(e,t,n,i,s,a){if(e){let u=jn(e.declarations,qi).fileName,m=a(u);return m===void 0?{newFileName:u,updated:!1}:{newFileName:m,updated:!0}}else{let u=i.getModeForUsageLocation(n,t),m=s.resolveModuleNameLiterals||!s.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t,n):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,u);return PLe(t,m,a,i.getSourceFiles())}}function PLe(e,t,n,i){if(!t)return;if(t.resolvedModule){let d=m(t.resolvedModule.resolvedFileName);if(d)return d}let s=Et(t.failedLookupLocations,a)||zp(e.text)&&Et(t.failedLookupLocations,u);if(s)return s;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function a(d){let S=n(d);return S&&jn(i,E=>E.fileName===S)?u(d):void 0}function u(d){return Wc(d,"/package.json")?void 0:m(d)}function m(d){let S=n(d);return S&&{newFileName:S,updated:!0}}}function V2t(e,t,n,i){for(let s of e.referencedFiles||ve){let a=n(s.fileName);a!==void 0&&a!==e.text.slice(s.pos,s.end)&&t.replaceRangeWithText(e,s,a)}for(let s of e.imports){let a=i(s);a!==void 0&&a!==s.text&&t.replaceRangeWithText(e,NLe(s,e),a)}}function NLe(e,t){return Ed(e.getStart(t)+1,e.end-1)}function mve(e,t){if(ko(e))for(let n of e.properties)ql(n)&&jo(n.name)&&t(n,n.name.text)}var EZ=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(EZ||{});function E6(e,t){return{kind:e,isCaseSensitive:t}}function gve(e){let t=new Map,n=e.trim().split(".").map(i=>W2t(i.trim()));if(n.length===1&&n[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>E6(2,!0),getFullMatch:()=>E6(2,!0),patternContainsDots:!1};if(!n.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,s)=>J2t(i,s,n,t),getMatchForLastSegmentOfPattern:i=>hve(i,qo(n),t),patternContainsDots:n.length>1}}function J2t(e,t,n,i){if(!hve(t,qo(n),i)||n.length-1>e.length)return;let a;for(let u=n.length-2,m=e.length-1;u>=0;u-=1,m-=1)a=wLe(a,hve(e[m],n[u],i));return a}function DLe(e,t){let n=t.get(e);return n||t.set(e,n=Eve(e)),n}function ILe(e,t,n){let i=G2t(e,t.textLowerCase);if(i===0)return E6(t.text.length===e.length?0:1,fs(e,t.text));if(t.isLowerCase){if(i===-1)return;let s=DLe(e,n);for(let a of s)if(yve(e,a,t.text,!0))return E6(2,yve(e,a,t.text,!1));if(t.text.length0)return E6(2,!0);if(t.characterSpans.length>0){let s=DLe(e,n),a=OLe(e,s,t,!1)?!0:OLe(e,s,t,!0)?!1:void 0;if(a!==void 0)return E6(3,a)}}}function hve(e,t,n){if(xZ(t.totalTextChunk.text,a=>a!==32&&a!==42)){let a=ILe(e,t.totalTextChunk,n);if(a)return a}let i=t.subWordTextChunks,s;for(let a of i)s=wLe(s,ILe(e,a,n));return s}function wLe(e,t){return zW([e,t],q2t)}function q2t(e,t){return e===void 0?1:t===void 0?-1:tc(e.kind,t.kind)||XS(!e.isCaseSensitive,!t.isCaseSensitive)}function yve(e,t,n,i,s={start:0,length:n.length}){return s.length<=t.length&&FLe(0,s.length,a=>z2t(n.charCodeAt(s.start+a),e.charCodeAt(t.start+a),i))}function z2t(e,t,n){return n?vve(e)===vve(t):e===t}function OLe(e,t,n,i){let s=n.characterSpans,a=0,u=0,m,d;for(;;){if(u===s.length)return!0;if(a===t.length)return!1;let S=t[a],E=!1;for(;u=65&&e<=90)return!0;if(e<127||!E5(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function RLe(e){if(e>=97&&e<=122)return!0;if(e<127||!E5(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function G2t(e,t){let n=e.length-t.length;for(let i=0;i<=n;i++)if(xZ(t,(s,a)=>vve(e.charCodeAt(a+i))===s))return i;return-1}function vve(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function Sve(e){return e>=48&&e<=57}function H2t(e){return nD(e)||RLe(e)||Sve(e)||e===95||e===36}function $2t(e){let t=[],n=0,i=0;for(let s=0;s0&&(t.push(Tve(e.substr(n,i))),i=0)}return i>0&&t.push(Tve(e.substr(n,i))),t}function Tve(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:bve(e)}}function bve(e){return MLe(e,!1)}function Eve(e){return MLe(e,!0)}function MLe(e,t){let n=[],i=0;for(let s=1;sxve(i)&&i!==95,t,n)}function Y2t(e,t,n){return t!==n&&t+1t(e.charCodeAt(s),s))}function jLe(e,t=!0,n=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[],a,u,m,d=0,S=!1;function E(){return u=m,m=z_.scan(),m===19?d++:m===20&&d--,m}function x(){let W=z_.getTokenValue(),pe=z_.getTokenStart();return{fileName:W,pos:pe,end:pe+W.length}}function D(){a||(a=[]),a.push({ref:x(),depth:d})}function I(){s.push(x()),R()}function R(){d===0&&(S=!0)}function L(){let W=z_.getToken();return W===138?(W=E(),W===144&&(W=E(),W===11&&D()),!0):!1}function F(){if(u===25)return!1;let W=z_.getToken();if(W===102){if(W=E(),W===21){if(W=E(),W===11||W===15)return I(),!0}else{if(W===11)return I(),!0;if(W===156&&z_.lookAhead(()=>{let K=z_.scan();return K!==161&&(K===42||K===19||K===80||af(K))})&&(W=E()),W===80||af(W))if(W=E(),W===161){if(W=E(),W===11)return I(),!0}else if(W===64){if($(!0))return!0}else if(W===28)W=E();else return!0;if(W===19){for(W=E();W!==20&&W!==1;)W=E();W===20&&(W=E(),W===161&&(W=E(),W===11&&I()))}else W===42&&(W=E(),W===130&&(W=E(),(W===80||af(W))&&(W=E(),W===161&&(W=E(),W===11&&I()))))}return!0}return!1}function J(){let W=z_.getToken();if(W===95){if(R(),W=E(),W===156&&z_.lookAhead(()=>{let K=z_.scan();return K===42||K===19})&&(W=E()),W===19){for(W=E();W!==20&&W!==1;)W=E();W===20&&(W=E(),W===161&&(W=E(),W===11&&I()))}else if(W===42)W=E(),W===161&&(W=E(),W===11&&I());else if(W===102&&(W=E(),W===156&&z_.lookAhead(()=>{let K=z_.scan();return K===80||af(K)})&&(W=E()),(W===80||af(W))&&(W=E(),W===64&&$(!0))))return!0;return!0}return!1}function $(W,pe=!1){let K=W?E():z_.getToken();return K===149?(K=E(),K===21&&(K=E(),(K===11||pe&&K===15)&&I()),!0):!1}function q(){let W=z_.getToken();if(W===80&&z_.getTokenValue()==="define"){if(W=E(),W!==21)return!0;if(W=E(),W===11||W===15)if(W=E(),W===28)W=E();else return!0;if(W!==23)return!0;for(W=E();W!==24&&W!==1;)(W===11||W===15)&&I(),W=E();return!0}return!1}function ee(){for(z_.setText(e),E();z_.getToken()!==1;){if(z_.getToken()===16){let W=[z_.getToken()];e:for(;kt(W);){let pe=z_.scan();switch(pe){case 1:break e;case 102:F();break;case 16:W.push(pe);break;case 19:kt(W)&&W.push(pe);break;case 20:kt(W)&&(yc(W)===16?z_.reScanTemplateToken(!1)===18&&W.pop():W.pop());break}}E()}L()||F()||J()||n&&($(!1,!0)||q())||E()}z_.setText(void 0)}if(t&&ee(),UY(i,e),VY(i,aa),S){if(a)for(let W of a)s.push(W.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let W;if(a)for(let pe of a)pe.depth===0?(W||(W=[]),W.push(pe.ref.fileName)):s.push(pe.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:W}}}var X2t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/;function Cve(e){let t=__(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:m,tryGetGeneratedPosition:d,toLineColumnOffset:D,clearCache:I,documentPositionMappers:s};function a(R){return rc(R,n,t)}function u(R,L){let F=a(R),J=s.get(F);if(J)return J;let $;if(e.getDocumentPositionMapper)$=e.getDocumentPositionMapper(R,L);else if(e.readFile){let q=x(R);$=q&&CZ({getSourceFileLike:x,getCanonicalFileName:t,log:ee=>e.log(ee)},R,IK(q.text,vy(q)),ee=>!e.fileExists||e.fileExists(ee)?e.readFile(ee):void 0)}return s.set(F,$||OK),$||OK}function m(R){if(!ju(R.fileName)||!S(R.fileName))return;let F=u(R.fileName).getSourcePosition(R);return!F||F===R?void 0:m(F)||F}function d(R){if(ju(R.fileName))return;let L=S(R.fileName);if(!L)return;let F=e.getProgram();if(F.isSourceOfProjectReferenceRedirect(L.fileName))return;let $=F.getCompilerOptions().outFile,q=$?lf($)+".d.ts":w9(R.fileName,F.getCompilerOptions(),F);if(q===void 0)return;let ee=u(q,R.fileName).getGeneratedPosition(R);return ee===R?void 0:ee}function S(R){let L=e.getProgram();if(!L)return;let F=a(R),J=L.getSourceFileByPath(F);return J&&J.resolvedPath===F?J:void 0}function E(R){let L=a(R),F=i.get(L);if(F!==void 0)return F||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(R)){i.set(L,!1);return}let J=e.readFile(R),$=J?Q2t(J):!1;return i.set(L,$),$||void 0}function x(R){return e.getSourceFileLike?e.getSourceFileLike(R):S(R)||E(R)}function D(R,L){return x(R).getLineAndCharacterOfPosition(L)}function I(){i.clear(),s.clear()}}function CZ(e,t,n,i){let s=Vge(n);if(s){let m=X2t.exec(s);if(m){if(m[1]){let d=m[1];return BLe(e,Yfe(uu,d),t)}s=void 0}}let a=[];s&&a.push(s),a.push(t+".map");let u=s&&Cs(s,yi(t));for(let m of a){let d=Cs(m,yi(t)),S=i(d,u);if(bs(S))return BLe(e,S,d);if(S!==void 0)return S||void 0}}function BLe(e,t,n){let i=qge(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(bs)))return Wge(e,i,n)}function Q2t(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(n){return DP(vy(this),n)}}}var Ave=new Map;function AZ(e,t,n){var i;t.getSemanticDiagnostics(e,n);let s=[],a=t.getTypeChecker();!(e.impliedNodeFormat===1||Il(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(R0e(t)||LQ(t.getCompilerOptions()))&&Z2t(e)&&s.push(mn(nCt(e.commonJsModuleIndicator),v.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let m=Pf(e);if(Ave.clear(),d(e),TA(t.getCompilerOptions()))for(let S of e.imports){let E=Rw(S),x=eCt(E);if(!x)continue;let D=(i=t.getResolvedModuleFromModuleSpecifier(S,e))==null?void 0:i.resolvedModule,I=D&&t.getSourceFile(D.resolvedFileName);I&&I.externalModuleIndicator&&I.externalModuleIndicator!==!0&&pc(I.externalModuleIndicator)&&I.externalModuleIndicator.isExportEquals&&s.push(mn(x,v.Import_may_be_converted_to_a_default_import))}return On(s,e.bindSuggestionDiagnostics),On(s,t.getSuggestionDiagnostics(e,n)),s.sort((S,E)=>S.start-E.start);function d(S){if(m)sCt(S,a)&&s.push(mn(Ci(S.parent)?S.parent.name:S,v.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(fl(S)&&S.parent===e&&S.declarationList.flags&2&&S.declarationList.declarations.length===1){let x=S.declarationList.declarations[0].initializer;x&&Nf(x,!0)&&s.push(mn(x,v.require_call_may_be_converted_to_an_import))}let E=P_.getJSDocTypedefNodes(S);for(let x of E)s.push(mn(x,v.JSDoc_typedef_may_be_converted_to_TypeScript_type));P_.parameterShouldGetTypeFromJSDoc(S)&&s.push(mn(S.name||S,v.JSDoc_types_may_be_moved_to_TypeScript_types))}NZ(S)&&tCt(S,a,s),S.forEachChild(d)}}function Z2t(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(n=>!!n.initializer&&Nf(ULe(n.initializer),!0));case 244:{let{expression:n}=t;if(!Dn(n))return Nf(n,!0);let i=ll(n);return i===1||i===2}default:return!1}})}function ULe(e){return Hn(e)?ULe(e.expression):e}function eCt(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&jo(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function tCt(e,t,n){rCt(e,t)&&!Ave.has(zLe(e))&&n.push(mn(!e.name&&Ci(e.parent)&&$e(e.parent.name)?e.parent.name:e,v.This_may_be_converted_to_an_async_function))}function rCt(e,t){return!Bw(e)&&e.body&&Js(e.body)&&iCt(e.body,t)&&kZ(e,t)}function kZ(e,t){let n=t.getSignatureFromDeclaration(e),i=n?t.getReturnTypeOfSignature(n):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function nCt(e){return Dn(e)?e.left:e}function iCt(e,t){return!!Cv(e,n=>vV(n,t))}function vV(e,t){return im(e)&&!!e.expression&&PZ(e.expression,t)}function PZ(e,t){if(!VLe(e)||!JLe(e)||!e.arguments.every(i=>qLe(i,t)))return!1;let n=e.expression.expression;for(;VLe(n)||Hn(n);)if(to(n)){if(!JLe(n)||!n.arguments.every(i=>qLe(i,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function VLe(e){return to(e)&&(_8(e,"then")||_8(e,"catch")||_8(e,"finally"))}function JLe(e){let t=e.expression.name.text,n=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>n?!1:e.arguments.lengthi.kind===106||$e(i)&&i.text==="undefined")}function qLe(e,t){switch(e.kind){case 262:case 218:if(Rl(e)&1)return!1;case 219:Ave.set(zLe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||Dt($u(i,t).declarations,s=>Us(s)||bv(s)&&!!s.initializer&&Us(s.initializer)):!1}default:return!1}}function zLe(e){return`${e.pos.toString()}:${e.end.toString()}`}function sCt(e,t){var n,i,s,a;if(ic(e)){if(Ci(e.parent)&&((n=e.symbol.members)!=null&&n.size))return!0;let u=t.getSymbolOfExpando(e,!1);return!!(u&&((i=u.exports)!=null&&i.size||(s=u.members)!=null&&s.size))}return El(e)?!!((a=e.symbol.members)!=null&&a.size):!1}function NZ(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var oCt=new Set(["isolatedModules"]);function kve(e,t){return GLe(e,t,!1)}function WLe(e,t){return GLe(e,t,!0)}var aCt=`/// 
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number {}
interface Object {}
interface RegExp {}
interface String {}
interface Array { length: number; [n: number]: T; }
interface SymbolConstructor {
    (desc?: string | number): symbol;
    for(name: string): symbol;
    readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
    readonly [Symbol.toStringTag]: string;
}`,SV="lib.d.ts",Pve;function GLe(e,t,n){Pve??(Pve=$A(SV,aCt,{languageVersion:99}));let i=[],s=t.compilerOptions?DZ(t.compilerOptions,i):{},a=OV();for(let L in a)Ha(a,L)&&s[L]===void 0&&(s[L]=a[L]);for(let L of jme)s.verbatimModuleSyntax&&oCt.has(L.name)||(s[L.name]=L.transpileOptionValue);s.suppressOutputPathCheck=!0,s.allowNonTsExtensions=!0,n?(s.declaration=!0,s.emitDeclarationOnly=!0,s.isolatedDeclarations=!0):s.declaration=!1;let u=wv(s),m={getSourceFile:L=>L===eo(d)?S:L===eo(SV)?Pve:void 0,writeFile:(L,F)=>{wc(L,".map")?(M.assertEqual(x,void 0,"Unexpected multiple source map outputs, file:",L),x=F):(M.assertEqual(E,void 0,"Unexpected multiple outputs, file:",L),E=F)},getDefaultLibFileName:()=>SV,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:L=>L,getCurrentDirectory:()=>"",getNewLine:()=>u,fileExists:L=>L===d||!!n&&L===SV,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),S=$A(d,e,{languageVersion:Qo(s),impliedNodeFormat:t8(rc(d,"",m.getCanonicalFileName),void 0,m,s),setExternalModuleIndicator:KR(s),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(S.moduleName=t.moduleName),t.renamedDependencies&&(S.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let E,x,I=r8(n?[d,SV]:[d],s,m);t.reportDiagnostics&&(On(i,I.getSyntacticDiagnostics(S)),On(i,I.getOptionsDiagnostics()));let R=I.emit(void 0,void 0,void 0,n,t.transformers,n);return On(i,R.diagnostics),E===void 0?M.fail("Output generation failed"):{outputText:E,diagnostics:i,sourceMapText:x}}function HLe(e,t,n,i,s){let a=kve(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!i,moduleName:s});return On(i,a.diagnostics),a.outputText}var Nve;function DZ(e,t){Nve=Nve||ti(og,n=>typeof n.type=="object"&&!Iu(n.type,i=>typeof i!="number")),e=NQ(e);for(let n of Nve){if(!Ha(e,n.name))continue;let i=e[n.name];bs(i)?e[n.name]=_B(n,i,t):Iu(n.type,s=>s===i)||t.push(Jme(n))}return e}var Dve={};k(Dve,{getNavigateToItems:()=>$Le});function $Le(e,t,n,i,s,a,u){let m=gve(i);if(!m)return ve;let d=[],S=e.length===1?e[0]:void 0;for(let E of e)n.throwIfCancellationRequested(),!(a&&E.isDeclarationFile)&&(YLe(E,!!u,S)||E.getNamedDeclarations().forEach((x,D)=>{cCt(m,D,x,t,E.fileName,!!u,S,d)}));return d.sort(fCt),(s===void 0?d:d.slice(0,s)).map(pCt)}function YLe(e,t,n){return e!==n&&t&&(D8(e.path)||e.hasNoDefaultLib)}function cCt(e,t,n,i,s,a,u,m){let d=e.getMatchForLastSegmentOfPattern(t);if(d){for(let S of n)if(lCt(S,i,a,u))if(e.patternContainsDots){let E=e.getFullMatch(_Ct(S),t);E&&m.push({name:t,fileName:s,matchKind:E.kind,isCaseSensitive:E.isCaseSensitive,declaration:S})}else m.push({name:t,fileName:s,matchKind:d.kind,isCaseSensitive:d.isCaseSensitive,declaration:S})}}function lCt(e,t,n,i){var s;switch(e.kind){case 273:case 276:case 271:let a=t.getSymbolAtLocation(e.name),u=t.getAliasedSymbol(a);return a.escapedName!==u.escapedName&&!((s=u.declarations)!=null&&s.every(m=>YLe(m.getSourceFile(),n,i)));default:return!0}}function uCt(e,t){let n=Ns(e);return!!n&&(KLe(n,t)||n.kind===167&&Ive(n.expression,t))}function Ive(e,t){return KLe(e,t)||Hn(e)&&(t.push(e.name.text),!0)&&Ive(e.expression,t)}function KLe(e,t){return Fg(e)&&(t.push(Zd(e)),!0)}function _Ct(e){let t=[],n=Ns(e);if(n&&n.kind===167&&!Ive(n.expression,t))return ve;t.shift();let i=T2(e);for(;i;){if(!uCt(i,t))return ve;i=T2(i)}return t.reverse()}function fCt(e,t){return tc(e.matchKind,t.matchKind)||S3(e.name,t.name)}function pCt(e){let t=e.declaration,n=T2(t),i=n&&Ns(n);return{name:e.name,kind:PE(t),kindModifiers:p6(t),matchKind:EZ[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:gf(t),containerName:i?i.text:"",containerKind:i?PE(n):""}}var wve={};k(wve,{getNavigationBarItems:()=>QLe,getNavigationTree:()=>ZLe});var dCt=/\s+/g,Ove=150,IZ,M8,TV=[],qv,XLe=[],iD,Rve=[];function QLe(e,t){IZ=t,M8=e;try{return kr(vCt(r7e(e)),SCt)}finally{e7e()}}function ZLe(e,t){IZ=t,M8=e;try{return _7e(r7e(e))}finally{e7e()}}function e7e(){M8=void 0,IZ=void 0,TV=[],qv=void 0,Rve=[]}function bV(e){return x6(e.getText(M8))}function wZ(e){return e.node.kind}function t7e(e,t){e.children?e.children.push(t):e.children=[t]}function r7e(e){M.assert(!TV.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};qv=t;for(let n of e.statements)lk(n);return RT(),M.assert(!qv&&!TV.length),t}function wE(e,t){t7e(qv,Mve(e,t))}function Mve(e,t){return{node:e,name:t||(f_(e)||Pt(e)?Ns(e):void 0),additionalNodes:void 0,parent:qv,children:void 0,indent:qv.indent+1}}function n7e(e){iD||(iD=new Map),iD.set(e,!0)}function i7e(e){for(let t=0;t0;i--){let s=n[i];OE(e,s)}return[n.length-1,n[0]]}function OE(e,t){let n=Mve(e,t);t7e(qv,n),TV.push(qv),XLe.push(iD),iD=void 0,qv=n}function RT(){qv.children&&(OZ(qv.children,qv),jve(qv.children)),qv=TV.pop(),iD=XLe.pop()}function MT(e,t,n){OE(e,n),lk(t),RT()}function o7e(e){e.initializer&&bCt(e.initializer)?(OE(e),qs(e.initializer,lk),RT()):MT(e,e.initializer)}function Lve(e){let t=Ns(e);if(t===void 0)return!1;if(Go(t)){let n=t.expression;return nc(n)||Df(n)||Wp(n)}return!!t}function lk(e){if(IZ.throwIfCancellationRequested(),!(!e||$C(e)))switch(e.kind){case 176:let t=e;MT(t,t.body);for(let u of t.parameters)cp(u,t)&&wE(u);break;case 174:case 177:case 178:case 173:Lve(e)&&MT(e,e.body);break;case 172:Lve(e)&&o7e(e);break;case 171:Lve(e)&&wE(e);break;case 273:let n=e;n.name&&wE(n.name);let{namedBindings:i}=n;if(i)if(i.kind===274)wE(i);else for(let u of i.elements)wE(u);break;case 304:MT(e,e.name);break;case 305:let{expression:s}=e;$e(s)?wE(e,s):wE(e);break;case 208:case 303:case 260:{let u=e;$s(u.name)?lk(u.name):o7e(u);break}case 262:let a=e.name;a&&$e(a)&&n7e(a.text),MT(e,e.body);break;case 219:case 218:MT(e,e.body);break;case 266:OE(e);for(let u of e.members)TCt(u)||wE(u);RT();break;case 263:case 231:case 264:OE(e);for(let u of e.members)lk(u);RT();break;case 267:MT(e,p7e(e).body);break;case 277:{let u=e.expression,m=ko(u)||to(u)?u:fc(u)||ic(u)?u.body:void 0;m?(OE(e),lk(m),RT()):wE(e);break}case 281:case 271:case 181:case 179:case 180:case 265:wE(e);break;case 213:case 226:{let u=ll(e);switch(u){case 1:case 2:MT(e,e.right);return;case 6:case 3:{let m=e,d=m.left,S=u===3?d.expression:d,E=0,x;$e(S.expression)?(n7e(S.expression.text),x=S.expression):[E,x]=s7e(m,S.expression),u===6?ko(m.right)&&m.right.properties.length>0&&(OE(m,x),qs(m.right,lk),RT()):ic(m.right)||fc(m.right)?MT(e,m.right,x):(OE(m,x),MT(e,m.right,d.name),RT()),i7e(E);return}case 7:case 9:{let m=e,d=u===7?m.arguments[0]:m.arguments[0].expression,S=m.arguments[1],[E,x]=s7e(e,d);OE(e,x),OE(e,At(U.createIdentifier(S.text),S)),lk(e.arguments[2]),RT(),RT(),i7e(E);return}case 5:{let m=e,d=m.left,S=d.expression;if($e(S)&&g0(d)!=="prototype"&&iD&&iD.has(S.text)){ic(m.right)||fc(m.right)?MT(e,m.right,S):eE(d)&&(OE(m,S),MT(m.left,m.right,bR(d)),RT());return}break}case 4:case 0:case 8:break;default:M.assertNever(u)}}default:Np(e)&&Et(e.jsDoc,u=>{Et(u.tags,m=>{Qd(m)&&wE(m)})}),qs(e,lk)}}function OZ(e,t){let n=new Map;JI(e,(i,s)=>{let a=i.name||Ns(i.node),u=a&&bV(a);if(!u)return!0;let m=n.get(u);if(!m)return n.set(u,i),!0;if(m instanceof Array){for(let d of m)if(a7e(d,i,s,t))return!1;return m.push(i),!0}else{let d=m;return a7e(d,i,s,t)?!1:(n.set(u,[d,i]),!0)}})}var L8={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function mCt(e,t,n,i){function s(m){return ic(m)||El(m)||Ci(m)}let a=Dn(t.node)||to(t.node)?ll(t.node):0,u=Dn(e.node)||to(e.node)?ll(e.node):0;if(L8[a]&&L8[u]||s(e.node)&&L8[a]||s(t.node)&&L8[u]||ru(e.node)&&Fve(e.node)&&L8[a]||ru(t.node)&&L8[u]||ru(e.node)&&Fve(e.node)&&s(t.node)||ru(t.node)&&s(e.node)&&Fve(e.node)){let m=e.additionalNodes&&yc(e.additionalNodes)||e.node;if(!ru(e.node)&&!ru(t.node)||s(e.node)||s(t.node)){let S=s(e.node)?e.node:s(t.node)?t.node:void 0;if(S!==void 0){let E=At(U.createConstructorDeclaration(void 0,[],void 0),S),x=Mve(E);x.indent=e.indent+1,x.children=e.node===S?e.children:t.children,e.children=e.node===S?ds([x],t.children||[t]):ds(e.children||[{...e}],[x])}else(e.children||t.children)&&(e.children=ds(e.children||[{...e}],t.children||[t]),e.children&&(OZ(e.children,e),jve(e.children)));m=e.node=At(U.createClassDeclaration(void 0,e.name||U.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=ds(e.children,t.children),e.children&&OZ(e.children,e);let d=t.node;return i.children[n-1].node.end===m.end?At(m,{pos:m.pos,end:d.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(At(U.createClassDeclaration(void 0,e.name||U.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return a!==0}function a7e(e,t,n,i){return mCt(e,t,n,i)?!0:gCt(e.node,t.node,i)?(hCt(e,t),!0):!1}function gCt(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&!(c7e(e,n)&&c7e(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return co(e)===co(t);case 267:return l7e(e,t)&&Vve(e)===Vve(t);default:return!0}}function Fve(e){return!!(e.flags&16)}function c7e(e,t){let n=Gg(e.parent)?e.parent.parent:e.parent;return n===t.node||xs(t.additionalNodes,n)}function l7e(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||l7e(e.body,t.body))}function hCt(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=ds(e.children,t.children),e.children&&(OZ(e.children,e),jve(e.children))}function jve(e){e.sort(yCt)}function yCt(e,t){return S3(u7e(e.node),u7e(t.node))||tc(wZ(e),wZ(t))}function u7e(e){if(e.kind===267)return f7e(e);let t=Ns(e);if(t&&Ol(t)){let n=e2(t);return n&&Zi(n)}switch(e.kind){case 218:case 219:case 231:return m7e(e);default:return}}function Bve(e,t){if(e.kind===267)return x6(f7e(e));if(t){let n=$e(t)?t.text:cc(t)?`[${bV(t.argumentExpression)}]`:bV(t);if(n.length>0)return x6(n)}switch(e.kind){case 307:let n=e;return iu(n)?`"${Uh(Ul(lf(eo(n.fileName))))}"`:"";case 277:return pc(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Dv(e)&2048?"default":m7e(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function vCt(e){let t=[];function n(s){if(i(s)&&(t.push(s),s.children))for(let a of s.children)n(a)}return n(e),t;function i(s){if(s.children)return!0;switch(wZ(s)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return a(s);default:return!1}function a(u){if(!u.node.body)return!1;switch(wZ(u.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}}function _7e(e){return{text:Bve(e.node,e.name),kind:PE(e.node),kindModifiers:d7e(e.node),spans:Uve(e),nameSpan:e.name&&Jve(e.name),childItems:kr(e.children,_7e)}}function SCt(e){return{text:Bve(e.node,e.name),kind:PE(e.node),kindModifiers:d7e(e.node),spans:Uve(e),childItems:kr(e.children,t)||Rve,indent:e.indent,bolded:!1,grayed:!1};function t(n){return{text:Bve(n.node,n.name),kind:PE(n.node),kindModifiers:p6(n.node),spans:Uve(n),childItems:Rve,indent:0,bolded:!1,grayed:!1}}}function Uve(e){let t=[Jve(e.node)];if(e.additionalNodes)for(let n of e.additionalNodes)t.push(Jve(n));return t}function f7e(e){return U_(e)?Hc(e.name):Vve(e)}function Vve(e){let t=[Zd(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Zd(e.name));return t.join(".")}function p7e(e){return e.body&&xl(e.body)?p7e(e.body):e}function TCt(e){return!e.name||e.name.kind===167}function Jve(e){return e.kind===307?lS(e):gf(e,M8)}function d7e(e){return e.parent&&e.parent.kind===260&&(e=e.parent),p6(e)}function m7e(e){let{parent:t}=e;if(e.name&&Q3(e.name)>0)return x6(Ya(e.name));if(Ci(t))return x6(Ya(t.name));if(Dn(t)&&t.operatorToken.kind===64)return bV(t.left).replace(dCt,"");if(ql(t))return bV(t.name);if(Dv(e)&2048)return"default";if(vi(e))return"";if(to(t)){let n=g7e(t.expression);if(n!==void 0){if(n=x6(n),n.length>Ove)return`${n} callback`;let i=x6(Yi(t.arguments,s=>Ia(s)||QC(s)?s.getText(M8):void 0).join(", "));return`${n}(${i}) callback`}}return""}function g7e(e){if($e(e))return e.text;if(Hn(e)){let t=g7e(e.expression),n=e.name.text;return t===void 0?n:`${t}.${n}`}else return}function bCt(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function x6(e){return e=e.length>Ove?e.substring(0,Ove)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var uk={};k(uk,{addExportToChanges:()=>B7e,addExportsInOldFile:()=>Zve,addImportsForMovedSymbols:()=>t1e,addNewFileToTsconfig:()=>Qve,addOrRemoveBracesToArrowFunction:()=>lAt,addTargetFileImports:()=>u1e,containsJsx:()=>s1e,convertArrowFunctionOrFunctionExpression:()=>dAt,convertParamsToDestructuredObject:()=>CAt,convertStringOrTemplateLiteral:()=>qAt,convertToOptionalChainExpression:()=>ZAt,createNewFileName:()=>i1e,deleteMovedStatements:()=>k7e,deleteUnusedImports:()=>R7e,deleteUnusedOldImports:()=>P7e,doChangeNamedToNamespaceOrDefault:()=>b7e,extractSymbol:()=>TFe,filterImport:()=>F7e,forEachImportInStatement:()=>e1e,generateGetAccessorAndSetAccessor:()=>Lkt,getApplicableRefactors:()=>ECt,getEditsForRefactor:()=>xCt,getExistingLocals:()=>c1e,getIdentifierForNode:()=>l1e,getNewStatementsAndRemoveFromOldFile:()=>Xve,getStatementsToMove:()=>F8,getTopLevelDeclarationStatement:()=>n1e,getUsageInfo:()=>EV,inferFunctionReturnType:()=>Fkt,isRefactorErrorInfo:()=>I0,isTopLevelDeclaration:()=>JZ,moduleSpecifierFromImport:()=>I7e,nameOfTopLevelDeclaration:()=>j7e,refactorKindBeginsWith:()=>LT,registerRefactor:()=>jy,updateImportsInOtherFiles:()=>N7e});var qve=new Map;function jy(e,t){qve.set(e,t)}function ECt(e,t){return Os(p3(qve.values(),n=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=n.kinds)!=null&&i.some(s=>LT(s,e.kind)))?void 0:n.getAvailableActions(e,t)}))}function xCt(e,t,n,i){let s=qve.get(t);return s&&s.getEditsForAction(e,n,i)}var zve="Convert export",RZ={name:"Convert default export to named export",description:Ls(v.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},MZ={name:"Convert named export to default export",description:Ls(v.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};jy(zve,{kinds:[RZ.kind,MZ.kind],getAvailableActions:function(t){let n=h7e(t,t.triggerReason==="invoked");if(!n)return ve;if(!I0(n)){let i=n.wasDefault?RZ:MZ;return[{name:zve,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:zve,description:Ls(v.Convert_default_export_to_named_export),actions:[{...RZ,notApplicableReason:n.error},{...MZ,notApplicableReason:n.error}]}]:ve},getEditsForAction:function(t,n){M.assert(n===RZ.name||n===MZ.name,"Unexpected action name");let i=h7e(t);return M.assert(i&&!I0(i),"Expected applicable refactor info"),{edits:bn.ChangeTracker.with(t,a=>CCt(t.file,t.program,i,a,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}});function h7e(e,t=!0){let{file:n,program:i}=e,s=ck(e),a=Ki(n,s.start),u=a.parent&&Dv(a.parent)&32&&t?a.parent:E8(a,n,s);if(!u||!qi(u.parent)&&!(Gg(u.parent)&&U_(u.parent.parent)))return{error:Ls(v.Could_not_find_export_statement)};let m=i.getTypeChecker(),d=DCt(u.parent,m),S=Dv(u)||(pc(u)&&!u.isExportEquals?2080:0),E=!!(S&2048);if(!(S&32)||!E&&d.exports.has("default"))return{error:Ls(v.This_file_already_has_a_default_export)};let x=D=>$e(D)&&m.getSymbolAtLocation(D)?void 0:{error:Ls(v.Can_only_convert_named_export)};switch(u.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let D=u;return D.name?x(D.name)||{exportNode:D,exportName:D.name,wasDefault:E,exportingModuleSymbol:d}:void 0}case 243:{let D=u;if(!(D.declarationList.flags&2)||D.declarationList.declarations.length!==1)return;let I=Fo(D.declarationList.declarations);return I.initializer?(M.assert(!E,"Can't have a default flag here"),x(I.name)||{exportNode:D,exportName:I.name,wasDefault:E,exportingModuleSymbol:d}):void 0}case 277:{let D=u;return D.isExportEquals?void 0:x(D.expression)||{exportNode:D,exportName:D.expression,wasDefault:E,exportingModuleSymbol:d}}default:return}}function CCt(e,t,n,i,s){ACt(e,n,i,t.getTypeChecker()),kCt(t,n,i,s)}function ACt(e,{wasDefault:t,exportNode:n,exportName:i},s,a){if(t)if(pc(n)&&!n.isExportEquals){let u=n.expression,m=y7e(u.text,u.text);s.replaceNode(e,n,U.createExportDeclaration(void 0,!1,U.createNamedExports([m])))}else s.delete(e,M.checkDefined(KN(n,90),"Should find a default keyword in modifier list"));else{let u=M.checkDefined(KN(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:s.insertNodeAfter(e,u,U.createToken(90));break;case 243:let m=Fo(n.declarationList.declarations);if(!lc.Core.isSymbolReferencedInFile(i,a,e)&&!m.type){s.replaceNode(e,n,U.createExportDefault(M.checkDefined(m.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:s.deleteModifier(e,u),s.insertNodeAfter(e,n,U.createExportDefault(U.createIdentifier(i.text)));break;default:M.fail(`Unexpected exportNode kind ${n.kind}`)}}}function kCt(e,{wasDefault:t,exportName:n,exportingModuleSymbol:i},s,a){let u=e.getTypeChecker(),m=M.checkDefined(u.getSymbolAtLocation(n),"Export name should resolve to a symbol");lc.Core.eachExportReference(e.getSourceFiles(),u,a,m,i,n.text,t,d=>{if(n===d)return;let S=d.getSourceFile();t?PCt(S,d,s,n.text):NCt(S,d,s)})}function PCt(e,t,n,i){let{parent:s}=t;switch(s.kind){case 211:n.replaceNode(e,t,U.createIdentifier(i));break;case 276:case 281:{let u=s;n.replaceNode(e,u,Wve(i,u.name.text));break}case 273:{let u=s;M.assert(u.name===t,"Import clause name should match provided ref");let m=Wve(i,t.text),{namedBindings:d}=u;if(!d)n.replaceNode(e,t,U.createNamedImports([m]));else if(d.kind===274){n.deleteRange(e,{pos:t.getStart(e),end:d.getStart(e)});let S=jo(u.parent.moduleSpecifier)?jQ(u.parent.moduleSpecifier,e):1,E=uS(void 0,[Wve(i,t.text)],u.parent.moduleSpecifier,S);n.insertNodeAfter(e,u.parent,E)}else n.delete(e,t),n.insertNodeAtEndOfList(e,d.elements,m);break}case 205:let a=s;n.replaceNode(e,s,U.createImportTypeNode(a.argument,a.attributes,U.createIdentifier(i),a.typeArguments,a.isTypeOf));break;default:M.failBadSyntaxKind(s)}}function NCt(e,t,n){let i=t.parent;switch(i.kind){case 211:n.replaceNode(e,t,U.createIdentifier("default"));break;case 276:{let s=U.createIdentifier(i.name.text);i.parent.elements.length===1?n.replaceNode(e,i.parent,s):(n.delete(e,i),n.insertNodeBefore(e,i.parent,s));break}case 281:{n.replaceNode(e,i,y7e("default",i.name.text));break}default:M.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Wve(e,t){return U.createImportSpecifier(!1,e===t?void 0:U.createIdentifier(e),U.createIdentifier(t))}function y7e(e,t){return U.createExportSpecifier(!1,e===t?void 0:U.createIdentifier(e),U.createIdentifier(t))}function DCt(e,t){if(qi(e))return e.symbol;let n=e.parent.symbol;return n.valueDeclaration&&Yb(n.valueDeclaration)?t.getMergedSymbol(n):n}var Gve="Convert import",LZ={0:{name:"Convert namespace import to named imports",description:Ls(v.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Ls(v.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Ls(v.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};jy(Gve,{kinds:VC(LZ).map(e=>e.kind),getAvailableActions:function(t){let n=v7e(t,t.triggerReason==="invoked");if(!n)return ve;if(!I0(n)){let i=LZ[n.convertTo];return[{name:Gve,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?VC(LZ).map(i=>({name:Gve,description:i.description,actions:[{...i,notApplicableReason:n.error}]})):ve},getEditsForAction:function(t,n){M.assert(Dt(VC(LZ),a=>a.name===n),"Unexpected action name");let i=v7e(t);return M.assert(i&&!I0(i),"Expected applicable refactor info"),{edits:bn.ChangeTracker.with(t,a=>ICt(t.file,t.program,a,i)),renameFilename:void 0,renameLocation:void 0}}});function v7e(e,t=!0){let{file:n}=e,i=ck(e),s=Ki(n,i.start),a=t?Dr(s,qp(Yc,Kg)):E8(s,n,i);if(a===void 0||!(Yc(a)||Kg(a)))return{error:"Selection is not an import declaration."};let u=i.start+i.length,m=NE(a,a.parent,n);if(m&&u>m.getStart())return;let{importClause:d}=a;return d?d.namedBindings?d.namedBindings.kind===274?{convertTo:0,import:d.namedBindings}:S7e(e.program,d)?{convertTo:1,import:d.namedBindings}:{convertTo:2,import:d.namedBindings}:{error:Ls(v.Could_not_find_namespace_import_or_named_imports)}:{error:Ls(v.Could_not_find_import_clause)}}function S7e(e,t){return TA(e.getCompilerOptions())&&RCt(t.parent.moduleSpecifier,e.getTypeChecker())}function ICt(e,t,n,i){let s=t.getTypeChecker();i.convertTo===0?wCt(e,s,n,i.import,TA(t.getCompilerOptions())):b7e(e,t,n,i.import,i.convertTo===1)}function wCt(e,t,n,i,s){let a=!1,u=[],m=new Map;lc.Core.eachSymbolReferenceInFile(i.name,t,e,x=>{if(!H3(x.parent))a=!0;else{let D=T7e(x.parent).text;t.resolveName(D,x,-1,!0)&&m.set(D,!0),M.assert(OCt(x.parent)===x,"Parent expression should match id"),u.push(x.parent)}});let d=new Map;for(let x of u){let D=T7e(x).text,I=d.get(D);I===void 0&&d.set(D,I=m.has(D)?E2(D,e):D),n.replaceNode(e,x,U.createIdentifier(I))}let S=[];d.forEach((x,D)=>{S.push(U.createImportSpecifier(!1,x===D?void 0:U.createIdentifier(D),U.createIdentifier(x)))});let E=i.parent.parent;if(a&&!s&&Yc(E))n.insertNodeAfter(e,E,E7e(E,void 0,S));else{let x=a?U.createIdentifier(i.name.text):void 0;n.replaceNode(e,i.parent,x7e(x,S))}}function T7e(e){return Hn(e)?e.name:e.right}function OCt(e){return Hn(e)?e.expression:e.left}function b7e(e,t,n,i,s=S7e(t,i.parent)){let a=t.getTypeChecker(),u=i.parent.parent,{moduleSpecifier:m}=u,d=new Set;i.elements.forEach(R=>{let L=a.getSymbolAtLocation(R.name);L&&d.add(L)});let S=m&&jo(m)?I8(m.text,99):"module";function E(R){return!!lc.Core.eachSymbolReferenceInFile(R.name,a,e,L=>{let F=a.resolveName(S,L,-1,!0);return F?d.has(F)?E_(L.parent):!0:!1})}let D=i.elements.some(E)?E2(S,e):S,I=new Set;for(let R of i.elements){let L=(R.propertyName||R.name).text;lc.Core.eachSymbolReferenceInFile(R.name,a,e,F=>{let J=U.createPropertyAccessExpression(U.createIdentifier(D),L);m_(F.parent)?n.replaceNode(e,F.parent,U.createPropertyAssignment(F.text,J)):E_(F.parent)?I.add(R):n.replaceNode(e,F,J)})}if(n.replaceNode(e,i,s?U.createIdentifier(D):U.createNamespaceImport(U.createIdentifier(D))),I.size&&Yc(u)){let R=Os(I.values(),L=>U.createImportSpecifier(L.isTypeOnly,L.propertyName&&U.createIdentifier(L.propertyName.text),U.createIdentifier(L.name.text)));n.insertNodeAfter(e,i.parent.parent,E7e(u,void 0,R))}}function RCt(e,t){let n=t.resolveExternalModuleName(e);if(!n)return!1;let i=t.resolveExternalModuleSymbol(n);return n!==i}function E7e(e,t,n){return U.createImportDeclaration(void 0,x7e(t,n),e.moduleSpecifier,void 0)}function x7e(e,t){return U.createImportClause(!1,e,t&&t.length?U.createNamedImports(t):void 0)}var Hve="Extract type",FZ={name:"Extract to type alias",description:Ls(v.Extract_to_type_alias),kind:"refactor.extract.type"},jZ={name:"Extract to interface",description:Ls(v.Extract_to_interface),kind:"refactor.extract.interface"},BZ={name:"Extract to typedef",description:Ls(v.Extract_to_typedef),kind:"refactor.extract.typedef"};jy(Hve,{kinds:[FZ.kind,jZ.kind,BZ.kind],getAvailableActions:function(t){let{info:n,affectedTextRange:i}=C7e(t,t.triggerReason==="invoked");return n?I0(n)?t.preferences.provideRefactorNotApplicableReason?[{name:Hve,description:Ls(v.Extract_type),actions:[{...BZ,notApplicableReason:n.error},{...FZ,notApplicableReason:n.error},{...jZ,notApplicableReason:n.error}]}]:ve:[{name:Hve,description:Ls(v.Extract_type),actions:n.isJS?[BZ]:Ut([FZ],n.typeElements&&jZ)}].map(a=>({...a,actions:a.actions.map(u=>({...u,range:i?{start:{line:Eo(t.file,i.pos).line,offset:Eo(t.file,i.pos).character},end:{line:Eo(t.file,i.end).line,offset:Eo(t.file,i.end).character}}:void 0}))})):ve},getEditsForAction:function(t,n){let{file:i}=t,{info:s}=C7e(t);M.assert(s&&!I0(s),"Expected to find a range to extract");let a=E2("NewType",i),u=bn.ChangeTracker.with(t,S=>{switch(n){case FZ.name:return M.assert(!s.isJS,"Invalid actionName/JS combo"),FCt(S,i,a,s);case BZ.name:return M.assert(s.isJS,"Invalid actionName/JS combo"),BCt(S,t,i,a,s);case jZ.name:return M.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),jCt(S,i,a,s);default:M.fail("Unexpected action name")}}),m=i.fileName,d=A8(u,m,a,!1);return{edits:u,renameFilename:m,renameLocation:d}}});function C7e(e,t=!0){let{file:n,startPosition:i}=e,s=Pf(n),a=qU(ck(e)),u=a.pos===a.end&&t,m=MCt(n,i,a,u);if(!m||!wi(m))return{info:{error:Ls(v.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let d=e.program.getTypeChecker(),S=UCt(m,s);if(S===void 0)return{info:{error:Ls(v.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let E=VCt(m,S);if(!wi(E))return{info:{error:Ls(v.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};let x=[];(Z1(E.parent)||BA(E.parent))&&a.end>m.end&&On(x,E.parent.types.filter(F=>OU(F,n,a.pos,a.end)));let D=x.length>1?x:E,{typeParameters:I,affectedTextRange:R}=LCt(d,D,S,n);if(!I)return{info:{error:Ls(v.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};let L=UZ(d,D);return{info:{isJS:s,selection:D,enclosingNode:S,typeParameters:I,typeElements:L},affectedTextRange:R}}function MCt(e,t,n,i){let s=[()=>Ki(e,t),()=>$N(e,t,()=>!0)];for(let a of s){let u=a(),m=OU(u,e,n.pos,n.end),d=Dr(u,S=>S.parent&&wi(S)&&!RE(n,S.parent,e)&&(i||m));if(d)return d}}function UZ(e,t){if(t){if(Ms(t)){let n=[];for(let i of t){let s=UZ(e,i);if(!s)return;On(n,s)}return n}if(BA(t)){let n=[],i=new Map;for(let s of t.types){let a=UZ(e,s);if(!a||!a.every(u=>u.name&&tm(i,T8(u.name))))return;On(n,a)}return n}else{if(o2(t))return UZ(e,t.type);if(_f(t))return t.members}}}function RE(e,t,n){return m8(e,zo(n.text,t.pos),t.end)}function LCt(e,t,n,i){let s=[],a=JC(t),u={pos:a[0].getStart(i),end:a[a.length-1].end};for(let d of a)if(m(d))return{typeParameters:void 0,affectedTextRange:void 0};return{typeParameters:s,affectedTextRange:u};function m(d){if(Yp(d)){if($e(d.typeName)){let S=d.typeName,E=e.resolveName(S.text,S,262144,!0);for(let x of E?.declarations||ve)if(Cc(x)&&x.getSourceFile()===i){if(x.name.escapedText===S.escapedText&&RE(x,u,i))return!0;if(RE(n,x,i)&&!RE(u,x,i)){cl(s,x);break}}}}else if(s2(d)){let S=Dr(d,E=>dE(E)&&RE(E.extendsType,d,i));if(!S||!RE(u,S,i))return!0}else if(FA(d)||vN(d)){let S=Dr(d.parent,Us);if(S&&S.type&&RE(S.type,d,i)&&!RE(u,S,i))return!0}else if(pE(d)){if($e(d.exprName)){let S=e.resolveName(d.exprName.text,d.exprName,111551,!1);if(S?.valueDeclaration&&RE(n,S.valueDeclaration,i)&&!RE(u,S.valueDeclaration,i))return!0}else if(z1(d.exprName.left)&&!RE(u,d.parent,i))return!0}return i&&jA(d)&&Eo(i,d.pos).line===Eo(i,d.end).line&&xn(d,1),qs(d,m)}}function FCt(e,t,n,i){let{enclosingNode:s,typeParameters:a}=i,{firstTypeNode:u,lastTypeNode:m,newTypeNode:d}=$ve(i),S=U.createTypeAliasDeclaration(void 0,n,a.map(E=>U.updateTypeParameterDeclaration(E,E.modifiers,E.name,E.constraint,void 0)),d);e.insertNodeBefore(t,s,Z$(S),!0),e.replaceNodeRange(t,u,m,U.createTypeReferenceNode(n,a.map(E=>U.createTypeReferenceNode(E.name,void 0))),{leadingTriviaOption:bn.LeadingTriviaOption.Exclude,trailingTriviaOption:bn.TrailingTriviaOption.ExcludeWhitespace})}function jCt(e,t,n,i){var s;let{enclosingNode:a,typeParameters:u,typeElements:m}=i,d=U.createInterfaceDeclaration(void 0,n,u,void 0,m);At(d,(s=m[0])==null?void 0:s.parent),e.insertNodeBefore(t,a,Z$(d),!0);let{firstTypeNode:S,lastTypeNode:E}=$ve(i);e.replaceNodeRange(t,S,E,U.createTypeReferenceNode(n,u.map(x=>U.createTypeReferenceNode(x.name,void 0))),{leadingTriviaOption:bn.LeadingTriviaOption.Exclude,trailingTriviaOption:bn.TrailingTriviaOption.ExcludeWhitespace})}function BCt(e,t,n,i,s){var a;JC(s.selection).forEach(R=>{xn(R,7168)});let{enclosingNode:u,typeParameters:m}=s,{firstTypeNode:d,lastTypeNode:S,newTypeNode:E}=$ve(s),x=U.createJSDocTypedefTag(U.createIdentifier("typedef"),U.createJSDocTypeExpression(E),U.createIdentifier(i)),D=[];Et(m,R=>{let L=MP(R),F=U.createTypeParameterDeclaration(void 0,R.name),J=U.createJSDocTemplateTag(U.createIdentifier("template"),L&&ao(L,bT),[F]);D.push(J)});let I=U.createJSDocComment(void 0,U.createNodeArray(ds(D,[x])));if(sg(u)){let R=u.getStart(n),L=Jv(t.host,(a=t.formatContext)==null?void 0:a.options);e.insertNodeAt(n,u.getStart(n),I,{suffix:L+L+n.text.slice(QU(n.text,R-1),R)})}else e.insertNodeBefore(n,u,I,!0);e.replaceNodeRange(n,d,S,U.createTypeReferenceNode(i,m.map(R=>U.createTypeReferenceNode(R.name,void 0))))}function $ve(e){return Ms(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:Z1(e.selection[0].parent)?U.createUnionTypeNode(e.selection):U.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function UCt(e,t){return Dr(e,Ji)||(t?Dr(e,sg):void 0)}function VCt(e,t){return Dr(e,n=>n===t?"quit":!!(Z1(n.parent)||BA(n.parent)))??e}var VZ="Move to file",Yve=Ls(v.Move_to_file),Kve={name:"Move to file",description:Yve,kind:"refactor.move.file"};jy(VZ,{kinds:[Kve.kind],getAvailableActions:function(t,n){let i=t.file,s=F8(t);if(!n)return ve;if(t.triggerReason==="implicit"&&t.endPosition!==void 0){let a=Dr(Ki(i,t.startPosition),rD),u=Dr(Ki(i,t.endPosition),rD);if(a&&!qi(a)&&u&&!qi(u))return ve}if(t.preferences.allowTextChangesInNewFiles&&s){let a={start:{line:Eo(i,s.all[0].getStart(i)).line,offset:Eo(i,s.all[0].getStart(i)).character},end:{line:Eo(i,qo(s.all).end).line,offset:Eo(i,qo(s.all).end).character}};return[{name:VZ,description:Yve,actions:[{...Kve,range:a}]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:VZ,description:Yve,actions:[{...Kve,notApplicableReason:Ls(v.Selection_is_not_a_valid_statement_or_statements)}]}]:ve},getEditsForAction:function(t,n,i){M.assert(n===VZ,"Wrong refactor invoked");let s=M.checkDefined(F8(t)),{host:a,program:u}=t;M.assert(i,"No interactive refactor arguments available");let m=i.targetFile;return wy(m)||EA(m)?a.fileExists(m)&&u.getSourceFile(m)===void 0?A7e(Ls(v.Cannot_move_statements_to_the_selected_file)):{edits:bn.ChangeTracker.with(t,S=>JCt(t,t.file,i.targetFile,t.program,s,S,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:A7e(Ls(v.Cannot_move_to_file_selected_file_is_invalid))}});function A7e(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function JCt(e,t,n,i,s,a,u,m){let d=i.getTypeChecker(),S=!u.fileExists(n),E=S?gV(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,i,u):M.checkDefined(i.getSourceFile(n)),x=P_.createImportAdder(t,e.program,e.preferences,e.host),D=P_.createImportAdder(E,e.program,e.preferences,e.host);Xve(t,E,EV(t,s.all,d,S?void 0:c1e(E,s.all,d)),a,s,i,u,m,D,x),S&&Qve(i,a,t.fileName,n,Nv(u))}function Xve(e,t,n,i,s,a,u,m,d,S){let E=a.getTypeChecker(),x=KW(e.statements,Rg),D=!pZ(t.fileName,a,u,!!e.commonJsModuleIndicator),I=td(e,m);t1e(n.oldFileImportsFromTargetFile,t.fileName,S,a),P7e(e,s.all,n.unusedImportsFromOldFile,S),S.writeFixes(i,I),k7e(e,s.ranges,i),N7e(i,a,u,e,n.movedSymbols,t.fileName,I),Zve(e,n.targetFileImportsFromOldFile,i,D),u1e(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,E,a,d),!kv(t)&&x.length&&i.insertStatementsInNewFile(t.fileName,x,e),d.writeFixes(i,I);let R=HCt(e,s.all,Os(n.oldFileImportsFromTargetFile.keys()),D);kv(t)&&t.statements.length>0?oAt(i,a,R,t,s):kv(t)?i.insertNodesAtEndOfFile(t,R,!1):i.insertStatementsInNewFile(t.fileName,d.hasFixes()?[4,...R]:R,e)}function Qve(e,t,n,i,s){let a=e.getCompilerOptions().configFile;if(!a)return;let u=eo(ii(n,"..",i)),m=iw(a.fileName,u,s),d=a.statements[0]&&ci(a.statements[0].expression,ko),S=d&&jn(d.properties,E=>ql(E)&&jo(E.name)&&E.name.text==="files");S&&Ku(S.initializer)&&t.insertNodeInListAfter(a,qo(S.initializer.elements),U.createStringLiteral(m),S.initializer.elements)}function k7e(e,t,n){for(let{first:i,afterLast:s}of t)n.deleteNodeRangeExcludingEnd(e,i,s)}function P7e(e,t,n,i){for(let s of e.statements)xs(t,s)||e1e(s,a=>{w7e(a,u=>{n.has(u.symbol)&&i.removeExistingImport(u)})})}function Zve(e,t,n,i){let s=YN();t.forEach((a,u)=>{if(u.declarations)for(let m of u.declarations){if(!JZ(m))continue;let d=j7e(m);if(!d)continue;let S=n1e(m);s(S)&&B7e(e,S,d,n,i)}})}function N7e(e,t,n,i,s,a,u){let m=t.getTypeChecker();for(let d of t.getSourceFiles())if(d!==i)for(let S of d.statements)e1e(S,E=>{if(m.getSymbolAtLocation(I7e(E))!==i.symbol)return;let x=F=>{let J=Zo(F.parent)?YU(m,F.parent):$u(m.getSymbolAtLocation(F),m);return!!J&&s.has(J)};R7e(d,E,e,x);let D=QS(yi(Cs(i.fileName,t.getCurrentDirectory())),a);if(AP(!t.useCaseSensitiveFileNames())(D,d.fileName)===0)return;let I=kRe(t.getCompilerOptions(),d,d.fileName,D,ak(t,n)),R=F7e(E,m6(I,u),x);R&&e.insertNodeAfter(d,S,R);let L=qCt(E);L&&zCt(e,d,m,s,I,L,E,u)})}function qCt(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return ci(e.name,$e);default:return M.assertNever(e,`Unexpected node kind ${e.kind}`)}}function zCt(e,t,n,i,s,a,u,m){let d=I8(s,99),S=!1,E=[];if(lc.Core.eachSymbolReferenceInFile(a,n,t,x=>{Hn(x.parent)&&(S=S||!!n.resolveName(d,x,-1,!0),i.has(n.getSymbolAtLocation(x.parent.name))&&E.push(x))}),E.length){let x=S?E2(d,t):d;for(let D of E)e.replaceNode(t,D,U.createIdentifier(x));e.insertNodeAfter(t,u,WCt(u,d,s,m))}}function WCt(e,t,n,i){let s=U.createIdentifier(t),a=m6(n,i);switch(e.kind){case 272:return U.createImportDeclaration(void 0,U.createImportClause(!1,void 0,U.createNamespaceImport(s)),a,void 0);case 271:return U.createImportEqualsDeclaration(void 0,!1,s,U.createExternalModuleReference(a));case 260:return U.createVariableDeclaration(s,void 0,void 0,D7e(a));default:return M.assertNever(e,`Unexpected node kind ${e.kind}`)}}function D7e(e){return U.createCallExpression(U.createIdentifier("require"),void 0,[e])}function I7e(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function e1e(e,t){if(Yc(e))jo(e.moduleSpecifier)&&t(e);else if(nu(e))A0(e.moduleReference)&&Ia(e.moduleReference.expression)&&t(e);else if(fl(e))for(let n of e.declarationList.declarations)n.initializer&&Nf(n.initializer,!0)&&t(n)}function w7e(e,t){var n,i,s,a,u;if(e.kind===272){if((n=e.importClause)!=null&&n.name&&t(e.importClause),((s=(i=e.importClause)==null?void 0:i.namedBindings)==null?void 0:s.kind)===274&&t(e.importClause.namedBindings),((u=(a=e.importClause)==null?void 0:a.namedBindings)==null?void 0:u.kind)===275)for(let m of e.importClause.namedBindings.elements)t(m)}else if(e.kind===271)t(e);else if(e.kind===260){if(e.name.kind===80)t(e);else if(e.name.kind===206)for(let m of e.name.elements)$e(m.name)&&t(m)}}function t1e(e,t,n,i){for(let[s,a]of e){let u=lV(s,Qo(i.getCompilerOptions())),m=s.name==="default"&&s.parent?1:0;n.addImportForNonExistentExport(u,t,m,s.flags,a)}}function GCt(e,t,n,i=2){return U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(e,void 0,t,n)],i))}function HCt(e,t,n,i){return To(t,s=>{if(M7e(s)&&!O7e(e,s,i)&&a1e(s,a=>{var u;return n.includes(M.checkDefined((u=ci(a,Qm))==null?void 0:u.symbol))})){let a=$Ct(ka(s),i);if(a)return a}return ka(s)})}function O7e(e,t,n,i){var s;return n?!wu(t)&&_i(t,32)||!!(i&&e.symbol&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&r1e(t).some(a=>e.symbol.exports.has(Uc(a)))}function R7e(e,t,n,i){if(t.kind===272&&t.importClause){let{name:s,namedBindings:a}=t.importClause;if((!s||i(s))&&(!a||a.kind===275&&a.elements.length!==0&&a.elements.every(u=>i(u.name))))return n.delete(e,t)}w7e(t,s=>{s.name&&$e(s.name)&&i(s.name)&&n.delete(e,s)})}function M7e(e){return M.assert(qi(e.parent),"Node parent should be a SourceFile"),q7e(e)||fl(e)}function $Ct(e,t){return t?[YCt(e)]:KCt(e)}function YCt(e){let t=Im(e)?ds([U.createModifier(95)],qb(e)):void 0;switch(e.kind){case 262:return U.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let n=bE(e)?F1(e):void 0;return U.updateClassDeclaration(e,ds(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return U.updateVariableStatement(e,t,e.declarationList);case 267:return U.updateModuleDeclaration(e,t,e.name,e.body);case 266:return U.updateEnumDeclaration(e,t,e.name,e.members);case 265:return U.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return U.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return U.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return M.fail();default:return M.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function KCt(e){return[e,...r1e(e).map(L7e)]}function L7e(e){return U.createExpressionStatement(U.createBinaryExpression(U.createPropertyAccessExpression(U.createIdentifier("exports"),U.createIdentifier(e)),64,U.createIdentifier(e)))}function r1e(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Yi(e.declarationList.declarations,t=>$e(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return ve;case 244:return M.fail("Can't export an ExpressionStatement");default:return M.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function F7e(e,t,n){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let s=i.name&&n(i.name)?i.name:void 0,a=i.namedBindings&&XCt(i.namedBindings,n);return s||a?U.createImportDeclaration(void 0,U.createImportClause(i.isTypeOnly,s,a),ka(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{let i=QCt(e.name,n);return i?GCt(i,e.type,D7e(t),e.parent.flags):void 0}default:return M.assertNever(e,`Unexpected import kind ${e.kind}`)}}function XCt(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let n=e.elements.filter(i=>t(i.name));return n.length?U.createNamedImports(n):void 0}}function QCt(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let n=e.elements.filter(i=>i.propertyName||!$e(i.name)||t(i.name));return n.length?U.createObjectBindingPattern(n):void 0}}}function j7e(e){return wu(e)?ci(e.expression.left.name,$e):ci(e.name,$e)}function n1e(e){switch(e.kind){case 260:return e.parent.parent;case 208:return n1e(ao(e.parent.parent,t=>Ci(t)||Zo(t)));default:return e}}function B7e(e,t,n,i,s){if(!O7e(e,t,s,n))if(s)wu(t)||i.insertExportModifier(e,t);else{let a=r1e(t);a.length!==0&&i.insertNodesAfter(e,t,a.map(L7e))}}function i1e(e,t,n,i){let s=t.getTypeChecker();if(i){let a=EV(e,i.all,s),u=yi(e.fileName),m=oO(e.fileName);return ii(u,nAt(iAt(a.oldFileImportsFromTargetFile,a.movedSymbols),m,u,n))+m}return""}function ZCt(e){let{file:t}=e,n=qU(ck(e)),{statements:i}=t,s=Va(i,S=>S.end>n.pos);if(s===-1)return;let a=i[s],u=z7e(t,a);u&&(s=u.start);let m=Va(i,S=>S.end>=n.end,s);m!==-1&&n.end<=i[m].getStart()&&m--;let d=z7e(t,i[m]);return d&&(m=d.end),{toMove:i.slice(s,m===-1?i.length:m+1),afterLast:m===-1?void 0:i[m+1]}}function F8(e){let t=ZCt(e);if(t===void 0)return;let n=[],i=[],{toMove:s,afterLast:a}=t;return zI(s,eAt,(u,m)=>{for(let d=u;d!!(t.transformFlags&2))}function eAt(e){return!tAt(e)&&!Rg(e)}function tAt(e){switch(e.kind){case 272:return!0;case 271:return!_i(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Nf(t.initializer,!0));default:return!1}}function EV(e,t,n,i=new Set){var s;let a=new Set,u=new Map,m=new Map,d=x(s1e(t));d&&u.set(d,[!1,ci((s=d.declarations)==null?void 0:s[0],D=>pf(D)||ng(D)||Ry(D)||nu(D)||Zo(D)||Ci(D))]);for(let D of t)a1e(D,I=>{a.add(M.checkDefined(wu(I)?n.getSymbolAtLocation(I.expression.left):I.symbol,"Need a symbol here"))});let S=new Set;for(let D of t)o1e(D,n,(I,R)=>{if(!(!I.declarations||rAt(n,I))){if(i.has($u(I,n))){S.add(I);return}for(let L of I.declarations)if(U7e(L)){let F=u.get(I);u.set(I,[(F===void 0||F)&&R,ci(L,J=>pf(J)||ng(J)||Ry(J)||nu(J)||Zo(J)||Ci(J))])}else JZ(L)&&sAt(L)===e&&!a.has(I)&&m.set(I,R)}});for(let D of u.keys())S.add(D);let E=new Map;for(let D of e.statements)xs(t,D)||(d&&D.transformFlags&2&&S.delete(d),o1e(D,n,(I,R)=>{a.has(I)&&E.set(I,R),S.delete(I)}));return{movedSymbols:a,targetFileImportsFromOldFile:m,oldFileImportsFromTargetFile:E,oldImportsNeededByTargetFile:u,unusedImportsFromOldFile:S};function x(D){if(D===void 0)return;let I=n.getJsxNamespace(D),R=n.resolveName(I,D,1920,!0);return R&&Dt(R.declarations,U7e)?R:void 0}}function rAt(e,t){return!!e.resolveName(t.name,void 0,788968,!1)}function nAt(e,t,n,i){let s=e;for(let a=1;;a++){let u=ii(n,s+t);if(!i.fileExists(u))return s;s=`${e}.${a}`}}function iAt(e,t){return m0(e,UQ)||m0(t,UQ)||"newFile"}function o1e(e,t,n){e.forEachChild(function i(s){if($e(s)&&!Bh(s)){let a=t.getSymbolAtLocation(s);a&&n(a,gT(s))}else s.forEachChild(i)})}function a1e(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return di(e.declarationList.declarations,n=>J7e(n.name,t));case 244:{let{expression:n}=e;return Dn(n)&&ll(n)===1?t(e):void 0}}}function U7e(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return V7e(e);case 208:return Ci(e.parent.parent)&&V7e(e.parent.parent);default:return!1}}function V7e(e){return qi(e.parent.parent.parent)&&!!e.initializer&&Nf(e.initializer,!0)}function JZ(e){return q7e(e)&&qi(e.parent)||Ci(e)&&qi(e.parent.parent.parent)}function sAt(e){return Ci(e)?e.parent.parent.parent:e.parent}function J7e(e,t){switch(e.kind){case 80:return t(ao(e.parent,n=>Ci(n)||Zo(n)));case 207:case 206:return di(e.elements,n=>du(n)?void 0:J7e(n.name,t));default:return M.assertNever(e,`Unexpected name kind ${e.kind}`)}}function q7e(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function oAt(e,t,n,i,s){var a;let u=new Set,m=(a=i.symbol)==null?void 0:a.exports;if(m){let S=t.getTypeChecker(),E=new Map;for(let x of s.all)M7e(x)&&_i(x,32)&&a1e(x,D=>{var I;let R=Qm(D)?(I=m.get(D.symbol.escapedName))==null?void 0:I.declarations:void 0,L=di(R,F=>Cl(F)?F:E_(F)?ci(F.parent.parent,Cl):void 0);L&&L.moduleSpecifier&&E.set(L,(E.get(L)||new Set).add(D))});for(let[x,D]of Os(E))if(x.exportClause&&Pd(x.exportClause)&&kt(x.exportClause.elements)){let I=x.exportClause.elements,R=ti(I,L=>jn($u(L.symbol,S).declarations,F=>JZ(F)&&D.has(F))===void 0);if(kt(R)===0){e.deleteNode(i,x),u.add(x);continue}kt(R)Cl(S)&&!!S.moduleSpecifier&&!u.has(S));d?e.insertNodesBefore(i,d,n,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],n)}function z7e(e,t){if($a(t)){let n=t.symbol.declarations;if(n===void 0||kt(n)<=1||!xs(n,t))return;let i=n[0],s=n[kt(n)-1],a=Yi(n,d=>Jr(d)===e&&Ji(d)?d:void 0),u=Va(e.statements,d=>d.end>=s.end),m=Va(e.statements,d=>d.end>=i.end);return{toMove:a,start:m,end:u}}}function c1e(e,t,n){let i=new Set;for(let s of e.imports){let a=Rw(s);if(Yc(a)&&a.importClause&&a.importClause.namedBindings&&Hg(a.importClause.namedBindings))for(let u of a.importClause.namedBindings.elements){let m=n.getSymbolAtLocation(u.propertyName||u.name);m&&i.add($u(m,n))}if(gR(a.parent)&&Kp(a.parent.name))for(let u of a.parent.name.elements){let m=n.getSymbolAtLocation(u.propertyName||u.name);m&&i.add($u(m,n))}}for(let s of t)o1e(s,n,a=>{let u=$u(a,n);u.valueDeclaration&&Jr(u.valueDeclaration).path===e.path&&i.add(u)});return i}function I0(e){return e.error!==void 0}function LT(e,t){return t?e.substr(0,t.length)===t:!0}function l1e(e,t,n,i){return Hn(e)&&!vi(t)&&!n.resolveName(e.name.text,e,111551,!1)&&!es(e.name)&&!Jx(e.name)?e.name.text:E2(vi(t)?"newProperty":"newLocal",i)}function u1e(e,t,n,i,s,a){t.forEach(([u,m],d)=>{var S;let E=$u(d,i);i.isUnknownSymbol(E)?a.addVerbatimImport(M.checkDefined(m??Dr((S=d.declarations)==null?void 0:S[0],M_e))):a.addImportFromExportedSymbol(E,u,m)}),t1e(n,e.fileName,a,s)}var xV="Inline variable",_1e=Ls(v.Inline_variable),f1e={name:xV,description:_1e,kind:"refactor.inline.variable"};jy(xV,{kinds:[f1e.kind],getAvailableActions(e){let{file:t,program:n,preferences:i,startPosition:s,triggerReason:a}=e,u=W7e(t,s,a==="invoked",n);return u?uk.isRefactorErrorInfo(u)?i.provideRefactorNotApplicableReason?[{name:xV,description:_1e,actions:[{...f1e,notApplicableReason:u.error}]}]:ve:[{name:xV,description:_1e,actions:[f1e]}]:ve},getEditsForAction(e,t){M.assert(t===xV,"Unexpected refactor invoked");let{file:n,program:i,startPosition:s}=e,a=W7e(n,s,!0,i);if(!a||uk.isRefactorErrorInfo(a))return;let{references:u,declaration:m,replacement:d}=a;return{edits:bn.ChangeTracker.with(e,E=>{for(let x of u)E.replaceNode(n,x,aAt(x,d));E.delete(n,m)})}}});function W7e(e,t,n,i){var s,a;let u=i.getTypeChecker(),m=Of(e,t),d=m.parent;if($e(m)){if($R(d)&&kw(d)&&$e(d.name)){if(((s=u.getMergedSymbol(d.symbol).declarations)==null?void 0:s.length)!==1)return{error:Ls(v.Variables_with_multiple_declarations_cannot_be_inlined)};if(G7e(d))return;let S=H7e(d,u,e);return S&&{references:S,declaration:d,replacement:d.initializer}}if(n){let S=u.resolveName(m.text,m,111551,!1);if(S=S&&u.getMergedSymbol(S),((a=S?.declarations)==null?void 0:a.length)!==1)return{error:Ls(v.Variables_with_multiple_declarations_cannot_be_inlined)};let E=S.declarations[0];if(!$R(E)||!kw(E)||!$e(E.name)||G7e(E))return;let x=H7e(E,u,e);return x&&{references:x,declaration:E,replacement:E.initializer}}return{error:Ls(v.Could_not_find_variable_to_inline)}}}function G7e(e){let t=ao(e.parent.parent,fl);return Dt(t.modifiers,RA)}function H7e(e,t,n){let i=[],s=lc.Core.eachSymbolReferenceInFile(e.name,t,n,a=>{if(lc.isWriteAccessForReference(a)&&!m_(a.parent)||E_(a.parent)||pc(a.parent)||pE(a.parent)||O3(e,a.pos))return!0;i.push(a)});return i.length===0||s?void 0:i}function aAt(e,t){t=ka(t);let{parent:n}=e;return Pt(n)&&(Jw(t)cAt(t.file,t.program,i,a,t.host,t,t.preferences)),renameFilename:void 0,renameLocation:void 0}}});function cAt(e,t,n,i,s,a,u){let m=t.getTypeChecker(),d=EV(e,n.all,m),S=i1e(e,t,s,n),E=gV(S,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,s),x=P_.createImportAdder(e,a.program,a.preferences,a.host),D=P_.createImportAdder(E,a.program,a.preferences,a.host);Xve(e,E,d,i,n,t,s,u,D,x),Qve(t,i,e.fileName,S,Nv(s))}var lAt={},m1e="Convert overload list to single signature",$7e=Ls(v.Convert_overload_list_to_single_signature),Y7e={name:m1e,description:$7e,kind:"refactor.rewrite.function.overloadList"};jy(m1e,{kinds:[Y7e.kind],getEditsForAction:_At,getAvailableActions:uAt});function uAt(e){let{file:t,startPosition:n,program:i}=e;return X7e(t,n,i)?[{name:m1e,description:$7e,actions:[Y7e]}]:ve}function _At(e){let{file:t,startPosition:n,program:i}=e,s=X7e(t,n,i);if(!s)return;let a=i.getTypeChecker(),u=s[s.length-1],m=u;switch(u.kind){case 173:{m=U.updateMethodSignature(u,u.modifiers,u.name,u.questionToken,u.typeParameters,S(s),u.type);break}case 174:{m=U.updateMethodDeclaration(u,u.modifiers,u.asteriskToken,u.name,u.questionToken,u.typeParameters,S(s),u.type,u.body);break}case 179:{m=U.updateCallSignature(u,u.typeParameters,S(s),u.type);break}case 176:{m=U.updateConstructorDeclaration(u,u.modifiers,S(s),u.body);break}case 180:{m=U.updateConstructSignature(u,u.typeParameters,S(s),u.type);break}case 262:{m=U.updateFunctionDeclaration(u,u.modifiers,u.asteriskToken,u.name,u.typeParameters,S(s),u.type,u.body);break}default:return M.failBadSyntaxKind(u,"Unhandled signature kind in overload list conversion refactoring")}if(m===u)return;return{renameFilename:void 0,renameLocation:void 0,edits:bn.ChangeTracker.with(e,D=>{D.replaceNodeRange(t,s[0],s[s.length-1],m)})};function S(D){let I=D[D.length-1];return $a(I)&&I.body&&(D=D.slice(0,D.length-1)),U.createNodeArray([U.createParameterDeclaration(void 0,U.createToken(26),"args",void 0,U.createUnionTypeNode(kr(D,E)))])}function E(D){let I=kr(D.parameters,x);return xn(U.createTupleTypeNode(I),Dt(I,R=>!!kt(gN(R)))?0:1)}function x(D){M.assert($e(D.name));let I=At(U.createNamedTupleMember(D.dotDotDotToken,D.name,D.questionToken,D.type||U.createKeywordTypeNode(133)),D),R=D.symbol&&D.symbol.getDocumentationComment(a);if(R){let L=U8(R);L.length&&hT(I,[{text:`*
${L.split(`
`).map(F=>` * ${F}`).join(`
`)}
 `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return I}}function K7e(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function X7e(e,t,n){let i=Ki(e,t),s=Dr(i,K7e);if(!s||$a(s)&&s.body&&p8(s.body,t))return;let a=n.getTypeChecker(),u=s.symbol;if(!u)return;let m=u.declarations;if(kt(m)<=1||!Oi(m,D=>Jr(D)===e)||!K7e(m[0]))return;let d=m[0].kind;if(!Oi(m,D=>D.kind===d))return;let S=m;if(Dt(S,D=>!!D.typeParameters||Dt(D.parameters,I=>!!I.modifiers||!$e(I.name))))return;let E=Yi(S,D=>a.getSignatureFromDeclaration(D));if(kt(E)!==kt(m))return;let x=a.getReturnTypeOfSignature(E[0]);if(Oi(E,D=>a.getReturnTypeOfSignature(D)===x))return S}var g1e="Add or remove braces in an arrow function",Q7e=Ls(v.Add_or_remove_braces_in_an_arrow_function),qZ={name:"Add braces to arrow function",description:Ls(v.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},AV={name:"Remove braces from arrow function",description:Ls(v.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};jy(g1e,{kinds:[AV.kind],getEditsForAction:pAt,getAvailableActions:fAt});function fAt(e){let{file:t,startPosition:n,triggerReason:i}=e,s=Z7e(t,n,i==="invoked");return s?I0(s)?e.preferences.provideRefactorNotApplicableReason?[{name:g1e,description:Q7e,actions:[{...qZ,notApplicableReason:s.error},{...AV,notApplicableReason:s.error}]}]:ve:[{name:g1e,description:Q7e,actions:[s.addBraces?qZ:AV]}]:ve}function pAt(e,t){let{file:n,startPosition:i}=e,s=Z7e(n,i);M.assert(s&&!I0(s),"Expected applicable refactor info");let{expression:a,returnStatement:u,func:m}=s,d;if(t===qZ.name){let E=U.createReturnStatement(a);d=U.createBlock([E],!0),ZN(a,E,n,3,!0)}else if(t===AV.name&&u){let E=a||U.createVoidZero();d=ZU(E)?U.createParenthesizedExpression(E):E,k8(u,d,n,3,!1),ZN(u,d,n,3,!1),v6(u,d,n,3,!1)}else M.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:bn.ChangeTracker.with(e,E=>{E.replaceNode(n,m.body,d)})}}function Z7e(e,t,n=!0,i){let s=Ki(e,t),a=Ip(s);if(!a)return{error:Ls(v.Could_not_find_a_containing_arrow_function)};if(!fc(a))return{error:Ls(v.Containing_function_is_not_an_arrow_function)};if(!(!ed(a,s)||ed(a.body,s)&&!n)){if(LT(qZ.kind,i)&&Pt(a.body))return{func:a,addBraces:!0,expression:a.body};if(LT(AV.kind,i)&&Js(a.body)&&a.body.statements.length===1){let u=Fo(a.body.statements);if(im(u)){let m=u.expression&&ko(_N(u.expression,!1))?U.createParenthesizedExpression(u.expression):u.expression;return{func:a,addBraces:!1,expression:m,returnStatement:u}}}}}var dAt={},eFe="Convert arrow function or function expression",mAt=Ls(v.Convert_arrow_function_or_function_expression),kV={name:"Convert to anonymous function",description:Ls(v.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},PV={name:"Convert to named function",description:Ls(v.Convert_to_named_function),kind:"refactor.rewrite.function.named"},NV={name:"Convert to arrow function",description:Ls(v.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};jy(eFe,{kinds:[kV.kind,PV.kind,NV.kind],getEditsForAction:hAt,getAvailableActions:gAt});function gAt(e){let{file:t,startPosition:n,program:i,kind:s}=e,a=rFe(t,n,i);if(!a)return ve;let{selectedVariableDeclaration:u,func:m}=a,d=[],S=[];if(LT(PV.kind,s)){let E=u||fc(m)&&Ci(m.parent)?void 0:Ls(v.Could_not_convert_to_named_function);E?S.push({...PV,notApplicableReason:E}):d.push(PV)}if(LT(kV.kind,s)){let E=!u&&fc(m)?void 0:Ls(v.Could_not_convert_to_anonymous_function);E?S.push({...kV,notApplicableReason:E}):d.push(kV)}if(LT(NV.kind,s)){let E=ic(m)?void 0:Ls(v.Could_not_convert_to_arrow_function);E?S.push({...NV,notApplicableReason:E}):d.push(NV)}return[{name:eFe,description:mAt,actions:d.length===0&&e.preferences.provideRefactorNotApplicableReason?S:d}]}function hAt(e,t){let{file:n,startPosition:i,program:s}=e,a=rFe(n,i,s);if(!a)return;let{func:u}=a,m=[];switch(t){case kV.name:m.push(...TAt(e,u));break;case PV.name:let d=SAt(u);if(!d)return;m.push(...bAt(e,u,d));break;case NV.name:if(!ic(u))return;m.push(...EAt(e,u));break;default:return M.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:m}}function tFe(e){let t=!1;return e.forEachChild(function n(i){if(HN(i)){t=!0;return}!vi(i)&&!El(i)&&!ic(i)&&qs(i,n)}),t}function rFe(e,t,n){let i=Ki(e,t),s=n.getTypeChecker(),a=vAt(e,s,i.parent);if(a&&!tFe(a.body)&&!s.containsArgumentsReference(a))return{selectedVariableDeclaration:!0,func:a};let u=Ip(i);if(u&&(ic(u)||fc(u))&&!ed(u.body,i)&&!tFe(u.body)&&!s.containsArgumentsReference(u))return ic(u)&&iFe(e,s,u)?void 0:{selectedVariableDeclaration:!1,func:u}}function yAt(e){return Ci(e)||Fu(e)&&e.declarations.length===1}function vAt(e,t,n){if(!yAt(n))return;let s=(Ci(n)?n:Fo(n.declarations)).initializer;if(s&&(fc(s)||ic(s)&&!iFe(e,t,s)))return s}function nFe(e){if(Pt(e)){let t=U.createReturnStatement(e),n=e.getSourceFile();return At(t,e),yp(t),k8(e,t,n,void 0,!0),U.createBlock([t],!0)}else return e}function SAt(e){let t=e.parent;if(!Ci(t)||!kw(t))return;let n=t.parent,i=n.parent;if(!(!Fu(n)||!fl(i)||!$e(t.name)))return{variableDeclaration:t,variableDeclarationList:n,statement:i,name:t.name}}function TAt(e,t){let{file:n}=e,i=nFe(t.body),s=U.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return bn.ChangeTracker.with(e,a=>a.replaceNode(n,t,s))}function bAt(e,t,n){let{file:i}=e,s=nFe(t.body),{variableDeclaration:a,variableDeclarationList:u,statement:m,name:d}=n;eZ(m);let S=eT(a)&32|V_(t),E=U.createModifiersFromModifierFlags(S),x=U.createFunctionDeclaration(kt(E)?E:void 0,t.asteriskToken,d,t.typeParameters,t.parameters,t.type,s);return u.declarations.length===1?bn.ChangeTracker.with(e,D=>D.replaceNode(i,m,x)):bn.ChangeTracker.with(e,D=>{D.delete(i,a),D.insertNodeAfter(i,m,x)})}function EAt(e,t){let{file:n}=e,s=t.body.statements[0],a;xAt(t.body,s)?(a=s.expression,yp(a),b2(s,a)):a=t.body;let u=U.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,U.createToken(39),a);return bn.ChangeTracker.with(e,m=>m.replaceNode(n,t,u))}function xAt(e,t){return e.statements.length===1&&im(t)&&!!t.expression}function iFe(e,t,n){return!!n.name&&lc.Core.isSymbolReferencedInFile(n.name,t,e)}var CAt={},zZ="Convert parameters to destructured object",AAt=1,sFe=Ls(v.Convert_parameters_to_destructured_object),oFe={name:zZ,description:sFe,kind:"refactor.rewrite.parameters.toDestructured"};jy(zZ,{kinds:[oFe.kind],getEditsForAction:PAt,getAvailableActions:kAt});function kAt(e){let{file:t,startPosition:n}=e;return Pf(t)||!lFe(t,n,e.program.getTypeChecker())?ve:[{name:zZ,description:sFe,actions:[oFe]}]}function PAt(e,t){M.assert(t===zZ,"Unexpected action name");let{file:n,startPosition:i,program:s,cancellationToken:a,host:u}=e,m=lFe(n,i,s.getTypeChecker());if(!m||!a)return;let d=DAt(m,s,a);return d.valid?{renameFilename:void 0,renameLocation:void 0,edits:bn.ChangeTracker.with(e,E=>NAt(n,s,u,E,m,d))}:{edits:[]}}function NAt(e,t,n,i,s,a){let u=a.signature,m=kr(pFe(s,t,n),E=>ka(E));if(u){let E=kr(pFe(u,t,n),x=>ka(x));S(u,E)}S(s,m);let d=BC(a.functionCalls,(E,x)=>tc(E.pos,x.pos));for(let E of d)if(E.arguments&&E.arguments.length){let x=ka(UAt(s,E.arguments),!0);i.replaceNodeRange(Jr(E),Fo(E.arguments),qo(E.arguments),x,{leadingTriviaOption:bn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:bn.TrailingTriviaOption.Include})}function S(E,x){i.replaceNodeRangeWithNodes(e,Fo(E.parameters),qo(E.parameters),x,{joiner:", ",indentation:0,leadingTriviaOption:bn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:bn.TrailingTriviaOption.Include})}}function DAt(e,t,n){let i=JAt(e),s=Vc(e)?VAt(e):[],a=w1([...i,...s],hv),u=t.getTypeChecker(),m=To(a,x=>lc.getReferenceEntriesForNode(-1,x,t,t.getSourceFiles(),n)),d=S(m);return Oi(d.declarations,x=>xs(a,x))||(d.valid=!1),d;function S(x){let D={accessExpressions:[],typeUsages:[]},I={functionCalls:[],declarations:[],classReferences:D,valid:!0},R=kr(i,E),L=kr(s,E),F=Vc(e),J=kr(i,$=>h1e($,u));for(let $ of x){if($.kind===lc.EntryKind.Span){I.valid=!1;continue}if(xs(J,E($.node))){if(RAt($.node.parent)){I.signature=$.node.parent;continue}let ee=cFe($);if(ee){I.functionCalls.push(ee);continue}}let q=h1e($.node,u);if(q&&xs(J,q)){let ee=y1e($);if(ee){I.declarations.push(ee);continue}}if(xs(R,E($.node))||_6($.node)){if(aFe($))continue;let W=y1e($);if(W){I.declarations.push(W);continue}let pe=cFe($);if(pe){I.functionCalls.push(pe);continue}}if(F&&xs(L,E($.node))){if(aFe($))continue;let W=y1e($);if(W){I.declarations.push(W);continue}let pe=IAt($);if(pe){D.accessExpressions.push(pe);continue}if(ru(e.parent)){let K=wAt($);if(K){D.typeUsages.push(K);continue}}}I.valid=!1}return I}function E(x){let D=u.getSymbolAtLocation(x);return D&&QQ(D,u)}}function h1e(e,t){let n=V8(e);if(n){let i=t.getContextualTypeForObjectLiteralElement(n),s=i?.getSymbol();if(s&&!(ul(s)&6))return s}}function aFe(e){let t=e.node;if(pf(t.parent)||ng(t.parent)||nu(t.parent)||Ry(t.parent)||E_(t.parent)||pc(t.parent))return t}function y1e(e){if(f_(e.node.parent))return e.node}function cFe(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 213:case 214:let i=ci(n,Ig);if(i&&i.expression===t)return i;break;case 211:let s=ci(n,Hn);if(s&&s.parent&&s.name===t){let u=ci(s.parent,Ig);if(u&&u.expression===s)return u}break;case 212:let a=ci(n,cc);if(a&&a.parent&&a.argumentExpression===t){let u=ci(a.parent,Ig);if(u&&u.expression===a)return u}break}}}function IAt(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 211:let i=ci(n,Hn);if(i&&i.expression===t)return i;break;case 212:let s=ci(n,cc);if(s&&s.expression===t)return s;break}}}function wAt(e){let t=e.node;if(S2(t)===2||U9(t.parent))return t}function lFe(e,t,n){let i=$N(e,t),s=rfe(i);if(!OAt(i)&&s&&MAt(s,n)&&ed(s,i)&&!(s.body&&ed(s.body,i)))return s}function OAt(e){let t=Dr(e,jP);if(t){let n=Dr(t,i=>!jP(i));return!!n&&$a(n)}return!1}function RAt(e){return Wg(e)&&(Xu(e.parent)||_f(e.parent))}function MAt(e,t){var n;if(!LAt(e.parameters,t))return!1;switch(e.kind){case 262:return uFe(e)&&DV(e,t);case 174:if(ko(e.parent)){let i=h1e(e.name,t);return((n=i?.declarations)==null?void 0:n.length)===1&&DV(e,t)}return DV(e,t);case 176:return ru(e.parent)?uFe(e.parent)&&DV(e,t):_Fe(e.parent.parent)&&DV(e,t);case 218:case 219:return _Fe(e.parent)}return!1}function DV(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function uFe(e){return e.name?!0:!!KN(e,90)}function LAt(e,t){return jAt(e)>=AAt&&Oi(e,n=>FAt(n,t))}function FAt(e,t){if(Lh(e)){let n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&$e(e.name)}function _Fe(e){return Ci(e)&&WP(e)&&$e(e.name)&&!e.type}function v1e(e){return e.length>0&&HN(e[0].name)}function jAt(e){return v1e(e)?e.length-1:e.length}function fFe(e){return v1e(e)&&(e=U.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function BAt(e,t){return $e(t)&&Zd(t)===e?U.createShorthandPropertyAssignment(e):U.createPropertyAssignment(e,t)}function UAt(e,t){let n=fFe(e.parameters),i=Lh(qo(n)),s=i?t.slice(0,n.length-1):t,a=kr(s,(m,d)=>{let S=WZ(n[d]),E=BAt(S,m);return yp(E.name),ql(E)&&yp(E.initializer),b2(m,E),E});if(i&&t.length>=n.length){let m=t.slice(n.length-1),d=U.createPropertyAssignment(WZ(qo(n)),U.createArrayLiteralExpression(m));a.push(d)}return U.createObjectLiteralExpression(a,!1)}function pFe(e,t,n){let i=t.getTypeChecker(),s=fFe(e.parameters),a=kr(s,E),u=U.createObjectBindingPattern(a),m=x(s),d;Oi(s,R)&&(d=U.createObjectLiteralExpression());let S=U.createParameterDeclaration(void 0,void 0,u,void 0,m,d);if(v1e(e.parameters)){let L=e.parameters[0],F=U.createParameterDeclaration(void 0,void 0,L.name,void 0,L.type);return yp(F.name),b2(L.name,F.name),L.type&&(yp(F.type),b2(L.type,F.type)),U.createNodeArray([F,S])}return U.createNodeArray([S]);function E(L){let F=U.createBindingElement(void 0,void 0,WZ(L),Lh(L)&&R(L)?U.createArrayLiteralExpression():L.initializer);return yp(F),L.initializer&&F.initializer&&b2(L.initializer,F.initializer),F}function x(L){let F=kr(L,D);return qg(U.createTypeLiteralNode(F),1)}function D(L){let F=L.type;!F&&(L.initializer||Lh(L))&&(F=I(L));let J=U.createPropertySignature(void 0,WZ(L),R(L)?U.createToken(58):L.questionToken,F);return yp(J),b2(L.name,J.name),L.type&&J.type&&b2(L.type,J.type),J}function I(L){let F=i.getTypeAtLocation(L);return T6(F,L,t,n)}function R(L){if(Lh(L)){let F=i.getTypeAtLocation(L);return!i.isTupleType(F)}return i.isOptionalParameter(L)}}function WZ(e){return Zd(e.name)}function VAt(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[M.checkDefined(KN(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,s=e.parent.parent,a=i.name;return a?[a,s.name]:[s.name]}}function JAt(e){switch(e.kind){case 262:return e.name?[e.name]:[M.checkDefined(KN(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let n=M.checkDefined(Ma(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,n]:[n];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return M.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var qAt={},S1e="Convert to template string",T1e=Ls(v.Convert_to_template_string),b1e={name:S1e,description:T1e,kind:"refactor.rewrite.string"};jy(S1e,{kinds:[b1e.kind],getEditsForAction:WAt,getAvailableActions:zAt});function zAt(e){let{file:t,startPosition:n}=e,i=dFe(t,n),s=E1e(i),a=jo(s),u={name:S1e,description:T1e,actions:[]};return a&&e.triggerReason!=="invoked"?ve:eg(s)&&(a||Dn(s)&&x1e(s).isValidConcatenation)?(u.actions.push(b1e),[u]):e.preferences.provideRefactorNotApplicableReason?(u.actions.push({...b1e,notApplicableReason:Ls(v.Can_only_convert_string_concatenations_and_string_literals)}),[u]):ve}function dFe(e,t){let n=Ki(e,t),i=E1e(n);return!x1e(i).isValidConcatenation&&ff(i.parent)&&Dn(i.parent.parent)?i.parent.parent:n}function WAt(e,t){let{file:n,startPosition:i}=e,s=dFe(n,i);switch(t){case T1e:return{edits:GAt(e,s)};default:return M.fail("invalid action")}}function GAt(e,t){let n=E1e(t),i=e.file,s=XAt(x1e(n),i),a=L1(i.text,n.end);if(a){let u=a[a.length-1],m={pos:a[0].pos,end:u.end};return bn.ChangeTracker.with(e,d=>{d.deleteRange(i,m),d.replaceNode(i,n,s)})}else return bn.ChangeTracker.with(e,u=>u.replaceNode(i,n,s))}function HAt(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function E1e(e){return Dr(e.parent,n=>{switch(n.kind){case 211:case 212:return!1;case 228:case 226:return!(Dn(n.parent)&&HAt(n.parent));default:return"quit"}})||e}function x1e(e){let t=u=>{if(!Dn(u))return{nodes:[u],operators:[],validOperators:!0,hasString:jo(u)||wA(u)};let{nodes:m,operators:d,hasString:S,validOperators:E}=t(u.left);if(!(S||jo(u.right)||Uj(u.right)))return{nodes:[u],operators:[],hasString:!1,validOperators:!0};let x=u.operatorToken.kind===40,D=E&&x;return m.push(u.right),d.push(u.operatorToken),{nodes:m,operators:d,hasString:!0,validOperators:D}},{nodes:n,operators:i,validOperators:s,hasString:a}=t(e);return{nodes:n,operators:i,isValidConcatenation:s&&a}}var $At=(e,t)=>(n,i)=>{n(i,s)=>{for(;i.length>0;){let a=i.shift();v6(e[a],s,t,3,!1),n(a,s)}};function KAt(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function mFe(e){let t=OA(e)||nY(e)?-2:-1;return Hc(e).slice(1,t)}function gFe(e,t){let n=[],i="",s="";for(;e{hFe(q);let W=ee===D.templateSpans.length-1,pe=q.literal.text+(W?R:""),K=mFe(q.literal)+(W?L:"");return U.createTemplateSpan(q.expression,J&&W?U.createTemplateTail(pe,K):U.createTemplateMiddle(pe,K))});S.push(...$)}else{let $=J?U.createTemplateTail(R,L):U.createTemplateMiddle(R,L);s(F,$),S.push(U.createTemplateSpan(D,$))}}return U.createTemplateExpression(E,S)}function hFe(e){let t=e.getSourceFile();v6(e,e.expression,t,3,!1),k8(e.expression,e.expression,t,3,!1)}function QAt(e){return ff(e)&&(hFe(e),e=e.expression),e}var ZAt={},GZ="Convert to optional chain expression",C1e=Ls(v.Convert_to_optional_chain_expression),A1e={name:GZ,description:C1e,kind:"refactor.rewrite.expression.optionalChain"};jy(GZ,{kinds:[A1e.kind],getEditsForAction:tkt,getAvailableActions:ekt});function ekt(e){let t=yFe(e,e.triggerReason==="invoked");return t?I0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:GZ,description:C1e,actions:[{...A1e,notApplicableReason:t.error}]}]:ve:[{name:GZ,description:C1e,actions:[A1e]}]:ve}function tkt(e,t){let n=yFe(e);return M.assert(n&&!I0(n),"Expected applicable refactor info"),{edits:bn.ChangeTracker.with(e,s=>lkt(e.file,e.program.getTypeChecker(),s,n,t)),renameFilename:void 0,renameLocation:void 0}}function HZ(e){return Dn(e)||VA(e)}function rkt(e){return wu(e)||im(e)||fl(e)}function $Z(e){return HZ(e)||rkt(e)}function yFe(e,t=!0){let{file:n,program:i}=e,s=ck(e),a=s.length===0;if(a&&!t)return;let u=Ki(n,s.start),m=jU(n,s.start+s.length),d=wl(u.pos,m&&m.end>=u.pos?m.getEnd():u.getEnd()),S=a?akt(u):okt(u,d),E=S&&$Z(S)?ckt(S):void 0;if(!E)return{error:Ls(v.Could_not_find_convertible_access_expression)};let x=i.getTypeChecker();return VA(E)?nkt(E,x):ikt(E)}function nkt(e,t){let n=e.condition,i=P1e(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:Ls(v.Could_not_find_convertible_access_expression)};if((Hn(n)||$e(n))&&k1e(n,i.expression))return{finalExpression:i,occurrences:[n],expression:e};if(Dn(n)){let s=vFe(i.expression,n);return s?{finalExpression:i,occurrences:s,expression:e}:{error:Ls(v.Could_not_find_matching_access_expressions)}}}function ikt(e){if(e.operatorToken.kind!==56)return{error:Ls(v.Can_only_convert_logical_AND_access_chains)};let t=P1e(e.right);if(!t)return{error:Ls(v.Could_not_find_convertible_access_expression)};let n=vFe(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Ls(v.Could_not_find_matching_access_expressions)}}function vFe(e,t){let n=[];for(;Dn(t)&&t.operatorToken.kind===56;){let s=k1e(ba(e),ba(t.right));if(!s)break;n.push(s),e=s,t=t.left}let i=k1e(e,t);return i&&n.push(i),n.length>0?n:void 0}function k1e(e,t){if(!(!$e(t)&&!Hn(t)&&!cc(t)))return skt(e,t)?t:void 0}function skt(e,t){for(;(to(e)||Hn(e)||cc(e))&&j8(e)!==j8(t);)e=e.expression;for(;Hn(e)&&Hn(t)||cc(e)&&cc(t);){if(j8(e)!==j8(t))return!1;e=e.expression,t=t.expression}return $e(e)&&$e(t)&&e.getText()===t.getText()}function j8(e){if($e(e)||Wp(e))return e.getText();if(Hn(e))return j8(e.name);if(cc(e))return j8(e.argumentExpression)}function okt(e,t){for(;e.parent;){if($Z(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function akt(e){for(;e.parent;){if($Z(e)&&!$Z(e.parent))return e;e=e.parent}}function ckt(e){if(HZ(e))return e;if(fl(e)){let t=lA(e),n=t?.initializer;return n&&HZ(n)?n:void 0}return e.expression&&HZ(e.expression)?e.expression:void 0}function P1e(e){if(e=ba(e),Dn(e))return P1e(e.left);if((Hn(e)||cc(e)||to(e))&&!b_(e))return e}function SFe(e,t,n){if(Hn(t)||cc(t)||to(t)){let i=SFe(e,t.expression,n),s=n.length>0?n[n.length-1]:void 0,a=s?.getText()===t.expression.getText();if(a&&n.pop(),to(t))return a?U.createCallChain(i,U.createToken(29),t.typeArguments,t.arguments):U.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Hn(t))return a?U.createPropertyAccessChain(i,U.createToken(29),t.name):U.createPropertyAccessChain(i,t.questionDotToken,t.name);if(cc(t))return a?U.createElementAccessChain(i,U.createToken(29),t.argumentExpression):U.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function lkt(e,t,n,i,s){let{finalExpression:a,occurrences:u,expression:m}=i,d=u[u.length-1],S=SFe(t,a,u);S&&(Hn(S)||cc(S)||to(S))&&(Dn(m)?n.replaceNodeRange(e,d,a,S):VA(m)&&n.replaceNode(e,m,U.createBinaryExpression(S,U.createToken(61),m.whenFalse)))}var TFe={};k(TFe,{Messages:()=>Qu,RangeFacts:()=>xFe,getRangeToExtract:()=>N1e,getRefactorActionsToExtractSymbol:()=>bFe,getRefactorEditsToExtractSymbol:()=>EFe});var C6="Extract Symbol",A6={name:"Extract Constant",description:Ls(v.Extract_constant),kind:"refactor.extract.constant"},k6={name:"Extract Function",description:Ls(v.Extract_function),kind:"refactor.extract.function"};jy(C6,{kinds:[A6.kind,k6.kind],getEditsForAction:EFe,getAvailableActions:bFe});function bFe(e){let t=e.kind,n=N1e(e.file,ck(e),e.triggerReason==="invoked"),i=n.targetRange;if(i===void 0){if(!n.errors||n.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return ve;let L=[];return LT(k6.kind,t)&&L.push({name:C6,description:k6.description,actions:[{...k6,notApplicableReason:R(n.errors)}]}),LT(A6.kind,t)&&L.push({name:C6,description:A6.description,actions:[{...A6,notApplicableReason:R(n.errors)}]}),L}let{affectedTextRange:s,extractions:a}=mkt(i,e);if(a===void 0)return ve;let u=[],m=new Map,d,S=[],E=new Map,x,D=0;for(let{functionExtraction:L,constantExtraction:F}of a){if(LT(k6.kind,t)){let J=L.description;L.errors.length===0?m.has(J)||(m.set(J,!0),u.push({description:J,name:`function_scope_${D}`,kind:k6.kind,range:{start:{line:Eo(e.file,s.pos).line,offset:Eo(e.file,s.pos).character},end:{line:Eo(e.file,s.end).line,offset:Eo(e.file,s.end).character}}})):d||(d={description:J,name:`function_scope_${D}`,notApplicableReason:R(L.errors),kind:k6.kind})}if(LT(A6.kind,t)){let J=F.description;F.errors.length===0?E.has(J)||(E.set(J,!0),S.push({description:J,name:`constant_scope_${D}`,kind:A6.kind,range:{start:{line:Eo(e.file,s.pos).line,offset:Eo(e.file,s.pos).character},end:{line:Eo(e.file,s.end).line,offset:Eo(e.file,s.end).character}}})):x||(x={description:J,name:`constant_scope_${D}`,notApplicableReason:R(F.errors),kind:A6.kind})}D++}let I=[];return u.length?I.push({name:C6,description:Ls(v.Extract_function),actions:u}):e.preferences.provideRefactorNotApplicableReason&&d&&I.push({name:C6,description:Ls(v.Extract_function),actions:[d]}),S.length?I.push({name:C6,description:Ls(v.Extract_constant),actions:S}):e.preferences.provideRefactorNotApplicableReason&&x&&I.push({name:C6,description:Ls(v.Extract_constant),actions:[x]}),I.length?I:ve;function R(L){let F=L[0].messageText;return typeof F!="string"&&(F=F.messageText),F}}function EFe(e,t){let i=N1e(e.file,ck(e)).targetRange,s=/^function_scope_(\d+)$/.exec(t);if(s){let u=+s[1];return M.assert(isFinite(u),"Expected to parse a finite number from the function scope index"),pkt(i,e,u)}let a=/^constant_scope_(\d+)$/.exec(t);if(a){let u=+a[1];return M.assert(isFinite(u),"Expected to parse a finite number from the constant scope index"),dkt(i,e,u)}M.fail("Unrecognized action name")}var Qu;(e=>{function t(n){return{message:n,code:0,category:3,key:n}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(Qu||(Qu={}));var xFe=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(xFe||{});function N1e(e,t,n=!0){let{length:i}=t;if(i===0&&!n)return{errors:[bu(e,t.start,i,Qu.cannotExtractEmpty)]};let s=i===0&&n,a=T0e(e,t.start),u=jU(e,bl(t)),m=a&&u&&n?ukt(a,u,e):t,d=s?Mkt(a):E8(a,e,m),S=s?d:E8(u,e,m),E=0,x;if(!d||!S)return{errors:[bu(e,t.start,i,Qu.cannotExtractRange)]};if(d.flags&16777216)return{errors:[bu(e,t.start,i,Qu.cannotExtractJSDoc)]};if(d.parent!==S.parent)return{errors:[bu(e,t.start,i,Qu.cannotExtractRange)]};if(d!==S){if(!rD(d.parent))return{errors:[bu(e,t.start,i,Qu.cannotExtractRange)]};let $=[];for(let q of d.parent.statements){if(q===d||$.length){let ee=J(q);if(ee)return{errors:ee};$.push(q)}if(q===S)break}return $.length?{targetRange:{range:$,facts:E,thisNode:x}}:{errors:[bu(e,t.start,i,Qu.cannotExtractRange)]}}if(im(d)&&!d.expression)return{errors:[bu(e,t.start,i,Qu.cannotExtractRange)]};let D=R(d),I=L(D)||J(D);if(I)return{errors:I};return{targetRange:{range:_kt(D),facts:E,thisNode:x}};function R($){if(im($)){if($.expression)return $.expression}else if(fl($)||Fu($)){let q=fl($)?$.declarationList.declarations:$.declarations,ee=0,W;for(let pe of q)pe.initializer&&(ee++,W=pe.initializer);if(ee===1)return W}else if(Ci($)&&$.initializer)return $.initializer;return $}function L($){if($e(wu($)?$.expression:$))return[mn($,Qu.cannotExtractIdentifier)]}function F($,q){let ee=$;for(;ee!==q;){if(ee.kind===172){co(ee)&&(E|=32);break}else if(ee.kind===169){Ip(ee).kind===176&&(E|=32);break}else ee.kind===174&&co(ee)&&(E|=32);ee=ee.parent}}function J($){let q;if((ue=>{ue[ue.None=0]="None",ue[ue.Break=1]="Break",ue[ue.Continue=2]="Continue",ue[ue.Return=4]="Return"})(q||(q={})),M.assert($.pos<=$.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),M.assert(!rg($.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ji($)&&!(eg($)&&CFe($))&&!R1e($))return[mn($,Qu.statementOrExpressionExpected)];if($.flags&33554432)return[mn($,Qu.cannotExtractAmbientBlock)];let ee=Lu($);ee&&F($,ee);let W,pe=4,K;if(re($),E&8){let ue=of($,!1,!1);(ue.kind===262||ue.kind===174&&ue.parent.kind===210||ue.kind===218)&&(E|=16)}return W;function re(ue){if(W)return!0;if(f_(ue)){let ne=ue.kind===260?ue.parent.parent:ue;if(_i(ne,32))return(W||(W=[])).push(mn(ue,Qu.cannotExtractExportedEntity)),!0}switch(ue.kind){case 272:return(W||(W=[])).push(mn(ue,Qu.cannotExtractImport)),!0;case 277:return(W||(W=[])).push(mn(ue,Qu.cannotExtractExportedEntity)),!0;case 108:if(ue.parent.kind===213){let ne=Lu(ue);if(ne===void 0||ne.pos=t.start+t.length)return(W||(W=[])).push(mn(ue,Qu.cannotExtractSuper)),!0}else E|=8,x=ue;break;case 219:qs(ue,function ne(le){if(HN(le))E|=8,x=ue;else{if(vi(le)||Us(le)&&!fc(le))return!1;qs(le,ne)}});case 263:case 262:qi(ue.parent)&&ue.parent.externalModuleIndicator===void 0&&(W||(W=[])).push(mn(ue,Qu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let ce=pe;switch(ue.kind){case 245:pe&=-5;break;case 258:pe=0;break;case 241:ue.parent&&ue.parent.kind===258&&ue.parent.finallyBlock===ue&&(pe=4);break;case 297:case 296:pe|=1;break;default:V1(ue,!1)&&(pe|=3);break}switch(ue.kind){case 197:case 110:E|=8,x=ue;break;case 256:{let ne=ue.label;(K||(K=[])).push(ne.escapedText),qs(ue,re),K.pop();break}case 252:case 251:{let ne=ue.label;ne?xs(K,ne.escapedText)||(W||(W=[])).push(mn(ue,Qu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):pe&(ue.kind===252?1:2)||(W||(W=[])).push(mn(ue,Qu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:E|=4;break;case 229:E|=2;break;case 253:pe&4?E|=1:(W||(W=[])).push(mn(ue,Qu.cannotExtractRangeContainingConditionalReturnStatement));break;default:qs(ue,re);break}pe=ce}}}function ukt(e,t,n){let i=e.getStart(n),s=t.getEnd();return n.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function _kt(e){if(Ji(e))return[e];if(eg(e))return wu(e.parent)?[e.parent]:e;if(R1e(e))return e}function D1e(e){return fc(e)?eH(e.body):$a(e)||qi(e)||Gg(e)||vi(e)}function fkt(e){let t=zv(e.range)?Fo(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=Lu(t);if(i){let s=Dr(t,$a);return s?[s,i]:[i]}}let n=[];for(;;)if(t=t.parent,t.kind===169&&(t=Dr(t,i=>$a(i)).parent),D1e(t)&&(n.push(t),t.kind===307))return n}function pkt(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:a,functionErrorsPerScope:u,exposedVariableDeclarations:m}}=I1e(e,t);return M.assert(!u[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),Tkt(s,i[n],a[n],m,e,t)}function dkt(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:a,constantErrorsPerScope:u,exposedVariableDeclarations:m}}=I1e(e,t);M.assert(!u[n].length,"The extraction went missing? How?"),M.assert(m.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let d=Pt(s)?s:s.statements[0].expression;return bkt(d,i[n],a[n],e.facts,t)}function mkt(e,t){let{scopes:n,affectedTextRange:i,readsAndWrites:{functionErrorsPerScope:s,constantErrorsPerScope:a}}=I1e(e,t),u=n.map((m,d)=>{let S=gkt(m),E=hkt(m),x=$a(m)?ykt(m):vi(m)?vkt(m):Skt(m),D,I;return x===1?(D=Dy(Ls(v.Extract_to_0_in_1_scope),[S,"global"]),I=Dy(Ls(v.Extract_to_0_in_1_scope),[E,"global"])):x===0?(D=Dy(Ls(v.Extract_to_0_in_1_scope),[S,"module"]),I=Dy(Ls(v.Extract_to_0_in_1_scope),[E,"module"])):(D=Dy(Ls(v.Extract_to_0_in_1),[S,x]),I=Dy(Ls(v.Extract_to_0_in_1),[E,x])),d===0&&!vi(m)&&(I=Dy(Ls(v.Extract_to_0_in_enclosing_scope),[E])),{functionExtraction:{description:D,errors:s[d]},constantExtraction:{description:I,errors:a[d]}}});return{affectedTextRange:i,extractions:u}}function I1e(e,t){let{file:n}=t,i=fkt(e),s=Okt(e,n),a=Rkt(e,i,s,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,affectedTextRange:s,readsAndWrites:a}}function gkt(e){return $a(e)?"inner function":vi(e)?"method":"function"}function hkt(e){return vi(e)?"readonly field":"constant"}function ykt(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:nZ;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:M.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function vkt(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function Skt(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function Tkt(e,t,{usages:n,typeParameterUsages:i,substitutions:s},a,u,m){let d=m.program.getTypeChecker(),S=Qo(m.program.getCompilerOptions()),E=P_.createImportAdder(m.file,m.program,m.preferences,m.host),x=t.getSourceFile(),D=E2(vi(t)?"newMethod":"newFunction",x),I=vn(t),R=U.createIdentifier(D),L,F=[],J=[],$;n.forEach((ke,De)=>{let Be;if(!I){let ze=d.getTypeOfSymbolAtLocation(ke.symbol,ke.node);ze=d.getBaseTypeOfLiteralType(ze),Be=P_.typeToAutoImportableTypeNode(d,E,ze,t,S,1)}let lt=U.createParameterDeclaration(void 0,void 0,De,void 0,Be);F.push(lt),ke.usage===2&&($||($=[])).push(ke),J.push(U.createIdentifier(De))});let ee=Os(i.values(),ke=>({type:ke,declaration:xkt(ke,m.startPosition)})).sort(Ckt),W=ee.length===0?void 0:Yi(ee,({declaration:ke})=>ke),pe=W!==void 0?W.map(ke=>U.createTypeReferenceNode(ke.name,void 0)):void 0;if(Pt(e)&&!I){let ke=d.getContextualType(e);L=d.typeToTypeNode(ke,t,1)}let{body:K,returnValueProperty:re}=kkt(e,a,$,s,!!(u.facts&1));yp(K);let ue,ce=!!(u.facts&16);if(vi(t)){let ke=I?[]:[U.createModifier(123)];u.facts&32&&ke.push(U.createModifier(126)),u.facts&4&&ke.push(U.createModifier(134)),ue=U.createMethodDeclaration(ke.length?ke:void 0,u.facts&2?U.createToken(42):void 0,R,void 0,W,F,L,K)}else ce&&F.unshift(U.createParameterDeclaration(void 0,void 0,"this",void 0,d.typeToTypeNode(d.getTypeAtLocation(u.thisNode),t,1),void 0)),ue=U.createFunctionDeclaration(u.facts&4?[U.createToken(134)]:void 0,u.facts&2?U.createToken(42):void 0,R,W,F,L,K);let ne=bn.ChangeTracker.fromContext(m),le=(zv(u.range)?qo(u.range):u.range).end,me=Dkt(le,t);me?ne.insertNodeBefore(m.file,me,ue,!0):ne.insertNodeAtEndOfScope(m.file,t,ue),E.writeFixes(ne);let de=[],Ae=Akt(t,u,D);ce&&J.unshift(U.createIdentifier("this"));let xe=U.createCallExpression(ce?U.createPropertyAccessExpression(Ae,"call"):Ae,pe,J);if(u.facts&2&&(xe=U.createYieldExpression(U.createToken(42),xe)),u.facts&4&&(xe=U.createAwaitExpression(xe)),O1e(e)&&(xe=U.createJsxExpression(void 0,xe)),a.length&&!$)if(M.assert(!re,"Expected no returnValueProperty"),M.assert(!(u.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),a.length===1){let ke=a[0];de.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(ka(ke.name),void 0,ka(ke.type),xe)],ke.parent.flags)))}else{let ke=[],De=[],Be=a[0].parent.flags,lt=!1;for(let tt of a){ke.push(U.createBindingElement(void 0,void 0,ka(tt.name)));let we=d.typeToTypeNode(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(tt)),t,1);De.push(U.createPropertySignature(void 0,tt.symbol.name,void 0,we)),lt=lt||tt.type!==void 0,Be=Be&tt.parent.flags}let ze=lt?U.createTypeLiteralNode(De):void 0;ze&&xn(ze,1),de.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(U.createObjectBindingPattern(ke),void 0,ze,xe)],Be)))}else if(a.length||$){if(a.length)for(let De of a){let Be=De.parent.flags;Be&2&&(Be=Be&-3|1),de.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(De.symbol.name,void 0,Pe(De.type))],Be)))}re&&de.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(re,void 0,Pe(L))],1)));let ke=w1e(a,$);re&&ke.unshift(U.createShorthandPropertyAssignment(re)),ke.length===1?(M.assert(!re,"Shouldn't have returnValueProperty here"),de.push(U.createExpressionStatement(U.createAssignment(ke[0].name,xe))),u.facts&1&&de.push(U.createReturnStatement())):(de.push(U.createExpressionStatement(U.createAssignment(U.createObjectLiteralExpression(ke),xe))),re&&de.push(U.createReturnStatement(U.createIdentifier(re))))}else u.facts&1?de.push(U.createReturnStatement(xe)):zv(u.range)?de.push(U.createExpressionStatement(xe)):de.push(xe);zv(u.range)?ne.replaceNodeRangeWithNodes(m.file,Fo(u.range),qo(u.range),de):ne.replaceNodeWithNodes(m.file,u.range,de);let te=ne.getChanges(),Te=(zv(u.range)?Fo(u.range):u.range).getSourceFile().fileName,Ve=A8(te,Te,D,!1);return{renameFilename:Te,renameLocation:Ve,edits:te};function Pe(ke){if(ke===void 0)return;let De=ka(ke),Be=De;for(;o2(Be);)Be=Be.type;return Z1(Be)&&jn(Be.types,lt=>lt.kind===157)?De:U.createUnionTypeNode([De,U.createKeywordTypeNode(157)])}}function bkt(e,t,{substitutions:n},i,s){let a=s.program.getTypeChecker(),u=t.getSourceFile(),m=l1e(e,t,a,u),d=vn(t),S=d||!a.isContextSensitive(e)?void 0:a.typeToTypeNode(a.getContextualType(e),t,1),E=Pkt(ba(e),n);({variableType:S,initializer:E}=L(S,E)),yp(E);let x=bn.ChangeTracker.fromContext(s);if(vi(t)){M.assert(!d,"Cannot extract to a JS class");let F=[];F.push(U.createModifier(123)),i&32&&F.push(U.createModifier(126)),F.push(U.createModifier(148));let J=U.createPropertyDeclaration(F,m,void 0,S,E),$=U.createPropertyAccessExpression(i&32?U.createIdentifier(t.name.getText()):U.createThis(),U.createIdentifier(m));O1e(e)&&($=U.createJsxExpression(void 0,$));let q=e.pos,ee=Ikt(q,t);x.insertNodeBefore(s.file,ee,J,!0),x.replaceNode(s.file,e,$)}else{let F=U.createVariableDeclaration(m,void 0,S,E),J=Ekt(e,t);if(J){x.insertNodeBefore(s.file,J,F);let $=U.createIdentifier(m);x.replaceNode(s.file,e,$)}else if(e.parent.kind===244&&t===Dr(e,D1e)){let $=U.createVariableStatement(void 0,U.createVariableDeclarationList([F],2));x.replaceNode(s.file,e.parent,$)}else{let $=U.createVariableStatement(void 0,U.createVariableDeclarationList([F],2)),q=wkt(e,t);if(q.pos===0?x.insertNodeAtTopOfFile(s.file,$,!1):x.insertNodeBefore(s.file,q,$,!1),e.parent.kind===244)x.delete(s.file,e.parent);else{let ee=U.createIdentifier(m);O1e(e)&&(ee=U.createJsxExpression(void 0,ee)),x.replaceNode(s.file,e,ee)}}}let D=x.getChanges(),I=e.getSourceFile().fileName,R=A8(D,I,m,!0);return{renameFilename:I,renameLocation:R,edits:D};function L(F,J){if(F===void 0)return{variableType:F,initializer:J};if(!ic(J)&&!fc(J)||J.typeParameters)return{variableType:F,initializer:J};let $=a.getTypeAtLocation(e),q=Nh(a.getSignaturesOfType($,0));if(!q)return{variableType:F,initializer:J};if(q.getTypeParameters())return{variableType:F,initializer:J};let ee=[],W=!1;for(let pe of J.parameters)if(pe.type)ee.push(pe);else{let K=a.getTypeAtLocation(pe);K===a.getAnyType()&&(W=!0),ee.push(U.updateParameterDeclaration(pe,pe.modifiers,pe.dotDotDotToken,pe.name,pe.questionToken,pe.type||a.typeToTypeNode(K,t,1),pe.initializer))}if(W)return{variableType:F,initializer:J};if(F=void 0,fc(J))J=U.updateArrowFunction(J,Im(e)?qb(e):void 0,J.typeParameters,ee,J.type||a.typeToTypeNode(q.getReturnType(),t,1),J.equalsGreaterThanToken,J.body);else{if(q&&q.thisParameter){let pe=Aa(ee);if(!pe||$e(pe.name)&&pe.name.escapedText!=="this"){let K=a.getTypeOfSymbolAtLocation(q.thisParameter,e);ee.splice(0,0,U.createParameterDeclaration(void 0,void 0,"this",void 0,a.typeToTypeNode(K,t,1)))}}J=U.updateFunctionExpression(J,Im(e)?qb(e):void 0,J.asteriskToken,J.name,J.typeParameters,ee,J.type||a.typeToTypeNode(q.getReturnType(),t,1),J.body)}return{variableType:F,initializer:J}}}function Ekt(e,t){let n;for(;e!==void 0&&e!==t;){if(Ci(e)&&e.initializer===n&&Fu(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}function xkt(e,t){let n,i=e.symbol;if(i&&i.declarations)for(let s of i.declarations)(n===void 0||s.pos0;if(Js(e)&&!a&&i.size===0)return{body:U.createBlock(e.statements,!0),returnValueProperty:void 0};let u,m=!1,d=U.createNodeArray(Js(e)?e.statements.slice(0):[Ji(e)?e:U.createReturnStatement(ba(e))]);if(a||i.size){let E=Qr(d,S,Ji).slice();if(a&&!s&&Ji(e)){let x=w1e(t,n);x.length===1?E.push(U.createReturnStatement(x[0].name)):E.push(U.createReturnStatement(U.createObjectLiteralExpression(x)))}return{body:U.createBlock(E,!0),returnValueProperty:u}}else return{body:U.createBlock(d,!0),returnValueProperty:void 0};function S(E){if(!m&&im(E)&&a){let x=w1e(t,n);return E.expression&&(u||(u="__return"),x.unshift(U.createPropertyAssignment(u,ct(E.expression,S,Pt)))),x.length===1?U.createReturnStatement(x[0].name):U.createReturnStatement(U.createObjectLiteralExpression(x))}else{let x=m;m=m||$a(E)||vi(E);let D=i.get(Sa(E).toString()),I=D?ka(D):jr(E,S,void 0);return m=x,I}}}function Pkt(e,t){return t.size?n(e):e;function n(i){let s=t.get(Sa(i).toString());return s?ka(s):jr(i,n,void 0)}}function Nkt(e){if($a(e)){let t=e.body;if(Js(t))return t.statements}else{if(Gg(e)||qi(e))return e.statements;if(vi(e))return e.members;}return ve}function Dkt(e,t){return jn(Nkt(t),n=>n.pos>=e&&$a(n)&&!Vc(n))}function Ikt(e,t){let n=t.members;M.assert(n.length>0,"Found no members");let i,s=!0;for(let a of n){if(a.pos>e)return i||n[0];if(s&&!Ds(a)){if(i!==void 0)return a;s=!1}i=a}return i===void 0?M.fail():i}function wkt(e,t){M.assert(!vi(t));let n;for(let i=e;i!==t;i=i.parent)D1e(i)&&(n=i);for(let i=(n||e).parent;;i=i.parent){if(rD(i)){let s;for(let a of i.statements){if(a.pos>e.pos)break;s=a}return!s&&TN(i)?(M.assert(kO(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):M.checkDefined(s,"prevStatement failed to get set")}M.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function w1e(e,t){let n=kr(e,s=>U.createShorthandPropertyAssignment(s.symbol.name)),i=kr(t,s=>U.createShorthandPropertyAssignment(s.symbol.name));return n===void 0?i:i===void 0?n:n.concat(i)}function zv(e){return Ms(e)}function Okt(e,t){return zv(e.range)?{pos:Fo(e.range).getStart(t),end:qo(e.range).getEnd()}:e.range}function Rkt(e,t,n,i,s,a){let u=new Map,m=[],d=[],S=[],E=[],x=[],D=new Map,I=[],R,L=zv(e.range)?e.range.length===1&&wu(e.range[0])?e.range[0].expression:void 0:e.range,F;if(L===void 0){let me=e.range,de=Fo(me).getStart(),Ae=qo(me).end;F=bu(i,de,Ae-de,Qu.expressionExpected)}else s.getTypeAtLocation(L).flags&147456&&(F=mn(L,Qu.uselessConstantType));for(let me of t){m.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),d.push(new Map),S.push([]);let de=[];F&&de.push(F),vi(me)&&vn(me)&&de.push(mn(me,Qu.cannotExtractToJSClass)),fc(me)&&!Js(me.body)&&de.push(mn(me,Qu.cannotExtractToExpressionArrowFunction)),E.push(de)}let J=new Map,$=zv(e.range)?U.createBlock(e.range):e.range,q=zv(e.range)?Fo(e.range):e.range,ee=W(q);if(K($),ee&&!zv(e.range)&&!Yg(e.range)){let me=s.getContextualType(e.range);pe(me)}if(u.size>0){let me=new Map,de=0;for(let Ae=q;Ae!==void 0&&de{m[de].typeParameterUsages.set(te,xe)}),de++),SH(Ae))for(let xe of j1(Ae)){let te=s.getTypeAtLocation(xe);u.has(te.id.toString())&&me.set(te.id.toString(),te)}M.assert(de===t.length,"Should have iterated all scopes")}if(x.length){let me=vH(t[0],t[0].parent)?t[0]:Zm(t[0]);qs(me,ce)}for(let me=0;me0&&(de.usages.size>0||de.typeParameterUsages.size>0)){let te=zv(e.range)?e.range[0]:e.range;E[me].push(mn(te,Qu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&vi(t[me])&&S[me].push(mn(e.thisNode,Qu.cannotExtractFunctionsContainingThisToMethod));let Ae=!1,xe;if(m[me].usages.forEach(te=>{te.usage===2&&(Ae=!0,te.symbol.flags&106500&&te.symbol.valueDeclaration&&fp(te.symbol.valueDeclaration,8)&&(xe=te.symbol.valueDeclaration))}),M.assert(zv(e.range)||I.length===0,"No variable declarations expected if something was extracted"),Ae&&!zv(e.range)){let te=mn(e.range,Qu.cannotWriteInExpression);S[me].push(te),E[me].push(te)}else if(xe&&me>0){let te=mn(xe,Qu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);S[me].push(te),E[me].push(te)}else if(R){let te=mn(R,Qu.cannotExtractExportedEntity);S[me].push(te),E[me].push(te)}}return{target:$,usagesPerScope:m,functionErrorsPerScope:S,constantErrorsPerScope:E,exposedVariableDeclarations:I};function W(me){return!!Dr(me,de=>SH(de)&&j1(de).length!==0)}function pe(me){let de=s.getSymbolWalker(()=>(a.throwIfCancellationRequested(),!0)),{visitedTypes:Ae}=de.walkType(me);for(let xe of Ae)xe.isTypeParameter()&&u.set(xe.id.toString(),xe)}function K(me,de=1){if(ee){let Ae=s.getTypeAtLocation(me);pe(Ae)}if(f_(me)&&me.symbol&&x.push(me),Tu(me))K(me.left,2),K(me.right);else if(o_e(me))K(me.operand,2);else if(Hn(me)||cc(me))qs(me,K);else if($e(me)){if(!me.parent||uf(me.parent)&&me!==me.parent.left||Hn(me.parent)&&me!==me.parent.expression)return;re(me,de,Mg(me))}else qs(me,K)}function re(me,de,Ae){let xe=ue(me,de,Ae);if(xe)for(let te=0;te=de)return te;if(J.set(te,de),he){for(let Pe of m)Pe.usages.get(me.text)&&Pe.usages.set(me.text,{usage:de,symbol:xe,node:me});return te}let Te=xe.getDeclarations(),Ve=Te&&jn(Te,Pe=>Pe.getSourceFile()===i);if(Ve&&!m8(n,Ve.getStart(),Ve.end)){if(e.facts&2&&de===2){let Pe=mn(me,Qu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let ke of S)ke.push(Pe);for(let ke of E)ke.push(Pe)}for(let Pe=0;Pexe.symbol===de);if(Ae)if(Ci(Ae)){let xe=Ae.symbol.id.toString();D.has(xe)||(I.push(Ae),D.set(xe,!0))}else R=R||Ae}qs(me,ce)}function ne(me){return me.parent&&m_(me.parent)&&me.parent.name===me?s.getShorthandAssignmentValueSymbol(me.parent):s.getSymbolAtLocation(me)}function le(me,de,Ae){if(!me)return;let xe=me.getDeclarations();if(xe&&xe.some(he=>he.parent===de))return U.createIdentifier(me.name);let te=le(me.parent,de,Ae);if(te!==void 0)return Ae?U.createQualifiedName(te,U.createIdentifier(me.name)):U.createPropertyAccessExpression(te,me.name)}}function Mkt(e){return Dr(e,t=>t.parent&&CFe(t)&&!Dn(t.parent))}function CFe(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function O1e(e){return R1e(e)||(My(e)||u2(e)||vE(e))&&(My(e.parent)||vE(e.parent))}function R1e(e){return jo(e)&&e.parent&&Yg(e.parent)}var Lkt={},YZ="Generate 'get' and 'set' accessors",M1e=Ls(v.Generate_get_and_set_accessors),L1e={name:YZ,description:M1e,kind:"refactor.rewrite.property.generateAccessors"};jy(YZ,{kinds:[L1e.kind],getEditsForAction:function(t,n){if(!t.endPosition)return;let i=P_.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);M.assert(i&&!I0(i),"Expected applicable refactor info");let s=P_.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,n);if(!s)return;let a=t.file.fileName,u=i.renameAccessor?i.accessorName:i.fieldName,d=($e(u)?0:-1)+A8(s,a,u.text,is(i.declaration));return{renameFilename:a,renameLocation:d,edits:s}},getAvailableActions(e){if(!e.endPosition)return ve;let t=P_.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?I0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:YZ,description:M1e,actions:[{...L1e,notApplicableReason:t.error}]}]:ve:[{name:YZ,description:M1e,actions:[L1e]}]:ve}});var Fkt={},KZ="Infer function return type",F1e=Ls(v.Infer_function_return_type),XZ={name:KZ,description:F1e,kind:"refactor.rewrite.function.returnType"};jy(KZ,{kinds:[XZ.kind],getEditsForAction:jkt,getAvailableActions:Bkt});function jkt(e){let t=AFe(e);if(t&&!I0(t))return{renameFilename:void 0,renameLocation:void 0,edits:bn.ChangeTracker.with(e,i=>Ukt(e.file,i,t.declaration,t.returnTypeNode))}}function Bkt(e){let t=AFe(e);return t?I0(t)?e.preferences.provideRefactorNotApplicableReason?[{name:KZ,description:F1e,actions:[{...XZ,notApplicableReason:t.error}]}]:ve:[{name:KZ,description:F1e,actions:[XZ]}]:ve}function Ukt(e,t,n,i){let s=Ma(n,22,e),a=fc(n)&&s===void 0,u=a?Fo(n.parameters):s;u&&(a&&(t.insertNodeBefore(e,u,U.createToken(21)),t.insertNodeAfter(e,u,U.createToken(22))),t.insertNodeAt(e,u.end,i,{prefix:": "}))}function AFe(e){if(vn(e.file)||!LT(XZ.kind,e.kind))return;let t=Of(e.file,e.startPosition),n=Dr(t,u=>Js(u)||u.parent&&fc(u.parent)&&(u.kind===39||u.parent.body===u)?"quit":Vkt(u));if(!n||!n.body||n.type)return{error:Ls(v.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),s=Jkt(i,n);if(!s)return{error:Ls(v.Could_not_determine_function_return_type)};let a=i.typeToTypeNode(s,n,1);if(a)return{declaration:n,returnTypeNode:a}}function Vkt(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function Jkt(e,t){if(e.isImplementationOfOverload(t)){let i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Yi(i,s=>s.getReturnType()))}let n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}var kFe=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(kFe||{}),PFe=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(PFe||{}),NFe=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(NFe||{});function DFe(e,t,n,i){let s=j1e(e,t,n,i);M.assert(s.spans.length%3===0);let a=s.spans,u=[];for(let m=0;m{s.push(u.getStart(t),u.getWidth(t),(m+1<<8)+d)},i),s}function zkt(e,t,n,i,s){let a=e.getTypeChecker(),u=!1;function m(d){switch(d.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:s.throwIfCancellationRequested()}if(!d||!k5(n,d.pos,d.getFullWidth())||d.getFullWidth()===0)return;let S=u;if((My(d)||u2(d))&&(u=!0),NO(d)&&(u=!1),$e(d)&&!u&&!$kt(d)&&!fO(d.escapedText)){let E=a.getSymbolAtLocation(d);if(E){E.flags&2097152&&(E=a.getAliasedSymbol(E));let x=Wkt(E,S2(d));if(x!==void 0){let D=0;d.parent&&(Zo(d.parent)||OFe.get(d.parent.kind)===x)&&d.parent.name===d&&(D=1),x===6&&wFe(d)&&(x=9),x=Gkt(a,d,x);let I=E.valueDeclaration;if(I){let R=eT(I),L=p0(I);R&256&&(D|=2),R&1024&&(D|=4),x!==0&&x!==2&&(R&8||L&2||E.getFlags()&8)&&(D|=8),(x===7||x===10)&&Hkt(I,t)&&(D|=32),e.isSourceFileDefaultLibrary(I.getSourceFile())&&(D|=16)}else E.declarations&&E.declarations.some(R=>e.isSourceFileDefaultLibrary(R.getSourceFile()))&&(D|=16);i(d,x,D)}}}qs(d,m),u=S}m(t)}function Wkt(e,t){let n=e.getFlags();if(n&32)return 0;if(n&384)return 1;if(n&524288)return 5;if(n&64){if(t&2)return 2}else if(n&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Zo(i)&&(i=IFe(i)),i&&OFe.get(i.kind)}function Gkt(e,t,n){if(n===7||n===9||n===6){let i=e.getTypeAtLocation(t);if(i){let s=a=>a(i)||i.isUnion()&&i.types.some(a);if(n!==6&&s(a=>a.getConstructSignatures().length>0))return 0;if(s(a=>a.getCallSignatures().length>0)&&!s(a=>a.getProperties().length>0)||Ykt(t))return n===9?11:10}}return n}function Hkt(e,t){return Zo(e)&&(e=IFe(e)),Ci(e)?(!qi(e.parent.parent.parent)||TE(e.parent))&&e.getSourceFile()===t:El(e)?!qi(e.parent)&&e.getSourceFile()===t:!1}function IFe(e){for(;;)if(Zo(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function $kt(e){let t=e.parent;return t&&(ng(t)||pf(t)||Ry(t))}function Ykt(e){for(;wFe(e);)e=e.parent;return to(e.parent)&&e.parent.expression===e}function wFe(e){return uf(e.parent)&&e.parent.right===e||Hn(e.parent)&&e.parent.name===e}var OFe=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),RFe="0.8";function MFe(e,t,n,i){let s=V3(e)?new B1e(e,t,n):e===80?new FFe(80,t,n):e===81?new jFe(81,t,n):new LFe(e,t,n);return s.parent=i,s.flags=i.flags&101441536,s}var B1e=class{constructor(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){M.assert(!rg(this.pos)&&!rg(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Jr(this)}getStart(e,t){return this.assertHasRealPosition(),aT(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=Jr(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),bY(this,e)??ime(this,e,Kkt(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let n=jn(t,i=>i.kind<309||i.kind>351);return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),n=yc(t);if(n)return n.kind<166?n:n.getLastToken(e)}forEachChild(e,t){return qs(this,e,t)}};function Kkt(e,t){let n=[];if(q5(e))return e.forEachChild(u=>{n.push(u)}),n;z_.setText((t||e.getSourceFile()).text);let i=e.pos,s=u=>{IV(n,i,u.pos,e),n.push(u),i=u.end},a=u=>{IV(n,i,u.pos,e),n.push(Xkt(u,e)),i=u.end};return Et(e.jsDoc,s),i=e.pos,e.forEachChild(s,a),IV(n,i,e.end,e),z_.setText(void 0),n}function IV(e,t,n,i){for(z_.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function QZ(e,t){if(!e)return ve;let n=BT.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(BFe))){let i=new Set;for(let s of e){let a=UFe(t,s,u=>{var m;if(!i.has(u))return i.add(u),s.kind===177||s.kind===178?u.getContextualJsDocTags(s,t):((m=u.declarations)==null?void 0:m.length)===1?u.getJsDocTags(t):void 0});a&&(n=[...a,...n])}}return n}function wV(e,t){if(!e)return ve;let n=BT.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(BFe))){let i=new Set;for(let s of e){let a=UFe(t,s,u=>{if(!i.has(u))return i.add(u),s.kind===177||s.kind===178?u.getContextualDocumentationComment(s,t):u.getDocumentationComment(t)});a&&(n=n.length===0?a.slice():a.concat(QN(),n))}}return n}function UFe(e,t,n){var i;let s=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!s)return;let a=Jl(t);return di(Fw(s),u=>{let m=e.getTypeAtLocation(u),d=a&&m.symbol?e.getTypeOfSymbol(m.symbol):m,S=e.getPropertyOfType(d,t.symbol.name);return S?n(S):void 0})}var tPt=class extends B1e{constructor(e,t,n){super(e,t,n)}update(e,t){return FY(this,e,t)}getLineAndCharacterOfPosition(e){return Eo(this,e)}getLineStarts(){return vy(this)}getPositionOfLineAndCharacter(e,t,n){return x5(vy(this),e,t,this.text,n)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts(),i;t+1>=n.length&&(i=this.getEnd()),i||(i=n[t+1]-1);let s=this.getFullText();return s[i]===`
`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=vd();return this.forEachChild(s),e;function t(a){let u=i(a);u&&e.add(u,a)}function n(a){let u=e.get(a);return u||e.set(a,u=[]),u}function i(a){let u=N5(a);return u&&(Go(u)&&Hn(u.expression)?u.expression.name.text:Ol(u)?T8(u):void 0)}function s(a){switch(a.kind){case 262:case 218:case 174:case 173:let u=a,m=i(u);if(m){let E=n(m),x=yc(E);x&&u.parent===x.parent&&u.symbol===x.symbol?u.body&&!x.body&&(E[E.length-1]=u):E.push(u)}qs(a,s);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(a),qs(a,s);break;case 169:if(!_i(a,31))break;case 260:case 208:{let E=a;if($s(E.name)){qs(E.name,s);break}E.initializer&&s(E.initializer)}case 306:case 172:case 171:t(a);break;case 278:let d=a;d.exportClause&&(Pd(d.exportClause)?Et(d.exportClause.elements,s):s(d.exportClause.name));break;case 272:let S=a.importClause;S&&(S.name&&t(S.name),S.namedBindings&&(S.namedBindings.kind===274?t(S.namedBindings):Et(S.namedBindings.elements,s)));break;case 226:ll(a)!==0&&t(a);default:qs(a,s)}}}},rPt=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}getLineAndCharacterOfPosition(e){return Eo(this,e)}};function nPt(){return{getNodeConstructor:()=>B1e,getTokenConstructor:()=>LFe,getIdentifierConstructor:()=>FFe,getPrivateIdentifierConstructor:()=>jFe,getSourceFileConstructor:()=>tPt,getSymbolConstructor:()=>Qkt,getTypeConstructor:()=>Zkt,getSignatureConstructor:()=>ePt,getSourceMapSourceConstructor:()=>rPt}}function B8(e){let t=!0;for(let i in e)if(Ha(e,i)&&!VFe(i)){t=!1;break}if(t)return e;let n={};for(let i in e)if(Ha(e,i)){let s=VFe(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function VFe(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function U8(e){return e?kr(e,t=>t.text).join(""):""}function OV(){return{target:1,jsx:1}}function ZZ(){return P_.getSupportedErrorCodes()}var iPt=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,a,u,m,d;let S=this.host.getScriptSnapshot(e);if(!S)throw new Error("Could not find file: '"+e+"'.");let E=XQ(e,this.host),x=this.host.getScriptVersion(e),D;if(this.currentFileName!==e){let I={languageVersion:99,impliedNodeFormat:t8(rc(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||Nv(this.host)),(d=(m=(u=(a=(s=this.host).getCompilerHost)==null?void 0:a.call(s))==null?void 0:u.getModuleResolutionCache)==null?void 0:m.call(u))==null?void 0:d.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:KR(this.host.getCompilationSettings()),jsDocParsingMode:0};D=RV(e,S,I,x,!0,E)}else if(this.currentFileVersion!==x){let I=S.getChangeRange(this.currentFileScriptSnapshot);D=eee(this.currentSourceFile,S,x,I)}return D&&(this.currentFileVersion=x,this.currentFileName=e,this.currentFileScriptSnapshot=S,this.currentSourceFile=D),this.currentSourceFile}};function JFe(e,t,n){e.version=n,e.scriptSnapshot=t}function RV(e,t,n,i,s,a){let u=$A(e,ok(t),n,s,a);return JFe(u,t,i),u}function eee(e,t,n,i,s){if(i&&n!==e.version){let u,m=i.span.start!==0?e.text.substr(0,i.span.start):"",d=bl(i.span)!==e.text.length?e.text.substr(bl(i.span)):"";if(i.newLength===0)u=m&&d?m+d:m||d;else{let E=t.getText(i.span.start,i.span.start+i.newLength);u=m&&d?m+E+d:m?m+E:E+d}let S=FY(e,u,i,s);return JFe(S,t,n),S.nameTable=void 0,e!==S&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),S}let a={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return RV(e.fileName,t,a,n,!0,e.scriptKind)}var sPt={isCancellationRequested:Ng,throwIfCancellationRequested:aa},oPt=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=kn)==null||e.instant(kn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new ZI}},V1e=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Tc();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=kn)==null||e.instant(kn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new ZI}},qFe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],aPt=[...qFe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"];function J1e(e,t=_ve(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory(),e.jsDocParsingMode),n){var i;let s;n===void 0?s=0:typeof n=="boolean"?s=n?2:0:s=n;let a=new iPt(e),u,m,d=0,S=e.getCancellationToken?new oPt(e.getCancellationToken()):sPt,E=e.getCurrentDirectory();ape((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function x(z){e.log&&e.log(z)}let D=oN(e),I=__(D),R=Cve({useCaseSensitiveFileNames:()=>D,getCurrentDirectory:()=>E,getProgram:$,fileExists:so(e,e.fileExists),readFile:so(e,e.readFile),getDocumentPositionMapper:so(e,e.getDocumentPositionMapper),getSourceFileLike:so(e,e.getSourceFileLike),log:x});function L(z){let Ue=u.getSourceFile(z);if(!Ue){let be=new Error(`Could not find source file: '${z}'.`);throw be.ProgramFiles=u.getSourceFiles().map(Re=>Re.fileName),be}return Ue}function F(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():J()}function J(){var z,Ue,be;if(M.assert(s!==2),e.getProjectVersion){let gs=e.getProjectVersion();if(gs){if(m===gs&&!((z=e.hasChangedAutomaticTypeDirectiveNames)!=null&&z.call(e)))return;m=gs}}let Re=e.getTypeRootsVersion?e.getTypeRootsVersion():0;d!==Re&&(x("TypeRoots version has changed; provide new program"),u=void 0,d=Re);let Ot=e.getScriptFileNames().slice(),Ht=e.getCompilationSettings()||OV(),$t=e.hasInvalidatedResolutions||Ng,gr=so(e,e.hasInvalidatedLibResolutions)||Ng,Wr=so(e,e.hasChangedAutomaticTypeDirectiveNames),Yr=(Ue=e.getProjectReferences)==null?void 0:Ue.call(e),gn,Pr={getSourceFile:Fa,getSourceFileByPath:wa,getCancellationToken:()=>S,getCanonicalFileName:I,useCaseSensitiveFileNames:()=>D,getNewLine:()=>wv(Ht),getDefaultLibFileName:gs=>e.getDefaultLibFileName(gs),writeFile:aa,getCurrentDirectory:()=>E,fileExists:gs=>e.fileExists(gs),readFile:gs=>e.readFile&&e.readFile(gs),getSymlinkCache:so(e,e.getSymlinkCache),realpath:so(e,e.realpath),directoryExists:gs=>tg(gs,e),getDirectories:gs=>e.getDirectories?e.getDirectories(gs):[],readDirectory:(gs,oo,vc,rs,Wi)=>(M.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(gs,oo,vc,rs,Wi)),onReleaseOldSourceFile:pa,onReleaseParsedCommandLine:zs,hasInvalidatedResolutions:$t,hasInvalidatedLibResolutions:gr,hasChangedAutomaticTypeDirectiveNames:Wr,trace:so(e,e.trace),resolveModuleNames:so(e,e.resolveModuleNames),getModuleResolutionCache:so(e,e.getModuleResolutionCache),createHash:so(e,e.createHash),resolveTypeReferenceDirectives:so(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:so(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:so(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:so(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:so(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:nn,jsDocParsingMode:e.jsDocParsingMode},Rn=Pr.getSourceFile,{getSourceFileWithCache:Xi}=i6(Pr,gs=>rc(gs,E,I),(...gs)=>Rn.call(Pr,...gs));Pr.getSourceFile=Xi,(be=e.setCompilerHost)==null||be.call(e,Pr);let us={useCaseSensitiveFileNames:D,fileExists:gs=>Pr.fileExists(gs),readFile:gs=>Pr.readFile(gs),directoryExists:gs=>Pr.directoryExists(gs),getDirectories:gs=>Pr.getDirectories(gs),realpath:Pr.realpath,readDirectory:(...gs)=>Pr.readDirectory(...gs),trace:Pr.trace,getCurrentDirectory:Pr.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:aa},Xn=t.getKeyForCompilationSettings(Ht),hi=new Set;if(gX(u,Ot,Ht,(gs,oo)=>e.getScriptVersion(oo),gs=>Pr.fileExists(gs),$t,gr,Wr,nn,Yr)){Pr=void 0,gn=void 0,hi=void 0;return}u=r8({rootNames:Ot,options:Ht,host:Pr,oldProgram:u,projectReferences:Yr}),Pr=void 0,gn=void 0,hi=void 0,R.clearCache(),u.getTypeChecker();return;function nn(gs){let oo=rc(gs,E,I),vc=gn?.get(oo);if(vc!==void 0)return vc||void 0;let rs=e.getParsedCommandLine?e.getParsedCommandLine(gs):rr(gs);return(gn||(gn=new Map)).set(oo,rs||!1),rs}function rr(gs){let oo=Fa(gs,100);if(oo)return oo.path=rc(gs,E,I),oo.resolvedPath=oo.path,oo.originalFileName=oo.fileName,MM(oo,us,Cs(yi(gs),E),void 0,Cs(gs,E))}function zs(gs,oo,vc){var rs;e.getParsedCommandLine?(rs=e.onReleaseParsedCommandLine)==null||rs.call(e,gs,oo,vc):oo&&pa(oo.sourceFile,vc)}function pa(gs,oo){let vc=t.getKeyForCompilationSettings(oo);t.releaseDocumentWithKey(gs.resolvedPath,vc,gs.scriptKind,gs.impliedNodeFormat)}function Fa(gs,oo,vc,rs){return wa(gs,rc(gs,E,I),oo,vc,rs)}function wa(gs,oo,vc,rs,Wi){M.assert(Pr,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let xu=e.getScriptSnapshot(gs);if(!xu)return;let Ac=XQ(gs,e),D_=e.getScriptVersion(gs);if(!Wi){let el=u&&u.getSourceFileByPath(oo);if(el){if(Ac===el.scriptKind||hi.has(el.resolvedPath))return t.updateDocumentWithKey(gs,oo,e,Xn,xu,D_,Ac,vc);t.releaseDocumentWithKey(el.resolvedPath,t.getKeyForCompilationSettings(u.getCompilerOptions()),el.scriptKind,el.impliedNodeFormat),hi.add(el.resolvedPath)}}return t.acquireDocumentWithKey(gs,oo,e,Xn,xu,D_,Ac,vc)}}function $(){if(s===2){M.assert(u===void 0);return}return F(),u}function q(){var z;return(z=e.getPackageJsonAutoImportProvider)==null?void 0:z.call(e)}function ee(z,Ue){let be=u.getTypeChecker(),Re=Ot();if(!Re)return!1;for(let $t of z)for(let gr of $t.references){let Wr=Ht(gr);if(M.assertIsDefined(Wr),Ue.has(gr)||lc.isDeclarationOfSymbol(Wr,Re)){Ue.add(gr),gr.isDefinition=!0;let Yr=KU(gr,R,so(e,e.fileExists));Yr&&Ue.add(Yr)}else gr.isDefinition=!1}return!0;function Ot(){for(let $t of z)for(let gr of $t.references){if(Ue.has(gr)){let Yr=Ht(gr);return M.assertIsDefined(Yr),be.getSymbolAtLocation(Yr)}let Wr=KU(gr,R,so(e,e.fileExists));if(Wr&&Ue.has(Wr)){let Yr=Ht(Wr);if(Yr)return be.getSymbolAtLocation(Yr)}}}function Ht($t){let gr=u.getSourceFile($t.fileName);if(!gr)return;let Wr=Of(gr,$t.textSpan.start);return lc.Core.getAdjustedNode(Wr,{use:lc.FindReferencesUse.References})}}function W(){if(u){let z=t.getKeyForCompilationSettings(u.getCompilerOptions());Et(u.getSourceFiles(),Ue=>t.releaseDocumentWithKey(Ue.resolvedPath,z,Ue.scriptKind,Ue.impliedNodeFormat)),u=void 0}}function pe(){W(),e=void 0}function K(z){return F(),u.getSyntacticDiagnostics(L(z),S).slice()}function re(z){F();let Ue=L(z),be=u.getSemanticDiagnostics(Ue,S);if(!Hp(u.getCompilerOptions()))return be.slice();let Re=u.getDeclarationDiagnostics(Ue,S);return[...be,...Re]}function ue(z){return F(),AZ(L(z),u,S)}function ce(){return F(),[...u.getOptionsDiagnostics(S),...u.getGlobalDiagnostics(S)]}function ne(z,Ue,be=am,Re){let Ot={...be,includeCompletionsForModuleExports:be.includeCompletionsForModuleExports||be.includeExternalModuleExports,includeCompletionsWithInsertText:be.includeCompletionsWithInsertText||be.includeInsertTextCompletions};return F(),hk.getCompletionsAtPosition(e,u,x,L(z),Ue,Ot,be.triggerCharacter,be.triggerKind,S,Re&&zl.getFormatContext(Re,e),be.includeSymbol)}function le(z,Ue,be,Re,Ot,Ht=am,$t){return F(),hk.getCompletionEntryDetails(u,x,L(z),Ue,{name:be,source:Ot,data:$t},e,Re&&zl.getFormatContext(Re,e),Ht,S)}function me(z,Ue,be,Re,Ot=am){return F(),hk.getCompletionEntrySymbol(u,x,L(z),Ue,{name:be,source:Re},e,Ot)}function de(z,Ue){F();let be=L(z),Re=Of(be,Ue);if(Re===be)return;let Ot=u.getTypeChecker(),Ht=xe(Re),$t=_Pt(Ht,Ot);if(!$t||Ot.isUnknownSymbol($t)){let Pr=te(be,Ht,Ue)?Ot.getTypeAtLocation(Ht):void 0;return Pr&&{kind:"",kindModifiers:"",textSpan:gf(Ht,be),displayParts:Ot.runWithCancellationToken(S,Rn=>x8(Rn,Pr,T2(Ht))),documentation:Pr.symbol?Pr.symbol.getDocumentationComment(Ot):void 0,tags:Pr.symbol?Pr.symbol.getJsDocTags(Ot):void 0}}let{symbolKind:gr,displayParts:Wr,documentation:Yr,tags:gn}=Ot.runWithCancellationToken(S,Pr=>Wv.getSymbolDisplayPartsDocumentationAndSymbolKind(Pr,$t,be,T2(Ht),Ht));return{kind:gr,kindModifiers:Wv.getSymbolModifiers(Ot,$t),textSpan:gf(Ht,be),displayParts:Wr,documentation:Yr,tags:gn}}function Ae(z,Ue){return F(),fte.pasteEditsProvider(L(z.targetFile),z.pastedText,z.pasteLocations,z.copiedFrom?{file:L(z.copiedFrom.file),range:z.copiedFrom.range}:void 0,e,z.preferences,zl.getFormatContext(Ue,e),S)}function xe(z){return gE(z.parent)&&z.pos===z.parent.pos?z.parent.expression:yN(z.parent)&&z.pos===z.parent.pos||GP(z.parent)&&z.parent.name===z||ig(z.parent)?z.parent:z}function te(z,Ue,be){switch(Ue.kind){case 80:return Ue.flags&16777216&&!vn(Ue)&&(Ue.parent.kind===171&&Ue.parent.name===Ue||Dr(Ue,Re=>Re.kind===169))?!1:!mQ(Ue)&&!gQ(Ue)&&!Xm(Ue.parent);case 211:case 166:return!Uv(z,be);case 110:case 197:case 108:case 202:return!0;case 236:return GP(Ue);default:return!1}}function he(z,Ue,be,Re){return F(),cD.getDefinitionAtPosition(u,L(z),Ue,be,Re)}function Te(z,Ue){return F(),cD.getDefinitionAndBoundSpan(u,L(z),Ue)}function Ve(z,Ue){return F(),cD.getTypeDefinitionAtPosition(u.getTypeChecker(),L(z),Ue)}function Pe(z,Ue){return F(),lc.getImplementationsAtPosition(u,S,u.getSourceFiles(),L(z),Ue)}function ke(z,Ue,be){let Re=eo(z);M.assert(be.some($t=>eo($t)===Re)),F();let Ot=Yi(be,$t=>u.getSourceFile($t)),Ht=L(z);return yV.getDocumentHighlights(u,S,Ht,Ue,Ot)}function De(z,Ue,be,Re,Ot){F();let Ht=L(z),$t=FU(Of(Ht,Ue));if(nJ.nodeIsEligibleForRename($t))if($e($t)&&($g($t.parent)||yE($t.parent))&&iN($t.escapedText)){let{openingElement:gr,closingElement:Wr}=$t.parent.parent;return[gr,Wr].map(Yr=>{let gn=gf(Yr.tagName,Ht);return{fileName:Ht.fileName,textSpan:gn,...lc.toContextSpan(gn,Ht,Yr.parent)}})}else{let gr=td(Ht,Ot??am),Wr=typeof Ot=="boolean"?Ot:Ot?.providePrefixAndSuffixTextForRename;return lt($t,Ue,{findInStrings:be,findInComments:Re,providePrefixAndSuffixTextForRename:Wr,use:lc.FindReferencesUse.Rename},(Yr,gn,Pr)=>lc.toRenameLocation(Yr,gn,Pr,Wr||!1,gr))}}function Be(z,Ue){return F(),lt(Of(L(z),Ue),Ue,{use:lc.FindReferencesUse.References},lc.toReferenceEntry)}function lt(z,Ue,be,Re){F();let Ot=be&&be.use===lc.FindReferencesUse.Rename?u.getSourceFiles().filter(Ht=>!u.isSourceFileDefaultLibrary(Ht)):u.getSourceFiles();return lc.findReferenceOrRenameEntries(u,S,Ot,z,Ue,be,Re)}function ze(z,Ue){return F(),lc.findReferencedSymbols(u,S,u.getSourceFiles(),L(z),Ue)}function tt(z){return F(),lc.Core.getReferencesForFileName(z,u,u.getSourceFiles()).map(lc.toReferenceEntry)}function we(z,Ue,be,Re=!1,Ot=!1){F();let Ht=be?[L(be)]:u.getSourceFiles();return $Le(Ht,u.getTypeChecker(),S,z,Ue,Re,Ot)}function ft(z,Ue,be){F();let Re=L(z),Ot=e.getCustomTransformers&&e.getCustomTransformers();return Khe(u,Re,!!Ue,S,Ot,be)}function gt(z,Ue,{triggerReason:be}=am){F();let Re=L(z);return eL.getSignatureHelpItems(u,Re,Ue,be,S)}function Qe(z){return a.getCurrentSourceFile(z)}function yt(z,Ue,be){let Re=a.getCurrentSourceFile(z),Ot=Of(Re,Ue);if(Ot===Re)return;switch(Ot.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Ht=Ot;for(;;)if(GN(Ht)||h0e(Ht))Ht=Ht.parent;else if(yQ(Ht))if(Ht.parent.parent.kind===267&&Ht.parent.parent.body===Ht.parent)Ht=Ht.parent.parent.name;else break;else break;return wl(Ht.getStart(),Ot.getEnd())}function ir(z,Ue){let be=a.getCurrentSourceFile(z);return ree.spanInSourceFileAtLocation(be,Ue)}function Tr(z){return QLe(a.getCurrentSourceFile(z),S)}function Ar(z){return ZLe(a.getCurrentSourceFile(z),S)}function Vr(z,Ue,be){return F(),(be||"original")==="2020"?DFe(u,S,L(z),Ue):lve(u.getTypeChecker(),S,L(z),u.getClassifiableNames(),Ue)}function fr(z,Ue,be){return F(),(be||"original")==="original"?yZ(u.getTypeChecker(),S,L(z),u.getClassifiableNames(),Ue):j1e(u,S,L(z),Ue)}function ur(z,Ue){return uve(S,a.getCurrentSourceFile(z),Ue)}function tn(z,Ue){return vZ(S,a.getCurrentSourceFile(z),Ue)}function Mi(z){let Ue=a.getCurrentSourceFile(z);return Xee.collectElements(Ue,S)}let br=new Map(Object.entries({19:20,21:22,23:24,32:30}));br.forEach((z,Ue)=>br.set(z.toString(),Number(Ue)));function Di(z,Ue){let be=a.getCurrentSourceFile(z),Re=$N(be,Ue),Ot=Re.getStart(be)===Ue?br.get(Re.kind.toString()):void 0,Ht=Ot&&Ma(Re.parent,Ot,be);return Ht?[gf(Re,be),gf(Ht,be)].sort(($t,gr)=>$t.start-gr.start):ve}function As(z,Ue,be){let Re=Tc(),Ot=B8(be),Ht=a.getCurrentSourceFile(z);x("getIndentationAtPosition: getCurrentSourceFile: "+(Tc()-Re)),Re=Tc();let $t=zl.SmartIndenter.getIndentation(Ue,Ht,Ot);return x("getIndentationAtPosition: computeIndentation  : "+(Tc()-Re)),$t}function os(z,Ue,be,Re){let Ot=a.getCurrentSourceFile(z);return zl.formatSelection(Ue,be,Ot,zl.getFormatContext(B8(Re),e))}function Ri(z,Ue){return zl.formatDocument(a.getCurrentSourceFile(z),zl.getFormatContext(B8(Ue),e))}function $r(z,Ue,be,Re){let Ot=a.getCurrentSourceFile(z),Ht=zl.getFormatContext(B8(Re),e);if(!Uv(Ot,Ue))switch(be){case"{":return zl.formatOnOpeningCurly(Ue,Ot,Ht);case"}":return zl.formatOnClosingCurly(Ue,Ot,Ht);case";":return zl.formatOnSemicolon(Ue,Ot,Ht);case`
`:return zl.formatOnEnter(Ue,Ot,Ht)}return[]}function Qs(z,Ue,be,Re,Ot,Ht=am){F();let $t=L(z),gr=wl(Ue,be),Wr=zl.getFormatContext(Ot,e);return To(w1(Re,hv,tc),Yr=>(S.throwIfCancellationRequested(),P_.getFixes({errorCode:Yr,sourceFile:$t,span:gr,program:u,host:e,cancellationToken:S,formatContext:Wr,preferences:Ht})))}function He(z,Ue,be,Re=am){F(),M.assert(z.type==="file");let Ot=L(z.fileName),Ht=zl.getFormatContext(be,e);return P_.getAllFixes({fixId:Ue,sourceFile:Ot,program:u,host:e,cancellationToken:S,formatContext:Ht,preferences:Re})}function Xt(z,Ue,be=am){F(),M.assert(z.type==="file");let Re=L(z.fileName),Ot=zl.getFormatContext(Ue,e),Ht=z.mode??(z.skipDestructiveCodeActions?"SortAndCombine":"All");return UT.organizeImports(Re,Ot,e,u,be,Ht)}function qr(z,Ue,be,Re=am){return pve($(),z,Ue,e,zl.getFormatContext(be,e),Re,R)}function Pn(z,Ue){let be=typeof z=="string"?Ue:z;return Ms(be)?Promise.all(be.map(Re=>Ti(Re))):Ti(be)}function Ti(z){let Ue=be=>rc(be,E,I);return M.assertEqual(z.type,"install package"),e.installPackage?e.installPackage({fileName:Ue(z.file),packageName:z.packageName}):Promise.reject("Host does not implement `installPackage`")}function ki(z,Ue,be,Re){let Ot=Re?zl.getFormatContext(Re,e).options:void 0;return BT.getDocCommentTemplateAtPosition(Jv(e,Ot),a.getCurrentSourceFile(z),Ue,be)}function Vi(z,Ue,be){if(be===60)return!1;let Re=a.getCurrentSourceFile(z);if(sk(Re,Ue))return!1;if(x0e(Re,Ue))return be===123;if(xQ(Re,Ue))return!1;switch(be){case 39:case 34:case 96:return!Uv(Re,Ue)}return!0}function uo(z,Ue){let be=a.getCurrentSourceFile(z),Re=su(Ue,be);if(!Re)return;let Ot=Re.kind===32&&$g(Re.parent)?Re.parent.parent:IA(Re)&&My(Re.parent)?Re.parent:void 0;if(Ot&&St(Ot))return{newText:``};let Ht=Re.kind===32&&_2(Re.parent)?Re.parent.parent:IA(Re)&&vE(Re.parent)?Re.parent:void 0;if(Ht&&Ce(Ht))return{newText:""}}function Ys(z,Ue){let be=a.getCurrentSourceFile(z),Re=su(Ue,be);if(!Re||Re.parent.kind===307)return;let Ot="[a-zA-Z0-9:\\-\\._$]*";if(vE(Re.parent.parent)){let Ht=Re.parent.parent.openingFragment,$t=Re.parent.parent.closingFragment;if(JP(Ht)||JP($t))return;let gr=Ht.getStart(be)+1,Wr=$t.getStart(be)+2;return Ue!==gr&&Ue!==Wr?void 0:{ranges:[{start:gr,length:0},{start:Wr,length:0}],wordPattern:Ot}}else{let Ht=Dr(Re.parent,Xi=>!!($g(Xi)||yE(Xi)));if(!Ht)return;M.assert($g(Ht)||yE(Ht),"tag should be opening or closing element");let $t=Ht.parent.openingElement,gr=Ht.parent.closingElement,Wr=$t.tagName.getStart(be),Yr=$t.tagName.end,gn=gr.tagName.getStart(be),Pr=gr.tagName.end;return Wr===$t.getStart(be)||gn===gr.getStart(be)||Yr===$t.getEnd()||Pr===gr.getEnd()||!(Wr<=Ue&&Ue<=Yr||gn<=Ue&&Ue<=Pr)||$t.tagName.getText(be)!==gr.tagName.getText(be)?void 0:{ranges:[{start:Wr,length:Yr-Wr},{start:gn,length:Pr-gn}],wordPattern:Ot}}}function Sr(z,Ue){return{lineStarts:z.getLineStarts(),firstLine:z.getLineAndCharacterOfPosition(Ue.pos).line,lastLine:z.getLineAndCharacterOfPosition(Ue.end).line}}function ia(z,Ue,be){let Re=a.getCurrentSourceFile(z),Ot=[],{lineStarts:Ht,firstLine:$t,lastLine:gr}=Sr(Re,Ue),Wr=be||!1,Yr=Number.MAX_VALUE,gn=new Map,Pr=new RegExp(/\S/),Rn=UU(Re,Ht[$t]),Xi=Rn?"{/*":"//";for(let us=$t;us<=gr;us++){let Xn=Re.text.substring(Ht[us],Re.getLineEndOfPosition(Ht[us])),hi=Pr.exec(Xn);hi&&(Yr=Math.min(Yr,hi.index),gn.set(us.toString(),hi.index),Xn.substr(hi.index,Xi.length)!==Xi&&(Wr=be===void 0||be))}for(let us=$t;us<=gr;us++){if($t!==gr&&Ht[us]===Ue.end)continue;let Xn=gn.get(us.toString());Xn!==void 0&&(Rn?Ot.push(...ut(z,{pos:Ht[us]+Yr,end:Re.getLineEndOfPosition(Ht[us])},Wr,Rn)):Wr?Ot.push({newText:Xi,span:{length:0,start:Ht[us]+Yr}}):Re.text.substr(Ht[us]+Xn,Xi.length)===Xi&&Ot.push({newText:"",span:{length:Xi.length,start:Ht[us]+Xn}}))}return Ot}function ut(z,Ue,be,Re){var Ot;let Ht=a.getCurrentSourceFile(z),$t=[],{text:gr}=Ht,Wr=!1,Yr=be||!1,gn=[],{pos:Pr}=Ue,Rn=Re!==void 0?Re:UU(Ht,Pr),Xi=Rn?"{/*":"/*",us=Rn?"*/}":"*/",Xn=Rn?"\\{\\/\\*":"\\/\\*",hi=Rn?"\\*\\/\\}":"\\*\\/";for(;Pr<=Ue.end;){let Cr=gr.substr(Pr,Xi.length)===Xi?Xi.length:0,nn=Uv(Ht,Pr+Cr);if(nn)Rn&&(nn.pos--,nn.end++),gn.push(nn.pos),nn.kind===3&&gn.push(nn.end),Wr=!0,Pr=nn.end+1;else{let rr=gr.substring(Pr,Ue.end).search(`(${Xn})|(${hi})`);Yr=be!==void 0?be:Yr||!L0e(gr,Pr,rr===-1?Ue.end:Pr+rr),Pr=rr===-1?Ue.end+1:Pr+rr+us.length}}if(Yr||!Wr){((Ot=Uv(Ht,Ue.pos))==null?void 0:Ot.kind)!==2&&u0(gn,Ue.pos,tc),u0(gn,Ue.end,tc);let Cr=gn[0];gr.substr(Cr,Xi.length)!==Xi&&$t.push({newText:Xi,span:{length:0,start:Cr}});for(let nn=1;nn0?Cr-us.length:0,rr=gr.substr(nn,us.length)===us?us.length:0;$t.push({newText:"",span:{length:Xi.length,start:Cr-rr}})}return $t}function Tt(z,Ue){let be=a.getCurrentSourceFile(z),{firstLine:Re,lastLine:Ot}=Sr(be,Ue);return Re===Ot&&Ue.pos!==Ue.end?ut(z,Ue,!0):ia(z,Ue,!0)}function fe(z,Ue){let be=a.getCurrentSourceFile(z),Re=[],{pos:Ot}=Ue,{end:Ht}=Ue;Ot===Ht&&(Ht+=UU(be,Ot)?2:1);for(let $t=Ot;$t<=Ht;$t++){let gr=Uv(be,$t);if(gr){switch(gr.kind){case 2:Re.push(...ia(z,{end:gr.end,pos:gr.pos+1},!1));break;case 3:Re.push(...ut(z,{end:gr.end,pos:gr.pos+1},!1))}$t=gr.end+1}}return Re}function St({openingElement:z,closingElement:Ue,parent:be}){return!kT(z.tagName,Ue.tagName)||My(be)&&kT(z.tagName,be.openingElement.tagName)&&St(be)}function Ce({closingFragment:z,parent:Ue}){return!!(z.flags&262144)||vE(Ue)&&Ce(Ue)}function it(z,Ue,be){let Re=a.getCurrentSourceFile(z),Ot=zl.getRangeOfEnclosingComment(Re,Ue);return Ot&&(!be||Ot.kind===3)?lS(Ot):void 0}function Me(z,Ue){F();let be=L(z);S.throwIfCancellationRequested();let Re=be.text,Ot=[];if(Ue.length>0&&!Wr(be.fileName)){let Yr=$t(),gn;for(;gn=Yr.exec(Re);){S.throwIfCancellationRequested();let Pr=3;M.assert(gn.length===Ue.length+Pr);let Rn=gn[1],Xi=gn.index+Rn.length;if(!Uv(be,Xi))continue;let us;for(let hi=0;hi"("+Ht(nn.text)+")").join("|")+")",us=/(?:$|\*\/)/.source,Xn=/(?:.*?)/.source,hi="("+Xi+Xn+")",Cr=Rn+hi+us;return new RegExp(Cr,"gim")}function gr(Yr){return Yr>=97&&Yr<=122||Yr>=65&&Yr<=90||Yr>=48&&Yr<=57}function Wr(Yr){return Yr.includes("/node_modules/")}}function rt(z,Ue,be){return F(),nJ.getRenameInfo(u,L(z),Ue,be||{})}function pt(z,Ue,be,Re,Ot,Ht){let[$t,gr]=typeof Ue=="number"?[Ue,void 0]:[Ue.pos,Ue.end];return{file:z,startPosition:$t,endPosition:gr,program:$(),host:e,formatContext:zl.getFormatContext(Re,e),cancellationToken:S,preferences:be,triggerReason:Ot,kind:Ht}}function nr(z,Ue,be){return{file:z,program:$(),host:e,span:Ue,preferences:be,cancellationToken:S}}function Oe(z,Ue){return ete.getSmartSelectionRange(Ue,a.getCurrentSourceFile(z))}function Nt(z,Ue,be=am,Re,Ot,Ht){F();let $t=L(z);return uk.getApplicableRefactors(pt($t,Ue,be,am,Re,Ot),Ht)}function It(z,Ue,be=am){F();let Re=L(z),Ot=M.checkDefined(u.getSourceFiles()),Ht=oO(z),$t=F8(pt(Re,Ue,be,am)),gr=s1e($t?.all),Wr=Yi(Ot,Yr=>{let gn=oO(Yr.fileName);return!u?.isSourceFileFromExternalLibrary(Re)&&!(Re===L(Yr.fileName)||Ht===".ts"&&gn===".d.ts"||Ht===".d.ts"&&fs(Ul(Yr.fileName),"lib.")&&gn===".d.ts")&&(Ht===gn||(Ht===".tsx"&&gn===".ts"||Ht===".jsx"&&gn===".js")&&!gr)?Yr.fileName:void 0});return{newFileName:i1e(Re,u,e,$t),files:Wr}}function Vt(z,Ue,be,Re,Ot,Ht=am,$t){F();let gr=L(z);return uk.getEditsForRefactor(pt(gr,be,Ht,Ue),Re,Ot,$t)}function Mt(z,Ue){return Ue===0?{line:0,character:0}:R.toLineColumnOffset(z,Ue)}function sr(z,Ue){F();let be=_k.resolveCallHierarchyDeclaration(u,Of(L(z),Ue));return be&&lZ(be,Re=>_k.createCallHierarchyItem(u,Re))}function Z(z,Ue){F();let be=L(z),Re=uZ(_k.resolveCallHierarchyDeclaration(u,Ue===0?be:Of(be,Ue)));return Re?_k.getIncomingCalls(u,Re,S):[]}function Ye(z,Ue){F();let be=L(z),Re=uZ(_k.resolveCallHierarchyDeclaration(u,Ue===0?be:Of(be,Ue)));return Re?_k.getOutgoingCalls(u,Re):[]}function bt(z,Ue,be=am){F();let Re=L(z);return Hee.provideInlayHints(nr(Re,Ue,be))}function Q(z,Ue,be,Re,Ot){return $ee.mapCode(a.getCurrentSourceFile(z),Ue,be,e,zl.getFormatContext(Re,e),Ot)}let Xe={dispose:pe,cleanupSemanticCache:W,getSyntacticDiagnostics:K,getSemanticDiagnostics:re,getSuggestionDiagnostics:ue,getCompilerOptionsDiagnostics:ce,getSyntacticClassifications:ur,getSemanticClassifications:Vr,getEncodedSyntacticClassifications:tn,getEncodedSemanticClassifications:fr,getCompletionsAtPosition:ne,getCompletionEntryDetails:le,getCompletionEntrySymbol:me,getSignatureHelpItems:gt,getQuickInfoAtPosition:de,getDefinitionAtPosition:he,getDefinitionAndBoundSpan:Te,getImplementationAtPosition:Pe,getTypeDefinitionAtPosition:Ve,getReferencesAtPosition:Be,findReferences:ze,getFileReferences:tt,getDocumentHighlights:ke,getNameOrDottedNameSpan:yt,getBreakpointStatementAtPosition:ir,getNavigateToItems:we,getRenameInfo:rt,getSmartSelectionRange:Oe,findRenameLocations:De,getNavigationBarItems:Tr,getNavigationTree:Ar,getOutliningSpans:Mi,getTodoComments:Me,getBraceMatchingAtPosition:Di,getIndentationAtPosition:As,getFormattingEditsForRange:os,getFormattingEditsForDocument:Ri,getFormattingEditsAfterKeystroke:$r,getDocCommentTemplateAtPosition:ki,isValidBraceCompletionAtPosition:Vi,getJsxClosingTagAtPosition:uo,getLinkedEditingRangeAtPosition:Ys,getSpanOfEnclosingComment:it,getCodeFixesAtPosition:Qs,getCombinedCodeFix:He,applyCodeActionCommand:Pn,organizeImports:Xt,getEditsForFileRename:qr,getEmitOutput:ft,getNonBoundSourceFile:Qe,getProgram:$,getCurrentProgram:()=>u,getAutoImportProvider:q,updateIsDefinitionOfReferencedSymbols:ee,getApplicableRefactors:Nt,getEditsForRefactor:Vt,getMoveToRefactoringFileSuggestions:It,toLineColumnOffset:Mt,getSourceMapper:()=>R,clearSourceMapperCache:()=>R.clearCache(),prepareCallHierarchy:sr,provideCallHierarchyIncomingCalls:Z,provideCallHierarchyOutgoingCalls:Ye,toggleLineComment:ia,toggleMultilineComment:ut,commentSelection:Tt,uncommentSelection:fe,provideInlayHints:bt,getSupportedCodeFixes:ZZ,getPasteEdits:Ae,mapCode:Q};switch(s){case 0:break;case 1:qFe.forEach(z=>Xe[z]=()=>{throw new Error(`LanguageService Operation: ${z} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:aPt.forEach(z=>Xe[z]=()=>{throw new Error(`LanguageService Operation: ${z} not allowed in LanguageServiceMode.Syntactic`)});break;default:M.assertNever(s)}return Xe}function tee(e){return e.nameTable||cPt(e),e.nameTable}function cPt(e){let t=e.nameTable=new Map;e.forEachChild(function n(i){if($e(i)&&!gQ(i)&&i.escapedText||Wp(i)&&lPt(i)){let s=Uw(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(es(i)){let s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(qs(i,n),Np(i))for(let s of i.jsDoc)qs(s,n)})}function lPt(e){return Bh(e)||e.parent.kind===283||fPt(e)||wR(e)}function V8(e){let t=uPt(e);return t&&(ko(t.parent)||SE(t.parent))?t:void 0}function uPt(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return rH(e.parent.parent)?e.parent.parent:void 0;case 80:return rH(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function _Pt(e,t){let n=V8(e);if(n){let i=t.getContextualType(n.parent),s=i&&MV(n,t,i,!1);if(s&&s.length===1)return Fo(s)}return t.getSymbolAtLocation(e)}function MV(e,t,n,i){let s=T8(e.name);if(!s)return ve;if(!n.isUnion()){let m=n.getProperty(s);return m?[m]:ve}let a=ko(e.parent)||SE(e.parent)?ti(n.types,m=>!t.isTypeInvalidDueToUnionDiscriminant(m,e.parent)):n.types,u=Yi(a,m=>m.getProperty(s));if(i&&(u.length===0||u.length===n.types.length)){let m=n.getProperty(s);if(m)return[m]}return!a.length&&!u.length?Yi(n.types,m=>m.getProperty(s)):w1(u,hv)}function fPt(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function q1e(e){if(uu)return ii(yi(eo(uu.getExecutingFilePath())),w3(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}spe(nPt());function zFe(e,t,n){let i=[];n=DZ(n,i);let s=Ms(e)?e:[e],a=$M(void 0,void 0,U,n,s,t,!0);return a.diagnostics=ds(a.diagnostics,i),a}var ree={};k(ree,{spanInSourceFileAtLocation:()=>pPt});function pPt(e,t){if(e.isDeclarationFile)return;let n=Ki(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>i){let x=su(n.pos,e);if(!x||e.getLineAndCharacterOfPosition(x.getEnd()).line!==i)return;n=x}if(n.flags&33554432)return;return E(n);function s(x,D){let I=bE(x)?xm(x.modifiers,pu):void 0,R=I?zo(e.text,I.end):x.getStart(e);return wl(R,(D||x).getEnd())}function a(x,D){return s(x,NE(D,D.parent,e))}function u(x,D){return x&&i===e.getLineAndCharacterOfPosition(x.getStart(e)).line?E(x):E(D)}function m(x,D,I){if(x){let R=x.indexOf(D);if(R>=0){let L=R,F=R+1;for(;L>0&&I(x[L-1]);)L--;for(;F0)return E(he.declarations[0])}else return E(te.initializer)}function W(te){if(te.initializer)return ee(te);if(te.condition)return s(te.condition);if(te.incrementor)return s(te.incrementor)}function pe(te){let he=Et(te.elements,Te=>Te.kind!==232?Te:void 0);return he?E(he):te.parent.kind===208?s(te.parent):D(te.parent)}function K(te){M.assert(te.kind!==207&&te.kind!==206);let he=te.kind===209?te.elements:te.properties,Te=Et(he,Ve=>Ve.kind!==232?Ve:void 0);return Te?E(Te):s(te.parent.kind===226?te.parent:te)}function re(te){switch(te.parent.kind){case 266:let he=te.parent;return u(su(te.pos,e,te.parent),he.members.length?he.members[0]:he.getLastToken(e));case 263:let Te=te.parent;return u(su(te.pos,e,te.parent),Te.members.length?Te.members[0]:Te.getLastToken(e));case 269:return u(te.parent.parent,te.parent.clauses[0])}return E(te.parent)}function ue(te){switch(te.parent.kind){case 268:if(D0(te.parent.parent)!==1)return;case 266:case 263:return s(te);case 241:if(Xb(te.parent))return s(te);case 299:return E(yc(te.parent.statements));case 269:let he=te.parent,Te=yc(he.clauses);return Te?E(yc(Te.statements)):void 0;case 206:let Ve=te.parent;return E(yc(Ve.elements)||Ve);default:if(Vv(te.parent)){let Pe=te.parent;return s(yc(Pe.properties)||Pe)}return E(te.parent)}}function ce(te){switch(te.parent.kind){case 207:let he=te.parent;return s(yc(he.elements)||he);default:if(Vv(te.parent)){let Te=te.parent;return s(yc(Te.elements)||Te)}return E(te.parent)}}function ne(te){return te.parent.kind===246||te.parent.kind===213||te.parent.kind===214?d(te):te.parent.kind===217?S(te):E(te.parent)}function le(te){switch(te.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return d(te);default:return E(te.parent)}}function me(te){return Us(te.parent)||te.parent.kind===303||te.parent.kind===169?d(te):E(te.parent)}function de(te){return te.parent.kind===216?S(te):E(te.parent)}function Ae(te){return te.parent.kind===246?a(te,te.parent.expression):E(te.parent)}function xe(te){return te.parent.kind===250?S(te):E(te.parent)}}}var _k={};k(_k,{createCallHierarchyItem:()=>z1e,getIncomingCalls:()=>TPt,getOutgoingCalls:()=>IPt,resolveCallHierarchyDeclaration:()=>QFe});function dPt(e){return(ic(e)||tu(e))&&Hu(e)}function WFe(e){return Ds(e)||Ci(e)}function J8(e){return(ic(e)||fc(e)||tu(e))&&WFe(e.parent)&&e===e.parent.initializer&&$e(e.parent.name)&&(!!(p0(e.parent)&2)||Ds(e.parent))}function GFe(e){return qi(e)||xl(e)||El(e)||ic(e)||ru(e)||tu(e)||$c(e)||_l(e)||Wg(e)||$p(e)||dp(e)}function sD(e){return qi(e)||xl(e)&&$e(e.name)||El(e)||ru(e)||$c(e)||_l(e)||Wg(e)||$p(e)||dp(e)||dPt(e)||J8(e)}function HFe(e){return qi(e)?e:Hu(e)?e.name:J8(e)?e.parent.name:M.checkDefined(e.modifiers&&jn(e.modifiers,$Fe))}function $Fe(e){return e.kind===90}function YFe(e,t){let n=HFe(t);return n&&e.getSymbolAtLocation(n)}function mPt(e,t){if(qi(t))return{text:t.fileName,pos:0,end:0};if((El(t)||ru(t))&&!Hu(t)){let s=t.modifiers&&jn(t.modifiers,$Fe);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if($c(t)){let s=t.getSourceFile(),a=zo(s.text,Vg(t).pos),u=a+6,m=e.getTypeChecker(),d=m.getSymbolAtLocation(t.parent);return{text:`${d?`${m.symbolToString(d,t.parent)} `:""}static {}`,pos:a,end:u}}let n=J8(t)?t.parent.name:M.checkDefined(Ns(t),"Expected call hierarchy item to have a name"),i=$e(n)?In(n):Wp(n)?n.text:Go(n)&&Wp(n.expression)?n.expression.text:void 0;if(i===void 0){let s=e.getTypeChecker(),a=s.getSymbolAtLocation(n);a&&(i=s.symbolToString(a,t))}if(i===void 0){let s=$B();i=Ew(a=>s.writeNode(4,t,t.getSourceFile(),a))}return{text:i,pos:n.getStart(),end:n.getEnd()}}function gPt(e){var t,n,i,s;if(J8(e))return Ds(e.parent)&&vi(e.parent.parent)?tu(e.parent.parent)?(t=D5(e.parent.parent))==null?void 0:t.getText():(n=e.parent.parent.name)==null?void 0:n.getText():Gg(e.parent.parent.parent.parent)&&$e(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=D5(e.parent))==null?void 0:i.getText():(s=Ns(e.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(Gg(e.parent)&&$e(e.parent.parent.name))return e.parent.parent.name.getText()}}function KFe(e,t){if(t.body)return t;if(Vc(t))return Py(t.parent);if(El(t)||_l(t)){let n=YFe(e,t);return n&&n.valueDeclaration&&$a(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function XFe(e,t){let n=YFe(e,t),i;if(n&&n.declarations){let s=Ox(n.declarations),a=kr(n.declarations,d=>({file:d.getSourceFile().fileName,pos:d.pos}));s.sort((d,S)=>u_(a[d].file,a[S].file)||a[d].pos-a[S].pos);let u=kr(s,d=>n.declarations[d]),m;for(let d of u)sD(d)&&((!m||m.parent!==d.parent||m.end!==d.pos)&&(i=Ut(i,d)),m=d)}return i}function nee(e,t){return $c(t)?t:$a(t)?KFe(e,t)??XFe(e,t)??t:XFe(e,t)??t}function QFe(e,t){let n=e.getTypeChecker(),i=!1;for(;;){if(sD(t))return nee(n,t);if(GFe(t)){let s=Dr(t,sD);return s&&nee(n,s)}if(Bh(t)){if(sD(t.parent))return nee(n,t.parent);if(GFe(t.parent)){let s=Dr(t.parent,sD);return s&&nee(n,s)}return WFe(t.parent)&&t.parent.initializer&&J8(t.parent.initializer)?t.parent.initializer:void 0}if(Vc(t))return sD(t.parent)?t.parent:void 0;if(t.kind===126&&$c(t.parent)){t=t.parent;continue}if(Ci(t)&&t.initializer&&J8(t.initializer))return t.initializer;if(!i){let s=n.getSymbolAtLocation(t);if(s&&(s.flags&2097152&&(s=n.getAliasedSymbol(s)),s.valueDeclaration)){i=!0,t=s.valueDeclaration;continue}}return}}function z1e(e,t){let n=t.getSourceFile(),i=mPt(e,t),s=gPt(t),a=PE(t),u=p6(t),m=wl(zo(n.text,t.getFullStart(),!1,!0),t.getEnd()),d=wl(i.pos,i.end);return{file:n.fileName,kind:a,kindModifiers:u,name:i.text,containerName:s,span:m,selectionSpan:d}}function hPt(e){return e!==void 0}function yPt(e){if(e.kind===lc.EntryKind.Node){let{node:t}=e;if(fQ(t,!0,!0)||p0e(t,!0,!0)||d0e(t,!0,!0)||m0e(t,!0,!0)||GN(t)||hQ(t)){let n=t.getSourceFile();return{declaration:Dr(t,sD)||n,range:wQ(t,n)}}}}function ZFe(e){return Sa(e.declaration)}function vPt(e,t){return{from:e,fromSpans:t}}function SPt(e,t){return vPt(z1e(e,t[0].declaration),kr(t,n=>lS(n.range)))}function TPt(e,t,n){if(qi(t)||xl(t)||$c(t))return[];let i=HFe(t),s=ti(lc.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),i,0,{use:lc.FindReferencesUse.References},yPt),hPt);return s?WI(s,ZFe,a=>SPt(e,a)):[]}function bPt(e,t){function n(s){let a=hE(s)?s.tag:p_(s)?s.tagName:ac(s)||$c(s)?s:s.expression,u=QFe(e,a);if(u){let m=wQ(a,s.getSourceFile());if(Ms(u))for(let d of u)t.push({declaration:d,range:m});else t.push({declaration:u,range:m})}}function i(s){if(s&&!(s.flags&33554432)){if(sD(s)){if(vi(s))for(let a of s.members)a.name&&Go(a.name)&&i(a.name.expression);return}switch(s.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:n(s);return;case 216:case 234:i(s.expression);return;case 260:case 169:i(s.name),i(s.initializer);return;case 213:n(s),i(s.expression),Et(s.arguments,i);return;case 214:n(s),i(s.expression),Et(s.arguments,i);return;case 215:n(s),i(s.tag),i(s.template);return;case 286:case 285:n(s),i(s.tagName),i(s.attributes);return;case 170:n(s),i(s.expression);return;case 211:case 212:n(s),qs(s,i);break;case 238:i(s.expression);return}Mg(s)||qs(s,i)}}return i}function EPt(e,t){Et(e.statements,t)}function xPt(e,t){!_i(e,128)&&e.body&&Gg(e.body)&&Et(e.body.statements,t)}function CPt(e,t,n){let i=KFe(e,t);i&&(Et(i.parameters,n),n(i.body))}function APt(e,t){t(e.body)}function kPt(e,t){Et(e.modifiers,t);let n=nE(e);n&&t(n.expression);for(let i of e.members)Im(i)&&Et(i.modifiers,t),Ds(i)?t(i.initializer):Vc(i)&&i.body?(Et(i.parameters,t),t(i.body)):$c(i)&&t(i)}function PPt(e,t){let n=[],i=bPt(e,n);switch(t.kind){case 307:EPt(t,i);break;case 267:xPt(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:CPt(e.getTypeChecker(),t,i);break;case 263:case 231:kPt(t,i);break;case 175:APt(t,i);break;default:M.assertNever(t)}return n}function NPt(e,t){return{to:e,fromSpans:t}}function DPt(e,t){return NPt(z1e(e,t[0].declaration),kr(t,n=>lS(n.range)))}function IPt(e,t){return t.flags&33554432||Wg(t)?[]:WI(PPt(e,t),ZFe,n=>DPt(e,n))}var W1e={};k(W1e,{v2020:()=>e5e});var e5e={};k(e5e,{TokenEncodingConsts:()=>kFe,TokenModifier:()=>NFe,TokenType:()=>PFe,getEncodedSemanticClassifications:()=>j1e,getSemanticClassifications:()=>DFe});var P_={};k(P_,{PreserveOptionalFlags:()=>lUe,addNewNodeForMemberSymbol:()=>uUe,codeFixAll:()=>La,createCodeFixAction:()=>ro,createCodeFixActionMaybeFixAll:()=>$1e,createCodeFixActionWithoutFixAll:()=>ug,createCombinedCodeActions:()=>fk,createFileTextChanges:()=>t5e,createImportAdder:()=>LE,createImportSpecifierResolver:()=>UNt,createJsonPropertyAssignment:()=>Iee,createMissingMemberNodes:()=>fTe,createSignatureDeclarationFromCallExpression:()=>pTe,createSignatureDeclarationFromSignature:()=>Dee,createStubbedBody:()=>qV,eachDiagnostic:()=>pk,findAncestorMatchingSpan:()=>vTe,findJsonProperty:()=>yTe,generateAccessorFromProperty:()=>gUe,getAccessorConvertiblePropertyAtPosition:()=>vUe,getAllFixes:()=>MPt,getAllSupers:()=>STe,getArgumentTypesAndTypeParameters:()=>pUe,getFixes:()=>RPt,getImportCompletionAction:()=>VNt,getImportKind:()=>mee,getJSDocTypedefNodes:()=>jNt,getNoopSymbolTrackerWithResolver:()=>aD,getPromoteTypeOnlyCompletionAction:()=>JNt,getSupportedErrorCodes:()=>wPt,importFixName:()=>T9e,importSymbols:()=>gk,parameterShouldGetTypeFromJSDoc:()=>D5e,registerCodeFix:()=>xo,setJsonCompilerOptionValue:()=>hTe,setJsonCompilerOptionValues:()=>gTe,tryGetAutoImportableReferenceFromTypeNode:()=>x2,typeToAutoImportableTypeNode:()=>JV});var G1e=vd(),H1e=new Map;function ug(e,t,n){return Y1e(e,IE(n),t,void 0,void 0)}function ro(e,t,n,i,s,a){return Y1e(e,IE(n),t,i,IE(s),a)}function $1e(e,t,n,i,s,a){return Y1e(e,IE(n),t,i,s&&IE(s),a)}function Y1e(e,t,n,i,s,a){return{fixName:e,description:t,changes:n,fixId:i,fixAllDescription:s,commands:a?[a]:void 0}}function xo(e){for(let t of e.errorCodes)K1e=void 0,G1e.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)M.assert(!H1e.has(t)),H1e.set(t,e)}var K1e;function wPt(){return K1e??(K1e=Os(G1e.keys()))}function OPt(e,t){let{errorCodes:n}=e,i=0;for(let a of t)if(xs(n,a.code)&&i++,i>1)break;let s=i<2;return({fixId:a,fixAllDescription:u,...m})=>s?m:{...m,fixId:a,fixAllDescription:u}}function RPt(e){let t=r5e(e),n=G1e.get(String(e.errorCode));return To(n,i=>kr(i.getCodeActions(e),OPt(i,t)))}function MPt(e){return H1e.get(ao(e.fixId,bs)).getAllCodeActions(e)}function fk(e,t){return{changes:e,commands:t}}function t5e(e,t){return{fileName:e,textChanges:t}}function La(e,t,n){let i=[],s=bn.ChangeTracker.with(e,a=>pk(e,t,u=>n(a,u,i)));return fk(s,i.length===0?void 0:i)}function pk(e,t,n){for(let i of r5e(e))xs(t,i.code)&&n(i)}function r5e({program:e,sourceFile:t,cancellationToken:n}){let i=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...AZ(t,e,n)];return Hp(e.getCompilerOptions())&&i.push(...e.getDeclarationDiagnostics(t,n)),i}var X1e="addConvertToUnknownForNonOverlappingTypes",n5e=[v.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];xo({errorCodes:n5e,getCodeActions:function(t){let n=s5e(t.sourceFile,t.span.start);if(n===void 0)return;let i=bn.ChangeTracker.with(t,s=>i5e(s,t.sourceFile,n));return[ro(X1e,i,v.Add_unknown_conversion_for_non_overlapping_types,X1e,v.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[X1e],getAllCodeActions:e=>La(e,n5e,(t,n)=>{let i=s5e(n.file,n.start);i&&i5e(t,n.file,i)})});function i5e(e,t,n){let i=EO(n)?U.createAsExpression(n.expression,U.createKeywordTypeNode(159)):U.createTypeAssertion(U.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,i)}function s5e(e,t){if(!vn(e))return Dr(Ki(e,t),n=>EO(n)||cY(n))}xo({errorCodes:[v.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,v.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,v.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){let{sourceFile:n}=t,i=bn.ChangeTracker.with(t,s=>{let a=U.createExportDeclaration(void 0,!1,U.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(n,n,a)});return[ug("addEmptyExportDeclaration",i,v.Add_export_to_make_this_file_into_a_module)]}});var Q1e="addMissingAsync",o5e=[v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,v.Type_0_is_not_assignable_to_type_1.code,v.Type_0_is_not_comparable_to_type_1.code];xo({fixIds:[Q1e],errorCodes:o5e,getCodeActions:function(t){let{sourceFile:n,errorCode:i,cancellationToken:s,program:a,span:u}=t,m=jn(a.getTypeChecker().getDiagnostics(n,s),FPt(u,i)),d=m&&m.relatedInformation&&jn(m.relatedInformation,x=>x.code===v.Did_you_mean_to_mark_this_function_as_async.code),S=c5e(n,d);return S?[a5e(t,S,x=>bn.ChangeTracker.with(t,x))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,n=new Set;return La(e,o5e,(i,s)=>{let a=s.relatedInformation&&jn(s.relatedInformation,d=>d.code===v.Did_you_mean_to_mark_this_function_as_async.code),u=c5e(t,a);return u?a5e(e,u,d=>(d(i),[]),n):void 0})}});function a5e(e,t,n,i){let s=n(a=>LPt(a,e.sourceFile,t,i));return ro(Q1e,s,v.Add_async_modifier_to_containing_function,Q1e,v.Add_all_missing_async_modifiers)}function LPt(e,t,n,i){if(i&&i.has(Sa(n)))return;i?.add(Sa(n));let s=U.replaceModifiers(ka(n,!0),U.createNodeArray(U.createModifiersFromModifierFlags(Dv(n)|1024)));e.replaceNode(t,n,s)}function c5e(e,t){if(!t)return;let n=Ki(e,t.start);return Dr(n,s=>s.getStart(e)bl(t)?"quit":(fc(s)||_l(s)||ic(s)||El(s))&&XN(t,gf(s,e)))}function FPt(e,t){return({start:n,length:i,relatedInformation:s,code:a})=>O1(n)&&O1(i)&&XN({start:n,length:i},e)&&a===t&&!!s&&Dt(s,u=>u.code===v.Did_you_mean_to_mark_this_function_as_async.code)}var Z1e="addMissingAwait",l5e=v.Property_0_does_not_exist_on_type_1.code,u5e=[v.This_expression_is_not_callable.code,v.This_expression_is_not_constructable.code],eSe=[v.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,v.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,v.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,v.Operator_0_cannot_be_applied_to_type_1.code,v.Operator_0_cannot_be_applied_to_types_1_and_2.code,v.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,v.This_condition_will_always_return_true_since_this_0_is_always_defined.code,v.Type_0_is_not_an_array_type.code,v.Type_0_is_not_an_array_type_or_a_string_type.code,v.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,v.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,v.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,v.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,v.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,l5e,...u5e];xo({fixIds:[Z1e],errorCodes:eSe,getCodeActions:function(t){let{sourceFile:n,errorCode:i,span:s,cancellationToken:a,program:u}=t,m=_5e(n,i,s,a,u);if(!m)return;let d=t.program.getTypeChecker(),S=E=>bn.ChangeTracker.with(t,E);return un([f5e(t,m,i,d,S),p5e(t,m,i,d,S)])},getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=e.program.getTypeChecker(),a=new Set;return La(e,eSe,(u,m)=>{let d=_5e(t,m.code,m,i,n);if(!d)return;let S=E=>(E(u),[]);return f5e(e,d,m.code,s,S,a)||p5e(e,d,m.code,s,S,a)})}});function _5e(e,t,n,i,s){let a=cZ(e,n);return a&&jPt(e,t,n,i,s)&&d5e(a)?a:void 0}function f5e(e,t,n,i,s,a){let{sourceFile:u,program:m,cancellationToken:d}=e,S=BPt(t,u,d,m,i);if(S){let E=s(x=>{Et(S.initializers,({expression:D})=>tSe(x,n,u,i,D,a)),a&&S.needsSecondPassForFixAll&&tSe(x,n,u,i,t,a)});return ug("addMissingAwaitToInitializer",E,S.initializers.length===1?[v.Add_await_to_initializer_for_0,S.initializers[0].declarationSymbol.name]:v.Add_await_to_initializers)}}function p5e(e,t,n,i,s,a){let u=s(m=>tSe(m,n,e.sourceFile,i,t,a));return ro(Z1e,u,v.Add_await,Z1e,v.Fix_all_expressions_possibly_missing_await)}function jPt(e,t,n,i,s){let u=s.getTypeChecker().getDiagnostics(e,i);return Dt(u,({start:m,length:d,relatedInformation:S,code:E})=>O1(m)&&O1(d)&&XN({start:m,length:d},n)&&E===t&&!!S&&Dt(S,x=>x.code===v.Did_you_forget_to_use_await.code))}function BPt(e,t,n,i,s){let a=UPt(e,s);if(!a)return;let u=a.isCompleteFix,m;for(let d of a.identifiers){let S=s.getSymbolAtLocation(d);if(!S)continue;let E=ci(S.valueDeclaration,Ci),x=E&&ci(E.name,$e),D=pT(E,243);if(!E||!D||E.type||!E.initializer||D.getSourceFile()!==t||_i(D,32)||!x||!d5e(E.initializer)){u=!1;continue}let I=i.getSemanticDiagnostics(t,n);if(lc.Core.eachSymbolReferenceInFile(x,s,t,L=>d!==L&&!VPt(L,I,t,s))){u=!1;continue}(m||(m=[])).push({expression:E.initializer,declarationSymbol:S})}return m&&{initializers:m,needsSecondPassForFixAll:!u}}function UPt(e,t){if(Hn(e.parent)&&$e(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if($e(e))return{identifiers:[e],isCompleteFix:!0};if(Dn(e)){let n,i=!0;for(let s of[e.left,e.right]){let a=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(a)){if(!$e(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}function VPt(e,t,n,i){let s=Hn(e.parent)?e.parent.name:Dn(e.parent)?e.parent:e,a=jn(t,u=>u.start===s.getStart(n)&&u.start+u.length===s.getEnd());return a&&xs(eSe,a.code)||i.getTypeAtLocation(s).flags&1}function d5e(e){return e.flags&65536||!!Dr(e,t=>t.parent&&fc(t.parent)&&t.parent.body===t||Js(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function tSe(e,t,n,i,s,a){if(hM(s.parent)&&!s.parent.awaitModifier){let u=i.getTypeAtLocation(s),m=i.getAsyncIterableType();if(m&&i.isTypeAssignableTo(u,m)){let d=s.parent;e.replaceNode(n,d,U.updateForOfStatement(d,U.createToken(135),d.initializer,d.expression,d.statement));return}}if(Dn(s))for(let u of[s.left,s.right]){if(a&&$e(u)){let S=i.getSymbolAtLocation(u);if(S&&a.has(Po(S)))continue}let m=i.getTypeAtLocation(u),d=i.getPromisedTypeOfPromise(m)?U.createAwaitExpression(u):u;e.replaceNode(n,u,d)}else if(t===l5e&&Hn(s.parent)){if(a&&$e(s.parent.expression)){let u=i.getSymbolAtLocation(s.parent.expression);if(u&&a.has(Po(u)))return}e.replaceNode(n,s.parent.expression,U.createParenthesizedExpression(U.createAwaitExpression(s.parent.expression))),m5e(e,s.parent.expression,n)}else if(xs(u5e,t)&&Ig(s.parent)){if(a&&$e(s)){let u=i.getSymbolAtLocation(s);if(u&&a.has(Po(u)))return}e.replaceNode(n,s,U.createParenthesizedExpression(U.createAwaitExpression(s))),m5e(e,s,n)}else{if(a&&Ci(s.parent)&&$e(s.parent.name)){let u=i.getSymbolAtLocation(s.parent.name);if(u&&!kg(a,Po(u)))return}e.replaceNode(n,s,U.createAwaitExpression(s))}}function m5e(e,t,n){let i=su(t.pos,n);i&&nV(i.end,i.parent,n)&&e.insertText(n,t.getStart(n),";")}var rSe="addMissingConst",g5e=[v.Cannot_find_name_0.code,v.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];xo({errorCodes:g5e,getCodeActions:function(t){let n=bn.ChangeTracker.with(t,i=>h5e(i,t.sourceFile,t.span.start,t.program));if(n.length>0)return[ro(rSe,n,v.Add_const_to_unresolved_variable,rSe,v.Add_const_to_all_unresolved_variables)]},fixIds:[rSe],getAllCodeActions:e=>{let t=new Set;return La(e,g5e,(n,i)=>h5e(n,i.file,i.start,e.program,t))}});function h5e(e,t,n,i,s){let a=Ki(t,n),u=Dr(a,S=>Gx(S.parent)?S.parent.initializer===S:JPt(S)?!1:"quit");if(u)return iee(e,u,t,s);let m=a.parent;if(Dn(m)&&m.operatorToken.kind===64&&wu(m.parent))return iee(e,a,t,s);if(Ku(m)){let S=i.getTypeChecker();return Oi(m.elements,E=>qPt(E,S))?iee(e,m,t,s):void 0}let d=Dr(a,S=>wu(S.parent)?!0:zPt(S)?!1:"quit");if(d){let S=i.getTypeChecker();return y5e(d,S)?iee(e,d,t,s):void 0}}function iee(e,t,n,i){(!i||kg(i,t))&&e.insertModifierBefore(n,87,t)}function JPt(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function qPt(e,t){let n=$e(e)?e:Tu(e,!0)&&$e(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}function zPt(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function y5e(e,t){return Dn(e)?e.operatorToken.kind===28?Oi([e.left,e.right],n=>y5e(n,t)):e.operatorToken.kind===64&&$e(e.left)&&!t.getSymbolAtLocation(e.left):!1}var nSe="addMissingDeclareProperty",v5e=[v.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];xo({errorCodes:v5e,getCodeActions:function(t){let n=bn.ChangeTracker.with(t,i=>S5e(i,t.sourceFile,t.span.start));if(n.length>0)return[ro(nSe,n,v.Prefix_with_declare,nSe,v.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[nSe],getAllCodeActions:e=>{let t=new Set;return La(e,v5e,(n,i)=>S5e(n,i.file,i.start,t))}});function S5e(e,t,n,i){let s=Ki(t,n);if(!$e(s))return;let a=s.parent;a.kind===172&&(!i||kg(i,a))&&e.insertModifierBefore(t,138,a)}var iSe="addMissingInvocationForDecorator",T5e=[v._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];xo({errorCodes:T5e,getCodeActions:function(t){let n=bn.ChangeTracker.with(t,i=>b5e(i,t.sourceFile,t.span.start));return[ro(iSe,n,v.Call_decorator_expression,iSe,v.Add_to_all_uncalled_decorators)]},fixIds:[iSe],getAllCodeActions:e=>La(e,T5e,(t,n)=>b5e(t,n.file,n.start))});function b5e(e,t,n){let i=Ki(t,n),s=Dr(i,pu);M.assert(!!s,"Expected position to be owned by a decorator.");let a=U.createCallExpression(s.expression,void 0,void 0);e.replaceNode(t,s.expression,a)}var sSe="addNameToNamelessParameter",E5e=[v.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];xo({errorCodes:E5e,getCodeActions:function(t){let n=bn.ChangeTracker.with(t,i=>x5e(i,t.sourceFile,t.span.start));return[ro(sSe,n,v.Add_parameter_name,sSe,v.Add_names_to_all_parameters_without_names)]},fixIds:[sSe],getAllCodeActions:e=>La(e,E5e,(t,n)=>x5e(t,n.file,n.start))});function x5e(e,t,n){let i=Ki(t,n),s=i.parent;if(!is(s))return M.fail("Tried to add a parameter name to a non-parameter: "+M.formatSyntaxKind(i.kind));let a=s.parent.parameters.indexOf(s);M.assert(!s.type,"Tried to add a parameter name to a parameter that already had one."),M.assert(a>-1,"Parameter not found in parent parameter list.");let u=s.name.getEnd(),m=U.createTypeReferenceNode(s.name,void 0),d=C5e(t,s);for(;d;)m=U.createArrayTypeNode(m),u=d.getEnd(),d=C5e(t,d);let S=U.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+a,s.questionToken,s.dotDotDotToken&&!gM(m)?U.createArrayTypeNode(m):m,s.initializer);e.replaceRange(t,Ed(s.getStart(t),u),S)}function C5e(e,t){let n=NE(t.name,t.parent,e);if(n&&n.kind===23&&Fv(n.parent)&&is(n.parent.parent))return n.parent.parent}var A5e="addOptionalPropertyUndefined",WPt=[v.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,v.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];xo({errorCodes:WPt,getCodeActions(e){let t=e.program.getTypeChecker(),n=GPt(e.sourceFile,e.span,t);if(!n.length)return;let i=bn.ChangeTracker.with(e,s=>$Pt(s,n));return[ug(A5e,i,v.Add_undefined_to_optional_property_type)]},fixIds:[A5e]});function GPt(e,t,n){var i,s;let a=k5e(cZ(e,t),n);if(!a)return ve;let{source:u,target:m}=a,d=HPt(u,m,n)?n.getTypeAtLocation(m.expression):n.getTypeAtLocation(m);return(s=(i=d.symbol)==null?void 0:i.declarations)!=null&&s.some(S=>Jr(S).fileName.match(/\.d\.ts$/))?ve:n.getExactOptionalProperties(d)}function HPt(e,t,n){return Hn(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}function k5e(e,t){var n;if(e){if(Dn(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Ci(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(to(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!KC(i.valueDeclaration.kind)||!Pt(e))return;let s=e.parent.arguments.indexOf(e);if(s===-1)return;let a=i.valueDeclaration.parameters[s].name;if($e(a))return{source:e,target:a}}else if(ql(e.parent)&&$e(e.parent.name)||m_(e.parent)){let i=k5e(e.parent.parent,t);if(!i)return;let s=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),a=(n=s?.declarations)==null?void 0:n[0];return a?{source:ql(e.parent)?e.parent.initializer:e.parent.name,target:a}:void 0}}else return}function $Pt(e,t){for(let n of t){let i=n.valueDeclaration;if(i&&(If(i)||Ds(i))&&i.type){let s=U.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],U.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var oSe="annotateWithTypeFromJSDoc",P5e=[v.JSDoc_types_may_be_moved_to_TypeScript_types.code];xo({errorCodes:P5e,getCodeActions(e){let t=N5e(e.sourceFile,e.span.start);if(!t)return;let n=bn.ChangeTracker.with(e,i=>w5e(i,e.sourceFile,t));return[ro(oSe,n,v.Annotate_with_type_from_JSDoc,oSe,v.Annotate_everything_with_types_from_JSDoc)]},fixIds:[oSe],getAllCodeActions:e=>La(e,P5e,(t,n)=>{let i=N5e(n.file,n.start);i&&w5e(t,n.file,i)})});function N5e(e,t){let n=Ki(e,t);return ci(is(n.parent)?n.parent.parent:n.parent,D5e)}function D5e(e){return YPt(e)&&I5e(e)}function I5e(e){return $a(e)?e.parameters.some(I5e)||!e.type&&!!F3(e):!e.type&&!!rT(e)}function w5e(e,t,n){if($a(n)&&(F3(n)||n.parameters.some(i=>!!rT(i)))){if(!n.typeParameters){let s=j9(n);s.length&&e.insertTypeParameters(t,n,s)}let i=fc(n)&&!Ma(n,21,t);i&&e.insertNodeBefore(t,Fo(n.parameters),U.createToken(21));for(let s of n.parameters)if(!s.type){let a=rT(s);a&&e.tryInsertTypeAnnotation(t,s,ct(a,ME,wi))}if(i&&e.insertNodeAfter(t,qo(n.parameters),U.createToken(22)),!n.type){let s=F3(n);s&&e.tryInsertTypeAnnotation(t,n,ct(s,ME,wi))}}else{let i=M.checkDefined(rT(n),"A JSDocType for this declaration should exist");M.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,ct(i,ME,wi))}}function YPt(e){return $a(e)||e.kind===260||e.kind===171||e.kind===172}function ME(e){switch(e.kind){case 312:case 313:return U.createTypeReferenceNode("any",ve);case 316:return XPt(e);case 315:return ME(e.type);case 314:return QPt(e);case 318:return ZPt(e);case 317:return eNt(e);case 183:return rNt(e);case 322:return KPt(e);default:let t=jr(e,ME,void 0);return xn(t,1),t}}function KPt(e){let t=U.createTypeLiteralNode(kr(e.jsDocPropertyTags,n=>U.createPropertySignature(void 0,$e(n.name)?n.name:n.name.right,nM(n)?U.createToken(58):void 0,n.typeExpression&&ct(n.typeExpression.type,ME,wi)||U.createKeywordTypeNode(133))));return xn(t,1),t}function XPt(e){return U.createUnionTypeNode([ct(e.type,ME,wi),U.createTypeReferenceNode("undefined",ve)])}function QPt(e){return U.createUnionTypeNode([ct(e.type,ME,wi),U.createTypeReferenceNode("null",ve)])}function ZPt(e){return U.createArrayTypeNode(ct(e.type,ME,wi))}function eNt(e){return U.createFunctionTypeNode(ve,e.parameters.map(tNt),e.type??U.createKeywordTypeNode(133))}function tNt(e){let t=e.parent.parameters.indexOf(e),n=e.type.kind===318&&t===e.parent.parameters.length-1,i=e.name||(n?"rest":"arg"+t),s=n?U.createToken(26):e.dotDotDotToken;return U.createParameterDeclaration(e.modifiers,s,i,e.questionToken,ct(e.type,ME,wi),e.initializer)}function rNt(e){let t=e.typeName,n=e.typeArguments;if($e(e.typeName)){if(S9(e))return nNt(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=U.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?n=U.createNodeArray([U.createTypeReferenceNode("any",ve)]):n=Qr(e.typeArguments,ME,wi)}return U.createTypeReferenceNode(t,n)}function nNt(e){let t=U.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,U.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),n=U.createTypeLiteralNode([U.createIndexSignature(void 0,[t],e.typeArguments[1])]);return xn(n,1),n}var aSe="convertFunctionToEs6Class",O5e=[v.This_constructor_function_may_be_converted_to_a_class_declaration.code];xo({errorCodes:O5e,getCodeActions(e){let t=bn.ChangeTracker.with(e,n=>R5e(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[ro(aSe,t,v.Convert_function_to_an_ES2015_class,aSe,v.Convert_all_constructor_functions_to_classes)]},fixIds:[aSe],getAllCodeActions:e=>La(e,O5e,(t,n)=>R5e(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))});function R5e(e,t,n,i,s,a){let u=i.getSymbolAtLocation(Ki(t,n));if(!u||!u.valueDeclaration||!(u.flags&19))return;let m=u.valueDeclaration;if(El(m)||ic(m))e.replaceNode(t,m,E(m));else if(Ci(m)){let x=S(m);if(!x)return;let D=m.parent.parent;Fu(m.parent)&&m.parent.declarations.length>1?(e.delete(t,m),e.insertNodeAfter(t,D,x)):e.replaceNode(t,D,x)}function d(x){let D=[];return x.exports&&x.exports.forEach(L=>{if(L.name==="prototype"&&L.declarations){let F=L.declarations[0];if(L.declarations.length===1&&Hn(F)&&Dn(F.parent)&&F.parent.operatorToken.kind===64&&ko(F.parent.right)){let J=F.parent.right;R(J.symbol,void 0,D)}}else R(L,[U.createToken(126)],D)}),x.members&&x.members.forEach((L,F)=>{var J,$,q,ee;if(F==="constructor"&&L.valueDeclaration){let W=(ee=(q=($=(J=x.exports)==null?void 0:J.get("prototype"))==null?void 0:$.declarations)==null?void 0:q[0])==null?void 0:ee.parent;W&&Dn(W)&&ko(W.right)&&Dt(W.right.properties,oee)||e.delete(t,L.valueDeclaration.parent);return}R(L,void 0,D)}),D;function I(L,F){return ac(L)?Hn(L)&&oee(L)?!0:Us(F):Oi(L.properties,J=>!!(_l(J)||U3(J)||ql(J)&&ic(J.initializer)&&J.name||oee(J)))}function R(L,F,J){if(!(L.flags&8192)&&!(L.flags&4096))return;let $=L.valueDeclaration,q=$.parent,ee=q.right;if(!I($,ee)||Dt(J,ue=>{let ce=Ns(ue);return!!(ce&&$e(ce)&&In(ce)===Qc(L))}))return;let W=q.parent&&q.parent.kind===244?q.parent:q;if(e.delete(t,W),!ee){J.push(U.createPropertyDeclaration(F,L.name,void 0,void 0,void 0));return}if(ac($)&&(ic(ee)||fc(ee))){let ue=td(t,s),ce=iNt($,a,ue);ce&&pe(J,ee,ce);return}else if(ko(ee)){Et(ee.properties,ue=>{(_l(ue)||U3(ue))&&J.push(ue),ql(ue)&&ic(ue.initializer)&&pe(J,ue.initializer,ue.name),oee(ue)});return}else{if(Pf(t)||!Hn($))return;let ue=U.createPropertyDeclaration(F,$.name,void 0,void 0,ee);ZN(q.parent,ue,t),J.push(ue);return}function pe(ue,ce,ne){return ic(ce)?K(ue,ce,ne):re(ue,ce,ne)}function K(ue,ce,ne){let le=ds(F,see(ce,134)),me=U.createMethodDeclaration(le,void 0,ne,void 0,void 0,ce.parameters,void 0,ce.body);ZN(q,me,t),ue.push(me)}function re(ue,ce,ne){let le=ce.body,me;le.kind===241?me=le:me=U.createBlock([U.createReturnStatement(le)]);let de=ds(F,see(ce,134)),Ae=U.createMethodDeclaration(de,void 0,ne,void 0,void 0,ce.parameters,void 0,me);ZN(q,Ae,t),ue.push(Ae)}}}function S(x){let D=x.initializer;if(!D||!ic(D)||!$e(x.name))return;let I=d(x.symbol);D.body&&I.unshift(U.createConstructorDeclaration(void 0,D.parameters,D.body));let R=see(x.parent.parent,95);return U.createClassDeclaration(R,x.name,void 0,void 0,I)}function E(x){let D=d(u);x.body&&D.unshift(U.createConstructorDeclaration(void 0,x.parameters,x.body));let I=see(x,95);return U.createClassDeclaration(I,x.name,void 0,void 0,D)}}function see(e,t){return Im(e)?ti(e.modifiers,n=>n.kind===t):void 0}function oee(e){return e.name?!!($e(e.name)&&e.name.text==="constructor"):!1}function iNt(e,t,n){if(Hn(e))return e.name;let i=e.argumentExpression;if(Df(i))return i;if(Ia(i))return ap(i.text,Qo(t))?U.createIdentifier(i.text):wA(i)?U.createStringLiteral(i.text,n===0):i}var cSe="convertToAsyncFunction",M5e=[v.This_may_be_converted_to_an_async_function.code],aee=!0;xo({errorCodes:M5e,getCodeActions(e){aee=!0;let t=bn.ChangeTracker.with(e,n=>L5e(n,e.sourceFile,e.span.start,e.program.getTypeChecker()));return aee?[ro(cSe,t,v.Convert_to_async_function,cSe,v.Convert_all_to_async_functions)]:[]},fixIds:[cSe],getAllCodeActions:e=>La(e,M5e,(t,n)=>L5e(t,n.file,n.start,e.program.getTypeChecker()))});function L5e(e,t,n,i){let s=Ki(t,n),a;if($e(s)&&Ci(s.parent)&&s.parent.initializer&&$a(s.parent.initializer)?a=s.parent.initializer:a=ci(Ip(Ki(t,n)),NZ),!a)return;let u=new Map,m=vn(a),d=oNt(a,i),S=aNt(a,i,u);if(!kZ(S,i))return;let E=S.body&&Js(S.body)?sNt(S.body,i):ve,x={checker:i,synthNamesMap:u,setOfExpressionsToReturn:d,isInJSFile:m};if(!E.length)return;let D=zo(t.text,Vg(a).pos);e.insertModifierAt(t,D,134,{suffix:" "});for(let I of E)if(qs(I,function R(L){if(to(L)){let F=oD(L,L,x,!1);if(dk())return!0;e.replaceNodeWithNodes(t,I,F)}else if(!Us(L)&&(qs(L,R),dk()))return!0}),dk())return}function sNt(e,t){let n=[];return Cv(e,i=>{vV(i,t)&&n.push(i)}),n}function oNt(e,t){if(!e.body)return new Set;let n=new Set;return qs(e.body,function i(s){q8(s,t,"then")?(n.add(Sa(s)),Et(s.arguments,i)):q8(s,t,"catch")||q8(s,t,"finally")?(n.add(Sa(s)),qs(s,i)):j5e(s,t)?n.add(Sa(s)):qs(s,i)}),n}function q8(e,t,n){if(!to(e))return!1;let s=_8(e,n)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function F5e(e,t){return(Qn(e)&4)!==0&&e.target===t}function cee(e,t,n){if(e.expression.name.escapedText==="finally")return;let i=n.getTypeAtLocation(e.expression.expression);if(F5e(i,n.getPromiseType())||F5e(i,n.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Dl(e.arguments,0))return Dl(e.typeArguments,0);if(t===Dl(e.arguments,1))return Dl(e.typeArguments,1)}else return Dl(e.typeArguments,0)}function j5e(e,t){return Pt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function aNt(e,t,n){let i=new Map,s=vd();return qs(e,function a(u){if(!$e(u)){qs(u,a);return}let m=t.getSymbolAtLocation(u);if(m){let d=t.getTypeAtLocation(u),S=z5e(d,t),E=Po(m).toString();if(S&&!is(u.parent)&&!$a(u.parent)&&!n.has(E)){let x=Aa(S.parameters),D=x?.valueDeclaration&&is(x.valueDeclaration)&&ci(x.valueDeclaration.name,$e)||U.createUniqueName("result",16),I=B5e(D,s);n.set(E,I),s.add(D.text,m)}else if(u.parent&&(is(u.parent)||Ci(u.parent)||Zo(u.parent))){let x=u.text,D=s.get(x);if(D&&D.some(I=>I!==m)){let I=B5e(u,s);i.set(E,I.identifier),n.set(E,I),s.add(x,m)}else{let I=ka(u);n.set(E,P6(I)),s.add(x,m)}}}}),C8(e,!0,a=>{if(Zo(a)&&$e(a.name)&&Kp(a.parent)){let u=t.getSymbolAtLocation(a.name),m=u&&i.get(String(Po(u)));if(m&&m.text!==(a.name||a.propertyName).getText())return U.createBindingElement(a.dotDotDotToken,a.propertyName||a.name,m,a.initializer)}else if($e(a)){let u=t.getSymbolAtLocation(a),m=u&&i.get(String(Po(u)));if(m)return U.createIdentifier(m.text)}})}function B5e(e,t){let n=(t.get(e.text)||ve).length,i=n===0?e:U.createIdentifier(e.text+"_"+n);return P6(i)}function dk(){return!aee}function FT(){return aee=!1,ve}function oD(e,t,n,i,s){if(q8(t,n.checker,"then"))return uNt(t,Dl(t.arguments,0),Dl(t.arguments,1),n,i,s);if(q8(t,n.checker,"catch"))return J5e(t,Dl(t.arguments,0),n,i,s);if(q8(t,n.checker,"finally"))return lNt(t,Dl(t.arguments,0),n,i,s);if(Hn(t))return oD(e,t.expression,n,i,s);let a=n.checker.getTypeAtLocation(t);return a&&n.checker.getPromisedTypeOfPromise(a)?(M.assertNode(Bc(t).parent,Hn),_Nt(e,t,n,i,s)):FT()}function lee({checker:e},t){if(t.kind===106)return!0;if($e(t)&&!Ec(t)&&In(t)==="undefined"){let n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function cNt(e){let t=U.createUniqueName(e.identifier.text,16);return P6(t)}function U5e(e,t,n){let i;return n&&!W8(e,t)&&(z8(n)?(i=n,t.synthNamesMap.forEach((s,a)=>{if(s.identifier.text===n.identifier.text){let u=cNt(n);t.synthNamesMap.set(a,u)}})):i=P6(U.createUniqueName("result",16),n.types),fSe(i)),i}function V5e(e,t,n,i,s){let a=[],u;if(i&&!W8(e,t)){u=ka(fSe(i));let m=i.types,d=t.checker.getUnionType(m,2),S=t.isInJSFile?void 0:t.checker.typeToTypeNode(d,void 0,void 0),E=[U.createVariableDeclaration(u,void 0,S)],x=U.createVariableStatement(void 0,U.createVariableDeclarationList(E,1));a.push(x)}return a.push(n),s&&u&&dNt(s)&&a.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(ka($5e(s)),void 0,void 0,u)],2))),a}function lNt(e,t,n,i,s){if(!t||lee(n,t))return oD(e,e.expression.expression,n,i,s);let a=U5e(e,n,s),u=oD(e,e.expression.expression,n,!0,a);if(dk())return FT();let m=uSe(t,i,void 0,void 0,e,n);if(dk())return FT();let d=U.createBlock(u),S=U.createBlock(m),E=U.createTryStatement(d,void 0,S);return V5e(e,n,E,a,s)}function J5e(e,t,n,i,s){if(!t||lee(n,t))return oD(e,e.expression.expression,n,i,s);let a=G5e(t,n),u=U5e(e,n,s),m=oD(e,e.expression.expression,n,!0,u);if(dk())return FT();let d=uSe(t,i,u,a,e,n);if(dk())return FT();let S=U.createBlock(m),E=U.createCatchClause(a&&ka(LV(a)),U.createBlock(d)),x=U.createTryStatement(S,E,void 0);return V5e(e,n,x,u,s)}function uNt(e,t,n,i,s,a){if(!t||lee(i,t))return J5e(e,n,i,s,a);if(n&&!lee(i,n))return FT();let u=G5e(t,i),m=oD(e.expression.expression,e.expression.expression,i,!0,u);if(dk())return FT();let d=uSe(t,s,a,u,e,i);return dk()?FT():ds(m,d)}function _Nt(e,t,n,i,s){if(W8(e,n)){let a=ka(t);return i&&(a=U.createAwaitExpression(a)),[U.createReturnStatement(a)]}return uee(s,U.createAwaitExpression(t),void 0)}function uee(e,t,n){return!e||H5e(e)?[U.createExpressionStatement(t)]:z8(e)&&e.hasBeenDeclared?[U.createExpressionStatement(U.createAssignment(ka(_Se(e)),t))]:[U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(ka(LV(e)),void 0,n,t)],2))]}function lSe(e,t){if(t&&e){let n=U.createUniqueName("result",16);return[...uee(P6(n),e,t),U.createReturnStatement(n)]}return[U.createReturnStatement(e)]}function uSe(e,t,n,i,s,a){var u;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let m=U.createCallExpression(ka(e),void 0,z8(i)?[_Se(i)]:[]);if(W8(s,a))return lSe(m,cee(s,e,a.checker));let d=a.checker.getTypeAtLocation(e),S=a.checker.getSignaturesOfType(d,0);if(!S.length)return FT();let E=S[0].getReturnType(),x=uee(n,U.createAwaitExpression(m),cee(s,e,a.checker));return n&&n.types.push(a.checker.getAwaitedType(E)||E),x;case 218:case 219:{let D=e.body,I=(u=z5e(a.checker.getTypeAtLocation(e),a.checker))==null?void 0:u.getReturnType();if(Js(D)){let R=[],L=!1;for(let F of D.statements)if(im(F))if(L=!0,vV(F,a.checker))R=R.concat(W5e(a,F,t,n));else{let J=I&&F.expression?q5e(a.checker,I,F.expression):F.expression;R.push(...lSe(J,cee(s,e,a.checker)))}else{if(t&&Cv(F,YS))return FT();R.push(F)}return W8(s,a)?R.map(F=>ka(F)):fNt(R,n,a,L)}else{let R=PZ(D,a.checker)?W5e(a,U.createReturnStatement(D),t,n):ve;if(R.length>0)return R;if(I){let L=q5e(a.checker,I,D);if(W8(s,a))return lSe(L,cee(s,e,a.checker));{let F=uee(n,L,void 0);return n&&n.types.push(a.checker.getAwaitedType(I)||I),F}}else return FT()}}default:return FT()}return ve}function q5e(e,t,n){let i=ka(n);return e.getPromisedTypeOfPromise(t)?U.createAwaitExpression(i):i}function z5e(e,t){let n=t.getSignaturesOfType(e,0);return yc(n)}function fNt(e,t,n,i){let s=[];for(let a of e)if(im(a)){if(a.expression){let u=j5e(a.expression,n.checker)?U.createAwaitExpression(a.expression):a.expression;t===void 0?s.push(U.createExpressionStatement(u)):z8(t)&&t.hasBeenDeclared?s.push(U.createExpressionStatement(U.createAssignment(_Se(t),u))):s.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(LV(t),void 0,void 0,u)],2)))}}else s.push(ka(a));return!i&&t!==void 0&&s.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(LV(t),void 0,void 0,U.createIdentifier("undefined"))],2))),s}function W5e(e,t,n,i){let s=[];return qs(t,function a(u){if(to(u)){let m=oD(u,u,e,n,i);if(s=s.concat(m),s.length>0)return}else Us(u)||qs(u,a)}),s}function G5e(e,t){let n=[],i;if($a(e)){if(e.parameters.length>0){let d=e.parameters[0].name;i=s(d)}}else $e(e)?i=a(e):Hn(e)&&$e(e.name)&&(i=a(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(d){if($e(d))return a(d);let S=To(d.elements,E=>du(E)?[]:[s(E.name)]);return pNt(d,S)}function a(d){let S=m(d),E=u(S);return E&&t.synthNamesMap.get(Po(E).toString())||P6(d,n)}function u(d){var S;return((S=ci(d,Qm))==null?void 0:S.symbol)??t.checker.getSymbolAtLocation(d)}function m(d){return d.original?d.original:d}}function H5e(e){return e?z8(e)?!e.identifier.text:Oi(e.elements,H5e):!0}function P6(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function pNt(e,t=ve,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}function _Se(e){return e.hasBeenReferenced=!0,e.identifier}function LV(e){return z8(e)?fSe(e):$5e(e)}function $5e(e){for(let t of e.elements)LV(t);return e.bindingPattern}function fSe(e){return e.hasBeenDeclared=!0,e.identifier}function z8(e){return e.kind===0}function dNt(e){return e.kind===1}function W8(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Sa(e.original))}xo({errorCodes:[v.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:n,preferences:i}=e,s=bn.ChangeTracker.with(e,a=>{if(gNt(t,n.getTypeChecker(),a,Qo(n.getCompilerOptions()),td(t,i)))for(let m of n.getSourceFiles())mNt(m,t,n,a,td(m,i))});return[ug("convertToEsModule",s,v.Convert_to_ES_module)]}});function mNt(e,t,n,i,s){var a;for(let u of e.imports){let m=(a=n.getResolvedModuleFromModuleSpecifier(u,e))==null?void 0:a.resolvedModule;if(!m||m.resolvedFileName!==t.fileName)continue;let d=Rw(u);switch(d.kind){case 271:i.replaceNode(e,d,uS(d.name,void 0,u,s));break;case 213:Nf(d,!1)&&i.replaceNode(e,d,U.createPropertyAccessExpression(ka(d),"default"));break}}}function gNt(e,t,n,i,s){let a={original:NNt(e),additional:new Set},u=hNt(e,t,a);yNt(e,u,n);let m=!1,d;for(let S of ti(e.statements,fl)){let E=K5e(e,S,n,t,a,i,s);E&&$5(E,d??(d=new Map))}for(let S of ti(e.statements,E=>!fl(E))){let E=vNt(e,S,t,n,a,i,u,d,s);m=m||E}return d?.forEach((S,E)=>{n.replaceNode(e,E,S)}),m}function hNt(e,t,n){let i=new Map;return Y5e(e,s=>{let{text:a}=s.name;!i.has(a)&&(qH(s.name)||t.resolveName(a,s,111551,!0))&&i.set(a,_ee(`_${a}`,n))}),i}function yNt(e,t,n){Y5e(e,(i,s)=>{if(s)return;let{text:a}=i.name;n.replaceNode(e,i,U.createIdentifier(t.get(a)||a))})}function Y5e(e,t){e.forEachChild(function n(i){if(Hn(i)&&EE(e,i.expression)&&$e(i.name)){let{parent:s}=i;t(i,Dn(s)&&s.left===i&&s.operatorToken.kind===64)}i.forEachChild(n)})}function vNt(e,t,n,i,s,a,u,m,d){switch(t.kind){case 243:return K5e(e,t,i,n,s,a,d),!1;case 244:{let{expression:S}=t;switch(S.kind){case 213:return Nf(S,!0)&&i.replaceNode(e,t,uS(void 0,void 0,S.arguments[0],d)),!1;case 226:{let{operatorToken:E}=S;return E.kind===64&&TNt(e,n,S,i,u,m)}}}default:return!1}}function K5e(e,t,n,i,s,a,u){let{declarationList:m}=t,d=!1,S=kr(m.declarations,E=>{let{name:x,initializer:D}=E;if(D){if(EE(e,D))return d=!0,N6([]);if(Nf(D,!0))return d=!0,kNt(x,D.arguments[0],i,s,a,u);if(Hn(D)&&Nf(D.expression,!0))return d=!0,SNt(x,D.name.text,D.expression.arguments[0],s,u)}return N6([U.createVariableStatement(void 0,U.createVariableDeclarationList([E],m.flags))])});if(d){n.replaceNodeWithNodes(e,t,To(S,x=>x.newImports));let E;return Et(S,x=>{x.useSitesToUnqualify&&$5(x.useSitesToUnqualify,E??(E=new Map))}),E}}function SNt(e,t,n,i,s){switch(e.kind){case 206:case 207:{let a=_ee(t,i);return N6([e9e(a,t,n,s),fee(void 0,e,U.createIdentifier(a))])}case 80:return N6([e9e(e.text,t,n,s)]);default:return M.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function TNt(e,t,n,i,s,a){let{left:u,right:m}=n;if(!Hn(u))return!1;if(EE(e,u))if(EE(e,m))i.delete(e,n.parent);else{let d=ko(m)?bNt(m,a):Nf(m,!0)?xNt(m.arguments[0],t):void 0;return d?(i.replaceNodeWithNodes(e,n.parent,d[0]),d[1]):(i.replaceRangeWithText(e,Ed(u.getStart(e),m.pos),"export default"),!0)}else EE(e,u.expression)&&ENt(e,n,i,s);return!1}function bNt(e,t){let n=qI(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return $e(i.name)?ANt(i.name.text,i.initializer,t):void 0;case 174:return $e(i.name)?Z5e(i.name.text,[U.createToken(95)],i,t):void 0;default:M.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return n&&[n,!1]}function ENt(e,t,n,i){let{text:s}=t.left.name,a=i.get(s);if(a!==void 0){let u=[fee(void 0,a,t.right),mSe([U.createExportSpecifier(!1,a,s)])];n.replaceNodeWithNodes(e,t.parent,u)}else CNt(t,e,n)}function xNt(e,t){let n=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:lr;return s.has("export=")?[[pSe(n)],!0]:s.has("default")?s.size>1?[[X5e(n),pSe(n)],!0]:[[pSe(n)],!0]:[[X5e(n)],!1]}function X5e(e){return mSe(void 0,e)}function pSe(e){return mSe([U.createExportSpecifier(!1,void 0,"default")],e)}function CNt({left:e,right:t,parent:n},i,s){let a=e.name.text;if((ic(t)||fc(t)||tu(t))&&(!t.name||t.name.text===a)){s.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},U.createToken(95),{suffix:" "}),t.name||s.insertName(i,t,a);let u=Ma(n,27,i);u&&s.delete(i,u)}else s.replaceNodeRangeWithNodes(i,e.expression,Ma(e,25,i),[U.createToken(95),U.createToken(87)],{joiner:" ",suffix:" "})}function ANt(e,t,n){let i=[U.createToken(95)];switch(t.kind){case 218:{let{name:a}=t;if(a&&a.text!==e)return s()}case 219:return Z5e(e,i,t,n);case 231:return INt(e,i,t,n);default:return s()}function s(){return fee(i,U.createIdentifier(e),dSe(t,n))}}function dSe(e,t){if(!t||!Dt(Os(t.keys()),i=>ed(e,i)))return e;return Ms(e)?ZQ(e,!0,n):C8(e,!0,n);function n(i){if(i.kind===211){let s=t.get(i);return t.delete(i),s}}}function kNt(e,t,n,i,s,a){switch(e.kind){case 206:{let u=qI(e.elements,m=>m.dotDotDotToken||m.initializer||m.propertyName&&!$e(m.propertyName)||!$e(m.name)?void 0:t9e(m.propertyName&&m.propertyName.text,m.name.text));if(u)return N6([uS(void 0,u,t,a)])}case 207:{let u=_ee(I8(t.text,s),i);return N6([uS(U.createIdentifier(u),void 0,t,a),fee(void 0,ka(e),U.createIdentifier(u))])}case 80:return PNt(e,t,n,i,a);default:return M.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function PNt(e,t,n,i,s){let a=n.getSymbolAtLocation(e),u=new Map,m=!1,d;for(let E of i.original.get(e.text)){if(n.getSymbolAtLocation(E)!==a||E===e)continue;let{parent:x}=E;if(Hn(x)){let{name:{text:D}}=x;if(D==="default"){m=!0;let I=E.getText();(d??(d=new Map)).set(x,U.createIdentifier(I))}else{M.assert(x.expression===E,"Didn't expect expression === use");let I=u.get(D);I===void 0&&(I=_ee(D,i),u.set(D,I)),(d??(d=new Map)).set(x,U.createIdentifier(I))}}else m=!0}let S=u.size===0?void 0:Os(wx(u.entries(),([E,x])=>U.createImportSpecifier(!1,E===x?void 0:U.createIdentifier(E),U.createIdentifier(x))));return S||(m=!0),N6([uS(m?ka(e):void 0,S,t,s)],d)}function _ee(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function NNt(e){let t=vd();return Q5e(e,n=>t.add(n.text,n)),t}function Q5e(e,t){$e(e)&&DNt(e)&&t(e),e.forEachChild(n=>Q5e(n,t))}function DNt(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function Z5e(e,t,n,i){return U.createFunctionDeclaration(ds(t,DE(n.modifiers)),ka(n.asteriskToken),e,DE(n.typeParameters),DE(n.parameters),ka(n.type),U.converters.convertToFunctionBlock(dSe(n.body,i)))}function INt(e,t,n,i){return U.createClassDeclaration(ds(t,DE(n.modifiers)),e,DE(n.typeParameters),DE(n.heritageClauses),dSe(n.members,i))}function e9e(e,t,n,i){return t==="default"?uS(U.createIdentifier(e),void 0,n,i):uS(void 0,[t9e(t,e)],n,i)}function t9e(e,t){return U.createImportSpecifier(!1,e!==void 0&&e!==t?U.createIdentifier(e):void 0,U.createIdentifier(t))}function fee(e,t,n){return U.createVariableStatement(e,U.createVariableDeclarationList([U.createVariableDeclaration(t,void 0,void 0,n)],2))}function mSe(e,t){return U.createExportDeclaration(void 0,!1,e&&U.createNamedExports(e),t===void 0?void 0:U.createStringLiteral(t))}function N6(e,t){return{newImports:e,useSitesToUnqualify:t}}var gSe="correctQualifiedNameToIndexedAccessType",r9e=[v.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];xo({errorCodes:r9e,getCodeActions(e){let t=n9e(e.sourceFile,e.span.start);if(!t)return;let n=bn.ChangeTracker.with(e,s=>i9e(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[ro(gSe,n,[v.Rewrite_as_the_indexed_access_type_0,i],gSe,v.Rewrite_all_as_indexed_access_types)]},fixIds:[gSe],getAllCodeActions:e=>La(e,r9e,(t,n)=>{let i=n9e(n.file,n.start);i&&i9e(t,n.file,i)})});function n9e(e,t){let n=Dr(Ki(e,t),uf);return M.assert(!!n,"Expected position to be owned by a qualified name."),$e(n.left)?n:void 0}function i9e(e,t,n){let i=n.right.text,s=U.createIndexedAccessTypeNode(U.createTypeReferenceNode(n.left,void 0),U.createLiteralTypeNode(U.createStringLiteral(i)));e.replaceNode(t,n,s)}var hSe=[v.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],ySe="convertToTypeOnlyExport";xo({errorCodes:hSe,getCodeActions:function(t){let n=bn.ChangeTracker.with(t,i=>o9e(i,s9e(t.span,t.sourceFile),t));if(n.length)return[ro(ySe,n,v.Convert_to_type_only_export,ySe,v.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[ySe],getAllCodeActions:function(t){let n=new Map;return La(t,hSe,(i,s)=>{let a=s9e(s,t.sourceFile);a&&tm(n,Sa(a.parent.parent))&&o9e(i,a,t)})}});function s9e(e,t){return ci(Ki(t,e.start).parent,E_)}function o9e(e,t,n){if(!t)return;let i=t.parent,s=i.parent,a=wNt(t,n);if(a.length===i.elements.length)e.insertModifierBefore(n.sourceFile,156,i);else{let u=U.updateExportDeclaration(s,s.modifiers,!1,U.updateNamedExports(i,ti(i.elements,d=>!xs(a,d))),s.moduleSpecifier,void 0),m=U.createExportDeclaration(void 0,!0,U.createNamedExports(a),s.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,s,u,{leadingTriviaOption:bn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:bn.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,s,m)}}function wNt(e,t){let n=e.parent;if(n.elements.length===1)return n.elements;let i=nve(gf(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return ti(n.elements,s=>{var a;return s===e||((a=rve(s,i))==null?void 0:a.code)===hSe[0]})}var a9e=[v._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,v._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],pee="convertToTypeOnlyImport";xo({errorCodes:a9e,getCodeActions:function(t){var n;let i=c9e(t.sourceFile,t.span.start);if(i){let s=bn.ChangeTracker.with(t,m=>FV(m,t.sourceFile,i)),a=i.kind===276&&Yc(i.parent.parent.parent)&&l9e(i,t.sourceFile,t.program)?bn.ChangeTracker.with(t,m=>FV(m,t.sourceFile,i.parent.parent.parent)):void 0,u=ro(pee,s,i.kind===276?[v.Use_type_0,((n=i.propertyName)==null?void 0:n.text)??i.name.text]:v.Use_import_type,pee,v.Fix_all_with_type_only_imports);return Dt(a)?[ug(pee,a,v.Use_import_type),u]:[u]}},fixIds:[pee],getAllCodeActions:function(t){let n=new Set;return La(t,a9e,(i,s)=>{let a=c9e(s.file,s.start);a?.kind===272&&!n.has(a)?(FV(i,s.file,a),n.add(a)):a?.kind===276&&Yc(a.parent.parent.parent)&&!n.has(a.parent.parent.parent)&&l9e(a,s.file,t.program)?(FV(i,s.file,a.parent.parent.parent),n.add(a.parent.parent.parent)):a?.kind===276&&FV(i,s.file,a)})}});function c9e(e,t){let{parent:n}=Ki(e,t);return pf(n)||Yc(n)&&n.importClause?n:void 0}function l9e(e,t,n){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(a=>!a.isTypeOnly);if(i.length===1)return!0;let s=n.getTypeChecker();for(let a of i)if(lc.Core.eachSymbolReferenceInFile(a.name,s,t,m=>{let d=s.getSymbolAtLocation(m);return!!d&&s.symbolIsValue(d)||!gT(m)}))return!1;return!0}function FV(e,t,n){var i;if(pf(n))e.replaceNode(t,n,U.updateImportSpecifier(n,!0,n.propertyName,n.name));else{let s=n.importClause;if(s.name&&s.namedBindings)e.replaceNodeWithNodes(t,n,[U.createImportDeclaration(DE(n.modifiers,!0),U.createImportClause(!0,ka(s.name,!0),void 0),ka(n.moduleSpecifier,!0),ka(n.attributes,!0)),U.createImportDeclaration(DE(n.modifiers,!0),U.createImportClause(!0,void 0,ka(s.namedBindings,!0)),ka(n.moduleSpecifier,!0),ka(n.attributes,!0))]);else{let a=((i=s.namedBindings)==null?void 0:i.kind)===275?U.updateNamedImports(s.namedBindings,js(s.namedBindings.elements,m=>U.updateImportSpecifier(m,!1,m.propertyName,m.name))):s.namedBindings,u=U.updateImportDeclaration(n,n.modifiers,U.updateImportClause(s,!0,s.name,a),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,u)}}}var vSe="convertTypedefToType",u9e=[v.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];xo({fixIds:[vSe],errorCodes:u9e,getCodeActions(e){let t=Jv(e.host,e.formatContext.options),n=Ki(e.sourceFile,e.span.start);if(!n)return;let i=bn.ChangeTracker.with(e,s=>_9e(s,n,e.sourceFile,t));if(i.length>0)return[ro(vSe,i,v.Convert_typedef_to_TypeScript_type,vSe,v.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>La(e,u9e,(t,n)=>{let i=Jv(e.host,e.formatContext.options),s=Ki(n.file,n.start);s&&_9e(t,s,n.file,i,!0)})});function _9e(e,t,n,i,s=!1){if(!p2(t))return;let a=RNt(t);if(!a)return;let u=t.parent,{leftSibling:m,rightSibling:d}=ONt(t),S=u.getStart(),E="";!m&&u.comment&&(S=f9e(u,u.getStart(),t.getStart()),E=`${i} */${i}`),m&&(s&&p2(m)?(S=t.getStart(),E=""):(S=f9e(u,m.getStart(),t.getStart()),E=`${i} */${i}`));let x=u.getEnd(),D="";d&&(s&&p2(d)?(x=d.getStart(),D=`${i}${i}`):(x=d.getStart(),D=`${i}/**${i} * `)),e.replaceRange(n,{pos:S,end:x},a,{prefix:E,suffix:D})}function ONt(e){let t=e.parent,n=t.getChildCount()-1,i=t.getChildren().findIndex(u=>u.getStart()===e.getStart()&&u.getEnd()===e.getEnd()),s=i>0?t.getChildAt(i-1):void 0,a=i0;s--)if(!/[*/\s]/g.test(i.substring(s-1,s)))return t+s;return n}function RNt(e){var t;let{typeExpression:n}=e;if(!n)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(n.kind===322)return MNt(i,n);if(n.kind===309)return LNt(i,n)}}function MNt(e,t){let n=p9e(t);if(Dt(n))return U.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}function LNt(e,t){let n=ka(t.type);if(n)return U.createTypeAliasDeclaration(void 0,U.createIdentifier(e),void 0,n)}function p9e(e){let t=e.jsDocPropertyTags;return Dt(t)?Yi(t,i=>{var s;let a=FNt(i),u=(s=i.typeExpression)==null?void 0:s.type,m=i.isBracketed,d;if(u&&f2(u)){let S=p9e(u);d=U.createTypeLiteralNode(S)}else u&&(d=ka(u));if(d&&a){let S=m?U.createToken(58):void 0;return U.createPropertySignature(void 0,a,S,d)}}):void 0}function FNt(e){return e.name.kind===80?e.name.text:e.name.right.text}function jNt(e){return Np(e)?To(e.jsDoc,t=>{var n;return(n=t.tags)==null?void 0:n.filter(i=>p2(i))}):[]}var SSe="convertLiteralTypeToMappedType",d9e=[v._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];xo({errorCodes:d9e,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=m9e(n,i.start);if(!s)return;let{name:a,constraint:u}=s,m=bn.ChangeTracker.with(t,d=>g9e(d,n,s));return[ro(SSe,m,[v.Convert_0_to_1_in_0,u,a],SSe,v.Convert_all_type_literals_to_mapped_type)]},fixIds:[SSe],getAllCodeActions:e=>La(e,d9e,(t,n)=>{let i=m9e(n.file,n.start);i&&g9e(t,n.file,i)})});function m9e(e,t){let n=Ki(e,t);if($e(n)){let i=ao(n.parent.parent,If),s=n.getText(e);return{container:ao(i.parent,_f),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function g9e(e,t,{container:n,typeNode:i,constraint:s,name:a}){e.replaceNode(t,n,U.createMappedTypeNode(void 0,U.createTypeParameterDeclaration(void 0,a,U.createTypeReferenceNode(s)),void 0,void 0,i,void 0))}var h9e=[v.Class_0_incorrectly_implements_interface_1.code,v.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],TSe="fixClassIncorrectlyImplementsInterface";xo({errorCodes:h9e,getCodeActions(e){let{sourceFile:t,span:n}=e,i=y9e(t,n.start);return Yi(tN(i),s=>{let a=bn.ChangeTracker.with(e,u=>S9e(e,s,t,i,u,e.preferences));return a.length===0?void 0:ro(TSe,a,[v.Implement_interface_0,s.getText(t)],TSe,v.Implement_all_unimplemented_interfaces)})},fixIds:[TSe],getAllCodeActions(e){let t=new Map;return La(e,h9e,(n,i)=>{let s=y9e(i.file,i.start);if(tm(t,Sa(s)))for(let a of tN(s))S9e(e,a,i.file,s,n,e.preferences)})}});function y9e(e,t){return M.checkDefined(Lu(Ki(e,t)),"There should be a containing class")}function v9e(e){return!e.valueDeclaration||!(V_(e.valueDeclaration)&2)}function S9e(e,t,n,i,s,a){let u=e.program.getTypeChecker(),m=BNt(i,u),d=u.getTypeAtLocation(t),E=u.getPropertiesOfType(d).filter(l5(v9e,F=>!m.has(F.escapedName))),x=u.getTypeAtLocation(i),D=jn(i.members,F=>Vc(F));x.getNumberIndexType()||R(d,1),x.getStringIndexType()||R(d,0);let I=LE(n,e.program,a,e.host);fTe(i,E,n,e,a,I,F=>L(n,i,F)),I.writeFixes(s);function R(F,J){let $=u.getIndexInfoOfType(F,J);$&&L(n,i,u.indexInfoToIndexSignatureDeclaration($,i,void 0,aD(e)))}function L(F,J,$){D?s.insertNodeAfter(F,D,$):s.insertMemberAtStart(F,J,$)}}function BNt(e,t){let n=Lg(e);if(!n)return po();let i=t.getTypeAtLocation(n),s=t.getPropertiesOfType(i);return po(s.filter(v9e))}var T9e="import",b9e="fixMissingImport",E9e=[v.Cannot_find_name_0.code,v.Cannot_find_name_0_Did_you_mean_1.code,v.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,v.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,v.Cannot_find_namespace_0.code,v._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,v._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,v.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,v._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,v.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,v.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,v.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,v.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig.code,v.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,v.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig.code,v.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha.code,v.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,v.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig.code,v.Cannot_find_namespace_0_Did_you_mean_1.code];xo({errorCodes:E9e,getCodeActions(e){let{errorCode:t,preferences:n,sourceFile:i,span:s,program:a}=e,u=D9e(e,t,s.start,!0);if(u)return u.map(({fix:m,symbolName:d,errorIdentifierText:S})=>ESe(e,i,d,m,d!==S,a,n))},fixIds:[b9e],getAllCodeActions:e=>{let{sourceFile:t,program:n,preferences:i,host:s,cancellationToken:a}=e,u=x9e(t,n,!0,i,s,a);return pk(e,E9e,m=>u.addImportFromDiagnostic(m,e)),fk(bn.ChangeTracker.with(e,u.writeFixes))}});function LE(e,t,n,i,s){return x9e(e,t,!1,n,i,s)}function x9e(e,t,n,i,s,a){let u=t.getCompilerOptions(),m=[],d=[],S=new Map,E=new Set,x=new Set,D=new Map;return{addImportFromDiagnostic:L,addImportFromExportedSymbol:F,writeFixes:ee,hasFixes:pe,addImportForUnresolvedIdentifier:R,addImportForNonExistentExport:J,removeExistingImport:$,addVerbatimImport:I};function I(K){x.add(K)}function R(K,re,ue){let ce=KNt(K,re,ue);!ce||!ce.length||q(Fo(ce))}function L(K,re){let ue=D9e(re,K.code,K.start,n);!ue||!ue.length||q(Fo(ue))}function F(K,re,ue){var ce;let ne=M.checkDefined(K.parent),le=lV(K,Qo(u)),me=t.getTypeChecker(),de=me.getMergedSymbol($u(K,me)),Ae=k9e(e,de,le,ne,!1,t,s,i,a),xe=BV(e,t),te=C9e(e,M.checkDefined(Ae),t,void 0,!!re,xe,s,i);if(te){let he=((ce=ci(ue?.name,$e))==null?void 0:ce.text)??le;ue&&hw(ue)&&(te.kind===3||te.kind===2)&&te.addAsTypeOnly===1&&(te={...te,addAsTypeOnly:2}),q({fix:te,symbolName:he??le,errorIdentifierText:void 0})}}function J(K,re,ue,ce,ne){let le=t.getSourceFile(re),me=BV(e,t);if(le&&le.symbol){let{fixes:de}=jV([{exportKind:ue,isFromPackageJson:!1,moduleFileName:re,moduleSymbol:le.symbol,targetFlags:ce}],void 0,ne,me,t,e,s,i);de.length&&q({fix:de[0],symbolName:K,errorIdentifierText:K})}else{let de=gV(re,99,t,s),Ae=IT.getLocalModuleSpecifierBetweenFileNames(e,re,u,ak(t,s)),xe=mee(de,ue,u),te=dee(ne,!0,void 0,ce,t.getTypeChecker(),u);q({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:Ae,importKind:xe,addAsTypeOnly:te,useRequire:me},symbolName:K,errorIdentifierText:K})}}function $(K){K.kind===273&&M.assertIsDefined(K.name,"ImportClause should have a name if it's being removed"),E.add(K)}function q(K){var re,ue;let{fix:ce,symbolName:ne}=K;switch(ce.kind){case 0:m.push(ce);break;case 1:d.push(ce);break;case 2:{let{importClauseOrBindingPattern:Ae,importKind:xe,addAsTypeOnly:te}=ce,he=S.get(Ae);if(he||S.set(Ae,he={importClauseOrBindingPattern:Ae,defaultImport:void 0,namedImports:new Map}),xe===0){let Te=he?.namedImports.get(ne);he.namedImports.set(ne,le(Te,te))}else M.assert(he.defaultImport===void 0||he.defaultImport.name===ne,"(Add to Existing) Default import should be missing or match symbolName"),he.defaultImport={name:ne,addAsTypeOnly:le((re=he.defaultImport)==null?void 0:re.addAsTypeOnly,te)};break}case 3:{let{moduleSpecifier:Ae,importKind:xe,useRequire:te,addAsTypeOnly:he}=ce,Te=me(Ae,xe,te,he);switch(M.assert(Te.useRequire===te,"(Add new) Tried to add an `import` and a `require` for the same module"),xe){case 1:M.assert(Te.defaultImport===void 0||Te.defaultImport.name===ne,"(Add new) Default import should be missing or match symbolName"),Te.defaultImport={name:ne,addAsTypeOnly:le((ue=Te.defaultImport)==null?void 0:ue.addAsTypeOnly,he)};break;case 0:let Ve=(Te.namedImports||(Te.namedImports=new Map)).get(ne);Te.namedImports.set(ne,le(Ve,he));break;case 3:if(u.verbatimModuleSyntax){let Pe=(Te.namedImports||(Te.namedImports=new Map)).get(ne);Te.namedImports.set(ne,le(Pe,he))}else M.assert(Te.namespaceLikeImport===void 0||Te.namespaceLikeImport.name===ne,"Namespacelike import shoudl be missing or match symbolName"),Te.namespaceLikeImport={importKind:xe,name:ne,addAsTypeOnly:he};break;case 2:M.assert(Te.namespaceLikeImport===void 0||Te.namespaceLikeImport.name===ne,"Namespacelike import shoudl be missing or match symbolName"),Te.namespaceLikeImport={importKind:xe,name:ne,addAsTypeOnly:he};break}break}case 4:break;default:M.assertNever(ce,`fix wasn't never - got kind ${ce.kind}`)}function le(Ae,xe){return Math.max(Ae??0,xe)}function me(Ae,xe,te,he){let Te=de(Ae,!0),Ve=de(Ae,!1),Pe=D.get(Te),ke=D.get(Ve),De={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:te};return xe===1&&he===2?Pe||(D.set(Te,De),De):he===1&&(Pe||ke)?Pe||ke:ke||(D.set(Ve,De),De)}function de(Ae,xe){return`${xe?1:0}|${Ae}`}}function ee(K,re){var ue,ce;let ne;kv(e)&&e.imports.length===0&&re!==void 0?ne=re:ne=td(e,i);for(let de of m)xSe(K,e,de);for(let de of d)B9e(K,e,de,ne);let le;if(E.size){M.assert(kv(e),"Cannot remove imports from a future source file");let de=new Set(Yi([...E],Te=>Dr(Te,Yc))),Ae=new Set(Yi([...E],Te=>Dr(Te,gR))),xe=[...de].filter(Te=>{var Ve,Pe,ke;return!S.has(Te.importClause)&&(!((Ve=Te.importClause)!=null&&Ve.name)||E.has(Te.importClause))&&(!ci((Pe=Te.importClause)==null?void 0:Pe.namedBindings,Ry)||E.has(Te.importClause.namedBindings))&&(!ci((ke=Te.importClause)==null?void 0:ke.namedBindings,Hg)||Oi(Te.importClause.namedBindings.elements,De=>E.has(De)))}),te=[...Ae].filter(Te=>(Te.name.kind!==206||!S.has(Te.name))&&(Te.name.kind!==206||Oi(Te.name.elements,Ve=>E.has(Ve)))),he=[...de].filter(Te=>{var Ve,Pe;return((Ve=Te.importClause)==null?void 0:Ve.namedBindings)&&xe.indexOf(Te)===-1&&!((Pe=S.get(Te.importClause))!=null&&Pe.namedImports)&&(Te.importClause.namedBindings.kind===274||Oi(Te.importClause.namedBindings.elements,ke=>E.has(ke)))});for(let Te of[...xe,...te])K.delete(e,Te);for(let Te of he)K.replaceNode(e,Te.importClause,U.updateImportClause(Te.importClause,Te.importClause.isTypeOnly,Te.importClause.name,void 0));for(let Te of E){let Ve=Dr(Te,Yc);Ve&&xe.indexOf(Ve)===-1&&he.indexOf(Ve)===-1?Te.kind===273?K.delete(e,Te.name):(M.assert(Te.kind===276,"NamespaceImport should have been handled earlier"),(ue=S.get(Ve.importClause))!=null&&ue.namedImports?(le??(le=new Set)).add(Te):K.delete(e,Te)):Te.kind===208?(ce=S.get(Te.parent))!=null&&ce.namedImports?(le??(le=new Set)).add(Te):K.delete(e,Te):Te.kind===271&&K.delete(e,Te)}}S.forEach(({importClauseOrBindingPattern:de,defaultImport:Ae,namedImports:xe})=>{j9e(K,e,de,Ae,Os(xe.entries(),([te,he])=>({addAsTypeOnly:he,name:te})),le,i)});let me;D.forEach(({useRequire:de,defaultImport:Ae,namedImports:xe,namespaceLikeImport:te},he)=>{let Te=he.slice(2),Pe=(de?J9e:V9e)(Te,ne,Ae,xe&&Os(xe.entries(),([ke,De])=>({addAsTypeOnly:De,name:ke})),te,u,i);me=Ss(me,Pe)}),me=Ss(me,W()),me&&VQ(K,e,me,!0,i)}function W(){if(!x.size)return;let K=new Set(Yi([...x],ue=>Dr(ue,Yc))),re=new Set(Yi([...x],ue=>Dr(ue,hR)));return[...Yi([...x],ue=>ue.kind===271?ka(ue,!0):void 0),...[...K].map(ue=>{var ce;return x.has(ue)?ka(ue,!0):ka(U.updateImportDeclaration(ue,ue.modifiers,ue.importClause&&U.updateImportClause(ue.importClause,ue.importClause.isTypeOnly,x.has(ue.importClause)?ue.importClause.name:void 0,x.has(ue.importClause.namedBindings)?ue.importClause.namedBindings:(ce=ci(ue.importClause.namedBindings,Hg))!=null&&ce.elements.some(ne=>x.has(ne))?U.updateNamedImports(ue.importClause.namedBindings,ue.importClause.namedBindings.elements.filter(ne=>x.has(ne))):void 0),ue.moduleSpecifier,ue.attributes),!0)}),...[...re].map(ue=>x.has(ue)?ka(ue,!0):ka(U.updateVariableStatement(ue,ue.modifiers,U.updateVariableDeclarationList(ue.declarationList,Yi(ue.declarationList.declarations,ce=>x.has(ce)?ce:U.updateVariableDeclaration(ce,ce.name.kind===206?U.updateObjectBindingPattern(ce.name,ce.name.elements.filter(ne=>x.has(ne))):ce.name,ce.exclamationToken,ce.type,ce.initializer)))),!0))]}function pe(){return m.length>0||d.length>0||S.size>0||D.size>0||x.size>0||E.size>0}}function UNt(e,t,n,i){let s=eD(e,i,n),a=P9e(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:u};function u(m,d,S,E){let{fixes:x,computedWithoutCacheCount:D}=jV(m,d,S,!1,t,e,n,i,a,E),I=w9e(x,e,t,s,n,i);return I&&{...I,computedWithoutCacheCount:D}}}function VNt(e,t,n,i,s,a,u,m,d,S,E,x){let D;n?(D=O8(i,u,m,E,x).get(i.path,n),M.assertIsDefined(D,"Some exportInfo should match the specified exportMapKey")):(D=EG(em(t.name))?[qNt(e,s,t,m,u)]:k9e(i,e,s,t,a,m,u,E,x),M.assertIsDefined(D,"Some exportInfo should match the specified symbol / moduleSymbol"));let I=BV(i,m),R=gT(Ki(i,S)),L=M.checkDefined(C9e(i,D,m,S,R,I,u,E));return{moduleSpecifier:L.moduleSpecifier,codeAction:A9e(ESe({host:u,formatContext:d,preferences:E},i,s,L,!1,m,E))}}function JNt(e,t,n,i,s,a){let u=n.getCompilerOptions(),m=BW(bSe(e,n.getTypeChecker(),t,u)),d=L9e(e,t,m,n),S=m!==t.text;return d&&A9e(ESe({host:i,formatContext:s,preferences:a},e,m,d,S,n,a))}function C9e(e,t,n,i,s,a,u,m){let d=eD(e,m,u);return w9e(jV(t,i,s,a,n,e,u,m).fixes,e,n,d,u,m)}function A9e({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function k9e(e,t,n,i,s,a,u,m,d){let S=N9e(a,u);return O8(e,u,a,m,d).search(e.path,s,E=>E===n,E=>{if($u(E[0].symbol,S(E[0].isFromPackageJson))===t&&E.some(x=>x.moduleSymbol===i||x.symbol.parent===i))return E})}function qNt(e,t,n,i,s){var a,u;let m=S(i.getTypeChecker(),!1);if(m)return m;let d=(u=(a=s.getPackageJsonAutoImportProvider)==null?void 0:a.call(s))==null?void 0:u.getTypeChecker();return M.checkDefined(d&&S(d,!0),"Could not find symbol in specified module for code actions");function S(E,x){let D=hV(n,E);if(D&&$u(D.symbol,E)===e)return{symbol:D.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:D.exportKind,targetFlags:$u(e,E).flags,isFromPackageJson:x};let I=E.tryGetMemberInModuleExportsAndProperties(t,n);if(I&&$u(I,E)===e)return{symbol:I,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:$u(e,E).flags,isFromPackageJson:x}}}function jV(e,t,n,i,s,a,u,m,d=kv(a)?P9e(s.getTypeChecker(),a,s.getCompilerOptions()):void 0,S){let E=s.getTypeChecker(),x=d?To(e,d.getImportsForExportInfo):ve,D=t!==void 0&&zNt(x,t),I=GNt(x,n,E,s.getCompilerOptions());if(I)return{computedWithoutCacheCount:0,fixes:[...D?[D]:ve,I]};let{fixes:R,computedWithoutCacheCount:L=0}=$Nt(e,x,s,a,t,n,i,u,m,S);return{computedWithoutCacheCount:L,fixes:[...D?[D]:ve,...R]}}function zNt(e,t){return di(e,({declaration:n,importKind:i})=>{var s;if(i!==0)return;let a=WNt(n),u=a&&((s=Ow(n))==null?void 0:s.text);if(u)return{kind:0,namespacePrefix:a,usagePosition:t,moduleSpecifierKind:void 0,moduleSpecifier:u}})}function WNt(e){var t,n,i;switch(e.kind){case 260:return(t=ci(e.name,$e))==null?void 0:t.text;case 271:return e.name.text;case 351:case 272:return(i=ci((n=e.importClause)==null?void 0:n.namedBindings,Ry))==null?void 0:i.name.text;default:return M.assertNever(e)}}function dee(e,t,n,i,s,a){return e?n&&a.verbatimModuleSyntax&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(n))?2:1:4}function GNt(e,t,n,i){let s;for(let u of e){let m=a(u);if(!m)continue;let d=hw(m.importClauseOrBindingPattern);if(m.addAsTypeOnly!==4&&d||m.addAsTypeOnly===4&&!d)return m;s??(s=m)}return s;function a({declaration:u,importKind:m,symbol:d,targetFlags:S}){if(m===3||m===2||u.kind===271)return;if(u.kind===260)return(m===0||m===1)&&u.name.kind===206?{kind:2,importClauseOrBindingPattern:u.name,importKind:m,moduleSpecifierKind:void 0,moduleSpecifier:u.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:E}=u;if(!E||!Ia(u.moduleSpecifier))return;let{name:x,namedBindings:D}=E;if(E.isTypeOnly&&!(m===0&&D))return;let I=dee(t,!1,d,S,n,i);if(!(m===1&&(x||I===2&&D))&&!(m===0&&D?.kind===274))return{kind:2,importClauseOrBindingPattern:E,importKind:m,moduleSpecifierKind:void 0,moduleSpecifier:u.moduleSpecifier.text,addAsTypeOnly:I}}}function P9e(e,t,n){let i;for(let s of t.imports){let a=Rw(s);if(gR(a.parent)){let u=e.resolveExternalModuleName(s);u&&(i||(i=vd())).add(Po(u),a.parent)}else if(a.kind===272||a.kind===271||a.kind===351){let u=e.getSymbolAtLocation(s);u&&(i||(i=vd())).add(Po(u),a)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:a,targetFlags:u,symbol:m})=>{let d=i?.get(Po(s));if(!d||Pf(t)&&!(u&111551)&&!Oi(d,Kg))return ve;let S=mee(t,a,n);return d.map(E=>({declaration:E,importKind:S,symbol:m,targetFlags:u}))}}}function BV(e,t){if(!wy(e.fileName))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let n=t.getCompilerOptions();if(n.configFile)return J_(n)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!Pf(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function N9e(e,t){return Ih(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function HNt(e,t,n,i,s,a,u,m,d){let S=wy(t.fileName),E=e.getCompilerOptions(),x=ak(e,u),D=N9e(e,u),I=cf(E),R=GU(I),L=d?$=>IT.tryGetModuleSpecifiersFromCache($.moduleSymbol,t,x,m):($,q)=>IT.getModuleSpecifiersWithCacheInfo($.moduleSymbol,q,E,t,x,m,void 0,!0),F=0,J=To(a,($,q)=>{let ee=D($.isFromPackageJson),{computedWithoutCache:W,moduleSpecifiers:pe,kind:K}=L($,ee)??{},re=!!($.targetFlags&111551),ue=dee(i,!0,$.symbol,$.targetFlags,ee,E);return F+=W?1:0,Yi(pe,ce=>{if(R&&NT(ce))return;if(!re&&S&&n!==void 0)return{kind:1,moduleSpecifierKind:K,moduleSpecifier:ce,usagePosition:n,exportInfo:$,isReExport:q>0};let ne=mee(t,$.exportKind,E),le;if(n!==void 0&&ne===3&&$.exportKind===0){let me=ee.resolveExternalModuleSymbol($.moduleSymbol),de;me!==$.moduleSymbol&&(de=hZ(me,ee,E,!1,ec)),de||(de=b6($.moduleSymbol,Qo(E),!1)),le={namespacePrefix:de,usagePosition:n}}return{kind:3,moduleSpecifierKind:K,moduleSpecifier:ce,importKind:ne,useRequire:s,addAsTypeOnly:ue,exportInfo:$,isReExport:q>0,qualification:le}})});return{computedWithoutCacheCount:F,fixes:J}}function $Nt(e,t,n,i,s,a,u,m,d,S){let E=di(t,x=>YNt(x,a,u,n.getTypeChecker(),n.getCompilerOptions()));return E?{fixes:[E]}:HNt(n,i,s,a,u,e,m,d,S)}function YNt({declaration:e,importKind:t,symbol:n,targetFlags:i},s,a,u,m){var d;let S=(d=Ow(e))==null?void 0:d.text;if(S){let E=a?4:dee(s,!0,n,i,u,m);return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:S,importKind:t,addAsTypeOnly:E,useRequire:a}}}function D9e(e,t,n,i){let s=Ki(e.sourceFile,n),a;if(t===v._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)a=eDt(e,s);else if($e(s))if(t===v._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let m=BW(bSe(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),d=L9e(e.sourceFile,s,m,e.program);return d&&[{fix:d,symbolName:m,errorIdentifierText:s.text}]}else a=M9e(e,s,i);else return;let u=eD(e.sourceFile,e.preferences,e.host);return a&&I9e(a,e.sourceFile,e.program,u,e.host,e.preferences)}function I9e(e,t,n,i,s,a){let u=m=>rc(m,s.getCurrentDirectory(),Nv(s));return mo(e,(m,d)=>XS(!!m.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||tc(m.fix.kind,d.fix.kind)||O9e(m.fix,d.fix,t,n,a,i.allowsImportingSpecifier,u))}function KNt(e,t,n){let i=M9e(e,t,n),s=eD(e.sourceFile,e.preferences,e.host);return i&&I9e(i,e.sourceFile,e.program,s,e.host,e.preferences)}function w9e(e,t,n,i,s,a){if(Dt(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((u,m)=>O9e(m,u,t,n,a,i.allowsImportingSpecifier,d=>rc(d,s.getCurrentDirectory(),Nv(s)))===-1?m:u)}function O9e(e,t,n,i,s,a,u){return e.kind!==0&&t.kind!==0?XS(t.moduleSpecifierKind!=="node_modules"||a(t.moduleSpecifier),e.moduleSpecifierKind!=="node_modules"||a(e.moduleSpecifier))||XNt(e,t,s)||ZNt(e.moduleSpecifier,t.moduleSpecifier,n,i)||XS(R9e(e,n.path,u),R9e(t,n.path,u))||ZR(e.moduleSpecifier,t.moduleSpecifier):0}function XNt(e,t,n){return n.importModuleSpecifierPreference==="non-relative"||n.importModuleSpecifierPreference==="project-relative"?XS(e.moduleSpecifierKind==="relative",t.moduleSpecifierKind==="relative"):0}function R9e(e,t,n){var i;if(e.isReExport&&((i=e.exportInfo)!=null&&i.moduleFileName)&&QNt(e.exportInfo.moduleFileName)){let s=n(yi(e.exportInfo.moduleFileName));return fs(t,s)}return!1}function QNt(e){return Ul(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function ZNt(e,t,n,i){return fs(e,"node:")&&!fs(t,"node:")?pV(n,i)?-1:1:fs(t,"node:")&&!fs(e,"node:")?pV(n,i)?1:-1:0}function eDt({sourceFile:e,program:t,host:n,preferences:i},s){let a=t.getTypeChecker(),u=tDt(s,a);if(!u)return;let m=a.getAliasedSymbol(u),d=u.name,S=[{symbol:u,moduleSymbol:m,moduleFileName:void 0,exportKind:3,targetFlags:m.flags,isFromPackageJson:!1}],E=BV(e,t);return jV(S,void 0,!1,E,t,e,n,i).fixes.map(D=>{var I;return{fix:D,symbolName:d,errorIdentifierText:(I=ci(s,$e))==null?void 0:I.text}})}function tDt(e,t){let n=$e(e)?t.getSymbolAtLocation(e):void 0;if(H9(n))return n;let{parent:i}=e;if(p_(i)&&i.tagName===e||_2(i)){let s=t.resolveName(t.getJsxNamespace(i),p_(i)?e:i,111551,!1);if(H9(s))return s}}function mee(e,t,n,i){if(n.verbatimModuleSyntax&&(J_(n)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return sDt(e,n,!!i);case 3:return rDt(e,n,!!i);default:return M.assertNever(t)}}function rDt(e,t,n){if(TA(t))return 1;let i=J_(t);switch(i){case 2:case 1:case 3:return wy(e.fileName)&&(e.externalModuleIndicator||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return M.assertNever(i,`Unexpected moduleKind ${i}`)}}function M9e({sourceFile:e,program:t,cancellationToken:n,host:i,preferences:s},a,u){let m=t.getTypeChecker(),d=t.getCompilerOptions();return To(bSe(e,m,a,d),S=>{if(S==="default")return;let E=gT(a),x=BV(e,t),D=iDt(S,YP(a),S2(a),n,e,t,u,i,s);return Os(p3(D.values(),I=>jV(I,a.getStart(e),E,x,t,e,i,s).fixes),I=>({fix:I,symbolName:S,errorIdentifierText:a.text,isJsxNamespaceFix:S!==a.text}))})}function L9e(e,t,n,i){let s=i.getTypeChecker(),a=s.resolveName(n,t,111551,!0);if(!a)return;let u=s.getTypeOnlyAliasDeclaration(a);if(!(!u||Jr(u)!==e))return{kind:4,typeOnlyAliasDeclaration:u}}function bSe(e,t,n,i){let s=n.parent;if((p_(s)||yE(s))&&s.tagName===n&&fZ(i.jsx)){let a=t.getJsxNamespace(e);if(nDt(a,n,t))return!iN(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,a]:[a]}return[n.text]}function nDt(e,t,n){if(iN(t.text))return!0;let i=n.resolveName(e,t,111551,!0);return!i||Dt(i.declarations,iT)&&!(i.flags&111551)}function iDt(e,t,n,i,s,a,u,m,d){var S;let E=vd(),x=eD(s,d,m),D=(S=m.getModuleSpecifierCache)==null?void 0:S.call(m),I=Ih(L=>ak(L?m.getPackageJsonAutoImportProvider():a,m));function R(L,F,J,$,q,ee){let W=I(ee);if(F&&mZ(q,s,F,d,x,W,D)||!F&&x.allowsImportingAmbientModule(L,W)){let pe=q.getTypeChecker();E.add(G0e(J,pe).toString(),{symbol:J,moduleSymbol:L,moduleFileName:F?.fileName,exportKind:$,targetFlags:$u(J,pe).flags,isFromPackageJson:ee})}}return gZ(a,m,d,u,(L,F,J,$)=>{let q=J.getTypeChecker();i.throwIfCancellationRequested();let ee=J.getCompilerOptions(),W=hV(L,q);W&&z9e(q.getSymbolFlags(W.symbol),n)&&hZ(W.symbol,q,ee,t,K=>K===e)&&R(L,F,W.symbol,W.exportKind,J,$);let pe=q.tryGetMemberInModuleExportsAndProperties(e,L);pe&&z9e(q.getSymbolFlags(pe),n)&&R(L,F,pe,0,J,$)}),E}function sDt(e,t,n){let i=TA(t),s=wy(e.fileName);if(!s&&J_(t)>=5)return i?1:2;if(s)return e.externalModuleIndicator||n?i?1:2:3;for(let a of e.statements??ve)if(nu(a)&&!Gc(a.moduleReference))return 3;return i?1:3}function ESe(e,t,n,i,s,a,u){let m,d=bn.ChangeTracker.with(e,S=>{m=oDt(S,t,n,i,s,a,u)});return ro(T9e,d,m,b9e,v.Add_all_missing_imports)}function oDt(e,t,n,i,s,a,u){let m=td(t,u);switch(i.kind){case 0:return xSe(e,t,i),[v.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return B9e(e,t,i,m),[v.Change_0_to_1,n,U9e(i.moduleSpecifier,m)+n];case 2:{let{importClauseOrBindingPattern:d,importKind:S,addAsTypeOnly:E,moduleSpecifier:x}=i;j9e(e,t,d,S===1?{name:n,addAsTypeOnly:E}:void 0,S===0?[{name:n,addAsTypeOnly:E}]:ve,void 0,u);let D=em(x);return s?[v.Import_0_from_1,n,D]:[v.Update_import_from_0,D]}case 3:{let{importKind:d,moduleSpecifier:S,addAsTypeOnly:E,useRequire:x,qualification:D}=i,I=x?J9e:V9e,R=d===1?{name:n,addAsTypeOnly:E}:void 0,L=d===0?[{name:n,addAsTypeOnly:E}]:void 0,F=d===2||d===3?{importKind:d,name:D?.namespacePrefix||n,addAsTypeOnly:E}:void 0;return VQ(e,t,I(S,m,R,L,F,a.getCompilerOptions(),u),!0,u),D&&xSe(e,t,D),s?[v.Import_0_from_1,n,S]:[v.Add_import_from_0,S]}case 4:{let{typeOnlyAliasDeclaration:d}=i,S=aDt(e,d,a,t,u);return S.kind===276?[v.Remove_type_from_import_of_0_from_1,n,F9e(S.parent.parent)]:[v.Remove_type_from_import_declaration_from_0,F9e(S)]}default:return M.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function F9e(e){var t,n;return e.kind===271?((n=ci((t=ci(e.moduleReference,A0))==null?void 0:t.expression,Ia))==null?void 0:n.text)||e.moduleReference.getText():ao(e.parent.moduleSpecifier,jo).text}function aDt(e,t,n,i,s){let a=n.getCompilerOptions(),u=a.verbatimModuleSyntax;switch(t.kind){case 276:if(t.isTypeOnly){if(t.parent.elements.length>1){let d=U.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:S}=UT.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,s,i),E=UT.getImportSpecifierInsertionIndex(t.parent.elements,d,S);if(E!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,d,t.parent,E),t}return e.deleteRange(i,{pos:aT(t.getFirstToken()),end:aT(t.propertyName??t.name)}),t}else return M.assert(t.parent.parent.isTypeOnly),m(t.parent.parent),t.parent.parent;case 273:return m(t),t;case 274:return m(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:M.failBadSyntaxKind(t)}function m(d){var S;if(e.delete(i,JQ(d,i)),!a.allowImportingTsExtensions){let E=Ow(d.parent),x=E&&((S=n.getResolvedModuleFromModuleSpecifier(E,i))==null?void 0:S.resolvedModule);if(x?.resolvedUsingTsExtension){let D=A3(E.text,WB(E.text,a));e.replaceNode(i,E,U.createStringLiteral(D))}}if(u){let E=ci(d.namedBindings,Hg);if(E&&E.elements.length>1){UT.getNamedImportSpecifierComparerWithDetection(d.parent,s,i).isSorted!==!1&&t.kind===276&&E.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,E,0));for(let D of E.elements)D!==t&&!D.isTypeOnly&&e.insertModifierBefore(i,156,D)}}}}function j9e(e,t,n,i,s,a,u){var m;if(n.kind===206){if(a&&n.elements.some(x=>a.has(x))){e.replaceNode(t,n,U.createObjectBindingPattern([...n.elements.filter(x=>!a.has(x)),...i?[U.createBindingElement(void 0,"default",i.name)]:ve,...s.map(x=>U.createBindingElement(void 0,void 0,x.name))]));return}i&&E(n,i.name,"default");for(let x of s)E(n,x.name,void 0);return}let d=n.isTypeOnly&&Dt([i,...s],x=>x?.addAsTypeOnly===4),S=n.namedBindings&&((m=ci(n.namedBindings,Hg))==null?void 0:m.elements);if(i&&(M.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),U.createIdentifier(i.name),{suffix:", "})),s.length){let{specifierComparer:x,isSorted:D}=UT.getNamedImportSpecifierComparerWithDetection(n.parent,u,t),I=Zs(s.map(R=>U.createImportSpecifier((!n.isTypeOnly||d)&&gee(R,u),void 0,U.createIdentifier(R.name))),x);if(a)e.replaceNode(t,n.namedBindings,U.updateNamedImports(n.namedBindings,Zs([...S.filter(R=>!a.has(R)),...I],x)));else if(S?.length&&D!==!1){let R=d&&S?U.updateNamedImports(n.namedBindings,js(S,L=>U.updateImportSpecifier(L,!0,L.propertyName,L.name))).elements:S;for(let L of I){let F=UT.getImportSpecifierInsertionIndex(R,L,x);e.insertImportSpecifierAtIndex(t,L,n.namedBindings,F)}}else if(S?.length)for(let R of I)e.insertNodeInListAfter(t,qo(S),R,S);else if(I.length){let R=U.createNamedImports(I);n.namedBindings?e.replaceNode(t,n.namedBindings,R):e.insertNodeAfter(t,M.checkDefined(n.name,"Import clause must have either named imports or a default import"),R)}}if(d&&(e.delete(t,JQ(n,t)),S))for(let x of S)e.insertModifierBefore(t,156,x);function E(x,D,I){let R=U.createBindingElement(void 0,I,D);x.elements.length?e.insertNodeInListAfter(t,qo(x.elements),R):e.replaceNode(t,x,U.createObjectBindingPattern([R]))}}function xSe(e,t,{namespacePrefix:n,usagePosition:i}){e.insertText(t,i,n+".")}function B9e(e,t,{moduleSpecifier:n,usagePosition:i},s){e.insertText(t,i,U9e(n,s))}function U9e(e,t){let n=BQ(t);return`import(${n}${e}${n}).`}function CSe({addAsTypeOnly:e}){return e===2}function gee(e,t){return CSe(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function V9e(e,t,n,i,s,a,u){let m=m6(e,t),d;if(n!==void 0||i?.length){let S=(!n||CSe(n))&&Oi(i,CSe)||(a.verbatimModuleSyntax||u.preferTypeOnlyAutoImports)&&n?.addAsTypeOnly!==4&&!Dt(i,E=>E.addAsTypeOnly===4);d=Ss(d,uS(n&&U.createIdentifier(n.name),i?.map(E=>U.createImportSpecifier(!S&&gee(E,u),void 0,U.createIdentifier(E.name))),e,t,S))}if(s){let S=s.importKind===3?U.createImportEqualsDeclaration(void 0,gee(s,u),U.createIdentifier(s.name),U.createExternalModuleReference(m)):U.createImportDeclaration(void 0,U.createImportClause(gee(s,u),void 0,U.createNamespaceImport(U.createIdentifier(s.name))),m,void 0);d=Ss(d,S)}return M.checkDefined(d)}function J9e(e,t,n,i,s){let a=m6(e,t),u;if(n||i?.length){let m=i?.map(({name:S})=>U.createBindingElement(void 0,void 0,S))||[];n&&m.unshift(U.createBindingElement(void 0,"default",n.name));let d=q9e(U.createObjectBindingPattern(m),a);u=Ss(u,d)}if(s){let m=q9e(s.name,a);u=Ss(u,m)}return M.checkDefined(u)}function q9e(e,t){return U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(typeof e=="string"?U.createIdentifier(e):e,void 0,void 0,U.createCallExpression(U.createIdentifier("require"),void 0,[t]))],2))}function z9e(e,t){return t===7?!0:t&1?!!(e&111551):t&2?!!(e&788968):t&4?!!(e&1920):!1}var ASe="addMissingConstraint",W9e=[v.Type_0_is_not_comparable_to_type_1.code,v.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,v.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,v.Type_0_is_not_assignable_to_type_1.code,v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,v.Property_0_is_incompatible_with_index_signature.code,v.Property_0_in_type_1_is_not_assignable_to_type_2.code,v.Type_0_does_not_satisfy_the_constraint_1.code];xo({errorCodes:W9e,getCodeActions(e){let{sourceFile:t,span:n,program:i,preferences:s,host:a}=e,u=G9e(i,t,n);if(u===void 0)return;let m=bn.ChangeTracker.with(e,d=>H9e(d,i,s,a,t,u));return[ro(ASe,m,v.Add_extends_constraint,ASe,v.Add_extends_constraint_to_all_type_parameters)]},fixIds:[ASe],getAllCodeActions:e=>{let{program:t,preferences:n,host:i}=e,s=new Map;return fk(bn.ChangeTracker.with(e,a=>{pk(e,W9e,u=>{let m=G9e(t,u.file,Gu(u.start,u.length));if(m&&tm(s,Sa(m.declaration)))return H9e(a,t,n,i,u.file,m)})}))}});function G9e(e,t,n){let i=jn(e.getSemanticDiagnostics(t),u=>u.start===n.start&&u.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=jn(i.relatedInformation,u=>u.code===v.This_type_parameter_might_need_an_extends_0_constraint.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let a=vTe(s.file,Gu(s.start,s.length));if(a!==void 0&&($e(a)&&Cc(a.parent)&&(a=a.parent),Cc(a))){if(a2(a.parent))return;let u=Ki(t,n.start),m=e.getTypeChecker();return{constraint:lDt(m,u)||cDt(s.messageText),declaration:a,token:u}}}function H9e(e,t,n,i,s,a){let{declaration:u,constraint:m}=a,d=t.getTypeChecker();if(bs(m))e.insertText(s,u.name.end,` extends ${m}`);else{let S=Qo(t.getCompilerOptions()),E=aD({program:t,host:i}),x=LE(s,t,n,i),D=JV(d,x,m,void 0,S,void 0,E);D&&(e.replaceNode(s,u,U.updateTypeParameterDeclaration(u,void 0,u.name,D,u.default)),x.writeFixes(e))}}function cDt(e){let[,t]=Qg(e,`
`,0).match(/`extends (.*)`/)||[];return t}function lDt(e,t){return wi(t.parent)?e.getTypeArgumentConstraint(t.parent):(Pt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var $9e="fixOverrideModifier",G8="fixAddOverrideModifier",UV="fixRemoveOverrideModifier",Y9e=[v.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,v.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,v.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,v.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,v.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,v.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,v.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],K9e={[v.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:v.Add_override_modifier,fixId:G8,fixAllDescriptions:v.Add_all_missing_override_modifiers},[v.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:v.Add_override_modifier,fixId:G8,fixAllDescriptions:v.Add_all_missing_override_modifiers},[v.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:v.Remove_override_modifier,fixId:UV,fixAllDescriptions:v.Remove_all_unnecessary_override_modifiers},[v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:v.Remove_override_modifier,fixId:UV,fixAllDescriptions:v.Remove_override_modifier},[v.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:v.Add_override_modifier,fixId:G8,fixAllDescriptions:v.Add_all_missing_override_modifiers},[v.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:v.Add_override_modifier,fixId:G8,fixAllDescriptions:v.Add_all_missing_override_modifiers},[v.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:v.Add_override_modifier,fixId:G8,fixAllDescriptions:v.Remove_all_unnecessary_override_modifiers},[v.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:v.Remove_override_modifier,fixId:UV,fixAllDescriptions:v.Remove_all_unnecessary_override_modifiers},[v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:v.Remove_override_modifier,fixId:UV,fixAllDescriptions:v.Remove_all_unnecessary_override_modifiers}};xo({errorCodes:Y9e,getCodeActions:function(t){let{errorCode:n,span:i}=t,s=K9e[n];if(!s)return ve;let{descriptions:a,fixId:u,fixAllDescriptions:m}=s,d=bn.ChangeTracker.with(t,S=>X9e(S,t,n,i.start));return[$1e($9e,d,a,u,m)]},fixIds:[$9e,G8,UV],getAllCodeActions:e=>La(e,Y9e,(t,n)=>{let{code:i,start:s}=n,a=K9e[i];!a||a.fixId!==e.fixId||X9e(t,e,i,s)})});function X9e(e,t,n,i){switch(n){case v.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case v.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case v.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case v.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case v.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return uDt(e,t.sourceFile,i);case v.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case v.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return _Dt(e,t.sourceFile,i);default:M.fail("Unexpected error code: "+n)}}function uDt(e,t,n){let i=Z9e(t,n);if(Pf(t)){e.addJSDocTags(t,i,[U.createJSDocOverrideTag(U.createIdentifier("override"))]);return}let s=i.modifiers||ve,a=jn(s,MA),u=jn(s,Ude),m=jn(s,x=>PQ(x.kind)),d=xm(s,pu),S=u?u.end:a?a.end:m?m.end:d?zo(t.text,d.end):i.getStart(t),E=m||a||u?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,S,164,E)}function _Dt(e,t,n){let i=Z9e(t,n);if(Pf(t)){e.filterJSDocTags(t,i,u5(Hj));return}let s=jn(i.modifiers,Vde);M.assertIsDefined(s),e.deleteModifier(t,s)}function Q9e(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return cp(e,e.parent);default:return!1}}function Z9e(e,t){let n=Ki(e,t),i=Dr(n,s=>vi(s)?"quit":Q9e(s));return M.assert(i&&Q9e(i)),i}var kSe="fixNoPropertyAccessFromIndexSignature",eje=[v.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];xo({errorCodes:eje,fixIds:[kSe],getCodeActions(e){let{sourceFile:t,span:n,preferences:i}=e,s=rje(t,n.start),a=bn.ChangeTracker.with(e,u=>tje(u,e.sourceFile,s,i));return[ro(kSe,a,[v.Use_element_access_for_0,s.name.text],kSe,v.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>La(e,eje,(t,n)=>tje(t,n.file,rje(n.file,n.start),e.preferences))});function tje(e,t,n,i){let s=td(t,i),a=U.createStringLiteral(n.name.text,s===0);e.replaceNode(t,n,O5(n)?U.createElementAccessChain(n.expression,n.questionDotToken,a):U.createElementAccessExpression(n.expression,a))}function rje(e,t){return ao(Ki(e,t).parent,Hn)}var PSe="fixImplicitThis",nje=[v.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];xo({errorCodes:nje,getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,a,u=bn.ChangeTracker.with(t,m=>{a=ije(m,n,s.start,i.getTypeChecker())});return a?[ro(PSe,u,a,PSe,v.Fix_all_implicit_this_errors)]:ve},fixIds:[PSe],getAllCodeActions:e=>La(e,nje,(t,n)=>{ije(t,n.file,n.start,e.program.getTypeChecker())})});function ije(e,t,n,i){let s=Ki(t,n);if(!HN(s))return;let a=of(s,!1,!1);if(!(!El(a)&&!ic(a))&&!qi(of(a,!1,!1))){let u=M.checkDefined(Ma(a,100,t)),{name:m}=a,d=M.checkDefined(a.body);return ic(a)?m&&lc.Core.isSymbolReferencedInFile(m,i,t,d)?void 0:(e.delete(t,u),m&&e.delete(t,m),e.insertText(t,d.pos," =>"),[v.Convert_function_expression_0_to_arrow_function,m?m.text:nZ]):(e.replaceNode(t,u,U.createToken(87)),e.insertText(t,m.end," = "),e.insertText(t,d.pos," =>"),[v.Convert_function_declaration_0_to_arrow_function,m.text])}}var NSe="fixImportNonExportedMember",sje=[v.Module_0_declares_1_locally_but_it_is_not_exported.code];xo({errorCodes:sje,fixIds:[NSe],getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=oje(t,n.start,i);if(s===void 0)return;let a=bn.ChangeTracker.with(e,u=>fDt(u,i,s));return[ro(NSe,a,[v.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],NSe,v.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return fk(bn.ChangeTracker.with(e,n=>{let i=new Map;pk(e,sje,s=>{let a=oje(s.file,s.start,t);if(a===void 0)return;let{exportName:u,node:m,moduleSourceFile:d}=a;if(hee(d,u.isTypeOnly)===void 0&&rM(m))n.insertExportModifier(d,m);else{let S=i.get(d)||{typeOnlyExports:[],exports:[]};u.isTypeOnly?S.typeOnlyExports.push(u):S.exports.push(u),i.set(d,S)}}),i.forEach((s,a)=>{let u=hee(a,!0);u&&u.isTypeOnly?(DSe(n,t,a,s.typeOnlyExports,u),DSe(n,t,a,s.exports,hee(a,!1))):DSe(n,t,a,[...s.exports,...s.typeOnlyExports],u)})}))}});function oje(e,t,n){var i,s;let a=Ki(e,t);if($e(a)){let u=Dr(a,Yc);if(u===void 0)return;let m=jo(u.moduleSpecifier)?u.moduleSpecifier:void 0;if(m===void 0)return;let d=(i=n.getResolvedModuleFromModuleSpecifier(m,e))==null?void 0:i.resolvedModule;if(d===void 0)return;let S=n.getSourceFile(d.resolvedFileName);if(S===void 0||tD(n,S))return;let E=S.symbol,x=(s=ci(E.valueDeclaration,Mh))==null?void 0:s.locals;if(x===void 0)return;let D=x.get(a.escapedText);if(D===void 0)return;let I=pDt(D);return I===void 0?void 0:{exportName:{node:a,isTypeOnly:xA(I)},node:I,moduleSourceFile:S,moduleSpecifier:m.text}}}function fDt(e,t,{exportName:n,node:i,moduleSourceFile:s}){let a=hee(s,n.isTypeOnly);a?aje(e,t,s,a,[n]):rM(i)?e.insertExportModifier(s,i):cje(e,t,s,[n])}function DSe(e,t,n,i,s){kt(i)&&(s?aje(e,t,n,s,i):cje(e,t,n,i))}function hee(e,t){let n=i=>Cl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return xm(e.statements,n)}function aje(e,t,n,i,s){let a=i.exportClause&&Pd(i.exportClause)?i.exportClause.elements:U.createNodeArray([]),u=!i.isTypeOnly&&!!(Ad(t.getCompilerOptions())||jn(a,m=>m.isTypeOnly));e.replaceNode(n,i,U.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,U.createNamedExports(U.createNodeArray([...a,...lje(s,u)],a.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function cje(e,t,n,i){e.insertNodeAtEndOfScope(n,n,U.createExportDeclaration(void 0,!1,U.createNamedExports(lje(i,Ad(t.getCompilerOptions()))),void 0,void 0))}function lje(e,t){return U.createNodeArray(kr(e,n=>U.createExportSpecifier(t&&n.isTypeOnly,void 0,n.node)))}function pDt(e){if(e.valueDeclaration===void 0)return Aa(e.declarations);let t=e.valueDeclaration,n=Ci(t)?ci(t.parent.parent,fl):void 0;return n&&kt(n.declarationList.declarations)===1?n:t}var ISe="fixIncorrectNamedTupleSyntax",dDt=[v.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,v.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code];xo({errorCodes:dDt,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=mDt(n,i.start),a=bn.ChangeTracker.with(t,u=>gDt(u,n,s));return[ro(ISe,a,v.Move_labeled_tuple_element_modifiers_to_labels,ISe,v.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[ISe]});function mDt(e,t){let n=Ki(e,t);return Dr(n,i=>i.kind===202)}function gDt(e,t,n){if(!n)return;let i=n.type,s=!1,a=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?s=!0:i.kind===191&&(a=!0),i=i.type;let u=U.updateNamedTupleMember(n,n.dotDotDotToken||(a?U.createToken(26):void 0),n.name,n.questionToken||(s?U.createToken(58):void 0),i);u!==n&&e.replaceNode(t,n,u)}var uje="fixSpelling",_je=[v.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,v.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,v.Cannot_find_name_0_Did_you_mean_1.code,v.Could_not_find_name_0_Did_you_mean_1.code,v.Cannot_find_namespace_0_Did_you_mean_1.code,v.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,v.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,v._0_has_no_exported_member_named_1_Did_you_mean_2.code,v.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,v.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,v.No_overload_matches_this_call.code,v.Type_0_is_not_assignable_to_type_1.code];xo({errorCodes:_je,getCodeActions(e){let{sourceFile:t,errorCode:n}=e,i=fje(t,e.span.start,e,n);if(!i)return;let{node:s,suggestedSymbol:a}=i,u=Qo(e.host.getCompilationSettings()),m=bn.ChangeTracker.with(e,d=>pje(d,t,s,a,u));return[ro("spelling",m,[v.Change_spelling_to_0,Qc(a)],uje,v.Fix_all_detected_spelling_errors)]},fixIds:[uje],getAllCodeActions:e=>La(e,_je,(t,n)=>{let i=fje(n.file,n.start,e,n.code),s=Qo(e.host.getCompilationSettings());i&&pje(t,e.sourceFile,i.node,i.suggestedSymbol,s)})});function fje(e,t,n,i){let s=Ki(e,t),a=s.parent;if((i===v.No_overload_matches_this_call.code||i===v.Type_0_is_not_assignable_to_type_1.code)&&!Yg(a))return;let u=n.program.getTypeChecker(),m;if(Hn(a)&&a.name===s){M.assert(xy(s),"Expected an identifier for spelling (property access)");let d=u.getTypeAtLocation(a.expression);a.flags&64&&(d=u.getNonNullableType(d)),m=u.getSuggestedSymbolForNonexistentProperty(s,d)}else if(Dn(a)&&a.operatorToken.kind===103&&a.left===s&&es(s)){let d=u.getTypeAtLocation(a.right);m=u.getSuggestedSymbolForNonexistentProperty(s,d)}else if(uf(a)&&a.right===s){let d=u.getSymbolAtLocation(a.left);d&&d.flags&1536&&(m=u.getSuggestedSymbolForNonexistentModule(a.right,d))}else if(pf(a)&&a.name===s){M.assertNode(s,$e,"Expected an identifier for spelling (import)");let d=Dr(s,Yc),S=yDt(n,d,e);S&&S.symbol&&(m=u.getSuggestedSymbolForNonexistentModule(s,S.symbol))}else if(Yg(a)&&a.name===s){M.assertNode(s,$e,"Expected an identifier for JSX attribute");let d=Dr(s,p_),S=u.getContextualTypeForArgumentAtIndex(d,0);m=u.getSuggestedSymbolForNonexistentJSXAttribute(s,S)}else if(B9(a)&&_u(a)&&a.name===s){let d=Dr(s,vi),S=d?Lg(d):void 0,E=S?u.getTypeAtLocation(S):void 0;E&&(m=u.getSuggestedSymbolForNonexistentClassMember(Hc(s),E))}else{let d=S2(s),S=Hc(s);M.assert(S!==void 0,"name should be defined"),m=u.getSuggestedSymbolForNonexistentSymbol(s,S,hDt(d))}return m===void 0?void 0:{node:s,suggestedSymbol:m}}function pje(e,t,n,i,s){let a=Qc(i);if(!ap(a,s)&&Hn(n.parent)){let u=i.valueDeclaration;u&&Hu(u)&&es(u.name)?e.replaceNode(t,n,U.createIdentifier(a)):e.replaceNode(t,n.parent,U.createElementAccessExpression(n.parent.expression,U.createStringLiteral(a)))}else e.replaceNode(t,n,U.createIdentifier(a))}function hDt(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function yDt(e,t,n){var i;if(!t||!Ia(t.moduleSpecifier))return;let s=(i=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier,n))==null?void 0:i.resolvedModule;if(s)return e.program.getSourceFile(s.resolvedFileName)}var wSe="returnValueCorrect",OSe="fixAddReturnStatement",RSe="fixRemoveBracesFromArrowFunctionBody",MSe="fixWrapTheBlockWithParen",dje=[v.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,v.Type_0_is_not_assignable_to_type_1.code,v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];xo({errorCodes:dje,fixIds:[OSe,RSe,MSe],getCodeActions:function(t){let{program:n,sourceFile:i,span:{start:s},errorCode:a}=t,u=gje(n.getTypeChecker(),i,s,a);if(u)return u.kind===0?Ut([SDt(t,u.expression,u.statement)],fc(u.declaration)?TDt(t,u.declaration,u.expression,u.commentSource):void 0):[bDt(t,u.declaration,u.expression)]},getAllCodeActions:e=>La(e,dje,(t,n)=>{let i=gje(e.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(e.fixId){case OSe:hje(t,n.file,i.expression,i.statement);break;case RSe:if(!fc(i.declaration))return;yje(t,n.file,i.declaration,i.expression,i.commentSource,!1);break;case MSe:if(!fc(i.declaration))return;vje(t,n.file,i.declaration,i.expression);break;default:M.fail(JSON.stringify(e.fixId))}})});function mje(e,t,n){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(n);let s=po([i]);return e.createAnonymousType(void 0,s,[],[],[])}function LSe(e,t,n,i){if(!t.body||!Js(t.body)||kt(t.body.statements)!==1)return;let s=Fo(t.body.statements);if(wu(s)&&FSe(e,t,e.getTypeAtLocation(s.expression),n,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(rS(s)&&wu(s.statement)){let a=U.createObjectLiteralExpression([U.createPropertyAssignment(s.label,s.statement.expression)]),u=mje(e,s.label,s.statement.expression);if(FSe(e,t,u,n,i))return fc(t)?{declaration:t,kind:1,expression:a,statement:s,commentSource:s.statement.expression}:{declaration:t,kind:0,expression:a,statement:s,commentSource:s.statement.expression}}else if(Js(s)&&kt(s.statements)===1){let a=Fo(s.statements);if(rS(a)&&wu(a.statement)){let u=U.createObjectLiteralExpression([U.createPropertyAssignment(a.label,a.statement.expression)]),m=mje(e,a.label,a.statement.expression);if(FSe(e,t,m,n,i))return{declaration:t,kind:0,expression:u,statement:s,commentSource:a}}}}function FSe(e,t,n,i,s){if(s){let a=e.getSignatureFromDeclaration(t);if(a){_i(t,1024)&&(n=e.createPromiseType(n));let u=e.createSignature(t,a.typeParameters,a.thisParameter,a.parameters,n,void 0,a.minArgumentCount,a.flags);n=e.createAnonymousType(void 0,po(),[u],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,i)}function gje(e,t,n,i){let s=Ki(t,n);if(!s.parent)return;let a=Dr(s.parent,$a);switch(i){case v.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!a||!a.body||!a.type||!ed(a.type,s)?void 0:LSe(e,a,e.getTypeFromTypeNode(a.type),!1);case v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!a||!to(a.parent)||!a.body)return;let u=a.parent.arguments.indexOf(a);if(u===-1)return;let m=e.getContextualTypeForArgumentAtIndex(a.parent,u);return m?LSe(e,a,m,!0):void 0;case v.Type_0_is_not_assignable_to_type_1.code:if(!Bh(s)||!nA(s.parent)&&!Yg(s.parent))return;let d=vDt(s.parent);return!d||!$a(d)||!d.body?void 0:LSe(e,d,e.getTypeAtLocation(s.parent),!0)}}function vDt(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(NO(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}function hje(e,t,n,i){yp(n);let s=P8(t);e.replaceNode(t,i,U.createReturnStatement(n),{leadingTriviaOption:bn.LeadingTriviaOption.Exclude,trailingTriviaOption:bn.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function yje(e,t,n,i,s,a){let u=a||ZU(i)?U.createParenthesizedExpression(i):i;yp(s),b2(s,u),e.replaceNode(t,n.body,u)}function vje(e,t,n,i){e.replaceNode(t,n.body,U.createParenthesizedExpression(i))}function SDt(e,t,n){let i=bn.ChangeTracker.with(e,s=>hje(s,e.sourceFile,t,n));return ro(wSe,i,v.Add_a_return_statement,OSe,v.Add_all_missing_return_statement)}function TDt(e,t,n,i){let s=bn.ChangeTracker.with(e,a=>yje(a,e.sourceFile,t,n,i,!1));return ro(wSe,s,v.Remove_braces_from_arrow_function_body,RSe,v.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function bDt(e,t,n){let i=bn.ChangeTracker.with(e,s=>vje(s,e.sourceFile,t,n));return ro(wSe,i,v.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,MSe,v.Wrap_all_object_literal_with_parentheses)}var jT="fixMissingMember",yee="fixMissingProperties",vee="fixMissingAttributes",See="fixMissingFunctionDeclaration",Sje=[v.Property_0_does_not_exist_on_type_1.code,v.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,v.Property_0_is_missing_in_type_1_but_required_in_type_2.code,v.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,v.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,v.Cannot_find_name_0.code];xo({errorCodes:Sje,getCodeActions(e){let t=e.program.getTypeChecker(),n=Tje(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(n.kind===3){let i=bn.ChangeTracker.with(e,s=>Ije(s,e,n));return[ro(yee,i,v.Add_missing_properties,yee,v.Add_all_missing_properties)]}if(n.kind===4){let i=bn.ChangeTracker.with(e,s=>Dje(s,e,n));return[ro(vee,i,v.Add_missing_attributes,vee,v.Add_all_missing_attributes)]}if(n.kind===2||n.kind===5){let i=bn.ChangeTracker.with(e,s=>Nje(s,e,n));return[ro(See,i,[v.Add_missing_function_declaration_0,n.token.text],See,v.Add_all_missing_function_declarations)]}if(n.kind===1){let i=bn.ChangeTracker.with(e,s=>Pje(s,e.program.getTypeChecker(),n));return[ro(jT,i,[v.Add_missing_enum_member_0,n.token.text],jT,v.Add_all_missing_members)]}return ds(kDt(e,n),EDt(e,n))}},fixIds:[jT,See,yee,vee],getAllCodeActions:e=>{let{program:t,fixId:n}=e,i=t.getTypeChecker(),s=new Map,a=new Map;return fk(bn.ChangeTracker.with(e,u=>{pk(e,Sje,m=>{let d=Tje(m.file,m.start,m.code,i,e.program);if(!(!d||!tm(s,Sa(d.parentDeclaration)+"#"+(d.kind===3?d.identifier:d.token.text)))){if(n===See&&(d.kind===2||d.kind===5))Nje(u,e,d);else if(n===yee&&d.kind===3)Ije(u,e,d);else if(n===vee&&d.kind===4)Dje(u,e,d);else if(d.kind===1&&Pje(u,i,d),d.kind===0){let{parentDeclaration:S,token:E}=d,x=mv(a,S,()=>[]);x.some(D=>D.token.text===E.text)||x.push(d)}}}),a.forEach((m,d)=>{let S=_f(d)?void 0:STe(d,i);for(let E of m){if(S?.some(J=>{let $=a.get(J);return!!$&&$.some(({token:q})=>q.text===E.token.text)}))continue;let{parentDeclaration:x,declSourceFile:D,modifierFlags:I,token:R,call:L,isJSFile:F}=E;if(L&&!es(R))kje(e,u,L,R,I&256,x,D);else if(F&&!Xu(x)&&!_f(x))bje(u,D,x,R,!!(I&256));else{let J=xje(i,x,R);Cje(u,D,x,R.text,J,I&256)}}})}))}});function Tje(e,t,n,i,s){var a;let u=Ki(e,t),m=u.parent;if(n===v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(u.kind===19&&ko(m)&&to(m.parent)))return;let I=Va(m.parent.arguments,J=>J===m);if(I<0)return;let R=i.getResolvedSignature(m.parent);if(!(R&&R.declaration&&R.parameters[I]))return;let L=R.parameters[I].valueDeclaration;if(!(L&&is(L)&&$e(L.name)))return;let F=Os(i.getUnmatchedProperties(i.getTypeAtLocation(m),i.getParameterType(R,I),!1,!1));return kt(F)?{kind:3,token:L.name,identifier:L.name.text,properties:F,parentDeclaration:m}:void 0}if(u.kind===19&&ko(m)){let I=i.getContextualType(m)||i.getTypeAtLocation(m),R=Os(i.getUnmatchedProperties(i.getTypeAtLocation(m),I,!1,!1));return kt(R)?{kind:3,token:m,identifier:"",properties:R,parentDeclaration:m}:void 0}if(!xy(u))return;if($e(u)&&bv(m)&&m.initializer&&ko(m.initializer)){let I=i.getContextualType(u)||i.getTypeAtLocation(u),R=Os(i.getUnmatchedProperties(i.getTypeAtLocation(m.initializer),I,!1,!1));return kt(R)?{kind:3,token:u,identifier:u.text,properties:R,parentDeclaration:m.initializer}:void 0}if($e(u)&&p_(u.parent)){let I=Qo(s.getCompilerOptions()),R=NDt(i,I,u.parent);return kt(R)?{kind:4,token:u,attributes:R,parentDeclaration:u.parent}:void 0}if($e(u)){let I=(a=i.getContextualType(u))==null?void 0:a.getNonNullableType();if(I&&Qn(I)&16){let R=Aa(i.getSignaturesOfType(I,0));return R===void 0?void 0:{kind:5,token:u,signature:R,sourceFile:e,parentDeclaration:wje(u)}}if(to(m)&&m.expression===u)return{kind:2,token:u,call:m,sourceFile:e,modifierFlags:0,parentDeclaration:wje(u)}}if(!Hn(m))return;let d=MQ(i.getTypeAtLocation(m.expression)),S=d.symbol;if(!S||!S.declarations)return;if($e(u)&&to(m.parent)){let I=jn(S.declarations,xl),R=I?.getSourceFile();if(I&&R&&!tD(s,R))return{kind:2,token:u,call:m.parent,sourceFile:e,modifierFlags:32,parentDeclaration:I};let L=jn(S.declarations,qi);if(e.commonJsModuleIndicator)return;if(L&&!tD(s,L))return{kind:2,token:u,call:m.parent,sourceFile:L,modifierFlags:32,parentDeclaration:L}}let E=jn(S.declarations,vi);if(!E&&es(u))return;let x=E||jn(S.declarations,I=>Xu(I)||_f(I));if(x&&!tD(s,x.getSourceFile())){let I=!_f(x)&&(d.target||d)!==i.getDeclaredTypeOfSymbol(S);if(I&&(es(u)||Xu(x)))return;let R=x.getSourceFile(),L=_f(x)?0:(I?256:0)|(_Z(u.text)?2:0),F=Pf(R),J=ci(m.parent,to);return{kind:0,token:u,call:J,modifierFlags:L,parentDeclaration:x,declSourceFile:R,isJSFile:F}}let D=jn(S.declarations,TT);if(D&&!(d.flags&1056)&&!es(u)&&!tD(s,D.getSourceFile()))return{kind:1,token:u,parentDeclaration:D}}function EDt(e,t){return t.isJSFile?zC(xDt(e,t)):CDt(e,t)}function xDt(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){if(Xu(t)||_f(t))return;let a=bn.ChangeTracker.with(e,m=>bje(m,n,t,s,!!(i&256)));if(a.length===0)return;let u=i&256?v.Initialize_static_property_0:es(s)?v.Declare_a_private_field_named_0:v.Initialize_property_0_in_the_constructor;return ro(jT,a,[u,s.text],jT,v.Add_all_missing_members)}function bje(e,t,n,i,s){let a=i.text;if(s){if(n.kind===231)return;let u=n.name.getText(),m=Eje(U.createIdentifier(u),a);e.insertNodeAfter(t,n,m)}else if(es(i)){let u=U.createPropertyDeclaration(void 0,a,void 0,void 0,void 0),m=Aje(n);m?e.insertNodeAfter(t,m,u):e.insertMemberAtStart(t,n,u)}else{let u=Py(n);if(!u)return;let m=Eje(U.createThis(),a);e.insertNodeAtConstructorEnd(t,u,m)}}function Eje(e,t){return U.createExpressionStatement(U.createAssignment(U.createPropertyAccessExpression(e,t),mk()))}function CDt(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){let a=s.text,u=i&256,m=xje(e.program.getTypeChecker(),t,s),d=E=>bn.ChangeTracker.with(e,x=>Cje(x,n,t,a,m,E)),S=[ro(jT,d(i&256),[u?v.Declare_static_property_0:v.Declare_property_0,a],jT,v.Add_all_missing_members)];return u||es(s)||(i&2&&S.unshift(ug(jT,d(2),[v.Declare_private_property_0,a])),S.push(ADt(e,n,t,s.text,m))),S}function xje(e,t,n){let i;if(n.parent.parent.kind===226){let s=n.parent.parent,a=n.parent===s.left?s.right:s.left,u=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(a)));i=e.typeToTypeNode(u,t,1)}else{let s=e.getContextualType(n.parent);i=s?e.typeToTypeNode(s,void 0,1):void 0}return i||U.createKeywordTypeNode(133)}function Cje(e,t,n,i,s,a){let u=a?U.createNodeArray(U.createModifiersFromModifierFlags(a)):void 0,m=vi(n)?U.createPropertyDeclaration(u,i,void 0,s,void 0):U.createPropertySignature(void 0,i,void 0,s),d=Aje(n);d?e.insertNodeAfter(t,d,m):e.insertMemberAtStart(t,n,m)}function Aje(e){let t;for(let n of e.members){if(!Ds(n))break;t=n}return t}function ADt(e,t,n,i,s){let a=U.createKeywordTypeNode(154),u=U.createParameterDeclaration(void 0,void 0,"x",void 0,a,void 0),m=U.createIndexSignature(void 0,[u],s),d=bn.ChangeTracker.with(e,S=>S.insertMemberAtStart(t,n,m));return ug(jT,d,[v.Add_index_signature_for_property_0,i])}function kDt(e,t){let{parentDeclaration:n,declSourceFile:i,modifierFlags:s,token:a,call:u}=t;if(u===void 0)return;let m=a.text,d=E=>bn.ChangeTracker.with(e,x=>kje(e,x,u,a,E,n,i)),S=[ro(jT,d(s&256),[s&256?v.Declare_static_method_0:v.Declare_method_0,m],jT,v.Add_all_missing_members)];return s&2&&S.unshift(ug(jT,d(2),[v.Declare_private_method_0,m])),S}function kje(e,t,n,i,s,a,u){let m=LE(u,e.program,e.preferences,e.host),d=vi(a)?174:173,S=pTe(d,e,m,n,i,s,a),E=DDt(a,n);E?t.insertNodeAfter(u,E,S):t.insertMemberAtStart(u,a,S),m.writeFixes(t)}function Pje(e,t,{token:n,parentDeclaration:i}){let s=Dt(i.members,d=>{let S=t.getTypeAtLocation(d);return!!(S&&S.flags&402653316)}),a=i.getSourceFile(),u=U.createEnumMember(n,s?U.createStringLiteral(n.text):void 0),m=yc(i.members);m?e.insertNodeInListAfter(a,m,u,i.members):e.insertMemberAtStart(a,i,u)}function Nje(e,t,n){let i=td(t.sourceFile,t.preferences),s=LE(t.sourceFile,t.program,t.preferences,t.host),a=n.kind===2?pTe(262,t,s,n.call,In(n.token),n.modifierFlags,n.parentDeclaration):Dee(262,t,i,n.signature,qV(v.Function_not_implemented.message,i),n.token,void 0,void 0,void 0,s);a===void 0&&M.fail("fixMissingFunctionDeclaration codefix got unexpected error."),im(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,a,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,a),s.writeFixes(e)}function Dje(e,t,n){let i=LE(t.sourceFile,t.program,t.preferences,t.host),s=td(t.sourceFile,t.preferences),a=t.program.getTypeChecker(),u=n.parentDeclaration.attributes,m=Dt(u.properties,zA),d=kr(n.attributes,x=>{let D=Tee(t,a,i,s,a.getTypeOfSymbol(x),n.parentDeclaration),I=U.createIdentifier(x.name),R=U.createJsxAttribute(I,U.createJsxExpression(void 0,D));return fa(I,R),R}),S=U.createJsxAttributes(m?[...d,...u.properties]:[...u.properties,...d]),E={prefix:u.pos===u.end?" ":void 0};e.replaceNode(t.sourceFile,u,S,E),i.writeFixes(e)}function Ije(e,t,n){let i=LE(t.sourceFile,t.program,t.preferences,t.host),s=td(t.sourceFile,t.preferences),a=Qo(t.program.getCompilerOptions()),u=t.program.getTypeChecker(),m=kr(n.properties,S=>{let E=Tee(t,u,i,s,u.getTypeOfSymbol(S),n.parentDeclaration);return U.createPropertyAssignment(IDt(S,a,s,u),E)}),d={leadingTriviaOption:bn.LeadingTriviaOption.Exclude,trailingTriviaOption:bn.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,U.createObjectLiteralExpression([...n.parentDeclaration.properties,...m],!0),d),i.writeFixes(e)}function Tee(e,t,n,i,s,a){if(s.flags&3)return mk();if(s.flags&134217732)return U.createStringLiteral("",i===0);if(s.flags&8)return U.createNumericLiteral(0);if(s.flags&64)return U.createBigIntLiteral("0n");if(s.flags&16)return U.createFalse();if(s.flags&1056){let u=s.symbol.exports?Ph(s.symbol.exports.values()):s.symbol,m=t.symbolToExpression(s.symbol.parent?s.symbol.parent:s.symbol,111551,void 0,64);return u===void 0||m===void 0?U.createNumericLiteral(0):U.createPropertyAccessExpression(m,t.symbolToString(u))}if(s.flags&256)return U.createNumericLiteral(s.value);if(s.flags&2048)return U.createBigIntLiteral(s.value);if(s.flags&128)return U.createStringLiteral(s.value,i===0);if(s.flags&512)return s===t.getFalseType()||s===t.getFalseType(!0)?U.createFalse():U.createTrue();if(s.flags&65536)return U.createNull();if(s.flags&1048576)return di(s.types,m=>Tee(e,t,n,i,m,a))??mk();if(t.isArrayLikeType(s))return U.createArrayLiteralExpression();if(PDt(s)){let u=kr(t.getPropertiesOfType(s),m=>{let d=Tee(e,t,n,i,t.getTypeOfSymbol(m),a);return U.createPropertyAssignment(m.name,d)});return U.createObjectLiteralExpression(u,!0)}if(Qn(s)&16){if(jn(s.symbol.declarations||ve,qp(Vh,Wg,_l))===void 0)return mk();let m=t.getSignaturesOfType(s,0);return m===void 0?mk():Dee(218,e,i,m[0],qV(v.Function_not_implemented.message,i),void 0,void 0,void 0,a,n)??mk()}if(Qn(s)&1){let u=T0(s.symbol);if(u===void 0||aE(u))return mk();let m=Py(u);return m&&kt(m.parameters)?mk():U.createNewExpression(U.createIdentifier(s.symbol.name),void 0,void 0)}return mk()}function mk(){return U.createIdentifier("undefined")}function PDt(e){return e.flags&524288&&(Qn(e)&128||e.symbol&&ci(Nh(e.symbol.declarations),_f))}function NDt(e,t,n){let i=e.getContextualType(n.attributes);if(i===void 0)return ve;let s=i.getProperties();if(!kt(s))return ve;let a=new Set;for(let u of n.attributes.properties)if(Yg(u)&&a.add(dO(u.name)),zA(u)){let m=e.getTypeAtLocation(u.expression);for(let d of m.getProperties())a.add(d.escapedName)}return ti(s,u=>ap(u.name,t,1)&&!(u.flags&16777216||ul(u)&48||a.has(u.escapedName)))}function DDt(e,t){if(_f(e))return;let n=Dr(t,i=>_l(i)||Vc(i));return n&&n.parent===e?n:void 0}function IDt(e,t,n,i){if(Fh(e)){let s=i.symbolToNode(e,111551,void 0,1073741824);if(s&&Go(s))return s}return Sj(e.name,t,n===0,!1,!1)}function wje(e){if(Dr(e,NO)){let t=Dr(e.parent,im);if(t)return t}return Jr(e)}var jSe="addMissingNewOperator",Oje=[v.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];xo({errorCodes:Oje,getCodeActions(e){let{sourceFile:t,span:n}=e,i=bn.ChangeTracker.with(e,s=>Rje(s,t,n));return[ro(jSe,i,v.Add_missing_new_operator_to_call,jSe,v.Add_missing_new_operator_to_all_calls)]},fixIds:[jSe],getAllCodeActions:e=>La(e,Oje,(t,n)=>Rje(t,e.sourceFile,n))});function Rje(e,t,n){let i=ao(wDt(t,n),to),s=U.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function wDt(e,t){let n=Ki(e,t.start),i=bl(t);for(;n.endxee(m,e.program,e.preferences,e.host,i,s)),[kt(s)>1?v.Add_missing_parameters_to_0:v.Add_missing_parameter_to_0,n],bee,v.Add_all_missing_parameters)),kt(a)&&Ut(u,ro(Eee,bn.ChangeTracker.with(e,m=>xee(m,e.program,e.preferences,e.host,i,a)),[kt(a)>1?v.Add_optional_parameters_to_0:v.Add_optional_parameter_to_0,n],Eee,v.Add_all_optional_parameters)),u},getAllCodeActions:e=>La(e,Mje,(t,n)=>{let i=Lje(e.sourceFile,e.program,n.start);if(i){let{declarations:s,newParameters:a,newOptionalParameters:u}=i;e.fixId===bee&&xee(t,e.program,e.preferences,e.host,s,a),e.fixId===Eee&&xee(t,e.program,e.preferences,e.host,s,u)}})});function Lje(e,t,n){let i=Ki(e,n),s=Dr(i,to);if(s===void 0||kt(s.arguments)===0)return;let a=t.getTypeChecker(),u=a.getTypeAtLocation(s.expression),m=ti(u.symbol.declarations,Fje);if(m===void 0)return;let d=yc(m);if(d===void 0||d.body===void 0||tD(t,d.getSourceFile()))return;let S=ODt(d);if(S===void 0)return;let E=[],x=[],D=kt(d.parameters),I=kt(s.arguments);if(D>I)return;let R=[d,...MDt(d,m)];for(let L=0,F=0,J=0;L{let d=Jr(m),S=LE(d,t,n,i);kt(m.parameters)?e.replaceNodeRangeWithNodes(d,Fo(m.parameters),qo(m.parameters),jje(S,u,m,a),{joiner:", ",indentation:0,leadingTriviaOption:bn.LeadingTriviaOption.IncludeAll,trailingTriviaOption:bn.TrailingTriviaOption.Include}):Et(jje(S,u,m,a),(E,x)=>{kt(m.parameters)===0&&x===0?e.insertNodeAt(d,m.parameters.end,E):e.insertNodeAtEndOfList(d,m.parameters,E)}),S.writeFixes(e)})}function Fje(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function jje(e,t,n,i){let s=kr(n.parameters,a=>U.createParameterDeclaration(a.modifiers,a.dotDotDotToken,a.name,a.questionToken,a.type,a.initializer));for(let{pos:a,declaration:u}of i){let m=a>0?s[a-1]:void 0;s.splice(a,0,U.updateParameterDeclaration(u,u.modifiers,u.dotDotDotToken,u.name,m&&m.questionToken?U.createToken(58):u.questionToken,jDt(e,u.type,t),u.initializer))}return s}function MDt(e,t){let n=[];for(let i of t)if(LDt(i)){if(kt(i.parameters)===kt(e.parameters)){n.push(i);continue}if(kt(i.parameters)>kt(e.parameters))return[]}return n}function LDt(e){return Fje(e)&&e.body===void 0}function Bje(e,t,n){return U.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function FDt(e,t){return kt(e)&&Dt(e,n=>tLa(e,Vje,(t,n,i)=>{let s=qje(n.file,n.start);if(s!==void 0)switch(e.fixId){case BSe:{let a=zje(s,e.host,n.code);a&&i.push(Jje(n.file.fileName,a));break}default:M.fail(`Bad fixId: ${e.fixId}`)}})});function Jje(e,t){return{type:"install package",file:e,packageName:t}}function qje(e,t){let n=ci(Ki(e,t),jo);if(!n)return;let i=n.text,{packageName:s}=PB(i);return Su(s)?void 0:s}function zje(e,t,n){var i;return n===Uje?Zg.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?DB(e):void 0}var Wje=[v.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,v.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,v.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,v.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,v.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,v.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],USe="fixClassDoesntImplementInheritedAbstractMember";xo({errorCodes:Wje,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=bn.ChangeTracker.with(t,a=>Hje(Gje(n,i.start),n,t,a,t.preferences));return s.length===0?void 0:[ro(USe,s,v.Implement_inherited_abstract_class,USe,v.Implement_all_inherited_abstract_classes)]},fixIds:[USe],getAllCodeActions:function(t){let n=new Map;return La(t,Wje,(i,s)=>{let a=Gje(s.file,s.start);tm(n,Sa(a))&&Hje(a,t.sourceFile,t,i,t.preferences)})}});function Gje(e,t){let n=Ki(e,t);return ao(n.parent,vi)}function Hje(e,t,n,i,s){let a=Lg(e),u=n.program.getTypeChecker(),m=u.getTypeAtLocation(a),d=u.getPropertiesOfType(m).filter(UDt),S=LE(t,n.program,s,n.host);fTe(e,d,t,n,s,S,E=>i.insertMemberAtStart(t,e,E)),S.writeFixes(i)}function UDt(e){let t=Dv(Fo(e.getDeclarations()));return!(t&2)&&!!(t&64)}var VSe="classSuperMustPrecedeThisAccess",$je=[v.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];xo({errorCodes:$je,getCodeActions(e){let{sourceFile:t,span:n}=e,i=Kje(t,n.start);if(!i)return;let{constructor:s,superCall:a}=i,u=bn.ChangeTracker.with(e,m=>Yje(m,t,s,a));return[ro(VSe,u,v.Make_super_call_the_first_statement_in_the_constructor,VSe,v.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[VSe],getAllCodeActions(e){let{sourceFile:t}=e,n=new Map;return La(e,$je,(i,s)=>{let a=Kje(s.file,s.start);if(!a)return;let{constructor:u,superCall:m}=a;tm(n,Sa(u.parent))&&Yje(i,t,u,m)})}});function Yje(e,t,n,i){e.insertNodeAtConstructorStart(t,n,i),e.delete(t,i)}function Kje(e,t){let n=Ki(e,t);if(n.kind!==110)return;let i=Ip(n),s=Xje(i.body);return s&&!s.expression.arguments.some(a=>Hn(a)&&a.expression===n)?{constructor:i,superCall:s}:void 0}function Xje(e){return wu(e)&&Kx(e.expression)?e:Us(e)?void 0:qs(e,Xje)}var JSe="constructorForDerivedNeedSuperCall",Qje=[v.Constructors_for_derived_classes_must_contain_a_super_call.code];xo({errorCodes:Qje,getCodeActions(e){let{sourceFile:t,span:n}=e,i=Zje(t,n.start),s=bn.ChangeTracker.with(e,a=>eBe(a,t,i));return[ro(JSe,s,v.Add_missing_super_call,JSe,v.Add_all_missing_super_calls)]},fixIds:[JSe],getAllCodeActions:e=>La(e,Qje,(t,n)=>eBe(t,e.sourceFile,Zje(n.file,n.start)))});function Zje(e,t){let n=Ki(e,t);return M.assert(Vc(n.parent),"token should be at the constructor declaration"),n.parent}function eBe(e,t,n){let i=U.createExpressionStatement(U.createCallExpression(U.createSuper(),void 0,ve));e.insertNodeAtConstructorStart(t,n,i)}var tBe="fixEnableJsxFlag",rBe=[v.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];xo({errorCodes:rBe,getCodeActions:function(t){let{configFile:n}=t.program.getCompilerOptions();if(n===void 0)return;let i=bn.ChangeTracker.with(t,s=>nBe(s,n));return[ug(tBe,i,v.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[tBe],getAllCodeActions:e=>La(e,rBe,t=>{let{configFile:n}=e.program.getCompilerOptions();n!==void 0&&nBe(t,n)})});function nBe(e,t){hTe(e,t,"jsx",U.createStringLiteral("react"))}var qSe="fixNaNEquality",iBe=[v.This_condition_will_always_return_0.code];xo({errorCodes:iBe,getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=sBe(i,t,n);if(s===void 0)return;let{suggestion:a,expression:u,arg:m}=s,d=bn.ChangeTracker.with(e,S=>oBe(S,t,m,u));return[ro(qSe,d,[v.Use_0,a],qSe,v.Use_Number_isNaN_in_all_conditions)]},fixIds:[qSe],getAllCodeActions:e=>La(e,iBe,(t,n)=>{let i=sBe(e.program,n.file,Gu(n.start,n.length));i&&oBe(t,n.file,i.arg,i.expression)})});function sBe(e,t,n){let i=jn(e.getSemanticDiagnostics(t),u=>u.start===n.start&&u.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=jn(i.relatedInformation,u=>u.code===v.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let a=vTe(s.file,Gu(s.start,s.length));if(a!==void 0&&Pt(a)&&Dn(a.parent))return{suggestion:VDt(s.messageText),expression:a.parent,arg:a}}function oBe(e,t,n,i){let s=U.createCallExpression(U.createPropertyAccessExpression(U.createIdentifier("Number"),U.createIdentifier("isNaN")),void 0,[n]),a=i.operatorToken.kind;e.replaceNode(t,i,a===38||a===36?U.createPrefixUnaryExpression(54,s):s)}function VDt(e){let[,t]=Qg(e,`
`,0).match(/'(.*)'/)||[];return t}xo({errorCodes:[v.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,v.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,v.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let n=t.program.getCompilerOptions(),{configFile:i}=n;if(i===void 0)return;let s=[],a=J_(n);if(a>=5&&a<99){let S=bn.ChangeTracker.with(t,E=>{hTe(E,i,"module",U.createStringLiteral("esnext"))});s.push(ug("fixModuleOption",S,[v.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let m=Qo(n);if(m<4||m>99){let S=bn.ChangeTracker.with(t,E=>{if(!Pw(i))return;let D=[["target",U.createStringLiteral("es2017")]];a===1&&D.push(["module",U.createStringLiteral("commonjs")]),gTe(E,i,D)});s.push(ug("fixTargetOption",S,[v.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}});var zSe="fixPropertyAssignment",aBe=[v.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];xo({errorCodes:aBe,fixIds:[zSe],getCodeActions(e){let{sourceFile:t,span:n}=e,i=lBe(t,n.start),s=bn.ChangeTracker.with(e,a=>cBe(a,e.sourceFile,i));return[ro(zSe,s,[v.Change_0_to_1,"=",":"],zSe,[v.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>La(e,aBe,(t,n)=>cBe(t,n.file,lBe(n.file,n.start)))});function cBe(e,t,n){e.replaceNode(t,n,U.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function lBe(e,t){return ao(Ki(e,t).parent,m_)}var WSe="extendsInterfaceBecomesImplements",uBe=[v.Cannot_extend_an_interface_0_Did_you_mean_implements.code];xo({errorCodes:uBe,getCodeActions(e){let{sourceFile:t}=e,n=_Be(t,e.span.start);if(!n)return;let{extendsToken:i,heritageClauses:s}=n,a=bn.ChangeTracker.with(e,u=>fBe(u,t,i,s));return[ro(WSe,a,v.Change_extends_to_implements,WSe,v.Change_all_extended_interfaces_to_implements)]},fixIds:[WSe],getAllCodeActions:e=>La(e,uBe,(t,n)=>{let i=_Be(n.file,n.start);i&&fBe(t,n.file,i.extendsToken,i.heritageClauses)})});function _Be(e,t){let n=Ki(e,t),i=Lu(n).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function fBe(e,t,n,i){if(e.replaceNode(t,n,U.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let s=i[1].getFirstToken(),a=s.getFullStart();e.replaceRange(t,{pos:a,end:a},U.createToken(28));let u=t.text,m=s.end;for(;mgBe(s,t,n));return[ro(GSe,i,[v.Add_0_to_unresolved_variable,n.className||"this"],GSe,v.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[GSe],getAllCodeActions:e=>La(e,dBe,(t,n)=>{let i=mBe(n.file,n.start,n.code);i&&gBe(t,e.sourceFile,i)})});function mBe(e,t,n){let i=Ki(e,t);if($e(i)||es(i))return{node:i,className:n===pBe?Lu(i).name.text:void 0}}function gBe(e,t,{node:n,className:i}){yp(n),e.replaceNode(t,n,U.createPropertyAccessExpression(i?U.createIdentifier(i):U.createThis(),n))}var HSe="fixInvalidJsxCharacters_expression",Cee="fixInvalidJsxCharacters_htmlEntity",hBe=[v.Unexpected_token_Did_you_mean_or_gt.code,v.Unexpected_token_Did_you_mean_or_rbrace.code];xo({errorCodes:hBe,fixIds:[HSe,Cee],getCodeActions(e){let{sourceFile:t,preferences:n,span:i}=e,s=bn.ChangeTracker.with(e,u=>$Se(u,n,t,i.start,!1)),a=bn.ChangeTracker.with(e,u=>$Se(u,n,t,i.start,!0));return[ro(HSe,s,v.Wrap_invalid_character_in_an_expression_container,HSe,v.Wrap_all_invalid_characters_in_an_expression_container),ro(Cee,a,v.Convert_invalid_character_to_its_html_entity_code,Cee,v.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return La(e,hBe,(t,n)=>$Se(t,e.preferences,n.file,n.start,e.fixId===Cee))}});var yBe={">":">","}":"}"};function JDt(e){return Ha(yBe,e)}function $Se(e,t,n,i,s){let a=n.getText()[i];if(!JDt(a))return;let u=s?yBe[a]:`{${S6(n,t,a)}}`;e.replaceRangeWithText(n,{pos:i,end:i+1},u)}var Aee="deleteUnmatchedParameter",vBe="renameUnmatchedParameter",SBe=[v.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];xo({fixIds:[Aee,vBe],errorCodes:SBe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=[],a=TBe(n,i.start);if(a)return Ut(s,qDt(t,a)),Ut(s,zDt(t,a)),s},getAllCodeActions:function(t){let n=new Map;return fk(bn.ChangeTracker.with(t,i=>{pk(t,SBe,({file:s,start:a})=>{let u=TBe(s,a);u&&n.set(u.signature,Ut(n.get(u.signature),u.jsDocParameterTag))}),n.forEach((s,a)=>{if(t.fixId===Aee){let u=new Set(s);i.filterJSDocTags(a.getSourceFile(),a,m=>!u.has(m))}})}))}});function qDt(e,{name:t,jsDocHost:n,jsDocParameterTag:i}){let s=bn.ChangeTracker.with(e,a=>a.filterJSDocTags(e.sourceFile,n,u=>u!==i));return ro(Aee,s,[v.Delete_unused_param_tag_0,t.getText(e.sourceFile)],Aee,v.Delete_all_unused_param_tags)}function zDt(e,{name:t,jsDocHost:n,signature:i,jsDocParameterTag:s}){if(!kt(i.parameters))return;let a=e.sourceFile,u=nT(i),m=new Set;for(let x of u)Nd(x)&&$e(x.name)&&m.add(x.name.escapedText);let d=di(i.parameters,x=>$e(x.name)&&!m.has(x.name.escapedText)?x.name.getText(a):void 0);if(d===void 0)return;let S=U.updateJSDocParameterTag(s,s.tagName,U.createIdentifier(d),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),E=bn.ChangeTracker.with(e,x=>x.replaceJSDocComment(a,n,kr(u,D=>D===s?S:D)));return ug(vBe,E,[v.Rename_param_tag_name_0_to_1,t.getText(a),d])}function TBe(e,t){let n=Ki(e,t);if(n.parent&&Nd(n.parent)&&$e(n.parent.name)){let i=n.parent,s=tE(i),a=uT(i);if(s&&a)return{jsDocHost:s,signature:a,name:n.parent.name,jsDocParameterTag:i}}}var YSe="fixUnreferenceableDecoratorMetadata",WDt=[v.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code];xo({errorCodes:WDt,getCodeActions:e=>{let t=GDt(e.sourceFile,e.program,e.span.start);if(!t)return;let n=bn.ChangeTracker.with(e,a=>t.kind===276&&$Dt(a,e.sourceFile,t,e.program)),i=bn.ChangeTracker.with(e,a=>HDt(a,e.sourceFile,t,e.program)),s;return n.length&&(s=Ut(s,ug(YSe,n,v.Convert_named_imports_to_namespace_import))),i.length&&(s=Ut(s,ug(YSe,i,v.Use_import_type))),s},fixIds:[YSe]});function GDt(e,t,n){let i=ci(Ki(e,n),$e);if(!i||i.parent.kind!==183)return;let a=t.getTypeChecker().getSymbolAtLocation(i);return jn(a?.declarations||ve,qp(ng,pf,nu))}function HDt(e,t,n,i){if(n.kind===271){e.insertModifierBefore(t,156,n.name);return}let s=n.kind===273?n:n.parent.parent;if(s.name&&s.namedBindings)return;let a=i.getTypeChecker();ffe(s,m=>{if($u(m.symbol,a).flags&111551)return!0})||e.insertModifierBefore(t,156,s)}function $Dt(e,t,n,i){uk.doChangeNamedToNamespaceOrDefault(t,i,e,n.parent)}var VV="unusedIdentifier",KSe="unusedIdentifier_prefix",XSe="unusedIdentifier_delete",kee="unusedIdentifier_deleteImports",QSe="unusedIdentifier_infer",bBe=[v._0_is_declared_but_its_value_is_never_read.code,v._0_is_declared_but_never_used.code,v.Property_0_is_declared_but_its_value_is_never_read.code,v.All_imports_in_import_declaration_are_unused.code,v.All_destructured_elements_are_unused.code,v.All_variables_are_unused.code,v.All_type_parameters_are_unused.code];xo({errorCodes:bBe,getCodeActions(e){let{errorCode:t,sourceFile:n,program:i,cancellationToken:s}=e,a=i.getTypeChecker(),u=i.getSourceFiles(),m=Ki(n,e.span.start);if(om(m))return[D6(bn.ChangeTracker.with(e,x=>x.delete(n,m)),v.Remove_template_tag)];if(m.kind===30){let x=bn.ChangeTracker.with(e,D=>xBe(D,n,m));return[D6(x,v.Remove_type_parameters)]}let d=CBe(m);if(d){let x=bn.ChangeTracker.with(e,D=>D.delete(n,d));return[ro(VV,x,[v.Remove_import_from_0,rpe(d)],kee,v.Delete_all_unused_imports)]}else if(ZSe(m)){let x=bn.ChangeTracker.with(e,D=>Pee(n,m,D,a,u,i,s,!1));if(x.length)return[ro(VV,x,[v.Remove_unused_declaration_for_Colon_0,m.getText(n)],kee,v.Delete_all_unused_imports)]}if(Kp(m.parent)||Fv(m.parent)){if(is(m.parent.parent)){let x=m.parent.elements,D=[x.length>1?v.Remove_unused_declarations_for_Colon_0:v.Remove_unused_declaration_for_Colon_0,kr(x,I=>I.getText(n)).join(", ")];return[D6(bn.ChangeTracker.with(e,I=>YDt(I,n,m.parent)),D)]}return[D6(bn.ChangeTracker.with(e,x=>KDt(e,x,n,m.parent)),v.Remove_unused_destructuring_declaration)]}if(ABe(n,m))return[D6(bn.ChangeTracker.with(e,x=>kBe(x,n,m.parent)),v.Remove_variable_statement)];if($e(m)&&El(m.parent))return[D6(bn.ChangeTracker.with(e,x=>nIt(x,n,m.parent)),[v.Remove_unused_declaration_for_Colon_0,m.getText(n)])];let S=[];if(m.kind===140){let x=bn.ChangeTracker.with(e,I=>EBe(I,n,m)),D=ao(m.parent,s2).typeParameter.name.text;S.push(ro(VV,x,[v.Replace_infer_0_with_unknown,D],QSe,v.Replace_all_unused_infer_with_unknown))}else{let x=bn.ChangeTracker.with(e,D=>Pee(n,m,D,a,u,i,s,!1));if(x.length){let D=Go(m.parent)?m.parent:m;S.push(D6(x,[v.Remove_unused_declaration_for_Colon_0,D.getText(n)]))}}let E=bn.ChangeTracker.with(e,x=>PBe(x,t,n,m));return E.length&&S.push(ro(VV,E,[v.Prefix_0_with_an_underscore,m.getText(n)],KSe,v.Prefix_all_unused_declarations_with_where_possible)),S},fixIds:[KSe,XSe,kee,QSe],getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=n.getTypeChecker(),a=n.getSourceFiles();return La(e,bBe,(u,m)=>{let d=Ki(t,m.start);switch(e.fixId){case KSe:PBe(u,m.code,t,d);break;case kee:{let S=CBe(d);S?u.delete(t,S):ZSe(d)&&Pee(t,d,u,s,a,n,i,!0);break}case XSe:{if(d.kind===140||ZSe(d))break;if(om(d))u.delete(t,d);else if(d.kind===30)xBe(u,t,d);else if(Kp(d.parent)){if(d.parent.parent.initializer)break;(!is(d.parent.parent)||NBe(d.parent.parent,s,a))&&u.delete(t,d.parent.parent)}else{if(Fv(d.parent.parent)&&d.parent.parent.parent.initializer)break;ABe(t,d)?kBe(u,t,d.parent):Pee(t,d,u,s,a,n,i,!0)}break}case QSe:d.kind===140&&EBe(u,t,d);break;default:M.fail(JSON.stringify(e.fixId))}})}});function EBe(e,t,n){e.replaceNode(t,n.parent,U.createKeywordTypeNode(159))}function D6(e,t){return ro(VV,e,t,XSe,v.Delete_all_unused_declarations)}function xBe(e,t,n){e.delete(t,M.checkDefined(ao(n.parent,TH).typeParameters,"The type parameter to delete should exist"))}function ZSe(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function CBe(e){return e.kind===102?ci(e.parent,Yc):void 0}function ABe(e,t){return Fu(t.parent)&&Fo(t.parent.getChildren(e))===t}function kBe(e,t,n){e.delete(t,n.parent.kind===243?n.parent:n)}function YDt(e,t,n){Et(n.elements,i=>e.delete(t,i))}function KDt(e,t,n,{parent:i}){if(Ci(i)&&i.initializer&&Hb(i.initializer))if(Fu(i.parent)&&kt(i.parent.declarations)>1){let s=i.parent.parent,a=s.getStart(n),u=s.end;t.delete(n,i),t.insertNodeAt(n,u,i.initializer,{prefix:Jv(e.host,e.formatContext.options)+n.text.slice(QU(n.text,a-1),a),suffix:P8(n)?";":""})}else t.replaceNode(n,i.parent,i.initializer);else t.delete(n,i)}function PBe(e,t,n,i){t!==v.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=ao(i.parent,s2).typeParameter.name),$e(i)&&XDt(i)&&(e.replaceNode(n,i,U.createIdentifier(`_${i.text}`)),is(i.parent)&&RP(i.parent).forEach(s=>{$e(s.name)&&e.replaceNode(n,s.name,U.createIdentifier(`_${s.name.text}`))})))}function XDt(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function Pee(e,t,n,i,s,a,u,m){QDt(t,n,e,i,s,a,u,m),$e(t)&&lc.Core.eachSymbolReferenceInFile(t,i,e,d=>{Hn(d.parent)&&d.parent.name===d&&(d=d.parent),!m&&rIt(d)&&n.delete(e,d.parent.parent)})}function QDt(e,t,n,i,s,a,u,m){let{parent:d}=e;if(is(d))ZDt(t,n,d,i,s,a,u,m);else if(!(m&&$e(e)&&lc.Core.isSymbolReferencedInFile(e,i,n))){let S=ng(d)?e:Go(d)?d.parent:d;M.assert(S!==n,"should not delete whole source file"),t.delete(n,S)}}function ZDt(e,t,n,i,s,a,u,m=!1){if(eIt(i,t,n,s,a,u,m))if(n.modifiers&&n.modifiers.length>0&&(!$e(n.name)||lc.Core.isSymbolReferencedInFile(n.name,i,t)))for(let d of n.modifiers)Do(d)&&e.deleteModifier(t,d);else!n.initializer&&NBe(n,i,s)&&e.delete(t,n)}function NBe(e,t,n){let i=e.parent.parameters.indexOf(e);return!lc.Core.someSignatureUsage(e.parent,n,t,(s,a)=>!a||a.arguments.length>i)}function eIt(e,t,n,i,s,a,u){let{parent:m}=n;switch(m.kind){case 174:case 176:let d=m.parameters.indexOf(n),S=_l(m)?m.name:m,E=lc.Core.getReferencedSymbolsForNode(m.pos,S,s,i,a);if(E){for(let x of E)for(let D of x.references)if(D.kind===lc.EntryKind.Node){let I=TO(D.node)&&to(D.node.parent)&&D.node.parent.arguments.length>d,R=Hn(D.node.parent)&&TO(D.node.parent.expression)&&to(D.node.parent.parent)&&D.node.parent.parent.arguments.length>d,L=(_l(D.node.parent)||Wg(D.node.parent))&&D.node.parent!==n.parent&&D.node.parent.parameters.length>d;if(I||R||L)return!1}}return!0;case 262:return m.name&&tIt(e,t,m.name)?DBe(m,n,u):!0;case 218:case 219:return DBe(m,n,u);case 178:return!1;case 177:return!0;default:return M.failBadSyntaxKind(m)}}function tIt(e,t,n){return!!lc.Core.eachSymbolReferenceInFile(n,e,t,i=>$e(i)&&to(i.parent)&&i.parent.arguments.includes(i))}function DBe(e,t,n){let i=e.parameters,s=i.indexOf(t);return M.assert(s!==-1,"The parameter should already be in the list"),n?i.slice(s+1).every(a=>$e(a.name)&&!a.symbol.isReferenced):s===i.length-1}function rIt(e){return(Dn(e.parent)&&e.parent.left===e||(lY(e.parent)||tS(e.parent))&&e.parent.operand===e)&&wu(e.parent.parent)}function nIt(e,t,n){let i=n.symbol.declarations;if(i)for(let s of i)e.delete(t,s)}var eTe="fixUnreachableCode",IBe=[v.Unreachable_code_detected.code];xo({errorCodes:IBe,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;let n=bn.ChangeTracker.with(e,i=>wBe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[ro(eTe,n,v.Remove_unreachable_code,eTe,v.Remove_all_unreachable_code)]},fixIds:[eTe],getAllCodeActions:e=>La(e,IBe,(t,n)=>wBe(t,n.file,n.start,n.length,n.code))});function wBe(e,t,n,i,s){let a=Ki(t,n),u=Dr(a,Ji);if(u.getStart(t)!==a.getStart(t)){let d=JSON.stringify({statementKind:M.formatSyntaxKind(u.kind),tokenKind:M.formatSyntaxKind(a.kind),errorCode:s,start:n,length:i});M.fail("Token and statement should start at the same point. "+d)}let m=(Js(u.parent)?u.parent:u).parent;if(!Js(u.parent)||u===Fo(u.parent.statements))switch(m.kind){case 245:if(m.elseStatement){if(Js(u.parent))break;e.replaceNode(t,u,U.createBlock(ve));return}case 247:case 248:e.delete(t,m);return}if(Js(u.parent)){let d=n+i,S=M.checkDefined(iIt(L$(u.parent.statements,u),E=>E.posRBe(n,e.sourceFile,e.span.start));return[ro(tTe,t,v.Remove_unused_label,tTe,v.Remove_all_unused_labels)]},fixIds:[tTe],getAllCodeActions:e=>La(e,OBe,(t,n)=>RBe(t,n.file,n.start))});function RBe(e,t,n){let i=Ki(t,n),s=ao(i.parent,rS),a=i.getStart(t),u=s.statement.getStart(t),m=xd(a,u,t)?u:zo(t.text,Ma(s,59,t).end,!0);e.deleteRange(t,{pos:a,end:m})}var MBe="fixJSDocTypes_plain",rTe="fixJSDocTypes_nullable",LBe=[v.JSDoc_types_can_only_be_used_inside_documentation_comments.code,v._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,v._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];xo({errorCodes:LBe,getCodeActions(e){let{sourceFile:t}=e,n=e.program.getTypeChecker(),i=jBe(t,e.span.start,n);if(!i)return;let{typeNode:s,type:a}=i,u=s.getText(t),m=[d(a,MBe,v.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===314&&m.push(d(a,rTe,v.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),m;function d(S,E,x){let D=bn.ChangeTracker.with(e,I=>FBe(I,t,s,S,n));return ro("jdocTypes",D,[v.Change_0_to_1,u,n.typeToString(S)],E,x)}},fixIds:[MBe,rTe],getAllCodeActions(e){let{fixId:t,program:n,sourceFile:i}=e,s=n.getTypeChecker();return La(e,LBe,(a,u)=>{let m=jBe(u.file,u.start,s);if(!m)return;let{typeNode:d,type:S}=m,E=d.kind===314&&t===rTe?s.getNullableType(S,32768):S;FBe(a,i,d,E,s)})}});function FBe(e,t,n,i,s){e.replaceNode(t,n,s.typeToTypeNode(i,n,void 0))}function jBe(e,t,n){let i=Dr(Ki(e,t),sIt),s=i&&i.type;return s&&{typeNode:s,type:oIt(n,s)}}function sIt(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function oIt(e,t){if(bN(t)){let n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(Ut([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var nTe="fixMissingCallParentheses",BBe=[v.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];xo({errorCodes:BBe,fixIds:[nTe],getCodeActions(e){let{sourceFile:t,span:n}=e,i=VBe(t,n.start);if(!i)return;let s=bn.ChangeTracker.with(e,a=>UBe(a,e.sourceFile,i));return[ro(nTe,s,v.Add_missing_call_parentheses,nTe,v.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>La(e,BBe,(t,n)=>{let i=VBe(n.file,n.start);i&&UBe(t,n.file,i)})});function UBe(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function VBe(e,t){let n=Ki(e,t);if(Hn(n.parent)){let i=n.parent;for(;Hn(i.parent);)i=i.parent;return i.name}if($e(n))return n}var JBe="fixMissingTypeAnnotationOnExports",iTe="add-annotation",sTe="add-type-assertion",aIt="extract-expression",qBe=[v.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,v.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,v.At_least_one_accessor_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,v.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,v.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,v.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,v.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,v.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,v.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,v.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,v.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,v.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,v.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,v.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,v.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,v.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,v.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,v.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,v.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_it_s_type_This_is_not_supported_with_isolatedDeclarations.code,v.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,v.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],cIt=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),lIt=1074273293;xo({errorCodes:qBe,fixIds:[JBe],getCodeActions(e){let t=[];return I6(iTe,t,e,0,n=>n.addTypeAnnotation(e.span)),I6(iTe,t,e,1,n=>n.addTypeAnnotation(e.span)),I6(iTe,t,e,2,n=>n.addTypeAnnotation(e.span)),I6(sTe,t,e,0,n=>n.addInlineAssertion(e.span)),I6(sTe,t,e,1,n=>n.addInlineAssertion(e.span)),I6(sTe,t,e,2,n=>n.addInlineAssertion(e.span)),I6(aIt,t,e,0,n=>n.extractAsVariable(e.span)),t},getAllCodeActions:e=>{let t=zBe(e,0,n=>{pk(e,qBe,i=>{n.addTypeAnnotation(i)})});return fk(t.textChanges)}});function I6(e,t,n,i,s){let a=zBe(n,i,s);a.result&&a.textChanges.length&&t.push(ro(e,a.textChanges,a.result,JBe,v.Add_all_missing_type_annotations))}function zBe(e,t,n){let i={typeNode:void 0,mutatedTarget:!1},s=bn.ChangeTracker.fromContext(e),a=e.sourceFile,u=e.program,m=u.getTypeChecker(),d=Qo(u.getCompilerOptions()),S=LE(e.sourceFile,e.program,e.preferences,e.host),E=new Set,x=new Set,D=aS({preserveSourceNewlines:!1}),I=n({addTypeAnnotation:R,addInlineAssertion:q,extractAsVariable:ee});return S.writeFixes(s),{result:I,textChanges:s.getChanges()};function R(we){e.cancellationToken.throwIfCancellationRequested();let ft=Ki(a,we.start),gt=W(ft);if(gt)return El(gt)?L(gt):pe(gt);let Qe=ze(ft);if(Qe)return pe(Qe)}function L(we){var ft;if(x?.has(we))return;x?.add(we);let gt=m.getTypeAtLocation(we),Qe=m.getPropertiesOfType(gt);if(!we.name||Qe.length===0)return;let yt=[];for(let Ar of Qe)ap(Ar.name,Qo(u.getCompilerOptions()))&&(Ar.valueDeclaration&&Ci(Ar.valueDeclaration)||yt.push(U.createVariableStatement([U.createModifier(95)],U.createVariableDeclarationList([U.createVariableDeclaration(Ar.name,void 0,ke(m.getTypeOfSymbol(Ar),we),void 0)]))));if(yt.length===0)return;let ir=[];(ft=we.modifiers)!=null&&ft.some(Ar=>Ar.kind===95)&&ir.push(U.createModifier(95)),ir.push(U.createModifier(138));let Tr=U.createModuleDeclaration(ir,we.name,U.createModuleBlock(yt),101441696);return s.insertNodeAfter(a,we,Tr),[v.Annotate_types_of_properties_expando_function_in_a_namespace]}function F(we){return!nc(we)&&!to(we)&&!ko(we)&&!Ku(we)}function J(we,ft){return F(we)&&(we=U.createParenthesizedExpression(we)),U.createAsExpression(we,ft)}function $(we,ft){return F(we)&&(we=U.createParenthesizedExpression(we)),U.createAsExpression(U.createSatisfiesExpression(we,ka(ft)),ft)}function q(we){e.cancellationToken.throwIfCancellationRequested();let ft=Ki(a,we.start);if(W(ft))return;let Qe=tt(ft,we);if(!Qe||uA(Qe)||uA(Qe.parent))return;let yt=Pt(Qe),ir=m_(Qe);if(!ir&&f_(Qe)||Dr(Qe,$s)||Dr(Qe,nS)||yt&&(Dr(Qe,mp)||Dr(Qe,wi))||kd(Qe))return;let Tr=Dr(Qe,Ci),Ar=Tr&&m.getTypeAtLocation(Tr);if(Ar&&Ar.flags&8192||!(yt||ir))return;let{typeNode:Vr,mutatedTarget:fr}=Ae(Qe,Ar);if(!(!Vr||fr))return ir?s.insertNodeAt(a,Qe.end,J(ka(Qe.name),Vr),{prefix:": "}):yt?s.replaceNode(a,Qe,$(ka(Qe),Vr)):M.assertNever(Qe),[v.Add_satisfies_and_an_inline_type_assertion_with_0,lt(Vr)]}function ee(we){e.cancellationToken.throwIfCancellationRequested();let ft=Ki(a,we.start),gt=tt(ft,we);if(!gt||uA(gt)||uA(gt.parent)||!Pt(gt))return;if(Ku(gt))return s.replaceNode(a,gt,J(gt,U.createTypeReferenceNode("const"))),[v.Mark_array_literal_as_const];let yt=Dr(gt,ql);if(yt){if(yt===gt.parent&&nc(gt))return;let ir=U.createUniqueName(l1e(gt,a,m,a),16),Tr=gt,Ar=gt;if(kd(Tr)&&(Tr=h0(Tr.parent),Ve(Tr.parent)?Ar=Tr=Tr.parent:Ar=J(Tr,U.createTypeReferenceNode("const"))),nc(Tr))return;let Vr=U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(ir,void 0,void 0,Ar)],2)),fr=Dr(gt,Ji);return s.insertNodeBefore(a,fr,Vr),s.replaceNode(a,Tr,U.createAsExpression(U.cloneNode(ir),U.createTypeQueryNode(U.cloneNode(ir)))),[v.Extract_to_variable_and_replace_with_0_as_typeof_0,lt(ir)]}}function W(we){let ft=Dr(we,gt=>Ji(gt)?"quit":AA(gt));if(ft&&AA(ft)){let gt=ft;if(Dn(gt)&&(gt=gt.left,!AA(gt)))return;let Qe=m.getTypeAtLocation(gt.expression);if(!Qe)return;let yt=m.getPropertiesOfType(Qe);if(Dt(yt,ir=>ir.valueDeclaration===ft||ir.valueDeclaration===ft.parent)){let ir=Qe.symbol.valueDeclaration;if(ir){if(K1(ir)&&Ci(ir.parent))return ir.parent;if(El(ir))return ir}}}}function pe(we){if(!E?.has(we))switch(E?.add(we),we.kind){case 169:case 172:case 260:return Be(we);case 219:case 218:case 262:case 174:case 177:return K(we,a);case 277:return re(we);case 263:return ue(we);case 206:case 207:return ne(we);default:throw new Error(`Cannot find a fix for the given node ${we.kind}`)}}function K(we,ft){if(we.type)return;let{typeNode:gt}=Ae(we);if(gt)return s.tryInsertTypeAnnotation(ft,we,gt),[v.Add_return_type_0,lt(gt)]}function re(we){if(we.isExportEquals)return;let{typeNode:ft}=Ae(we.expression);if(!ft)return;let gt=U.createUniqueName("_default");return s.replaceNodeWithNodes(a,we,[U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(gt,void 0,ft,we.expression)],2)),U.updateExportAssignment(we,we?.modifiers,gt)]),[v.Extract_default_export_to_variable]}function ue(we){var ft,gt;let Qe=(ft=we.heritageClauses)==null?void 0:ft.find(ur=>ur.token===96),yt=Qe?.types[0];if(!yt)return;let{typeNode:ir}=Ae(yt.expression);if(!ir)return;let Tr=U.createUniqueName(we.name?we.name.text+"Base":"Anonymous",16),Ar=U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(Tr,void 0,ir,yt.expression)],2));s.insertNodeBefore(a,we,Ar);let Vr=L1(a.text,yt.end),fr=((gt=Vr?.[Vr.length-1])==null?void 0:gt.end)??yt.end;return s.replaceRange(a,{pos:yt.getFullStart(),end:fr},Tr,{prefix:" "}),[v.Extract_base_class_to_variable]}let ce;(we=>{we[we.Text=0]="Text",we[we.Computed=1]="Computed",we[we.ArrayAccess=2]="ArrayAccess",we[we.Identifier=3]="Identifier"})(ce||(ce={}));function ne(we){var ft;let gt=we.parent,Qe=we.parent.parent.parent;if(!gt.initializer)return;let yt,ir=[];if($e(gt.initializer))yt={expression:{kind:3,identifier:gt.initializer}};else{let Vr=U.createUniqueName("dest",16);yt={expression:{kind:3,identifier:Vr}},ir.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(Vr,void 0,void 0,gt.initializer)],2)))}let Tr=[];Fv(we)?le(we,Tr,yt):me(we,Tr,yt);let Ar=new Map;for(let Vr of Tr){if(Vr.element.propertyName&&Go(Vr.element.propertyName)){let ur=Vr.element.propertyName.expression,tn=U.getGeneratedNameForNode(ur),Mi=U.createVariableDeclaration(tn,void 0,void 0,ur),br=U.createVariableDeclarationList([Mi],2),Di=U.createVariableStatement(void 0,br);ir.push(Di),Ar.set(ur,tn)}let fr=Vr.element.name;if(Fv(fr))le(fr,Tr,Vr);else if(Kp(fr))me(fr,Tr,Vr);else{let{typeNode:ur}=Ae(fr),tn=de(Vr,Ar);if(Vr.element.initializer){let br=(ft=Vr.element)==null?void 0:ft.propertyName,Di=U.createUniqueName(br&&$e(br)?br.text:"temp",16);ir.push(U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(Di,void 0,void 0,tn)],2))),tn=U.createConditionalExpression(U.createBinaryExpression(Di,U.createToken(37),U.createIdentifier("undefined")),U.createToken(58),Vr.element.initializer,U.createToken(59),tn)}let Mi=_i(Qe,32)?[U.createToken(95)]:void 0;ir.push(U.createVariableStatement(Mi,U.createVariableDeclarationList([U.createVariableDeclaration(fr,void 0,ur,tn)],2)))}}return Qe.declarationList.declarations.length>1&&ir.push(U.updateVariableStatement(Qe,Qe.modifiers,U.updateVariableDeclarationList(Qe.declarationList,Qe.declarationList.declarations.filter(Vr=>Vr!==we.parent)))),s.replaceNodeWithNodes(a,Qe,ir),[v.Extract_binding_expressions_to_variable]}function le(we,ft,gt){for(let Qe=0;Qe=0;--yt){let ir=gt[yt].expression;ir.kind===0?Qe=U.createPropertyAccessChain(Qe,void 0,U.createIdentifier(ir.text)):ir.kind===1?Qe=U.createElementAccessExpression(Qe,ft.get(ir.computed)):ir.kind===2&&(Qe=U.createElementAccessExpression(Qe,ir.arrayIndex))}return Qe}function Ae(we,ft){if(t===1)return Pe(we);let gt=uA(we)?De(we):m.getTypeAtLocation(we);if(!gt)return i;if(t===2){ft&&(gt=ft);let yt=m.getWidenedLiteralType(gt);if(m.isTypeAssignableTo(yt,gt))return i;gt=yt}is(we)&&m.requiresAddingImplicitUndefined(we)&&(gt=m.getUnionType([m.getUndefinedType(),gt],0));let Qe=(Ci(we)||Ds(we)&&_i(we,264))&>.flags&8192?1048576:0;return{typeNode:ke(gt,Dr(we,f_)??a,Qe),mutatedTarget:!1}}function xe(we){return U.createTypeQueryNode(ka(we))}function te(we,ft="temp"){let gt=!!Dr(we,Ve);return gt?Te(we,ft,gt,Qe=>Qe.elements,kd,U.createSpreadElement,Qe=>U.createArrayLiteralExpression(Qe,!0),Qe=>U.createTupleTypeNode(Qe.map(U.createRestTypeNode))):i}function he(we,ft="temp"){let gt=!!Dr(we,Ve);return Te(we,ft,gt,Qe=>Qe.properties,Ly,U.createSpreadAssignment,Qe=>U.createObjectLiteralExpression(Qe,!0),U.createIntersectionTypeNode)}function Te(we,ft,gt,Qe,yt,ir,Tr,Ar){let Vr=[],fr=[],ur,tn=Dr(we,Ji);for(let Di of Qe(we))yt(Di)?(br(),nc(Di.expression)?(Vr.push(xe(Di.expression)),fr.push(Di)):Mi(Di.expression)):(ur??(ur=[])).push(Di);if(fr.length===0)return i;return br(),s.replaceNode(a,we,Tr(fr)),{typeNode:Ar(Vr),mutatedTarget:!0};function Mi(Di){let As=U.createUniqueName(ft+"_Part"+(fr.length+1),16),os=gt?U.createAsExpression(Di,U.createTypeReferenceNode("const")):Di,Ri=U.createVariableStatement(void 0,U.createVariableDeclarationList([U.createVariableDeclaration(As,void 0,void 0,os)],2));s.insertNodeBefore(a,tn,Ri),Vr.push(xe(As)),fr.push(ir(As))}function br(){ur&&(Mi(Tr(ur)),ur=void 0)}}function Ve(we){return sT(we)&&Xm(we.type)}function Pe(we){if(is(we))return i;if(m_(we))return{typeNode:xe(we.name),mutatedTarget:!1};if(nc(we))return{typeNode:xe(we),mutatedTarget:!1};if(Ve(we))return Pe(we.expression);if(Ku(we)){let ft=Dr(we,Ci),gt=ft&&$e(ft.name)?ft.name.text:void 0;return te(we,gt)}if(ko(we)){let ft=Dr(we,Ci),gt=ft&&$e(ft.name)?ft.name.text:void 0;return he(we,gt)}if(Ci(we)&&we.initializer)return Pe(we.initializer);if(VA(we)){let{typeNode:ft,mutatedTarget:gt}=Pe(we.whenTrue);if(!ft)return i;let{typeNode:Qe,mutatedTarget:yt}=Pe(we.whenFalse);return Qe?{typeNode:U.createUnionTypeNode([ft,Qe]),mutatedTarget:gt||yt}:i}return i}function ke(we,ft,gt=0){let Qe=!1,yt=JV(m,S,we,ft,d,lIt|gt,{moduleResolverHost:u,trackSymbol(){return!0},reportTruncationError(){Qe=!0}});return Qe?U.createKeywordTypeNode(133):yt}function De(we){let ft=m.getSignatureFromDeclaration(we);if(ft)return m.getReturnTypeOfSignature(ft)}function Be(we){let{typeNode:ft}=Ae(we);if(ft)return we.type?s.replaceNode(Jr(we),we.type,ft):s.tryInsertTypeAnnotation(Jr(we),we,ft),[v.Add_annotation_of_type_0,lt(ft)]}function lt(we){xn(we,1);let ft=D.printNode(4,we,a);return ft.length>bw?ft.substring(0,bw-3)+"...":(xn(we,0),ft)}function ze(we){return Dr(we,ft=>cIt.has(ft.kind)&&(!Kp(ft)&&!Fv(ft)||Ci(ft.parent)))}function tt(we,ft){for(;we&&we.endHBe(a,t,i));return[ro(oTe,s,v.Add_async_modifier_to_containing_function,oTe,v.Add_all_missing_async_modifiers)]},fixIds:[oTe],getAllCodeActions:function(t){let n=new Map;return La(t,WBe,(i,s)=>{let a=GBe(s.file,s.start);!a||!tm(n,Sa(a.insertBefore))||HBe(i,t.sourceFile,a)})}});function uIt(e){if(e.type)return e.type;if(Ci(e.parent)&&e.parent.type&&Vh(e.parent.type))return e.parent.type.type}function GBe(e,t){let n=Ki(e,t),i=Ip(n);if(!i)return;let s;switch(i.kind){case 174:s=i.name;break;case 262:case 218:s=Ma(i,100,e);break;case 219:let a=i.typeParameters?30:21;s=Ma(i,a,e)||Fo(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:uIt(i)}}function HBe(e,t,{insertBefore:n,returnType:i}){if(i){let s=fR(i);(!s||s.kind!==80||s.text!=="Promise")&&e.replaceNode(t,i,U.createTypeReferenceNode("Promise",U.createNodeArray([i])))}e.insertModifierBefore(t,134,n)}var $Be=[v._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,v._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],aTe="fixPropertyOverrideAccessor";xo({errorCodes:$Be,getCodeActions(e){let t=YBe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[ro(aTe,t,v.Generate_get_and_set_accessors,aTe,v.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[aTe],getAllCodeActions:e=>La(e,$Be,(t,n)=>{let i=YBe(n.file,n.start,n.length,n.code,e);if(i)for(let s of i)t.pushRaw(e.sourceFile,s)})});function YBe(e,t,n,i,s){let a,u;if(i===v._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)a=t,u=t+n;else if(i===v._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let m=s.program.getTypeChecker(),d=Ki(e,t).parent;M.assert(U1(d),"error span of fixPropertyOverrideAccessor should only be on an accessor");let S=d.parent;M.assert(vi(S),"erroneous accessors should only be inside classes");let E=Nh(STe(S,m));if(!E)return[];let x=Zi(rA(d.name)),D=m.getPropertyOfType(m.getTypeAtLocation(E),x);if(!D||!D.valueDeclaration)return[];a=D.valueDeclaration.pos,u=D.valueDeclaration.end,e=Jr(D.valueDeclaration)}else M.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return gUe(e,s.program,a,u,s,v.Generate_get_and_set_accessors.message)}var cTe="inferFromUsage",KBe=[v.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,v.Variable_0_implicitly_has_an_1_type.code,v.Parameter_0_implicitly_has_an_1_type.code,v.Rest_parameter_0_implicitly_has_an_any_type.code,v.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,v._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,v.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,v.Member_0_implicitly_has_an_1_type.code,v.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,v.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,v.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,v.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,v.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,v._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,v.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,v.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,v.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];xo({errorCodes:KBe,getCodeActions(e){let{sourceFile:t,program:n,span:{start:i},errorCode:s,cancellationToken:a,host:u,preferences:m}=e,d=Ki(t,i),S,E=bn.ChangeTracker.with(e,D=>{S=XBe(D,t,d,s,n,a,YS,u,m)}),x=S&&Ns(S);return!x||E.length===0?void 0:[ro(cTe,E,[_It(s,d),Hc(x)],cTe,v.Infer_all_types_from_usage)]},fixIds:[cTe],getAllCodeActions(e){let{sourceFile:t,program:n,cancellationToken:i,host:s,preferences:a}=e,u=YN();return La(e,KBe,(m,d)=>{XBe(m,t,Ki(d.file,d.start),d.code,n,i,u,s,a)})}});function _It(e,t){switch(e){case v.Parameter_0_implicitly_has_an_1_type.code:case v.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return dp(Ip(t))?v.Infer_type_of_0_from_usage:v.Infer_parameter_types_from_usage;case v.Rest_parameter_0_implicitly_has_an_any_type.code:case v.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return v.Infer_parameter_types_from_usage;case v.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return v.Infer_this_type_of_0_from_usage;default:return v.Infer_type_of_0_from_usage}}function fIt(e){switch(e){case v.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return v.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case v.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return v.Variable_0_implicitly_has_an_1_type.code;case v.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return v.Parameter_0_implicitly_has_an_1_type.code;case v.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return v.Rest_parameter_0_implicitly_has_an_any_type.code;case v.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return v.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case v._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return v._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case v.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return v.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case v.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return v.Member_0_implicitly_has_an_1_type.code}return e}function XBe(e,t,n,i,s,a,u,m,d){if(!yw(n.kind)&&n.kind!==80&&n.kind!==26&&n.kind!==110)return;let{parent:S}=n,E=LE(t,s,d,m);switch(i=fIt(i),i){case v.Member_0_implicitly_has_an_1_type.code:case v.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Ci(S)&&u(S)||Ds(S)||If(S))return QBe(e,E,t,S,s,m,a),E.writeFixes(e),S;if(Hn(S)){let I=H8(S.name,s,a),R=T6(I,S,s,m);if(R){let L=U.createJSDocTypeTag(void 0,U.createJSDocTypeExpression(R),void 0);e.addJSDocTags(t,ao(S.parent.parent,wu),[L])}return E.writeFixes(e),S}return;case v.Variable_0_implicitly_has_an_1_type.code:{let I=s.getTypeChecker().getSymbolAtLocation(n);return I&&I.valueDeclaration&&Ci(I.valueDeclaration)&&u(I.valueDeclaration)?(QBe(e,E,Jr(I.valueDeclaration),I.valueDeclaration,s,m,a),E.writeFixes(e),I.valueDeclaration):void 0}}let x=Ip(n);if(x===void 0)return;let D;switch(i){case v.Parameter_0_implicitly_has_an_1_type.code:if(dp(x)){ZBe(e,E,t,x,s,m,a),D=x;break}case v.Rest_parameter_0_implicitly_has_an_any_type.code:if(u(x)){let I=ao(S,is);pIt(e,E,t,I,x,s,m,a),D=I}break;case v.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case v._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:$p(x)&&$e(x.name)&&(Nee(e,E,t,x,H8(x.name,s,a),s,m),D=x);break;case v.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:dp(x)&&(ZBe(e,E,t,x,s,m,a),D=x);break;case v.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:bn.isThisTypeAnnotatable(x)&&u(x)&&(dIt(e,t,x,s,m,a),D=x);break;default:return M.fail(String(i))}return E.writeFixes(e),D}function QBe(e,t,n,i,s,a,u){$e(i.name)&&Nee(e,t,n,i,H8(i.name,s,u),s,a)}function pIt(e,t,n,i,s,a,u,m){if(!$e(i.name))return;let d=hIt(s,n,a,m);if(M.assert(s.parameters.length===d.length,"Parameter count and inference count should match"),vn(s))eUe(e,n,d,a,u);else{let S=fc(s)&&!Ma(s,21,n);S&&e.insertNodeBefore(n,Fo(s.parameters),U.createToken(21));for(let{declaration:E,type:x}of d)E&&!E.type&&!E.initializer&&Nee(e,t,n,E,x,a,u);S&&e.insertNodeAfter(n,qo(s.parameters),U.createToken(22))}}function dIt(e,t,n,i,s,a){let u=tUe(n,t,i,a);if(!u||!u.length)return;let m=uTe(i,u,a).thisParameter(),d=T6(m,n,i,s);d&&(vn(n)?mIt(e,t,n,d):e.tryInsertThisTypeAnnotation(t,n,d))}function mIt(e,t,n,i){e.addJSDocTags(t,n,[U.createJSDocThisTag(void 0,U.createJSDocTypeExpression(i))])}function ZBe(e,t,n,i,s,a,u){let m=Aa(i.parameters);if(m&&$e(i.name)&&$e(m.name)){let d=H8(i.name,s,u);d===s.getTypeChecker().getAnyType()&&(d=H8(m.name,s,u)),vn(i)?eUe(e,n,[{declaration:m,type:d}],s,a):Nee(e,t,n,m,d,s,a)}}function Nee(e,t,n,i,s,a,u){let m=T6(s,i,a,u);if(m)if(vn(n)&&i.kind!==171){let d=Ci(i)?ci(i.parent.parent,fl):i;if(!d)return;let S=U.createJSDocTypeExpression(m),E=$p(i)?U.createJSDocReturnTag(void 0,S,void 0):U.createJSDocTypeTag(void 0,S,void 0);e.addJSDocTags(n,d,[E])}else gIt(m,i,n,e,t,Qo(a.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,i,m)}function gIt(e,t,n,i,s,a){let u=x2(e,a);return u&&i.tryInsertTypeAnnotation(n,t,u.typeNode)?(Et(u.symbols,m=>s.addImportFromExportedSymbol(m,!0)),!0):!1}function eUe(e,t,n,i,s){let a=n.length&&n[0].declaration.parent;if(!a)return;let u=Yi(n,m=>{let d=m.declaration;if(d.initializer||rT(d)||!$e(d.name))return;let S=m.type&&T6(m.type,d,i,s);if(S){let E=U.cloneNode(d.name);return xn(E,7168),{name:U.cloneNode(d.name),param:d,isOptional:!!m.isOptional,typeNode:S}}});if(u.length)if(fc(a)||ic(a)){let m=fc(a)&&!Ma(a,21,t);m&&e.insertNodeBefore(t,Fo(a.parameters),U.createToken(21)),Et(u,({typeNode:d,param:S})=>{let E=U.createJSDocTypeTag(void 0,U.createJSDocTypeExpression(d)),x=U.createJSDocComment(void 0,[E]);e.insertNodeAt(t,S.getStart(t),x,{suffix:" "})}),m&&e.insertNodeAfter(t,qo(a.parameters),U.createToken(22))}else{let m=kr(u,({name:d,typeNode:S,isOptional:E})=>U.createJSDocParameterTag(void 0,d,!!E,U.createJSDocTypeExpression(S),!1,void 0));e.addJSDocTags(t,a,m)}}function lTe(e,t,n){return Yi(lc.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),i=>i.kind!==lc.EntryKind.Span?ci(i.node,$e):void 0)}function H8(e,t,n){let i=lTe(e,t,n);return uTe(t,i,n).single()}function hIt(e,t,n,i){let s=tUe(e,t,n,i);return s&&uTe(n,s,i).parameters(e)||e.parameters.map(a=>({declaration:a,type:$e(a.name)?H8(a.name,n,i):n.getTypeChecker().getAnyType()}))}function tUe(e,t,n,i){let s;switch(e.kind){case 176:s=Ma(e,137,t);break;case 219:case 218:let a=e.parent;s=(Ci(a)||Ds(a))&&$e(a.name)?a.name:e.name;break;case 262:case 174:case 173:s=e.name;break}if(s)return lTe(s,n,i)}function uTe(e,t,n){let i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:ke=>i.createArrayType(ke),Promise:ke=>i.createPromiseType(ke)},a=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:d,parameters:S,thisParameter:E};function u(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function m(ke){let De=new Map;for(let lt of ke)lt.properties&<.properties.forEach((ze,tt)=>{De.has(tt)||De.set(tt,[]),De.get(tt).push(ze)});let Be=new Map;return De.forEach((lt,ze)=>{Be.set(ze,m(lt))}),{isNumber:ke.some(lt=>lt.isNumber),isString:ke.some(lt=>lt.isString),isNumberOrString:ke.some(lt=>lt.isNumberOrString),candidateTypes:To(ke,lt=>lt.candidateTypes),properties:Be,calls:To(ke,lt=>lt.calls),constructs:To(ke,lt=>lt.constructs),numberIndex:Et(ke,lt=>lt.numberIndex),stringIndex:Et(ke,lt=>lt.stringIndex),candidateThisTypes:To(ke,lt=>lt.candidateThisTypes),inferredTypes:void 0}}function d(){return ue(x(t))}function S(ke){if(t.length===0||!ke.parameters)return;let De=u();for(let lt of t)n.throwIfCancellationRequested(),D(lt,De);let Be=[...De.constructs||[],...De.calls||[]];return ke.parameters.map((lt,ze)=>{let tt=[],we=Lh(lt),ft=!1;for(let Qe of Be)if(Qe.argumentTypes.length<=ze)ft=vn(ke),tt.push(i.getUndefinedType());else if(we)for(let yt=ze;ytBe.every(ze=>!ze(lt)))}function re(ke){return ue(ne(ke))}function ue(ke){if(!ke.length)return i.getAnyType();let De=i.getUnionType([i.getStringType(),i.getNumberType()]),lt=K(ke,[{high:tt=>tt===i.getStringType()||tt===i.getNumberType(),low:tt=>tt===De},{high:tt=>!(tt.flags&16385),low:tt=>!!(tt.flags&16385)},{high:tt=>!(tt.flags&114689)&&!(Qn(tt)&16),low:tt=>!!(Qn(tt)&16)}]),ze=lt.filter(tt=>Qn(tt)&16);return ze.length&&(lt=lt.filter(tt=>!(Qn(tt)&16)),lt.push(ce(ze))),i.getWidenedType(i.getUnionType(lt.map(i.getBaseTypeOfLiteralType),2))}function ce(ke){if(ke.length===1)return ke[0];let De=[],Be=[],lt=[],ze=[],tt=!1,we=!1,ft=vd();for(let yt of ke){for(let Ar of i.getPropertiesOfType(yt))ft.add(Ar.escapedName,Ar.valueDeclaration?i.getTypeOfSymbolAtLocation(Ar,Ar.valueDeclaration):i.getAnyType());De.push(...i.getSignaturesOfType(yt,0)),Be.push(...i.getSignaturesOfType(yt,1));let ir=i.getIndexInfoOfType(yt,0);ir&&(lt.push(ir.type),tt=tt||ir.isReadonly);let Tr=i.getIndexInfoOfType(yt,1);Tr&&(ze.push(Tr.type),we=we||Tr.isReadonly)}let gt=m3(ft,(yt,ir)=>{let Tr=ir.lengthi.getBaseTypeOfLiteralType(ft)),we=(lt=ke.calls)!=null&<.length?le(ke):void 0;return we&&tt?ze.push(i.getUnionType([we,...tt],2)):(we&&ze.push(we),kt(tt)&&ze.push(...tt)),ze.push(...me(ke)),ze}function le(ke){let De=new Map;ke.properties&&ke.properties.forEach((tt,we)=>{let ft=i.createSymbol(4,we);ft.links.type=re(tt),De.set(we,ft)});let Be=ke.calls?[Te(ke.calls)]:[],lt=ke.constructs?[Te(ke.constructs)]:[],ze=ke.stringIndex?[i.createIndexInfo(i.getStringType(),re(ke.stringIndex),!1)]:[];return i.createAnonymousType(void 0,De,Be,lt,ze)}function me(ke){if(!ke.properties||!ke.properties.size)return[];let De=a.filter(Be=>de(Be,ke));return 0Ae(Be,ke)):[]}function de(ke,De){return De.properties?!Iu(De.properties,(Be,lt)=>{let ze=i.getTypeOfPropertyOfType(ke,lt);return ze?Be.calls?!i.getSignaturesOfType(ze,0).length||!i.isTypeAssignableTo(ze,he(Be.calls)):!i.isTypeAssignableTo(ze,re(Be)):!0}):!1}function Ae(ke,De){if(!(Qn(ke)&4)||!De.properties)return ke;let Be=ke.target,lt=Nh(Be.typeParameters);if(!lt)return ke;let ze=[];return De.properties.forEach((tt,we)=>{let ft=i.getTypeOfPropertyOfType(Be,we);M.assert(!!ft,"generic should have all the properties of its reference."),ze.push(...xe(ft,re(tt),lt))}),s[ke.symbol.escapedName](ue(ze))}function xe(ke,De,Be){if(ke===Be)return[De];if(ke.flags&3145728)return To(ke.types,tt=>xe(tt,De,Be));if(Qn(ke)&4&&Qn(De)&4){let tt=i.getTypeArguments(ke),we=i.getTypeArguments(De),ft=[];if(tt&&we)for(let gt=0;gtze.argumentTypes.length));for(let ze=0;zewe.argumentTypes[ze]||i.getUndefinedType())),ke.some(we=>we.argumentTypes[ze]===void 0)&&(tt.flags|=16777216),De.push(tt)}let lt=re(m(ke.map(ze=>ze.return_)));return i.createSignature(void 0,void 0,void 0,De,lt,void 0,Be,0)}function Ve(ke,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(ke.candidateTypes||(ke.candidateTypes=[])).push(De)}function Pe(ke,De){De&&!(De.flags&1)&&!(De.flags&131072)&&(ke.candidateThisTypes||(ke.candidateThisTypes=[])).push(De)}}var _Te="fixReturnTypeInAsyncFunction",rUe=[v.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];xo({errorCodes:rUe,fixIds:[_Te],getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,a=i.getTypeChecker(),u=nUe(n,i.getTypeChecker(),s.start);if(!u)return;let{returnTypeNode:m,returnType:d,promisedTypeNode:S,promisedType:E}=u,x=bn.ChangeTracker.with(t,D=>iUe(D,n,m,S));return[ro(_Te,x,[v.Replace_0_with_Promise_1,a.typeToString(d),a.typeToString(E)],_Te,v.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>La(e,rUe,(t,n)=>{let i=nUe(n.file,e.program.getTypeChecker(),n.start);i&&iUe(t,n.file,i.returnTypeNode,i.promisedTypeNode)})});function nUe(e,t,n){if(vn(e))return;let i=Ki(e,n),s=Dr(i,$a),a=s?.type;if(!a)return;let u=t.getTypeFromTypeNode(a),m=t.getAwaitedType(u)||t.getVoidType(),d=t.typeToTypeNode(m,a,void 0);if(d)return{returnTypeNode:a,returnType:u,promisedTypeNode:d,promisedType:m}}function iUe(e,t,n,i){e.replaceNode(t,n,U.createTypeReferenceNode("Promise",[i]))}var sUe="disableJsDiagnostics",oUe="disableJsDiagnostics",aUe=Yi(Object.keys(v),e=>{let t=v[e];return t.category===1?t.code:void 0});xo({errorCodes:aUe,getCodeActions:function(t){let{sourceFile:n,program:i,span:s,host:a,formatContext:u}=t;if(!vn(n)||!aO(n,i.getCompilerOptions()))return;let m=n.checkJsDirective?"":Jv(a,u.options),d=[ug(sUe,[t5e(n.fileName,[v8(n.checkJsDirective?wl(n.checkJsDirective.pos,n.checkJsDirective.end):Gu(0,0),`// @ts-nocheck${m}`)])],v.Disable_checking_for_this_file)];return bn.isValidLocationToAddComment(n,s.start)&&d.unshift(ro(sUe,bn.ChangeTracker.with(t,S=>cUe(S,n,s.start)),v.Ignore_this_error_message,oUe,v.Add_ts_ignore_to_all_error_messages)),d},fixIds:[oUe],getAllCodeActions:e=>{let t=new Set;return La(e,aUe,(n,i)=>{bn.isValidLocationToAddComment(i.file,i.start)&&cUe(n,i.file,i.start,t)})}});function cUe(e,t,n,i){let{line:s}=Eo(t,n);(!i||kg(i,s))&&e.insertCommentBeforeLine(t,s,n," @ts-ignore")}function fTe(e,t,n,i,s,a,u){let m=e.symbol.members;for(let d of t)m.has(d.escapedName)||uUe(d,e,n,i,s,a,u,void 0)}function aD(e){return{trackSymbol:()=>!1,moduleResolverHost:FQ(e.program,e.host)}}var lUe=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(lUe||{});function uUe(e,t,n,i,s,a,u,m,d=3,S=!1){let E=e.getDeclarations(),x=Aa(E),D=i.program.getTypeChecker(),I=Qo(i.program.getCompilerOptions()),R=x?.kind??171,L=me(e,x),F=x?V_(x):0,J=F&256;J|=F&1?1:F&4?4:0,x&&Cf(x)&&(J|=512);let $=re(),q=D.getWidenedType(D.getTypeOfSymbolAtLocation(e,t)),ee=!!(e.flags&16777216),W=!!(t.flags&33554432)||S,pe=td(n,s);switch(R){case 171:case 172:let de=1;de|=pe===0?268435456:0;let Ae=D.typeToTypeNode(q,t,de,aD(i));if(a){let te=x2(Ae,I);te&&(Ae=te.typeNode,gk(a,te.symbols))}u(U.createPropertyDeclaration($,x?ce(L):e.getName(),ee&&d&2?U.createToken(58):void 0,Ae,void 0));break;case 177:case 178:{M.assertIsDefined(E);let te=D.typeToTypeNode(q,t,void 0,aD(i)),he=W1(E,x),Te=he.secondAccessor?[he.firstAccessor,he.secondAccessor]:[he.firstAccessor];if(a){let Ve=x2(te,I);Ve&&(te=Ve.typeNode,gk(a,Ve.symbols))}for(let Ve of Te)if($p(Ve))u(U.createGetAccessorDeclaration($,ce(L),ve,le(te),ne(m,pe,W)));else{M.assertNode(Ve,dp,"The counterpart to a getter should be a setter");let Pe=aN(Ve),ke=Pe&&$e(Pe.name)?In(Pe.name):void 0;u(U.createSetAccessorDeclaration($,ce(L),dTe(1,[ke],[le(te)],1,!1),ne(m,pe,W)))}break}case 173:case 174:M.assertIsDefined(E);let xe=q.isUnion()?To(q.types,te=>te.getCallSignatures()):q.getCallSignatures();if(!Dt(xe))break;if(E.length===1){M.assert(xe.length===1,"One declaration implies one signature");let te=xe[0];K(pe,te,$,ce(L),ne(m,pe,W));break}for(let te of xe)K(pe,te,$,ce(L));if(!W)if(E.length>xe.length){let te=D.getSignatureFromDeclaration(E[E.length-1]);K(pe,te,$,ce(L),ne(m,pe))}else M.assert(E.length===xe.length,"Declarations and signatures should match count"),u(SIt(D,i,t,xe,ce(L),ee&&!!(d&1),$,pe,m));break}function K(de,Ae,xe,te,he){let Te=Dee(174,i,de,Ae,he,te,xe,ee&&!!(d&1),t,a);Te&&u(Te)}function re(){let de;return J&&(de=Ss(de,U.createModifiersFromModifierFlags(J))),ue()&&(de=Ut(de,U.createToken(164))),de&&U.createNodeArray(de)}function ue(){return!!(i.program.getCompilerOptions().noImplicitOverride&&x&&aE(x))}function ce(de){return $e(de)&&de.escapedText==="constructor"?U.createComputedPropertyName(U.createStringLiteral(In(de),pe===0)):ka(de,!1)}function ne(de,Ae,xe){return xe?void 0:ka(de,!1)||mTe(Ae)}function le(de){return ka(de,!1)}function me(de,Ae){if(ul(de)&262144){let xe=de.links.nameType;if(xe&&rm(xe))return U.createIdentifier(Zi(nm(xe)))}return ka(Ns(Ae),!1)}}function Dee(e,t,n,i,s,a,u,m,d,S){let E=t.program,x=E.getTypeChecker(),D=Qo(E.getCompilerOptions()),I=vn(d),R=524545|(n===0?268435456:0),L=x.signatureToSignatureDeclaration(i,e,d,R,aD(t));if(!L)return;let F=I?void 0:L.typeParameters,J=L.parameters,$=I?void 0:ka(L.type);if(S){if(F){let pe=js(F,K=>{let re=K.constraint,ue=K.default;if(re){let ce=x2(re,D);ce&&(re=ce.typeNode,gk(S,ce.symbols))}if(ue){let ce=x2(ue,D);ce&&(ue=ce.typeNode,gk(S,ce.symbols))}return U.updateTypeParameterDeclaration(K,K.modifiers,K.name,re,ue)});F!==pe&&(F=At(U.createNodeArray(pe,F.hasTrailingComma),F))}let W=js(J,pe=>{let K=I?void 0:pe.type;if(K){let re=x2(K,D);re&&(K=re.typeNode,gk(S,re.symbols))}return U.updateParameterDeclaration(pe,pe.modifiers,pe.dotDotDotToken,pe.name,I?void 0:pe.questionToken,K,pe.initializer)});if(J!==W&&(J=At(U.createNodeArray(W,J.hasTrailingComma),J)),$){let pe=x2($,D);pe&&($=pe.typeNode,gk(S,pe.symbols))}}let q=m?U.createToken(58):void 0,ee=L.asteriskToken;if(ic(L))return U.updateFunctionExpression(L,u,L.asteriskToken,ci(a,$e),F,J,$,s??L.body);if(fc(L))return U.updateArrowFunction(L,u,F,J,$,L.equalsGreaterThanToken,s??L.body);if(_l(L))return U.updateMethodDeclaration(L,u,ee,a??U.createIdentifier(""),q,F,J,$,s);if(El(L))return U.updateFunctionDeclaration(L,u,L.asteriskToken,ci(a,$e),F,J,$,s??L.body)}function pTe(e,t,n,i,s,a,u){let m=td(t.sourceFile,t.preferences),d=Qo(t.program.getCompilerOptions()),S=aD(t),E=t.program.getTypeChecker(),x=vn(u),{typeArguments:D,arguments:I,parent:R}=i,L=x?void 0:E.getContextualType(i),F=kr(I,ue=>$e(ue)?ue.text:Hn(ue)&&$e(ue.name)?ue.name.text:void 0),J=x?[]:kr(I,ue=>E.getTypeAtLocation(ue)),{argumentTypeNodes:$,argumentTypeParameters:q}=pUe(E,n,J,u,d,1,S),ee=a?U.createNodeArray(U.createModifiersFromModifierFlags(a)):void 0,W=Vj(R)?U.createToken(42):void 0,pe=x?void 0:yIt(E,q,D),K=dTe(I.length,F,$,void 0,x),re=x||L===void 0?void 0:E.typeToTypeNode(L,u,void 0,S);switch(e){case 174:return U.createMethodDeclaration(ee,W,s,void 0,pe,K,re,mTe(m));case 173:return U.createMethodSignature(ee,s,void 0,pe,K,re===void 0?U.createKeywordTypeNode(159):re);case 262:return M.assert(typeof s=="string"||$e(s),"Unexpected name"),U.createFunctionDeclaration(ee,W,s,pe,K,re,qV(v.Function_not_implemented.message,m));default:M.fail("Unexpected kind")}}function yIt(e,t,n){let i=new Set(t.map(a=>a[0])),s=new Map(t);if(n){let a=n.filter(m=>!t.some(d=>{var S;return e.getTypeAtLocation(m)===((S=d[1])==null?void 0:S.argumentType)})),u=i.size+a.length;for(let m=0;i.size{var u;return U.createTypeParameterDeclaration(void 0,a,(u=s.get(a))==null?void 0:u.constraint)})}function _Ue(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function JV(e,t,n,i,s,a,u){let m=e.typeToTypeNode(n,i,a,u);if(m&&Jh(m)){let d=x2(m,s);d&&(gk(t,d.symbols),m=d.typeNode)}return ka(m)}function fUe(e){return e.isUnionOrIntersection()?e.types.some(fUe):e.flags&262144}function pUe(e,t,n,i,s,a,u){let m=[],d=new Map;for(let S=0;S=i?U.createToken(58):void 0,s?void 0:n?.[m]||U.createKeywordTypeNode(159),void 0);a.push(E)}return a}function SIt(e,t,n,i,s,a,u,m,d){let S=i[0],E=i[0].minArgumentCount,x=!1;for(let L of i)E=Math.min(L.minArgumentCount,E),C_(L)&&(x=!0),L.parameters.length>=S.parameters.length&&(!C_(L)||C_(S))&&(S=L);let D=S.parameters.length-(C_(S)?1:0),I=S.parameters.map(L=>L.name),R=dTe(D,I,void 0,E,!1);if(x){let L=U.createParameterDeclaration(void 0,U.createToken(26),I[D]||"rest",D>=E?U.createToken(58):void 0,U.createArrayTypeNode(U.createKeywordTypeNode(159)),void 0);R.push(L)}return bIt(u,s,a,void 0,R,TIt(i,e,t,n),m,d)}function TIt(e,t,n,i){if(kt(e)){let s=t.getUnionType(kr(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,aD(n))}}function bIt(e,t,n,i,s,a,u,m){return U.createMethodDeclaration(e,void 0,t,n?U.createToken(58):void 0,i,s,a,m||mTe(u))}function mTe(e){return qV(v.Method_not_implemented.message,e)}function qV(e,t){return U.createBlock([U.createThrowStatement(U.createNewExpression(U.createIdentifier("Error"),void 0,[U.createStringLiteral(e,t===0)]))],!0)}function gTe(e,t,n){let i=Pw(t);if(!i)return;let s=yTe(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,Iee("compilerOptions",U.createObjectLiteralExpression(n.map(([u,m])=>Iee(u,m)),!0)));return}let a=s.initializer;if(ko(a))for(let[u,m]of n){let d=yTe(a,u);d===void 0?e.insertNodeAtObjectStart(t,a,Iee(u,m)):e.replaceNode(t,d.initializer,m)}}function hTe(e,t,n,i){gTe(e,t,[[n,i]])}function Iee(e,t){return U.createPropertyAssignment(U.createStringLiteral(e),t)}function yTe(e,t){return jn(e.properties,n=>ql(n)&&!!n.name&&jo(n.name)&&n.name.text===t)}function x2(e,t){let n,i=ct(e,s,wi);if(n&&i)return{typeNode:i,symbols:n};function s(a){if(xv(a)&&a.qualifier){let u=pp(a.qualifier);if(!u.symbol)return jr(a,s,void 0);let m=lV(u.symbol,t),d=m!==u.text?mUe(a.qualifier,U.createIdentifier(m)):a.qualifier;n=Ut(n,u.symbol);let S=Qr(a.typeArguments,s,wi);return U.createTypeReferenceNode(d,S)}return jr(a,s,void 0)}}function mUe(e,t){return e.kind===80?t:U.createQualifiedName(mUe(e.left,t),e.right)}function gk(e,t){t.forEach(n=>e.addImportFromExportedSymbol(n,!0))}function vTe(e,t){let n=bl(t),i=Ki(e,t.start);for(;i.enda.replaceNode(t,n,i));return ug(TUe,s,[v.Replace_import_with_0,s[0].textChanges[0].newText])}xo({errorCodes:[v.This_expression_is_not_callable.code,v.This_expression_is_not_constructable.code],getCodeActions:MIt});function MIt(e){let t=e.sourceFile,n=v.This_expression_is_not_callable.code===e.errorCode?213:214,i=Dr(Ki(t,e.span.start),a=>a.kind===n);if(!i)return[];let s=i.expression;return EUe(e,s)}xo({errorCodes:[v.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,v.Type_0_does_not_satisfy_the_constraint_1.code,v.Type_0_is_not_assignable_to_type_1.code,v.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,v.Type_predicate_0_is_not_assignable_to_1.code,v.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,v._0_index_type_1_is_not_assignable_to_2_index_type_3.code,v.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,v.Property_0_in_type_1_is_not_assignable_to_type_2.code,v.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,v.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:LIt});function LIt(e){let t=e.sourceFile,n=Dr(Ki(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return n?EUe(e,n):[]}function EUe(e,t){let n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&Fh(n.symbol)&&n.symbol.links.originatingImport))return[];let i=[],s=n.symbol.links.originatingImport;if(Dp(s)||On(i,RIt(e,s)),Pt(t)&&!(Hu(t.parent)&&t.parent.name===t)){let a=e.sourceFile,u=bn.ChangeTracker.with(e,m=>m.replaceNode(a,t,U.createPropertyAccessExpression(t,"default"),{}));i.push(ug(TUe,u,v.Use_synthetic_default_member))}return i}var TTe="strictClassInitialization",bTe="addMissingPropertyDefiniteAssignmentAssertions",ETe="addMissingPropertyUndefinedType",xTe="addMissingPropertyInitializer",xUe=[v.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];xo({errorCodes:xUe,getCodeActions:function(t){let n=CUe(t.sourceFile,t.span.start);if(!n)return;let i=[];return Ut(i,jIt(t,n)),Ut(i,FIt(t,n)),Ut(i,BIt(t,n)),i},fixIds:[bTe,ETe,xTe],getAllCodeActions:e=>La(e,xUe,(t,n)=>{let i=CUe(n.file,n.start);if(i)switch(e.fixId){case bTe:AUe(t,n.file,i.prop);break;case ETe:kUe(t,n.file,i);break;case xTe:let s=e.program.getTypeChecker(),a=NUe(s,i.prop);if(!a)return;PUe(t,n.file,i.prop,a);break;default:M.fail(JSON.stringify(e.fixId))}})});function CUe(e,t){let n=Ki(e,t);if($e(n)&&Ds(n.parent)){let i=Vl(n.parent);if(i)return{type:i,prop:n.parent,isJs:vn(n.parent)}}}function FIt(e,t){if(t.isJs)return;let n=bn.ChangeTracker.with(e,i=>AUe(i,e.sourceFile,t.prop));return ro(TTe,n,[v.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],bTe,v.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function AUe(e,t,n){yp(n);let i=U.updatePropertyDeclaration(n,n.modifiers,n.name,U.createToken(54),n.type,n.initializer);e.replaceNode(t,n,i)}function jIt(e,t){let n=bn.ChangeTracker.with(e,i=>kUe(i,e.sourceFile,t));return ro(TTe,n,[v.Add_undefined_type_to_property_0,t.prop.name.getText()],ETe,v.Add_undefined_type_to_all_uninitialized_properties)}function kUe(e,t,n){let i=U.createKeywordTypeNode(157),s=Z1(n.type)?n.type.types.concat(i):[n.type,i],a=U.createUnionTypeNode(s);n.isJs?e.addJSDocTags(t,n.prop,[U.createJSDocTypeTag(void 0,U.createJSDocTypeExpression(a))]):e.replaceNode(t,n.type,a)}function BIt(e,t){if(t.isJs)return;let n=e.program.getTypeChecker(),i=NUe(n,t.prop);if(!i)return;let s=bn.ChangeTracker.with(e,a=>PUe(a,e.sourceFile,t.prop,i));return ro(TTe,s,[v.Add_initializer_to_property_0,t.prop.name.getText()],xTe,v.Add_initializers_to_all_uninitialized_properties)}function PUe(e,t,n,i){yp(n);let s=U.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,i);e.replaceNode(t,n,s)}function NUe(e,t){return DUe(e,e.getTypeFromTypeNode(t.type))}function DUe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?U.createFalse():U.createTrue();if(t.isStringLiteral())return U.createStringLiteral(t.value);if(t.isNumberLiteral())return U.createNumericLiteral(t.value);if(t.flags&2048)return U.createBigIntLiteral(t.value);if(t.isUnion())return di(t.types,n=>DUe(e,n));if(t.isClass()){let n=T0(t.symbol);if(!n||_i(n,64))return;let i=Py(n);return i&&i.parameters.length?void 0:U.createNewExpression(U.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return U.createArrayLiteralExpression()}var CTe="requireInTs",IUe=[v.require_call_may_be_converted_to_an_import.code];xo({errorCodes:IUe,getCodeActions(e){let t=OUe(e.sourceFile,e.program,e.span.start);if(!t)return;let n=bn.ChangeTracker.with(e,i=>wUe(i,e.sourceFile,t));return[ro(CTe,n,v.Convert_require_to_import,CTe,v.Convert_all_require_to_import)]},fixIds:[CTe],getAllCodeActions:e=>La(e,IUe,(t,n)=>{let i=OUe(n.file,e.program,n.start);i&&wUe(t,e.sourceFile,i)})});function wUe(e,t,n){let{allowSyntheticDefaults:i,defaultImportName:s,namedImports:a,statement:u,required:m}=n;e.replaceNode(t,u,s&&!i?U.createImportEqualsDeclaration(void 0,!1,s,U.createExternalModuleReference(m)):U.createImportDeclaration(void 0,U.createImportClause(!1,s,a),m,void 0))}function OUe(e,t,n){let{parent:i}=Ki(e,n);Nf(i,!0)||M.failBadSyntaxKind(i);let s=ao(i.parent,Ci),a=ci(s.name,$e),u=Kp(s.name)?UIt(s.name):void 0;if(a||u)return{allowSyntheticDefaults:TA(t.getCompilerOptions()),defaultImportName:a,namedImports:u,statement:ao(s.parent.parent,fl),required:Fo(i.arguments)}}function UIt(e){let t=[];for(let n of e.elements){if(!$e(n.name)||n.initializer)return;t.push(U.createImportSpecifier(!1,ci(n.propertyName,$e),n.name))}if(t.length)return U.createNamedImports(t)}var ATe="useDefaultImport",RUe=[v.Import_may_be_converted_to_a_default_import.code];xo({errorCodes:RUe,getCodeActions(e){let{sourceFile:t,span:{start:n}}=e,i=MUe(t,n);if(!i)return;let s=bn.ChangeTracker.with(e,a=>LUe(a,t,i,e.preferences));return[ro(ATe,s,v.Convert_to_default_import,ATe,v.Convert_all_to_default_imports)]},fixIds:[ATe],getAllCodeActions:e=>La(e,RUe,(t,n)=>{let i=MUe(n.file,n.start);i&&LUe(t,n.file,i,e.preferences)})});function MUe(e,t){let n=Ki(e,t);if(!$e(n))return;let{parent:i}=n;if(nu(i)&&A0(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(Ry(i)&&Yc(i.parent.parent)){let s=i.parent.parent;return{importNode:s,name:n,moduleSpecifier:s.moduleSpecifier}}}function LUe(e,t,n,i){e.replaceNode(t,n.importNode,uS(n.name,void 0,n.moduleSpecifier,td(t,i)))}var kTe="useBigintLiteral",FUe=[v.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];xo({errorCodes:FUe,getCodeActions:function(t){let n=bn.ChangeTracker.with(t,i=>jUe(i,t.sourceFile,t.span));if(n.length>0)return[ro(kTe,n,v.Convert_to_a_bigint_numeric_literal,kTe,v.Convert_all_to_bigint_numeric_literals)]},fixIds:[kTe],getAllCodeActions:e=>La(e,FUe,(t,n)=>jUe(t,n.file,n))});function jUe(e,t,n){let i=ci(Ki(t,n.start),Df);if(!i)return;let s=i.getText(t)+"n";e.replaceNode(t,i,U.createBigIntLiteral(s))}var VIt="fixAddModuleReferTypeMissingTypeof",PTe=VIt,BUe=[v.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];xo({errorCodes:BUe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=UUe(n,i.start),a=bn.ChangeTracker.with(t,u=>VUe(u,n,s));return[ro(PTe,a,v.Add_missing_typeof,PTe,v.Add_missing_typeof)]},fixIds:[PTe],getAllCodeActions:e=>La(e,BUe,(t,n)=>VUe(t,e.sourceFile,UUe(n.file,n.start)))});function UUe(e,t){let n=Ki(e,t);return M.assert(n.kind===102,"This token should be an ImportKeyword"),M.assert(n.parent.kind===205,"Token parent should be an ImportType"),n.parent}function VUe(e,t,n){let i=U.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,i)}var NTe="wrapJsxInFragment",JUe=[v.JSX_expressions_must_have_one_parent_element.code];xo({errorCodes:JUe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=qUe(n,i.start);if(!s)return;let a=bn.ChangeTracker.with(t,u=>zUe(u,n,s));return[ro(NTe,a,v.Wrap_in_JSX_fragment,NTe,v.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[NTe],getAllCodeActions:e=>La(e,JUe,(t,n)=>{let i=qUe(e.sourceFile,n.start);i&&zUe(t,e.sourceFile,i)})});function qUe(e,t){let s=Ki(e,t).parent.parent;if(!(!Dn(s)&&(s=s.parent,!Dn(s)))&&Gc(s.operatorToken))return s}function zUe(e,t,n){let i=JIt(n);i&&e.replaceNode(t,n,U.createJsxFragment(U.createJsxOpeningFragment(),i,U.createJsxJsxClosingFragment()))}function JIt(e){let t=[],n=e;for(;;)if(Dn(n)&&Gc(n.operatorToken)&&n.operatorToken.kind===28){if(t.push(n.left),X3(n.right))return t.push(n.right),t;if(Dn(n.right)){n=n.right;continue}else return}else return}var DTe="wrapDecoratorInParentheses",WUe=[v.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];xo({errorCodes:WUe,getCodeActions:function(t){let n=bn.ChangeTracker.with(t,i=>GUe(i,t.sourceFile,t.span.start));return[ro(DTe,n,v.Wrap_in_parentheses,DTe,v.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[DTe],getAllCodeActions:e=>La(e,WUe,(t,n)=>GUe(t,n.file,n.start))});function GUe(e,t,n){let i=Ki(t,n),s=Dr(i,pu);M.assert(!!s,"Expected position to be owned by a decorator.");let a=U.createParenthesizedExpression(s.expression);e.replaceNode(t,s.expression,a)}var ITe="fixConvertToMappedObjectType",HUe=[v.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];xo({errorCodes:HUe,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=$Ue(n,i.start);if(!s)return;let a=bn.ChangeTracker.with(t,m=>YUe(m,n,s)),u=In(s.container.name);return[ro(ITe,a,[v.Convert_0_to_mapped_object_type,u],ITe,[v.Convert_0_to_mapped_object_type,u])]},fixIds:[ITe],getAllCodeActions:e=>La(e,HUe,(t,n)=>{let i=$Ue(n.file,n.start);i&&YUe(t,n.file,i)})});function $Ue(e,t){let n=Ki(e,t),i=ci(n.parent.parent,fE);if(!i)return;let s=Xu(i.parent)?i.parent:ci(i.parent.parent,sm);if(s)return{indexSignature:i,container:s}}function qIt(e,t){return U.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function YUe(e,t,{indexSignature:n,container:i}){let a=(Xu(i)?i.members:i.type.members).filter(E=>!fE(E)),u=Fo(n.parameters),m=U.createTypeParameterDeclaration(void 0,ao(u.name,$e),u.type),d=U.createMappedTypeNode(Ww(n)?U.createModifier(148):void 0,m,void 0,n.questionToken,n.type,void 0),S=U.createIntersectionTypeNode([...Fw(i),d,...a.length?[U.createTypeLiteralNode(a)]:ve]);e.replaceNode(t,i,qIt(i,S))}var KUe="removeAccidentalCallParentheses",zIt=[v.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];xo({errorCodes:zIt,getCodeActions(e){let t=Dr(Ki(e.sourceFile,e.span.start),to);if(!t)return;let n=bn.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[ug(KUe,n,v.Remove_parentheses)]},fixIds:[KUe]});var wTe="removeUnnecessaryAwait",XUe=[v.await_has_no_effect_on_the_type_of_this_expression.code];xo({errorCodes:XUe,getCodeActions:function(t){let n=bn.ChangeTracker.with(t,i=>QUe(i,t.sourceFile,t.span));if(n.length>0)return[ro(wTe,n,v.Remove_unnecessary_await,wTe,v.Remove_all_unnecessary_uses_of_await)]},fixIds:[wTe],getAllCodeActions:e=>La(e,XUe,(t,n)=>QUe(t,n.file,n))});function QUe(e,t,n){let i=ci(Ki(t,n.start),m=>m.kind===135),s=i&&ci(i.parent,eS);if(!s)return;let a=s;if(ff(s.parent)){let m=_N(s.expression,!1);if($e(m)){let d=su(s.parent.pos,t);d&&d.kind!==105&&(a=s.parent)}}e.replaceNode(t,a,s.expression)}var ZUe=[v.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],OTe="splitTypeOnlyImport";xo({errorCodes:ZUe,fixIds:[OTe],getCodeActions:function(t){let n=bn.ChangeTracker.with(t,i=>tVe(i,eVe(t.sourceFile,t.span),t));if(n.length)return[ro(OTe,n,v.Split_into_two_separate_import_declarations,OTe,v.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>La(e,ZUe,(t,n)=>{tVe(t,eVe(e.sourceFile,n),e)})});function eVe(e,t){return Dr(Ki(e,t.start),Yc)}function tVe(e,t,n){if(!t)return;let i=M.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,U.updateImportDeclaration(t,t.modifiers,U.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,U.createImportDeclaration(void 0,U.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var RTe="fixConvertConstToLet",rVe=[v.Cannot_assign_to_0_because_it_is_a_constant.code];xo({errorCodes:rVe,getCodeActions:function(t){let{sourceFile:n,span:i,program:s}=t,a=nVe(n,i.start,s);if(a===void 0)return;let u=bn.ChangeTracker.with(t,m=>iVe(m,n,a.token));return[$1e(RTe,u,v.Convert_const_to_let,RTe,v.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,n=new Map;return fk(bn.ChangeTracker.with(e,i=>{pk(e,rVe,s=>{let a=nVe(s.file,s.start,t);if(a&&tm(n,Po(a.symbol)))return iVe(i,s.file,a.token)})}))},fixIds:[RTe]});function nVe(e,t,n){var i;let a=n.getTypeChecker().getSymbolAtLocation(Ki(e,t));if(a===void 0)return;let u=ci((i=a?.valueDeclaration)==null?void 0:i.parent,Fu);if(u===void 0)return;let m=Ma(u,87,e);if(m!==void 0)return{symbol:a,token:m}}function iVe(e,t,n){e.replaceNode(t,n,U.createToken(121))}var MTe="fixExpectedComma",WIt=v._0_expected.code,sVe=[WIt];xo({errorCodes:sVe,getCodeActions(e){let{sourceFile:t}=e,n=oVe(t,e.span.start,e.errorCode);if(!n)return;let i=bn.ChangeTracker.with(e,s=>aVe(s,t,n));return[ro(MTe,i,[v.Change_0_to_1,";",","],MTe,[v.Change_0_to_1,";",","])]},fixIds:[MTe],getAllCodeActions:e=>La(e,sVe,(t,n)=>{let i=oVe(n.file,n.start,n.code);i&&aVe(t,e.sourceFile,i)})});function oVe(e,t,n){let i=Ki(e,t);return i.kind===27&&i.parent&&(ko(i.parent)||Ku(i.parent))?{node:i}:void 0}function aVe(e,t,{node:n}){let i=U.createToken(28);e.replaceNode(t,n,i)}var GIt="addVoidToPromise",cVe="addVoidToPromise",lVe=[v.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,v.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];xo({errorCodes:lVe,fixIds:[cVe],getCodeActions(e){let t=bn.ChangeTracker.with(e,n=>uVe(n,e.sourceFile,e.span,e.program));if(t.length>0)return[ro(GIt,t,v.Add_void_to_Promise_resolved_without_a_value,cVe,v.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return La(e,lVe,(t,n)=>uVe(t,n.file,n,e.program,new Set))}});function uVe(e,t,n,i,s){let a=Ki(t,n.start);if(!$e(a)||!to(a.parent)||a.parent.expression!==a||a.parent.arguments.length!==0)return;let u=i.getTypeChecker(),m=u.getSymbolAtLocation(a),d=m?.valueDeclaration;if(!d||!is(d)||!gE(d.parent.parent)||s?.has(d))return;s?.add(d);let S=HIt(d.parent.parent);if(Dt(S)){let E=S[0],x=!Z1(E)&&!o2(E)&&o2(U.createUnionTypeNode([E,U.createKeywordTypeNode(116)]).types[0]);x&&e.insertText(t,E.pos,"("),e.insertText(t,E.end,x?") | void":" | void")}else{let E=u.getResolvedSignature(a.parent),x=E?.parameters[0],D=x&&u.getTypeOfSymbolAtLocation(x,d.parent.parent);vn(d)?(!D||D.flags&3)&&(e.insertText(t,d.parent.parent.end,")"),e.insertText(t,zo(t.text,d.parent.parent.pos),"/** @type {Promise} */(")):(!D||D.flags&2)&&e.insertText(t,d.parent.parent.expression.end,"")}}function HIt(e){var t;if(vn(e)){if(ff(e.parent)){let n=(t=tT(e.parent))==null?void 0:t.typeExpression.type;if(n&&Yp(n)&&$e(n.typeName)&&In(n.typeName)==="Promise")return n.typeArguments}}else return e.typeArguments}var hk={};k(hk,{CompletionKind:()=>PVe,CompletionSource:()=>fVe,SortText:()=>N_,StringCompletions:()=>Jee,SymbolOriginInfoKind:()=>pVe,createCompletionDetails:()=>GV,createCompletionDetailsForSymbol:()=>qTe,getCompletionEntriesFromSymbols:()=>VTe,getCompletionEntryDetails:()=>Ewt,getCompletionEntrySymbol:()=>Cwt,getCompletionsAtPosition:()=>twt,getPropertiesForObjectExpression:()=>Bee,moduleSpecifierResolutionCacheAttemptLimit:()=>_Ve,moduleSpecifierResolutionLimit:()=>LTe});var LTe=100,_Ve=1e3,N_={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},fVe=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(fVe||{}),pVe=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(pVe||{});function $It(e){return!!(e.kind&1)}function YIt(e){return!!(e.kind&2)}function zV(e){return!!(e&&e.kind&4)}function w6(e){return!!(e&&e.kind===32)}function KIt(e){return zV(e)||w6(e)||FTe(e)}function XIt(e){return(zV(e)||w6(e))&&!!e.isFromPackageJson}function QIt(e){return!!(e.kind&8)}function ZIt(e){return!!(e.kind&16)}function dVe(e){return!!(e&&e.kind&64)}function mVe(e){return!!(e&&e.kind&128)}function ewt(e){return!!(e&&e.kind&256)}function FTe(e){return!!(e&&e.kind&512)}function gVe(e,t,n,i,s,a,u,m,d){var S,E,x;let D=Tc(),I=u||bA(cf(i.getCompilerOptions())),R=!1,L=0,F=0,J=0,$=0,q=d({tryResolve:W,skippedAny:()=>R,resolvedAny:()=>F>0,resolvedBeyondLimit:()=>F>LTe}),ee=$?` (${(J/$*100).toFixed(1)}% hit rate)`:"";return(S=t.log)==null||S.call(t,`${e}: resolved ${F} module specifiers, plus ${L} ambient and ${J} from cache${ee}`),(E=t.log)==null||E.call(t,`${e}: response is ${R?"incomplete":"complete"}`),(x=t.log)==null||x.call(t,`${e}: ${Tc()-D}`),q;function W(pe,K){if(K){let ne=n.getModuleSpecifierForBestExportInfo(pe,s,m);return ne&&L++,ne||"failed"}let re=I||a.allowIncompleteCompletions&&F{let R=Yi(d.entries,L=>{var F;if(!L.hasAction||!L.source||!L.data||hVe(L.data))return L;if(!zVe(L.name,E))return;let{origin:J}=M.checkDefined(DVe(L.name,L.data,i,s)),$=x.get(t.path,L.data.exportMapKey),q=$&&I.tryResolve($,!Su(em(J.moduleSymbol.name)));if(q==="skipped")return L;if(!q||q==="failed"){(F=s.log)==null||F.call(s,`Unexpected failure resolving auto import for '${L.name}' from '${L.source}'`);return}let ee={...J,kind:32,moduleSpecifier:q.moduleSpecifier};return L.data=CVe(ee),L.source=UTe(ee),L.sourceDisplay=[rd(ee.moduleSpecifier)],L});return I.skippedAny()||(d.isIncomplete=void 0),R});return d.entries=D,d.flags=(d.flags||0)|4,d.optionalReplacementSpan=TVe(S),d}function jTe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function yVe(e,t,n,i,s,a){let u=Ki(e,t);if(!BP(u)&&!sg(u))return[];let m=sg(u)?u:u.parent;if(!sg(m))return[];let d=m.parent;if(!Us(d))return[];let S=Pf(e),E=s.includeCompletionsWithSnippetText||void 0,x=yy(m.tags,D=>Nd(D)&&D.getEnd()<=t);return Yi(d.parameters,D=>{if(!RP(D).length){if($e(D.name)){let I={tabstop:1},R=D.name.text,L=$8(R,D.initializer,D.dotDotDotToken,S,!1,!1,n,i,s),F=E?$8(R,D.initializer,D.dotDotDotToken,S,!1,!0,n,i,s,I):void 0;return a&&(L=L.slice(1),F&&(F=F.slice(1))),{name:L,kind:"parameter",sortText:N_.LocationPriority,insertText:E?F:void 0,isSnippet:E}}else if(D.parent.parameters.indexOf(D)===x){let I=`param${x}`,R=vVe(I,D.name,D.initializer,D.dotDotDotToken,S,!1,n,i,s),L=E?vVe(I,D.name,D.initializer,D.dotDotDotToken,S,!0,n,i,s):void 0,F=R.join(wv(i)+"* "),J=L?.join(wv(i)+"* ");return a&&(F=F.slice(1),J&&(J=J.slice(1))),{name:F,kind:"parameter",sortText:N_.LocationPriority,insertText:E?J:void 0,isSnippet:E}}}})}function vVe(e,t,n,i,s,a,u,m,d){if(!s)return[$8(e,n,i,s,!1,a,u,m,d,{tabstop:1})];return S(e,t,n,i,{tabstop:1});function S(x,D,I,R,L){if(Kp(D)&&!R){let J={tabstop:L.tabstop},$=$8(x,I,R,s,!0,a,u,m,d,J),q=[];for(let ee of D.elements){let W=E(x,ee,J);if(W)q.push(...W);else{q=void 0;break}}if(q)return L.tabstop=J.tabstop,[$,...q]}return[$8(x,I,R,s,!1,a,u,m,d,L)]}function E(x,D,I){if(!D.propertyName&&$e(D.name)||$e(D.name)){let R=D.propertyName?Aw(D.propertyName):D.name.text;if(!R)return;let L=`${x}.${R}`;return[$8(L,D.initializer,D.dotDotDotToken,s,!1,a,u,m,d,I)]}else if(D.propertyName){let R=Aw(D.propertyName);return R&&S(`${x}.${R}`,D.name,D.initializer,D.dotDotDotToken,I)}}}function $8(e,t,n,i,s,a,u,m,d,S){if(a&&M.assertIsDefined(S),t&&(e=nwt(e,t)),a&&(e=_E(e)),i){let E="*";if(s)M.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),E="Object";else{if(t){let I=u.getTypeAtLocation(t.parent);if(!(I.flags&16385)){let R=t.getSourceFile(),F=td(R,d)===0?268435456:0,J=u.typeToTypeNode(I,Dr(t,Us),F);if(J){let $=a?Ree({removeComments:!0,module:m.module,target:m.target}):aS({removeComments:!0,module:m.module,target:m.target});xn(J,1),E=$.printNode(4,J,R)}}}a&&E==="*"&&(E=`\${${S.tabstop++}:${E}}`)}let x=!s&&n?"...":"",D=a?`\${${S.tabstop++}}`:"";return`@param {${x}${E}} ${e} ${D}`}else{let E=a?`\${${S.tabstop++}}`:"";return`@param ${e} ${E}`}}function nwt(e,t){let n=t.getText().trim();return n.includes(`
`)||n.length>80?`[${e}]`:`[${e}=${n}]`}function iwt(e){return{name:bo(e),kind:"keyword",kindModifiers:"",sortText:N_.GlobalsOrKeywords}}function swt(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function SVe(e,t,n){return{kind:4,keywordCompletions:wVe(e,t),isNewIdentifierLocation:n}}function owt(e){switch(e){case 156:return 8;default:M.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function TVe(e){return e?.kind===80?gf(e):void 0}function awt(e,t,n,i,s,a,u,m,d,S){let{symbols:E,contextToken:x,completionKind:D,isInSnippetScope:I,isNewIdentifierLocation:R,location:L,propertyAccessToConvert:F,keywordFilters:J,symbolToOriginInfoMap:$,recommendedCompletion:q,isJsxInitializer:ee,isTypeOnlyLocation:W,isJsxIdentifierExpected:pe,isRightOfOpenTag:K,isRightOfDotOrQuestionDot:re,importStatementCompletion:ue,insideJsDocTagTypeExpression:ce,symbolToSortTextMap:ne,hasUnresolvedAutoImports:le}=a,me=a.literals,de=n.getTypeChecker();if(YR(e.scriptKind)===1){let Ve=lwt(L,e);if(Ve)return Ve}let Ae=Dr(x,TN);if(Ae&&(qde(x)||rE(x,Ae.expression))){let Ve=mV(de,Ae.parent.clauses);me=me.filter(Pe=>!Ve.hasValue(Pe)),E.forEach((Pe,ke)=>{if(Pe.valueDeclaration&&nS(Pe.valueDeclaration)){let De=de.getConstantValue(Pe.valueDeclaration);De!==void 0&&Ve.hasValue(De)&&($[ke]={kind:256})}})}let xe=Rx(),te=bVe(e,i);if(te&&!R&&(!E||E.length===0)&&J===0)return;let he=VTe(E,xe,void 0,x,L,d,e,t,n,Qo(i),s,D,u,i,m,W,F,pe,ee,ue,q,$,ne,pe,K,S);if(J!==0)for(let Ve of wVe(J,!ce&&Pf(e)))(W&&d6(Jb(Ve.name))||!W&&zwt(Ve.name)||!he.has(Ve.name))&&(he.add(Ve.name),u0(xe,Ve,WV,void 0,!0));for(let Ve of Iwt(x,d))he.has(Ve.name)||(he.add(Ve.name),u0(xe,Ve,WV,void 0,!0));for(let Ve of me){let Pe=_wt(e,u,Ve);he.add(Pe.name),u0(xe,Pe,WV,void 0,!0)}te||uwt(e,L.pos,he,Qo(i),xe);let Te;if(u.includeCompletionsWithInsertText&&x&&!K&&!re&&(Te=Dr(x,PO))){let Ve=EVe(Te,e,u,i,t,n,m);Ve&&xe.push(Ve.entry)}return{flags:a.flags,isGlobalCompletion:I,isIncomplete:u.allowIncompleteCompletions&&le?!0:void 0,isMemberCompletion:cwt(D),isNewIdentifierLocation:R,optionalReplacementSpan:TVe(L),entries:xe}}function bVe(e,t){return!Pf(e)||!!aO(e,t)}function EVe(e,t,n,i,s,a,u){let m=e.clauses,d=a.getTypeChecker(),S=d.getTypeAtLocation(e.parent.expression);if(S&&S.isUnion()&&Oi(S.types,E=>E.isLiteral())){let E=mV(d,m),x=Qo(i),D=td(t,n),I=P_.createImportAdder(t,a,n,s),R=[];for(let W of S.types)if(W.flags&1024){M.assert(W.symbol,"An enum member type should have a symbol"),M.assert(W.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let pe=W.symbol.valueDeclaration&&d.getConstantValue(W.symbol.valueDeclaration);if(pe!==void 0){if(E.hasValue(pe))continue;E.addValue(pe)}let K=P_.typeToAutoImportableTypeNode(d,I,W,e,x);if(!K)return;let re=wee(K,x,D);if(!re)return;R.push(re)}else if(!E.hasValue(W.value))switch(typeof W.value){case"object":R.push(W.value.negative?U.createPrefixUnaryExpression(41,U.createBigIntLiteral({negative:!1,base10Value:W.value.base10Value})):U.createBigIntLiteral(W.value));break;case"number":R.push(W.value<0?U.createPrefixUnaryExpression(41,U.createNumericLiteral(-W.value)):U.createNumericLiteral(W.value));break;case"string":R.push(U.createStringLiteral(W.value,D===0));break}if(R.length===0)return;let L=kr(R,W=>U.createCaseClause(W,[])),F=Jv(s,u?.options),J=Ree({removeComments:!0,module:i.module,target:i.target,newLine:w8(F)}),$=u?W=>J.printAndFormatNode(4,W,t,u):W=>J.printNode(4,W,t),q=kr(L,(W,pe)=>n.includeCompletionsWithSnippetText?`${$(W)}$${pe+1}`:`${$(W)}`).join(F);return{entry:{name:`${J.printNode(4,L[0],t)} ...`,kind:"",sortText:N_.GlobalsOrKeywords,insertText:q,hasAction:I.hasFixes()||void 0,source:"SwitchCases/",isSnippet:n.includeCompletionsWithSnippetText?!0:void 0},importAdder:I}}}function wee(e,t,n){switch(e.kind){case 183:let i=e.typeName;return Oee(i,t,n);case 199:let s=wee(e.objectType,t,n),a=wee(e.indexType,t,n);return s&&a&&U.createElementAccessExpression(s,a);case 201:let u=e.literal;switch(u.kind){case 11:return U.createStringLiteral(u.text,n===0);case 9:return U.createNumericLiteral(u.text,u.numericLiteralFlags)}return;case 196:let m=wee(e.type,t,n);return m&&($e(m)?m:U.createParenthesizedExpression(m));case 186:return Oee(e.exprName,t,n);case 205:M.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Oee(e,t,n){if($e(e))return e;let i=Zi(e.right.escapedText);return J$(i,t)?U.createPropertyAccessExpression(Oee(e.left,t,n),i):U.createElementAccessExpression(Oee(e.left,t,n),U.createStringLiteral(i,n===0))}function cwt(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function lwt(e,t){let n=Dr(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(n){let i=!!Ma(n,32,t),u=n.parent.openingElement.tagName.getText(t)+(i?"":">"),m=gf(n.tagName),d={name:u,kind:"class",kindModifiers:void 0,sortText:N_.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:m,entries:[d]}}}function uwt(e,t,n,i,s){tee(e).forEach((a,u)=>{if(a===t)return;let m=Zi(u);!n.has(m)&&ap(m,i)&&(n.add(m),u0(s,{name:m,kind:"warning",kindModifiers:"",sortText:N_.JavascriptIdentifiers,isFromUncheckedFile:!0},WV))})}function BTe(e,t,n){return typeof n=="object"?uE(n)+"n":bs(n)?S6(e,t,n):JSON.stringify(n)}function _wt(e,t,n){return{name:BTe(e,t,n),kind:"string",kindModifiers:"",sortText:N_.LocationPriority}}function fwt(e,t,n,i,s,a,u,m,d,S,E,x,D,I,R,L,F,J,$,q,ee,W,pe,K){var re,ue;let ce,ne,le=DQ(n,a),me,de,Ae=UTe(x),xe,te,he,Te=d.getTypeChecker(),Ve=x&&ZIt(x),Pe=x&&YIt(x)||E;if(x&&$It(x))ce=E?`this${Ve?"?.":""}[${AVe(u,$,S)}]`:`this${Ve?"?.":"."}${S}`;else if((Pe||Ve)&&I){ce=Pe?E?`[${AVe(u,$,S)}]`:`[${S}]`:S,(Ve||I.questionDotToken)&&(ce=`?.${ce}`);let De=Ma(I,25,u)||Ma(I,29,u);if(!De)return;let Be=fs(S,I.name.text)?I.name.end:De.end;le=wl(De.getStart(u),Be)}if(R&&(ce===void 0&&(ce=S),ce=`{${ce}}`,typeof R!="boolean"&&(le=gf(R,u))),x&&QIt(x)&&I){ce===void 0&&(ce=S);let De=su(I.pos,u),Be="";De&&nV(De.end,De.parent,u)&&(Be=";"),Be+=`(await ${I.expression.getText()})`,ce=E?`${Be}${ce}`:`${Be}${Ve?"?.":"."}${ce}`;let ze=ci(I.parent,eS)?I.parent:I.expression;le=wl(ze.getStart(u),I.end)}if(w6(x)&&(xe=[rd(x.moduleSpecifier)],L&&({insertText:ce,replacementSpan:le}=vwt(S,L,x,F,u,J,$),de=$.includeCompletionsWithSnippetText?!0:void 0)),x?.kind===64&&(te=!0),q===0&&i&&((re=su(i.pos,u,i))==null?void 0:re.kind)!==28&&(_l(i.parent.parent)||$p(i.parent.parent)||dp(i.parent.parent)||Ly(i.parent)||((ue=Dr(i.parent,ql))==null?void 0:ue.getLastToken(u))===i||m_(i.parent)&&Eo(u,i.getEnd()).line!==Eo(u,a).line)&&(Ae="ObjectLiteralMemberWithComma/",te=!0),$.includeCompletionsWithClassMemberSnippets&&$.includeCompletionsWithInsertText&&q===3&&pwt(e,s,u)){let De,Be=xVe(m,d,J,$,S,e,s,a,i,ee);if(Be)({insertText:ce,filterText:ne,isSnippet:de,importAdder:De}=Be),(De?.hasFixes()||Be.eraseRange)&&(te=!0,Ae="ClassMemberSnippet/");else return}if(x&&mVe(x)&&({insertText:ce,isSnippet:de,labelDetails:he}=x,$.useLabelDetailsInCompletionEntries||(S=S+he.detail,he=void 0),Ae="ObjectLiteralMethodSnippet/",t=N_.SortBelow(t)),W&&!pe&&$.includeCompletionsWithSnippetText&&$.jsxAttributeCompletionStyle&&$.jsxAttributeCompletionStyle!=="none"&&!(Yg(s.parent)&&s.parent.initializer)){let De=$.jsxAttributeCompletionStyle==="braces",Be=Te.getTypeOfSymbolAtLocation(e,s);$.jsxAttributeCompletionStyle==="auto"&&!(Be.flags&528)&&!(Be.flags&1048576&&jn(Be.types,lt=>!!(lt.flags&528)))&&(Be.flags&402653316||Be.flags&1048576&&Oi(Be.types,lt=>!!(lt.flags&402686084||D0e(lt)))?(ce=`${_E(S)}=${S6(u,$,"$1")}`,de=!0):De=!0),De&&(ce=`${_E(S)}={$1}`,de=!0)}if(ce!==void 0&&!$.includeCompletionsWithInsertText)return;(zV(x)||w6(x))&&(me=CVe(x),te=!L);let ke=Dr(s,$9);if(ke?.kind===275){let De=Jb(S);ke&&De&&(De===135||JH(De))&&(ce=`${S} as ${S}_`)}return{name:S,kind:Wv.getSymbolKind(Te,e,s),kindModifiers:Wv.getSymbolModifiers(Te,e),sortText:t,source:Ae,hasAction:te?!0:void 0,isRecommended:Swt(e,D,Te)||void 0,insertText:ce,filterText:ne,replacementSpan:le,sourceDisplay:xe,labelDetails:he,isSnippet:de,isPackageJsonImport:XIt(x)||void 0,isImportStatementCompletion:!!L||void 0,data:me,...K?{symbol:e}:void 0}}function pwt(e,t,n){return vn(t)?!1:!!(e.flags&106500)&&(vi(t)||t.parent&&t.parent.parent&&_u(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&vi(t.parent.parent)||t.parent&&CN(t)&&vi(t.parent))}function xVe(e,t,n,i,s,a,u,m,d,S){let E=Dr(u,vi);if(!E)return;let x,D=s,I=s,R=t.getTypeChecker(),L=u.getSourceFile(),F=Ree({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:w8(Jv(e,S?.options))}),J=P_.createImportAdder(L,t,i,e),$;if(i.includeCompletionsWithSnippetText){x=!0;let ue=U.createEmptyStatement();$=U.createBlock([ue],!0),Q$(ue,{kind:0,order:0})}else $=U.createBlock([],!0);let q=0,{modifiers:ee,range:W,decorators:pe}=dwt(d,L,m),K=ee&64&&E.modifierFlagsCache&64,re=[];if(P_.addNewNodeForMemberSymbol(a,E,L,{program:t,host:e},i,J,ue=>{let ce=0;K&&(ce|=64),_u(ue)&&R.getMemberOverrideModifierStatus(E,ue,a)===1&&(ce|=16),re.length||(q=ue.modifierFlagsCache|ce),ue=U.replaceModifiers(ue,q),re.push(ue)},$,P_.PreserveOptionalFlags.Property,!!K),re.length){let ue=a.flags&8192,ce=q|16|1;ue?ce|=1024:ce|=136;let ne=ee&ce;if(ee&~ce)return;if(q&4&&ne&1&&(q&=-5),ne!==0&&!(ne&1)&&(q&=-2),q|=ne,re=re.map(me=>U.replaceModifiers(me,q)),pe?.length){let me=re[re.length-1];bE(me)&&(re[re.length-1]=U.replaceDecoratorsAndModifiers(me,pe.concat(qb(me)||[])))}let le=131073;S?D=F.printAndFormatSnippetList(le,U.createNodeArray(re),L,S):D=F.printSnippetList(le,U.createNodeArray(re),L)}return{insertText:D,filterText:I,isSnippet:x,importAdder:J,eraseRange:W}}function dwt(e,t,n){if(!e||Eo(t,n).line>Eo(t,e.getEnd()).line)return{modifiers:0};let i=0,s,a,u={pos:n,end:n};if(Ds(e.parent)&&(a=mwt(e))){e.parent.modifiers&&(i|=Ug(e.parent.modifiers)&98303,s=e.parent.modifiers.filter(pu)||[],u.pos=Math.min(...e.parent.modifiers.map(d=>d.getStart(t))));let m=dA(a);i&m||(i|=m,u.pos=Math.min(u.pos,e.getStart(t))),e.parent.name!==e&&(u.end=e.parent.name.getStart(t))}return{modifiers:i,decorators:s,range:u.posm.getSignaturesOfType(q,0).length>0);if($.length===1)I=$[0];else return}if(m.getSignaturesOfType(I,0).length!==1)return;let L=m.typeToTypeNode(I,t,D,P_.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!L||!Vh(L))return;let F;if(a.includeCompletionsWithSnippetText){let $=U.createEmptyStatement();F=U.createBlock([$],!0),Q$($,{kind:0,order:0})}else F=U.createBlock([],!0);let J=L.parameters.map($=>U.createParameterDeclaration(void 0,$.dotDotDotToken,$.name,void 0,void 0,$.initializer));return U.createMethodDeclaration(void 0,void 0,S,void 0,void 0,J,void 0,F)}default:return}}function Ree(e){let t,n=bn.createWriter(wv(e)),i=aS(e,n),s={...n,write:D=>a(D,()=>n.write(D)),nonEscapingWrite:n.write,writeLiteral:D=>a(D,()=>n.writeLiteral(D)),writeStringLiteral:D=>a(D,()=>n.writeStringLiteral(D)),writeSymbol:(D,I)=>a(D,()=>n.writeSymbol(D,I)),writeParameter:D=>a(D,()=>n.writeParameter(D)),writeComment:D=>a(D,()=>n.writeComment(D)),writeProperty:D=>a(D,()=>n.writeProperty(D))};return{printSnippetList:u,printAndFormatSnippetList:d,printNode:S,printAndFormatNode:x};function a(D,I){let R=_E(D);if(R!==D){let L=n.getTextPos();I();let F=n.getTextPos();t=Ut(t||(t=[]),{newText:R,span:{start:L,length:F-L}})}else I()}function u(D,I,R){let L=m(D,I,R);return t?bn.applyChanges(L,t):L}function m(D,I,R){return t=void 0,s.clear(),i.writeList(D,I,R,s),s.getText()}function d(D,I,R,L){let F={text:m(D,I,R),getLineAndCharacterOfPosition(ee){return Eo(this,ee)}},J=dV(L,R),$=To(I,ee=>{let W=bn.assignPositionsToNode(ee);return zl.formatNodeGivenIndentation(W,F,R.languageVariant,0,0,{...L,options:J})}),q=t?Zs(ds($,t),(ee,W)=>a5(ee.span,W.span)):$;return bn.applyChanges(F.text,q)}function S(D,I,R){let L=E(D,I,R);return t?bn.applyChanges(L,t):L}function E(D,I,R){return t=void 0,s.clear(),i.writeNode(D,I,R,s),s.getText()}function x(D,I,R,L){let F={text:E(D,I,R),getLineAndCharacterOfPosition(W){return Eo(this,W)}},J=dV(L,R),$=bn.assignPositionsToNode(I),q=zl.formatNodeGivenIndentation($,F,R.languageVariant,0,0,{...L,options:J}),ee=t?Zs(ds(q,t),(W,pe)=>a5(W.span,pe.span)):q;return bn.applyChanges(F.text,ee)}}function CVe(e){let t=e.fileName?void 0:em(e.moduleSymbol.name),n=e.isFromPackageJson?!0:void 0;return w6(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:em(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function ywt(e,t,n){let i=e.exportName==="default",s=!!e.isPackageJsonImport;return hVe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}}function vwt(e,t,n,i,s,a,u){let m=t.replacementSpan,d=_E(S6(s,u,n.moduleSpecifier)),S=n.isDefaultExport?1:n.exportName==="export="?2:0,E=u.includeCompletionsWithSnippetText?"$1":"",x=P_.getImportKind(s,S,a,!0),D=t.couldBeTypeOnlyImportSpecifier,I=t.isTopLevelTypeOnly?` ${bo(156)} `:" ",R=D?`${bo(156)} `:"",L=i?";":"";switch(x){case 3:return{replacementSpan:m,insertText:`import${I}${_E(e)}${E} = require(${d})${L}`};case 1:return{replacementSpan:m,insertText:`import${I}${_E(e)}${E} from ${d}${L}`};case 2:return{replacementSpan:m,insertText:`import${I}* as ${_E(e)} from ${d}${L}`};case 0:return{replacementSpan:m,insertText:`import${I}{ ${R}${_E(e)}${E} } from ${d}${L}`}}}function AVe(e,t,n){return/^\d+$/.test(n)?n:S6(e,t,n)}function Swt(e,t,n){return e===t||!!(e.flags&1048576)&&n.getExportSymbolOfSymbol(e)===t}function UTe(e){if(zV(e))return em(e.moduleSymbol.name);if(w6(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function VTe(e,t,n,i,s,a,u,m,d,S,E,x,D,I,R,L,F,J,$,q,ee,W,pe,K,re,ue=!1){let ce=Tc(),ne=Vwt(i,s),le=P8(u),me=d.getTypeChecker(),de=new Map;for(let te=0;tett.getSourceFile()===s.getSourceFile()));de.set(Pe,ze),u0(t,lt,WV,void 0,!0)}return E("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Tc()-ce)),{has:te=>de.has(te),add:te=>de.set(te,!0)};function Ae(te,he){var Te;let Ve=te.flags;if(!qi(s)){if(pc(s.parent))return!0;if(ci(ne,Ci)&&te.valueDeclaration===ne)return!1;let Pe=te.valueDeclaration??((Te=te.declarations)==null?void 0:Te[0]);if(ne&&Pe&&(Cc(ne)&&Cc(Pe)||is(ne)&&is(Pe))){let De=Pe.pos,Be=is(ne)?ne.parent.parameters:s2(ne.parent)?void 0:ne.parent.typeParameters;if(De>=ne.pos&&Be&&DeBTe(n,u,q)===s.name);return $!==void 0?{type:"literal",literal:$}:di(S,(q,ee)=>{let W=I[ee],pe=Lee(q,Qo(m),W,D,d.isJsxIdentifierExpected);return pe&&pe.name===s.name&&(s.source==="ClassMemberSnippet/"&&q.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&q.flags&8196||UTe(W)===s.source||s.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:q,location:x,origin:W,contextToken:R,previousToken:L,isJsxInitializer:F,isTypeOnlyLocation:J}:void 0})||{type:"none"}}function Ewt(e,t,n,i,s,a,u,m,d){let S=e.getTypeChecker(),E=e.getCompilerOptions(),{name:x,source:D,data:I}=s,{previousToken:R,contextToken:L}=Mee(i,n);if(sk(n,i,R))return Jee.getStringLiteralCompletionDetails(x,n,i,R,e,a,d,m);let F=kVe(e,t,n,i,s,a,m);switch(F.type){case"request":{let{request:J}=F;switch(J.kind){case 1:return BT.getJSDocTagNameCompletionDetails(x);case 2:return BT.getJSDocTagCompletionDetails(x);case 3:return BT.getJSDocParameterNameCompletionDetails(x);case 4:return Dt(J.keywordCompletions,$=>$.name===x)?JTe(x,"keyword",5):void 0;default:return M.assertNever(J)}}case"symbol":{let{symbol:J,location:$,contextToken:q,origin:ee,previousToken:W}=F,{codeActions:pe,sourceDisplay:K}=xwt(x,$,q,ee,J,e,a,E,n,i,W,u,m,I,D,d),re=FTe(ee)?ee.symbolName:J.name;return qTe(J,re,S,n,$,d,pe,K)}case"literal":{let{literal:J}=F;return JTe(BTe(n,m,J),"string",typeof J=="string"?8:7)}case"cases":{let J=EVe(L.parent,n,m,e.getCompilerOptions(),a,e,void 0);if(J?.importAdder.hasFixes()){let{entry:$,importAdder:q}=J,ee=bn.ChangeTracker.with({host:a,formatContext:u,preferences:m},q.writeFixes);return{name:$.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:ee,description:IE([v.Includes_imports_of_types_referenced_by_0,x])}]}}return{name:x,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return IVe().some(J=>J.name===x)?JTe(x,"keyword",5):void 0;default:M.assertNever(F)}}function JTe(e,t,n){return GV(e,"",t,[zf(e,n)])}function qTe(e,t,n,i,s,a,u,m){let{displayParts:d,documentation:S,symbolKind:E,tags:x}=n.runWithCancellationToken(a,D=>Wv.getSymbolDisplayPartsDocumentationAndSymbolKind(D,e,i,s,s,7));return GV(t,Wv.getSymbolModifiers(n,e),E,d,S,x,u,m)}function GV(e,t,n,i,s,a,u,m){return{name:e,kindModifiers:t,kind:n,displayParts:i,documentation:s,tags:a,codeActions:u,source:m,sourceDisplay:m}}function xwt(e,t,n,i,s,a,u,m,d,S,E,x,D,I,R,L){if(I?.moduleSpecifier&&E&&BVe(n||E,d).replacementSpan)return{codeActions:void 0,sourceDisplay:[rd(I.moduleSpecifier)]};if(R==="ClassMemberSnippet/"){let{importAdder:pe,eraseRange:K}=xVe(u,a,m,D,e,s,t,S,n,x);if(pe?.hasFixes()||K)return{sourceDisplay:void 0,codeActions:[{changes:bn.ChangeTracker.with({host:u,formatContext:x,preferences:D},ue=>{pe&&pe.writeFixes(ue),K&&ue.deleteRange(d,K)}),description:pe?.hasFixes()?IE([v.Includes_imports_of_types_referenced_by_0,e]):IE([v.Update_modifiers_of_0,e])}]}}if(dVe(i)){let pe=P_.getPromoteTypeOnlyCompletionAction(d,i.declaration.name,a,u,x,D);return M.assertIsDefined(pe,"Expected to have a code action for promoting type-only alias"),{codeActions:[pe],sourceDisplay:void 0}}if(R==="ObjectLiteralMemberWithComma/"&&n){let pe=bn.ChangeTracker.with({host:u,formatContext:x,preferences:D},K=>K.insertText(d,n.end,","));if(pe)return{sourceDisplay:void 0,codeActions:[{changes:pe,description:IE([v.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(zV(i)||w6(i)))return{codeActions:void 0,sourceDisplay:void 0};let F=i.isFromPackageJson?u.getPackageJsonAutoImportProvider().getTypeChecker():a.getTypeChecker(),{moduleSymbol:J}=i,$=F.getMergedSymbol($u(s.exportSymbol||s,F)),q=n?.kind===30&&p_(n.parent),{moduleSpecifier:ee,codeAction:W}=P_.getImportCompletionAction($,J,I?.exportMapKey,d,e,q,u,a,x,E&&$e(E)?E.getStart(d):S,D,L);return M.assert(!I?.moduleSpecifier||ee===I.moduleSpecifier),{sourceDisplay:[rd(ee)],codeActions:[W]}}function Cwt(e,t,n,i,s,a,u){let m=kVe(e,t,n,i,s,a,u);return m.type==="symbol"?m.symbol:void 0}var PVe=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(PVe||{});function Awt(e,t,n){return di(t&&(t.isUnion()?t.types:[t]),i=>{let s=i&&i.symbol;return s&&s.flags&424&&!tpe(s)?zTe(s,e,n):void 0})}function kwt(e,t,n,i){let{parent:s}=e;switch(e.kind){case 80:return eV(e,i);case 64:switch(s.kind){case 260:return i.getContextualType(s.initializer);case 226:return i.getTypeAtLocation(s.left);case 291:return i.getContextualTypeForJsxAttribute(s);default:return}case 105:return i.getContextualType(s);case 84:let a=ci(s,TN);return a?rZ(a,i):void 0;case 19:return NO(s)&&!My(s.parent)&&!vE(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:let u=eL.getArgumentInfoForCompletions(e,t,n,i);return u?i.getContextualTypeForArgumentAtIndex(u.invocation,u.argumentIndex):tV(e.kind)&&Dn(s)&&tV(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e,4)||i.getContextualType(e)}}function zTe(e,t,n){let i=n.getAccessibleSymbolChain(e,t,-1,!1);return i?Fo(i):e.parent&&(Pwt(e.parent)?e:zTe(e.parent,t,n))}function Pwt(e){var t;return!!((t=e.declarations)!=null&&t.some(n=>n.kind===307))}function NVe(e,t,n,i,s,a,u,m,d,S){let E=e.getTypeChecker(),x=bVe(n,i),D=Tc(),I=Ki(n,s);t("getCompletionData: Get current token: "+(Tc()-D)),D=Tc();let R=Uv(n,s,I);t("getCompletionData: Is inside comment: "+(Tc()-D));let L=!1,F=!1,J=!1;if(R){if(k0e(n,s)){if(n.text.charCodeAt(s-1)===64)return{kind:1};{let Re=cm(s,n);if(!/[^*|\s(/)]/.test(n.text.substring(Re,s)))return{kind:2}}}let be=wwt(I,s);if(be){if(be.tagName.pos<=s&&s<=be.tagName.end)return{kind:1};if(Kg(be))F=!0;else{let Re=Tr(be);if(Re&&(I=Ki(n,s),(!I||!Bh(I)&&(I.parent.kind!==348||I.parent.name!==I))&&(L=Ue(Re))),!L&&Nd(be)&&(Gc(be.name)||be.name.pos<=s&&s<=be.name.end))return{kind:3,tag:be}}}if(!L&&!F){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}D=Tc();let $=!L&&!F&&Pf(n),q=Mee(s,n),ee=q.previousToken,W=q.contextToken;t("getCompletionData: Get previous token: "+(Tc()-D));let pe=I,K,re=!1,ue=!1,ce=!1,ne=!1,le=!1,me=!1,de,Ae=Of(n,s),xe=0,te=!1,he=0;if(W){let be=BVe(W,n);if(be.keywordCompletion){if(be.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[iwt(be.keywordCompletion)],isNewIdentifierLocation:be.isNewIdentifierLocation};xe=owt(be.keywordCompletion)}if(be.replacementSpan&&a.includeCompletionsForImportStatements&&a.includeCompletionsWithInsertText&&(he|=2,de=be,te=be.isNewIdentifierLocation),!be.replacementSpan&&Vi(W))return t("Returning an empty list because completion was requested in an invalid position."),xe?SVe(xe,$,Ys()):void 0;let Re=W.parent;if(W.kind===25||W.kind===29)switch(re=W.kind===25,ue=W.kind===29,Re.kind){case 211:K=Re,pe=K.expression;let Ot=uN(K);if(Gc(Ot)||(to(pe)||Us(pe))&&pe.end===W.pos&&pe.getChildCount(n)&&qo(pe.getChildren(n)).kind!==22)return;break;case 166:pe=Re.left;break;case 267:pe=Re.name;break;case 205:pe=Re;break;case 236:pe=Re.getFirstToken(n),M.assert(pe.kind===102||pe.kind===105);break;default:return}else if(!de){if(Re&&Re.kind===211&&(W=Re,Re=Re.parent),I.parent===Ae)switch(I.kind){case 32:(I.parent.kind===284||I.parent.kind===286)&&(Ae=I);break;case 44:I.parent.kind===285&&(Ae=I);break}switch(Re.kind){case 287:W.kind===44&&(ne=!0,Ae=W);break;case 226:if(!jVe(Re))break;case 285:case 284:case 286:me=!0,W.kind===30&&(ce=!0,Ae=W);break;case 294:case 293:(ee.kind===20||ee.kind===80&&ee.parent.kind===291)&&(me=!0);break;case 291:if(Re.initializer===ee&&ee.endak(be?m.getPackageJsonAutoImportProvider():e,m));if(re||ue)Ar();else if(ce)ke=E.getJsxIntrinsicTagNamesAt(Ae),M.assertEachIsDefined(ke,"getJsxIntrinsicTagNames() should all be defined"),tn(),Ve=1,xe=0;else if(ne){let be=W.parent.parent.openingElement.tagName,Re=E.getSymbolAtLocation(be);Re&&(ke=[Re]),Ve=1,xe=0}else if(!tn())return xe?SVe(xe,$,te):void 0;t("getCompletionData: Semantic work: "+(Tc()-Te));let ft=ee&&kwt(ee,s,n,E),Qe=!ci(ee,Ia)&&!me?Yi(ft&&(ft.isUnion()?ft.types:[ft]),be=>be.isLiteral()&&!(be.flags&1024)?be.value:void 0):[],yt=ee&&ft&&Awt(ee,ft,E);return{kind:0,symbols:ke,completionKind:Ve,isInSnippetScope:J,propertyAccessToConvert:K,isNewIdentifierLocation:te,location:Ae,keywordFilters:xe,literals:Qe,symbolToOriginInfoMap:Be,recommendedCompletion:yt,previousToken:ee,contextToken:W,isJsxInitializer:le,insideJsDocTagTypeExpression:L,symbolToSortTextMap:lt,isTypeOnlyLocation:tt,isJsxIdentifierExpected:me,isRightOfOpenTag:ce,isRightOfDotOrQuestionDot:re||ue,importStatementCompletion:de,hasUnresolvedAutoImports:Pe,flags:he};function ir(be){switch(be.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!be.constraint;default:return!1}}function Tr(be){if(ir(be)){let Re=om(be)?be.constraint:be.typeExpression;return Re&&Re.kind===309?Re:void 0}if(WA(be)||Yj(be))return be.class}function Ar(){Ve=2;let be=xv(pe),Re=be&&!pe.isTypeOf||Mg(pe.parent)||h8(W,n,E),Ot=NU(pe);if(xf(pe)||be||Hn(pe)){let Ht=xl(pe.parent);Ht&&(te=!0);let $t=E.getSymbolAtLocation(pe);if($t&&($t=$u($t,E),$t.flags&1920)){let gr=E.getExportsOfModule($t);M.assertEachIsDefined(gr,"getExportsOfModule() should all be defined");let Wr=Pr=>E.isValidPropertyAccess(be?pe:pe.parent,Pr.name),Yr=Pr=>GTe(Pr,E),gn=Ht?Pr=>{var Rn;return!!(Pr.flags&1920)&&!((Rn=Pr.declarations)!=null&&Rn.every(Xi=>Xi.parent===pe.parent))}:Ot?Pr=>Yr(Pr)||Wr(Pr):Re||L?Yr:Wr;for(let Pr of gr)gn(Pr)&&ke.push(Pr);if(!Re&&!L&&$t.declarations&&$t.declarations.some(Pr=>Pr.kind!==307&&Pr.kind!==267&&Pr.kind!==266)){let Pr=E.getTypeOfSymbolAtLocation($t,pe).getNonOptionalType(),Rn=!1;if(Pr.isNullableType()){let Xi=re&&!ue&&a.includeAutomaticOptionalChainCompletions!==!1;(Xi||ue)&&(Pr=Pr.getNonNullableType(),Xi&&(Rn=!0))}Vr(Pr,!!(pe.flags&65536),Rn)}return}}if(!Re||fA(pe)){E.tryGetThisTypeAt(pe,!1);let Ht=E.getTypeAtLocation(pe).getNonOptionalType();if(Re)Vr(Ht.getNonNullableType(),!1,!1);else{let $t=!1;if(Ht.isNullableType()){let gr=re&&!ue&&a.includeAutomaticOptionalChainCompletions!==!1;(gr||ue)&&(Ht=Ht.getNonNullableType(),gr&&($t=!0))}Vr(Ht,!!(pe.flags&65536),$t)}}}function Vr(be,Re,Ot){te=!!be.getStringIndexType(),ue&&Dt(be.getCallSignatures())&&(te=!0);let Ht=pe.kind===205?pe:pe.parent;if(x)for(let $t of be.getApparentProperties())E.isValidPropertyAccessForCompletions(Ht,be,$t)&&fr($t,!1,Ot);else ke.push(...ti(Uee(be,E),$t=>E.isValidPropertyAccessForCompletions(Ht,be,$t)));if(Re&&a.includeCompletionsWithInsertText){let $t=E.getPromisedTypeOfPromise(be);if($t)for(let gr of $t.getApparentProperties())E.isValidPropertyAccessForCompletions(Ht,$t,gr)&&fr(gr,!0,Ot)}}function fr(be,Re,Ot){var Ht;let $t=di(be.declarations,gn=>ci(Ns(gn),Go));if($t){let gn=ur($t.expression),Pr=gn&&E.getSymbolAtLocation(gn),Rn=Pr&&zTe(Pr,W,E),Xi=Rn&&Po(Rn);if(Xi&&tm(ze,Xi)){let us=ke.length;ke.push(Rn);let Xn=Rn.parent;if(!Xn||!UP(Xn)||E.tryGetMemberInModuleExportsAndProperties(Rn.name,Xn)!==Rn)Be[us]={kind:Yr(2)};else{let hi=Su(em(Xn.name))?(Ht=X5(Xn))==null?void 0:Ht.fileName:void 0,{moduleSpecifier:Cr}=(De||(De=P_.createImportSpecifierResolver(n,e,m,a))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:hi,isFromPackageJson:!1,moduleSymbol:Xn,symbol:Rn,targetFlags:$u(Rn,E).flags}],s,gT(Ae))||{};if(Cr){let nn={kind:Yr(6),moduleSymbol:Xn,isDefaultExport:!1,symbolName:Rn.name,exportName:Rn.name,fileName:hi,moduleSpecifier:Cr};Be[us]=nn}}}else if(a.includeCompletionsWithInsertText){if(Xi&&ze.has(Xi))return;Wr(be),gr(be),ke.push(be)}}else Wr(be),gr(be),ke.push(be);function gr(gn){jwt(gn)&&(lt[Po(gn)]=N_.LocalDeclarationPriority)}function Wr(gn){a.includeCompletionsWithInsertText&&(Re&&tm(ze,Po(gn))?Be[ke.length]={kind:Yr(8)}:Ot&&(Be[ke.length]={kind:16}))}function Yr(gn){return Ot?gn|16:gn}}function ur(be){return $e(be)?be:Hn(be)?ur(be.expression):void 0}function tn(){return(ia()||ut()||Di()||Tt()||fe()||St()||Mi()||Ce()||br()||(As(),1))===1}function Mi(){return Me(W)?(Ve=5,te=!0,xe=4,1):0}function br(){let be=pt(W),Re=be&&E.getContextualType(be.attributes);if(!Re)return 0;let Ot=be&&E.getContextualType(be.attributes,4);return ke=ds(ke,z(Bee(Re,Ot,be.attributes,E),be.attributes.properties)),Ye(),Ve=3,te=!1,1}function Di(){return de?(te=!0,Xt(),1):0}function As(){xe=rt(W)?5:1,Ve=1,te=Ys(),ee!==W&&M.assert(!!ee,"Expected 'contextToken' to be defined when different from 'previousToken'.");let be=ee!==W?ee.getStart():s,Re=ki(W,be,n)||n;J=Ri(Re);let Ot=(tt?0:111551)|788968|1920|2097152,Ht=ee&&!gT(ee);ke=ds(ke,E.getSymbolsInScope(Re,Ot)),M.assertEachIsDefined(ke,"getSymbolsInScope() should all be defined");for(let $t=0;$tWr.getSourceFile()===n)&&(lt[Po(gr)]=N_.GlobalsOrKeywords),Ht&&!(gr.flags&111551)){let Wr=gr.declarations&&jn(gr.declarations,hw);if(Wr){let Yr={kind:64,declaration:Wr};Be[$t]=Yr}}}if(a.includeCompletionsWithInsertText&&Re.kind!==307){let $t=E.tryGetThisTypeAt(Re,!1,vi(Re.parent)?Re:void 0);if($t&&!Fwt($t,n,E))for(let gr of Uee($t,E))Be[ke.length]={kind:1},ke.push(gr),lt[Po(gr)]=N_.SuggestedClassMembers}Xt(),tt&&(xe=W&&sT(W.parent)?6:7)}function os(){var be;return de?!0:a.includeCompletionsForModuleExports?n.externalModuleIndicator||n.commonJsModuleIndicator||LQ(e.getCompilerOptions())?!0:((be=e.getSymlinkCache)==null?void 0:be.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||O0e(e):!1}function Ri(be){switch(be.kind){case 307:case 228:case 294:case 241:return!0;default:return Ji(be)}}function $r(){return L||F||!!de&&iT(Ae.parent)||!Qs(W)&&(h8(W,n,E)||Mg(Ae)||He(W))}function Qs(be){return be&&(be.kind===114&&(be.parent.kind===186||SN(be.parent))||be.kind===131&&be.parent.kind===182)}function He(be){if(be){let Re=be.parent.kind;switch(be.kind){case 59:return Re===172||Re===171||Re===169||Re===260||KC(Re);case 64:return Re===265||Re===168;case 130:return Re===234;case 30:return Re===183||Re===216;case 96:return Re===168;case 152:return Re===238}}return!1}function Xt(){var be,Re;if(!os()||(M.assert(!u?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),u&&!u.source))return;he|=1;let Ht=ee===W&&de?"":ee&&$e(ee)?ee.text.toLowerCase():"",$t=(be=m.getModuleSpecifierCache)==null?void 0:be.call(m),gr=O8(n,m,e,a,S),Wr=(Re=m.getPackageJsonAutoImportProvider)==null?void 0:Re.call(m),Yr=u?void 0:eD(n,a,m);gVe("collectAutoImports",m,De||(De=P_.createImportSpecifierResolver(n,e,m,a)),e,s,a,!!de,gT(Ae),Pr=>{gr.search(n.path,ce,(Rn,Xi)=>{if(!ap(Rn,Qo(m.getCompilationSettings()))||!u&&_A(Rn)||!tt&&!de&&!(Xi&111551)||tt&&!(Xi&790504))return!1;let us=Rn.charCodeAt(0);return ce&&(us<65||us>90)?!1:u?!0:zVe(Rn,Ht)},(Rn,Xi,us,Xn)=>{if(u&&!Dt(Rn,pa=>u.source===em(pa.moduleSymbol.name))||(Rn=ti(Rn,gn),!Rn.length))return;let hi=Pr.tryResolve(Rn,us)||{};if(hi==="failed")return;let Cr=Rn[0],nn;hi!=="skipped"&&({exportInfo:Cr=Rn[0],moduleSpecifier:nn}=hi);let rr=Cr.exportKind===1,zs=rr&&$w(M.checkDefined(Cr.symbol))||M.checkDefined(Cr.symbol);qr(zs,{kind:nn?32:4,moduleSpecifier:nn,symbolName:Xi,exportMapKey:Xn,exportName:Cr.exportKind===2?"export=":M.checkDefined(Cr.symbol).name,fileName:Cr.moduleFileName,isDefaultExport:rr,moduleSymbol:Cr.moduleSymbol,isFromPackageJson:Cr.isFromPackageJson})}),Pe=Pr.skippedAny(),he|=Pr.resolvedAny()?8:0,he|=Pr.resolvedBeyondLimit()?16:0});function gn(Pr){let Rn=ci(Pr.moduleSymbol.valueDeclaration,qi);if(!Rn){let Xi=em(Pr.moduleSymbol.name);return Zg.nodeCoreModules.has(Xi)&&fs(Xi,"node:")!==pV(n,e)?!1:Yr?Yr.allowsImportingAmbientModule(Pr.moduleSymbol,we(Pr.isFromPackageJson)):!0}return mZ(Pr.isFromPackageJson?Wr:e,n,Rn,a,Yr,we(Pr.isFromPackageJson),$t)}}function qr(be,Re){let Ot=Po(be);lt[Ot]!==N_.GlobalsOrKeywords&&(Be[ke.length]=Re,lt[Ot]=de?N_.LocationPriority:N_.AutoImportSuggestions,ke.push(be))}function Pn(be,Re){vn(Ae)||be.forEach(Ot=>{if(!Ti(Ot))return;let Ht=Lee(Ot,Qo(i),void 0,0,!1);if(!Ht)return;let{name:$t}=Ht,gr=gwt(Ot,$t,Re,e,m,i,a,d);if(!gr)return;let Wr={kind:128,...gr};he|=32,Be[ke.length]=Wr,ke.push(Ot)})}function Ti(be){return!!(be.flags&8196)}function ki(be,Re,Ot){let Ht=be;for(;Ht&&!TQ(Ht,Re,Ot);)Ht=Ht.parent;return Ht}function Vi(be){let Re=Tc(),Ot=Sr(be)||Oe(be)||Vt(be)||uo(be)||fM(be);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Tc()-Re)),Ot}function uo(be){if(be.kind===12)return!0;if(be.kind===32&&be.parent){if(Ae===be.parent&&(Ae.kind===286||Ae.kind===285))return!1;if(be.parent.kind===286)return Ae.parent.kind!==286;if(be.parent.kind===287||be.parent.kind===285)return!!be.parent.parent&&be.parent.parent.kind===284}return!1}function Ys(){if(W){let be=W.parent.kind,Re=jee(W);switch(Re){case 28:return be===213||be===176||be===214||be===209||be===226||be===184||be===210;case 21:return be===213||be===176||be===214||be===217||be===196;case 23:return be===209||be===181||be===167;case 144:case 145:case 102:return!0;case 25:return be===267;case 19:return be===263||be===210;case 64:return be===260||be===226;case 16:return be===228;case 17:return be===239;case 134:return be===174||be===304;case 42:return be===174}if(HV(Re))return!0}return!1}function Sr(be){return(rY(be)||HG(be))&&(d8(be,s)||s===be.end&&(!!be.isUnterminated||rY(be)))}function ia(){let be=Mwt(W);if(!be)return 0;let Ot=(BA(be.parent)?be.parent:void 0)||be,Ht=FVe(Ot,E);if(!Ht)return 0;let $t=E.getTypeFromTypeNode(Ot),gr=Uee(Ht,E),Wr=Uee($t,E),Yr=new Set;return Wr.forEach(gn=>Yr.add(gn.escapedName)),ke=ds(ke,ti(gr,gn=>!Yr.has(gn.escapedName))),Ve=0,te=!0,1}function ut(){if(W?.kind===26)return 0;let be=ke.length,Re=Nwt(W,s,n);if(!Re)return 0;Ve=0;let Ot,Ht;if(Re.kind===210){let $t=Bwt(Re,E);if($t===void 0)return Re.flags&67108864?2:0;let gr=E.getContextualType(Re,4),Wr=(gr||$t).getStringIndexType(),Yr=(gr||$t).getNumberIndexType();if(te=!!Wr||!!Yr,Ot=Bee($t,gr,Re,E),Ht=Re.properties,Ot.length===0&&!Yr)return 0}else{M.assert(Re.kind===206),te=!1;let $t=jg(Re.parent);if(!nA($t))return M.fail("Root declaration is not variable-like.");let gr=bv($t)||!!Vl($t)||$t.parent.parent.kind===250;if(!gr&&$t.kind===169&&(Pt($t.parent)?gr=!!E.getContextualType($t.parent):($t.parent.kind===174||$t.parent.kind===178)&&(gr=Pt($t.parent.parent)&&!!E.getContextualType($t.parent.parent))),gr){let Wr=E.getTypeAtLocation(Re);if(!Wr)return 2;Ot=E.getPropertiesOfType(Wr).filter(Yr=>E.isPropertyAccessible(Re,!1,!1,Wr,Yr)),Ht=Re.elements}}if(Ot&&Ot.length>0){let $t=sr(Ot,M.checkDefined(Ht));ke=ds(ke,$t),Ye(),Re.kind===210&&a.includeCompletionsWithObjectLiteralMethodSnippets&&a.includeCompletionsWithInsertText&&(Q(be),Pn($t,Re))}return 1}function Tt(){if(!W)return 0;let be=W.kind===19||W.kind===28?ci(W.parent,$9):WU(W)?ci(W.parent.parent,$9):void 0;if(!be)return 0;WU(W)||(xe=8);let{moduleSpecifier:Re}=be.kind===275?be.parent.parent:be.parent;if(!Re)return te=!0,be.kind===275?2:0;let Ot=E.getSymbolAtLocation(Re);if(!Ot)return te=!0,2;Ve=3,te=!1;let Ht=E.getExportsAndPropertiesOfModule(Ot),$t=new Set(be.elements.filter(Wr=>!Ue(Wr)).map(Wr=>(Wr.propertyName||Wr.name).escapedText)),gr=Ht.filter(Wr=>Wr.escapedName!=="default"&&!$t.has(Wr.escapedName));return ke=ds(ke,gr),gr.length||(xe=0),1}function fe(){if(W===void 0)return 0;let be=W.kind===19||W.kind===28?ci(W.parent,l2):W.kind===59?ci(W.parent.parent,l2):void 0;if(be===void 0)return 0;let Re=new Set(be.elements.map(xj));return ke=ti(E.getTypeAtLocation(be).getApparentProperties(),Ot=>!Re.has(Ot.escapedName)),1}function St(){var be;let Re=W&&(W.kind===19||W.kind===28)?ci(W.parent,Pd):void 0;if(!Re)return 0;let Ot=Dr(Re,qp(qi,xl));return Ve=5,te=!1,(be=Ot.locals)==null||be.forEach((Ht,$t)=>{var gr,Wr;ke.push(Ht),(Wr=(gr=Ot.symbol)==null?void 0:gr.exports)!=null&&Wr.has($t)&&(lt[Po(Ht)]=N_.OptionalMember)}),1}function Ce(){let be=Rwt(n,W,Ae,s);if(!be)return 0;if(Ve=3,te=!0,xe=W.kind===42?0:vi(be)?2:3,!vi(be))return 1;let Re=W.kind===27?W.parent.parent:W.parent,Ot=_u(Re)?V_(Re):0;if(W.kind===80&&!Ue(W))switch(W.getText()){case"private":Ot=Ot|2;break;case"static":Ot=Ot|256;break;case"override":Ot=Ot|16;break}if($c(Re)&&(Ot|=256),!(Ot&2)){let Ht=vi(be)&&Ot&16?zC(Lg(be)):Fw(be),$t=To(Ht,gr=>{let Wr=E.getTypeAtLocation(gr);return Ot&256?Wr?.symbol&&E.getPropertiesOfType(E.getTypeOfSymbolAtLocation(Wr.symbol,be)):Wr&&E.getPropertiesOfType(Wr)});ke=ds(ke,Xe($t,be.members,Ot)),Et(ke,(gr,Wr)=>{let Yr=gr?.valueDeclaration;if(Yr&&_u(Yr)&&Yr.name&&Go(Yr.name)){let gn={kind:512,symbolName:E.symbolToString(gr)};Be[Wr]=gn}})}return 1}function it(be){return!!be.parent&&is(be.parent)&&Vc(be.parent.parent)&&(yw(be.kind)||Bh(be))}function Me(be){if(be){let Re=be.parent;switch(be.kind){case 21:case 28:return Vc(be.parent)?be.parent:void 0;default:if(it(be))return Re.parent}}}function rt(be){if(be){let Re,Ot=Dr(be.parent,Ht=>vi(Ht)?"quit":$a(Ht)&&Re===Ht.body?!0:(Re=Ht,!1));return Ot&&Ot}}function pt(be){if(be){let Re=be.parent;switch(be.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Re&&(Re.kind===285||Re.kind===286)){if(be.kind===32){let Ot=su(be.pos,n,void 0);if(!Re.typeArguments||Ot&&Ot.kind===44)break}return Re}else if(Re.kind===291)return Re.parent.parent;break;case 11:if(Re&&(Re.kind===291||Re.kind===293))return Re.parent.parent;break;case 20:if(Re&&Re.kind===294&&Re.parent&&Re.parent.kind===291)return Re.parent.parent.parent;if(Re&&Re.kind===293)return Re.parent.parent;break}}}function nr(be,Re){return n.getLineEndOfPosition(be.getEnd())=be.pos;case 25:return Ot===207;case 59:return Ot===208;case 23:return Ot===207;case 21:return Ot===299||It(Ot);case 19:return Ot===266;case 30:return Ot===263||Ot===231||Ot===264||Ot===265||KC(Ot);case 126:return Ot===172&&!vi(Re.parent);case 26:return Ot===169||!!Re.parent&&Re.parent.kind===207;case 125:case 123:case 124:return Ot===169&&!Vc(Re.parent);case 130:return Ot===276||Ot===281||Ot===274;case 139:case 153:return!Vee(be);case 80:{if(Ot===276&&be===Re.name&&be.text==="type"||Dr(be.parent,Ci)&&nr(be,s))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ot!==276;case 42:return Us(be.parent)&&!_l(be.parent)}if(HV(jee(be))&&Vee(be)||it(be)&&(!$e(be)||yw(jee(be))||Ue(be)))return!1;switch(jee(be)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Ds(be.parent)}if(Dr(be.parent,vi)&&be===ee&&Nt(be,s))return!1;let $t=pT(be.parent,172);if($t&&be!==ee&&vi(ee.parent.parent)&&s<=ee.end){if(Nt(be,ee.end))return!1;if(be.kind!==64&&(zM($t)||z5($t)))return!0}return Bh(be)&&!m_(be.parent)&&!Yg(be.parent)&&!((vi(be.parent)||Xu(be.parent)||Cc(be.parent))&&(be!==ee||s>ee.end))}function Nt(be,Re){return be.kind!==64&&(be.kind===27||!xd(be.end,Re,n))}function It(be){return KC(be)&&be!==176}function Vt(be){if(be.kind===9){let Re=be.getFullText();return Re.charAt(Re.length-1)==="."}return!1}function Mt(be){return be.parent.kind===261&&!h8(be,n,E)}function sr(be,Re){if(Re.length===0)return be;let Ot=new Set,Ht=new Set;for(let gr of Re){if(gr.kind!==303&&gr.kind!==304&&gr.kind!==208&&gr.kind!==174&&gr.kind!==177&&gr.kind!==178&&gr.kind!==305||Ue(gr))continue;let Wr;if(Ly(gr))Z(gr,Ot);else if(Zo(gr)&&gr.propertyName)gr.propertyName.kind===80&&(Wr=gr.propertyName.escapedText);else{let Yr=Ns(gr);Wr=Yr&&Fg(Yr)?Uw(Yr):void 0}Wr!==void 0&&Ht.add(Wr)}let $t=be.filter(gr=>!Ht.has(gr.escapedName));return bt(Ot,$t),$t}function Z(be,Re){let Ot=be.expression,Ht=E.getSymbolAtLocation(Ot),$t=Ht&&E.getTypeOfSymbolAtLocation(Ht,Ot),gr=$t&&$t.properties;gr&&gr.forEach(Wr=>{Re.add(Wr.name)})}function Ye(){ke.forEach(be=>{if(be.flags&16777216){let Re=Po(be);lt[Re]=lt[Re]??N_.OptionalMember}})}function bt(be,Re){if(be.size!==0)for(let Ot of Re)be.has(Ot.name)&&(lt[Po(Ot)]=N_.MemberDeclaredBySpreadAssignment)}function Q(be){for(let Re=be;Re!Ht.has($t.escapedName)&&!!$t.declarations&&!(Cd($t)&2)&&!($t.valueDeclaration&&B_($t.valueDeclaration)))}function z(be,Re){let Ot=new Set,Ht=new Set;for(let gr of Re)Ue(gr)||(gr.kind===291?Ot.add(dO(gr.name)):zA(gr)&&Z(gr,Ht));let $t=be.filter(gr=>!Ot.has(gr.escapedName));return bt(Ht,$t),$t}function Ue(be){return be.getStart(n)<=s&&s<=be.getEnd()}}function Nwt(e,t,n){var i;if(e){let{parent:s}=e;switch(e.kind){case 19:case 28:if(ko(s)||Kp(s))return s;break;case 42:return _l(s)?ci(s.parent,ko):void 0;case 134:return ci(s.parent,ko);case 80:if(e.text==="async"&&m_(e.parent))return e.parent.parent;{if(ko(e.parent.parent)&&(Ly(e.parent)||m_(e.parent)&&Eo(n,e.getEnd()).line!==Eo(n,t).line))return e.parent.parent;let u=Dr(s,ql);if(u?.getLastToken(n)===e&&ko(u.parent))return u.parent}break;default:if((i=s.parent)!=null&&i.parent&&(_l(s.parent)||$p(s.parent)||dp(s.parent))&&ko(s.parent.parent))return s.parent.parent;if(Ly(s)&&ko(s.parent))return s.parent;let a=Dr(s,ql);if(e.kind!==59&&a?.getLastToken(n)===e&&ko(a.parent))return a.parent}}}function Mee(e,t){let n=su(e,t);return n&&e<=n.end&&(xy(n)||af(n.kind))?{contextToken:su(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function DVe(e,t,n,i){let s=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,a=s.getTypeChecker(),u=t.ambientModuleName?a.tryFindAmbientModule(t.ambientModuleName):t.fileName?a.getMergedSymbol(M.checkDefined(s.getSourceFile(t.fileName)).symbol):void 0;if(!u)return;let m=t.exportName==="export="?a.resolveExternalModuleSymbol(u):a.tryGetMemberInModuleExportsAndProperties(t.exportName,u);return m?(m=t.exportName==="default"&&$w(m)||m,{symbol:m,origin:ywt(t,e,u)}):void 0}function Lee(e,t,n,i,s){if(ewt(n))return;let a=KIt(n)?n.symbolName:e.name;if(a===void 0||e.flags&1536&&yR(a.charCodeAt(0))||LR(e))return;let u={name:a,needsConvertPropertyAccess:!1};if(ap(a,t,s?1:0)||e.valueDeclaration&&B_(e.valueDeclaration))return u;switch(i){case 3:return FTe(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(a),needsConvertPropertyAccess:!1};case 2:case 1:return a.charCodeAt(0)===32?void 0:{name:a,needsConvertPropertyAccess:!0};case 5:case 4:return u;default:M.assertNever(i)}}var Fee=[],IVe=nf(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:bo(t),kind:"keyword",kindModifiers:"",sortText:N_.GlobalsOrKeywords});return e});function wVe(e,t){if(!t)return OVe(e);let n=e+8+1;return Fee[n]||(Fee[n]=OVe(e).filter(i=>!Dwt(Jb(i.name))))}function OVe(e){return Fee[e]||(Fee[e]=IVe().filter(t=>{let n=Jb(t.name);switch(e){case 0:return!1;case 1:return MVe(n)||n===138||n===144||n===156||n===145||n===128||d6(n)&&n!==157;case 5:return MVe(n);case 2:return HV(n);case 3:return RVe(n);case 4:return yw(n);case 6:return d6(n)||n===87;case 7:return d6(n);case 8:return n===156;default:return M.assertNever(e)}}))}function Dwt(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function RVe(e){return e===148}function HV(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return $G(e)}}function MVe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!k9(e)&&!HV(e)}function jee(e){return $e(e)?Jx(e)??0:e.kind}function Iwt(e,t){let n=[];if(e){let i=e.getSourceFile(),s=e.parent,a=i.getLineAndCharacterOfPosition(e.end).line,u=i.getLineAndCharacterOfPosition(t).line;(Yc(s)||Cl(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&a===u&&n.push({name:bo(132),kind:"keyword",kindModifiers:"",sortText:N_.GlobalsOrKeywords})}return n}function wwt(e,t){return Dr(e,n=>BP(n)&&p8(n,t)?!0:sg(n)?"quit":!1)}function Bee(e,t,n,i){let s=t&&t!==e,a=s&&!(t.flags&3)?i.getUnionType([e,t]):e,u=Owt(a,n,i);return a.isClass()&&LVe(u)?[]:s?ti(u,m):u;function m(d){return kt(d.declarations)?Dt(d.declarations,S=>S.parent!==n):!0}}function Owt(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(ti(e.types,i=>!(i.flags&402784252||n.isArrayLikeType(i)||n.isTypeInvalidDueToUnionDiscriminant(i,t)||n.typeHasCallOrConstructSignatures(i)||i.isClass()&&LVe(i.getApparentProperties())))):e.getApparentProperties()}function LVe(e){return Dt(e,t=>!!(Cd(t)&6))}function Uee(e,t){return e.isUnion()?M.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):M.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function Rwt(e,t,n,i){switch(n.kind){case 352:return ci(n.parent,hA);case 1:let s=ci(yc(ao(n.parent,qi).statements),hA);if(s&&!Ma(s,20,e))return s;break;case 81:if(ci(n.parent,Ds))return Dr(n,vi);break;case 80:{if(Jx(n)||Ds(n.parent)&&n.parent.initializer===n)return;if(Vee(n))return Dr(n,hA)}}if(t){if(n.kind===137||$e(t)&&Ds(t.parent)&&vi(n))return Dr(t,vi);switch(t.kind){case 64:return;case 27:case 20:return Vee(n)&&n.parent.name===n?n.parent.parent:ci(n,hA);case 19:case 28:return ci(t.parent,hA);default:if(hA(n)){if(Eo(e,t.getEnd()).line!==Eo(e,i).line)return n;let s=vi(t.parent.parent)?HV:RVe;return s(t.kind)||t.kind===42||$e(t)&&s(Jx(t)??0)?t.parent.parent:void 0}return}}}function Mwt(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(_f(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&_f(t.parent))return t.parent;break}}function FVe(e,t){if(!e)return;if(wi(e)&&W5(e.parent))return t.getTypeArgumentConstraint(e);let n=FVe(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function Vee(e){return e.parent&&F5(e.parent)&&hA(e.parent.parent)}function Lwt(e,t,n,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&X0e(n)&&i===n.getStart(e)+1;case"#":return!!n&&es(n)&&!!Lu(n);case"<":return!!n&&n.kind===30&&(!Dn(n.parent)||jVe(n.parent));case"/":return!!n&&(Ia(n)?!!AR(n):n.kind===44&&yE(n.parent));case" ":return!!n&&bO(n)&&n.parent.kind===307;default:return M.assertNever(t)}}function jVe({left:e}){return Gc(e)}function Fwt(e,t,n){let i=n.resolveName("self",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;let s=n.resolveName("global",void 0,111551,!1);if(s&&n.getTypeOfSymbolAtLocation(s,t)===e)return!0;let a=n.resolveName("globalThis",void 0,111551,!1);return!!(a&&n.getTypeOfSymbolAtLocation(a,t)===e)}function jwt(e){return!!(e.valueDeclaration&&V_(e.valueDeclaration)&256&&vi(e.valueDeclaration.parent))}function Bwt(e,t){let n=t.getContextualType(e);if(n)return n;let i=h0(e.parent);if(Dn(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(Pt(i))return t.getContextualType(i)}function BVe(e,t){var n,i,s;let a,u=!1,m=d();return{isKeywordOnlyCompletion:u,keywordCompletion:a,isNewIdentifierLocation:!!(m||a===156),isTopLevelTypeOnly:!!((i=(n=ci(m,Yc))==null?void 0:n.importClause)!=null&&i.isTypeOnly)||!!((s=ci(m,nu))!=null&&s.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!m&&VVe(m,e),replacementSpan:Uwt(m)};function d(){let S=e.parent;if(nu(S)){let E=S.getLastToken(t);if($e(e)&&E!==e){a=161,u=!0;return}return a=e.kind===156?void 0:156,WTe(S.moduleReference)?S:void 0}if(VVe(S,e)&&JVe(S.parent))return S;if(Hg(S)||Ry(S)){if(!S.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(a=156),JVe(S))if(e.kind===20||e.kind===80)u=!0,a=161;else return S.parent.parent;return}if(Cl(S)&&e.kind===42||Pd(S)&&e.kind===20){u=!0,a=161;return}if(bO(e)&&qi(S))return a=156,e;if(bO(e)&&Yc(S))return a=156,WTe(S.moduleSpecifier)?S:void 0}}function Uwt(e){var t;if(!e)return;let n=Dr(e,qp(Yc,nu,Kg))??e,i=n.getSourceFile();if(n2(n,i))return gf(n,i);M.assert(n.kind!==102&&n.kind!==276);let s=n.kind===272||n.kind===351?UVe((t=n.importClause)==null?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,a={pos:n.getFirstToken().getStart(),end:s.pos};if(n2(a,i))return lS(a)}function UVe(e){var t;return jn((t=ci(e,Hg))==null?void 0:t.elements,n=>{var i;return!n.propertyName&&_A(n.name.text)&&((i=su(n.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function VVe(e,t){return pf(e)&&(e.isTypeOnly||t===e.name&&WU(t))}function JVe(e){if(!WTe(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(Hg(e)){let t=UVe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function WTe(e){var t;return Gc(e)?!0:!((t=ci(A0(e)?e.expression:e,Ia))!=null&&t.text)}function Vwt(e,t){if(!e)return;let n=Dr(e,s=>Xb(s)||qVe(s)||$s(s)?"quit":(is(s)||Cc(s))&&!fE(s.parent)),i=Dr(t,s=>Xb(s)||qVe(s)||$s(s)?"quit":Ci(s));return n||i}function qVe(e){return e.parent&&fc(e.parent)&&(e.parent.body===e||e.kind===39)}function GTe(e,t,n=new Map){return i(e)||i($u(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&tm(n,Po(s))&&t.getExportsOfModule(s).some(a=>GTe(a,t,n))}}function Jwt(e,t){let n=$u(e,t).declarations;return!!kt(n)&&Oi(n,fV)}function zVe(e,t){if(t.length===0)return!0;let n=!1,i,s=0,a=e.length;for(let u=0;uHwt,getStringLiteralCompletions:()=>Wwt});var WVe={directory:0,script:1,"external module name":2};function HTe(){let e=new Map;function t(n){let i=e.get(n.name);(!i||WVe[i.kind]({name:Uh(I.value,x),kindModifiers:"",kind:"string",sortText:N_.LocationPriority,replacementSpan:DQ(t,d)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:E,entries:D}}default:return M.assertNever(e)}}function Hwt(e,t,n,i,s,a,u,m){if(!i||!Ia(i))return;let d=$Ve(t,i,n,s,a,m);return d&&$wt(e,i,d,t,s.getTypeChecker(),u)}function $wt(e,t,n,i,s,a){switch(n.kind){case 0:{let u=jn(n.paths,m=>m.name===e);return u&&GV(e,HVe(u.extension),u.kind,[rd(e)])}case 1:{let u=jn(n.symbols,m=>m.name===e);return u&&qTe(u,u.name,s,i,t,a)}case 2:return jn(n.types,u=>u.value===e)?GV(e,"","string",[rd(e)]):void 0;default:return M.assertNever(n)}}function GVe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:a,span:u,extension:m})=>({name:s,kind:a,kindModifiers:HVe(m),sortText:N_.LocationPriority,replacementSpan:u}))}}function HVe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return M.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return M.assertNever(e)}}function $Ve(e,t,n,i,s,a){let u=i.getTypeChecker(),m=$Te(t.parent);switch(m.kind){case 201:{let I=$Te(m.parent);return I.kind===205?{kind:0,paths:XVe(e,t,i,s,a)}:d(I)}case 303:return ko(m.parent)&&m.name===t?Xwt(u,m.parent):S()||S(0);case 212:{let{expression:I,argumentExpression:R}=m;return t===ba(R)?YVe(u.getTypeAtLocation(I)):void 0}case 213:case 214:case 291:if(!pOt(t)&&!Dp(m)){let I=eL.getArgumentInfoForCompletions(m.kind===291?m.parent:t,n,e,u);return I&&Kwt(I.invocation,t,I,u)||S(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:XVe(e,t,i,s,a)};case 296:let E=mV(u,m.parent.clauses),x=S();return x?{kind:2,types:x.types.filter(I=>!E.hasValue(I.value)),isNewIdentifier:!1}:void 0;default:return S()||S(0)}function d(E){switch(E.kind){case 233:case 183:{let I=Dr(m,R=>R.parent===E);return I?{kind:2,types:qee(u.getTypeArgumentConstraint(I)),isNewIdentifier:!1}:void 0}case 199:let{indexType:x,objectType:D}=E;return p8(x,n)?YVe(u.getTypeFromTypeNode(D)):void 0;case 192:{let I=d($Te(E.parent));if(!I)return;let R=Ywt(E,m);return I.kind===1?{kind:1,symbols:I.symbols.filter(L=>!xs(R,L.name)),hasIndexSignature:I.hasIndexSignature}:{kind:2,types:I.types.filter(L=>!xs(R,L.value)),isNewIdentifier:!1}}default:return}}function S(E=4){let x=qee(eV(t,u,E));if(x.length)return{kind:2,types:x,isNewIdentifier:!1}}}function $Te(e){switch(e.kind){case 196:return IR(e);case 217:return h0(e);default:return e}}function Ywt(e,t){return Yi(e.types,n=>n!==t&&Lv(n)&&jo(n.literal)?n.literal.text:void 0)}function Kwt(e,t,n,i){let s=!1,a=new Map,u=p_(e)?M.checkDefined(Dr(t.parent,Yg)):t,m=i.getCandidateSignaturesForStringLiteralCompletions(e,u),d=To(m,S=>{if(!C_(S)&&n.argumentCount>S.parameters.length)return;let E=S.getTypeParameterAtPosition(n.argumentIndex);if(p_(e)){let x=i.getTypeOfPropertyOfType(E,iM(u.name));x&&(E=x)}return s=s||!!(E.flags&4),qee(E,a)});return kt(d)?{kind:2,types:d,isNewIdentifier:s}:void 0}function YVe(e){return e&&{kind:1,symbols:ti(e.getApparentProperties(),t=>!(t.valueDeclaration&&B_(t.valueDeclaration))),hasIndexSignature:tZ(e)}}function Xwt(e,t){let n=e.getContextualType(t);if(!n)return;let i=e.getContextualType(t,4);return{kind:1,symbols:Bee(n,i,t,e),hasIndexSignature:tZ(n)}}function qee(e,t=new Map){return e?(e=MQ(e),e.isUnion()?To(e.types,n=>qee(n,t)):e.isStringLiteral()&&!(e.flags&1024)&&tm(t,e.value)?[e]:ve):ve}function O6(e,t,n){return{name:e,kind:t,extension:n}}function YTe(e){return O6(e,"directory",void 0)}function KVe(e,t,n){let i=lOt(e,t),s=e.length===0?void 0:Gu(t,e.length);return n.map(({name:a,kind:u,extension:m})=>a.includes(bc)||a.includes(v5)?{name:a,kind:u,extension:m,span:s}:{name:a,kind:u,extension:m,span:i})}function XVe(e,t,n,i,s){return KVe(t.text,t.getStart(e)+1,Qwt(e,t,n,i,s))}function Qwt(e,t,n,i,s){let a=Wu(t.text),u=Ia(t)?n.getModeForUsageLocation(e,t):void 0,m=e.path,d=yi(m),S=n.getCompilerOptions(),E=n.getTypeChecker(),x=KTe(S,1,e,E,s,u);return uOt(a)||!S.baseUrl&&!S.paths&&(op(a)||yue(a))?Zwt(a,d,S,i,m,x):nOt(a,d,u,S,i,x,E)}function KTe(e,t,n,i,s,a){return{extensionsToSearch:rf(eOt(e,i)),referenceKind:t,importingSourceFile:n,endingPreference:s?.importModuleSpecifierEnding,resolutionMode:a}}function Zwt(e,t,n,i,s,a){return n.rootDirs?rOt(n.rootDirs,e,t,a,n,i,s):Os(Y8(e,t,a,i,!0,s).values())}function eOt(e,t){let n=t?Yi(t.getAmbientModules(),a=>{let u=a.name.slice(1,-1);if(!(!u.startsWith("*.")||u.includes("/")))return u.slice(1)}):[],i=[...iO(e),n],s=cf(e);return GU(s)?QR(e,i):i}function tOt(e,t,n,i){e=e.map(a=>vu(eo(op(a)?a:ii(t,a))));let s=di(e,a=>Cm(a,n,t,i)?n.substr(a.length):void 0);return w1([...e.map(a=>ii(a,s)),n].map(a=>ZS(a)),Lx,u_)}function rOt(e,t,n,i,s,a,u){let m=s.project||a.getCurrentDirectory(),d=!(a.useCaseSensitiveFileNames&&a.useCaseSensitiveFileNames()),S=tOt(e,m,n,d);return w1(To(S,E=>Os(Y8(t,E,i,a,!0,u).values())),(E,x)=>E.name===x.name&&E.kind===x.kind&&E.extension===x.extension)}function Y8(e,t,n,i,s,a,u=HTe()){var m;e===void 0&&(e=""),e=Wu(e),yv(e)||(e=yi(e)),e===""&&(e="."+bc),e=vu(e);let d=QS(t,e),S=yv(d)?d:yi(d);if(!s){let I=eve(S,i);if(I){let L=Yw(I,i).typesVersions;if(typeof L=="object"){let F=(m=bB(L))==null?void 0:m.paths;if(F){let J=yi(I),$=d.slice(vu(J).length);if(ZVe(u,$,J,n,i,F))return u}}}}let E=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!sV(i,S))return u;let x=iZ(i,S,n.extensionsToSearch,void 0,["./*"]);if(x)for(let I of x){if(I=eo(I),a&&f0(I,a,t,E)===0)continue;let{name:R,extension:L}=QVe(Ul(I),i.getCompilationSettings(),n,!1);u.add(O6(R,"script",L))}let D=iV(i,S);if(D)for(let I of D){let R=Ul(eo(I));R!=="@types"&&u.add(YTe(R))}return u}function QVe(e,t,n,i){let s=IT.tryGetRealFileNameForNonJsDeclarationFileName(e);if(s)return{name:s,extension:b0(s)};if(n.referenceKind===0)return{name:e,extension:b0(e)};let a=HO({importModuleSpecifierEnding:n.endingPreference},t,n.importingSourceFile).getAllowedEndingsInPreferredOrder(n.resolutionMode);if(i&&(a=a.filter(m=>m!==0&&m!==1)),a[0]===3){if(Il(e,pj))return{name:e,extension:b0(e)};let m=IT.tryGetJSExtensionForFile(e,t);return m?{name:Y1(e,m),extension:m}:{name:e,extension:b0(e)}}if(!i&&(a[0]===0||a[0]===1)&&Il(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:lf(e),extension:b0(e)};let u=IT.tryGetJSExtensionForFile(e,t);return u?{name:Y1(e,u),extension:u}:{name:e,extension:b0(e)}}function ZVe(e,t,n,i,s,a){let u=d=>a[d],m=(d,S)=>{let E=pN(d),x=pN(S),D=typeof E=="object"?E.prefix.length:d.length,I=typeof x=="object"?x.prefix.length:S.length;return tc(I,D)};return eJe(e,!1,t,n,i,s,Pg(a),u,m)}function eJe(e,t,n,i,s,a,u,m,d){let S=[],E;for(let x of u){if(x===".")continue;let D=x.replace(/^\.\//,""),I=m(x);if(I){let R=pN(D);if(!R)continue;let L=typeof R=="object"&&c5(R,n);L&&(E===void 0||d(x,E)===-1)&&(E=x,S=S.filter(J=>!J.matchedPattern)),(typeof R=="string"||E===void 0||d(x,E)!==1)&&S.push({matchedPattern:L,results:iOt(D,I,n,i,s,t&&L,a).map(({name:J,kind:$,extension:q})=>O6(J,$,q))})}}return S.forEach(x=>x.results.forEach(D=>e.add(D))),E!==void 0}function nOt(e,t,n,i,s,a,u){let{baseUrl:m,paths:d}=i,S=HTe(),E=cf(i);if(m){let D=eo(ii(s.getCurrentDirectory(),m));Y8(e,D,a,s,!1,void 0,S)}if(d){let D=R9(i,s);ZVe(S,e,D,a,s,d)}let x=rJe(e);for(let D of oOt(e,x,u))S.add(O6(D,"external module name",void 0));if(sJe(s,i,t,x,a,S),GU(E)){let D=!1;if(x===void 0)for(let I of cOt(s,t)){let R=O6(I,"external module name",void 0);S.has(R.name)||(D=!0,S.add(R))}if(!D){let I=R=>{let L=ii(R,"node_modules");sV(s,L)&&Y8(e,L,a,s,!1,void 0,S)};if(x&&x$(i)){let R=I;I=L=>{let F=yu(e);F.shift();let J=F.shift();if(!J)return R(L);if(fs(J,"@")){let ee=F.shift();if(!ee)return R(L);J=ii(J,ee)}let $=ii(L,"node_modules",J),q=ii($,"package.json");if(N8(s,q)){let W=Yw(q,s).exports;if(W){if(typeof W!="object"||W===null)return;let pe=Pg(W),K=F.join("/")+(F.length&&yv(e)?"/":""),re=sS(i,n);eJe(S,!0,K,$,a,s,pe,ue=>zC(tJe(W[ue],re)),yK);return}}return R(L)}}Am(t,I)}}return Os(S.values())}function tJe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Ms(e)){for(let n in e)if(n==="default"||t.includes(n)||BM(t,n)){let i=e[n];return tJe(i,t)}}}function rJe(e){return XTe(e)?yv(e)?e:yi(e):void 0}function iOt(e,t,n,i,s,a,u){if(!Wc(e,"*"))return e.includes("*")?ve:S(e,"script");let m=e.slice(0,e.length-1),d=YW(n,m);if(d===void 0)return e[e.length-2]==="/"?S(m,"directory"):To(t,x=>{var D;return(D=nJe("",i,x,s,a,u))==null?void 0:D.map(({name:I,...R})=>({name:m+I,...R}))});return To(t,E=>nJe(d,i,E,s,a,u));function S(E,x){return fs(E,n)?[{name:ZS(E),kind:x,extension:void 0}]:ve}}function nJe(e,t,n,i,s,a){if(!a.readDirectory)return;let u=pN(n);if(u===void 0||bs(u))return;let m=QS(u.prefix),d=yv(u.prefix)?m:yi(m),S=yv(u.prefix)?"":Ul(m),E=XTe(e),x=E?yv(e)?e:yi(e):void 0,D=E?ii(d,S+x):d,I=eo(u.suffix),R=I&&O9("_"+I),L=R?[Y1(I,R),I]:[I],F=eo(ii(t,D)),J=E?F:vu(F)+S,$=I?L.map(pe=>"**/*"+pe):["./*"],q=Yi(iZ(a,F,i.extensionsToSearch,void 0,$),pe=>{let K=W(pe);if(K){if(XTe(K))return YTe(yu(iJe(K))[1]);let{name:re,extension:ue}=QVe(K,a.getCompilationSettings(),i,s);return O6(re,"script",ue)}}),ee=I?ve:Yi(iV(a,F),pe=>pe==="node_modules"?void 0:YTe(pe));return[...q,...ee];function W(pe){return di(L,K=>{let re=sOt(eo(pe),J,K);return re===void 0?void 0:iJe(re)})}}function sOt(e,t,n){return fs(e,t)&&Wc(e,n)?e.slice(t.length,e.length-n.length):void 0}function iJe(e){return e[0]===bc?e.slice(1):e}function oOt(e,t,n){let s=n.getAmbientModules().map(a=>em(a.name)).filter(a=>fs(a,e)&&!a.includes("*"));if(t!==void 0){let a=vu(t);return s.map(u=>HI(u,a))}return s}function aOt(e,t,n,i){let s=Ki(e,t),a=Ty(e.text,s.pos),u=a&&jn(a,R=>t>=R.pos&&t<=R.end);if(!u)return;let m=e.text.slice(u.pos,t),d=_Ot.exec(m);if(!d)return;let[,S,E,x]=d,D=yi(e.path),I=E==="path"?Y8(x,D,KTe(n,0,e),i,!0,e.path):E==="types"?sJe(i,n,D,rJe(x),KTe(n,1,e)):M.fail();return KVe(x,u.pos+S.length,Os(I.values()))}function sJe(e,t,n,i,s,a=HTe()){let u=new Map,m=oV(()=>JO(t,e))||ve;for(let S of m)d(S);for(let S of sZ(n,e)){let E=ii(yi(S),"node_modules/@types");d(E)}return a;function d(S){if(sV(e,S))for(let E of iV(e,S)){let x=UM(E);if(!(t.types&&!xs(t.types,x)))if(i===void 0)u.has(x)||(a.add(O6(x,"external module name",void 0)),u.set(x,!0));else{let D=ii(S,E),I=N$(i,x,Nv(e));I!==void 0&&Y8(I,D,s,e,!1,void 0,a)}}}}function cOt(e,t){if(!e.readFile||!e.fileExists)return ve;let n=[];for(let i of sZ(t,e)){let s=Yw(i,e);for(let a of fOt){let u=s[a];if(u)for(let m in u)Ha(u,m)&&!fs(m,"@types/")&&n.push(m)}}return n}function lOt(e,t){let n=Math.max(e.lastIndexOf(bc),e.lastIndexOf(v5)),i=n!==-1?n+1:0,s=e.length-i;return s===0||ap(e.substr(i,s),99)?void 0:Gu(t+i,s)}function uOt(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,n=e.charCodeAt(t);return n===47||n===92}return!1}var _Ot=/^(\/\/\/\s*yk,DefinitionKind:()=>fJe,EntryKind:()=>pJe,ExportKind:()=>oJe,FindReferencesUse:()=>dJe,ImportExport:()=>aJe,createImportTracker:()=>QTe,findModuleReferences:()=>cJe,findReferenceOrRenameEntries:()=>kOt,findReferencedSymbols:()=>xOt,getContextNode:()=>C2,getExportInfo:()=>ZTe,getImplementationsAtPosition:()=>AOt,getImportOrExportSymbol:()=>_Je,getReferenceEntriesForNode:()=>gJe,getTextSpanOfEntry:()=>nbe,isContextWithStartAndEndNode:()=>tbe,isDeclarationOfSymbol:()=>SJe,isWriteAccessForReference:()=>ibe,nodeEntry:()=>By,toContextSpan:()=>rbe,toHighlightSpan:()=>ROt,toReferenceEntry:()=>vJe,toRenameLocation:()=>NOt});function QTe(e,t,n,i){let s=hOt(e,n,i);return(a,u,m)=>{let{directImports:d,indirectUsers:S}=dOt(e,t,s,u,n,i);return{indirectUsers:S,...mOt(d,a,u.exportKind,n,m)}}}var oJe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(oJe||{}),aJe=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(aJe||{});function dOt(e,t,n,{exportingModuleSymbol:i,exportKind:s},a,u){let m=YN(),d=YN(),S=[],E=!!i.globalExports,x=E?void 0:[];return I(i),{directImports:S,indirectUsers:D()};function D(){if(E)return e;if(i.declarations)for(let q of i.declarations)Yb(q)&&t.has(q.getSourceFile().fileName)&&J(q);return x.map(Jr)}function I(q){let ee=$(q);if(ee){for(let W of ee)if(m(W))switch(u&&u.throwIfCancellationRequested(),W.kind){case 213:if(Dp(W)){R(W);break}if(!E){let K=W.parent;if(s===2&&K.kind===260){let{name:re}=K;if(re.kind===80){S.push(re);break}}}break;case 80:break;case 271:F(W,W.name,_i(W,32),!1);break;case 272:case 351:S.push(W);let pe=W.importClause&&W.importClause.namedBindings;pe&&pe.kind===274?F(W,pe.name,!1,!0):!E&&aA(W)&&J($V(W));break;case 278:W.exportClause?W.exportClause.kind===280?J($V(W),!0):S.push(W):I(bOt(W,a));break;case 205:!E&&W.isTypeOf&&!W.qualifier&&L(W)&&J(W.getSourceFile(),!0),S.push(W);break;default:M.failBadSyntaxKind(W,"Unexpected import kind.")}}}function R(q){let ee=Dr(q,zee)||q.getSourceFile();J(ee,!!L(q,!0))}function L(q,ee=!1){return Dr(q,W=>ee&&zee(W)?"quit":Im(W)&&Dt(W.modifiers,RA))}function F(q,ee,W,pe){if(s===2)pe||S.push(q);else if(!E){let K=$V(q);M.assert(K.kind===307||K.kind===267),W||gOt(K,ee,a)?J(K,!0):J(K)}}function J(q,ee=!1){if(M.assert(!E),!d(q)||(x.push(q),!ee))return;let pe=a.getMergedSymbol(q.symbol);if(!pe)return;M.assert(!!(pe.flags&1536));let K=$(pe);if(K)for(let re of K)Jh(re)||J($V(re),!0)}function $(q){return n.get(Po(q).toString())}}function mOt(e,t,n,i,s){let a=[],u=[];function m(D,I){a.push([D,I])}if(e)for(let D of e)d(D);return{importSearches:a,singleReferences:u};function d(D){if(D.kind===271){ebe(D)&&S(D.name);return}if(D.kind===80){S(D);return}if(D.kind===205){if(D.qualifier){let L=pp(D.qualifier);L.escapedText===Qc(t)&&u.push(L)}else n===2&&u.push(D.argument.literal);return}if(D.moduleSpecifier.kind!==11)return;if(D.kind===278){D.exportClause&&Pd(D.exportClause)&&E(D.exportClause);return}let{name:I,namedBindings:R}=D.importClause||{name:void 0,namedBindings:void 0};if(R)switch(R.kind){case 274:S(R.name);break;case 275:(n===0||n===1)&&E(R);break;default:M.assertNever(R)}if(I&&(n===1||n===2)&&(!s||I.escapedText===HU(t))){let L=i.getSymbolAtLocation(I);m(I,L)}}function S(D){n===2&&(!s||x(D.escapedText))&&m(D,i.getSymbolAtLocation(D))}function E(D){if(D)for(let I of D.elements){let{name:R,propertyName:L}=I;if(x((L||R).escapedText))if(L)u.push(L),(!s||R.escapedText===t.escapedName)&&m(R,i.getSymbolAtLocation(R));else{let F=I.kind===281&&I.propertyName?i.getExportSpecifierLocalTargetSymbol(I):i.getSymbolAtLocation(R);m(R,F)}}}function x(D){return D===t.escapedName||n!==0&&D==="default"}}function gOt(e,t,n){let i=n.getSymbolAtLocation(t);return!!lJe(e,s=>{if(!Cl(s))return;let{exportClause:a,moduleSpecifier:u}=s;return!u&&a&&Pd(a)&&a.elements.some(m=>n.getExportSpecifierLocalTargetSymbol(m)===i)})}function cJe(e,t,n){var i;let s=[],a=e.getTypeChecker();for(let u of t){let m=n.valueDeclaration;if(m?.kind===307){for(let d of u.referencedFiles)e.getSourceFileFromReference(u,d)===m&&s.push({kind:"reference",referencingFile:u,ref:d});for(let d of u.typeReferenceDirectives){let S=(i=e.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(d,u))==null?void 0:i.resolvedTypeReferenceDirective;S!==void 0&&S.resolvedFileName===m.fileName&&s.push({kind:"reference",referencingFile:u,ref:d})}}uJe(u,(d,S)=>{a.getSymbolAtLocation(S)===n&&s.push(Ka(d)?{kind:"implicit",literal:S,referencingFile:u}:{kind:"import",literal:S})})}return s}function hOt(e,t,n){let i=new Map;for(let s of e)n&&n.throwIfCancellationRequested(),uJe(s,(a,u)=>{let m=t.getSymbolAtLocation(u);if(m){let d=Po(m).toString(),S=i.get(d);S||i.set(d,S=[]),S.push(a)}});return i}function lJe(e,t){return Et(e.kind===307?e.statements:e.body.statements,n=>t(n)||zee(n)&&Et(n.body&&n.body.statements,t))}function uJe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let n of e.imports)t(Rw(n),n);else lJe(e,n=>{switch(n.kind){case 278:case 272:{let i=n;i.moduleSpecifier&&jo(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=n;ebe(i)&&t(i,i.moduleReference.expression);break}}})}function _Je(e,t,n,i){return i?s():s()||a();function s(){var d;let{parent:S}=e,E=S.parent;if(t.exportSymbol)return S.kind===211?(d=t.declarations)!=null&&d.some(I=>I===S)&&Dn(E)?D(E,!1):void 0:u(t.exportSymbol,m(S));{let I=vOt(S,e);if(I&&_i(I,32))return nu(I)&&I.moduleReference===e?i?void 0:{kind:0,symbol:n.getSymbolAtLocation(I.name)}:u(t,m(I));if(qh(S))return u(t,0);if(pc(S))return x(S);if(pc(E))return x(E);if(Dn(S))return D(S,!0);if(Dn(E))return D(E,!0);if(p2(S)||mY(S))return u(t,0)}function x(I){if(!I.symbol.parent)return;let R=I.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:I.symbol.parent,exportKind:R}}}function D(I,R){let L;switch(ll(I)){case 1:L=0;break;case 2:L=2;break;default:return}let F=R?n.getSymbolAtLocation(S$(ao(I.left,ac))):t;return F&&u(F,L)}}function a(){if(!SOt(e))return;let S=n.getImmediateAliasedSymbol(t);if(!S||(S=TOt(S,n),S.escapedName==="export="&&(S=yOt(S,n),S===void 0)))return;let E=HU(S);if(E===void 0||E==="default"||E===t.escapedName)return{kind:0,symbol:S}}function u(d,S){let E=ZTe(d,S,n);return E&&{kind:1,symbol:d,exportInfo:E}}function m(d){return _i(d,2048)?1:0}}function yOt(e,t){var n,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let s=M.checkDefined(e.valueDeclaration);if(pc(s))return(n=ci(s.expression,Qm))==null?void 0:n.symbol;if(Dn(s))return(i=ci(s.right,Qm))==null?void 0:i.symbol;if(qi(s))return s.symbol}function vOt(e,t){let n=Ci(e)?e:Zo(e)?OP(e):void 0;return n?e.name!==t||TE(n.parent)?void 0:fl(n.parent.parent)?n.parent.parent:void 0:e}function SOt(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&ebe(t);case 276:return!t.propertyName;case 273:case 274:return M.assert(t.name===e),!0;case 208:return vn(e)&&Zb(t.parent.parent);default:return!1}}function ZTe(e,t,n){let i=e.parent;if(!i)return;let s=n.getMergedSymbol(i);return UP(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function TOt(e,t){if(e.declarations)for(let n of e.declarations){if(E_(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(Hn(n)&&ky(n.expression)&&!es(n.name))return t.getSymbolAtLocation(n);if(m_(n)&&Dn(n.parent.parent)&&ll(n.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}function bOt(e,t){return t.getMergedSymbol($V(e).symbol)}function $V(e){if(e.kind===213||e.kind===351)return e.getSourceFile();let{parent:t}=e;return t.kind===307?t:(M.assert(t.kind===268),ao(t.parent,zee))}function zee(e){return e.kind===267&&e.name.kind===11}function ebe(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var fJe=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(fJe||{}),pJe=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(pJe||{});function By(e,t=1){return{kind:t,node:e.name||e,context:EOt(e)}}function tbe(e){return e&&e.kind===void 0}function EOt(e){if(f_(e))return C2(e);if(e.parent){if(!f_(e.parent)&&!pc(e.parent)){if(vn(e)){let n=Dn(e.parent)?e.parent:ac(e.parent)&&Dn(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(n&&ll(n)!==0)return C2(n)}if($g(e.parent)||yE(e.parent))return e.parent.parent;if(u2(e.parent)||rS(e.parent)||dw(e.parent))return e.parent;if(Ia(e)){let n=AR(e);if(n){let i=Dr(n,s=>f_(s)||Ji(s)||BP(s));return f_(i)?C2(i):i}}let t=Dr(e,Go);return t?C2(t.parent):void 0}if(e.parent.name===e||Vc(e.parent)||pc(e.parent)||(YC(e.parent)||Zo(e.parent))&&e.parent.propertyName===e||e.kind===90&&_i(e.parent,2080))return C2(e.parent)}}function C2(e){if(e)switch(e.kind){case 260:return!Fu(e.parent)||e.parent.declarations.length!==1?e:fl(e.parent.parent)?e.parent.parent:Gx(e.parent.parent)?C2(e.parent.parent):e.parent;case 208:return C2(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return wu(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return Vv(e.parent)?C2(Dr(e.parent,t=>Dn(t)||Gx(t))):e;case 255:return{start:jn(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function rbe(e,t,n){if(!n)return;let i=tbe(n)?KV(n.start,t,n.end):KV(n,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}var dJe=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(dJe||{});function xOt(e,t,n,i,s){let a=Of(i,s),u={use:1},m=yk.getReferencedSymbolsForNode(s,a,e,n,t,u),d=e.getTypeChecker(),S=yk.getAdjustedNode(a,u),E=COt(S)?d.getSymbolAtLocation(S):void 0;return!m||!m.length?void 0:Yi(m,({definition:x,references:D})=>x&&{definition:d.runWithCancellationToken(t,I=>POt(x,I,a)),references:D.map(I=>DOt(I,E))})}function COt(e){return e.kind===90||!!Lw(e)||wR(e)||e.kind===137&&Vc(e.parent)}function AOt(e,t,n,i,s){let a=Of(i,s),u,m=mJe(e,t,n,a,s);if(a.parent.kind===211||a.parent.kind===208||a.parent.kind===212||a.kind===108)u=m&&[...m];else if(m){let S=y3(m),E=new Map;for(;!S.isEmpty();){let x=S.dequeue();if(!tm(E,Sa(x.node)))continue;u=Ut(u,x);let D=mJe(e,t,n,x.node,x.node.pos);D&&S.enqueue(...D)}}let d=e.getTypeChecker();return kr(u,S=>wOt(S,d))}function mJe(e,t,n,i,s){if(i.kind===307)return;let a=e.getTypeChecker();if(i.parent.kind===304){let u=[];return yk.getReferenceEntriesForShorthandPropertyAssignment(i,a,m=>u.push(By(m))),u}else if(i.kind===108||kf(i.parent)){let u=a.getSymbolAtLocation(i);return u.valueDeclaration&&[By(u.valueDeclaration)]}else return gJe(s,i,e,n,t,{implementations:!0,use:1})}function kOt(e,t,n,i,s,a,u){return kr(hJe(yk.getReferencedSymbolsForNode(s,i,e,n,t,a)),m=>u(m,i,e.getTypeChecker()))}function gJe(e,t,n,i,s,a={},u=new Set(i.map(m=>m.fileName))){return hJe(yk.getReferencedSymbolsForNode(e,t,n,i,s,a,u))}function hJe(e){return e&&To(e,t=>t.references)}function POt(e,t,n){let i=(()=>{switch(e.type){case 0:{let{symbol:E}=e,{displayParts:x,kind:D}=yJe(E,t,n),I=x.map(F=>F.text).join(""),R=E.declarations&&Aa(E.declarations),L=R?Ns(R)||R:n;return{...YV(L),name:I,kind:D,displayParts:x,context:C2(R)}}case 1:{let{node:E}=e;return{...YV(E),name:E.text,kind:"label",displayParts:[zf(E.text,17)]}}case 2:{let{node:E}=e,x=bo(E.kind);return{...YV(E),name:x,kind:"keyword",displayParts:[{text:x,kind:"keyword"}]}}case 3:{let{node:E}=e,x=t.getSymbolAtLocation(E),D=x&&Wv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,x,E.getSourceFile(),T2(E),E).displayParts||[rd("this")];return{...YV(E),name:"this",kind:"var",displayParts:D}}case 4:{let{node:E}=e;return{...YV(E),name:E.text,kind:"var",displayParts:[zf(Hc(E),8)]}}case 5:return{textSpan:lS(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[zf(`"${e.reference.fileName}"`,8)]};default:return M.assertNever(e)}})(),{sourceFile:s,textSpan:a,name:u,kind:m,displayParts:d,context:S}=i;return{containerKind:"",containerName:"",fileName:s.fileName,kind:m,name:u,textSpan:a,displayParts:d,...rbe(a,s,S)}}function YV(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:KV(Go(e)?e.expression:e,t)}}function yJe(e,t,n){let i=yk.getIntersectingMeaningFromDeclarations(n,e),s=e.declarations&&Aa(e.declarations)||n,{displayParts:a,symbolKind:u}=Wv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:a,kind:u}}function NOt(e,t,n,i,s){return{...Wee(e),...i&&IOt(e,t,n,s)}}function DOt(e,t){let n=vJe(e);return t?{...n,isDefinition:e.kind!==0&&SJe(e.node,t)}:n}function vJe(e){let t=Wee(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:n,node:i}=e;return{...t,isWriteAccess:ibe(i),isInString:n===2?!0:void 0}}function Wee(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),n=KV(e.node,t);return{textSpan:n,fileName:t.fileName,...rbe(n,t,e.context)}}}function IOt(e,t,n,i){if(e.kind!==0&&($e(t)||Ia(t))){let{node:s,kind:a}=e,u=s.parent,m=t.text,d=m_(u);if(d||b8(u)&&u.name===s&&u.dotDotDotToken===void 0){let S={prefixText:m+": "},E={suffixText:": "+m};if(a===3)return S;if(a===4)return E;if(d){let x=u.parent;return ko(x)&&Dn(x.parent)&&ky(x.parent.left)?S:E}else return S}else if(pf(u)&&!u.propertyName){let S=E_(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t);return xs(S.declarations,u)?{prefixText:m+" as "}:am}else if(E_(u)&&!u.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:m+" as "}:{suffixText:" as "+m}}if(e.kind!==0&&Df(e.node)&&ac(e.node.parent)){let s=BQ(i);return{prefixText:s,suffixText:s}}return am}function wOt(e,t){let n=Wee(e);if(e.kind!==0){let{node:i}=e;return{...n,...OOt(i,t)}}else return{...n,kind:"",displayParts:[]}}function OOt(e,t){let n=t.getSymbolAtLocation(f_(e)&&e.name?e.name:e);return n?yJe(n,t,e):e.kind===210?{kind:"interface",displayParts:[k_(21),rd("object literal"),k_(22)]}:e.kind===231?{kind:"local class",displayParts:[k_(21),rd("anonymous local class"),k_(22)]}:{kind:PE(e),displayParts:[]}}function ROt(e){let t=Wee(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let n=ibe(e.node),i={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function KV(e,t,n){let i=e.getStart(t),s=(n||e).getEnd();return Ia(e)&&s-i>2&&(M.assert(n===void 0),i+=1,s-=1),n?.kind===269&&(s=n.getFullStart()),wl(i,s)}function nbe(e){return e.kind===0?e.textSpan:KV(e.node,e.node.getSourceFile())}function ibe(e){let t=Lw(e);return!!t&&MOt(t)||e.kind===90||gA(e)}function SJe(e,t){var n;if(!t)return!1;let i=Lw(e)||(e.kind===90?e.parent:wR(e)||e.kind===137&&Vc(e.parent)?e.parent.parent:void 0),s=i&&Dn(i)?i.left:void 0;return!!(i&&((n=t.declarations)!=null&&n.some(a=>a===i||a===s)))}function MOt(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!Vv(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||TE(e.parent);case 173:case 171:case 348:case 341:return!1;default:return M.failBadSyntaxKind(e)}}var yk;(e=>{function t(ut,Tt,fe,St,Ce,it={},Me=new Set(St.map(rt=>rt.fileName))){var rt,pt;if(Tt=n(Tt,it),qi(Tt)){let sr=cD.getReferenceAtPosition(Tt,ut,fe);if(!sr?.file)return;let Z=fe.getTypeChecker().getMergedSymbol(sr.file.symbol);if(Z)return S(fe,Z,!1,St,Me);let Ye=fe.getFileIncludeReasons();return Ye?[{definition:{type:5,reference:sr.reference,file:Tt},references:s(sr.file,Ye,fe)||ve}]:void 0}if(!it.implementations){let sr=x(Tt,St,Ce);if(sr)return sr}let nr=fe.getTypeChecker(),Oe=nr.getSymbolAtLocation(Vc(Tt)&&Tt.parent.name||Tt);if(!Oe){if(!it.implementations&&Ia(Tt)){if($U(Tt)){let sr=fe.getFileIncludeReasons(),Z=(pt=(rt=fe.getResolvedModuleFromModuleSpecifier(Tt))==null?void 0:rt.resolvedModule)==null?void 0:pt.resolvedFileName,Ye=Z?fe.getSourceFile(Z):void 0;if(Ye)return[{definition:{type:4,node:Tt},references:s(Ye,sr,fe)||ve}]}return Ri(Tt,St,nr,Ce)}return}if(Oe.escapedName==="export=")return S(fe,Oe.parent,!1,St,Me);let Nt=u(Oe,fe,St,Ce,it,Me);if(Nt&&!(Oe.flags&33554432))return Nt;let It=a(Tt,Oe,nr),Vt=It&&u(It,fe,St,Ce,it,Me),Mt=D(Oe,Tt,St,Me,nr,Ce,it);return m(fe,Nt,Mt,Vt)}e.getReferencedSymbolsForNode=t;function n(ut,Tt){return Tt.use===1?ut=EQ(ut):Tt.use===2&&(ut=FU(ut)),ut}e.getAdjustedNode=n;function i(ut,Tt,fe,St=new Set(fe.map(Ce=>Ce.fileName))){var Ce,it;let Me=(Ce=Tt.getSourceFile(ut))==null?void 0:Ce.symbol;if(Me)return((it=S(Tt,Me,!1,fe,St)[0])==null?void 0:it.references)||ve;let rt=Tt.getFileIncludeReasons(),pt=Tt.getSourceFile(ut);return pt&&rt&&s(pt,rt,Tt)||ve}e.getReferencesForFileName=i;function s(ut,Tt,fe){let St,Ce=Tt.get(ut.path)||ve;for(let it of Ce)if(wT(it)){let Me=fe.getSourceFileByPath(it.file),rt=o6(fe,it);VN(rt)&&(St=Ut(St,{kind:0,fileName:Me.fileName,textSpan:lS(rt)}))}return St}function a(ut,Tt,fe){if(ut.parent&&yM(ut.parent)){let St=fe.getAliasedSymbol(Tt),Ce=fe.getMergedSymbol(St);if(St!==Ce)return Ce}}function u(ut,Tt,fe,St,Ce,it){let Me=ut.flags&1536&&ut.declarations&&jn(ut.declarations,qi);if(!Me)return;let rt=ut.exports.get("export="),pt=S(Tt,ut,!!rt,fe,it);if(!rt||!it.has(Me.fileName))return pt;let nr=Tt.getTypeChecker();return ut=$u(rt,nr),m(Tt,pt,D(ut,void 0,fe,it,nr,St,Ce))}function m(ut,...Tt){let fe;for(let St of Tt)if(!(!St||!St.length)){if(!fe){fe=St;continue}for(let Ce of St){if(!Ce.definition||Ce.definition.type!==0){fe.push(Ce);continue}let it=Ce.definition.symbol,Me=Va(fe,pt=>!!pt.definition&&pt.definition.type===0&&pt.definition.symbol===it);if(Me===-1){fe.push(Ce);continue}let rt=fe[Me];fe[Me]={definition:rt.definition,references:rt.references.concat(Ce.references).sort((pt,nr)=>{let Oe=d(ut,pt),Nt=d(ut,nr);if(Oe!==Nt)return tc(Oe,Nt);let It=nbe(pt),Vt=nbe(nr);return It.start!==Vt.start?tc(It.start,Vt.start):tc(It.length,Vt.length)})}}}return fe}function d(ut,Tt){let fe=Tt.kind===0?ut.getSourceFile(Tt.fileName):Tt.node.getSourceFile();return ut.getSourceFiles().indexOf(fe)}function S(ut,Tt,fe,St,Ce){M.assert(!!Tt.valueDeclaration);let it=Yi(cJe(ut,St,Tt),rt=>{if(rt.kind==="import"){let pt=rt.literal.parent;if(Lv(pt)){let nr=ao(pt.parent,Jh);if(fe&&!nr.qualifier)return}return By(rt.literal)}else if(rt.kind==="implicit"){let pt=rt.literal.text!==oT&&HA(rt.referencingFile,nr=>nr.transformFlags&2?My(nr)||u2(nr)||vE(nr)?nr:void 0:"skip")||rt.referencingFile.statements[0]||rt.referencingFile;return By(pt)}else return{kind:0,fileName:rt.referencingFile.fileName,textSpan:lS(rt.ref)}});if(Tt.declarations)for(let rt of Tt.declarations)switch(rt.kind){case 307:break;case 267:Ce.has(rt.getSourceFile().fileName)&&it.push(By(rt.name));break;default:M.assert(!!(Tt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let Me=Tt.exports.get("export=");if(Me?.declarations)for(let rt of Me.declarations){let pt=rt.getSourceFile();if(Ce.has(pt.fileName)){let nr=Dn(rt)&&Hn(rt.left)?rt.left.expression:pc(rt)?M.checkDefined(Ma(rt,95,pt)):Ns(rt)||rt;it.push(By(nr))}}return it.length?[{definition:{type:0,symbol:Tt},references:it}]:ve}function E(ut){return ut.kind===148&&yT(ut.parent)&&ut.parent.operator===148}function x(ut,Tt,fe){if(d6(ut.kind))return ut.kind===116&&UA(ut.parent)||ut.kind===148&&!E(ut)?void 0:Te(Tt,ut.kind,fe,ut.kind===148?E:void 0);if(GP(ut.parent)&&ut.parent.name===ut)return he(Tt,fe);if(MA(ut)&&$c(ut.parent))return[{definition:{type:2,node:ut},references:[By(ut)]}];if(f8(ut)){let St=IU(ut.parent,ut.text);return St&&xe(St.parent,St)}else if(dQ(ut))return xe(ut.parent,ut);if(HN(ut))return os(ut,Tt,fe);if(ut.kind===108)return Di(ut)}function D(ut,Tt,fe,St,Ce,it,Me){let rt=Tt&&L(ut,Tt,Ce,!ia(Me))||ut,pt=Tt?Ti(Tt,rt):7,nr=[],Oe=new $(fe,St,Tt?R(Tt):0,Ce,it,pt,Me,nr),Nt=!ia(Me)||!rt.declarations?void 0:jn(rt.declarations,E_);if(Nt)lt(Nt.name,rt,Nt,Oe.createSearch(Tt,ut,void 0),Oe,!0,!0);else if(Tt&&Tt.kind===90&&rt.escapedName==="default"&&rt.parent)gt(Tt,rt,Oe),q(Tt,rt,{exportingModuleSymbol:rt.parent,exportKind:1},Oe);else{let It=Oe.createSearch(Tt,rt,void 0,{allSearchSymbols:Tt?Qs(rt,Tt,Ce,Me.use===2,!!Me.providePrefixAndSuffixTextForRename,!!Me.implementations):[rt]});I(rt,Oe,It)}return nr}function I(ut,Tt,fe){let St=ue(ut);if(St)Pe(St,St.getSourceFile(),fe,Tt,!(qi(St)&&!xs(Tt.sourceFiles,St)));else for(let Ce of Tt.sourceFiles)Tt.cancellationToken.throwIfCancellationRequested(),K(Ce,fe,Tt)}function R(ut){switch(ut.kind){case 176:case 137:return 1;case 80:if(vi(ut.parent))return M.assert(ut.parent.name===ut),2;default:return 0}}function L(ut,Tt,fe,St){let{parent:Ce}=Tt;return E_(Ce)&&St?ze(Tt,ut,Ce,fe):di(ut.declarations,it=>{if(!it.parent){if(ut.flags&33554432)return;M.fail(`Unexpected symbol at ${M.formatSyntaxKind(Tt.kind)}: ${M.formatSymbol(ut)}`)}return _f(it.parent)&&Z1(it.parent.parent)?fe.getPropertyOfType(fe.getTypeFromTypeNode(it.parent.parent),ut.name):void 0})}let F;(ut=>{ut[ut.None=0]="None",ut[ut.Constructor=1]="Constructor",ut[ut.Class=2]="Class"})(F||(F={}));function J(ut){if(!(ut.flags&33555968))return;let Tt=ut.declarations&&jn(ut.declarations,fe=>!qi(fe)&&!xl(fe));return Tt&&Tt.symbol}class ${constructor(Tt,fe,St,Ce,it,Me,rt,pt){this.sourceFiles=Tt,this.sourceFilesSet=fe,this.specialSearchKind=St,this.checker=Ce,this.cancellationToken=it,this.searchMeaning=Me,this.options=rt,this.result=pt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=YN(),this.markSeenReExportRHS=YN(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Tt){return this.sourceFilesSet.has(Tt.fileName)}getImportSearches(Tt,fe){return this.importTracker||(this.importTracker=QTe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Tt,fe,this.options.use===2)}createSearch(Tt,fe,St,Ce={}){let{text:it=em(Qc($w(fe)||J(fe)||fe)),allSearchSymbols:Me=[fe]}=Ce,rt=Uc(it),pt=this.options.implementations&&Tt?Sr(Tt,fe,this.checker):void 0;return{symbol:fe,comingFrom:St,text:it,escapedText:rt,parents:pt,allSearchSymbols:Me,includes:nr=>xs(Me,nr)}}referenceAdder(Tt){let fe=Po(Tt),St=this.symbolIdToReferences[fe];return St||(St=this.symbolIdToReferences[fe]=[],this.result.push({definition:{type:0,symbol:Tt},references:St})),(Ce,it)=>St.push(By(Ce,it))}addStringOrCommentReference(Tt,fe){this.result.push({definition:void 0,references:[{kind:0,fileName:Tt,textSpan:fe}]})}markSearchedSymbols(Tt,fe){let St=Sa(Tt),Ce=this.sourceFileToSeenSymbols[St]||(this.sourceFileToSeenSymbols[St]=new Set),it=!1;for(let Me of fe)it=kg(Ce,Po(Me))||it;return it}}function q(ut,Tt,fe,St){let{importSearches:Ce,singleReferences:it,indirectUsers:Me}=St.getImportSearches(Tt,fe);if(it.length){let rt=St.referenceAdder(Tt);for(let pt of it)W(pt,St)&&rt(pt)}for(let[rt,pt]of Ce)Ve(rt.getSourceFile(),St.createSearch(rt,pt,1),St);if(Me.length){let rt;switch(fe.exportKind){case 0:rt=St.createSearch(ut,Tt,1);break;case 1:rt=St.options.use===2?void 0:St.createSearch(ut,Tt,1,{text:"default"});break;case 2:break}if(rt)for(let pt of Me)K(pt,rt,St)}}function ee(ut,Tt,fe,St,Ce,it,Me,rt){let pt=QTe(ut,new Set(ut.map(It=>It.fileName)),Tt,fe),{importSearches:nr,indirectUsers:Oe,singleReferences:Nt}=pt(St,{exportKind:Me?1:0,exportingModuleSymbol:Ce},!1);for(let[It]of nr)rt(It);for(let It of Nt)$e(It)&&Jh(It.parent)&&rt(It);for(let It of Oe)for(let Vt of de(It,Me?"default":it)){let Mt=Tt.getSymbolAtLocation(Vt),sr=Dt(Mt?.declarations,Z=>!!ci(Z,pc));$e(Vt)&&!YC(Vt.parent)&&(Mt===St||sr)&&rt(Vt)}}e.eachExportReference=ee;function W(ut,Tt){return ke(ut,Tt)?Tt.options.use!==2?!0:$e(ut)?!(YC(ut.parent)&&ut.escapedText==="default"):!1:!1}function pe(ut,Tt){if(ut.declarations)for(let fe of ut.declarations){let St=fe.getSourceFile();Ve(St,Tt.createSearch(fe,ut,0),Tt,Tt.includesSourceFile(St))}}function K(ut,Tt,fe){tee(ut).get(Tt.escapedText)!==void 0&&Ve(ut,Tt,fe)}function re(ut,Tt){return Vv(ut.parent.parent)?Tt.getPropertySymbolOfDestructuringAssignment(ut):void 0}function ue(ut){let{declarations:Tt,flags:fe,parent:St,valueDeclaration:Ce}=ut;if(Ce&&(Ce.kind===218||Ce.kind===231))return Ce;if(!Tt)return;if(fe&8196){let rt=jn(Tt,pt=>fp(pt,2)||B_(pt));return rt?pT(rt,263):void 0}if(Tt.some(b8))return;let it=St&&!(ut.flags&262144);if(it&&!(UP(St)&&!St.globalExports))return;let Me;for(let rt of Tt){let pt=T2(rt);if(Me&&Me!==pt||!pt||pt.kind===307&&!Jf(pt))return;if(Me=pt,ic(Me)){let nr;for(;nr=MH(Me);)Me=nr}}return it?Me.getSourceFile():Me}function ce(ut,Tt,fe,St=fe){return ne(ut,Tt,fe,()=>!0,St)||!1}e.isSymbolReferencedInFile=ce;function ne(ut,Tt,fe,St,Ce=fe){let it=cp(ut.parent,ut.parent.parent)?Fo(Tt.getSymbolsOfParameterPropertyDeclaration(ut.parent,ut.text)):Tt.getSymbolAtLocation(ut);if(it)for(let Me of de(fe,it.name,Ce)){if(!$e(Me)||Me===ut||Me.escapedText!==ut.escapedText)continue;let rt=Tt.getSymbolAtLocation(Me);if(rt===it||Tt.getShorthandAssignmentValueSymbol(Me.parent)===it||E_(Me.parent)&&ze(Me,rt,Me.parent,Tt)===it){let pt=St(Me);if(pt)return pt}}}e.eachSymbolReferenceInFile=ne;function le(ut,Tt){return ti(de(Tt,ut),Ce=>!!Lw(Ce)).reduce((Ce,it)=>{let Me=St(it);return!Dt(Ce.declarationNames)||Me===Ce.depth?(Ce.declarationNames.push(it),Ce.depth=Me):MeOe===Ce)&&St(Me,pt))return!0}return!1}e.someSignatureUsage=me;function de(ut,Tt,fe=ut){return Yi(Ae(ut,Tt,fe),St=>{let Ce=Of(ut,St);return Ce===ut?void 0:Ce})}function Ae(ut,Tt,fe=ut){let St=[];if(!Tt||!Tt.length)return St;let Ce=ut.text,it=Ce.length,Me=Tt.length,rt=Ce.indexOf(Tt,fe.pos);for(;rt>=0&&!(rt>fe.end);){let pt=rt+Me;(rt===0||!vv(Ce.charCodeAt(rt-1),99))&&(pt===it||!vv(Ce.charCodeAt(pt),99))&&St.push(rt),rt=Ce.indexOf(Tt,rt+Me+1)}return St}function xe(ut,Tt){let fe=ut.getSourceFile(),St=Tt.text,Ce=Yi(de(fe,St,ut),it=>it===Tt||f8(it)&&IU(it,St)===Tt?By(it):void 0);return[{definition:{type:1,node:Tt},references:Ce}]}function te(ut,Tt){switch(ut.kind){case 81:if(ET(ut.parent))return!0;case 80:return ut.text.length===Tt.length;case 15:case 11:{let fe=ut;return(wU(fe)||yQ(ut)||y0e(ut)||to(ut.parent)&&Qx(ut.parent)&&ut.parent.arguments[1]===ut)&&fe.text.length===Tt.length}case 9:return wU(ut)&&ut.text.length===Tt.length;case 90:return Tt.length===7;default:return!1}}function he(ut,Tt){let fe=To(ut,St=>(Tt.throwIfCancellationRequested(),Yi(de(St,"meta",St),Ce=>{let it=Ce.parent;if(GP(it))return By(it)})));return fe.length?[{definition:{type:2,node:fe[0].node},references:fe}]:void 0}function Te(ut,Tt,fe,St){let Ce=To(ut,it=>(fe.throwIfCancellationRequested(),Yi(de(it,bo(Tt),it),Me=>{if(Me.kind===Tt&&(!St||St(Me)))return By(Me)})));return Ce.length?[{definition:{type:2,node:Ce[0].node},references:Ce}]:void 0}function Ve(ut,Tt,fe,St=!0){return fe.cancellationToken.throwIfCancellationRequested(),Pe(ut,ut,Tt,fe,St)}function Pe(ut,Tt,fe,St,Ce){if(St.markSearchedSymbols(Tt,fe.allSearchSymbols))for(let it of Ae(Tt,fe.text,ut))De(Tt,it,fe,St,Ce)}function ke(ut,Tt){return!!(S2(ut)&Tt.searchMeaning)}function De(ut,Tt,fe,St,Ce){let it=Of(ut,Tt);if(!te(it,fe.text)){!St.options.implementations&&(St.options.findInStrings&&sk(ut,Tt)||St.options.findInComments&&w0e(ut,Tt))&&St.addStringOrCommentReference(ut.fileName,Gu(Tt,fe.text.length));return}if(!ke(it,St))return;let Me=St.checker.getSymbolAtLocation(it);if(!Me)return;let rt=it.parent;if(pf(rt)&&rt.propertyName===it)return;if(E_(rt)){M.assert(it.kind===80),lt(it,Me,rt,fe,St,Ce);return}if(mw(rt)&&rt.isNameFirst&&rt.typeExpression&&f2(rt.typeExpression.type)&&rt.typeExpression.type.jsDocPropertyTags&&kt(rt.typeExpression.type.jsDocPropertyTags)){Be(rt.typeExpression.type.jsDocPropertyTags,it,fe,St);return}let pt=Pn(fe,Me,it,St);if(!pt){ft(Me,fe,St);return}switch(St.specialSearchKind){case 0:Ce&>(it,pt,St);break;case 1:Qe(it,ut,fe,St);break;case 2:yt(it,fe,St);break;default:M.assertNever(St.specialSearchKind)}vn(it)&&Zo(it.parent)&&Zb(it.parent.parent.parent)&&(Me=it.parent.symbol,!Me)||we(it,Me,fe,St)}function Be(ut,Tt,fe,St){let Ce=St.referenceAdder(fe.symbol);gt(Tt,fe.symbol,St),Et(ut,it=>{uf(it.name)&&Ce(it.name.left)})}function lt(ut,Tt,fe,St,Ce,it,Me){M.assert(!Me||!!Ce.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:rt,propertyName:pt,name:nr}=fe,Oe=rt.parent,Nt=ze(ut,Tt,fe,Ce.checker);if(!Me&&!St.includes(Nt))return;if(pt?ut===pt?(Oe.moduleSpecifier||It(),it&&Ce.options.use!==2&&Ce.markSeenReExportRHS(nr)&>(nr,M.checkDefined(fe.symbol),Ce)):Ce.markSeenReExportRHS(ut)&&It():Ce.options.use===2&&nr.escapedText==="default"||It(),!ia(Ce.options)||Me){let Mt=ut.escapedText==="default"||fe.name.escapedText==="default"?1:0,sr=M.checkDefined(fe.symbol),Z=ZTe(sr,Mt,Ce.checker);Z&&q(ut,sr,Z,Ce)}if(St.comingFrom!==1&&Oe.moduleSpecifier&&!pt&&!ia(Ce.options)){let Vt=Ce.checker.getExportSpecifierLocalTargetSymbol(fe);Vt&&pe(Vt,Ce)}function It(){it&>(ut,Nt,Ce)}}function ze(ut,Tt,fe,St){return tt(ut,fe)&&St.getExportSpecifierLocalTargetSymbol(fe)||Tt}function tt(ut,Tt){let{parent:fe,propertyName:St,name:Ce}=Tt;return M.assert(St===ut||Ce===ut),St?St===ut:!fe.parent.moduleSpecifier}function we(ut,Tt,fe,St){let Ce=_Je(ut,Tt,St.checker,fe.comingFrom===1);if(!Ce)return;let{symbol:it}=Ce;Ce.kind===0?ia(St.options)||pe(it,St):q(ut,it,Ce.exportInfo,St)}function ft({flags:ut,valueDeclaration:Tt},fe,St){let Ce=St.checker.getShorthandAssignmentValueSymbol(Tt),it=Tt&&Ns(Tt);!(ut&33554432)&&it&&fe.includes(Ce)&>(it,Ce,St)}function gt(ut,Tt,fe){let{kind:St,symbol:Ce}="kind"in Tt?Tt:{kind:void 0,symbol:Tt};if(fe.options.use===2&&ut.kind===90)return;let it=fe.referenceAdder(Ce);fe.options.implementations?ur(ut,it,fe):it(ut,St)}function Qe(ut,Tt,fe,St){_6(ut)&>(ut,fe.symbol,St);let Ce=()=>St.referenceAdder(fe.symbol);if(vi(ut.parent))M.assert(ut.kind===90||ut.parent.name===ut),ir(fe.symbol,Tt,Ce());else{let it=Ys(ut);it&&(Ar(it,Ce()),fr(it,St))}}function yt(ut,Tt,fe){gt(ut,Tt.symbol,fe);let St=ut.parent;if(fe.options.use===2||!vi(St))return;M.assert(St.name===ut);let Ce=fe.referenceAdder(Tt.symbol);for(let it of St.members)XC(it)&&co(it)&&it.body&&it.body.forEachChild(function Me(rt){rt.kind===110?Ce(rt):!Us(rt)&&!vi(rt)&&rt.forEachChild(Me)})}function ir(ut,Tt,fe){let St=Tr(ut);if(St&&St.declarations)for(let Ce of St.declarations){let it=Ma(Ce,137,Tt);M.assert(Ce.kind===176&&!!it),fe(it)}ut.exports&&ut.exports.forEach(Ce=>{let it=Ce.valueDeclaration;if(it&&it.kind===174){let Me=it.body;Me&&uo(Me,110,rt=>{_6(rt)&&fe(rt)})}})}function Tr(ut){return ut.members&&ut.members.get("__constructor")}function Ar(ut,Tt){let fe=Tr(ut.symbol);if(fe&&fe.declarations)for(let St of fe.declarations){M.assert(St.kind===176);let Ce=St.body;Ce&&uo(Ce,108,it=>{_Q(it)&&Tt(it)})}}function Vr(ut){return!!Tr(ut.symbol)}function fr(ut,Tt){if(Vr(ut))return;let fe=ut.symbol,St=Tt.createSearch(void 0,fe,void 0);I(fe,Tt,St)}function ur(ut,Tt,fe){if(Bh(ut)&&ki(ut.parent)){Tt(ut);return}if(ut.kind!==80)return;ut.parent.kind===304&&Vi(ut,fe.checker,Tt);let St=tn(ut);if(St){Tt(St);return}let Ce=Dr(ut,rt=>!uf(rt.parent)&&!wi(rt.parent)&&!Gb(rt.parent)),it=Ce.parent;if(z5(it)&&it.type===Ce&&fe.markSeenContainingTypeReference(it))if(bv(it))Me(it.initializer);else if(Us(it)&&it.body){let rt=it.body;rt.kind===241?Cv(rt,pt=>{pt.expression&&Me(pt.expression)}):Me(rt)}else sT(it)&&Me(it.expression);function Me(rt){Mi(rt)&&Tt(rt)}}function tn(ut){return $e(ut)||Hn(ut)?tn(ut.parent):C0(ut)?ci(ut.parent.parent,qp(vi,Xu)):void 0}function Mi(ut){switch(ut.kind){case 217:return Mi(ut.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function br(ut,Tt,fe,St){if(ut===Tt)return!0;let Ce=Po(ut)+","+Po(Tt),it=fe.get(Ce);if(it!==void 0)return it;fe.set(Ce,!1);let Me=!!ut.declarations&&ut.declarations.some(rt=>Fw(rt).some(pt=>{let nr=St.getTypeAtLocation(pt);return!!nr&&!!nr.symbol&&br(nr.symbol,Tt,fe,St)}));return fe.set(Ce,Me),Me}function Di(ut){let Tt=uR(ut,!1);if(!Tt)return;let fe=256;switch(Tt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:fe&=Dv(Tt),Tt=Tt.parent;break;default:return}let St=Tt.getSourceFile(),Ce=Yi(de(St,"super",Tt),it=>{if(it.kind!==108)return;let Me=uR(it,!1);return Me&&co(Me)===!!fe&&Me.parent.symbol===Tt.symbol?By(it):void 0});return[{definition:{type:0,symbol:Tt.symbol},references:Ce}]}function As(ut){return ut.kind===80&&ut.parent.kind===169&&ut.parent.name===ut}function os(ut,Tt,fe){let St=of(ut,!1,!1),Ce=256;switch(St.kind){case 174:case 173:if(Nm(St)){Ce&=Dv(St),St=St.parent;break}case 172:case 171:case 176:case 177:case 178:Ce&=Dv(St),St=St.parent;break;case 307:if(iu(St)||As(ut))return;case 262:case 218:break;default:return}let it=To(St.kind===307?Tt:[St.getSourceFile()],rt=>(fe.throwIfCancellationRequested(),de(rt,"this",qi(St)?rt:St).filter(pt=>{if(!HN(pt))return!1;let nr=of(pt,!1,!1);if(!Qm(nr))return!1;switch(St.kind){case 218:case 262:return St.symbol===nr.symbol;case 174:case 173:return Nm(St)&&St.symbol===nr.symbol;case 231:case 263:case 210:return nr.parent&&Qm(nr.parent)&&St.symbol===nr.parent.symbol&&co(nr)===!!Ce;case 307:return nr.kind===307&&!iu(nr)&&!As(pt)}}))).map(rt=>By(rt));return[{definition:{type:3,node:di(it,rt=>is(rt.node.parent)?rt.node:void 0)||ut},references:it}]}function Ri(ut,Tt,fe,St){let Ce=LU(ut,fe),it=To(Tt,Me=>(St.throwIfCancellationRequested(),Yi(de(Me,ut.text),rt=>{if(Ia(rt)&&rt.text===ut.text)if(Ce){let pt=LU(rt,fe);if(Ce!==fe.getStringType()&&(Ce===pt||$r(rt,fe)))return By(rt,2)}else return wA(rt)&&!n2(rt,Me)?void 0:By(rt,2)})));return[{definition:{type:4,node:ut},references:it}]}function $r(ut,Tt){if(If(ut.parent))return Tt.getPropertyOfType(Tt.getTypeAtLocation(ut.parent.parent),ut.text)}function Qs(ut,Tt,fe,St,Ce,it){let Me=[];return He(ut,Tt,fe,St,!(St&&Ce),(rt,pt,nr)=>{nr&&qr(ut)!==qr(nr)&&(nr=void 0),Me.push(nr||pt||rt)},()=>!it),Me}function He(ut,Tt,fe,St,Ce,it,Me){let rt=V8(Tt);if(rt){let Mt=fe.getShorthandAssignmentValueSymbol(Tt.parent);if(Mt&&St)return it(Mt,void 0,void 0,3);let sr=fe.getContextualType(rt.parent),Z=sr&&di(MV(rt,fe,sr,!0),Xe=>It(Xe,4));if(Z)return Z;let Ye=re(Tt,fe),bt=Ye&&it(Ye,void 0,void 0,4);if(bt)return bt;let Q=Mt&&it(Mt,void 0,void 0,3);if(Q)return Q}let pt=a(Tt,ut,fe);if(pt){let Mt=it(pt,void 0,void 0,1);if(Mt)return Mt}let nr=It(ut);if(nr)return nr;if(ut.valueDeclaration&&cp(ut.valueDeclaration,ut.valueDeclaration.parent)){let Mt=fe.getSymbolsOfParameterPropertyDeclaration(ao(ut.valueDeclaration,is),ut.name);return M.assert(Mt.length===2&&!!(Mt[0].flags&1)&&!!(Mt[1].flags&4)),It(ut.flags&1?Mt[1]:Mt[0])}let Oe=kc(ut,281);if(!St||Oe&&!Oe.propertyName){let Mt=Oe&&fe.getExportSpecifierLocalTargetSymbol(Oe);if(Mt){let sr=it(Mt,void 0,void 0,1);if(sr)return sr}}if(!St){let Mt;return Ce?Mt=b8(Tt.parent)?YU(fe,Tt.parent):void 0:Mt=Vt(ut,fe),Mt&&It(Mt,4)}if(M.assert(St),Ce){let Mt=Vt(ut,fe);return Mt&&It(Mt,4)}function It(Mt,sr){return di(fe.getRootSymbols(Mt),Z=>it(Mt,Z,void 0,sr)||(Z.parent&&Z.parent.flags&96&&Me(Z)?Xt(Z.parent,Z.name,fe,Ye=>it(Mt,Z,Ye,sr)):void 0))}function Vt(Mt,sr){let Z=kc(Mt,208);if(Z&&b8(Z))return YU(sr,Z)}}function Xt(ut,Tt,fe,St){let Ce=new Map;return it(ut);function it(Me){if(!(!(Me.flags&96)||!tm(Ce,Po(Me))))return di(Me.declarations,rt=>di(Fw(rt),pt=>{let nr=fe.getTypeAtLocation(pt),Oe=nr&&nr.symbol&&fe.getPropertyOfType(nr,Tt);return nr&&Oe&&(di(fe.getRootSymbols(Oe),St)||it(nr.symbol))}))}}function qr(ut){return ut.valueDeclaration?!!(V_(ut.valueDeclaration)&256):!1}function Pn(ut,Tt,fe,St){let{checker:Ce}=St;return He(Tt,fe,Ce,!1,St.options.use!==2||!!St.options.providePrefixAndSuffixTextForRename,(it,Me,rt,pt)=>(rt&&qr(Tt)!==qr(rt)&&(rt=void 0),ut.includes(rt||Me||it)?{symbol:Me&&!(ul(it)&6)?Me:it,kind:pt}:void 0),it=>!(ut.parents&&!ut.parents.some(Me=>br(it.parent,Me,St.inheritsFromCache,Ce))))}function Ti(ut,Tt){let fe=S2(ut),{declarations:St}=Tt;if(St){let Ce;do{Ce=fe;for(let it of St){let Me=PU(it);Me&fe&&(fe|=Me)}}while(fe!==Ce)}return fe}e.getIntersectingMeaningFromDeclarations=Ti;function ki(ut){return ut.flags&33554432?!(Xu(ut)||sm(ut)):nA(ut)?bv(ut):$a(ut)?!!ut.body:vi(ut)||Y3(ut)}function Vi(ut,Tt,fe){let St=Tt.getSymbolAtLocation(ut),Ce=Tt.getShorthandAssignmentValueSymbol(St.valueDeclaration);if(Ce)for(let it of Ce.getDeclarations())PU(it)&1&&fe(it)}e.getReferenceEntriesForShorthandPropertyAssignment=Vi;function uo(ut,Tt,fe){qs(ut,St=>{St.kind===Tt&&fe(St),uo(St,Tt,fe)})}function Ys(ut){return c$(DU(ut).parent)}function Sr(ut,Tt,fe){let St=GN(ut)?ut.parent:void 0,Ce=St&&fe.getTypeAtLocation(St.expression),it=Yi(Ce&&(Ce.isUnionOrIntersection()?Ce.types:Ce.symbol===Tt.parent?void 0:[Ce]),Me=>Me.symbol&&Me.symbol.flags&96?Me.symbol:void 0);return it.length===0?void 0:it}function ia(ut){return ut.use===2&&ut.providePrefixAndSuffixTextForRename}})(yk||(yk={}));var cD={};k(cD,{createDefinitionInfo:()=>X8,findReferenceInPosition:()=>M6,getDefinitionAndBoundSpan:()=>JOt,getDefinitionAtPosition:()=>TJe,getReferenceAtPosition:()=>EJe,getTypeDefinitionAtPosition:()=>UOt});function TJe(e,t,n,i,s){var a;let u=EJe(t,n,e),m=u&&[HOt(u.reference.fileName,u.fileName,u.unverified)]||ve;if(u?.file)return m;let d=Of(t,n);if(d===t)return;let{parent:S}=d,E=e.getTypeChecker();if(d.kind===164||$e(d)&&Hj(S)&&S.tagName===d)return FOt(E,d)||ve;if(f8(d)){let F=IU(d.parent,d.text);return F?[sbe(E,F,"label",d.text,void 0)]:void 0}switch(d.kind){case 107:let F=Dr(d.parent,$=>$c($)?"quit":$a($));return F?[XV(E,F)]:void 0;case 90:if(!DO(d.parent))break;case 84:let J=Dr(d.parent,kO);if(J)return[GOt(J,t)];break}if(d.kind===135){let F=Dr(d,$=>$a($));return F&&Dt(F.modifiers,$=>$.kind===134)?[XV(E,F)]:void 0}if(d.kind===127){let F=Dr(d,$=>$a($));return F&&F.asteriskToken?[XV(E,F)]:void 0}if(MA(d)&&$c(d.parent)){let F=d.parent.parent,{symbol:J,failedAliasResolution:$}=Gee(F,E,s),q=ti(F.members,$c),ee=J?E.symbolToString(J,F):"",W=d.getSourceFile();return kr(q,pe=>{let{pos:K}=Vg(pe);return K=zo(W.text,K),sbe(E,pe,"constructor","static {}",ee,!1,$,{start:K,length:6})})}let{symbol:x,failedAliasResolution:D}=Gee(d,E,s),I=d;if(i&&D){let F=Et([d,...x?.declarations||ve],$=>Dr($,R_e)),J=F&&Ow(F);J&&({symbol:x,failedAliasResolution:D}=Gee(J,E,s),I=J)}if(!x&&$U(I)){let F=(a=e.getResolvedModuleFromModuleSpecifier(I,t))==null?void 0:a.resolvedModule;if(F)return[{name:I.text,fileName:F.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Gu(0,0),failedAliasResolution:D,isAmbient:ju(F.resolvedFileName),unverified:I!==d}]}if(!x)return ds(m,qOt(d,E));if(i&&Oi(x.declarations,F=>F.getSourceFile().fileName===t.fileName))return;let R=YOt(E,d);if(R&&!(p_(d.parent)&&KOt(R))){let F=XV(E,R,D);if(E.getRootSymbols(x).some(J=>LOt(J,R)))return[F];{let J=R6(E,x,d,D,R)||ve;return d.kind===108?[F,...J]:[...J,F]}}if(d.parent.kind===304){let F=E.getShorthandAssignmentValueSymbol(x.valueDeclaration),J=F?.declarations?F.declarations.map($=>X8($,E,F,d,!1,D)):ve;return ds(J,bJe(E,d))}if(Ol(d)&&Zo(S)&&Kp(S.parent)&&d===(S.propertyName||S.name)){let F=T8(d),J=E.getTypeAtLocation(S.parent);return F===void 0?ve:To(J.isUnion()?J.types:[J],$=>{let q=$.getProperty(F);return q&&R6(E,q,d)})}let L=bJe(E,d);return ds(m,L.length?L:R6(E,x,d,D))}function LOt(e,t){var n;return e===t.symbol||e===t.symbol.parent||Tu(t.parent)||!Hb(t.parent)&&e===((n=ci(t.parent,Qm))==null?void 0:n.symbol)}function bJe(e,t){let n=V8(t);if(n){let i=n&&e.getContextualType(n.parent);if(i)return To(MV(n,e,i,!1),s=>R6(e,s,t))}return ve}function FOt(e,t){let n=Dr(t,_u);if(!(n&&n.name))return;let i=Dr(n,vi);if(!i)return;let s=Lg(i);if(!s)return;let a=ba(s.expression),u=tu(a)?a.symbol:e.getSymbolAtLocation(a);if(!u)return;let m=Zi(rA(n.name)),d=Jl(n)?e.getPropertyOfType(e.getTypeOfSymbol(u),m):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(u),m);if(d)return R6(e,d,t)}function EJe(e,t,n){var i,s;let a=M6(e.referencedFiles,t);if(a){let d=n.getSourceFileFromReference(e,a);return d&&{reference:a,fileName:d.fileName,file:d,unverified:!1}}let u=M6(e.typeReferenceDirectives,t);if(u){let d=(i=n.getResolvedTypeReferenceDirectiveFromTypeReferenceDirective(u,e))==null?void 0:i.resolvedTypeReferenceDirective,S=d&&n.getSourceFile(d.resolvedFileName);return S&&{reference:u,fileName:S.fileName,file:S,unverified:!1}}let m=M6(e.libReferenceDirectives,t);if(m){let d=n.getLibFileFromReference(m);return d&&{reference:m,fileName:d.fileName,file:d,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let d=$N(e,t),S;if($U(d)&&Su(d.text)&&(S=n.getResolvedModuleFromModuleSpecifier(d,e))){let E=(s=S.resolvedModule)==null?void 0:s.resolvedFileName,x=E||QS(yi(e.fileName),d.text);return{file:n.getSourceFile(x),fileName:x,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!E}}}}var xJe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function jOt(e,t){let n=t.symbol.name;if(!xJe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.target.symbol}function CJe(e,t){if(!t.aliasSymbol)return!1;let n=t.aliasSymbol.name;if(!xJe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function BOt(e,t,n,i){var s,a;if(Qn(t)&4&&jOt(e,t))return K8(e.getTypeArguments(t)[0],e,n,i);if(CJe(e,t)&&t.aliasTypeArguments)return K8(t.aliasTypeArguments[0],e,n,i);if(Qn(t)&32&&t.target&&CJe(e,t.target)){let u=(a=(s=t.aliasSymbol)==null?void 0:s.declarations)==null?void 0:a[0];if(u&&sm(u)&&Yp(u.type)&&u.type.typeArguments)return K8(e.getTypeAtLocation(u.type.typeArguments[0]),e,n,i)}return[]}function UOt(e,t,n){let i=Of(t,n);if(i===t)return;if(GP(i.parent)&&i.parent.name===i)return K8(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:s,failedAliasResolution:a}=Gee(i,e,!1);if(!s)return;let u=e.getTypeOfSymbolAtLocation(s,i),m=VOt(s,u,e),d=m&&K8(m,e,i,a),[S,E]=d&&d.length!==0?[m,d]:[u,K8(u,e,i,a)];return E.length?[...BOt(e,S,i,a),...E]:!(s.flags&111551)&&s.flags&788968?R6(e,$u(s,e),i,a):void 0}function K8(e,t,n,i){return To(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&R6(t,s.symbol,n,i))}function VOt(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Ci(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return n.getReturnTypeOfSignature(Fo(i))}}function JOt(e,t,n){let i=TJe(e,t,n);if(!i||i.length===0)return;let s=M6(t.referencedFiles,n)||M6(t.typeReferenceDirectives,n)||M6(t.libReferenceDirectives,n);if(s)return{definitions:i,textSpan:lS(s)};let a=Of(t,n),u=Gu(a.getStart(),a.getWidth());return{definitions:i,textSpan:u}}function qOt(e,t){return Yi(t.getIndexInfosAtLocation(e),n=>n.declaration&&XV(t,n.declaration))}function Gee(e,t,n){let i=t.getSymbolAtLocation(e),s=!1;if(i?.declarations&&i.flags&2097152&&!n&&zOt(e,i.declarations[0])){let a=t.getAliasedSymbol(i);if(a.declarations)return{symbol:a};s=!0}return{symbol:i,failedAliasResolution:s}}function zOt(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function WOt(e){if(!Iw(e))return!1;let t=Dr(e,n=>Tu(n)?!0:Iw(n)?!1:"quit");return!!t&&ll(t)===5}function R6(e,t,n,i,s){let a=ti(t.declarations,D=>D!==s),u=S()||E();if(u)return u;let m=ti(a,D=>!WOt(D)),d=Dt(m)?m:a;return kr(d,D=>X8(D,e,t,n,!1,i));function S(){if(t.flags&32&&!(t.flags&19)&&(_6(n)||n.kind===137)){let D=jn(a,vi);return D&&x(D.members,!0)}}function E(){return fQ(n)||vQ(n)?x(a,!1):void 0}function x(D,I){if(!D)return;let R=D.filter(I?Vc:Us),L=R.filter(F=>!!F.body);return R.length?L.length!==0?L.map(F=>X8(F,e,t,n)):[X8(qo(R),e,t,n,!1,i)]:void 0}}function X8(e,t,n,i,s,a){let u=t.symbolToString(n),m=Wv.getSymbolKind(t,n,i),d=n.parent?t.symbolToString(n.parent,i):"";return sbe(t,e,m,u,d,s,a)}function sbe(e,t,n,i,s,a,u,m){let d=t.getSourceFile();if(!m){let S=Ns(t)||t;m=gf(S,d)}return{fileName:d.fileName,textSpan:m,kind:n,name:i,containerKind:void 0,containerName:s,...lc.toContextSpan(m,d,lc.getContextNode(t)),isLocal:!obe(e,t),isAmbient:!!(t.flags&33554432),unverified:a,failedAliasResolution:u}}function GOt(e,t){let n=lc.getContextNode(e),i=gf(tbe(n)?n.start:n,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...lc.toContextSpan(i,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function obe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(bv(t.parent)&&t.parent.initializer===t)return obe(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(fp(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return obe(e,t.parent);default:return!1}}function XV(e,t,n){return X8(t,e,t.symbol,t,!1,n)}function M6(e,t){return jn(e,n=>O3(n,t))}function HOt(e,t,n){return{fileName:t,textSpan:wl(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:n}}function $Ot(e){let t=Dr(e,i=>!GN(i)),n=t?.parent;return n&&Hb(n)&&m9(n)===t?n:void 0}function YOt(e,t){let n=$Ot(t),i=n&&e.getResolvedSignature(n);return ci(i&&i.declaration,s=>Us(s)&&!Vh(s))}function KOt(e){switch(e.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}var Hee={};k(Hee,{provideInlayHints:()=>e6t});var XOt=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function QOt(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function ZOt(e){return e.includeInlayParameterNameHints==="literals"}function AJe(e){return e.interactiveInlayHints===!0}function e6t(e){let{file:t,program:n,span:i,cancellationToken:s,preferences:a}=e,u=t.text,m=n.getCompilerOptions(),d=td(t,a),S=n.getTypeChecker(),E=[];return x(t),E;function x(xe){if(!(!xe||xe.getFullWidth()===0)){switch(xe.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:s.throwIfCancellationRequested()}if(k5(i,xe.pos,xe.getFullWidth())&&!(wi(xe)&&!C0(xe)))return a.includeInlayVariableTypeHints&&Ci(xe)||a.includeInlayPropertyDeclarationTypeHints&&Ds(xe)?$(xe):a.includeInlayEnumMemberValueHints&&nS(xe)?F(xe):QOt(a)&&(to(xe)||gE(xe))?q(xe):(a.includeInlayFunctionParameterTypeHints&&$a(xe)&&vj(xe)&&ue(xe),a.includeInlayFunctionLikeReturnTypeHints&&D(xe)&&K(xe)),qs(xe,x)}}function D(xe){return fc(xe)||ic(xe)||El(xe)||_l(xe)||$p(xe)}function I(xe,te,he,Te){let Ve=`${Te?"...":""}${xe}`,Pe;AJe(a)?(Pe=[Ae(Ve,te),{text:":"}],Ve=""):Ve+=":",E.push({text:Ve,position:he,kind:"Parameter",whitespaceAfter:!0,displayParts:Pe})}function R(xe,te){E.push({text:typeof xe=="string"?`: ${xe}`:"",displayParts:typeof xe=="string"?void 0:[{text:": "},...xe],position:te,kind:"Type",whitespaceBefore:!0})}function L(xe,te){E.push({text:`= ${xe}`,position:te,kind:"Enum",whitespaceBefore:!0})}function F(xe){if(xe.initializer)return;let te=S.getConstantValue(xe);te!==void 0&&L(te.toString(),xe.end)}function J(xe){return xe.symbol&&xe.symbol.flags&1536}function $(xe){if(xe.initializer===void 0&&!(Ds(xe)&&!(S.getTypeAtLocation(xe).flags&1))||$s(xe.name)||Ci(xe)&&!de(xe)||Vl(xe))return;let he=S.getTypeAtLocation(xe);if(J(he))return;let Te=le(he);if(Te){let Ve=typeof Te=="string"?Te:Te.map(ke=>ke.text).join("");if(a.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&KS(xe.name.getText(),Ve))return;R(Te,xe.name.end)}}function q(xe){let te=xe.arguments;if(!te||!te.length)return;let he=[],Te=S.getResolvedSignatureForSignatureHelp(xe,he);if(!Te||!he.length)return;let Ve=0;for(let Pe of te){let ke=ba(Pe);if(ZOt(a)&&!pe(ke)){Ve++;continue}let De=0;if(kd(ke)){let lt=S.getTypeAtLocation(ke.expression);if(S.isTupleType(lt)){let{elementFlags:ze,fixedLength:tt}=lt.target;if(tt===0)continue;let we=Va(ze,gt=>!(gt&1));(we<0?tt:we)>0&&(De=we<0?tt:we)}}let Be=S.getParameterIdentifierInfoAtPosition(Te,Ve);if(Ve=Ve+(De||1),Be){let{parameter:lt,parameterName:ze,isRestParameter:tt}=Be;if(!(a.includeInlayParameterNameHintsWhenArgumentMatchesName||!ee(ke,ze))&&!tt)continue;let ft=Zi(ze);if(W(ke,ft))continue;I(ft,lt,Pe.getStart(),tt)}}}function ee(xe,te){return $e(xe)?xe.text===te:Hn(xe)?xe.name.text===te:!1}function W(xe,te){if(!ap(te,Qo(m),YR(t.scriptKind)))return!1;let he=Ty(u,xe.pos);if(!he?.length)return!1;let Te=XOt(te);return Dt(he,Ve=>Te.test(u.substring(Ve.pos,Ve.end)))}function pe(xe){switch(xe.kind){case 224:{let te=xe.operand;return Wb(te)||$e(te)&&fO(te.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let te=xe.escapedText;return me(te)||fO(te)}}return Wb(xe)}function K(xe){if(fc(xe)&&!Ma(xe,21,t)||_p(xe)||!xe.body)return;let he=S.getSignatureFromDeclaration(xe);if(!he)return;let Te=S.getReturnTypeOfSignature(he);if(J(Te))return;let Ve=le(Te);Ve&&R(Ve,re(xe))}function re(xe){let te=Ma(xe,22,t);return te?te.end:xe.parameters.end}function ue(xe){let te=S.getSignatureFromDeclaration(xe);if(te)for(let he=0;he{let Ve=S.typeToTypeNode(xe,void 0,71286784);M.assertIsDefined(Ve,"should always get typenode"),he.writeNode(4,Ve,t,Te)})}function le(xe){if(!AJe(a))return ne(xe);let he=S.typeToTypeNode(xe,void 0,71286784);M.assertIsDefined(he,"should always get typenode");let Te=[];return Ve(he),Te;function Ve(Be){var lt,ze;if(!Be)return;let tt=bo(Be.kind);if(tt){Te.push({text:tt});return}if(Wb(Be)){Te.push({text:De(Be)});return}switch(Be.kind){case 80:M.assertNode(Be,$e);let we=In(Be),ft=Be.symbol&&Be.symbol.declarations&&Be.symbol.declarations.length&&Ns(Be.symbol.declarations[0]);ft?Te.push(Ae(we,ft)):Te.push({text:we});break;case 166:M.assertNode(Be,uf),Ve(Be.left),Te.push({text:"."}),Ve(Be.right);break;case 182:M.assertNode(Be,FA),Be.assertsModifier&&Te.push({text:"asserts "}),Ve(Be.parameterName),Be.type&&(Te.push({text:" is "}),Ve(Be.type));break;case 183:M.assertNode(Be,Yp),Ve(Be.typeName),Be.typeArguments&&(Te.push({text:"<"}),ke(Be.typeArguments,", "),Te.push({text:">"}));break;case 168:M.assertNode(Be,Cc),Be.modifiers&&ke(Be.modifiers," "),Ve(Be.name),Be.constraint&&(Te.push({text:" extends "}),Ve(Be.constraint)),Be.default&&(Te.push({text:" = "}),Ve(Be.default));break;case 169:M.assertNode(Be,is),Be.modifiers&&ke(Be.modifiers," "),Be.dotDotDotToken&&Te.push({text:"..."}),Ve(Be.name),Be.questionToken&&Te.push({text:"?"}),Be.type&&(Te.push({text:": "}),Ve(Be.type));break;case 185:M.assertNode(Be,hN),Te.push({text:"new "}),Pe(Be),Te.push({text:" => "}),Ve(Be.type);break;case 186:M.assertNode(Be,pE),Te.push({text:"typeof "}),Ve(Be.exprName),Be.typeArguments&&(Te.push({text:"<"}),ke(Be.typeArguments,", "),Te.push({text:">"}));break;case 187:M.assertNode(Be,_f),Te.push({text:"{"}),Be.members.length&&(Te.push({text:" "}),ke(Be.members,"; "),Te.push({text:" "})),Te.push({text:"}"});break;case 188:M.assertNode(Be,gM),Ve(Be.elementType),Te.push({text:"[]"});break;case 189:M.assertNode(Be,jA),Te.push({text:"["}),ke(Be.elements,", "),Te.push({text:"]"});break;case 202:M.assertNode(Be,yN),Be.dotDotDotToken&&Te.push({text:"..."}),Ve(Be.name),Be.questionToken&&Te.push({text:"?"}),Te.push({text:": "}),Ve(Be.type);break;case 190:M.assertNode(Be,jj),Ve(Be.type),Te.push({text:"?"});break;case 191:M.assertNode(Be,Bj),Te.push({text:"..."}),Ve(Be.type);break;case 192:M.assertNode(Be,Z1),ke(Be.types," | ");break;case 193:M.assertNode(Be,BA),ke(Be.types," & ");break;case 194:M.assertNode(Be,dE),Ve(Be.checkType),Te.push({text:" extends "}),Ve(Be.extendsType),Te.push({text:" ? "}),Ve(Be.trueType),Te.push({text:" : "}),Ve(Be.falseType);break;case 195:M.assertNode(Be,s2),Te.push({text:"infer "}),Ve(Be.typeParameter);break;case 196:M.assertNode(Be,o2),Te.push({text:"("}),Ve(Be.type),Te.push({text:")"});break;case 198:M.assertNode(Be,yT),Te.push({text:`${bo(Be.operator)} `}),Ve(Be.type);break;case 199:M.assertNode(Be,mE),Ve(Be.objectType),Te.push({text:"["}),Ve(Be.indexType),Te.push({text:"]"});break;case 200:M.assertNode(Be,a2),Te.push({text:"{ "}),Be.readonlyToken&&(Be.readonlyToken.kind===40?Te.push({text:"+"}):Be.readonlyToken.kind===41&&Te.push({text:"-"}),Te.push({text:"readonly "})),Te.push({text:"["}),Ve(Be.typeParameter),Be.nameType&&(Te.push({text:" as "}),Ve(Be.nameType)),Te.push({text:"]"}),Be.questionToken&&(Be.questionToken.kind===40?Te.push({text:"+"}):Be.questionToken.kind===41&&Te.push({text:"-"}),Te.push({text:"?"})),Te.push({text:": "}),Be.type&&Ve(Be.type),Te.push({text:"; }"});break;case 201:M.assertNode(Be,Lv),Ve(Be.literal);break;case 184:M.assertNode(Be,Vh),Pe(Be),Te.push({text:" => "}),Ve(Be.type);break;case 205:M.assertNode(Be,Jh),Be.isTypeOf&&Te.push({text:"typeof "}),Te.push({text:"import("}),Ve(Be.argument),Be.assertions&&(Te.push({text:", { assert: "}),ke(Be.assertions.assertClause.elements,", "),Te.push({text:" }"})),Te.push({text:")"}),Be.qualifier&&(Te.push({text:"."}),Ve(Be.qualifier)),Be.typeArguments&&(Te.push({text:"<"}),ke(Be.typeArguments,", "),Te.push({text:">"}));break;case 171:M.assertNode(Be,If),(lt=Be.modifiers)!=null&<.length&&(ke(Be.modifiers," "),Te.push({text:" "})),Ve(Be.name),Be.questionToken&&Te.push({text:"?"}),Be.type&&(Te.push({text:": "}),Ve(Be.type));break;case 181:M.assertNode(Be,fE),Te.push({text:"["}),ke(Be.parameters,", "),Te.push({text:"]"}),Be.type&&(Te.push({text:": "}),Ve(Be.type));break;case 173:M.assertNode(Be,Wg),(ze=Be.modifiers)!=null&&ze.length&&(ke(Be.modifiers," "),Te.push({text:" "})),Ve(Be.name),Be.questionToken&&Te.push({text:"?"}),Pe(Be),Be.type&&(Te.push({text:": "}),Ve(Be.type));break;case 179:M.assertNode(Be,LA),Pe(Be),Be.type&&(Te.push({text:": "}),Ve(Be.type));break;case 207:M.assertNode(Be,Fv),Te.push({text:"["}),ke(Be.elements,", "),Te.push({text:"]"});break;case 206:M.assertNode(Be,Kp),Te.push({text:"{"}),Be.elements.length&&(Te.push({text:" "}),ke(Be.elements,", "),Te.push({text:" "})),Te.push({text:"}"});break;case 208:M.assertNode(Be,Zo),Ve(Be.name);break;case 224:M.assertNode(Be,tS),Te.push({text:bo(Be.operator)}),Ve(Be.operand);break;case 203:M.assertNode(Be,zde),Ve(Be.head),Be.templateSpans.forEach(Ve);break;case 16:M.assertNode(Be,OA),Te.push({text:De(Be)});break;case 204:M.assertNode(Be,aY),Ve(Be.type),Ve(Be.literal);break;case 17:M.assertNode(Be,nY),Te.push({text:De(Be)});break;case 18:M.assertNode(Be,Rj),Te.push({text:De(Be)});break;case 197:M.assertNode(Be,vN),Te.push({text:"this"});break;default:M.failBadSyntaxKind(Be)}}function Pe(Be){Be.typeParameters&&(Te.push({text:"<"}),ke(Be.typeParameters,", "),Te.push({text:">"})),Te.push({text:"("}),ke(Be.parameters,", "),Te.push({text:")"})}function ke(Be,lt){Be.forEach((ze,tt)=>{tt>0&&Te.push({text:lt}),Ve(ze)})}function De(Be){switch(Be.kind){case 11:return d===0?`'${Uh(Be.text,39)}'`:`"${Uh(Be.text,34)}"`;case 16:case 17:case 18:{let lt=Be.rawText??KH(Uh(Be.text,96));switch(Be.kind){case 16:return"`"+lt+"${";case 17:return"}"+lt+"${";case 18:return"}"+lt+"`"}}}return Be.text}}function me(xe){return xe==="undefined"}function de(xe){if((dT(xe)||Ci(xe)&&WP(xe))&&xe.initializer){let te=ba(xe.initializer);return!(pe(te)||gE(te)||ko(te)||sT(te))}return!0}function Ae(xe,te){let he=te.getSourceFile();return{text:xe,span:gf(te,he),file:he.fileName}}}var BT={};k(BT,{getDocCommentTemplateAtPosition:()=>_6t,getJSDocParameterNameCompletionDetails:()=>u6t,getJSDocParameterNameCompletions:()=>l6t,getJSDocTagCompletionDetails:()=>OJe,getJSDocTagCompletions:()=>c6t,getJSDocTagNameCompletionDetails:()=>a6t,getJSDocTagNameCompletions:()=>o6t,getJsDocCommentsFromDeclarations:()=>t6t,getJsDocTagsFromDeclarations:()=>i6t});var kJe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","import","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],PJe,NJe;function t6t(e,t){let n=[];return WQ(e,i=>{for(let s of n6t(i)){let a=sg(s)&&s.tags&&jn(s.tags,m=>m.kind===327&&(m.tagName.escapedText==="inheritDoc"||m.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!a||sg(s)&&i.kind!==346&&i.kind!==338&&s.tags&&s.tags.some(m=>m.kind===346||m.kind===338)&&!s.tags.some(m=>m.kind===341||m.kind===342))continue;let u=s.comment?lD(s.comment,t):[];a&&a.comment&&(u=u.concat(lD(a.comment,t))),xs(n,u,r6t)||n.push(u)}}),rf(Ef(n,[QN()]))}function r6t(e,t){return Ub(e,t,(n,i)=>n.kind===i.kind&&n.text===i.text)}function n6t(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(xN(e.parent))return[e.parent.parent];default:return RH(e)}}function i6t(e,t){let n=[];return WQ(e,i=>{let s=nT(i);if(!(s.some(a=>a.kind===346||a.kind===338)&&!s.some(a=>a.kind===341||a.kind===342)))for(let a of s)n.push({name:a.tagName.text,text:wJe(a,t)}),n.push(...DJe(IJe(a),t))}),n}function DJe(e,t){return To(e,n=>ds([{name:n.tagName.text,text:wJe(n,t)}],DJe(IJe(n),t)))}function IJe(e){return mw(e)&&e.isNameFirst&&e.typeExpression&&f2(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function lD(e,t){return typeof e=="string"?[rd(e)]:To(e,n=>n.kind===321?[rd(n.text)]:z0e(n,t))}function wJe(e,t){let{comment:n,kind:i}=e,s=s6t(i);switch(i){case 349:let m=e.typeExpression;return m?a(m):n===void 0?void 0:lD(n,t);case 329:return a(e.class);case 328:return a(e.class);case 345:let d=e,S=[];if(d.constraint&&S.push(rd(d.constraint.getText())),kt(d.typeParameters)){kt(S)&&S.push(Zc());let x=d.typeParameters[d.typeParameters.length-1];Et(d.typeParameters,D=>{S.push(s(D.getText())),x!==D&&S.push(k_(28),Zc())})}return n&&S.push(Zc(),...lD(n,t)),S;case 344:case 350:return a(e.typeExpression);case 346:case 338:case 348:case 341:case 347:let{name:E}=e;return E?a(E):n===void 0?void 0:lD(n,t);default:return n===void 0?void 0:lD(n,t)}function a(m){return u(m.getText())}function u(m){return n?m.match(/^https?$/)?[rd(m),...lD(n,t)]:[s(m),Zc(),...lD(n,t)]:[rd(m)]}}function s6t(e){switch(e){case 341:return B0e;case 348:return U0e;case 345:return J0e;case 346:case 338:return V0e;default:return rd}}function o6t(){return PJe||(PJe=kr(kJe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:hk.SortText.LocationPriority})))}var a6t=OJe;function c6t(){return NJe||(NJe=kr(kJe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:hk.SortText.LocationPriority})))}function OJe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[rd(e)],documentation:ve,tags:void 0,codeActions:void 0}}function l6t(e){if(!$e(e.name))return ve;let t=e.name.text,n=e.parent,i=n.parent;return Us(i)?Yi(i.parameters,s=>{if(!$e(s.name))return;let a=s.name.text;if(!(n.tags.some(u=>u!==e&&Nd(u)&&$e(u.name)&&u.name.escapedText===a)||t!==void 0&&!fs(a,t)))return{name:a,kind:"parameter",kindModifiers:"",sortText:hk.SortText.LocationPriority}}):[]}function u6t(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[rd(e)],documentation:ve,tags:void 0,codeActions:void 0}}function _6t(e,t,n,i){let s=Ki(t,n),a=Dr(s,sg);if(a&&(a.comment!==void 0||kt(a.tags)))return;let u=s.getStart(t);if(!a&&u0;if(L&&!$){let q=F+e+I+" * ",ee=u===n?e+I:"";return{newText:q+e+L+I+J+ee,caretOffset:q.length}}return{newText:F+J,caretOffset:3}}function f6t(e,t){let{text:n}=e,i=cm(t,e),s=i;for(;s<=t&&Dg(n.charCodeAt(s));s++);return n.slice(i,s)}function p6t(e,t,n,i){return e.map(({name:s,dotDotDotToken:a},u)=>{let m=s.kind===80?s.text:"param"+u;return`${n} * @param ${t?a?"{...any} ":"{any} ":""}${m}${i}`}).join("")}function d6t(e,t){return`${e} * @returns${t}`}function m6t(e,t){return b_e(e,n=>abe(n,t))}function abe(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:QV(n,t)};case 303:return abe(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let s=e;return s.type&&Vh(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:QV(s.type,t)}:{commentOwner:e}}case 243:{let a=e.declarationList.declarations,u=a.length===1&&a[0].initializer?g6t(a[0].initializer):void 0;return u?{commentOwner:e,parameters:u.parameters,hasReturn:QV(u,t)}:{commentOwner:e}}case 307:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return abe(e.expression,t);case 226:{let s=e;return ll(s)===0?"quit":Us(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:QV(s.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(ic(i)||fc(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:QV(i,t)}}}function QV(e,t){return!!t?.generateReturnInDocTemplate&&(Vh(e)||fc(e)&&Pt(e.body)||$a(e)&&e.body&&Js(e.body)&&!!Cv(e.body,n=>n))}function g6t(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return jn(e.members,Vc)}}var $ee={};k($ee,{mapCode:()=>h6t});function h6t(e,t,n,i,s,a){return bn.ChangeTracker.with({host:i,formatContext:s,preferences:a},u=>{let m=t.map(S=>y6t(e,S)),d=n&&rf(n);for(let S of m)v6t(e,u,S,d)})}function y6t(e,t){let n=[{parse:()=>$A("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:a=>a.statements},{parse:()=>$A("__mapcode_class_content_nodes.ts",`class __class {
${t}
}`,e.languageVersion,!0,e.scriptKind),body:a=>a.statements[0].members}],i=[];for(let{parse:a,body:u}of n){let m=a(),d=u(m);if(d.length&&m.parseDiagnostics.length===0)return d;d.length&&i.push({sourceFile:m,body:d})}let{body:s}=i.sort((a,u)=>a.sourceFile.parseDiagnostics.length-u.sourceFile.parseDiagnostics.length)[0];return s}function v6t(e,t,n,i){_u(n[0])||Gb(n[0])?S6t(e,t,n,i):T6t(e,t,n,i)}function S6t(e,t,n,i){let s;if(!i||!i.length?s=jn(e.statements,qp(vi,Xu)):s=Et(i,u=>Dr(Ki(e,u.start),qp(vi,Xu))),!s)return;let a=s.members.find(u=>n.some(m=>ZV(m,u)));if(a){let u=xm(s.members,m=>n.some(d=>ZV(d,m)));Et(n,Yee),t.replaceNodeRangeWithNodes(e,a,u,n);return}Et(n,Yee),t.insertNodesAfter(e,s.members[s.members.length-1],n)}function T6t(e,t,n,i){if(!i?.length){t.insertNodesAtEndOfFile(e,n,!1);return}for(let a of i){let u=Dr(Ki(e,a.start),m=>qp(Js,qi)(m)&&Dt(m.statements,d=>n.some(S=>ZV(S,d))));if(u){let m=u.statements.find(d=>n.some(S=>ZV(S,d)));if(m){let d=xm(u.statements,S=>n.some(E=>ZV(E,S)));Et(n,Yee),t.replaceNodeRangeWithNodes(e,m,d,n);return}}}let s=e.statements;for(let a of i){let u=Dr(Ki(e,a.start),Js);if(u){s=u.statements;break}}Et(n,Yee),t.insertNodesAfter(e,s[s.length-1],n)}function ZV(e,t){var n,i,s,a,u,m;return e.kind!==t.kind?!1:e.kind===176?e.kind===t.kind:Hu(e)&&Hu(t)?e.name.getText()===t.name.getText():vT(e)&&vT(t)||_Y(e)&&_Y(t)?e.expression.getText()===t.expression.getText():ST(e)&&ST(t)?((n=e.initializer)==null?void 0:n.getText())===((i=t.initializer)==null?void 0:i.getText())&&((s=e.incrementor)==null?void 0:s.getText())===((a=t.incrementor)==null?void 0:a.getText())&&((u=e.condition)==null?void 0:u.getText())===((m=t.condition)==null?void 0:m.getText()):Gx(e)&&Gx(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():rS(e)&&rS(t)?e.label.getText()===t.label.getText():e.getText()===t.getText()}function Yee(e){RJe(e),e.parent=void 0}function RJe(e){e.pos=-1,e.end=-1,e.forEachChild(RJe)}var UT={};k(UT,{compareImportsOrRequireStatements:()=>dbe,compareModuleSpecifiers:()=>U6t,getDetectionLists:()=>Kee,getImportDeclarationInsertionIndex:()=>L6t,getImportSpecifierInsertionIndex:()=>F6t,getNamedImportSpecifierComparerWithDetection:()=>M6t,getOrganizeImportsStringComparerWithDetection:()=>R6t,organizeImports:()=>b6t,testCoalesceExports:()=>B6t,testCoalesceImports:()=>j6t});function b6t(e,t,n,i,s,a){let u=bn.ChangeTracker.fromContext({host:n,formatContext:t,preferences:s}),m=a==="SortAndCombine"||a==="All",d=m,S=a==="RemoveUnused"||a==="All",E=e.statements.filter(Yc),x=cbe(e,E),{comparersToTest:D,typeOrdersToTest:I}=Kee(s),R=D[0],L={moduleSpecifierComparer:typeof s.organizeImportsIgnoreCase=="boolean"?R:void 0,namedImportComparer:typeof s.organizeImportsIgnoreCase=="boolean"?R:void 0,typeOrder:s.organizeImportsTypeOrder};if(typeof s.organizeImportsIgnoreCase!="boolean"&&({comparer:L.moduleSpecifierComparer}=FJe(x,D)),!L.typeOrder||typeof s.organizeImportsIgnoreCase!="boolean"){let q=fbe(E,D,I);if(q){let{namedImportComparer:ee,typeOrder:W}=q;L.namedImportComparer=L.namedImportComparer??ee,L.typeOrder=L.typeOrder??W}}x.forEach(q=>J(q,L)),a!=="RemoveUnused"&&x6t(e).forEach(q=>$(q,L.namedImportComparer));for(let q of e.statements.filter(U_)){if(!q.body)continue;if(cbe(e,q.body.statements.filter(Yc)).forEach(W=>J(W,L)),a!=="RemoveUnused"){let W=q.body.statements.filter(Cl);$(W,L.namedImportComparer)}}return u.getChanges();function F(q,ee){if(kt(q)===0)return;xn(q[0],1024);let W=d?WI(q,re=>eJ(re.moduleSpecifier)):[q],pe=m?Zs(W,(re,ue)=>ube(re[0].moduleSpecifier,ue[0].moduleSpecifier,L.moduleSpecifierComparer??R)):W,K=To(pe,re=>eJ(re[0].moduleSpecifier)||re[0].moduleSpecifier===void 0?ee(re):re);if(K.length===0)u.deleteNodes(e,q,{leadingTriviaOption:bn.LeadingTriviaOption.Exclude,trailingTriviaOption:bn.TrailingTriviaOption.Include},!0);else{let re={leadingTriviaOption:bn.LeadingTriviaOption.Exclude,trailingTriviaOption:bn.TrailingTriviaOption.Include,suffix:Jv(n,t.options)};u.replaceNodeWithNodes(e,q[0],K,re);let ue=u.nodeHasTrailingComment(e,q[0],re);u.deleteNodes(e,q.slice(1),{trailingTriviaOption:bn.TrailingTriviaOption.Include},ue)}}function J(q,ee){let W=ee.moduleSpecifierComparer??R,pe=ee.namedImportComparer??R,K=ee.typeOrder??"last",re=Z8({organizeImportsTypeOrder:K},pe);F(q,ce=>(S&&(ce=C6t(ce,e,i)),d&&(ce=MJe(ce,W,re,e)),m&&(ce=Zs(ce,(ne,le)=>dbe(ne,le,W))),ce))}function $(q,ee){let W=Z8(s,ee);F(q,pe=>LJe(pe,W))}}function Kee(e){return{comparersToTest:typeof e.organizeImportsIgnoreCase=="boolean"?[pbe(e,e.organizeImportsIgnoreCase)]:[pbe(e,!0),pbe(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function cbe(e,t){let n=Ey(e.languageVersion,!1,e.languageVariant),i=[],s=0;for(let a of t)i[s]&&E6t(e,a,n)&&s++,i[s]||(i[s]=[]),i[s].push(a);return i}function E6t(e,t,n){let i=t.getFullStart(),s=t.getStart();n.setText(e.text,i,s-i);let a=0;for(;n.getTokenStart()=2))return!0;return!1}function x6t(e){let t=[],n=e.statements,i=kt(n),s=0,a=0;for(;scbe(e,u))}function C6t(e,t,n){let i=n.getTypeChecker(),s=n.getCompilerOptions(),a=i.getJsxNamespace(t),u=i.getJsxFragmentFactory(t),m=!!(t.transformFlags&2),d=[];for(let E of e){let{importClause:x,moduleSpecifier:D}=E;if(!x){d.push(E);continue}let{name:I,namedBindings:R}=x;if(I&&!S(I)&&(I=void 0),R)if(Ry(R))S(R.name)||(R=void 0);else{let L=R.elements.filter(F=>S(F.name));L.length{if(u.attributes){let m=u.attributes.token+" ";for(let d of mo(u.attributes.elements,(S,E)=>u_(S.name.text,E.name.text)))m+=d.name.text+":",m+=Ia(d.value)?`"${d.value.text}"`:d.value.getText()+" ";return m}return""}),a=[];for(let u in s){let m=s[u],{importWithoutClause:d,typeOnlyImports:S,regularImports:E}=A6t(m);d&&a.push(d);for(let x of[E,S]){let D=x===S,{defaultImports:I,namespaceImports:R,namedImports:L}=x;if(!D&&I.length===1&&R.length===1&&L.length===0){let re=I[0];a.push(Q8(re,re.importClause.name,R[0].importClause.namedBindings));continue}let F=Zs(R,(re,ue)=>t(re.importClause.namedBindings.name.text,ue.importClause.namedBindings.name.text));for(let re of F)a.push(Q8(re,void 0,re.importClause.namedBindings));let J=Aa(I),$=Aa(L),q=J??$;if(!q)continue;let ee,W=[];if(I.length===1)ee=I[0].importClause.name;else for(let re of I)W.push(U.createImportSpecifier(!1,U.createIdentifier("default"),re.importClause.name));W.push(...N6t(L));let pe=U.createNodeArray(Zs(W,n),$?.importClause.namedBindings.elements.hasTrailingComma),K=pe.length===0?ee?void 0:U.createNamedImports(ve):$?U.updateNamedImports($.importClause.namedBindings,pe):U.createNamedImports(pe);i&&K&&$?.importClause.namedBindings&&!n2($.importClause.namedBindings,i)&&xn(K,2),D&&ee&&K?(a.push(Q8(q,ee,void 0)),a.push(Q8($??q,void 0,K))):a.push(Q8(q,ee,K))}}return a}function LJe(e,t){if(e.length===0)return e;let{exportWithoutClause:n,namedExports:i,typeOnlyExports:s}=u(e),a=[];n&&a.push(n);for(let m of[i,s]){if(m.length===0)continue;let d=[];d.push(...To(m,x=>x.exportClause&&Pd(x.exportClause)?x.exportClause.elements:ve));let S=Zs(d,t),E=m[0];a.push(U.updateExportDeclaration(E,E.modifiers,E.isTypeOnly,E.exportClause&&(Pd(E.exportClause)?U.updateNamedExports(E.exportClause,S):U.updateNamespaceExport(E.exportClause,E.exportClause.name)),E.moduleSpecifier,E.attributes))}return a;function u(m){let d,S=[],E=[];for(let x of m)x.exportClause===void 0?d=d||x:x.isTypeOnly?E.push(x):S.push(x);return{exportWithoutClause:d,namedExports:S,typeOnlyExports:E}}}function Q8(e,t,n){return U.updateImportDeclaration(e,e.modifiers,U.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function lbe(e,t,n,i){switch(i?.organizeImportsTypeOrder){case"first":return XS(t.isTypeOnly,e.isTypeOnly)||n(e.name.text,t.name.text);case"inline":return n(e.name.text,t.name.text);default:return XS(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}}function ube(e,t,n){let i=e===void 0?void 0:eJ(e),s=t===void 0?void 0:eJ(t);return XS(i===void 0,s===void 0)||XS(Su(i),Su(s))||n(i,s)}function k6t(e){return e.map(t=>eJ(_be(t))||"")}function _be(e){var t;switch(e.kind){case 271:return(t=ci(e.moduleReference,A0))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function P6t(e,t){let n=jo(t)&&t.text;return bs(n)&&Dt(e.moduleAugmentations,i=>jo(i)&&i.text===n)}function N6t(e){return To(e,t=>kr(D6t(t),n=>n.name&&n.propertyName&&n.name.escapedText===n.propertyName.escapedText?U.updateImportSpecifier(n,n.isTypeOnly,void 0,n.name):n))}function D6t(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&Hg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function FJe(e,t){let n=[];return e.forEach(i=>{n.push(k6t(i))}),BJe(n,t)}function fbe(e,t,n){let i=!1,s=e.filter(d=>{var S,E;let x=(E=ci((S=d.importClause)==null?void 0:S.namedBindings,Hg))==null?void 0:E.elements;return x?.length?(!i&&x.some(D=>D.isTypeOnly)&&x.some(D=>!D.isTypeOnly)&&(i=!0),!0):!1});if(s.length===0)return;let a=s.map(d=>{var S,E;return(E=ci((S=d.importClause)==null?void 0:S.namedBindings,Hg))==null?void 0:E.elements}).filter(d=>d!==void 0);if(!i||n.length===0){let d=BJe(a.map(S=>S.map(E=>E.name.text)),t);return{namedImportComparer:d.comparer,typeOrder:n.length===1?n[0]:void 0,isSorted:d.isSorted}}let u={first:1/0,last:1/0,inline:1/0},m={first:t[0],last:t[0],inline:t[0]};for(let d of t){let S={first:0,last:0,inline:0};for(let E of a)for(let x of n)S[x]=(S[x]??0)+jJe(E,(D,I)=>lbe(D,I,d,{organizeImportsTypeOrder:x}));for(let E of n){let x=E;S[x]0&&n++;return n}function BJe(e,t){let n,i=1/0;for(let s of t){let a=0;for(let u of e){if(u.length<=1)continue;let m=jJe(u,s);a+=m}albe(i,s,n,e)}function M6t(e,t,n){let{comparersToTest:i,typeOrdersToTest:s}=Kee(t),a=fbe([e],i,s),u=Z8(t,i[0]),m;if(typeof t.organizeImportsIgnoreCase!="boolean"||!t.organizeImportsTypeOrder){if(a){let{namedImportComparer:d,typeOrder:S,isSorted:E}=a;m=E,u=Z8({organizeImportsTypeOrder:S},d)}else if(n){let d=fbe(n.statements.filter(Yc),i,s);if(d){let{namedImportComparer:S,typeOrder:E,isSorted:x}=d;m=x,u=Z8({organizeImportsTypeOrder:E},S)}}}return{specifierComparer:u,isSorted:m}}function L6t(e,t,n){let i=gv(e,t,ec,(s,a)=>dbe(s,a,n));return i<0?~i:i}function F6t(e,t,n){let i=gv(e,t,ec,n);return i<0?~i:i}function dbe(e,t,n){return ube(_be(e),_be(t),n)||I6t(e,t)}function j6t(e,t,n,i){let s=tJ(t),a=Z8({organizeImportsTypeOrder:i?.organizeImportsTypeOrder},s);return MJe(e,s,a,n)}function B6t(e,t,n){return LJe(e,(s,a)=>lbe(s,a,tJ(t),{organizeImportsTypeOrder:n?.organizeImportsTypeOrder??"last"}))}function U6t(e,t,n){let i=tJ(!!n);return ube(e,t,i)}var Xee={};k(Xee,{collectElements:()=>V6t});function V6t(e,t){let n=[];return J6t(e,t,n),q6t(e,n),n.sort((i,s)=>i.textSpan.start-s.textSpan.start)}function J6t(e,t,n){let i=40,s=0,a=[...e.statements,e.endOfFileToken],u=a.length;for(;s1&&i.push(rJ(a,u,"comment"))}}function JJe(e,t,n,i){IA(e)||mbe(e.pos,t,n,i)}function rJ(e,t,n){return vk(wl(e,t),n)}function W6t(e,t){switch(e.kind){case 241:if(Us(e.parent))return G6t(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return E(e.parent);case 258:let I=e.parent;if(I.tryBlock===e)return E(e.parent);if(I.finallyBlock===e){let R=Ma(I,98,t);if(R)return E(R)}default:return vk(gf(e,t),"code")}case 268:return E(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return E(e);case 189:return E(e,!1,!jA(e.parent),23);case 296:case 297:return x(e.statements);case 210:return S(e);case 209:return S(e,23);case 284:return a(e);case 288:return u(e);case 285:case 286:return m(e.attributes);case 228:case 15:return d(e);case 207:return E(e,!1,!Zo(e.parent),23);case 219:return s(e);case 213:return i(e);case 217:return D(e);case 275:case 279:case 300:return n(e)}function n(I){if(!I.elements.length)return;let R=Ma(I,19,t),L=Ma(I,20,t);if(!(!R||!L||xd(R.pos,L.pos,t)))return Qee(R,L,I,t,!1,!1)}function i(I){if(!I.arguments.length)return;let R=Ma(I,21,t),L=Ma(I,22,t);if(!(!R||!L||xd(R.pos,L.pos,t)))return Qee(R,L,I,t,!1,!0)}function s(I){if(Js(I.body)||ff(I.body)||xd(I.body.getFullStart(),I.body.getEnd(),t))return;let R=wl(I.body.getFullStart(),I.body.getEnd());return vk(R,"code",gf(I))}function a(I){let R=wl(I.openingElement.getStart(t),I.closingElement.getEnd()),L=I.openingElement.tagName.getText(t),F="<"+L+">...";return vk(R,"code",R,!1,F)}function u(I){let R=wl(I.openingFragment.getStart(t),I.closingFragment.getEnd());return vk(R,"code",R,!1,"<>...")}function m(I){if(I.properties.length!==0)return rJ(I.getStart(t),I.getEnd(),"code")}function d(I){if(!(I.kind===15&&I.text.length===0))return rJ(I.getStart(t),I.getEnd(),"code")}function S(I,R=19){return E(I,!1,!Ku(I.parent)&&!to(I.parent),R)}function E(I,R=!1,L=!0,F=19,J=F===19?20:24){let $=Ma(e,F,t),q=Ma(e,J,t);return $&&q&&Qee($,q,I,t,R,L)}function x(I){return I.length?vk(lS(I),"code"):void 0}function D(I){if(xd(I.getStart(),I.getEnd(),t))return;let R=wl(I.getStart(),I.getEnd());return vk(R,"code",gf(I))}}function G6t(e,t,n){let i=H6t(e,t,n),s=Ma(t,20,n);return i&&s&&Qee(i,s,e,n,e.kind!==219)}function Qee(e,t,n,i,s=!1,a=!0){let u=wl(a?e.getFullStart():e.getStart(i),t.getEnd());return vk(u,"code",gf(n,i),s)}function vk(e,t,n=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:s,autoCollapse:i}}function H6t(e,t,n){if(Qfe(e.parameters,n)){let i=Ma(e,21,n);if(i)return i}return Ma(t,19,n)}var nJ={};k(nJ,{getRenameInfo:()=>$6t,nodeIsEligibleForRename:()=>zJe});function $6t(e,t,n,i){let s=FU(Of(t,n));if(zJe(s)){let a=Y6t(s,e.getTypeChecker(),t,e,i);if(a)return a}return Zee(v.You_cannot_rename_this_element)}function Y6t(e,t,n,i,s){let a=t.getSymbolAtLocation(e);if(!a){if(Ia(e)){let D=LU(e,t);if(D&&(D.flags&128||D.flags&1048576&&Oi(D.types,I=>!!(I.flags&128))))return gbe(e.text,e.text,"string","",e,n)}else if(mQ(e)){let D=Hc(e);return gbe(D,D,"label","",e,n)}return}let{declarations:u}=a;if(!u||u.length===0)return;if(u.some(D=>K6t(i,D)))return Zee(v.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if($e(e)&&e.escapedText==="default"&&a.parent&&a.parent.flags&1536)return;if(Ia(e)&&AR(e))return s.allowRenameOfImportPath?Q6t(e,n,a):void 0;let m=X6t(n,a,t,s);if(m)return Zee(m);let d=Wv.getSymbolKind(t,a,e),S=W0e(e)||Wp(e)&&e.parent.kind===167?em(Zd(e)):void 0,E=S||t.symbolToString(a),x=S||t.getFullyQualifiedName(a);return gbe(E,x,d,Wv.getSymbolModifiers(t,a),e,n)}function K6t(e,t){let n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&wc(n.fileName,".d.ts")}function X6t(e,t,n,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let u=t.declarations&&jn(t.declarations,m=>pf(m));u&&!u.propertyName&&(t=n.getAliasedSymbol(t))}let{declarations:s}=t;if(!s)return;let a=qJe(e.path);if(a===void 0)return Dt(s,u=>D8(u.getSourceFile().path))?v.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let u of s){let m=qJe(u.getSourceFile().path);if(m){let d=Math.min(a.length,m.length);for(let S=0;S<=d;S++)if(u_(a[S],m[S])!==0)return v.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function qJe(e){let t=yu(e),n=t.lastIndexOf("node_modules");if(n!==-1)return t.slice(0,n+2)}function Q6t(e,t,n){if(!Su(e.text))return Zee(v.You_cannot_rename_a_module_via_a_global_import);let i=n.declarations&&jn(n.declarations,qi);if(!i)return;let s=Wc(e.text,"/index")||Wc(e.text,"/index.js")?void 0:Xce(lf(i.fileName),"/index"),a=s===void 0?i.fileName:s,u=s===void 0?"module":"directory",m=e.text.lastIndexOf("/")+1,d=Gu(e.getStart(t)+1+m,e.text.length-m);return{canRename:!0,fileToRename:a,kind:u,displayName:a,fullDisplayName:e.text,kindModifiers:"",triggerSpan:d}}function gbe(e,t,n,i,s,a){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:Z6t(s,a)}}function Zee(e){return{canRename:!1,localizedErrorMessage:Ls(e)}}function Z6t(e,t){let n=e.getStart(t),i=e.getWidth(t);return Ia(e)&&(n+=1,i-=2),Gu(n,i)}function zJe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return wU(e);default:return!1}}var eL={};k(eL,{getArgumentInfoForCompletions:()=>i4t,getSignatureHelpItems:()=>e4t});function e4t(e,t,n,i,s){let a=e.getTypeChecker(),u=jU(t,n);if(!u)return;let m=!!i&&i.kind==="characterTyped";if(m&&(sk(t,n,u)||Uv(t,n)))return;let d=!!i&&i.kind==="invoked",S=h4t(u,n,t,a,d);if(!S)return;s.throwIfCancellationRequested();let E=t4t(S,a,t,u,m);return s.throwIfCancellationRequested(),E?a.runWithCancellationToken(s,x=>E.kind===0?QJe(E.candidates,E.resolvedSignature,S,t,x):v4t(E.symbol,S,t,x)):Pf(t)?n4t(S,e,s):void 0}function t4t({invocation:e,argumentCount:t},n,i,s,a){switch(e.kind){case 0:{if(a&&!r4t(s,e.node,i))return;let u=[],m=n.getResolvedSignatureForSignatureHelp(e.node,u,t);return u.length===0?void 0:{kind:0,candidates:u,resolvedSignature:m}}case 1:{let{called:u}=e;if(a&&!WJe(s,i,$e(u)?u.parent:u))return;let m=CQ(u,t,n);if(m.length!==0)return{kind:0,candidates:m,resolvedSignature:Fo(m)};let d=n.getSymbolAtLocation(u);return d&&{kind:1,symbol:d}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return M.assertNever(e)}}function r4t(e,t,n){if(!Ig(t))return!1;let i=t.getChildren(n);switch(e.kind){case 21:return xs(i,e);case 28:{let s=MU(e);return!!s&&xs(i,s)}case 30:return WJe(e,n,t.expression);default:return!1}}function n4t(e,t,n){if(e.invocation.kind===2)return;let i=KJe(e.invocation),s=Hn(i)?i.name.text:void 0,a=t.getTypeChecker();return s===void 0?void 0:di(t.getSourceFiles(),u=>di(u.getNamedDeclarations().get(s),m=>{let d=m.symbol&&a.getTypeOfSymbolAtLocation(m.symbol,m),S=d&&d.getCallSignatures();if(S&&S.length)return a.runWithCancellationToken(n,E=>QJe(S,S[0],e,u,E,!0))}))}function WJe(e,t,n){let i=e.getFullStart(),s=e.parent;for(;s;){let a=su(i,t,s,!0);if(a)return ed(n,a);s=s.parent}return M.fail("Could not find preceding token")}function i4t(e,t,n,i){let s=HJe(e,t,n,i);return!s||s.isTypeParameterList||s.invocation.kind!==0?void 0:{invocation:s.invocation.node,argumentCount:s.argumentCount,argumentIndex:s.argumentIndex}}function GJe(e,t,n,i){let s=s4t(e,n,i);if(!s)return;let{list:a,argumentIndex:u}=s,m=p4t(i,a);u!==0&&M.assertLessThan(u,m);let d=m4t(a,n);return{list:a,argumentIndex:u,argumentCount:m,argumentsSpan:d}}function s4t(e,t,n){if(e.kind===30||e.kind===21)return{list:y4t(e.parent,e,t),argumentIndex:0};{let i=MU(e);return i&&{list:i,argumentIndex:f4t(n,i,e)}}}function HJe(e,t,n,i){let{parent:s}=e;if(Ig(s)){let a=s,u=GJe(e,t,n,i);if(!u)return;let{list:m,argumentIndex:d,argumentCount:S,argumentsSpan:E}=u;return{isTypeParameterList:!!s.typeArguments&&s.typeArguments.pos===m.pos,invocation:{kind:0,node:a},argumentsSpan:E,argumentIndex:d,argumentCount:S}}else{if(wA(e)&&hE(s))return y8(e,t,n)?ybe(s,0,n):void 0;if(OA(e)&&s.parent.kind===215){let a=s,u=a.parent;M.assert(a.kind===228);let m=y8(e,t,n)?0:1;return ybe(u,m,n)}else if(AO(s)&&hE(s.parent.parent)){let a=s,u=s.parent.parent;if(Rj(e)&&!y8(e,t,n))return;let m=a.parent.templateSpans.indexOf(a),d=d4t(m,e,t,n);return ybe(u,d,n)}else if(p_(s)){let a=s.attributes.pos,u=zo(n.text,s.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:s},argumentsSpan:Gu(a,u-a),argumentIndex:0,argumentCount:1}}else{let a=AQ(e,n);if(a){let{called:u,nTypeArguments:m}=a,d={kind:1,called:u},S=wl(u.getStart(n),e.end);return{isTypeParameterList:!0,invocation:d,argumentsSpan:S,argumentIndex:m,argumentCount:m+1}}return}}}function o4t(e,t,n,i){return a4t(e,t,n,i)||HJe(e,t,n,i)}function $Je(e){return Dn(e.parent)?$Je(e.parent):e}function hbe(e){return Dn(e.left)?hbe(e.left)+1:2}function a4t(e,t,n,i){let s=c4t(e);if(s===void 0)return;let a=l4t(s,n,t,i);if(a===void 0)return;let{contextualType:u,argumentIndex:m,argumentCount:d,argumentsSpan:S}=a,E=u.getNonNullableType(),x=E.symbol;if(x===void 0)return;let D=yc(E.getCallSignatures());return D===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:D,node:e,symbol:u4t(x)},argumentsSpan:S,argumentIndex:m,argumentCount:d}}function c4t(e){switch(e.kind){case 21:case 28:return e;default:return Dr(e.parent,t=>is(t)?!0:Zo(t)||Kp(t)||Fv(t)?!1:"quit")}}function l4t(e,t,n,i){let{parent:s}=e;switch(s.kind){case 217:case 174:case 218:case 219:let a=GJe(e,n,t,i);if(!a)return;let{argumentIndex:u,argumentCount:m,argumentsSpan:d}=a,S=_l(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return S&&{contextualType:S,argumentIndex:u,argumentCount:m,argumentsSpan:d};case 226:{let E=$Je(s),x=i.getContextualType(E),D=e.kind===21?0:hbe(s)-1,I=hbe(E);return x&&{contextualType:x,argumentIndex:D,argumentCount:I,argumentsSpan:gf(s)}}default:return}}function u4t(e){return e.name==="__type"&&di(e.declarations,t=>{var n;return Vh(t)?(n=ci(t.parent,Qm))==null?void 0:n.symbol:void 0})||e}function _4t(e,t){let n=t.getTypeAtLocation(e.expression);if(t.isTupleType(n)){let{elementFlags:i,fixedLength:s}=n.target;if(s===0)return 0;let a=Va(i,u=>!(u&1));return a<0?s:a}return 0}function f4t(e,t,n){return YJe(e,t,n)}function p4t(e,t){return YJe(e,t,void 0)}function YJe(e,t,n){let i=t.getChildren(),s=0,a=!1;for(let u of i){if(n&&u===n)return!a&&u.kind===28&&s++,s;if(kd(u)){s+=_4t(u,e),a=!0;continue}if(u.kind!==28){s++,a=!0;continue}if(a){a=!1;continue}s++}return n?s:i.length&&qo(i).kind===28?s+1:s}function d4t(e,t,n,i){return M.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),Zue(t)?y8(t,n,i)?0:e+2:e+1}function ybe(e,t,n){let i=wA(e.template)?1:e.template.templateSpans.length+1;return t!==0&&M.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:g4t(e,n),argumentIndex:t,argumentCount:i}}function m4t(e,t){let n=e.getFullStart(),i=zo(t.text,e.getEnd(),!1);return Gu(n,i-n)}function g4t(e,t){let n=e.template,i=n.getStart(),s=n.getEnd();return n.kind===228&&qo(n.templateSpans).literal.getFullWidth()===0&&(s=zo(t.text,s,!1)),Gu(i,s-i)}function h4t(e,t,n,i,s){for(let a=e;!qi(a)&&(s||!Js(a));a=a.parent){M.assert(ed(a.parent,a),"Not a subspan",()=>`Child: ${M.formatSyntaxKind(a.kind)}, parent: ${M.formatSyntaxKind(a.parent.kind)}`);let u=o4t(a,t,n,i);if(u)return u}}function y4t(e,t,n){let i=e.getChildren(n),s=i.indexOf(t);return M.assert(s>=0&&i.length>s+1),i[s+1]}function KJe(e){return e.kind===0?m9(e.node):e.called}function XJe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}var iJ=70246400;function QJe(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:s,invocation:a,argumentIndex:u},m,d,S){var E;let x=XJe(a),D=a.kind===2?a.symbol:d.getSymbolAtLocation(KJe(a))||S&&((E=t.declaration)==null?void 0:E.symbol),I=D?y6(d,D,S?m:void 0,void 0):ve,R=kr(e,q=>T4t(q,I,n,d,x,m));u!==0&&M.assertLessThan(u,i);let L=0,F=0;for(let q=0;q1)){let W=0;for(let pe of ee){if(pe.isVariadic||pe.parameters.length>=i){L=F+W;break}W++}}F+=ee.length}M.assert(L!==-1);let J={items:L_(R,ec),applicableSpan:s,selectedItemIndex:L,argumentIndex:u,argumentCount:i},$=J.items[L];if($.isVariadic){let q=Va($.parameters,ee=>!!ee.isRest);-1eqe(x,n,i,s,u)),d=e.getDocumentationComment(n),S=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...a,k_(30)],suffixDisplayParts:[k_(32)],separatorDisplayParts:ZJe,parameters:m,documentation:d,tags:S}}var ZJe=[k_(28),Zc()];function T4t(e,t,n,i,s,a){let u=(n?E4t:x4t)(e,i,s,a);return kr(u,({isVariadic:m,parameters:d,prefix:S,suffix:E})=>{let x=[...t,...S],D=[...E,...b4t(e,s,i)],I=e.getDocumentationComment(i),R=e.getJsDocTags();return{isVariadic:m,prefixDisplayParts:x,suffixDisplayParts:D,separatorDisplayParts:ZJe,parameters:d,documentation:I,tags:R}})}function b4t(e,t,n){return _S(i=>{i.writePunctuation(":"),i.writeSpace(" ");let s=n.getTypePredicateOfSignature(e);s?n.writeTypePredicate(s,t,void 0,i):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,i)})}function E4t(e,t,n,i){let s=(e.target||e).typeParameters,a=v2(),u=(s||ve).map(d=>eqe(d,t,n,i,a)),m=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,iJ)]:[];return t.getExpandedParameters(e).map(d=>{let S=U.createNodeArray([...m,...kr(d,x=>t.symbolToParameterDeclaration(x,n,iJ))]),E=_S(x=>{a.writeList(2576,S,i,x)});return{isVariadic:!1,parameters:u,prefix:[k_(30)],suffix:[k_(32),...E]}})}function x4t(e,t,n,i){let s=v2(),a=_S(d=>{if(e.typeParameters&&e.typeParameters.length){let S=U.createNodeArray(e.typeParameters.map(E=>t.typeParameterToDeclaration(E,n,iJ)));s.writeList(53776,S,i,d)}}),u=t.getExpandedParameters(e),m=t.hasEffectiveRestParameter(e)?u.length===1?d=>!0:d=>{var S;return!!(d.length&&((S=ci(d[d.length-1],Fh))==null?void 0:S.links.checkFlags)&32768)}:d=>!1;return u.map(d=>({isVariadic:m(d),parameters:d.map(S=>C4t(S,t,n,i,s)),prefix:[...a,k_(21)],suffix:[k_(22)]}))}function C4t(e,t,n,i,s){let a=_S(d=>{let S=t.symbolToParameterDeclaration(e,n,iJ);s.writeNode(4,S,i,d)}),u=t.isOptionalParameter(e.valueDeclaration),m=Fh(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:a,isOptional:u,isRest:m}}function eqe(e,t,n,i,s){let a=_S(u=>{let m=t.typeParameterToDeclaration(e,n,iJ);s.writeNode(4,m,i,u)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:a,isOptional:!1,isRest:!1}}var ete={};k(ete,{getSmartSelectionRange:()=>A4t});function A4t(e,t){var n,i;let s={textSpan:wl(t.getFullStart(),t.getEnd())},a=t;e:for(;;){let d=N4t(a);if(!d.length)break;for(let S=0;Se)break e;let I=Nh(L1(t.text,x.end));if(I&&I.kind===2&&m(I.pos,I.end),k4t(t,e,x)){if(eH(x)&&$a(a)&&!xd(x.getStart(t),x.getEnd(),t)&&u(x.getStart(t),x.getEnd()),Js(x)||AO(x)||OA(x)||Rj(x)||E&&OA(E)||Fu(x)&&fl(a)||CN(x)&&Fu(a)||Ci(x)&&CN(a)&&d.length===1||bT(x)||k0(x)||f2(x)){a=x;break}if(AO(a)&&D&&L5(D)){let J=x.getFullStart()-2,$=D.getStart()+1;u(J,$)}let R=CN(x)&&D4t(E)&&I4t(D)&&!xd(E.getStart(),D.getStart(),t),L=R?E.getEnd():x.getStart(),F=R?D.getStart():w4t(t,x);if(Np(x)&&((n=x.jsDoc)!=null&&n.length)&&u(Fo(x.jsDoc).getStart(),F),CN(x)){let J=x.getChildren()[0];J&&Np(J)&&((i=J.jsDoc)!=null&&i.length)&&J.getStart()!==x.pos&&(L=Math.min(L,Fo(J.jsDoc).getStart()))}u(L,F),(jo(x)||QC(x))&&u(L+1,F-1),a=x;break}if(S===d.length-1)break e}}return s;function u(d,S){if(d!==S){let E=wl(d,S);(!s||!XN(E,s.textSpan)&&Iue(E,e))&&(s={textSpan:E,...s&&{parent:s}})}}function m(d,S){u(d,S);let E=d;for(;t.text.charCodeAt(E)===47;)E++;u(E,S)}}function k4t(e,t,n){return M.assert(n.pos<=t),tm===e.readonlyToken||m.kind===148||m===e.questionToken||m.kind===58),u=tL(a,({kind:m})=>m===23||m===168||m===24);return[n,rL(tte(u,({kind:m})=>m===59)),s]}if(If(e)){let n=tL(e.getChildren(),u=>u===e.name||xs(e.modifiers,u)),i=((t=n[0])==null?void 0:t.kind)===320?n[0]:void 0,s=i?n.slice(1):n,a=tte(s,({kind:u})=>u===59);return i?[i,rL(a)]:a}if(is(e)){let n=tL(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=tL(n,s=>s===n[0]||s===e.questionToken);return tte(i,({kind:s})=>s===64)}return Zo(e)?tte(e.getChildren(),({kind:n})=>n===64):e.getChildren()}function tL(e,t){let n=[],i;for(let s of e)t(s)?(i=i||[],i.push(s)):(i&&(n.push(rL(i)),i=void 0),n.push(s));return i&&n.push(rL(i)),n}function tte(e,t,n=!0){if(e.length<2)return e;let i=Va(e,t);if(i===-1)return e;let s=e.slice(0,i),a=e[i],u=qo(e),m=n&&u.kind===27,d=e.slice(i+1,m?e.length-1:void 0),S=un([s.length?rL(s):void 0,a,d.length?rL(d):void 0]);return m?S.concat(u):S}function rL(e){return M.assertGreaterThanOrEqual(e.length,1),Jg(CT.createSyntaxList(e),e[0].pos,qo(e).end)}function D4t(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function I4t(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function w4t(e,t){switch(t.kind){case 341:case 338:case 348:case 346:case 343:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Wv={};k(Wv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>R4t,getSymbolKind:()=>rqe,getSymbolModifiers:()=>O4t});var tqe=70246400;function rqe(e,t,n){let i=nqe(e,t,n);if(i!=="")return i;let s=lN(t);return s&32?kc(t,231)?"local class":"class":s&384?"enum":s&524288?"type":s&64?"interface":s&262144?"type parameter":s&8?"enum member":s&2097152?"alias":s&1536?"module":i}function nqe(e,t,n){let i=e.getRootSymbols(t);if(i.length===1&&Fo(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(n.kind===110&&Pt(n)||oE(n))return"parameter";let s=lN(t);if(s&3)return HQ(t)?"parameter":t.valueDeclaration&&WP(t.valueDeclaration)?"const":t.valueDeclaration&&aR(t.valueDeclaration)?"using":t.valueDeclaration&&oR(t.valueDeclaration)?"await using":Et(t.declarations,s9)?"let":oqe(t)?"local var":"var";if(s&16)return oqe(t)?"local function":"function";if(s&32768)return"getter";if(s&65536)return"setter";if(s&8192)return"method";if(s&16384)return"constructor";if(s&131072)return"index";if(s&4){if(s&33554432&&t.links.checkFlags&6){let a=Et(e.getRootSymbols(t),u=>{if(u.getFlags()&98311)return"property"});return a||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function iqe(e){if(e.declarations&&e.declarations.length){let[t,...n]=e.declarations,i=kt(n)&&fV(t)&&Dt(n,a=>!fV(a))?65536:0,s=p6(t,i);if(s)return s.split(",")}return[]}function O4t(e,t){if(!t)return"";let n=new Set(iqe(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&Et(iqe(i),s=>{n.add(s)})}return t.flags&16777216&&n.add("optional"),n.size>0?Os(n.values()).join(","):""}function sqe(e,t,n,i,s,a,u,m){var d;let S=[],E=[],x=[],D=lN(t),I=u&1?nqe(e,t,s):"",R=!1,L=s.kind===110&&g9(s)||oE(s),F,J,$=!1;if(s.kind===110&&!L)return{displayParts:[hp(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(I!==""||D&32||D&2097152){if(I==="getter"||I==="setter"){let de=jn(t.declarations,Ae=>Ae.name===s);if(de)switch(de.kind){case 177:I="getter";break;case 178:I="setter";break;case 172:I="accessor";break;default:M.assertNever(de)}else I="property"}let le;if(a??(a=L?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s)),s.parent&&s.parent.kind===211){let de=s.parent.name;(de===s||de&&de.getFullWidth()===0)&&(s=s.parent)}let me;if(Ig(s)?me=s:(_Q(s)||_6(s)||s.parent&&(p_(s.parent)||hE(s.parent))&&Us(t.valueDeclaration))&&(me=s.parent),me){le=e.getResolvedSignature(me);let de=me.kind===214||to(me)&&me.expression.kind===108,Ae=de?a.getConstructSignatures():a.getCallSignatures();if(le&&!xs(Ae,le.target)&&!xs(Ae,le)&&(le=Ae.length?Ae[0]:void 0),le){switch(de&&D&32?(I="constructor",re(a.symbol,I)):D&2097152?(I="alias",ue(I),S.push(Zc()),de&&(le.flags&4&&(S.push(hp(128)),S.push(Zc())),S.push(hp(105)),S.push(Zc())),K(t)):re(t,I),I){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":S.push(k_(59)),S.push(Zc()),!(Qn(a)&16)&&a.symbol&&(On(S,y6(e,a.symbol,i,void 0,5)),S.push(QN())),de&&(le.flags&4&&(S.push(hp(128)),S.push(Zc())),S.push(hp(105)),S.push(Zc())),ce(le,Ae,262144);break;default:ce(le,Ae)}R=!0,$=Ae.length>1}}else if(vQ(s)&&!(D&98304)||s.kind===137&&s.parent.kind===176){let de=s.parent;if(t.declarations&&jn(t.declarations,xe=>xe===(s.kind===137?de.parent:de))){let xe=de.kind===176?a.getNonNullableType().getConstructSignatures():a.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(de)?le=xe[0]:le=e.getSignatureFromDeclaration(de),de.kind===176?(I="constructor",re(a.symbol,I)):re(de.kind===179&&!(a.symbol.flags&2048||a.symbol.flags&4096)?a.symbol:t,I),le&&ce(le,xe),R=!0,$=xe.length>1}}}if(D&32&&!R&&!L&&(W(),kc(t,231)?ue("local class"):S.push(hp(86)),S.push(Zc()),K(t),ne(t,n)),D&64&&u&2&&(ee(),S.push(hp(120)),S.push(Zc()),K(t),ne(t,n)),D&524288&&u&2&&(ee(),S.push(hp(156)),S.push(Zc()),K(t),ne(t,n),S.push(Zc()),S.push(h6(64)),S.push(Zc()),On(S,x8(e,s.parent&&Xm(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),D&384&&(ee(),Dt(t.declarations,le=>TT(le)&&Kb(le))&&(S.push(hp(87)),S.push(Zc())),S.push(hp(94)),S.push(Zc()),K(t)),D&1536&&!L){ee();let le=kc(t,267),me=le&&le.name&&le.name.kind===80;S.push(hp(me?145:144)),S.push(Zc()),K(t)}if(D&262144&&u&2)if(ee(),S.push(k_(21)),S.push(rd("type parameter")),S.push(k_(22)),S.push(Zc()),K(t),t.parent)pe(),K(t.parent,i),ne(t.parent,i);else{let le=kc(t,168);if(le===void 0)return M.fail();let me=le.parent;if(me)if(Us(me)){pe();let de=e.getSignatureFromDeclaration(me);me.kind===180?(S.push(hp(105)),S.push(Zc())):me.kind!==179&&me.name&&K(me.symbol),On(S,KQ(e,de,n,32))}else sm(me)&&(pe(),S.push(hp(156)),S.push(Zc()),K(me.symbol),ne(me.symbol,n))}if(D&8){I="enum member",re(t,"enum member");let le=(d=t.declarations)==null?void 0:d[0];if(le?.kind===306){let me=e.getConstantValue(le);me!==void 0&&(S.push(Zc()),S.push(h6(64)),S.push(Zc()),S.push(zf(D_e(me),typeof me=="number"?7:8)))}}if(t.flags&2097152){if(ee(),!R||E.length===0&&x.length===0){let le=e.getAliasedSymbol(t);if(le!==t&&le.declarations&&le.declarations.length>0){let me=le.declarations[0],de=Ns(me);if(de&&!R){let Ae=t9(me)&&_i(me,128),xe=t.name!=="default"&&!Ae,te=sqe(e,le,Jr(me),i,de,a,u,xe?t:le);S.push(...te.displayParts),S.push(QN()),F=te.documentation,J=te.tags}else F=le.getContextualDocumentationComment(me,e),J=le.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:S.push(hp(95)),S.push(Zc()),S.push(hp(145));break;case 277:S.push(hp(95)),S.push(Zc()),S.push(hp(t.declarations[0].isExportEquals?64:90));break;case 281:S.push(hp(95));break;default:S.push(hp(102))}S.push(Zc()),K(t),Et(t.declarations,le=>{if(le.kind===271){let me=le;if(cT(me))S.push(Zc()),S.push(h6(64)),S.push(Zc()),S.push(hp(149)),S.push(k_(21)),S.push(zf(Hc(Dw(me)),8)),S.push(k_(22));else{let de=e.getSymbolAtLocation(me.moduleReference);de&&(S.push(Zc()),S.push(h6(64)),S.push(Zc()),K(de,i))}return!0}})}if(!R)if(I!==""){if(a){if(L?(ee(),S.push(hp(110))):re(t,I),I==="property"||I==="accessor"||I==="getter"||I==="setter"||I==="JSX attribute"||D&3||I==="local var"||I==="index"||I==="using"||I==="await using"||L){if(S.push(k_(59)),S.push(Zc()),a.symbol&&a.symbol.flags&262144&&I!=="index"){let le=_S(me=>{let de=e.typeParameterToDeclaration(a,i,tqe);q().writeNode(4,de,Jr(Ps(i)),me)});On(S,le)}else On(S,x8(e,a,i));if(Fh(t)&&t.links.target&&Fh(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let le=t.links.target.links.tupleLabelDeclaration;M.assertNode(le.name,$e),S.push(Zc()),S.push(k_(21)),S.push(rd(In(le.name))),S.push(k_(22))}}else if(D&16||D&8192||D&16384||D&131072||D&98304||I==="method"){let le=a.getNonNullableType().getCallSignatures();le.length&&(ce(le[0],le),$=le.length>1)}}}else I=rqe(e,t,s);if(E.length===0&&!$&&(E=t.getContextualDocumentationComment(i,e)),E.length===0&&D&4&&t.parent&&t.declarations&&Et(t.parent.declarations,le=>le.kind===307))for(let le of t.declarations){if(!le.parent||le.parent.kind!==226)continue;let me=e.getSymbolAtLocation(le.parent.right);if(me&&(E=me.getDocumentationComment(e),x=me.getJsDocTags(e),E.length>0))break}if(E.length===0&&$e(s)&&t.valueDeclaration&&Zo(t.valueDeclaration)){let le=t.valueDeclaration,me=le.parent,de=le.propertyName||le.name;if($e(de)&&Kp(me)){let Ae=Zd(de),xe=e.getTypeAtLocation(me);E=di(xe.isUnion()?xe.types:[xe],te=>{let he=te.getProperty(Ae);return he?he.getDocumentationComment(e):void 0})||ve}}return x.length===0&&!$&&(x=t.getContextualJsDocTags(i,e)),E.length===0&&F&&(E=F),x.length===0&&J&&(x=J),{displayParts:S,documentation:E,symbolKind:I,tags:x.length===0?void 0:x};function q(){return v2()}function ee(){S.length&&S.push(QN()),W()}function W(){m&&(ue("alias"),S.push(Zc()))}function pe(){S.push(Zc()),S.push(hp(103)),S.push(Zc())}function K(le,me){let de;m&&le===t&&(le=m),I==="index"&&(de=e.getIndexInfosOfIndexSymbol(le));let Ae=[];le.flags&131072&&de?(le.parent&&(Ae=y6(e,le.parent)),Ae.push(k_(23)),de.forEach((xe,te)=>{Ae.push(...x8(e,xe.keyType)),te!==de.length-1&&(Ae.push(Zc()),Ae.push(k_(52)),Ae.push(Zc()))}),Ae.push(k_(24))):Ae=y6(e,le,me||n,void 0,7),On(S,Ae),t.flags&16777216&&S.push(k_(58))}function re(le,me){ee(),me&&(ue(me),le&&!Dt(le.declarations,de=>fc(de)||(ic(de)||tu(de))&&!de.name)&&(S.push(Zc()),K(le)))}function ue(le){switch(le){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":S.push($Q(le));return;default:S.push(k_(21)),S.push($Q(le)),S.push(k_(22));return}}function ce(le,me,de=0){On(S,KQ(e,le,i,de|32)),me.length>1&&(S.push(Zc()),S.push(k_(21)),S.push(h6(40)),S.push(zf((me.length-1).toString(),7)),S.push(Zc()),S.push(rd(me.length===2?"overload":"overloads")),S.push(k_(22))),E=le.getDocumentationComment(e),x=le.getJsDocTags(),me.length>1&&E.length===0&&x.length===0&&(E=me[0].getDocumentationComment(e),x=me[0].getJsDocTags().filter(Ae=>Ae.name!=="deprecated"))}function ne(le,me){let de=_S(Ae=>{let xe=e.symbolToTypeParameterDeclarations(le,me,tqe);q().writeList(53776,xe,Jr(Ps(me)),Ae)});On(S,de)}}function R4t(e,t,n,i,s,a=S2(s),u){return sqe(e,t,n,i,s,void 0,a,u)}function oqe(e){return e.parent?!1:Et(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let n=t.parent;!Xb(n);n=n.parent)if(n.kind===307||n.kind===268)return!1;return!0})}var bn={};k(bn,{ChangeTracker:()=>F4t,LeadingTriviaOption:()=>lqe,TrailingTriviaOption:()=>uqe,applyChanges:()=>Ebe,assignPositionsToNode:()=>ste,createWriter:()=>fqe,deleteNode:()=>w0,isThisTypeAnnotatable:()=>L4t,isValidLocationToAddComment:()=>pqe});function aqe(e){let t=e.__pos;return M.assert(typeof t=="number"),t}function vbe(e,t){M.assert(typeof t=="number"),e.__pos=t}function cqe(e){let t=e.__end;return M.assert(typeof t=="number"),t}function Sbe(e,t){M.assert(typeof t=="number"),e.__end=t}var lqe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(lqe||{}),uqe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(uqe||{});function _qe(e,t){return zo(e,t,!1,!0)}function M4t(e,t){let n=t;for(;n0?1:0,D=q1(zw(e,S)+x,e);return D=_qe(e.text,D),q1(zw(e,D),e)}function Tbe(e,t,n){let{end:i}=t,{trailingTriviaOption:s}=n;if(s===2){let a=L1(e.text,i);if(a){let u=zw(e,t.end);for(let m of a){if(m.kind===2||zw(e,m.pos)>u)break;if(zw(e,m.end)>u)return zo(e.text,m.end,!0,!0)}}}}function uD(e,t,n){var i;let{end:s}=t,{trailingTriviaOption:a}=n;if(a===0)return s;if(a===1){let d=ds(L1(e.text,s),Ty(e.text,s)),S=(i=d?.[d.length-1])==null?void 0:i.end;return S||s}let u=Tbe(e,t,n);if(u)return u;let m=zo(e.text,s,!0);return m!==s&&(a===2||T_(e.text.charCodeAt(m-1)))?m:s}function rte(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function L4t(e){return ic(e)||El(e)}var F4t=class Cwe{constructor(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Cwe(Jv(t.host,t.formatContext.options),t.formatContext)}static with(t,n){let i=Cwe.fromContext(t);return n(i),i.getChanges()}pushRaw(t,n){M.assertEqual(t.fileName,n.fileName);for(let i of n.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:qU(i.span)})}deleteRange(t,n){this.changes.push({kind:0,sourceFile:t,range:n})}delete(t,n){this.deletedNodes.push({sourceFile:t,node:n})}deleteNode(t,n,i={leadingTriviaOption:1}){this.deleteRange(t,iL(t,n,n,i))}deleteNodes(t,n,i={leadingTriviaOption:1},s){for(let a of n){let u=A2(t,a,i,s),m=uD(t,a,i);this.deleteRange(t,{pos:u,end:m}),s=!!Tbe(t,a,i)}}deleteModifier(t,n){this.deleteRange(t,{pos:n.getStart(t),end:zo(t.text,n.end,!0)})}deleteNodeRange(t,n,i,s={leadingTriviaOption:1}){let a=A2(t,n,s),u=uD(t,i,s);this.deleteRange(t,{pos:a,end:u})}deleteNodeRangeExcludingEnd(t,n,i,s={leadingTriviaOption:1}){let a=A2(t,n,s),u=i===void 0?t.text.length:A2(t,i,s);this.deleteRange(t,{pos:a,end:u})}replaceRange(t,n,i,s={}){this.changes.push({kind:1,sourceFile:t,range:n,options:s,node:i})}replaceNode(t,n,i,s=nL){this.replaceRange(t,iL(t,n,n,s),i,s)}replaceNodeRange(t,n,i,s,a=nL){this.replaceRange(t,iL(t,n,i,a),s,a)}replaceRangeWithNodes(t,n,i,s={}){this.changes.push({kind:2,sourceFile:t,range:n,options:s,nodes:i})}replaceNodeWithNodes(t,n,i,s=nL){this.replaceRangeWithNodes(t,iL(t,n,n,s),i,s)}replaceNodeWithText(t,n,i){this.replaceRangeWithText(t,iL(t,n,n,nL),i)}replaceNodeRangeWithNodes(t,n,i,s,a=nL){this.replaceRangeWithNodes(t,iL(t,n,i,a),s,a)}nodeHasTrailingComment(t,n,i=nL){return!!Tbe(t,n,i)}nextCommaToken(t,n){let i=NE(n,n.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,n,i){let s=this.nextCommaToken(t,n)?"":","+this.newLineCharacter;this.replaceNode(t,n,i,{suffix:s})}insertNodeAt(t,n,i,s={}){this.replaceRange(t,Ed(n),i,s)}insertNodesAt(t,n,i,s={}){this.replaceRangeWithNodes(t,Ed(n),i,s)}insertNodeAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertNodesAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertAtTopOfFile(t,n,i){let s=W4t(t),a={prefix:s===0?void 0:this.newLineCharacter,suffix:(T_(t.text.charCodeAt(s))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};Ms(n)?this.insertNodesAt(t,s,n,a):this.insertNodeAt(t,s,n,a)}insertNodesAtEndOfFile(t,n,i){this.insertAtEndOfFile(t,n,i)}insertAtEndOfFile(t,n,i){let s=t.end+1,a={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,s,n,a)}insertStatementsInNewFile(t,n,i){this.newFileChanges||(this.newFileChanges=vd()),this.newFileChanges.add(t,{oldFile:i,statements:n})}insertFirstParameter(t,n,i){let s=Aa(n);s?this.insertNodeBefore(t,s,i):this.insertNodeAt(t,n.pos,i)}insertNodeBefore(t,n,i,s=!1,a={}){this.insertNodeAt(t,A2(t,n,a),i,this.getOptionsForInsertNodeBefore(n,i,s))}insertNodesBefore(t,n,i,s=!1,a={}){this.insertNodesAt(t,A2(t,n,a),i,this.getOptionsForInsertNodeBefore(n,Fo(i),s))}insertModifierAt(t,n,i,s={}){this.insertNodeAt(t,n,U.createToken(i),s)}insertModifierBefore(t,n,i){return this.insertModifierAt(t,i.getStart(t),n,{suffix:" "})}insertCommentBeforeLine(t,n,i,s){let a=q1(n,t),u=H0e(t.text,a),m=pqe(t,u),d=$N(t,m?u:i),S=t.text.slice(a,u),E=`${m?"":this.newLineCharacter}//${s}${this.newLineCharacter}${S}`;this.insertText(t,d.getStart(t),E)}insertJsdocCommentBefore(t,n,i){let s=n.getStart(t);if(n.jsDoc)for(let m of n.jsDoc)this.deleteRange(t,{pos:cm(m.getStart(t),t),end:uD(t,m,{})});let a=QU(t.text,s-1),u=t.text.slice(a,s);this.insertNodeAt(t,s,i,{suffix:this.newLineCharacter+u})}createJSDocText(t,n){let i=To(n.jsDoc,a=>bs(a.comment)?U.createJSDocText(a.comment):a.comment),s=Nh(n.jsDoc);return s&&xd(s.pos,s.end,t)&&kt(i)===0?void 0:U.createNodeArray(Ef(i,U.createJSDocText(`
`)))}replaceJSDocComment(t,n,i){this.insertJsdocCommentBefore(t,j4t(n),U.createJSDocComment(this.createJSDocText(t,n),U.createNodeArray(i)))}addJSDocTags(t,n,i){let s=L_(n.jsDoc,u=>u.tags),a=i.filter(u=>!s.some((m,d)=>{let S=B4t(m,u);return S&&(s[d]=S),!!S}));this.replaceJSDocComment(t,n,[...s,...a])}filterJSDocTags(t,n,i){this.replaceJSDocComment(t,n,ti(L_(n.jsDoc,s=>s.tags),i))}replaceRangeWithText(t,n,i){this.changes.push({kind:3,sourceFile:t,range:n,text:i})}insertText(t,n,i){this.replaceRangeWithText(t,Ed(n),i)}tryInsertTypeAnnotation(t,n,i){let s;if(Us(n)){if(s=Ma(n,22,t),!s){if(!fc(n))return!1;s=Fo(n.parameters)}}else s=(n.kind===260?n.exclamationToken:n.questionToken)??n.name;return this.insertNodeAt(t,s.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,n,i){let s=Ma(n,21,t).getStart(t)+1,a=n.parameters.length?", ":"";this.insertNodeAt(t,s,i,{prefix:"this: ",suffix:a})}insertTypeParameters(t,n,i){let s=(Ma(n,21,t)||Fo(n.parameters)).getStart(t);this.insertNodesAt(t,s,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,n,i){return Ji(t)||_u(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Ci(t)?{suffix:", "}:is(t)?is(n)?{suffix:", "}:{}:jo(t)&&Yc(t.parent)||Hg(t)?{suffix:", "}:pf(t)?{suffix:","+(i?this.newLineCharacter:" ")}:M.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,n,i){let s=Aa(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[i,...n.body.statements]):this.insertNodeBefore(t,s,i)}insertNodeAtConstructorStartAfterSuperCall(t,n,i){let s=jn(n.body.statements,a=>wu(a)&&Kx(a.expression));!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}insertNodeAtConstructorEnd(t,n,i){let s=yc(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}replaceConstructorBody(t,n,i){this.replaceNode(t,n.body,U.createBlock(i,!0))}insertNodeAtEndOfScope(t,n,i){let s=A2(t,n.getLastToken(),{});this.insertNodeAt(t,s,i,{prefix:T_(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtObjectStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtStartWorker(t,n,i){let s=this.guessIndentationFromExistingMembers(t,n)??this.computeIndentationForNewMember(t,n);this.insertNodeAt(t,nte(n).pos,i,this.getInsertNodeAtStartInsertOptions(t,n,s))}guessIndentationFromExistingMembers(t,n){let i,s=n;for(let a of nte(n)){if(W9(s,a,t))return;let u=a.getStart(t),m=zl.SmartIndenter.findFirstNonWhitespaceColumn(cm(u,t),u,t,this.formatContext.options);if(i===void 0)i=m;else if(m!==i)return;s=a}return i}computeIndentationForNewMember(t,n){let i=n.getStart(t);return zl.SmartIndenter.findFirstNonWhitespaceColumn(cm(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,n,i){let a=nte(n).length===0,u=tm(this.classesWithNodesInsertedAtStart,Sa(n),{node:n,sourceFile:t}),m=ko(n)&&(!Xd(t)||!a),d=ko(n)&&Xd(t)&&a&&!u;return{indentation:i,prefix:(d?",":"")+this.newLineCharacter,suffix:m?",":Xu(n)&&a?";":""}}insertNodeAfterComma(t,n,i){let s=this.insertNodeAfterWorker(t,this.nextCommaToken(t,n)||n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfter(t,n,i){let s=this.insertNodeAfterWorker(t,n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAtEndOfList(t,n,i){this.insertNodeAt(t,n.end,i,{prefix:", "})}insertNodesAfter(t,n,i){let s=this.insertNodeAfterWorker(t,n,Fo(i));this.insertNodesAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfterWorker(t,n,i){return G4t(n,i)&&t.text.charCodeAt(n.end-1)!==59&&this.replaceRange(t,Ed(n.end),U.createToken(27)),uD(t,n,{})}getInsertNodeAfterOptions(t,n){let i=this.getInsertNodeAfterOptionsWorker(n);return{...i,prefix:n.end===t.end&&Ji(n)?i.prefix?`
${i.prefix}`:`
`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return M.assert(Ji(t)||F5(t)),{suffix:this.newLineCharacter}}}insertName(t,n,i){if(M.assert(!n.name),n.kind===219){let s=Ma(n,39,t),a=Ma(n,21,t);a?(this.insertNodesAt(t,a.getStart(t),[U.createToken(100),U.createIdentifier(i)],{joiner:" "}),w0(this,t,s)):(this.insertText(t,Fo(n.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,s,U.createToken(22))),n.body.kind!==241&&(this.insertNodesAt(t,n.body.getStart(t),[U.createToken(19),U.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,n.body.end,[U.createToken(27),U.createToken(20)],{joiner:" "}))}else{let s=Ma(n,n.kind===218?100:86,t).end;this.insertNodeAt(t,s,U.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,n){this.insertText(t,n.getStart(t),"export ")}insertImportSpecifierAtIndex(t,n,i,s){let a=i.elements[s-1];a?this.insertNodeInListAfter(t,a,n):this.insertNodeBefore(t,i.elements[0],n,!xd(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,n,i,s=zl.SmartIndenter.getContainingList(n,t)){if(!s){M.fail("node is not a list element");return}let a=qP(s,n);if(a<0)return;let u=n.getEnd();if(a!==s.length-1){let m=Ki(t,n.end);if(m&&rte(n,m)){let d=s[a+1],S=_qe(t.text,d.getFullStart()),E=`${bo(m.kind)}${t.text.substring(m.end,S)}`;this.insertNodesAt(t,S,[i],{suffix:E})}}else{let m=n.getStart(t),d=cm(m,t),S,E=!1;if(s.length===1)S=28;else{let x=su(n.pos,t);S=rte(n,x)?x.kind:28,E=cm(s[a-1].getStart(t),t)!==d}if((M4t(t.text,n.end)||!xd(s.pos,s.end,t))&&(E=!0),E){this.replaceRange(t,Ed(u),U.createToken(S));let x=zl.SmartIndenter.findFirstNonWhitespaceColumn(d,m,t,this.formatContext.options),D=zo(t.text,u,!0,!1);for(;D!==u&&T_(t.text.charCodeAt(D-1));)D--;this.replaceRange(t,Ed(D),i,{indentation:x,prefix:this.newLineCharacter})}else this.replaceRange(t,Ed(u),i,{prefix:`${bo(S)} `})}}parenthesizeExpression(t,n){this.replaceRange(t,F$(n),U.createParenthesizedExpression(n))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:n})=>{let[i,s]=V4t(t,n);if(i!==void 0&&s!==void 0){let a=nte(t).length===0,u=xd(i,s,n);a&&u&&i!==s-1&&this.deleteRange(n,Ed(i,s-1)),u&&this.insertText(n,s-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:n,node:i}of this.deletedNodes)this.deletedNodes.some(s=>s.sourceFile===n&&v0e(s.node,i))||(Ms(i)?this.deleteRange(n,j$(n,i)):xbe.deleteDeclaration(this,t,n,i));t.forEach(n=>{let i=n.getSourceFile(),s=zl.SmartIndenter.getContainingList(n,i);if(n!==qo(s))return;let a=dv(s,u=>!t.has(u),s.length-2);a!==-1&&this.deleteRange(i,{pos:s[a].end,end:bbe(i,s[a+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let n=ite.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,s)=>{n.push(ite.newFileChanges(s,i,this.newLineCharacter,this.formatContext))}),n}createNewFile(t,n,i){this.insertStatementsInNewFile(n,i,t)}};function j4t(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function B4t(e,t){if(e.kind===t.kind)switch(e.kind){case 341:{let n=e,i=t;return $e(n.name)&&$e(i.name)&&n.name.escapedText===i.name.escapedText?U.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0}case 342:return U.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return U.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function bbe(e,t){return zo(e.text,A2(e,t,{leadingTriviaOption:1}),!1,!0)}function U4t(e,t,n,i){let s=bbe(e,i);if(n===void 0||xd(uD(e,t,{}),s,e))return s;let a=su(i.getStart(e),e);if(rte(t,a)){let u=su(t.getStart(e),e);if(rte(n,u)){let m=zo(e.text,a.getEnd(),!0,!0);if(xd(u.getStart(e),a.getStart(e),e))return T_(e.text.charCodeAt(m-1))?m-1:m;if(T_(e.text.charCodeAt(m)))return m}}return s}function V4t(e,t){let n=Ma(e,19,t),i=Ma(e,20,t);return[n?.end,i?.end]}function nte(e){return ko(e)?e.properties:e.members}var ite;(e=>{function t(m,d,S,E){return Yi(WI(m,x=>x.sourceFile.path),x=>{let D=x[0].sourceFile,I=Zs(x,(L,F)=>L.range.pos-F.range.pos||L.range.end-F.range.end);for(let L=0;L`${JSON.stringify(I[L].range)} and ${JSON.stringify(I[L+1].range)}`);let R=Yi(I,L=>{let F=lS(L.range),J=L.kind===1?Jr(Bc(L.node))??L.sourceFile:L.kind===2?Jr(Bc(L.nodes[0]))??L.sourceFile:L.sourceFile,$=s(L,J,D,d,S,E);if(!(F.length===$.length&&sve(J.text,$,F.start)))return v8(F,$)});return R.length>0?{fileName:D.fileName,textChanges:R}:void 0})}e.getTextChangesFromChanges=t;function n(m,d,S,E){let x=i(_j(m),d,S,E);return{fileName:m,textChanges:[v8(Gu(0,0),x)],isNewFile:!0}}e.newFileChanges=n;function i(m,d,S,E){let x=To(d,R=>R.statements.map(L=>L===4?"":u(L,R.oldFile,S).text)).join(S),D=$A("any file name",x,{languageVersion:99,jsDocParsingMode:1},!0,m),I=zl.formatDocument(D,E);return Ebe(x,I)+S}e.newFileChangesWorker=i;function s(m,d,S,E,x,D){var I;if(m.kind===0)return"";if(m.kind===3)return m.text;let{options:R={},range:{pos:L}}=m,F=q=>a(q,d,S,L,R,E,x,D),J=m.kind===2?m.nodes.map(q=>kP(F(q),E)).join(((I=m.options)==null?void 0:I.joiner)||E):F(m.node),$=R.indentation!==void 0||cm(L,d)===L?J:J.replace(/^\s+/,"");return(R.prefix||"")+$+(!R.suffix||Wc($,R.suffix)?"":R.suffix)}function a(m,d,S,E,{indentation:x,prefix:D,delta:I},R,L,F){let{node:J,text:$}=u(m,d,R);F&&F(J,$);let q=dV(L,d),ee=x!==void 0?x:zl.SmartIndenter.getIndentation(E,S,q,D===R||cm(E,d)===E);I===void 0&&(I=zl.SmartIndenter.shouldIndentChildNode(q,m)&&q.indentSize||0);let W={text:$,getLineAndCharacterOfPosition(K){return Eo(this,K)}},pe=zl.formatNodeGivenIndentation(J,W,d.languageVariant,ee,I,{...L,options:q});return Ebe($,pe)}function u(m,d,S){let E=fqe(S),x=w8(S);return aS({newLine:x,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},E).writeNode(4,m,d,E),{text:E.getText(),node:ste(m)}}e.getNonformattedText=u})(ite||(ite={}));function Ebe(e,t){for(let n=t.length-1;n>=0;n--){let{span:i,newText:s}=t[n];e=`${e.substring(0,i.start)}${s}${e.substring(bl(i))}`}return e}function J4t(e){return zo(e,0)===e.length}var q4t={...YM,factory:oM(YM.factory.flags|1,YM.factory.baseFactory)};function ste(e){let t=jr(e,ste,q4t,z4t,ste),n=Ka(t)?t:Object.create(t);return Jg(n,aqe(e),cqe(e)),n}function z4t(e,t,n,i,s){let a=Qr(e,t,n,i,s);if(!a)return a;M.assert(e);let u=a===e?U.createNodeArray(a.slice(0)):a;return Jg(u,aqe(e),cqe(e)),u}function fqe(e){let t=0,n=UR(e),i=te=>{te&&vbe(te,t)},s=te=>{te&&Sbe(te,t)},a=te=>{te&&vbe(te,t)},u=te=>{te&&Sbe(te,t)},m=te=>{te&&vbe(te,t)},d=te=>{te&&Sbe(te,t)};function S(te,he){if(he||!J4t(te)){t=n.getTextPos();let Te=0;for(;Sy(te.charCodeAt(te.length-Te-1));)Te++;t-=Te}}function E(te){n.write(te),S(te,!1)}function x(te){n.writeComment(te)}function D(te){n.writeKeyword(te),S(te,!1)}function I(te){n.writeOperator(te),S(te,!1)}function R(te){n.writePunctuation(te),S(te,!1)}function L(te){n.writeTrailingSemicolon(te),S(te,!1)}function F(te){n.writeParameter(te),S(te,!1)}function J(te){n.writeProperty(te),S(te,!1)}function $(te){n.writeSpace(te),S(te,!1)}function q(te){n.writeStringLiteral(te),S(te,!1)}function ee(te,he){n.writeSymbol(te,he),S(te,!1)}function W(te){n.writeLine(te)}function pe(){n.increaseIndent()}function K(){n.decreaseIndent()}function re(){return n.getText()}function ue(te){n.rawWrite(te),S(te,!1)}function ce(te){n.writeLiteral(te),S(te,!0)}function ne(){return n.getTextPos()}function le(){return n.getLine()}function me(){return n.getColumn()}function de(){return n.getIndent()}function Ae(){return n.isAtStartOfLine()}function xe(){n.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:a,onAfterEmitNodeArray:u,onBeforeEmitToken:m,onAfterEmitToken:d,write:E,writeComment:x,writeKeyword:D,writeOperator:I,writePunctuation:R,writeTrailingSemicolon:L,writeParameter:F,writeProperty:J,writeSpace:$,writeStringLiteral:q,writeSymbol:ee,writeLine:W,increaseIndent:pe,decreaseIndent:K,getText:re,rawWrite:ue,writeLiteral:ce,getTextPos:ne,getLine:le,getColumn:me,getIndent:de,isAtStartOfLine:Ae,hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:xe}}function W4t(e){let t;for(let S of e.statements)if(Rg(S))t=S;else break;let n=0,i=e.text;if(t)return n=t.end,d(),n;let s=A5(i);s!==void 0&&(n=s.length,d());let a=Ty(i,n);if(!a)return n;let u,m;for(let S of a){if(S.kind===3){if(Z5(i,S.pos)){u={range:S,pinnedOrTripleSlash:!0};continue}}else if(lH(i,S.pos,S.end)){u={range:S,pinnedOrTripleSlash:!0};continue}if(u){if(u.pinnedOrTripleSlash)break;let E=e.getLineAndCharacterOfPosition(S.pos).line,x=e.getLineAndCharacterOfPosition(u.range.end).line;if(E>=x+2)break}if(e.statements.length){m===void 0&&(m=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let E=e.getLineAndCharacterOfPosition(S.end).line;if(m{function t(a,u,m,d){switch(d.kind){case 169:{let I=d.parent;fc(I)&&I.parameters.length===1&&!Ma(I,21,m)?a.replaceNodeWithText(m,d,"()"):sL(a,u,m,d);break}case 272:case 271:let S=m.imports.length&&d===Fo(m.imports).parent||d===jn(m.statements,tA);w0(a,m,d,{leadingTriviaOption:S?0:Np(d)?2:3});break;case 208:let E=d.parent;E.kind===207&&d!==qo(E.elements)?w0(a,m,d):sL(a,u,m,d);break;case 260:s(a,u,m,d);break;case 168:sL(a,u,m,d);break;case 276:let D=d.parent;D.elements.length===1?i(a,m,D):sL(a,u,m,d);break;case 274:i(a,m,d);break;case 27:w0(a,m,d,{trailingTriviaOption:0});break;case 100:w0(a,m,d,{leadingTriviaOption:0});break;case 263:case 262:w0(a,m,d,{leadingTriviaOption:Np(d)?2:3});break;default:d.parent?ng(d.parent)&&d.parent.name===d?n(a,m,d.parent):to(d.parent)&&xs(d.parent.arguments,d)?sL(a,u,m,d):w0(a,m,d):w0(a,m,d)}}e.deleteDeclaration=t;function n(a,u,m){if(!m.namedBindings)w0(a,u,m.parent);else{let d=m.name.getStart(u),S=Ki(u,m.name.end);if(S&&S.kind===28){let E=zo(u.text,S.end,!1,!0);a.deleteRange(u,{pos:d,end:E})}else w0(a,u,m.name)}}function i(a,u,m){if(m.parent.name){let d=M.checkDefined(Ki(u,m.pos-1));a.deleteRange(u,{pos:d.getStart(u),end:m.end})}else{let d=pT(m,272);w0(a,u,d)}}function s(a,u,m,d){let{parent:S}=d;if(S.kind===299){a.deleteNodeRange(m,Ma(S,21,m),Ma(S,22,m));return}if(S.declarations.length!==1){sL(a,u,m,d);return}let E=S.parent;switch(E.kind){case 250:case 249:a.replaceNode(m,d,U.createObjectLiteralExpression());break;case 248:w0(a,m,S);break;case 243:w0(a,m,E,{leadingTriviaOption:Np(E)?2:3});break;default:M.assertNever(E)}}})(xbe||(xbe={}));function w0(e,t,n,i={leadingTriviaOption:1}){let s=A2(t,n,i),a=uD(t,n,i);e.deleteRange(t,{pos:s,end:a})}function sL(e,t,n,i){let s=M.checkDefined(zl.SmartIndenter.getContainingList(i,n)),a=qP(s,i);if(M.assert(a!==-1),s.length===1){w0(e,n,i);return}M.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(n,{pos:bbe(n,i),end:a===s.length-1?uD(n,i,{}):U4t(n,i,s[a-1],s[a+1])})}var zl={};k(zl,{FormattingContext:()=>mqe,FormattingRequestKind:()=>dqe,RuleAction:()=>gqe,RuleFlags:()=>hqe,SmartIndenter:()=>th,anyContext:()=>ote,createTextRangeWithKind:()=>ute,formatDocument:()=>F3t,formatNodeGivenIndentation:()=>z3t,formatOnClosingCurly:()=>L3t,formatOnEnter:()=>O3t,formatOnOpeningCurly:()=>M3t,formatOnSemicolon:()=>R3t,formatSelection:()=>j3t,getAllRules:()=>yqe,getFormatContext:()=>C3t,getFormattingScanner:()=>Cbe,getIndentationString:()=>Bbe,getRangeOfEnclosingComment:()=>qqe});var dqe=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(dqe||{}),mqe=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,i,s){this.currentTokenSpan=M.checkDefined(e),this.currentTokenParent=M.checkDefined(t),this.nextTokenSpan=M.checkDefined(n),this.nextTokenParent=M.checkDefined(i),this.contextNode=M.checkDefined(s),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,n=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===n}BlockIsOnOneLine(e){let t=Ma(e,19,this.sourceFile),n=Ma(e,20,this.sourceFile);if(t&&n){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,s=this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line;return i===s}return!1}},H4t=Ey(99,!1,0),$4t=Ey(99,!1,1);function Cbe(e,t,n,i,s){let a=t===1?$4t:H4t;a.setText(e),a.resetTokenState(n);let u=!0,m,d,S,E,x,D=s({advance:I,readTokenInfo:W,readEOFTokenRange:K,isOnToken:re,isOnEOF:ue,getCurrentLeadingTrivia:()=>m,lastTrailingTriviaWasNewLine:()=>u,skipToEndOf:ne,skipToStartOf:le,getTokenFullStart:()=>x?.token.pos??a.getTokenStart(),getStartPos:()=>x?.token.pos??a.getTokenStart()});return x=void 0,a.setText(void 0),D;function I(){x=void 0,a.getTokenFullStart()!==n?u=!!d&&qo(d).kind===4:a.scan(),m=void 0,d=void 0;let de=a.getTokenFullStart();for(;de(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(gqe||{}),hqe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(hqe||{});function yqe(){let e=[];for(let pe=0;pe<=165;pe++)pe!==1&&e.push(pe);function t(...pe){return{tokens:e.filter(K=>!pe.some(re=>re===K)),isSpecific:!1}}let n={tokens:e,isSpecific:!1},i=L6([...e,3]),s=L6([...e,1]),a=Sqe(83,165),u=Sqe(30,79),m=[103,104,165,130,142,152],d=[46,47,55,54],S=[9,10,80,21,23,19,110,105],E=[80,21,110,105],x=[80,22,24,105],D=[80,21,110,105],I=[80,22,24,105],R=[2,3],L=[80,...OQ],F=i,J=L6([80,32,3,86,95,102]),$=L6([22,3,92,113,98,93,85]),q=[li("IgnoreBeforeComment",n,R,ote,1),li("IgnoreAfterLineComment",2,n,ote,1),li("NotSpaceBeforeColon",n,59,[ts,sJ,Eqe],16),li("SpaceAfterColon",59,n,[ts,sJ,_3t],4),li("NoSpaceBeforeQuestionMark",n,58,[ts,sJ,Eqe],16),li("SpaceAfterQuestionMarkInConditionalOperator",58,n,[ts,Q4t],4),li("NoSpaceAfterQuestionMark",58,n,[ts,X4t],16),li("NoSpaceBeforeDot",n,[25,29],[ts,x3t],16),li("NoSpaceAfterDot",[25,29],n,[ts],16),li("NoSpaceBetweenImportParenInImportType",102,21,[ts,l3t],16),li("NoSpaceAfterUnaryPrefixOperator",d,S,[ts,sJ],16),li("NoSpaceAfterUnaryPreincrementOperator",46,E,[ts],16),li("NoSpaceAfterUnaryPredecrementOperator",47,D,[ts],16),li("NoSpaceBeforeUnaryPostincrementOperator",x,46,[ts,Bqe],16),li("NoSpaceBeforeUnaryPostdecrementOperator",I,47,[ts,Bqe],16),li("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[ts,fS],4),li("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[ts,fS],4),li("SpaceAfterAddWhenFollowedByPreincrement",40,46,[ts,fS],4),li("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[ts,fS],4),li("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[ts,fS],4),li("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[ts,fS],4),li("NoSpaceAfterCloseBrace",20,[28,27],[ts],16),li("NewLineBeforeCloseBraceInBlockContext",i,20,[Cqe],8),li("SpaceAfterCloseBrace",20,t(22),[ts,t3t],4),li("SpaceBetweenCloseBraceAndElse",20,93,[ts],4),li("SpaceBetweenCloseBraceAndWhile",20,117,[ts],4),li("NoSpaceBetweenEmptyBraceBrackets",19,20,[ts,Iqe],16),li("SpaceAfterConditionalClosingParen",22,23,[oJ],4),li("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Pqe],16),li("SpaceAfterStarInGeneratorDeclaration",42,80,[Pqe],4),li("SpaceAfterFunctionInFuncDecl",100,n,[k2],4),li("NewLineAfterOpenBraceInBlockContext",19,n,[Cqe],8),li("SpaceAfterGetSetInMember",[139,153],80,[k2],4),li("NoSpaceBetweenYieldKeywordAndStar",127,42,[ts,jqe],16),li("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[ts,jqe],4),li("NoSpaceBetweenReturnAndSemicolon",107,27,[ts],16),li("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[ts],4),li("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[ts,d3t],4),li("NoSpaceBeforeOpenParenInFuncCall",n,21,[ts,i3t,s3t],16),li("SpaceBeforeBinaryKeywordOperator",n,m,[ts,fS],4),li("SpaceAfterBinaryKeywordOperator",m,n,[ts,fS],4),li("SpaceAfterVoidOperator",116,n,[ts,v3t],4),li("SpaceBetweenAsyncAndOpenParen",134,21,[c3t,ts],4),li("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[ts],4),li("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[ts],16),li("SpaceBeforeJsxAttribute",n,80,[u3t,ts],4),li("SpaceBeforeSlashInJsxOpeningElement",n,44,[Mqe,ts],4),li("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Mqe,ts],16),li("NoSpaceBeforeEqualInJsxAttribute",n,64,[Oqe,ts],16),li("NoSpaceAfterEqualInJsxAttribute",64,n,[Oqe,ts],16),li("NoSpaceBeforeJsxNamespaceColon",80,59,[Rqe],16),li("NoSpaceAfterJsxNamespaceColon",59,80,[Rqe],16),li("NoSpaceAfterModuleImport",[144,149],21,[ts],16),li("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[ts],4),li("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[ts],4),li("SpaceAfterModuleName",11,19,[m3t],4),li("SpaceBeforeArrow",n,39,[ts],4),li("SpaceAfterArrow",39,n,[ts],4),li("NoSpaceAfterEllipsis",26,80,[ts],16),li("NoSpaceAfterOptionalParameters",58,[22,28],[ts,sJ],16),li("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[ts,g3t],16),li("NoSpaceBeforeOpenAngularBracket",L,30,[ts,aJ],16),li("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[ts,aJ],16),li("NoSpaceAfterOpenAngularBracket",30,n,[ts,aJ],16),li("NoSpaceBeforeCloseAngularBracket",n,32,[ts,aJ],16),li("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[ts,aJ,e3t,y3t],16),li("SpaceBeforeAt",[22,80],60,[ts],4),li("NoSpaceAfterAt",60,n,[ts],16),li("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[p3t],4),li("NoSpaceBeforeNonNullAssertionOperator",n,54,[ts,S3t],16),li("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[ts,h3t],16),li("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[ts],4)],ee=[li("SpaceAfterConstructor",137,21,[nd("insertSpaceAfterConstructor"),ts],4),li("NoSpaceAfterConstructor",137,21,[eh("insertSpaceAfterConstructor"),ts],16),li("SpaceAfterComma",28,n,[nd("insertSpaceAfterCommaDelimiter"),ts,wbe,o3t,a3t],4),li("NoSpaceAfterComma",28,n,[eh("insertSpaceAfterCommaDelimiter"),ts,wbe],16),li("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[nd("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k2],4),li("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[eh("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k2],16),li("SpaceAfterKeywordInControl",a,21,[nd("insertSpaceAfterKeywordsInControlFlowStatements"),oJ],4),li("NoSpaceAfterKeywordInControl",a,21,[eh("insertSpaceAfterKeywordsInControlFlowStatements"),oJ],16),li("SpaceAfterOpenParen",21,n,[nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ts],4),li("SpaceBeforeCloseParen",n,22,[nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ts],4),li("SpaceBetweenOpenParens",21,21,[nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ts],4),li("NoSpaceBetweenParens",21,22,[ts],16),li("NoSpaceAfterOpenParen",21,n,[eh("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ts],16),li("NoSpaceBeforeCloseParen",n,22,[eh("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ts],16),li("SpaceAfterOpenBracket",23,n,[nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ts],4),li("SpaceBeforeCloseBracket",n,24,[nd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ts],4),li("NoSpaceBetweenBrackets",23,24,[ts],16),li("NoSpaceAfterOpenBracket",23,n,[eh("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ts],16),li("NoSpaceBeforeCloseBracket",n,24,[eh("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ts],16),li("SpaceAfterOpenBrace",19,n,[bqe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),xqe],4),li("SpaceBeforeCloseBrace",n,20,[bqe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),xqe],4),li("NoSpaceBetweenEmptyBraceBrackets",19,20,[ts,Iqe],16),li("NoSpaceAfterOpenBrace",19,n,[Abe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ts],16),li("NoSpaceBeforeCloseBrace",n,20,[Abe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ts],16),li("SpaceBetweenEmptyBraceBrackets",19,20,[nd("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),li("NoSpaceBetweenEmptyBraceBrackets",19,20,[Abe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),ts],16),li("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[nd("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),wqe],4,1),li("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[nd("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ts],4),li("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[eh("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),wqe],16,1),li("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[eh("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ts],16),li("SpaceAfterOpenBraceInJsxExpression",19,n,[nd("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ts,cte],4),li("SpaceBeforeCloseBraceInJsxExpression",n,20,[nd("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ts,cte],4),li("NoSpaceAfterOpenBraceInJsxExpression",19,n,[eh("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ts,cte],16),li("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[eh("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ts,cte],16),li("SpaceAfterSemicolonInFor",27,n,[nd("insertSpaceAfterSemicolonInForStatements"),ts,Pbe],4),li("NoSpaceAfterSemicolonInFor",27,n,[eh("insertSpaceAfterSemicolonInForStatements"),ts,Pbe],16),li("SpaceBeforeBinaryOperator",n,u,[nd("insertSpaceBeforeAndAfterBinaryOperators"),ts,fS],4),li("SpaceAfterBinaryOperator",u,n,[nd("insertSpaceBeforeAndAfterBinaryOperators"),ts,fS],4),li("NoSpaceBeforeBinaryOperator",n,u,[eh("insertSpaceBeforeAndAfterBinaryOperators"),ts,fS],16),li("NoSpaceAfterBinaryOperator",u,n,[eh("insertSpaceBeforeAndAfterBinaryOperators"),ts,fS],16),li("SpaceBeforeOpenParenInFuncDecl",n,21,[nd("insertSpaceBeforeFunctionParenthesis"),ts,k2],4),li("NoSpaceBeforeOpenParenInFuncDecl",n,21,[eh("insertSpaceBeforeFunctionParenthesis"),ts,k2],16),li("NewLineBeforeOpenBraceInControl",$,19,[nd("placeOpenBraceOnNewLineForControlBlocks"),oJ,Ibe],8,1),li("NewLineBeforeOpenBraceInFunction",F,19,[nd("placeOpenBraceOnNewLineForFunctions"),k2,Ibe],8,1),li("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",J,19,[nd("placeOpenBraceOnNewLineForFunctions"),Nqe,Ibe],8,1),li("SpaceAfterTypeAssertion",32,n,[nd("insertSpaceAfterTypeAssertion"),ts,Rbe],4),li("NoSpaceAfterTypeAssertion",32,n,[eh("insertSpaceAfterTypeAssertion"),ts,Rbe],16),li("SpaceBeforeTypeAnnotation",n,[58,59],[nd("insertSpaceBeforeTypeAnnotation"),ts,Nbe],4),li("NoSpaceBeforeTypeAnnotation",n,[58,59],[eh("insertSpaceBeforeTypeAnnotation"),ts,Nbe],16),li("NoOptionalSemicolon",27,s,[Tqe("semicolons","remove"),b3t],32),li("OptionalSemicolon",n,s,[Tqe("semicolons","insert"),E3t],64)],W=[li("NoSpaceBeforeSemicolon",n,27,[ts],16),li("SpaceBeforeOpenBraceInControl",$,19,[kbe("placeOpenBraceOnNewLineForControlBlocks"),oJ,Obe,Dbe],4,1),li("SpaceBeforeOpenBraceInFunction",F,19,[kbe("placeOpenBraceOnNewLineForFunctions"),k2,ate,Obe,Dbe],4,1),li("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",J,19,[kbe("placeOpenBraceOnNewLineForFunctions"),Nqe,Obe,Dbe],4,1),li("NoSpaceBeforeComma",n,28,[ts],16),li("NoSpaceBeforeOpenBracket",t(134,84),23,[ts],16),li("NoSpaceAfterCloseBracket",24,n,[ts,f3t],16),li("SpaceAfterSemicolon",27,n,[ts],4),li("SpaceBetweenForAndAwaitKeyword",99,135,[ts],4),li("SpaceBetweenDotDotDotAndTypeName",26,L,[ts],16),li("SpaceBetweenStatements",[22,92,93,84],n,[ts,wbe,Y4t],4),li("SpaceAfterTryCatchFinally",[113,85,98],19,[ts],4)];return[...q,...ee,...W]}function li(e,t,n,i,s,a=0){return{leftTokenRange:vqe(t),rightTokenRange:vqe(n),rule:{debugName:e,context:i,action:s,flags:a}}}function L6(e){return{tokens:e,isSpecific:!0}}function vqe(e){return typeof e=="number"?L6([e]):Ms(e)?L6(e):e}function Sqe(e,t,n=[]){let i=[];for(let s=e;s<=t;s++)xs(n,s)||i.push(s);return L6(i)}function Tqe(e,t){return n=>n.options&&n.options[e]===t}function nd(e){return t=>t.options&&Ha(t.options,e)&&!!t.options[e]}function Abe(e){return t=>t.options&&Ha(t.options,e)&&!t.options[e]}function eh(e){return t=>!t.options||!Ha(t.options,e)||!t.options[e]}function kbe(e){return t=>!t.options||!Ha(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function bqe(e){return t=>!t.options||!Ha(t.options,e)||!!t.options[e]}function Pbe(e){return e.contextNode.kind===248}function Y4t(e){return!Pbe(e)}function fS(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function sJ(e){return!fS(e)}function Eqe(e){return!Nbe(e)}function Nbe(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||KC(t)}function K4t(e){return Ds(e.contextNode)&&e.contextNode.questionToken}function X4t(e){return!K4t(e)}function Q4t(e){return e.contextNode.kind===227||e.contextNode.kind===194}function Dbe(e){return e.TokensAreOnSameLine()||ate(e)}function xqe(e){return e.contextNode.kind===206||e.contextNode.kind===200||Z4t(e)}function Ibe(e){return ate(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function Cqe(e){return Aqe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Z4t(e){return Aqe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function Aqe(e){return kqe(e.contextNode)}function ate(e){return kqe(e.nextTokenParent)}function kqe(e){if(Dqe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function k2(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function e3t(e){return!k2(e)}function Pqe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function Nqe(e){return Dqe(e.contextNode)}function Dqe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function t3t(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function oJ(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function Iqe(e){return e.contextNode.kind===210}function r3t(e){return e.contextNode.kind===213}function n3t(e){return e.contextNode.kind===214}function i3t(e){return r3t(e)||n3t(e)}function s3t(e){return e.currentTokenSpan.kind!==28}function o3t(e){return e.nextTokenSpan.kind!==24}function a3t(e){return e.nextTokenSpan.kind!==22}function c3t(e){return e.contextNode.kind===219}function l3t(e){return e.contextNode.kind===205}function ts(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function wqe(e){return e.contextNode.kind!==12}function wbe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function cte(e){return e.contextNode.kind===294||e.contextNode.kind===293}function u3t(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function Oqe(e){return e.contextNode.kind===291}function _3t(e){return e.nextTokenParent.kind!==295}function Rqe(e){return e.nextTokenParent.kind===295}function Mqe(e){return e.contextNode.kind===285}function f3t(e){return!k2(e)&&!ate(e)}function p3t(e){return e.TokensAreOnSameLine()&&Gp(e.contextNode)&&Lqe(e.currentTokenParent)&&!Lqe(e.nextTokenParent)}function Lqe(e){for(;e&&Pt(e);)e=e.parent;return e&&e.kind===170}function d3t(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Obe(e){return e.formattingRequestKind!==2}function m3t(e){return e.contextNode.kind===267}function g3t(e){return e.contextNode.kind===187}function h3t(e){return e.contextNode.kind===180}function Fqe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function aJ(e){return Fqe(e.currentTokenSpan,e.currentTokenParent)||Fqe(e.nextTokenSpan,e.nextTokenParent)}function Rbe(e){return e.contextNode.kind===216}function y3t(e){return!Rbe(e)}function v3t(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function jqe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function S3t(e){return e.contextNode.kind===235}function Bqe(e){return!T3t(e)}function T3t(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function b3t(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(rN(t)){let a=e.nextTokenParent===e.currentTokenParent?NE(e.currentTokenParent,Dr(e.currentTokenParent,u=>!u.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!a)return!0;t=a.kind,n=a.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,s=e.sourceFile.getLineAndCharacterOfPosition(n).line;return i===s?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!If(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Ds(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function E3t(e){return nV(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function x3t(e){return!Hn(e.contextNode)||!Df(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function C3t(e,t){return{options:e,getRules:A3t(),host:t}}var Mbe;function A3t(){return Mbe===void 0&&(Mbe=P3t(yqe())),Mbe}function k3t(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function P3t(e){let t=N3t(e);return n=>{let i=t[Uqe(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(i){let s=[],a=0;for(let u of i){let m=~k3t(a);u.action&m&&Oi(u.context,d=>d(n))&&(s.push(u),a|=u.action)}if(s.length)return s}}}function N3t(e){let t=new Array(Lbe*Lbe),n=new Array(t.length);for(let i of e){let s=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let a of i.leftTokenRange.tokens)for(let u of i.rightTokenRange.tokens){let m=Uqe(a,u),d=t[m];d===void 0&&(d=t[m]=[]),D3t(d,i.rule,s,n,m)}}return t}function Uqe(e,t){return M.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*Lbe+t}var F6=5,lte=31,Lbe=166,oL=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=F6*1]="StopRulesAny",e[e.ContextRulesSpecific=F6*2]="ContextRulesSpecific",e[e.ContextRulesAny=F6*3]="ContextRulesAny",e[e.NoContextRulesSpecific=F6*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=F6*5]="NoContextRulesAny",e))(oL||{});function D3t(e,t,n,i,s){let a=t.action&3?n?0:oL.StopRulesAny:t.context!==ote?n?oL.ContextRulesSpecific:oL.ContextRulesAny:n?oL.NoContextRulesSpecific:oL.NoContextRulesAny,u=i[s]||0;e.splice(I3t(u,a),0,t),i[s]=w3t(u,a)}function I3t(e,t){let n=0;for(let i=0;i<=t;i+=F6)n+=e<e,e>>=F6;return n}function w3t(e,t){let n=(e>>t<e)+1;return M.assert((n<e)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(lte<M.formatSyntaxKind(n)}),i}function O3t(e,t,n){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=Z3(i,t);for(;Dg(t.text.charCodeAt(s));)s--;T_(t.text.charCodeAt(s))&&s--;let a={pos:q1(i-1,t),end:s+1};return cJ(a,t,n,2)}function R3t(e,t,n){let i=Fbe(e,27,t);return Vqe(jbe(i),t,n,3)}function M3t(e,t,n){let i=Fbe(e,19,t);if(!i)return[];let s=i.parent,a=jbe(s),u={pos:cm(a.getStart(t),t),end:e};return cJ(u,t,n,4)}function L3t(e,t,n){let i=Fbe(e,20,t);return Vqe(jbe(i),t,n,5)}function F3t(e,t){let n={pos:0,end:e.text.length};return cJ(n,e,t,0)}function j3t(e,t,n,i){let s={pos:cm(e,n),end:t};return cJ(s,n,i,1)}function Fbe(e,t,n){let i=su(e,n);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function jbe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!B3t(t.parent,t);)t=t.parent;return t}function B3t(e,t){switch(e.kind){case 263:case 264:return ed(e.members,t);case 267:let n=e.body;return!!n&&n.kind===268&&ed(n.statements,t);case 307:case 241:case 268:return ed(e.statements,t);case 299:return ed(e.block.statements,t)}return!1}function U3t(e,t){return n(t);function n(i){let s=qs(i,a=>SQ(a.getStart(t),a.end,e)&&a);if(s){let a=n(s);if(a)return a}return i}}function V3t(e,t){if(!e.length)return s;let n=e.filter(a=>f6(t,a.start,a.start+a.length)).sort((a,u)=>a.start-u.start);if(!n.length)return s;let i=0;return a=>{for(;;){if(i>=n.length)return!1;let u=n[i];if(a.end<=u.start)return!1;if(RU(a.pos,a.end,u.start,u.start+u.length))return!0;i++}};function s(){return!1}}function J3t(e,t,n){let i=e.getStart(n);if(i===t.pos&&e.end===t.end)return i;let s=su(t.pos,n);return!s||s.end>=t.pos?e.pos:s.end}function q3t(e,t,n){let i=-1,s;for(;e;){let a=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&a!==i)break;if(th.shouldIndentChildNode(t,e,s,n))return t.indentSize;i=a,s=e,e=e.parent}return 0}function z3t(e,t,n,i,s,a){let u={pos:e.pos,end:e.end};return Cbe(t.text,n,u.pos,u.end,m=>Jqe(u,e,i,s,m,a,1,d=>!1,t))}function Vqe(e,t,n,i){if(!e)return[];let s={pos:cm(e.getStart(t),t),end:e.end};return cJ(s,t,n,i)}function cJ(e,t,n,i){let s=U3t(e,t);return Cbe(t.text,t.languageVariant,J3t(s,e,t),e.end,a=>Jqe(e,s,th.getIndentationForNode(s,e,t,n.options),q3t(s,n.options,t),a,n,i,V3t(t.parseDiagnostics,e),t))}function Jqe(e,t,n,i,s,{options:a,getRules:u,host:m},d,S,E){var x;let D=new mqe(E,d,a),I,R,L,F,J,$=-1,q=[];if(s.advance(),s.isOnToken()){let ze=E.getLineAndCharacterOfPosition(t.getStart(E)).line,tt=ze;Gp(t)&&(tt=E.getLineAndCharacterOfPosition(uH(t,E)).line),ue(t,t,ze,tt,n,i)}let ee=s.getCurrentLeadingTrivia();if(ee){let ze=th.nodeWillIndentChild(a,t,void 0,E,!1)?n+a.indentSize:n;ce(ee,ze,!0,tt=>{le(tt,E.getLineAndCharacterOfPosition(tt.pos),t,t,void 0),de(tt.pos,ze,!1)}),a.trimTrailingWhitespace!==!1&&Ve(ee)}if(R&&s.getTokenFullStart()>=e.end){let ze=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(ze&&ze.pos===I){let tt=((x=su(ze.end,E,t))==null?void 0:x.parent)||L;me(ze,E.getLineAndCharacterOfPosition(ze.pos).line,tt,R,F,L,tt,void 0)}}return q;function W(ze,tt,we,ft,gt){if(f6(ft,ze,tt)||m8(ft,ze,tt)){if(gt!==-1)return gt}else{let Qe=E.getLineAndCharacterOfPosition(ze).line,yt=cm(ze,E),ir=th.findFirstNonWhitespaceColumn(yt,ze,E,a);if(Qe!==we||ze===ir){let Tr=th.getBaseIndentation(a);return Tr>ir?Tr:ir}}return-1}function pe(ze,tt,we,ft,gt,Qe){let yt=th.shouldIndentChildNode(a,ze)?a.indentSize:0;return Qe===tt?{indentation:tt===J?$:gt.getIndentation(),delta:Math.min(a.indentSize,gt.getDelta(ze)+yt)}:we===-1?ze.kind===21&&tt===J?{indentation:$,delta:gt.getDelta(ze)}:th.childStartsOnTheSameLineWithElseInIfStatement(ft,ze,tt,E)||th.childIsUnindentedBranchOfConditionalExpression(ft,ze,tt,E)||th.argumentStartsOnSameLineAsPreviousArgument(ft,ze,tt,E)?{indentation:gt.getIndentation(),delta:yt}:{indentation:gt.getIndentation()+gt.getDelta(ze),delta:yt}:{indentation:we,delta:yt}}function K(ze){if(Im(ze)){let tt=jn(ze.modifiers,Do,Va(ze.modifiers,pu));if(tt)return tt.kind}switch(ze.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(ze.asteriskToken)return 42;case 172:case 169:let tt=Ns(ze);if(tt)return tt.kind}}function re(ze,tt,we,ft){return{getIndentationForComment:(yt,ir,Tr)=>{switch(yt){case 20:case 24:case 22:return we+Qe(Tr)}return ir!==-1?ir:we},getIndentationForToken:(yt,ir,Tr,Ar)=>!Ar&>(yt,ir,Tr)?we+Qe(Tr):we,getIndentation:()=>we,getDelta:Qe,recomputeIndentation:(yt,ir)=>{th.shouldIndentChildNode(a,ir,ze,E)&&(we+=yt?a.indentSize:-a.indentSize,ft=th.shouldIndentChildNode(a,ze)?a.indentSize:0)}};function gt(yt,ir,Tr){switch(ir){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Tr.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(Tr.kind!==200)return!1;break}return tt!==yt&&!(Gp(ze)&&ir===K(ze))}function Qe(yt){return th.nodeWillIndentChild(a,ze,yt,E,!0)?ft:0}}function ue(ze,tt,we,ft,gt,Qe){if(!f6(e,ze.getStart(E),ze.getEnd()))return;let yt=re(ze,we,gt,Qe),ir=tt;for(qs(ze,fr=>{Tr(fr,-1,ze,yt,we,ft,!1)},fr=>{Ar(fr,ze,we,yt)});s.isOnToken()&&s.getTokenFullStart()Math.min(ze.end,e.end))break;Vr(fr,ze,yt,ze)}function Tr(fr,ur,tn,Mi,br,Di,As,os){if(M.assert(!Ka(fr)),Gc(fr)||A_e(tn,fr))return ur;let Ri=fr.getStart(E),$r=E.getLineAndCharacterOfPosition(Ri).line,Qs=$r;Gp(fr)&&(Qs=E.getLineAndCharacterOfPosition(uH(fr,E)).line);let He=-1;if(As&&ed(e,tn)&&(He=W(Ri,fr.end,br,e,ur),He!==-1&&(ur=He)),!f6(e,fr.pos,fr.end))return fr.ende.end)return ur;if(Pn.token.end>Ri){Pn.token.pos>Ri&&s.skipToStartOf(fr);break}Vr(Pn,ze,Mi,ze)}if(!s.isOnToken()||s.getTokenFullStart()>=e.end)return ur;if($C(fr)){let Pn=s.readTokenInfo(fr);if(fr.kind!==12)return M.assert(Pn.token.end===fr.end,"Token end is child end"),Vr(Pn,ze,Mi,fr),ur}let Xt=fr.kind===170?$r:Di,qr=pe(fr,$r,He,ze,Mi,Xt);return ue(fr,ir,$r,Qs,qr.indentation,qr.delta),ir=ze,os&&tn.kind===209&&ur===-1&&(ur=qr.indentation),ur}function Ar(fr,ur,tn,Mi){M.assert(zb(fr)),M.assert(!Ka(fr));let br=W3t(ur,fr),Di=Mi,As=tn;if(!f6(e,fr.pos,fr.end)){fr.endfr.pos)break;if($r.token.kind===br){As=E.getLineAndCharacterOfPosition($r.token.pos).line,Vr($r,ur,Mi,ur);let Qs;if($!==-1)Qs=$;else{let He=cm($r.token.pos,E);Qs=th.findFirstNonWhitespaceColumn(He,$r.token.pos,E,a)}Di=re(ur,tn,Qs,a.indentSize)}else Vr($r,ur,Mi,ur)}let os=-1;for(let $r=0;$rde(qr.pos,Xt,!1))}Qs!==-1&&He&&(de(fr.token.pos,Qs,os===1),J=$r.line,$=Qs)}s.advance(),ir=ur}}function ce(ze,tt,we,ft){for(let gt of ze){let Qe=ed(e,gt);switch(gt.kind){case 3:Qe&&te(gt,tt,!we),we=!1;break;case 2:we&&Qe&&ft(gt),we=!1;break;case 4:we=!0;break}}return we}function ne(ze,tt,we,ft){for(let gt of ze)if(JU(gt.kind)&&ed(e,gt)){let Qe=E.getLineAndCharacterOfPosition(gt.pos);le(gt,Qe,tt,we,ft)}}function le(ze,tt,we,ft,gt){let Qe=S(ze),yt=0;if(!Qe)if(R)yt=me(ze,tt.line,we,R,F,L,ft,gt);else{let ir=E.getLineAndCharacterOfPosition(e.pos);he(ir.line,tt.line)}return R=ze,I=ze.end,L=we,F=tt.line,yt}function me(ze,tt,we,ft,gt,Qe,yt,ir){D.updateContext(ft,Qe,ze,we,yt);let Tr=u(D),Ar=D.options.trimTrailingWhitespace!==!1,Vr=0;return Tr?pi(Tr,fr=>{if(Vr=lt(fr,ft,gt,ze,tt),ir)switch(Vr){case 2:we.getStart(E)===ze.pos&&ir.recomputeIndentation(!1,yt);break;case 1:we.getStart(E)===ze.pos&&ir.recomputeIndentation(!0,yt);break;default:M.assert(Vr===0)}Ar=Ar&&!(fr.action&16)&&fr.flags!==1}):Ar=Ar&&ze.kind!==1,tt!==gt&&Ar&&he(gt,tt,ft),Vr}function de(ze,tt,we){let ft=Bbe(tt,a);if(we)De(ze,0,ft);else{let gt=E.getLineAndCharacterOfPosition(ze),Qe=q1(gt.line,E);(tt!==Ae(Qe,gt.character)||xe(ft,Qe))&&De(Qe,gt.character,ft)}}function Ae(ze,tt){let we=0;for(let ft=0;ft0){let Di=Bbe(br,a);De(tn,Mi.character,Di)}else ke(tn,Mi.character)}}function he(ze,tt,we){for(let ft=ze;ftQe)continue;let yt=Te(gt,Qe);yt!==-1&&(M.assert(yt===gt||!Dg(E.text.charCodeAt(yt-1))),ke(yt,Qe+1-yt))}}function Te(ze,tt){let we=tt;for(;we>=ze&&Dg(E.text.charCodeAt(we));)we--;return we!==tt?we+1:-1}function Ve(ze){let tt=R?R.end:e.pos;for(let we of ze)JU(we.kind)&&(ttd8(S,t)||t===S.end&&(S.kind===2||t===e.getFullWidth()))}function W3t(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function G3t(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}var _te,aL,cL;function Bbe(e,t){if((!_te||_te.tabSize!==t.tabSize||_te.indentSize!==t.indentSize)&&(_te={tabSize:t.tabSize,indentSize:t.indentSize},aL=cL=void 0),t.convertTabsToSpaces){let i,s=Math.floor(e/t.indentSize),a=e%t.indentSize;return cL||(cL=[]),cL[s]===void 0?(i=S8(" ",t.indentSize*s),cL[s]=i):i=cL[s],a?i+S8(" ",a):i}else{let i=Math.floor(e/t.tabSize),s=e-i*t.tabSize,a;return aL||(aL=[]),aL[i]===void 0?aL[i]=a=S8("	",i):a=aL[i],s?a+S8(" ",s):a}}var th;(e=>{let t;(te=>{te[te.Unknown=-1]="Unknown"})(t||(t={}));function n(te,he,Te,Ve=!1){if(te>he.text.length)return m(Te);if(Te.indentStyle===0)return 0;let Pe=su(te,he,void 0,!0),ke=qqe(he,te,Pe||null);if(ke&&ke.kind===3)return i(he,te,Te,ke);if(!Pe)return m(Te);if(kQ(Pe.kind)&&Pe.getStart(he)<=te&&te=0),Pe<=ke)return le(q1(ke,te),he,te,Te);let De=q1(Pe,te),{column:Be,character:lt}=ne(De,he,te,Te);return Be===0?Be:te.text.charCodeAt(De+lt)===42?Be-1:Be}function s(te,he,Te){let Ve=he;for(;Ve>0;){let ke=te.text.charCodeAt(Ve);if(!Sy(ke))break;Ve--}let Pe=cm(Ve,te);return le(Pe,Ve,te,Te)}function a(te,he,Te,Ve,Pe,ke){let De,Be=Te;for(;Be;){if(TQ(Be,he,te)&&Ae(ke,Be,De,te,!0)){let ze=R(Be,te),tt=I(Te,Be,Ve,te),we=tt!==0?Pe&&tt===2?ke.indentSize:0:Ve!==ze.line?ke.indentSize:0;return d(Be,ze,void 0,we,te,!0,ke)}let lt=re(Be,te,ke,!0);if(lt!==-1)return lt;De=Be,Be=Be.parent}return m(ke)}function u(te,he,Te,Ve){let Pe=Te.getLineAndCharacterOfPosition(te.getStart(Te));return d(te,Pe,he,0,Te,!1,Ve)}e.getIndentationForNode=u;function m(te){return te.baseIndentSize||0}e.getBaseIndentation=m;function d(te,he,Te,Ve,Pe,ke,De){var Be;let lt=te.parent;for(;lt;){let ze=!0;if(Te){let gt=te.getStart(Pe);ze=gtTe.end}let tt=S(lt,te,Pe),we=tt.line===he.line||F(lt,te,he.line,Pe);if(ze){let gt=(Be=q(te,Pe))==null?void 0:Be[0],Qe=!!gt&&R(gt,Pe).line>tt.line,yt=re(te,Pe,De,Qe);if(yt!==-1||(yt=x(te,lt,he,we,Pe,De),yt!==-1))return yt+Ve}Ae(De,lt,te,Pe,ke)&&!we&&(Ve+=De.indentSize);let ft=L(lt,te,he.line,Pe);te=lt,lt=te.parent,he=ft?Pe.getLineAndCharacterOfPosition(te.getStart(Pe)):tt}return Ve+m(De)}function S(te,he,Te){let Ve=q(he,Te),Pe=Ve?Ve.pos:te.getStart(Te);return Te.getLineAndCharacterOfPosition(Pe)}function E(te,he,Te){let Ve=S0e(te);return Ve&&Ve.listItemIndex>0?ue(Ve.list.getChildren(),Ve.listItemIndex-1,he,Te):-1}function x(te,he,Te,Ve,Pe,ke){return(f_(te)||K3(te))&&(he.kind===307||!Ve)?ce(Te,Pe,ke):-1}let D;(te=>{te[te.Unknown=0]="Unknown",te[te.OpenBrace=1]="OpenBrace",te[te.CloseBrace=2]="CloseBrace"})(D||(D={}));function I(te,he,Te,Ve){let Pe=NE(te,he,Ve);if(!Pe)return 0;if(Pe.kind===19)return 1;if(Pe.kind===20){let ke=R(Pe,Ve).line;return Te===ke?2:0}return 0}function R(te,he){return he.getLineAndCharacterOfPosition(te.getStart(he))}function L(te,he,Te,Ve){if(!(to(te)&&xs(te.arguments,he)))return!1;let Pe=te.expression.getEnd();return Eo(Ve,Pe).line===Te}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=L;function F(te,he,Te,Ve){if(te.kind===245&&te.elseStatement===he){let Pe=Ma(te,93,Ve);return M.assert(Pe!==void 0),R(Pe,Ve).line===Te}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=F;function J(te,he,Te,Ve){if(VA(te)&&(he===te.whenTrue||he===te.whenFalse)){let Pe=Eo(Ve,te.condition.end).line;if(he===te.whenTrue)return Te===Pe;{let ke=R(te.whenTrue,Ve).line,De=Eo(Ve,te.whenTrue.end).line;return Pe===ke&&De===Te}}return!1}e.childIsUnindentedBranchOfConditionalExpression=J;function $(te,he,Te,Ve){if(Ig(te)){if(!te.arguments)return!1;let Pe=jn(te.arguments,lt=>lt.pos===he.pos);if(!Pe)return!1;let ke=te.arguments.indexOf(Pe);if(ke===0)return!1;let De=te.arguments[ke-1],Be=Eo(Ve,De.getEnd()).line;if(Te===Be)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=$;function q(te,he){return te.parent&&W(te.getStart(he),te.getEnd(),te.parent,he)}e.getContainingList=q;function ee(te,he,Te){return he&&W(te,te,he,Te)}function W(te,he,Te,Ve){switch(Te.kind){case 183:return Pe(Te.typeArguments);case 210:return Pe(Te.properties);case 209:return Pe(Te.elements);case 187:return Pe(Te.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Pe(Te.typeParameters)||Pe(Te.parameters);case 177:return Pe(Te.parameters);case 263:case 231:case 264:case 265:case 345:return Pe(Te.typeParameters);case 214:case 213:return Pe(Te.typeArguments)||Pe(Te.arguments);case 261:return Pe(Te.declarations);case 275:case 279:return Pe(Te.elements);case 206:case 207:return Pe(Te.elements)}function Pe(ke){return ke&&m8(pe(Te,ke,Ve),te,he)?ke:void 0}}function pe(te,he,Te){let Ve=te.getChildren(Te);for(let Pe=1;Pe=0&&he=0;De--){if(te[De].kind===28)continue;if(Te.getLineAndCharacterOfPosition(te[De].end).line!==ke.line)return ce(ke,Te,Ve);ke=R(te[De],Te)}return-1}function ce(te,he,Te){let Ve=he.getPositionOfLineAndCharacter(te.line,0);return le(Ve,Ve+te.character,he,Te)}function ne(te,he,Te,Ve){let Pe=0,ke=0;for(let De=te;De$3t});var H3t="providePostPasteEdits";function $3t(e,t,n,i,s,a,u,m){return{edits:bn.ChangeTracker.with({host:s,formatContext:u,preferences:a},S=>Y3t(e,t,n,i,s,a,u,m,S)),fixId:H3t}}function Y3t(e,t,n,i,s,a,u,m,d){let S;t.length!==n.length&&(S=t.length===1?t:[t.join(`
`)]);let E=[],x=e.text;for(let D=n.length-1;D>=0;D--){let{pos:I,end:R}=n[D];x=S?x.slice(0,I)+S[0]+x.slice(R):x.slice(0,I)+t[D]+x.slice(R)}M.checkDefined(s.runWithTemporaryFileUpdate).call(s,e.fileName,x,(D,I,R)=>{let L=P_.createImportAdder(R,D,a,s);if(i?.range){M.assert(i.range.length===t.length),i.range.forEach($=>{let q=i.file.statements,ee=Va(q,pe=>pe.end>$.pos);if(ee===-1)return;let W=Va(q,pe=>pe.end>=$.end,ee);W!==-1&&$.end<=q[W].getStart()&&W--,E.push(...q.slice(ee,W===-1?q.length:W+1))});let F=EV(i.file,E,I.getTypeChecker(),c1e(R,E,I.getTypeChecker()));M.assertIsDefined(I);let J=!pZ(e.fileName,I,s,!!i.file.commonJsModuleIndicator);Zve(i.file,F.targetFileImportsFromOldFile,d,J),u1e(i.file,F.oldImportsNeededByTargetFile,F.targetFileImportsFromOldFile,I.getTypeChecker(),D,L)}else{let F={sourceFile:R,program:I,cancellationToken:m,host:s,preferences:a,formatContext:u};qs(R,function J($){$e($)&&!I?.getTypeChecker().resolveName($.text,$,-1,!1)&&L.addImportForUnresolvedIdentifier(F,$,!0),$.forEachChild(J)})}L.writeFixes(d,td(i?i.file:e,a))}),n.forEach((D,I)=>{d.replaceRangeWithText(e,{pos:D.pos,end:D.end},S?S[0]:t[I])})}var zqe={};k(zqe,{ANONYMOUS:()=>nZ,AccessFlags:()=>Mle,AssertionLevel:()=>Wce,AssignmentDeclarationKind:()=>zle,AssignmentKind:()=>dfe,Associativity:()=>Efe,BreakpointResolver:()=>ree,BuilderFileEmit:()=>Qhe,BuilderProgramKind:()=>sye,BuilderState:()=>cg,CallHierarchy:()=>_k,CharacterCodes:()=>tue,CheckFlags:()=>Ile,CheckMode:()=>EK,ClassificationType:()=>uQ,ClassificationTypeNames:()=>_0e,CommentDirectiveType:()=>gle,Comparison:()=>We,CompletionInfoFlags:()=>i0e,CompletionTriggerKind:()=>cQ,Completions:()=>hk,ContainerFlags:()=>kge,ContextFlags:()=>Ele,Debug:()=>M,DiagnosticCategory:()=>m5,Diagnostics:()=>v,DocumentHighlights:()=>yV,ElementFlags:()=>Rle,EmitFlags:()=>gG,EmitHint:()=>oue,EmitOnly:()=>yle,EndOfLineState:()=>a0e,ExitStatus:()=>vle,ExportKind:()=>cve,Extension:()=>rue,ExternalEmitHelpers:()=>sue,FileIncludeKind:()=>oG,FilePreprocessingDiagnosticsKind:()=>hle,FileSystemEntryKind:()=>mue,FileWatcherEventKind:()=>fue,FindAllReferences:()=>lc,FlattenLevel:()=>ehe,FlowFlags:()=>d5,ForegroundColorEscapeSequences:()=>zhe,FunctionFlags:()=>Sfe,GeneratedIdentifierFlags:()=>sG,GetLiteralTextFlags:()=>P_e,GoToDefinition:()=>cD,HighlightSpanKind:()=>r0e,IdentifierNameMap:()=>FN,IdentifierNameMultiMap:()=>Hge,ImportKind:()=>ave,ImportsNotUsedAsValues:()=>Kle,IndentStyle:()=>n0e,IndexFlags:()=>Lle,IndexKind:()=>Ble,InferenceFlags:()=>Jle,InferencePriority:()=>Vle,InlayHintKind:()=>t0e,InlayHints:()=>Hee,InternalEmitFlags:()=>nue,InternalSymbolName:()=>wle,IntersectionFlags:()=>ble,InvalidatedProjectKind:()=>Nye,JSDocParsingMode:()=>_ue,JsDoc:()=>BT,JsTyping:()=>Zg,JsxEmit:()=>Yle,JsxFlags:()=>ple,JsxReferenceKind:()=>Fle,LanguageFeatureMinimumTarget:()=>iue,LanguageServiceMode:()=>Zye,LanguageVariant:()=>Zle,LexicalEnvironmentFlags:()=>cue,ListFormat:()=>lue,LogLevel:()=>rle,MapCode:()=>$ee,MemberOverrideStatus:()=>Sle,ModifierFlags:()=>nG,ModuleDetectionKind:()=>Wle,ModuleInstanceState:()=>Cge,ModuleKind:()=>E3,ModuleResolutionKind:()=>ew,ModuleSpecifierEnding:()=>bpe,NavigateTo:()=>Dve,NavigationBar:()=>wve,NewLineKind:()=>Xle,NodeBuilderFlags:()=>xle,NodeCheckFlags:()=>lG,NodeFactoryFlags:()=>$pe,NodeFlags:()=>rG,NodeResolutionFeatures:()=>mge,ObjectFlags:()=>_G,OperationCanceledException:()=>ZI,OperatorPrecedence:()=>xfe,OrganizeImports:()=>UT,OrganizeImportsMode:()=>aQ,OuterExpressionKinds:()=>aue,OutliningElementsCollector:()=>Xee,OutliningSpanKind:()=>s0e,OutputFileType:()=>o0e,PackageJsonAutoImportPreference:()=>Qye,PackageJsonDependencyGroup:()=>Xye,PatternMatchKind:()=>EZ,PollingInterval:()=>hG,PollingWatchKind:()=>$le,PragmaKindFlags:()=>uue,PrivateIdentifierKind:()=>sde,ProcessLevel:()=>ohe,ProgramUpdateLevel:()=>Bhe,QuotePreference:()=>M0e,RegularExpressionFlags:()=>dle,RelationComparisonResult:()=>iG,Rename:()=>nJ,ScriptElementKind:()=>l0e,ScriptElementKindModifier:()=>u0e,ScriptKind:()=>pG,ScriptSnapshot:()=>CU,ScriptTarget:()=>Qle,SemanticClassificationFormat:()=>e0e,SemanticMeaning:()=>f0e,SemicolonPreference:()=>lQ,SignatureCheckMode:()=>xK,SignatureFlags:()=>fG,SignatureHelp:()=>eL,SignatureInfo:()=>Xhe,SignatureKind:()=>jle,SmartSelectionRange:()=>ete,SnippetKind:()=>mG,StatisticType:()=>Vye,StructureIsReused:()=>aG,SymbolAccessibility:()=>kle,SymbolDisplay:()=>Wv,SymbolDisplayPartKind:()=>kU,SymbolFlags:()=>cG,SymbolFormatFlags:()=>Ale,SyntaxKind:()=>tG,SyntheticSymbolKind:()=>Ple,Ternary:()=>qle,ThrottledCancellationToken:()=>V1e,TokenClass:()=>c0e,TokenFlags:()=>mle,TransformFlags:()=>dG,TypeFacts:()=>bK,TypeFlags:()=>uG,TypeFormatFlags:()=>Cle,TypeMapKind:()=>Ule,TypePredicateKind:()=>Nle,TypeReferenceSerializationKind:()=>Dle,UnionReduction:()=>Tle,UpToDateStatusType:()=>bye,VarianceFlags:()=>Ole,Version:()=>Ym,VersionRange:()=>f5,WatchDirectoryFlags:()=>eue,WatchDirectoryKind:()=>Hle,WatchFileKind:()=>Gle,WatchLogLevel:()=>Vhe,WatchType:()=>Eu,accessPrivateIdentifier:()=>Qge,addDisposableResourceHelper:()=>Ode,addEmitFlags:()=>qg,addEmitHelper:()=>DA,addEmitHelpers:()=>x0,addInternalEmitFlags:()=>PA,addNodeFactoryPatcher:()=>a4e,addObjectAllocatorPatcher:()=>G6e,addRange:()=>On,addRelatedInfo:()=>lo,addSyntheticLeadingComment:()=>hO,addSyntheticTrailingComment:()=>Nj,addToSeen:()=>tm,advancedAsyncSuperHelper:()=>Oj,affectsDeclarationPathOptionDeclarations:()=>Lme,affectsEmitOptionDeclarations:()=>Mme,allKeysStartWithDot:()=>NB,altDirectorySeparator:()=>v5,and:()=>l5,append:()=>Ut,appendIfUnique:()=>Ga,arrayFrom:()=>Os,arrayIsEqualTo:()=>Jp,arrayIsHomogeneous:()=>Ipe,arrayIsSorted:()=>jW,arrayOf:()=>Uce,arrayReverseIterator:()=>Lo,arrayToMap:()=>CP,arrayToMultiMap:()=>h3,arrayToNumericMap:()=>Jce,arraysEqual:()=>Ub,assertType:()=>uOe,assign:()=>Mx,assignHelper:()=>pde,asyncDelegator:()=>mde,asyncGeneratorHelper:()=>dde,asyncSuperHelper:()=>wj,asyncValues:()=>gde,attachFileToDiagnostics:()=>vA,awaitHelper:()=>yO,awaiterHelper:()=>yde,base64decode:()=>Yfe,base64encode:()=>$fe,binarySearch:()=>gv,binarySearchKey:()=>UC,bindSourceFile:()=>Pge,breakIntoCharacterSpans:()=>bve,breakIntoWordSpans:()=>Eve,buildLinkParts:()=>z0e,buildOpts:()=>IM,buildOverload:()=>Hqe,bundlerModuleNameResolver:()=>gge,canBeConvertedToAsync:()=>NZ,canHaveDecorators:()=>bE,canHaveExportModifier:()=>rM,canHaveFlowNode:()=>PR,canHaveIllegalDecorators:()=>wY,canHaveIllegalModifiers:()=>gme,canHaveIllegalType:()=>O4e,canHaveIllegalTypeParameters:()=>mme,canHaveJSDoc:()=>NR,canHaveLocals:()=>Mh,canHaveModifiers:()=>Im,canHaveSymbol:()=>Qm,canIncludeBindAndCheckDiagnsotics:()=>tM,canJsonReportNoInputFiles:()=>BO,canProduceDiagnostics:()=>qB,canUsePropertyAccess:()=>J$,canWatchAffectingLocation:()=>pye,canWatchAtTypes:()=>fye,canWatchDirectoryOrFile:()=>aU,cartesianProduct:()=>ele,cast:()=>ao,chainBundle:()=>ag,chainDiagnosticMessages:()=>Bs,changeAnyExtension:()=>A3,changeCompilerHostLikeToUseCache:()=>i6,changeExtension:()=>Y1,changeFullExtension:()=>vue,changesAffectModuleResolution:()=>H5,changesAffectingProgramStructure:()=>T_e,characterToRegularExpressionFlag:()=>NG,childIsDecorated:()=>Nw,classElementOrClassElementParameterIsDecorated:()=>kH,classHasClassThisAssignment:()=>BK,classHasDeclaredOrExplicitlyAssignedName:()=>UK,classHasExplicitlyAssignedName:()=>UB,classOrConstructorParameterIsDecorated:()=>Av,classPrivateFieldGetHelper:()=>Dde,classPrivateFieldInHelper:()=>wde,classPrivateFieldSetHelper:()=>Ide,classicNameResolver:()=>Ege,classifier:()=>W1e,cleanExtendedConfigCache:()=>XB,clear:()=>$m,clearMap:()=>qf,clearSharedExtendedConfigFileWatcher:()=>ZK,climbPastPropertyAccess:()=>DU,climbPastPropertyOrElementAccess:()=>g0e,clone:()=>qce,cloneCompilerOptions:()=>NQ,closeFileWatcher:()=>Dm,closeFileWatcherOf:()=>Dd,codefix:()=>P_,collapseTextChangeRangesAcrossMultipleVersions:()=>Rue,collectExternalModuleInfo:()=>MK,combine:()=>Ss,combinePaths:()=>ii,commandLineOptionOfCustomType:()=>Vme,commentPragmas:()=>g5,commonOptionsWithBuild:()=>cB,commonPackageFolders:()=>gpe,compact:()=>un,compareBooleans:()=>XS,compareDataObjects:()=>h$,compareDiagnostics:()=>eO,compareDiagnosticsSkipRelatedInformation:()=>X9,compareEmitHelpers:()=>ade,compareNumberOfDirectorySeparators:()=>ZR,comparePaths:()=>f0,comparePathsCaseInsensitive:()=>OOe,comparePathsCaseSensitive:()=>wOe,comparePatternKeys:()=>yK,compareProperties:()=>Kce,compareStringsCaseInsensitive:()=>v3,compareStringsCaseInsensitiveEslintCompatible:()=>Gce,compareStringsCaseSensitive:()=>u_,compareStringsCaseSensitiveUI:()=>S3,compareTextSpans:()=>a5,compareValues:()=>tc,compileOnSaveCommandLineOption:()=>oB,compilerOptionsAffectDeclarationPath:()=>dpe,compilerOptionsAffectEmit:()=>ppe,compilerOptionsAffectSemanticDiagnostics:()=>fpe,compilerOptionsDidYouMeanDiagnostics:()=>fB,compilerOptionsIndicateEsModules:()=>LQ,compose:()=>cOe,computeCommonSourceDirectoryOfFilenames:()=>Jhe,computeLineAndCharacterOfPosition:()=>DP,computeLineOfPosition:()=>sw,computeLineStarts:()=>HC,computePositionOfLineAndCharacter:()=>x5,computeSignature:()=>oye,computeSignatureWithDiagnostics:()=>TX,computeSuggestionDiagnostics:()=>AZ,computedOptions:()=>Zl,concatenate:()=>ds,concatenateDiagnosticMessageChains:()=>cpe,configDirTemplateSubstitutionOptions:()=>Bme,configDirTemplateSubstitutionWatchOptions:()=>Ume,consumesNodeCoreModules:()=>cV,contains:()=>xs,containsIgnoredPath:()=>_O,containsObjectRestOrSpread:()=>kM,containsParseError:()=>JP,containsPath:()=>Cm,convertCompilerOptionsForTelemetry:()=>nge,convertCompilerOptionsFromJson:()=>q3e,convertJsonOption:()=>g2,convertToBase64:()=>Hfe,convertToJson:()=>RM,convertToObject:()=>Kme,convertToOptionsWithAbsolutePaths:()=>gB,convertToRelativePath:()=>nw,convertToTSConfig:()=>eK,convertTypeAcquisitionFromJson:()=>z3e,copyComments:()=>b2,copyEntries:()=>$5,copyLeadingComments:()=>ZN,copyProperties:()=>JW,copyTrailingAsLeadingComments:()=>k8,copyTrailingComments:()=>v6,couldStartTrivia:()=>xue,countWhere:()=>yy,createAbstractBuilder:()=>WMe,createAccessorPropertyBackingField:()=>MY,createAccessorPropertyGetRedirector:()=>xme,createAccessorPropertySetRedirector:()=>Cme,createBaseNodeFactory:()=>qpe,createBinaryExpressionTrampoline:()=>nB,createBindingHelper:()=>Ij,createBuildInfo:()=>HB,createBuilderProgram:()=>bX,createBuilderProgramUsingProgramBuildInfo:()=>uye,createBuilderStatusReporter:()=>gU,createCacheWithRedirects:()=>uK,createCacheableExportInfoMap:()=>dZ,createCachedDirectoryStructureHost:()=>YB,createClassNamedEvaluationHelperBlock:()=>she,createClassThisAssignmentBlock:()=>nhe,createClassifier:()=>xLe,createCommentDirectivesMap:()=>k_e,createCompilerDiagnostic:()=>Pc,createCompilerDiagnosticForInvalidCustomType:()=>Jme,createCompilerDiagnosticFromMessageChain:()=>K9,createCompilerHost:()=>qhe,createCompilerHostFromProgramHost:()=>JX,createCompilerHostWorker:()=>QB,createDetachedDiagnostic:()=>yA,createDiagnosticCollection:()=>qw,createDiagnosticForFileFromMessageChain:()=>bH,createDiagnosticForNode:()=>mn,createDiagnosticForNodeArray:()=>zP,createDiagnosticForNodeArrayFromMessageChain:()=>iR,createDiagnosticForNodeFromMessageChain:()=>Ay,createDiagnosticForNodeInSourceFile:()=>bd,createDiagnosticForRange:()=>V_e,createDiagnosticMessageChainFromDiagnostic:()=>U_e,createDiagnosticReporter:()=>nk,createDocumentPositionMapper:()=>Wge,createDocumentRegistry:()=>_ve,createDocumentRegistryInternal:()=>SZ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>AX,createEmitHelperFactory:()=>ode,createEmptyExports:()=>SM,createEvaluator:()=>Upe,createExpressionForJsxElement:()=>cme,createExpressionForJsxFragment:()=>lme,createExpressionForObjectLiteralElementLike:()=>ume,createExpressionForPropertyName:()=>AY,createExpressionFromEntityName:()=>TM,createExternalHelpersImportDeclarationIfNeeded:()=>NY,createFileDiagnostic:()=>bu,createFileDiagnosticFromMessageChain:()=>i9,createFlowNode:()=>zh,createForOfBindingStatement:()=>CY,createFutureSourceFile:()=>gV,createGetCanonicalFileName:()=>__,createGetIsolatedDeclarationErrors:()=>Nhe,createGetSourceFile:()=>iX,createGetSymbolAccessibilityDiagnosticForNode:()=>jv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Phe,createGetSymbolWalker:()=>Nge,createIncrementalCompilerHost:()=>mU,createIncrementalProgram:()=>Tye,createJsxFactoryExpression:()=>xY,createLanguageService:()=>J1e,createLanguageServiceSourceFile:()=>RV,createMemberAccessForPropertyName:()=>d2,createModeAwareCache:()=>wN,createModeAwareCacheKey:()=>qO,createModuleNotFoundChain:()=>Y5,createModuleResolutionCache:()=>ON,createModuleResolutionLoader:()=>fX,createModuleResolutionLoaderUsingGlobalCache:()=>hye,createModuleSpecifierResolutionHost:()=>ak,createMultiMap:()=>vd,createNameResolver:()=>H$,createNodeConverters:()=>Gpe,createNodeFactory:()=>oM,createOptionNameMap:()=>uB,createOverload:()=>pte,createPackageJsonImportFilter:()=>eD,createPackageJsonInfo:()=>oZ,createParenthesizerRules:()=>zpe,createPatternMatcher:()=>gve,createPrinter:()=>aS,createPrinterWithDefaults:()=>Fhe,createPrinterWithRemoveComments:()=>v2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>jhe,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>$B,createProgram:()=>r8,createProgramHost:()=>qX,createPropertyNameNodeForIdentifierOrLiteral:()=>Sj,createQueue:()=>y3,createRange:()=>Ed,createRedirectedBuilderProgram:()=>CX,createResolutionCache:()=>PX,createRuntimeTypeSerializer:()=>_he,createScanner:()=>Ey,createSemanticDiagnosticsBuilderProgram:()=>zMe,createSet:()=>qW,createSolutionBuilder:()=>Aye,createSolutionBuilderHost:()=>xye,createSolutionBuilderWithWatch:()=>kye,createSolutionBuilderWithWatchHost:()=>Cye,createSortedArray:()=>Rx,createSourceFile:()=>$A,createSourceMapGenerator:()=>Bge,createSourceMapSource:()=>_4e,createSuperAccessVariableStatement:()=>JB,createSymbolTable:()=>po,createSymlinkCache:()=>P$,createSyntacticTypeNodeBuilder:()=>$ye,createSystemWatchFunctions:()=>gue,createTextChange:()=>v8,createTextChangeFromStartLength:()=>zU,createTextChangeRange:()=>M3,createTextRangeFromNode:()=>wQ,createTextRangeFromSpan:()=>qU,createTextSpan:()=>Gu,createTextSpanFromBounds:()=>wl,createTextSpanFromNode:()=>gf,createTextSpanFromRange:()=>lS,createTextSpanFromStringLiteralLikeContent:()=>IQ,createTextWriter:()=>UR,createTokenRange:()=>p$,createTypeChecker:()=>Fge,createTypeReferenceDirectiveResolutionCache:()=>CB,createTypeReferenceResolutionLoader:()=>ZB,createWatchCompilerHost:()=>t8e,createWatchCompilerHostOfConfigFile:()=>zX,createWatchCompilerHostOfFilesAndCompilerOptions:()=>WX,createWatchFactory:()=>VX,createWatchHost:()=>UX,createWatchProgram:()=>GX,createWatchStatusReporter:()=>DX,createWriteFileMeasuringIO:()=>sX,declarationNameToString:()=>Ya,decodeMappings:()=>wK,decodedTextSpanIntersectsWith:()=>R3,decorateHelper:()=>cde,deduplicate:()=>w1,defaultIncludeSpec:()=>nK,defaultInitCompilerOptions:()=>HY,defaultMaximumTruncationLength:()=>bw,diagnosticCategoryName:()=>Bx,diagnosticToString:()=>IE,diagnosticsEqualityComparer:()=>Q9,directoryProbablyExists:()=>tg,directorySeparator:()=>bc,displayPart:()=>zf,displayPartsToString:()=>U8,disposeEmitNodes:()=>K$,disposeResourcesHelper:()=>Rde,documentSpansEqual:()=>qQ,dumpTracingLegend:()=>fle,elementAt:()=>Dl,elideNodes:()=>Eme,emitComments:()=>Lfe,emitDetachedComments:()=>Ffe,emitFiles:()=>XK,emitFilesAndReportErrors:()=>_U,emitFilesAndReportErrorsAndGetExitStatus:()=>BX,emitModuleKindIsNonNodeESM:()=>ej,emitNewLineBeforeLeadingCommentOfPosition:()=>Mfe,emitNewLineBeforeLeadingComments:()=>Ofe,emitNewLineBeforeLeadingCommentsOfPosition:()=>Rfe,emitResolverSkipsTypeChecking:()=>KK,emitSkippedWithNoDiagnostics:()=>yX,emptyArray:()=>ve,emptyFileSystemEntries:()=>R$,emptyMap:()=>lr,emptyOptions:()=>am,emptySet:()=>Rr,endsWith:()=>Wc,ensurePathIsNonModuleName:()=>Vx,ensureScriptKind:()=>uj,ensureTrailingDirectorySeparator:()=>vu,entityNameToString:()=>lp,enumerateInsertsAndDeletes:()=>_5,equalOwnProperties:()=>Vce,equateStringsCaseInsensitive:()=>KS,equateStringsCaseSensitive:()=>Lx,equateValues:()=>hv,esDecorateHelper:()=>_de,escapeJsxAttributeString:()=>QH,escapeLeadingUnderscores:()=>Uc,escapeNonAsciiString:()=>D9,escapeSnippetText:()=>_E,escapeString:()=>Uh,escapeTemplateSubstitution:()=>KH,evaluatorResult:()=>fu,every:()=>Oi,executeCommandLine:()=>L8e,expandPreOrPostfixIncrementOrDecrementExpression:()=>Xj,explainFiles:()=>RX,explainIfFileIsRedirectAndImpliedFormat:()=>MX,exportAssignmentIsAlias:()=>eN,exportStarHelper:()=>Nde,expressionResultIsUnused:()=>Ope,extend:()=>o5,extendsHelper:()=>vde,extensionFromPath:()=>oO,extensionIsTS:()=>gj,extensionsNotSupportingExtensionlessResolution:()=>dj,externalHelpersModuleNameText:()=>oT,factory:()=>U,fileExtensionIs:()=>wc,fileExtensionIsOneOf:()=>Il,fileIncludeReasonToDiagnostics:()=>jX,fileShouldUseJavaScriptRequire:()=>pZ,filter:()=>ti,filterMutate:()=>JI,filterSemanticDiagnostics:()=>nU,find:()=>jn,findAncestor:()=>Dr,findBestPatternMatch:()=>$W,findChildOfKind:()=>Ma,findComputedPropertyNameCacheAssignment:()=>iB,findConfigFile:()=>rX,findConstructorDeclaration:()=>sM,findContainingList:()=>MU,findDiagnosticForNode:()=>rve,findFirstNonJsxWhitespaceToken:()=>T0e,findIndex:()=>Va,findLast:()=>xm,findLastIndex:()=>dv,findListItemInfo:()=>S0e,findMap:()=>UI,findModifier:()=>KN,findNextToken:()=>NE,findPackageJson:()=>eve,findPackageJsons:()=>sZ,findPrecedingMatchingToken:()=>VU,findPrecedingToken:()=>su,findSuperStatementIndexPath:()=>FB,findTokenOnLeftOfPosition:()=>jU,findUseStrictPrologue:()=>PY,first:()=>Fo,firstDefined:()=>di,firstDefinedIterator:()=>ra,firstIterator:()=>g3,firstOrOnly:()=>uZ,firstOrUndefined:()=>Aa,firstOrUndefinedIterator:()=>Ph,fixupCompilerOptions:()=>DZ,flatMap:()=>To,flatMapIterator:()=>p3,flatMapToMutable:()=>L_,flatten:()=>rf,flattenCommaList:()=>Ame,flattenDestructuringAssignment:()=>y2,flattenDestructuringBinding:()=>CE,flattenDiagnosticMessageText:()=>Qg,forEach:()=>Et,forEachAncestor:()=>b_e,forEachAncestorDirectory:()=>Am,forEachChild:()=>qs,forEachChildRecursively:()=>HA,forEachEmittedFile:()=>GK,forEachEnclosingBlockScopeContainer:()=>F_e,forEachEntry:()=>Iu,forEachExternalModuleToImportFrom:()=>gZ,forEachImportClauseDeclaration:()=>ffe,forEachKey:()=>m0,forEachLeadingCommentRange:()=>N3,forEachNameInAccessChainWalkingLeft:()=>npe,forEachNameOfDefaultExport:()=>hZ,forEachPropertyAssignment:()=>HP,forEachResolvedProjectReference:()=>dX,forEachReturnStatement:()=>Cv,forEachRight:()=>pi,forEachTrailingCommentRange:()=>D3,forEachTsConfigPropArray:()=>lR,forEachUnique:()=>WQ,forEachYieldExpression:()=>H_e,forSomeAncestorDirectory:()=>z6e,formatColorAndReset:()=>AE,formatDiagnostic:()=>oX,formatDiagnostics:()=>bMe,formatDiagnosticsWithColorAndContext:()=>Hhe,formatGeneratedName:()=>xT,formatGeneratedNamePart:()=>PN,formatLocation:()=>aX,formatMessage:()=>SA,formatStringFromArgs:()=>Dy,formatting:()=>zl,fullTripleSlashAMDReferencePathRegEx:()=>G_e,fullTripleSlashReferencePathRegEx:()=>W_e,generateDjb2Hash:()=>tw,generateTSConfig:()=>Qme,generatorHelper:()=>Ade,getAdjustedReferenceLocation:()=>EQ,getAdjustedRenameLocation:()=>FU,getAliasDeclarationFromName:()=>BH,getAllAccessorDeclarations:()=>W1,getAllDecoratorsOfClass:()=>FK,getAllDecoratorsOfClassElement:()=>BB,getAllJSDocTags:()=>w5,getAllJSDocTagsOfKind:()=>t6e,getAllKeys:()=>iOe,getAllProjectOutputs:()=>GB,getAllSuperTypeNodes:()=>Fw,getAllowJSCompilerOption:()=>H1,getAllowSyntheticDefaultImports:()=>TA,getAncestor:()=>pT,getAnyExtensionFromPath:()=>NP,getAreDeclarationMapsEnabled:()=>Z9,getAssignedExpandoInitializer:()=>sA,getAssignedName:()=>D5,getAssignedNameOfIdentifier:()=>ZO,getAssignmentDeclarationKind:()=>ll,getAssignmentDeclarationPropertyAccessKind:()=>ER,getAssignmentTargetKind:()=>fT,getAutomaticTypeDirectiveNames:()=>EB,getBaseFileName:()=>Ul,getBinaryOperatorPrecedence:()=>jR,getBuildInfo:()=>QK,getBuildInfoFileVersionMap:()=>xX,getBuildInfoText:()=>Mhe,getBuildOrderFromAnyBuildOrder:()=>o8,getBuilderCreationParameters:()=>sU,getBuilderFileEmit:()=>cS,getCanonicalDiagnostic:()=>J_e,getCheckFlags:()=>ul,getClassExtendsHeritageElement:()=>nE,getClassLikeDeclarationOfSymbol:()=>T0,getCombinedLocalAndExportSymbolFlags:()=>lN,getCombinedModifierFlags:()=>eT,getCombinedNodeFlags:()=>p0,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>MG,getCommentRange:()=>zg,getCommonSourceDirectory:()=>n6,getCommonSourceDirectoryOfConfig:()=>rk,getCompilerOptionValue:()=>nj,getCompilerOptionsDiffValue:()=>Xme,getConditions:()=>sS,getConfigFileParsingDiagnostics:()=>kE,getConstantValue:()=>Qpe,getContainerFlags:()=>SK,getContainerNode:()=>T2,getContainingClass:()=>Lu,getContainingClassExcludingClassDecorators:()=>f9,getContainingClassStaticBlock:()=>nfe,getContainingFunction:()=>Ip,getContainingFunctionDeclaration:()=>rfe,getContainingFunctionOrClassStaticBlock:()=>_9,getContainingNodeArray:()=>Rpe,getContainingObjectLiteralElement:()=>V8,getContextualTypeFromParent:()=>eV,getContextualTypeFromParentOrAncestorTypeNode:()=>LU,getCurrentTime:()=>s8,getDeclarationDiagnostics:()=>Dhe,getDeclarationEmitExtensionForPath:()=>O9,getDeclarationEmitOutputFilePath:()=>Pfe,getDeclarationEmitOutputFilePathWorker:()=>w9,getDeclarationFileExtension:()=>BY,getDeclarationFromName:()=>Lw,getDeclarationModifierFlagsFromSymbol:()=>Cd,getDeclarationOfKind:()=>kc,getDeclarationsOfKind:()=>v_e,getDeclaredExpandoInitializer:()=>ww,getDecorators:()=>F1,getDefaultCompilerOptions:()=>OV,getDefaultFormatCodeSettings:()=>AU,getDefaultLibFileName:()=>w3,getDefaultLibFilePath:()=>q1e,getDefaultLikeExportInfo:()=>hV,getDefaultLikeExportNameFromDeclaration:()=>uV,getDiagnosticText:()=>wf,getDiagnosticsWithinSpan:()=>nve,getDirectoryPath:()=>yi,getDirectoryToWatchFailedLookupLocation:()=>kX,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>mye,getDocumentPositionMapper:()=>CZ,getDocumentSpansEqualityComparer:()=>zQ,getESModuleInterop:()=>Iy,getEditsForFileRename:()=>pve,getEffectiveBaseTypeNode:()=>Lg,getEffectiveConstraintOfTypeParameter:()=>MP,getEffectiveContainerForJSDocTemplateTag:()=>C9,getEffectiveImplementsTypeNodes:()=>tN,getEffectiveInitializer:()=>vR,getEffectiveJSDocHost:()=>_T,getEffectiveModifierFlags:()=>V_,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Vfe,getEffectiveModifierFlagsNoCache:()=>Jfe,getEffectiveReturnTypeNode:()=>_p,getEffectiveSetAccessorTypeAnnotationNode:()=>wfe,getEffectiveTypeAnnotationNode:()=>Vl,getEffectiveTypeParameterDeclarations:()=>j1,getEffectiveTypeRoots:()=>JO,getElementOrPropertyAccessArgumentExpressionOrName:()=>x9,getElementOrPropertyAccessName:()=>g0,getElementsOfBindingOrAssignmentPattern:()=>kN,getEmitDeclarations:()=>Hp,getEmitFlags:()=>Ko,getEmitHelpers:()=>Dj,getEmitModuleDetectionKind:()=>lpe,getEmitModuleKind:()=>J_,getEmitModuleResolutionKind:()=>cf,getEmitScriptTarget:()=>Qo,getEmitStandardClassFields:()=>A$,getEnclosingBlockScopeContainer:()=>Zm,getEnclosingContainer:()=>n9,getEncodedSemanticClassifications:()=>yZ,getEncodedSyntacticClassifications:()=>vZ,getEndLinePosition:()=>Z3,getEntityNameFromTypeNode:()=>fR,getEntrypointsFromPackageJsonInfo:()=>mK,getErrorCountForSummary:()=>lU,getErrorSpanForNode:()=>Yx,getErrorSummaryText:()=>wX,getEscapedTextOfIdentifierOrLiteral:()=>Uw,getEscapedTextOfJsxAttributeName:()=>dO,getEscapedTextOfJsxNamespacedName:()=>CA,getExpandoInitializer:()=>lT,getExportAssignmentExpression:()=>UH,getExportInfoMap:()=>O8,getExportNeedsImportStarHelper:()=>Gge,getExpressionAssociativity:()=>HH,getExpressionPrecedence:()=>Jw,getExternalHelpersModuleName:()=>eB,getExternalModuleImportEqualsDeclarationExpression:()=>Dw,getExternalModuleName:()=>oA,getExternalModuleNameFromDeclaration:()=>Afe,getExternalModuleNameFromPath:()=>t$,getExternalModuleNameLiteral:()=>GA,getExternalModuleRequireArgument:()=>NH,getFallbackOptions:()=>QM,getFileEmitOutput:()=>Khe,getFileMatcherPatterns:()=>lj,getFileNamesFromConfigSpecs:()=>UO,getFileWatcherEventKind:()=>SG,getFilesInErrorForSummary:()=>uU,getFirstConstructorWithBody:()=>Py,getFirstIdentifier:()=>pp,getFirstNonSpaceCharacterPosition:()=>H0e,getFirstProjectOutput:()=>YK,getFixableErrorSpanExpression:()=>cZ,getFormatCodeSettingsForWriting:()=>dV,getFullWidth:()=>Q3,getFunctionFlags:()=>Rl,getHeritageClause:()=>RR,getHostSignatureFromJSDoc:()=>uT,getIdentifierAutoGenerate:()=>d4e,getIdentifierGeneratedImportReference:()=>ide,getIdentifierTypeArguments:()=>i2,getImmediatelyInvokedFunctionExpression:()=>Qb,getImpliedNodeFormatForFile:()=>t8,getImpliedNodeFormatForFileWorker:()=>rU,getImportNeedsImportDefaultHelper:()=>RK,getImportNeedsImportStarHelper:()=>MB,getIndentSize:()=>sN,getIndentString:()=>I9,getInferredLibraryNameResolveFrom:()=>tU,getInitializedVariables:()=>Xw,getInitializerOfBinaryExpression:()=>wH,getInitializerOfBindingOrAssignmentElement:()=>xM,getInterfaceBaseTypeNodes:()=>jw,getInternalEmitFlags:()=>Pm,getInvokedExpression:()=>m9,getIsolatedModules:()=>Ad,getJSDocAugmentsTag:()=>zue,getJSDocClassTag:()=>jG,getJSDocCommentRanges:()=>xH,getJSDocCommentsAndTags:()=>RH,getJSDocDeprecatedTag:()=>BG,getJSDocDeprecatedTagNoCache:()=>Xue,getJSDocEnumTag:()=>UG,getJSDocHost:()=>tE,getJSDocImplementsTags:()=>Wue,getJSDocOverloadTags:()=>LH,getJSDocOverrideTagNoCache:()=>Kue,getJSDocParameterTags:()=>RP,getJSDocParameterTagsNoCache:()=>Uue,getJSDocPrivateTag:()=>KOe,getJSDocPrivateTagNoCache:()=>Hue,getJSDocProtectedTag:()=>XOe,getJSDocProtectedTagNoCache:()=>$ue,getJSDocPublicTag:()=>YOe,getJSDocPublicTagNoCache:()=>Gue,getJSDocReadonlyTag:()=>QOe,getJSDocReadonlyTagNoCache:()=>Yue,getJSDocReturnTag:()=>Que,getJSDocReturnType:()=>F3,getJSDocRoot:()=>ZP,getJSDocSatisfiesExpressionType:()=>z$,getJSDocSatisfiesTag:()=>VG,getJSDocTags:()=>nT,getJSDocTagsNoCache:()=>e6e,getJSDocTemplateTag:()=>ZOe,getJSDocThisTag:()=>I5,getJSDocType:()=>rT,getJSDocTypeAliasName:()=>IY,getJSDocTypeAssertionType:()=>MO,getJSDocTypeParameterDeclarations:()=>j9,getJSDocTypeParameterTags:()=>Vue,getJSDocTypeParameterTagsNoCache:()=>Jue,getJSDocTypeTag:()=>tT,getJSXImplicitImportBase:()=>sj,getJSXRuntimeImport:()=>oj,getJSXTransformEnabled:()=>ij,getKeyForCompilerOptions:()=>lK,getLanguageVariant:()=>YR,getLastChild:()=>y$,getLeadingCommentRanges:()=>Ty,getLeadingCommentRangesOfNode:()=>EH,getLeftmostAccessExpression:()=>uN,getLeftmostExpression:()=>_N,getLibraryNameFromLibFileName:()=>mX,getLineAndCharacterOfPosition:()=>Eo,getLineInfo:()=>IK,getLineOfLocalPosition:()=>zw,getLineOfLocalPositionFromLineMap:()=>r2,getLineStartPositionForPosition:()=>cm,getLineStarts:()=>vy,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>epe,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Zfe,getLinesBetweenPositions:()=>ow,getLinesBetweenRangeEndAndRangeStart:()=>d$,getLinesBetweenRangeEndPositions:()=>q6e,getLiteralText:()=>N_e,getLocalNameForExternalImport:()=>AN,getLocalSymbolForExportDefault:()=>$w,getLocaleSpecificMessage:()=>Ls,getLocaleTimeString:()=>i8,getMappedContextSpan:()=>GQ,getMappedDocumentSpan:()=>KU,getMappedLocation:()=>g6,getMatchedFileSpec:()=>LX,getMatchedIncludeSpec:()=>FX,getMeaningFromDeclaration:()=>PU,getMeaningFromLocation:()=>S2,getMembersOfDeclaration:()=>$_e,getModeForFileReference:()=>ZM,getModeForResolutionAtIndex:()=>$he,getModeForUsageLocation:()=>lX,getModifiedTime:()=>WC,getModifiers:()=>qb,getModuleInstanceState:()=>D0,getModuleNameStringLiteralAt:()=>n8,getModuleSpecifierEndingPreference:()=>xpe,getModuleSpecifierResolverHost:()=>FQ,getNameForExportedSymbol:()=>lV,getNameFromImportAttribute:()=>xj,getNameFromIndexInfo:()=>j_e,getNameFromPropertyName:()=>T8,getNameOfAccessExpression:()=>S$,getNameOfCompilerOptionValue:()=>tK,getNameOfDeclaration:()=>Ns,getNameOfExpando:()=>DH,getNameOfJSDocTypedef:()=>Bue,getNameOfScriptTarget:()=>rj,getNameOrArgument:()=>bR,getNameTable:()=>tee,getNamesForExportedSymbol:()=>ive,getNamespaceDeclarationNode:()=>XP,getNewLineCharacter:()=>wv,getNewLineKind:()=>w8,getNewLineOrDefaultFromHost:()=>Jv,getNewTargetContainer:()=>sfe,getNextJSDocCommentLocation:()=>MH,getNodeChildren:()=>bY,getNodeForGeneratedName:()=>AM,getNodeId:()=>Sa,getNodeKind:()=>PE,getNodeModifiers:()=>p6,getNodeModulePathParts:()=>Tj,getNonAssignedNameOfDeclaration:()=>N5,getNonAssignmentOperatorForCompoundAssignment:()=>KO,getNonAugmentationDeclaration:()=>gH,getNonDecoratorTokenPosOfNode:()=>uH,getNormalizedAbsolutePath:()=>Cs,getNormalizedAbsolutePathWithoutRoot:()=>xG,getNormalizedPathComponents:()=>C3,getObjectFlags:()=>Qn,getOperator:()=>YH,getOperatorAssociativity:()=>$H,getOperatorPrecedence:()=>FR,getOptionFromName:()=>YY,getOptionsForLibraryResolution:()=>_K,getOptionsNameMap:()=>DN,getOrCreateEmitNode:()=>d_,getOrCreateExternalHelpersModuleNameIfNeeded:()=>dme,getOrUpdate:()=>mv,getOriginalNode:()=>Bc,getOriginalNodeId:()=>mf,getOriginalSourceFile:()=>w6e,getOutputDeclarationFileName:()=>BN,getOutputDeclarationFileNameWorker:()=>HK,getOutputExtension:()=>WB,getOutputFileNames:()=>SMe,getOutputJSFileNameWorker:()=>$K,getOutputPathsFor:()=>r6,getOutputPathsForBundle:()=>zB,getOwnEmitOutputFilePath:()=>kfe,getOwnKeys:()=>Pg,getOwnValues:()=>VC,getPackageJsonInfo:()=>DT,getPackageJsonTypesVersionsPaths:()=>bB,getPackageJsonsVisibleToFile:()=>tve,getPackageNameFromTypesPackageName:()=>GO,getPackageScopeForPath:()=>WO,getParameterSymbolFromJSDoc:()=>DR,getParameterTypeNode:()=>s4e,getParentNodeInSpan:()=>E8,getParseTreeNode:()=>Ps,getParsedCommandLineOfConfigFile:()=>wM,getPathComponents:()=>yu,getPathComponentsRelativeTo:()=>kG,getPathFromPathComponents:()=>_0,getPathUpdater:()=>bZ,getPathsBasePath:()=>R9,getPatternFromSpec:()=>vpe,getPendingEmitKind:()=>qN,getPositionOfLineAndCharacter:()=>k3,getPossibleGenericSignatures:()=>CQ,getPossibleOriginalInputExtensionForExtension:()=>Nfe,getPossibleTypeArgumentsInfo:()=>AQ,getPreEmitDiagnostics:()=>TMe,getPrecedingNonSpaceCharacterPosition:()=>QU,getPrivateIdentifier:()=>jK,getProperties:()=>LK,getProperty:()=>s5,getPropertyArrayElementValue:()=>tfe,getPropertyAssignmentAliasLikeExpression:()=>vfe,getPropertyNameForPropertyNameNode:()=>e2,getPropertyNameForUniqueESSymbol:()=>D6e,getPropertyNameFromType:()=>nm,getPropertyNameOfBindingOrAssignmentElement:()=>DY,getPropertySymbolFromBindingElement:()=>YU,getPropertySymbolsFromContextualType:()=>MV,getQuoteFromPreference:()=>BQ,getQuotePreference:()=>td,getRangesWhere:()=>zI,getRefactorContextSpan:()=>ck,getReferencedFileLocation:()=>o6,getRegexFromPattern:()=>$1,getRegularExpressionForWildcard:()=>rO,getRegularExpressionsForWildcards:()=>aj,getRelativePathFromDirectory:()=>Km,getRelativePathFromFile:()=>iw,getRelativePathToDirectoryOrUrl:()=>GC,getRenameLocation:()=>A8,getReplacementSpanForContextToken:()=>DQ,getResolutionDiagnostic:()=>SX,getResolutionModeOverride:()=>UN,getResolveJsonModule:()=>cE,getResolvePackageJsonExports:()=>x$,getResolvePackageJsonImports:()=>C$,getResolvedExternalModuleName:()=>e$,getRestIndicatorOfBindingOrAssignmentElement:()=>tB,getRestParameterElementType:()=>CH,getRightMostAssignedExpression:()=>SR,getRootDeclaration:()=>jg,getRootDirectoryOfResolutionCache:()=>gye,getRootLength:()=>Oh,getRootPathSplitLength:()=>YMe,getScriptKind:()=>XQ,getScriptKindFromFileName:()=>_j,getScriptTargetFeatures:()=>_H,getSelectedEffectiveModifierFlags:()=>pA,getSelectedSyntacticModifierFlags:()=>Bfe,getSemanticClassifications:()=>lve,getSemanticJsxChildren:()=>nN,getSetAccessorTypeAnnotationNode:()=>Dfe,getSetAccessorValueParameter:()=>aN,getSetExternalModuleIndicator:()=>KR,getShebang:()=>A5,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>OH,getSingleVariableOfVariableStatement:()=>lA,getSnapshotText:()=>ok,getSnippetElement:()=>X$,getSourceFileOfModule:()=>X5,getSourceFileOfNode:()=>Jr,getSourceFilePathInNewDir:()=>L9,getSourceFilePathInNewDirWorker:()=>F9,getSourceFileVersionAsHashFromText:()=>fU,getSourceFilesToEmit:()=>M9,getSourceMapRange:()=>Rv,getSourceMapper:()=>Cve,getSourceTextOfNodeFromSourceFile:()=>$b,getSpanOfTokenAtPosition:()=>jh,getSpellingSuggestion:()=>Fx,getStartPositionOfLine:()=>q1,getStartPositionOfRange:()=>Kw,getStartsOnNewLine:()=>gO,getStaticPropertiesAndClassStaticBlock:()=>jB,getStrictOptionValue:()=>q_,getStringComparer:()=>AP,getSubPatternFromSpec:()=>cj,getSuperCallFromStatement:()=>LB,getSuperContainer:()=>uR,getSupportedCodeFixes:()=>ZZ,getSupportedExtensions:()=>iO,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>QR,getSwitchedType:()=>rZ,getSymbolId:()=>Po,getSymbolNameForPrivateIdentifier:()=>MR,getSymbolParentOrFail:()=>_V,getSymbolTarget:()=>QQ,getSyntacticClassifications:()=>uve,getSyntacticModifierFlags:()=>Dv,getSyntacticModifierFlagsNoCache:()=>o$,getSynthesizedDeepClone:()=>ka,getSynthesizedDeepCloneWithReplacements:()=>C8,getSynthesizedDeepClones:()=>DE,getSynthesizedDeepClonesWithReplacements:()=>ZQ,getSyntheticLeadingComments:()=>gN,getSyntheticTrailingComments:()=>uM,getTargetLabel:()=>IU,getTargetOfBindingOrAssignmentElement:()=>iS,getTemporaryModuleResolutionState:()=>zO,getTextOfConstantValue:()=>D_e,getTextOfIdentifierOrLiteral:()=>Zd,getTextOfJSDocComment:()=>B3,getTextOfJsxAttributeName:()=>iM,getTextOfJsxNamespacedName:()=>mO,getTextOfNode:()=>Hc,getTextOfNodeFromSourceText:()=>Cw,getTextOfPropertyName:()=>rA,getThisContainer:()=>of,getThisParameter:()=>iE,getTokenAtPosition:()=>Ki,getTokenPosOfNode:()=>aT,getTokenSourceMapRange:()=>f4e,getTouchingPropertyName:()=>Of,getTouchingToken:()=>$N,getTrailingCommentRanges:()=>L1,getTrailingSemicolonDeferringWriter:()=>ZH,getTransformFlagsSubtreeExclusions:()=>Ype,getTransformers:()=>Ohe,getTsBuildInfoEmitOutputFilePath:()=>Bv,getTsConfigObjectLiteralExpression:()=>Pw,getTsConfigPropArrayElementValue:()=>u9,getTypeAnnotationNode:()=>Ife,getTypeArgumentOrTypeParameterList:()=>N0e,getTypeKeywordOfTypeOnlyImport:()=>JQ,getTypeNode:()=>rde,getTypeNodeIfAccessible:()=>T6,getTypeParameterFromJsDoc:()=>pfe,getTypeParameterOwner:()=>WOe,getTypesPackageName:()=>DB,getUILocale:()=>$ce,getUniqueName:()=>E2,getUniqueSymbolId:()=>G0e,getUseDefineForClassFields:()=>XR,getWatchErrorSummaryDiagnosticMessage:()=>IX,getWatchFactory:()=>tX,group:()=>WI,groupBy:()=>VW,guessIndentation:()=>h_e,handleNoEmitOptions:()=>vX,handleWatchOptionsConfigDirTemplateSubstitution:()=>hB,hasAbstractModifier:()=>aE,hasAccessorModifier:()=>Bg,hasAmbientModifier:()=>s$,hasChangesInResolutions:()=>aH,hasChildOfKind:()=>g8,hasContextSensitiveParameters:()=>vj,hasDecorators:()=>Gp,hasDocComment:()=>k0e,hasDynamicName:()=>y0,hasEffectiveModifier:()=>fp,hasEffectiveModifiers:()=>i$,hasEffectiveReadonlyModifier:()=>Ww,hasExtension:()=>PP,hasIndexSignature:()=>tZ,hasInferredType:()=>Jpe,hasInitializer:()=>bv,hasInvalidEscape:()=>XH,hasJSDocNodes:()=>Np,hasJSDocParameterTags:()=>que,hasJSFileExtension:()=>wy,hasJsonModuleEmitEnabled:()=>tj,hasOnlyExpressionInitializer:()=>Hx,hasOverrideModifier:()=>B9,hasPossibleExternalModuleReference:()=>L_e,hasProperty:()=>Ha,hasPropertyAccessExpressionWithName:()=>_8,hasQuestionToken:()=>cA,hasRecordedExternalHelpers:()=>pme,hasResolutionModeOverride:()=>Bpe,hasRestParameter:()=>nH,hasScopeMarker:()=>l_e,hasStaticModifier:()=>Jl,hasSyntacticModifier:()=>_i,hasSyntacticModifiers:()=>jfe,hasTSFileExtension:()=>EA,hasTabstop:()=>Lpe,hasTrailingDirectorySeparator:()=>yv,hasType:()=>z5,hasTypeArguments:()=>C6e,hasZeroOrOneAsteriskCharacter:()=>k$,helperString:()=>eY,hostGetCanonicalFileName:()=>Nv,hostUsesCaseSensitiveFileNames:()=>oN,idText:()=>In,identifierIsThisKeyword:()=>n$,identifierToKeywordKind:()=>Jx,identity:()=>ec,identitySourceMapConsumer:()=>OK,ignoreSourceNewlines:()=>Z$,ignoredPaths:()=>y5,importDefaultHelper:()=>Pde,importFromModuleSpecifier:()=>Rw,importStarHelper:()=>tY,indexOfAnyCharCode:()=>VI,indexOfNode:()=>qP,indicesOf:()=>Ox,inferredTypesContainingFile:()=>s6,injectClassNamedEvaluationHelperBlockIfMissing:()=>VB,injectClassThisAssignmentIfMissing:()=>ihe,insertImports:()=>VQ,insertLeadingStatement:()=>N4e,insertSorted:()=>u0,insertStatementAfterCustomPrologue:()=>$x,insertStatementAfterStandardPrologue:()=>g6e,insertStatementsAfterCustomPrologue:()=>cH,insertStatementsAfterStandardPrologue:()=>Cy,intersperse:()=>Ef,intrinsicTagNameToString:()=>W$,introducesArgumentsExoticObject:()=>Q_e,inverseJsxOptionMap:()=>DM,isAbstractConstructorSymbol:()=>tpe,isAbstractModifier:()=>Ude,isAccessExpression:()=>ac,isAccessibilityModifier:()=>PQ,isAccessor:()=>U1,isAccessorModifier:()=>Jde,isAliasSymbolDeclaration:()=>k6e,isAliasableExpression:()=>OR,isAmbientModule:()=>U_,isAmbientPropertyDeclaration:()=>yH,isAnonymousFunctionDefinition:()=>Vw,isAnyDirectorySeparator:()=>TG,isAnyImportOrBareOrAccessedRequire:()=>R_e,isAnyImportOrReExport:()=>rR,isAnyImportOrRequireStatement:()=>M_e,isAnyImportSyntax:()=>tA,isAnySupportedFileExtension:()=>n4e,isApplicableVersionedTypesKey:()=>BM,isArgumentExpressionOfElementAccess:()=>hQ,isArray:()=>Ms,isArrayBindingElement:()=>j5,isArrayBindingOrAssignmentElement:()=>G3,isArrayBindingOrAssignmentPattern:()=>XG,isArrayBindingPattern:()=>Fv,isArrayLiteralExpression:()=>Ku,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>Vv,isArrayTypeNode:()=>gM,isArrowFunction:()=>fc,isAsExpression:()=>EO,isAssertClause:()=>$de,isAssertEntry:()=>T4e,isAssertionExpression:()=>sT,isAssertsKeyword:()=>jde,isAssignmentDeclaration:()=>Iw,isAssignmentExpression:()=>Tu,isAssignmentOperator:()=>v0,isAssignmentPattern:()=>Sw,isAssignmentTarget:()=>Pv,isAsteriskToken:()=>pM,isAsyncFunction:()=>Bw,isAsyncModifier:()=>SO,isAutoAccessorPropertyDeclaration:()=>Cf,isAwaitExpression:()=>eS,isAwaitKeyword:()=>oY,isBigIntLiteral:()=>fM,isBinaryExpression:()=>Dn,isBinaryOperatorToken:()=>bme,isBindableObjectDefinePropertyCall:()=>Qx,isBindableStaticAccessExpression:()=>eE,isBindableStaticElementAccessExpression:()=>E9,isBindableStaticNameExpression:()=>Zx,isBindingElement:()=>Zo,isBindingElementOfBareOrAccessedRequire:()=>cfe,isBindingName:()=>Wx,isBindingOrAssignmentElement:()=>i_e,isBindingOrAssignmentPattern:()=>z3,isBindingPattern:()=>$s,isBlock:()=>Js,isBlockLike:()=>rD,isBlockOrCatchScoped:()=>fH,isBlockScope:()=>vH,isBlockScopedContainerTopLevel:()=>O_e,isBooleanLiteral:()=>vw,isBreakOrContinueStatement:()=>dw,isBreakStatement:()=>y4e,isBuild:()=>Jye,isBuildInfoFile:()=>Rhe,isBuilderProgram:()=>vye,isBundle:()=>Xde,isCallChain:()=>qx,isCallExpression:()=>to,isCallExpressionTarget:()=>_Q,isCallLikeExpression:()=>Hb,isCallLikeOrFunctionLikeExpression:()=>QG,isCallOrNewExpression:()=>Ig,isCallOrNewExpressionTarget:()=>fQ,isCallSignatureDeclaration:()=>LA,isCallToHelper:()=>vO,isCaseBlock:()=>PO,isCaseClause:()=>TN,isCaseKeyword:()=>qde,isCaseOrDefaultClause:()=>J5,isCatchClause:()=>TE,isCatchClauseVariableDeclaration:()=>Mpe,isCatchClauseVariableDeclarationOrBindingElement:()=>pH,isCheckJsEnabledForFile:()=>aO,isChildOfNodeWithKind:()=>y6e,isCircularBuildOrder:()=>ik,isClassDeclaration:()=>ru,isClassElement:()=>_u,isClassExpression:()=>tu,isClassInstanceProperty:()=>r_e,isClassLike:()=>vi,isClassMemberModifier:()=>$G,isClassNamedEvaluationHelperBlock:()=>tk,isClassOrTypeElement:()=>F5,isClassStaticBlockDeclaration:()=>$c,isClassThisAssignmentBlock:()=>QO,isCollapsedRange:()=>J6e,isColonToken:()=>Lde,isCommaExpression:()=>bM,isCommaListExpression:()=>CO,isCommaSequence:()=>RO,isCommaToken:()=>Mde,isComment:()=>JU,isCommonJsExportPropertyAssignment:()=>c9,isCommonJsExportedExpression:()=>K_e,isCompoundAssignment:()=>YO,isComputedNonLiteralName:()=>nR,isComputedPropertyName:()=>Go,isConciseBody:()=>U5,isConditionalExpression:()=>VA,isConditionalTypeNode:()=>dE,isConstAssertion:()=>G$,isConstTypeReference:()=>Xm,isConstructSignatureDeclaration:()=>mM,isConstructorDeclaration:()=>Vc,isConstructorTypeNode:()=>hN,isContextualKeyword:()=>k9,isContinueStatement:()=>h4e,isCustomPrologue:()=>cR,isDebuggerStatement:()=>v4e,isDeclaration:()=>f_,isDeclarationBindingElement:()=>q3,isDeclarationFileName:()=>ju,isDeclarationName:()=>Bh,isDeclarationNameOfEnumOrNamespace:()=>m$,isDeclarationReadonly:()=>sR,isDeclarationStatement:()=>p_e,isDeclarationWithTypeParameterChildren:()=>TH,isDeclarationWithTypeParameters:()=>SH,isDecorator:()=>pu,isDecoratorTarget:()=>d0e,isDefaultClause:()=>DO,isDefaultImport:()=>aA,isDefaultModifier:()=>Fj,isDefaultedExpandoInitializer:()=>lfe,isDeleteExpression:()=>Wde,isDeleteTarget:()=>jH,isDeprecatedDeclaration:()=>fV,isDestructuringAssignment:()=>Iv,isDiagnosticWithLocation:()=>aZ,isDiskPathRoot:()=>bG,isDoStatement:()=>g4e,isDocumentRegistryEntry:()=>R8,isDotDotDotToken:()=>Mj,isDottedName:()=>zR,isDynamicName:()=>N9,isESSymbolIdentifier:()=>I6e,isEffectiveExternalModule:()=>eA,isEffectiveModuleDeclaration:()=>w_e,isEffectiveStrictModeSourceFile:()=>hH,isElementAccessChain:()=>JG,isElementAccessExpression:()=>cc,isEmittedFileOfProgram:()=>Uhe,isEmptyArrayLiteral:()=>Gfe,isEmptyBindingElement:()=>Lue,isEmptyBindingPattern:()=>Mue,isEmptyObjectLiteral:()=>_$,isEmptyStatement:()=>uY,isEmptyStringLiteral:()=>PH,isEntityName:()=>xf,isEntityNameExpression:()=>nc,isEnumConst:()=>Kb,isEnumDeclaration:()=>TT,isEnumMember:()=>nS,isEqualityOperatorKind:()=>tV,isEqualsGreaterThanToken:()=>Fde,isExclamationToken:()=>dM,isExcludedFile:()=>ege,isExclusivelyTypeOnlyImportOrExport:()=>cX,isExpandoPropertyDeclaration:()=>AA,isExportAssignment:()=>pc,isExportDeclaration:()=>Cl,isExportModifier:()=>RA,isExportName:()=>Qj,isExportNamespaceAsDefaultDeclaration:()=>e9,isExportOrDefaultModifier:()=>CM,isExportSpecifier:()=>E_,isExportsIdentifier:()=>Xx,isExportsOrModuleExportsOrAlias:()=>EE,isExpression:()=>Pt,isExpressionNode:()=>eg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>y0e,isExpressionOfOptionalChainRoot:()=>R5,isExpressionStatement:()=>wu,isExpressionWithTypeArguments:()=>C0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>U9,isExternalModule:()=>iu,isExternalModuleAugmentation:()=>Yb,isExternalModuleImportEqualsDeclaration:()=>cT,isExternalModuleIndicator:()=>$3,isExternalModuleNameRelative:()=>Su,isExternalModuleReference:()=>A0,isExternalModuleSymbol:()=>UP,isExternalOrCommonJsModule:()=>Jf,isFileLevelReservedGeneratedIdentifier:()=>J3,isFileLevelUniqueName:()=>Q5,isFileProbablyExternalModule:()=>PM,isFirstDeclarationOfSymbolParameter:()=>HQ,isFixablePromiseHandler:()=>PZ,isForInOrOfStatement:()=>Gx,isForInStatement:()=>zj,isForInitializer:()=>Td,isForOfStatement:()=>hM,isForStatement:()=>ST,isFullSourceFile:()=>kv,isFunctionBlock:()=>Xb,isFunctionBody:()=>eH,isFunctionDeclaration:()=>El,isFunctionExpression:()=>ic,isFunctionExpressionOrArrowFunction:()=>K1,isFunctionLike:()=>Us,isFunctionLikeDeclaration:()=>$a,isFunctionLikeKind:()=>KC,isFunctionLikeOrClassStaticBlockDeclaration:()=>FP,isFunctionOrConstructorTypeNode:()=>n_e,isFunctionOrModuleBlock:()=>YG,isFunctionSymbol:()=>_fe,isFunctionTypeNode:()=>Vh,isFutureReservedKeyword:()=>P6e,isGeneratedIdentifier:()=>Ec,isGeneratedPrivateIdentifier:()=>zx,isGetAccessor:()=>Tv,isGetAccessorDeclaration:()=>$p,isGetOrSetAccessorDeclaration:()=>U3,isGlobalDeclaration:()=>TLe,isGlobalScopeAugmentation:()=>Og,isGlobalSourceFile:()=>Ev,isGrammarError:()=>A_e,isHeritageClause:()=>mp,isHoistedFunction:()=>o9,isHoistedVariableStatement:()=>a9,isIdentifier:()=>$e,isIdentifierANonContextualKeyword:()=>qH,isIdentifierName:()=>yfe,isIdentifierOrThisTypeNode:()=>yme,isIdentifierPart:()=>vv,isIdentifierStart:()=>by,isIdentifierText:()=>ap,isIdentifierTypePredicate:()=>Z_e,isIdentifierTypeReference:()=>Dpe,isIfStatement:()=>vT,isIgnoredFileFromWildCardWatching:()=>XM,isImplicitGlob:()=>D$,isImportAttribute:()=>Yde,isImportAttributeName:()=>t_e,isImportAttributes:()=>l2,isImportCall:()=>Dp,isImportClause:()=>ng,isImportDeclaration:()=>Yc,isImportEqualsDeclaration:()=>nu,isImportKeyword:()=>bO,isImportMeta:()=>GP,isImportOrExportSpecifier:()=>YC,isImportOrExportSpecifierName:()=>W0e,isImportSpecifier:()=>pf,isImportTypeAssertionContainer:()=>S4e,isImportTypeNode:()=>Jh,isImportableFile:()=>mZ,isInComment:()=>Uv,isInCompoundLikeAssignment:()=>FH,isInExpressionContext:()=>g9,isInJSDoc:()=>mR,isInJSFile:()=>vn,isInJSXText:()=>C0e,isInJsonFile:()=>y9,isInNonReferenceComment:()=>w0e,isInReferenceComment:()=>I0e,isInRightSideOfInternalImportEqualsDeclaration:()=>NU,isInString:()=>sk,isInTemplateString:()=>xQ,isInTopLevelContext:()=>p9,isInTypeQuery:()=>fA,isIncrementalCompilation:()=>tO,isIndexSignatureDeclaration:()=>fE,isIndexedAccessTypeNode:()=>mE,isInferTypeNode:()=>s2,isInfinityOrNaNString:()=>fO,isInitializedProperty:()=>zM,isInitializedVariable:()=>$R,isInsideJsxElement:()=>UU,isInsideJsxElementOrAttribute:()=>x0e,isInsideNodeModules:()=>D8,isInsideTemplateLiteral:()=>y8,isInstanceOfExpression:()=>V9,isInstantiatedModule:()=>AK,isInterfaceDeclaration:()=>Xu,isInternalDeclaration:()=>y_e,isInternalModuleImportEqualsDeclaration:()=>iA,isInternalName:()=>kY,isIntersectionTypeNode:()=>BA,isIntrinsicJsxName:()=>iN,isIterationStatement:()=>V1,isJSDoc:()=>sg,isJSDocAllType:()=>eme,isJSDocAugmentsTag:()=>WA,isJSDocAuthorTag:()=>C4e,isJSDocCallbackTag:()=>mY,isJSDocClassTag:()=>rme,isJSDocCommentContainingNode:()=>q5,isJSDocConstructSignature:()=>QP,isJSDocDeprecatedTag:()=>SY,isJSDocEnumTag:()=>vM,isJSDocFunctionType:()=>EN,isJSDocImplementsTag:()=>Yj,isJSDocImportTag:()=>Kg,isJSDocIndexSignature:()=>S9,isJSDocLikeText:()=>LY,isJSDocLink:()=>Qde,isJSDocLinkCode:()=>Zde,isJSDocLinkLike:()=>ZC,isJSDocLinkPlain:()=>E4e,isJSDocMemberName:()=>ET,isJSDocNameReference:()=>IO,isJSDocNamepathType:()=>x4e,isJSDocNamespaceBody:()=>l6e,isJSDocNode:()=>jP,isJSDocNonNullableType:()=>Wj,isJSDocNullableType:()=>bN,isJSDocOptionalParameter:()=>bj,isJSDocOptionalType:()=>dY,isJSDocOverloadTag:()=>xN,isJSDocOverrideTag:()=>Hj,isJSDocParameterTag:()=>Nd,isJSDocPrivateTag:()=>hY,isJSDocPropertyLikeTag:()=>mw,isJSDocPropertyTag:()=>nme,isJSDocProtectedTag:()=>yY,isJSDocPublicTag:()=>gY,isJSDocReadonlyTag:()=>vY,isJSDocReturnTag:()=>$j,isJSDocSatisfiesExpression:()=>q$,isJSDocSatisfiesTag:()=>Kj,isJSDocSeeTag:()=>A4e,isJSDocSignature:()=>k0,isJSDocTag:()=>BP,isJSDocTemplateTag:()=>om,isJSDocThisTag:()=>TY,isJSDocThrowsTag:()=>P4e,isJSDocTypeAlias:()=>Qd,isJSDocTypeAssertion:()=>m2,isJSDocTypeExpression:()=>bT,isJSDocTypeLiteral:()=>f2,isJSDocTypeTag:()=>wO,isJSDocTypedefTag:()=>p2,isJSDocUnknownTag:()=>k4e,isJSDocUnknownType:()=>tme,isJSDocVariadicType:()=>Gj,isJSXTagName:()=>YP,isJsonEqual:()=>hj,isJsonSourceFile:()=>Xd,isJsxAttribute:()=>Yg,isJsxAttributeLike:()=>V5,isJsxAttributeName:()=>jpe,isJsxAttributes:()=>SE,isJsxChild:()=>X3,isJsxClosingElement:()=>yE,isJsxClosingFragment:()=>Kde,isJsxElement:()=>My,isJsxExpression:()=>NO,isJsxFragment:()=>vE,isJsxNamespacedName:()=>ig,isJsxOpeningElement:()=>$g,isJsxOpeningFragment:()=>_2,isJsxOpeningLikeElement:()=>p_,isJsxOpeningLikeElementTagName:()=>m0e,isJsxSelfClosingElement:()=>u2,isJsxSpreadAttribute:()=>zA,isJsxTagNameExpression:()=>Tw,isJsxText:()=>IA,isJumpStatementTarget:()=>f8,isKeyword:()=>af,isKeywordOrPunctuation:()=>A9,isKnownSymbol:()=>LR,isLabelName:()=>mQ,isLabelOfLabeledStatement:()=>dQ,isLabeledStatement:()=>rS,isLateVisibilityPaintedStatement:()=>r9,isLeftHandSideExpression:()=>Af,isLeftHandSideOfAssignment:()=>V6e,isLet:()=>s9,isLineBreak:()=>T_,isLiteralComputedPropertyDeclarationName:()=>wR,isLiteralExpression:()=>Wb,isLiteralExpressionOfObject:()=>GG,isLiteralImportTypeNode:()=>xv,isLiteralKind:()=>gw,isLiteralLikeAccess:()=>b9,isLiteralLikeElementAccess:()=>TR,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>wU,isLiteralTypeLikeExpression:()=>R4e,isLiteralTypeLiteral:()=>a_e,isLiteralTypeNode:()=>Lv,isLocalName:()=>P0,isLogicalOperator:()=>qfe,isLogicalOrCoalescingAssignmentExpression:()=>a$,isLogicalOrCoalescingAssignmentOperator:()=>Gw,isLogicalOrCoalescingBinaryExpression:()=>qR,isLogicalOrCoalescingBinaryOperator:()=>JR,isMappedTypeNode:()=>a2,isMemberName:()=>xy,isMetaProperty:()=>xO,isMethodDeclaration:()=>_l,isMethodOrAccessor:()=>XC,isMethodSignature:()=>Wg,isMinusToken:()=>sY,isMissingDeclaration:()=>b4e,isMissingPackageJsonInfo:()=>fge,isModifier:()=>Do,isModifierKind:()=>Sv,isModifierLike:()=>xc,isModuleAugmentationExternal:()=>mH,isModuleBlock:()=>Gg,isModuleBody:()=>u_e,isModuleDeclaration:()=>xl,isModuleExportsAccessExpression:()=>ky,isModuleIdentifier:()=>IH,isModuleName:()=>Tme,isModuleOrEnumDeclaration:()=>Y3,isModuleReference:()=>m_e,isModuleSpecifierLike:()=>$U,isModuleWithStringLiteralName:()=>t9,isNameOfFunctionDeclaration:()=>vQ,isNameOfModuleDeclaration:()=>yQ,isNamedClassElement:()=>i6e,isNamedDeclaration:()=>Hu,isNamedEvaluation:()=>up,isNamedEvaluationSource:()=>zH,isNamedExportBindings:()=>zG,isNamedExports:()=>Pd,isNamedImportBindings:()=>tH,isNamedImports:()=>Hg,isNamedImportsOrExports:()=>$9,isNamedTupleMember:()=>yN,isNamespaceBody:()=>c6e,isNamespaceExport:()=>qh,isNamespaceExportDeclaration:()=>yM,isNamespaceImport:()=>Ry,isNamespaceReexportDeclaration:()=>afe,isNewExpression:()=>gE,isNewExpressionTarget:()=>_6,isNoSubstitutionTemplateLiteral:()=>wA,isNode:()=>r6e,isNodeArray:()=>zb,isNodeArrayMultiLine:()=>Qfe,isNodeDescendantOf:()=>rE,isNodeKind:()=>V3,isNodeLikeSystem:()=>XW,isNodeModulesDirectory:()=>T5,isNodeWithPossibleHoistedDeclaration:()=>gfe,isNonContextualKeyword:()=>JH,isNonExportDefaultModifier:()=>L4e,isNonGlobalAmbientModule:()=>dH,isNonGlobalDeclaration:()=>ove,isNonNullAccess:()=>Fpe,isNonNullChain:()=>M5,isNonNullExpression:()=>JA,isNonStaticMethodOrAccessorWithPrivateName:()=>$ge,isNotEmittedOrPartiallyEmittedNode:()=>a6e,isNotEmittedStatement:()=>pY,isNullishCoalesce:()=>qG,isNumber:()=>O1,isNumericLiteral:()=>Df,isNumericLiteralName:()=>Oy,isObjectBindingElementWithoutPropertyName:()=>b8,isObjectBindingOrAssignmentElement:()=>W3,isObjectBindingOrAssignmentPattern:()=>KG,isObjectBindingPattern:()=>Kp,isObjectLiteralElement:()=>rH,isObjectLiteralElementLike:()=>d0,isObjectLiteralExpression:()=>ko,isObjectLiteralMethod:()=>Nm,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>l9,isObjectTypeDeclaration:()=>hA,isOctalDigit:()=>C5,isOmittedExpression:()=>du,isOptionalChain:()=>b_,isOptionalChainRoot:()=>fw,isOptionalDeclaration:()=>mN,isOptionalJSDocPropertyLikeTag:()=>nM,isOptionalTypeNode:()=>jj,isOuterExpression:()=>Zj,isOutermostOptionalChain:()=>pw,isOverrideModifier:()=>Vde,isPackageJsonInfo:()=>xB,isPackedArrayLiteral:()=>V$,isParameter:()=>is,isParameterPropertyDeclaration:()=>cp,isParameterPropertyModifier:()=>yw,isParenthesizedExpression:()=>ff,isParenthesizedTypeNode:()=>o2,isParseTreeNode:()=>_w,isPartOfParameterDeclaration:()=>dT,isPartOfTypeNode:()=>Mg,isPartOfTypeQuery:()=>h9,isPartiallyEmittedExpression:()=>qj,isPatternMatch:()=>c5,isPinnedComment:()=>Z5,isPlainJsFile:()=>xw,isPlusToken:()=>iY,isPossiblyTypeArgumentPosition:()=>h8,isPostfixUnaryExpression:()=>lY,isPrefixUnaryExpression:()=>tS,isPrimitiveLiteralValue:()=>Cj,isPrivateIdentifier:()=>es,isPrivateIdentifierClassElementDeclaration:()=>B_,isPrivateIdentifierPropertyAccessExpression:()=>LP,isPrivateIdentifierSymbol:()=>Tfe,isProgramBundleEmitBuildInfo:()=>iye,isProgramUptoDate:()=>gX,isPrologueDirective:()=>Rg,isPropertyAccessChain:()=>O5,isPropertyAccessEntityNameExpression:()=>WR,isPropertyAccessExpression:()=>Hn,isPropertyAccessOrQualifiedName:()=>H3,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>s_e,isPropertyAssignment:()=>ql,isPropertyDeclaration:()=>Ds,isPropertyName:()=>Ol,isPropertyNameLiteral:()=>Fg,isPropertySignature:()=>If,isProtoSetter:()=>bfe,isPrototypeAccess:()=>G1,isPrototypePropertyAssignment:()=>xR,isPunctuation:()=>VH,isPushOrUnshiftIdentifier:()=>WH,isQualifiedName:()=>uf,isQuestionDotToken:()=>Lj,isQuestionOrExclamationToken:()=>hme,isQuestionOrPlusOrMinusToken:()=>Sme,isQuestionToken:()=>Q1,isRawSourceMap:()=>Jge,isReadonlyKeyword:()=>Bde,isReadonlyKeywordOrPlusOrMinusToken:()=>vme,isRecognizedTripleSlashComment:()=>lH,isReferenceFileLocation:()=>VN,isReferencedFile:()=>wT,isRegularExpressionLiteral:()=>rY,isRequireCall:()=>Nf,isRequireVariableStatement:()=>hR,isRestParameter:()=>Lh,isRestTypeNode:()=>Bj,isReturnStatement:()=>im,isReturnStatementWithFixablePromiseHandler:()=>vV,isRightSideOfAccessExpression:()=>u$,isRightSideOfInstanceofExpression:()=>Wfe,isRightSideOfPropertyAccess:()=>GN,isRightSideOfQualifiedName:()=>h0e,isRightSideOfQualifiedNameOrPropertyAccess:()=>Hw,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>zfe,isRootedDiskPath:()=>op,isSameEntityName:()=>KP,isSatisfiesExpression:()=>Jj,isScopeMarker:()=>c_e,isSemicolonClassElement:()=>Gde,isSetAccessor:()=>wg,isSetAccessorDeclaration:()=>dp,isShebangTrivia:()=>IG,isShiftOperatorOrHigher:()=>OY,isShorthandAmbientModuleSymbol:()=>tR,isShorthandPropertyAssignment:()=>m_,isSignedNumericLiteral:()=>P9,isSimpleCopiableExpression:()=>xE,isSimpleInlineableExpression:()=>Xg,isSimpleParameter:()=>Zge,isSimpleParameterList:()=>WM,isSingleOrDoubleQuote:()=>yR,isSourceFile:()=>qi,isSourceFileFromLibrary:()=>tD,isSourceFileJS:()=>Pf,isSourceFileNotJS:()=>S6e,isSourceFileNotJson:()=>v9,isSourceMapping:()=>zge,isSpecialPropertyDeclaration:()=>ufe,isSpreadAssignment:()=>Ly,isSpreadElement:()=>kd,isStatement:()=>Ji,isStatementButNotDeclaration:()=>K3,isStatementOrBlock:()=>d_e,isStatementWithLocals:()=>C_e,isStatic:()=>co,isStaticModifier:()=>MA,isString:()=>bs,isStringAKeyword:()=>N6e,isStringANonContextualKeyword:()=>_A,isStringAndEmptyAnonymousObjectIntersection:()=>D0e,isStringDoubleQuoted:()=>T9,isStringLiteral:()=>jo,isStringLiteralLike:()=>Ia,isStringLiteralOrJsxExpression:()=>g_e,isStringLiteralOrTemplate:()=>X0e,isStringOrNumericLiteralLike:()=>Wp,isStringOrRegularExpressionOrTemplateLiteral:()=>kQ,isStringTextContainingNode:()=>HG,isSuperCall:()=>Kx,isSuperKeyword:()=>TO,isSuperOrSuperProperty:()=>v6e,isSuperProperty:()=>kf,isSupportedSourceFileName:()=>Cpe,isSwitchStatement:()=>kO,isSyntaxList:()=>CN,isSyntheticExpression:()=>m4e,isSyntheticReference:()=>qA,isTagName:()=>gQ,isTaggedTemplateExpression:()=>hE,isTaggedTemplateTag:()=>p0e,isTemplateExpression:()=>Uj,isTemplateHead:()=>OA,isTemplateLiteral:()=>QC,isTemplateLiteralKind:()=>B1,isTemplateLiteralToken:()=>Zue,isTemplateLiteralTypeNode:()=>zde,isTemplateLiteralTypeSpan:()=>aY,isTemplateMiddle:()=>nY,isTemplateMiddleOrTemplateTail:()=>L5,isTemplateSpan:()=>AO,isTemplateTail:()=>Rj,isTextWhiteSpaceLike:()=>L0e,isThis:()=>HN,isThisContainerOrFunctionBlock:()=>ife,isThisIdentifier:()=>z1,isThisInTypeQuery:()=>oE,isThisInitializedDeclaration:()=>d9,isThisInitializedObjectBindingExpression:()=>ofe,isThisProperty:()=>_R,isThisTypeNode:()=>vN,isThisTypeParameter:()=>pO,isThisTypePredicate:()=>efe,isThrowStatement:()=>fY,isToken:()=>$C,isTokenKind:()=>WG,isTraceEnabled:()=>N0,isTransientSymbol:()=>Fh,isTrivia:()=>rN,isTryStatement:()=>c2,isTupleTypeNode:()=>jA,isTypeAlias:()=>kR,isTypeAliasDeclaration:()=>sm,isTypeAssertionExpression:()=>cY,isTypeDeclaration:()=>xA,isTypeElement:()=>Gb,isTypeKeyword:()=>d6,isTypeKeywordToken:()=>RQ,isTypeKeywordTokenOrIdentifier:()=>WU,isTypeLiteralNode:()=>_f,isTypeNode:()=>wi,isTypeNodeKind:()=>v$,isTypeOfExpression:()=>SN,isTypeOnlyExportDeclaration:()=>e_e,isTypeOnlyImportDeclaration:()=>hw,isTypeOnlyImportOrExportDeclaration:()=>iT,isTypeOperatorNode:()=>yT,isTypeParameterDeclaration:()=>Cc,isTypePredicateNode:()=>FA,isTypeQueryNode:()=>pE,isTypeReferenceNode:()=>Yp,isTypeReferenceType:()=>W5,isTypeUsableAsPropertyName:()=>rm,isUMDExportSymbol:()=>H9,isUnaryExpression:()=>ZG,isUnaryExpressionWithWrite:()=>o_e,isUnicodeIdentifierStart:()=>E5,isUnionTypeNode:()=>Z1,isUrl:()=>yue,isValidBigIntString:()=>yj,isValidESSymbolDeclaration:()=>X_e,isValidTypeOnlyAliasUseSite:()=>gT,isValueSignatureDeclaration:()=>uA,isVarAwaitUsing:()=>oR,isVarConst:()=>WP,isVarConstLike:()=>z_e,isVarUsing:()=>aR,isVariableDeclaration:()=>Ci,isVariableDeclarationInVariableStatement:()=>kw,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Zb,isVariableDeclarationInitializedToRequire:()=>gR,isVariableDeclarationList:()=>Fu,isVariableLike:()=>nA,isVariableLikeOrAccessor:()=>Y_e,isVariableStatement:()=>fl,isVoidExpression:()=>UA,isWatchSet:()=>g$,isWhileStatement:()=>_Y,isWhiteSpaceLike:()=>Sy,isWhiteSpaceSingleLine:()=>Dg,isWithStatement:()=>Hde,isWriteAccess:()=>gA,isWriteOnlyAccess:()=>G9,isYieldExpression:()=>Vj,jsxModeNeedsExplicitImport:()=>fZ,keywordPart:()=>hp,last:()=>qo,lastOrUndefined:()=>yc,length:()=>kt,libMap:()=>JY,libs:()=>aB,lineBreakPart:()=>QN,linkNamePart:()=>q0e,linkPart:()=>YQ,linkTextPart:()=>XU,listFiles:()=>OX,loadModuleFromGlobalCache:()=>xge,loadWithModeAwareCache:()=>e8,makeIdentifierFromModuleName:()=>I_e,makeImport:()=>uS,makeStringLiteral:()=>m6,mangleScopedPackageName:()=>MN,map:()=>kr,mapAllOrFail:()=>qI,mapDefined:()=>Yi,mapDefinedEntries:()=>d3,mapDefinedIterator:()=>Vp,mapEntries:()=>m3,mapIterator:()=>wx,mapOneOrMany:()=>lZ,mapToDisplayParts:()=>_S,matchFiles:()=>I$,matchPatternOrExact:()=>M$,matchedText:()=>Zce,matchesExclude:()=>SB,maybeBind:()=>so,maybeSetLocalizedDiagnosticMessages:()=>ape,memoize:()=>nf,memoizeCached:()=>aOe,memoizeOne:()=>Ih,memoizeWeak:()=>oOe,metadataHelper:()=>lde,min:()=>zW,minAndMax:()=>Ppe,missingFileModifiedTime:()=>sp,modifierToFlag:()=>dA,modifiersToFlags:()=>Ug,moduleOptionDeclaration:()=>wme,moduleResolutionIsEqualTo:()=>E_e,moduleResolutionNameAndModeGetter:()=>_X,moduleResolutionOptionDeclarations:()=>zY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>bA,moduleResolutionUsesNodeModules:()=>GU,moduleSpecifierToValidIdentifier:()=>I8,moduleSpecifiers:()=>IT,moduleSymbolToValidIdentifier:()=>b6,moveEmitHelpers:()=>ede,moveRangeEnd:()=>z9,moveRangePastDecorators:()=>S0,moveRangePastModifiers:()=>Vg,moveRangePos:()=>mT,moveSyntheticComments:()=>Xpe,mutateMap:()=>Zw,mutateMapSkippingNewValues:()=>Ny,needsParentheses:()=>ZU,needsScopeMarker:()=>B5,newCaseClauseTracker:()=>mV,newPrivateEnvironment:()=>Xge,noEmitNotification:()=>HM,noEmitSubstitution:()=>t6,noTransformers:()=>whe,noTruncationMaximumTruncationLength:()=>sH,nodeCanBeDecorated:()=>pR,nodeHasName:()=>L3,nodeIsDecorated:()=>$P,nodeIsMissing:()=>Gc,nodeIsPresent:()=>Kd,nodeIsSynthesized:()=>Ka,nodeModuleNameResolver:()=>hge,nodeModulesPathPart:()=>Fy,nodeNextJsonConfigResolver:()=>yge,nodeOrChildIsDecorated:()=>dR,nodeOverlapsWithStartEnd:()=>OU,nodePosToString:()=>f6e,nodeSeenTracker:()=>YN,nodeStartsNewLexicalEnvironment:()=>GH,nodeToDisplayParts:()=>gLe,noop:()=>aa,noopFileWatcher:()=>a6,normalizePath:()=>eo,normalizeSlashes:()=>Wu,not:()=>u5,notImplemented:()=>fo,notImplementedResolver:()=>Lhe,nullNodeConverters:()=>Hpe,nullParenthesizerRules:()=>Wpe,nullTransformationContext:()=>YM,objectAllocator:()=>Yu,operatorPart:()=>h6,optionDeclarations:()=>og,optionMapToObject:()=>dB,optionsAffectingProgramStructure:()=>Fme,optionsForBuild:()=>GY,optionsForWatch:()=>KA,optionsHaveChanges:()=>VP,optionsHaveModuleResolutionChanges:()=>S_e,or:()=>qp,orderedRemoveItem:()=>GI,orderedRemoveItemAt:()=>M1,packageIdToPackageName:()=>K5,packageIdToString:()=>J1,paramHelper:()=>ude,parameterIsThisKeyword:()=>sE,parameterNamePart:()=>B0e,parseBaseNodeFactory:()=>kme,parseBigInt:()=>Npe,parseBuildCommand:()=>Hme,parseCommandLine:()=>Wme,parseCommandLineWorker:()=>$Y,parseConfigFileTextToJson:()=>KY,parseConfigFileWithSystem:()=>yye,parseConfigHostFromCompilerHostLike:()=>iU,parseCustomTypeOption:()=>_B,parseIsolatedEntityName:()=>YA,parseIsolatedJSDocComment:()=>Nme,parseJSDocTypeExpressionForTests:()=>n3e,parseJsonConfigFileContent:()=>w3e,parseJsonSourceFileConfigFileContent:()=>MM,parseJsonText:()=>NM,parseListTypeOption:()=>qme,parseNodeFactory:()=>CT,parseNodeModuleFromPath:()=>jM,parsePackageName:()=>PB,parsePseudoBigInt:()=>lO,parseValidBigInt:()=>B$,pasteEdits:()=>fte,patchWriteFileEnsuringDirectory:()=>hue,pathContainsNodeModules:()=>NT,pathIsAbsolute:()=>rw,pathIsBareSpecifier:()=>EG,pathIsRelative:()=>zp,patternText:()=>Qce,perfLogger:()=>sf,performIncrementalCompilation:()=>Sye,performance:()=>ale,plainJSErrors:()=>hX,positionBelongsToNode:()=>TQ,positionIsASICandidate:()=>nV,positionIsSynthesized:()=>rg,positionsAreOnSameLine:()=>xd,preProcessFile:()=>jLe,probablyUsesSemicolons:()=>P8,processCommentPragmas:()=>UY,processPragmasIntoFields:()=>VY,processTaggedTemplateExpression:()=>VK,programContainsEsModules:()=>R0e,programContainsModules:()=>O0e,projectReferenceIsEqualTo:()=>oH,propKeyHelper:()=>Ede,propertyNamePart:()=>U0e,pseudoBigIntToString:()=>uE,punctuationPart:()=>k_,pushIfUnique:()=>cl,quote:()=>S6,quotePreferenceFromString:()=>jQ,rangeContainsPosition:()=>p8,rangeContainsPositionExclusive:()=>d8,rangeContainsRange:()=>ed,rangeContainsRangeExclusive:()=>v0e,rangeContainsStartEnd:()=>m8,rangeEndIsOnSameLineAsRangeStart:()=>HR,rangeEndPositionsAreOnSameLine:()=>Kfe,rangeEquals:()=>yl,rangeIsOnSingleLine:()=>n2,rangeOfNode:()=>F$,rangeOfTypeParameters:()=>j$,rangeOverlapsWithStartEnd:()=>f6,rangeStartIsOnSameLineAsRangeEnd:()=>Xfe,rangeStartPositionsAreOnSameLine:()=>W9,readBuilderProgram:()=>dU,readConfigFile:()=>OM,readHelper:()=>Tde,readJson:()=>Yw,readJsonConfigFile:()=>$me,readJsonOrUndefined:()=>f$,reduceEachLeadingCommentRange:()=>Aue,reduceEachTrailingCommentRange:()=>kue,reduceLeft:()=>F_,reduceLeftIterator:()=>Ql,reducePathComponents:()=>Ux,refactor:()=>uk,regExpEscape:()=>Q6e,regularExpressionFlagToCharacter:()=>FOe,relativeComplement:()=>Jn,removeAllComments:()=>cM,removeEmitHelper:()=>p4e,removeExtension:()=>eM,removeFileExtension:()=>lf,removeIgnoredPath:()=>oU,removeMinAndVersionNumbers:()=>GW,removeOptionality:()=>A0e,removePrefix:()=>HI,removeSuffix:()=>kP,removeTrailingDirectorySeparator:()=>ZS,repeatString:()=>S8,replaceElement:()=>UW,replaceFirstStar:()=>kA,resolutionExtensionIsTSOrJson:()=>sO,resolveConfigFileProjectName:()=>HX,resolveJSModule:()=>dge,resolveLibrary:()=>AB,resolveModuleName:()=>ZA,resolveModuleNameFromCache:()=>oRe,resolvePackageNameToPackageJson:()=>cK,resolvePath:()=>QS,resolveProjectReferencePath:()=>JN,resolveTripleslashReference:()=>nX,resolveTypeReferenceDirective:()=>uge,resolvingEmptyArray:()=>iH,restHelper:()=>hde,returnFalse:()=>Ng,returnNoopFileWatcher:()=>c6,returnTrue:()=>YS,returnUndefined:()=>Vb,returnsPromise:()=>kZ,runInitializersHelper:()=>fde,sameFlatMap:()=>n5,sameMap:()=>js,sameMapping:()=>KRe,scanShebangTrivia:()=>wG,scanTokenAtPosition:()=>q_e,scanner:()=>z_,screenStartingMessageCodes:()=>NX,semanticDiagnosticsOptionDeclarations:()=>Rme,serializeCompilerOptions:()=>mB,server:()=>$qe,servicesVersion:()=>RFe,setCommentRange:()=>eu,setConfigFileInOptions:()=>rK,setConstantValue:()=>Zpe,setEachParent:()=>i4e,setEmitFlags:()=>xn,setFunctionNameHelper:()=>xde,setGetSourceFileAsHashVersioned:()=>pU,setIdentifierAutoGenerate:()=>_M,setIdentifierGeneratedImportReference:()=>nde,setIdentifierTypeArguments:()=>Mv,setInternalEmitFlags:()=>lM,setLocalizedDiagnosticMessages:()=>ope,setModuleDefaultHelper:()=>kde,setNodeChildren:()=>ime,setNodeFlags:()=>wpe,setObjectAllocator:()=>spe,setOriginalNode:()=>Gn,setParent:()=>fa,setParentRecursive:()=>E0,setPrivateIdentifier:()=>h2,setSnippetElement:()=>Q$,setSourceMapRange:()=>Wo,setStackTraceLimit:()=>bOe,setStartsOnNewLine:()=>Pj,setSyntheticLeadingComments:()=>hT,setSyntheticTrailingComments:()=>NA,setSys:()=>POe,setSysLog:()=>due,setTextRange:()=>At,setTextRangeEnd:()=>dN,setTextRangePos:()=>uO,setTextRangePosEnd:()=>Jg,setTextRangePosWidth:()=>U$,setTokenSourceMapRange:()=>Kpe,setTypeNode:()=>tde,setUILocale:()=>Yce,setValueDeclaration:()=>CR,shouldAllowImportingTsExtension:()=>LN,shouldPreserveConstEnums:()=>lE,shouldUseUriStyleNodeCoreModules:()=>pV,showModuleSpecifier:()=>rpe,signatureHasLiteralTypes:()=>kK,signatureHasRestParameter:()=>C_,signatureToDisplayParts:()=>KQ,single:()=>BW,singleElementArray:()=>zC,singleIterator:()=>i5,singleOrMany:()=>Dh,singleOrUndefined:()=>Nh,skipAlias:()=>$u,skipAssertions:()=>I4e,skipConstraint:()=>MQ,skipOuterExpressions:()=>Ml,skipParentheses:()=>ba,skipPartiallyEmittedExpressions:()=>km,skipTrivia:()=>zo,skipTypeChecking:()=>cO,skipTypeParentheses:()=>Mw,skipWhile:()=>tle,sliceAfter:()=>L$,some:()=>Dt,sort:()=>mo,sortAndDeduplicate:()=>BC,sortAndDeduplicateDiagnostics:()=>wP,sourceFileAffectingCompilerOptions:()=>WY,sourceFileMayBeEmitted:()=>t2,sourceMapCommentRegExp:()=>NK,sourceMapCommentRegExpDontCareLineStart:()=>Uge,spacePart:()=>Zc,spanMap:()=>xP,spreadArrayHelper:()=>bde,stableSort:()=>Zs,startEndContainsRange:()=>SQ,startEndOverlapsWithStartEnd:()=>RU,startOnNewLine:()=>x_,startTracing:()=>_le,startsWith:()=>fs,startsWithDirectory:()=>AG,startsWithUnderscore:()=>_Z,startsWithUseStrict:()=>_me,stringContainsAt:()=>sve,stringToToken:()=>Jb,stripQuotes:()=>em,supportedDeclarationExtensions:()=>fj,supportedJSExtensions:()=>Tpe,supportedJSExtensionsFlat:()=>fN,supportedLocaleDirectories:()=>jue,supportedTSExtensions:()=>nO,supportedTSExtensionsFlat:()=>w$,supportedTSImplementationExtensions:()=>pj,suppressLeadingAndTrailingTrivia:()=>yp,suppressLeadingTrivia:()=>eZ,suppressTrailingTrivia:()=>$0e,symbolEscapedNameNoDefault:()=>HU,symbolName:()=>Qc,symbolNameNoDefault:()=>UQ,symbolPart:()=>j0e,symbolToDisplayParts:()=>y6,syntaxMayBeASICandidate:()=>Z0e,syntaxRequiresTrailingSemicolonOrASI:()=>rV,sys:()=>uu,sysLog:()=>x3,tagNamesAreEquivalent:()=>kT,takeWhile:()=>KW,targetOptionDeclaration:()=>qY,templateObjectHelper:()=>Sde,testFormatSettings:()=>aLe,textChangeRangeIsUnchanged:()=>Oue,textChangeRangeNewSpan:()=>uw,textChanges:()=>bn,textOrKeywordPart:()=>$Q,textPart:()=>rd,textRangeContainsPositionInclusive:()=>O3,textSpanContainsPosition:()=>RG,textSpanContainsTextSpan:()=>Nue,textSpanEnd:()=>bl,textSpanIntersection:()=>wue,textSpanIntersectsWith:()=>k5,textSpanIntersectsWithPosition:()=>Iue,textSpanIntersectsWithTextSpan:()=>zOe,textSpanIsEmpty:()=>Pue,textSpanOverlap:()=>Due,textSpanOverlapsWith:()=>qOe,textSpansEqual:()=>XN,textToKeywordObj:()=>b5,timestamp:()=>Tc,toArray:()=>JC,toBuilderFileEmit:()=>cye,toBuilderStateFileInfoForMultiEmit:()=>aye,toEditorSettings:()=>B8,toFileNameLowerCase:()=>R1,toLowerCase:()=>zce,toPath:()=>rc,toProgramEmitPending:()=>lye,tokenIsIdentifierOrKeyword:()=>j_,tokenIsIdentifierOrKeywordOrGreaterThan:()=>Tue,tokenToString:()=>bo,trace:()=>ms,tracing:()=>kn,tracingEnabled:()=>b3,transferSourceFileChildren:()=>sme,transform:()=>zFe,transformClassFields:()=>uhe,transformDeclarations:()=>WK,transformECMAScriptModule:()=>zK,transformES2015:()=>xhe,transformES2016:()=>Ehe,transformES2017:()=>dhe,transformES2018:()=>mhe,transformES2019:()=>ghe,transformES2020:()=>hhe,transformES2021:()=>yhe,transformESDecorators:()=>phe,transformESNext:()=>vhe,transformGenerators:()=>Che,transformJsx:()=>bhe,transformLegacyDecorators:()=>fhe,transformModule:()=>qK,transformNamedEvaluation:()=>gp,transformNodeModule:()=>khe,transformNodes:()=>$M,transformSystemModule:()=>Ahe,transformTypeScript:()=>lhe,transpile:()=>HLe,transpileDeclaration:()=>WLe,transpileModule:()=>kve,transpileOptionValueCompilerOptions:()=>jme,tryAddToSet:()=>kg,tryAndIgnoreErrors:()=>oV,tryCast:()=>ci,tryDirectoryExists:()=>sV,tryExtractTSExtension:()=>J9,tryFileExists:()=>N8,tryGetClassExtendingExpressionWithTypeArguments:()=>c$,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>l$,tryGetDirectories:()=>iV,tryGetExtensionFromPath:()=>b0,tryGetImportFromModuleSpecifier:()=>AR,tryGetJSDocSatisfiesTypeNode:()=>Ej,tryGetModuleNameFromFile:()=>EM,tryGetModuleSpecifierFromDeclaration:()=>Ow,tryGetNativePerformanceHooks:()=>ole,tryGetPropertyAccessOrIdentifierToString:()=>GR,tryGetPropertyNameOfBindingOrAssignmentElement:()=>rB,tryGetSourceMappingURL:()=>Vge,tryGetTextOfPropertyName:()=>Aw,tryIOAndConsumeErrors:()=>aV,tryParseJson:()=>q9,tryParsePattern:()=>pN,tryParsePatterns:()=>mj,tryParseRawSourceMap:()=>qge,tryReadDirectory:()=>iZ,tryReadFile:()=>jO,tryRemoveDirectoryPrefix:()=>N$,tryRemoveExtension:()=>kpe,tryRemovePrefix:()=>YW,tryRemoveSuffix:()=>Xce,typeAcquisitionDeclarations:()=>lB,typeAliasNamePart:()=>V0e,typeDirectiveIsEqualTo:()=>x_e,typeKeywords:()=>OQ,typeParameterNamePart:()=>J0e,typeToDisplayParts:()=>x8,unchangedPollThresholds:()=>h5,unchangedTextChangeRange:()=>P5,unescapeLeadingUnderscores:()=>Zi,unmangleScopedPackageName:()=>UM,unorderedRemoveItem:()=>qC,unorderedRemoveItemAt:()=>HW,unreachableCodeIsError:()=>upe,unsetNodeChildren:()=>EY,unusedLabelIsError:()=>_pe,unwrapInnermostStatementOfLabel:()=>AH,unwrapParenthesizedExpression:()=>Vpe,updateErrorForNoInputFiles:()=>vB,updateLanguageServiceSourceFile:()=>eee,updateMissingFilePathsWatch:()=>eX,updateResolutionField:()=>IN,updateSharedExtendedConfigFileWatcher:()=>KB,updateSourceFile:()=>FY,updateWatchingWildcardDirectories:()=>KM,usesExtensionsOnImports:()=>Epe,usingSingleLineStringWriter:()=>Ew,utf16EncodeAsString:()=>lw,validateLocaleAndSetLanguage:()=>LG,valuesHelper:()=>Cde,version:()=>se,versionMajorMinor:()=>j,visitArray:()=>JM,visitCommaListElements:()=>qM,visitEachChild:()=>jr,visitFunctionBody:()=>Zp,visitIterationBody:()=>df,visitLexicalEnvironment:()=>PK,visitNode:()=>ct,visitNodes:()=>Qr,visitParameterList:()=>Kc,walkUpBindingElementsAndPatterns:()=>OP,walkUpLexicalEnvironments:()=>Kge,walkUpOuterExpressions:()=>fme,walkUpParenthesizedExpressions:()=>h0,walkUpParenthesizedTypes:()=>IR,walkUpParenthesizedTypesAndGetParentAndChild:()=>hfe,whitespaceOrMapCommentRegExp:()=>DK,writeCommentRange:()=>cN,writeFile:()=>VR,writeFileEnsuringDirectories:()=>r$,zipWith:()=>va});var K3t=!0,Wqe;function X3t(){return Wqe??(Wqe=new Ym(se))}function Gqe(e,t,n,i,s){let a=t?"DeprecationError: ":"DeprecationWarning: ";return a+=`'${e}' `,a+=i?`has been deprecated since v${i}`:"is deprecated",a+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",a+=s?` ${Dy(s,[e])}`:"",a}function Q3t(e,t,n,i){let s=Gqe(e,!0,t,n,i);return()=>{throw new TypeError(s)}}function Z3t(e,t,n,i){let s=!1;return()=>{K3t&&!s&&(M.log.warn(Gqe(e,!1,t,n,i)),s=!0)}}function eRt(e,t={}){let n=typeof t.typeScriptVersion=="string"?new Ym(t.typeScriptVersion):t.typeScriptVersion??X3t(),i=typeof t.errorAfter=="string"?new Ym(t.errorAfter):t.errorAfter,s=typeof t.warnAfter=="string"?new Ym(t.warnAfter):t.warnAfter,a=typeof t.since=="string"?new Ym(t.since):t.since??s,u=t.error||i&&n.compareTo(i)>=0,m=!s||n.compareTo(s)>=0;return u?Q3t(e,i,a,t.message):m?Z3t(e,i,a,t.message):aa}function tRt(e,t){return function(){return e(),t.apply(this,arguments)}}function rRt(e,t){let n=eRt(t?.name??M.getFunctionName(e),t);return tRt(n,e)}function pte(e,t,n,i){if(Object.defineProperty(a,"name",{...Object.getOwnPropertyDescriptor(a,"name"),value:e}),i)for(let u of Object.keys(i)){let m=+u;!isNaN(m)&&Ha(t,`${m}`)&&(t[m]=rRt(t[m],{...i[m],name:e}))}let s=nRt(t,n);return a;function a(...u){let m=s(u),d=m!==void 0?t[m]:void 0;if(typeof d=="function")return d(...u);throw new TypeError("Invalid arguments")}}function nRt(e,t){return n=>{for(let i=0;Ha(e,`${i}`)&&Ha(t,`${i}`);i++){let s=t[i];if(s(n))return i}}}function Hqe(e){return{overload:t=>({bind:n=>({finish:()=>pte(e,t,n),deprecate:i=>({finish:()=>pte(e,t,n,i)})})})}}var $qe={};k($qe,{ActionInvalidate:()=>EU,ActionPackageInstalled:()=>xU,ActionSet:()=>bU,ActionWatchTypingLocations:()=>l8,Arguments:()=>oQ,AutoImportProviderProject:()=>lEe,AuxiliaryProject:()=>aEe,CharRangeSection:()=>wEe,CloseFileWatcherEvent:()=>kte,CommandNames:()=>Cze,ConfigFileDiagEvent:()=>bte,ConfiguredProject:()=>uEe,ConfiguredProjectLoadKind:()=>gEe,CreateDirectoryWatcherEvent:()=>Ate,CreateFileWatcherEvent:()=>Cte,Errors:()=>O0,EventBeginInstallTypes:()=>iQ,EventEndInstallTypes:()=>sQ,EventInitializationFailed:()=>Yye,EventTypesRegistry:()=>nQ,ExternalProject:()=>gte,GcTimer:()=>Kbe,InferredProject:()=>oEe,LargeFileReferencedEvent:()=>Tte,LineIndex:()=>hL,LineLeaf:()=>fJ,LineNode:()=>mD,LogLevel:()=>Vbe,Msg:()=>Jbe,OpenFileInfoTelemetryEvent:()=>_Ee,Project:()=>Sk,ProjectInfoTelemetryEvent:()=>xte,ProjectKind:()=>_L,ProjectLanguageServiceStateEvent:()=>Ete,ProjectLoadingFinishEvent:()=>Ste,ProjectLoadingStartEvent:()=>vte,ProjectService:()=>bEe,ProjectsUpdatedInBackgroundEvent:()=>uJ,ScriptInfo:()=>eEe,ScriptVersionCache:()=>Bte,Session:()=>Dze,TextStorage:()=>Zbe,ThrottledOperations:()=>Ybe,TypingsCache:()=>tEe,TypingsInstallerAdapter:()=>Mze,allFilesAreJsOrDts:()=>nEe,allRootFilesAreJsOrDts:()=>rEe,asNormalizedPath:()=>Qqe,convertCompilerOptions:()=>_J,convertFormatOptions:()=>fD,convertScriptKindName:()=>Nte,convertTypeAcquisition:()=>pEe,convertUserPreferences:()=>dEe,convertWatchOptions:()=>mL,countEachFileTypes:()=>fL,createInstallTypingsRequest:()=>qbe,createModuleSpecifierCache:()=>CEe,createNormalizedPathMap:()=>Zqe,createPackageJsonCache:()=>AEe,createSortedArray:()=>$be,emptyArray:()=>ou,findArgument:()=>Y8e,forEachResolvedProjectReferenceProject:()=>Ote,formatDiagnosticToProtocol:()=>gL,formatMessage:()=>kEe,getBaseConfigFileName:()=>dte,getLocationInNewDocument:()=>IEe,hasArgument:()=>$8e,hasNoTypeScriptSource:()=>iEe,indent:()=>u6,isBackgroundProject:()=>dL,isConfigFile:()=>EEe,isConfiguredProject:()=>Gv,isDynamicFileName:()=>uL,isExternalProject:()=>pL,isInferredProject:()=>_D,isInferredProjectName:()=>zbe,isProjectDeferredClose:()=>lJ,makeAutoImportProviderProjectName:()=>Gbe,makeAuxiliaryProjectName:()=>Hbe,makeInferredProjectName:()=>Wbe,maxFileSize:()=>yte,maxProgramSizeForNonTsFiles:()=>hte,normalizedPathToPath:()=>lL,nowString:()=>K8e,nullCancellationToken:()=>bze,nullTypingsInstaller:()=>mte,protocol:()=>Xbe,removeSorted:()=>eze,stringifyIndented:()=>OT,toEvent:()=>PEe,toNormalizedPath:()=>Nc,tryConvertScriptKindName:()=>Pte,typingsInstaller:()=>Ube,updateProjectIfDirty:()=>Id});var Ube={};k(Ube,{TypingsInstaller:()=>oRt,getNpmCommandForInstallation:()=>Kqe,installNpmPackages:()=>sRt,typingsName:()=>Xqe});var iRt={isEnabled:()=>!1,writeLine:aa};function Yqe(e,t,n,i){try{let s=ZA(t,ii(e,"index.d.ts"),{moduleResolution:2},n);return s.resolvedModule&&s.resolvedModule.resolvedFileName}catch(s){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${s.message}`);return}}function sRt(e,t,n,i){let s=!1;for(let a=n.length;a>0;){let u=Kqe(e,t,n,a);a=u.remaining,s=i(u.command)||s}return s}function Kqe(e,t,n,i){let s=n.length-i,a,u=i;for(;a=`${e} install --ignore-scripts ${(u===n.length?n:n.slice(s,s+u)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(a.length<8e3);)u=u-Math.floor(u/2);return{command:a,remaining:i-u}}var oRt=class{constructor(e,t,n,i,s,a=iRt){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=i,this.throttleLimit=s,this.log=a,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((i,s)=>{t[s]=i});let n={kind:nQ,typesRegistry:t};this.sendResponse(n);break}case"installPackage":{this.installPackage(e);break}default:M.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:l8,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${OT(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=Zg.discoverTypings(this.installTypingHost,this.log.isEnabled()?n=>this.log.writeLine(n):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:n,projectName:i,projectRootPath:s,id:a}=e,u=Am(yi(t),m=>{if(this.installTypingHost.fileExists(ii(m,"package.json")))return m})||s;if(u)this.installWorker(-1,[n],u,m=>{let d=m?`Package ${n} installed.`:`There was an error installing ${n}.`,S={kind:xU,projectName:i,id:a,success:m,message:d};this.sendResponse(S)});else{let m={kind:xU,projectName:i,id:a,success:!1,message:"Could not determine a project root path."};this.sendResponse(m)}}initializeSafeList(){if(this.typesMapLocation){let e=Zg.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=Zg.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=ii(e,"package.json"),n=ii(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){let i=JSON.parse(this.installTypingHost.readFile(t)),s=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${OT(i)}`),this.log.writeLine(`Loaded content of '${n}':${OT(s)}`)),i.devDependencies&&s.dependencies)for(let a in i.devDependencies){if(!Ha(s.dependencies,a))continue;let u=Ul(a);if(!u)continue;let m=Yqe(e,u,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(u);continue}let d=this.packageNameToTypingLocation.get(u);if(d){if(d.typingLocation===m)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${u} from '${m}' conflicts with existing typing file '${d}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${u}' => '${m}'`);let S=s5(s.dependencies,a),E=S&&S.version;if(!E)continue;let x={typingLocation:m,version:new Ym(E)};this.packageNameToTypingLocation.set(u,x)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Yi(e,t=>{let n=MN(t);if(this.missingTypingsSet.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' is in missingTypingsSet - skipping...`);return}let i=Zg.validatePackageName(t);if(i!==Zg.NameValidationResult.Ok){this.missingTypingsSet.add(n),this.log.isEnabled()&&this.log.writeLine(Zg.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${n}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(n)&&Zg.isTypingUpToDate(this.packageNameToTypingLocation.get(n),this.typesRegistry.get(n))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' already has an up-to-date typing - skipping...`);return}return n})}ensurePackageDirectoryExists(e){let t=ii(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let s=this.filterTypings(i);if(s.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,n));return}this.ensurePackageDirectoryExists(t);let a=this.installRunCount;this.installRunCount++,this.sendResponse({kind:iQ,eventId:a,typingsInstallerVersion:se,projectName:e.projectName});let u=s.map(Xqe);this.installTypingsAsync(a,u,t,m=>{try{if(!m){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(s)}`);for(let S of s)this.missingTypingsSet.add(S);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(u)}`);let d=[];for(let S of s){let E=Yqe(t,S,this.installTypingHost,this.log);if(!E){this.missingTypingsSet.add(S);continue}let x=this.typesRegistry.get(S),D=new Ym(x[`ts${j}`]||x[this.latestDistTag]),I={typingLocation:E,version:D};this.packageNameToTypingLocation.set(S,I),d.push(E)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(d)}`),this.sendResponse(this.createSetTypings(e,n.concat(d)))}finally{let d={kind:sQ,eventId:a,projectName:e.projectName,packagesToInstall:u,installSuccess:m,typingsInstallerVersion:se};this.sendResponse(d)}})}ensureDirectoryExists(e,t){let n=yi(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let n=this.projectWatchers.get(e),i=new Set(t);!n||m0(i,s=>!n.has(s))||m0(n,s=>!i.has(s))?(this.projectWatchers.set(e,i),this.sendResponse({kind:l8,projectName:e,files:t})):this.sendResponse({kind:l8,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:bU}}installTypingsAsync(e,t,n,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}};function Xqe(e){return`@types/${e}@ts${j}`}var Vbe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(Vbe||{}),ou=$be(),Jbe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Jbe||{});function qbe(e,t,n,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}var O0;(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function n(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=n;function i(s,a){throw new Error(`Project '${a.getProjectName()}' does not contain document '${s}'`)}e.ThrowProjectDoesNotContainDocument=i})(O0||(O0={}));function Nc(e){return eo(e)}function lL(e,t,n){let i=op(e)?e:Cs(e,t);return n(i)}function Qqe(e){return e}function Zqe(){let e=new Map;return{get(t){return e.get(t)},set(t,n){e.set(t,n)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function zbe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Wbe(e){return`/dev/null/inferredProject${e}*`}function Gbe(e){return`/dev/null/autoImportProviderProject${e}*`}function Hbe(e){return`/dev/null/auxiliaryProject${e}*`}function $be(){return[]}var Ybe=class Zgt{constructor(t,n){this.host=t,this.pendingTimeouts=new Map,this.logger=n.hasLevel(3)?n:void 0}schedule(t,n,i){let s=this.pendingTimeouts.get(t);s&&this.host.clearTimeout(s),this.pendingTimeouts.set(t,this.host.setTimeout(Zgt.run,n,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${s?", Cancelled earlier one":""}`)}cancel(t){let n=this.pendingTimeouts.get(t);return n?(this.host.clearTimeout(n),this.pendingTimeouts.delete(t)):!1}static run(t,n,i){var s,a;(s=sf)==null||s.logStartScheduledOperation(t),n.pendingTimeouts.delete(t),n.logger&&n.logger.info(`Running: ${t}`),i(),(a=sf)==null||a.logStopScheduledOperation()}},Kbe=class eht{constructor(t,n,i){this.host=t,this.delay=n,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(eht.run,this.delay,this))}static run(t){var n,i;t.timerId=void 0,(n=sf)==null||n.logStartScheduledOperation("GC collect");let s=t.logger.hasLevel(2),a=s&&t.host.getMemoryUsage();if(t.host.gc(),s){let u=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${a}, after ${u}`)}(i=sf)==null||i.logStopScheduledOperation()}};function dte(e){let t=Ul(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function eze(e,t,n){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=gv(e,t,ec,n);i>=0&&e.splice(i,1)}var Xbe={};k(Xbe,{ClassificationType:()=>uQ,CommandTypes:()=>Qbe,CompletionTriggerKind:()=>cQ,IndentStyle:()=>ize,JsxEmit:()=>sze,ModuleKind:()=>oze,ModuleResolutionKind:()=>aze,NewLineKind:()=>cze,OrganizeImportsMode:()=>aQ,PollingWatchKind:()=>nze,ScriptTarget:()=>lze,SemicolonPreference:()=>lQ,WatchDirectoryKind:()=>rze,WatchFileKind:()=>tze});var Qbe=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetPasteEdits="getPasteEdits",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e.MapCode="mapCode",e))(Qbe||{}),tze=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(tze||{}),rze=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(rze||{}),nze=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(nze||{}),ize=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(ize||{}),sze=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(sze||{}),oze=(e=>(e.None="none",e.CommonJS="commonjs",e.AMD="amd",e.UMD="umd",e.System="system",e.ES6="es6",e.ES2015="es2015",e.ES2020="es2020",e.ES2022="es2022",e.ESNext="esnext",e.Node16="node16",e.NodeNext="nodenext",e.Preserve="preserve",e))(oze||{}),aze=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(aze||{}),cze=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(cze||{}),lze=(e=>(e.ES3="es3",e.ES5="es5",e.ES6="es6",e.ES2015="es2015",e.ES2016="es2016",e.ES2017="es2017",e.ES2018="es2018",e.ES2019="es2019",e.ES2020="es2020",e.ES2021="es2021",e.ES2022="es2022",e.ES2023="es2023",e.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(lze||{}),Zbe=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return M.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=ok(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,this.ownFileText&&this.info.mTime===sp.getTime()&&(this.info.mTime=(this.host.getModifiedTime(this.info.fileName)||sp).getTime()),i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=CU.fromString(M.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let n=this.getLineMap(),i=n[e],s=e+1t===void 0?t=this.host.readFile(n)||"":t;if(!EA(this.info.fileName)){let s=this.host.getFileSize?this.host.getFileSize(n):i().length;if(s>yte)return M.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${s}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,s),{text:"",fileSize:s}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=Bte.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=Bte.fromString(M.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(M.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return M.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=HC(M.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:n=>e.getAbsolutePositionAndLineText(n+1).lineText};let t=this.getLineMap();return IK(this.text,t)}};function uL(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&Ul(e)[0]==="^"||e.includes(":^")&&!e.includes(bc)}var eEe=class{constructor(e,t,n,i,s,a){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=i,this.path=s,this.containingProjects=[],this.isDynamic=uL(t),this.textStorage=new Zbe(e,this,a),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||_j(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){M.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return xs(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:GI(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){Gv(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!_D(e)&&e.addMissingFileRoot(t.fileName)}$m(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return O0.ThrowNoProject();case 1:return lJ(this.containingProjects[0])||dL(this.containingProjects[0])?O0.ThrowNoProject():this.containingProjects[0];default:let e,t,n,i;for(let s=0;s!e.isOrphan())}isContainedByBackgroundProject(){return Dt(this.containingProjects,dL)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){aRt(e);let t=this.textStorage.positionToLineOffset(e);return cRt(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!bs(this.sourceMapFilePath)&&(Dd(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function aRt(e){M.assert(typeof e=="number",`Expected position ${e} to be a number.`),M.assert(e>=0,"Expected position to be non-negative.")}function cRt(e){M.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),M.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),M.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),M.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var mte={isKnownTypesPackageName:Ng,installPackage:fo,enqueueInstallTypingsRequest:aa,attach:aa,onProjectClosed:aa,globalTypingsCacheLocation:void 0};function uze(e,t){if(e===t||(e||ou).length===0&&(t||ou).length===0)return!0;let n=new Map,i=0;for(let s of e)n.get(s)!==!0&&(n.set(s,!0),i++);for(let s of t){let a=n.get(s);if(a===void 0)return!1;a===!0&&(n.set(s,!1),i--)}return i===0}function lRt(e,t){return e.enable!==t.enable||!uze(e.include,t.include)||!uze(e.exclude,t.exclude)}function uRt(e,t){return H1(e)!==H1(t)}function _Rt(e,t){return e===t?!1:!Jp(e,t)}var tEe=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,n){let i=e.getTypeAcquisition();if(!i||!i.enable)return;let s=this.perProjectCache.get(e.getProjectName());(n||!s||lRt(i,s.typeAcquisition)||uRt(e.getCompilationSettings(),s.compilerOptions)||_Rt(t,s.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:s?s.typings:ou,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,n,i,s){let a=mo(s);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:n,typings:a,unresolvedImports:i,poisoned:!1}),!n||!n.enable?ou:a}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}},_L=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(_L||{});function fL(e,t=!1){let n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let s=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:n.js+=1,n.jsSize+=s;break;case 2:n.jsx+=1,n.jsxSize+=s;break;case 3:ju(i.fileName)?(n.dts+=1,n.dtsSize+=s):(n.ts+=1,n.tsSize+=s);break;case 4:n.tsx+=1,n.tsxSize+=s;break;case 7:n.deferred+=1,n.deferredSize+=s;break}}return n}function fRt(e){let t=fL(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function rEe(e){let t=fL(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function nEe(e){let t=fL(e.getScriptInfos());return t.ts===0&&t.tsx===0}function iEe(e){return!e.some(t=>wc(t,".ts")&&!ju(t)||wc(t,".tsx"))}function sEe(e){return e.generatedFilePath!==void 0}var Sk=class tht{constructor(t,n,i,s,a,u,m,d,S,E,x){switch(this.projectKind=n,this.projectService=i,this.documentRegistry=s,this.compilerOptions=m,this.compileOnSaveEnabled=d,this.watchOptions=S,this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=Ng,this.dirty=!1,this.typingFiles=ou,this.moduleSpecifierCache=CEe(this),this.createHash=so(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=Zg.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=E,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(x),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new V1e(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(a||H1(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=OV(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:M.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let D=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=I=>this.writeLog(I):D.trace&&(this.trace=I=>D.trace(I)),this.realpath=so(D,D.realpath),this.resolutionCache=PX(this,this.currentDirectory,!0),this.languageService=J1e(this,this.documentRegistry,this.projectService.serverMode),u&&this.disableLanguageService(u),this.markAsDirty(),dL(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Id(this),nEe(this)}isJsOnlyProject(){return Id(this),fRt(this)}static resolveModule(t,n,i,s){return tht.importServicePluginSync({name:t},[n],i,s).resolvedModule}static importServicePluginSync(t,n,i,s){M.assertIsDefined(i.require);let a,u;for(let m of n){let d=Wu(i.resolvePath(ii(m,"node_modules")));s(`Loading ${t.name} from ${m} (resolved to ${d})`);let S=i.require(d,t.name);if(!S.error){u=S.module;break}let E=S.error.stack||S.error.message||JSON.stringify(S.error);(a??(a=[])).push(`Failed to load module '${t.name}' from ${d}: ${E}`)}return{pluginConfigEntry:t,resolvedModule:u,errorLogs:a}}static async importServicePluginAsync(t,n,i,s){M.assertIsDefined(i.importPlugin);let a,u;for(let m of n){let d=ii(m,"node_modules");s(`Dynamically importing ${t.name} from ${m} (resolved to ${d})`);let S;try{S=await i.importPlugin(d,t.name)}catch(x){S={module:void 0,error:x}}if(!S.error){u=S.module;break}let E=S.error.stack||S.error.message||JSON.stringify(S.error);(a??(a=[])).push(`Failed to dynamically import module '${t.name}' from ${d}: ${E}`)}return{pluginConfigEntry:t,resolvedModule:u,errorLogs:a}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=P$(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFilesMap.size)return ve;let t;return this.rootFilesMap.forEach(n=>{(this.languageServiceEnabled||n.info&&n.info.isScriptOpen())&&(t||(t=[])).push(n.fileName)}),On(t,this.typingFiles)||ve}getOrCreateScriptInfoAndAttachToProject(t){let n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);if(n){let i=this.rootFilesMap.get(n.path);i&&i.info!==n&&(i.info=n),n.attachToProject(this)}return n}getScriptKind(t){let n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&n.scriptKind}getScriptVersion(t){let n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost,!1);return n&&n.getLatestVersion()}getScriptSnapshot(t){let n=this.getOrCreateScriptInfoAndAttachToProject(t);if(n)return n.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=yi(eo(this.projectService.getExecutingFilePath()));return ii(t,w3(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,n,i,s,a){return this.directoryStructureHost.readDirectory(t,n,i,s,a)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,n){return this.projectService.host.writeFile(t,n)}fileExists(t){let n=this.toPath(t);return!this.isWatchedMissingFile(n)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,n,i,s,a,u){return this.resolutionCache.resolveModuleNameLiterals(t,n,i,s,a,u)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,n,i,s,a,u){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,n,i,s,a,u)}resolveLibrary(t,n,i,s){return this.resolutionCache.resolveLibrary(t,n,i,s)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return rc(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),Eu.FailedLookupLocations,this)}watchAffectingFileLocation(t,n){return this.projectService.watchFactory.watchFile(t,n,2e3,this.projectService.getWatchOptions(this),Eu.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),Eu.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return ti(this.projectErrors,t=>!t.file)||ou}getAllProjectErrors(){return this.projectErrors||ou}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Id(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,n){return this.projectService.getDocumentPositionMapper(this,t,n)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Id(this),this.builderState=cg.create(this.program,this.builderState,!0),Yi(cg.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),n=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(n.path))?n.fileName:void 0)):[]}emitFile(t,n){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:ou};let{emitSkipped:i,diagnostics:s,outputFiles:a}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let u of a){let m=Cs(u.name,this.currentDirectory);n(m,u.text,u.writeByteOrderMark)}if(this.builderState&&Hp(this.compilerOptions)){let u=a.filter(m=>ju(m.name));if(u.length===1){let m=this.program.getSourceFile(t.fileName),d=this.projectService.host.createHash?this.projectService.host.createHash(u[0].text):tw(u[0].text);cg.updateSignatureOfFile(this.builderState,d,m.resolvedPath)}}}return{emitSkipped:i,diagnostics:s}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(M.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return mo(To(this.plugins,n=>{if(typeof n.module.getExternalFiles=="function")try{return n.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let n=this.program.getCompilerOptions();return t===n.configFilePath?n.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),Et(this.externalFiles,n=>this.detachScriptInfoIfNotRoot(n)),this.rootFilesMap.forEach(n=>{var i;return(i=n.info)==null?void 0:i.detachFromProject(this)}),this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(n=>{n.projects.delete(this),n.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(qf(this.missingFilesMap,Dm),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let n=this.projectService.getScriptInfo(t);n&&!this.isRoot(n)&&n.detachFromProject(this)}isClosed(){return this.rootFilesMap===void 0}hasRoots(){var t;return!!((t=this.rootFilesMap)!=null&&t.size)}isOrphan(){return!1}getRootFiles(){return this.rootFilesMap&&Os(Vp(this.rootFilesMap.values(),t=>{var n;return(n=t.info)==null?void 0:n.fileName}))}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return Os(Vp(this.rootFilesMap.values(),t=>t.info))}getScriptInfos(){return this.languageServiceEnabled?kr(this.program.getSourceFiles(),t=>{let n=this.projectService.getScriptInfoForPath(t.resolvedPath);return M.assert(!!n,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),n}):this.getRootScriptInfos()}getExcludedFiles(){return ou}getFileNames(t,n){if(!this.program)return[];if(!this.languageServiceEnabled){let s=this.getRootFiles();if(this.compilerOptions){let a=q1e(this.compilerOptions);a&&(s||(s=[])).push(a)}return s}let i=[];for(let s of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(s)||i.push(s.fileName);if(!n){let s=this.program.getCompilerOptions().configFile;if(s&&(i.push(s.fileName),s.extendedSourceFiles))for(let a of s.extendedSourceFiles)i.push(a)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(n=>({fileName:n,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(n)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let n=this.program.getCompilerOptions().configFile;if(n){if(t===n.fileName)return!0;if(n.extendedSourceFiles){for(let i of n.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let n=this.program.getSourceFileByPath(t.path);return!!n&&n.resolvedPath===t.path}containsFile(t,n){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!n)?this.containsScriptInfo(i):!1}isRoot(t){var n,i;return((i=(n=this.rootFilesMap)==null?void 0:n.get(t.path))==null?void 0:i.info)===t}addRoot(t,n){M.assert(!this.isRoot(t)),this.rootFilesMap.set(t.path,{fileName:n||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let n=this.projectService.toPath(t);this.rootFilesMap.set(n,{fileName:t}),this.markAsDirty()}removeFile(t,n,i){this.isRoot(t)&&this.removeRoot(t),n?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}markAutoImportProviderAsDirty(){var t;this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(t=this.autoImportProviderHost)==null||t.markAsDirty()}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){Id(this)}updateGraph(){var t,n,i,s;(t=kn)==null||t.push(kn.Phase.Session,"updateGraph",{name:this.projectName,kind:_L[this.projectKind]}),(n=sf)==null||n.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let a=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let m=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||ou;for(let S of m)this.cachedUnresolvedImportsPerFile.delete(S);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((a||m.length)&&(this.lastCachedUnresolvedImportsList=pRt(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;let d=this.projectProgramVersion===0&&a;return a&&this.projectProgramVersion++,u&&this.markAutoImportProviderAsDirty(),d&&this.getPackageJsonAutoImportProvider(),(i=sf)==null||i.logStopUpdateGraph(),(s=kn)==null||s.pop(),!a}updateTypingFiles(t){_5(t,this.typingFiles,AP(!this.useCaseSensitiveFileNames()),aa,n=>this.detachScriptInfoFromProject(n))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&qf(this.typingWatchers,Dm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:EU})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let n=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(s,a)=>{let u=this.toPath(s);n.delete(u),this.typingWatchers.has(u)||this.typingWatchers.set(u,a==="FileWatcher"?this.projectService.watchFactory.watchFile(s,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),Eu.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(s,m=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!wc(m,".json"))return this.writeLog("Ignoring files that are not *.json");if(f0(m,ii(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),Eu.TypingInstallerLocationDirectory,this))};for(let s of t){let a=Ul(s);if(a==="package.json"||a==="bower.json"){i(s,"FileWatcher");continue}if(Cm(this.currentDirectory,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){let u=s.indexOf(bc,this.currentDirectory.length+1);i(u!==-1?s.substr(0,u):s,"DirectoryWatcher");continue}if(Cm(this.projectService.typingsInstaller.globalTypingsCacheLocation,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(s,"DirectoryWatcher")}n.forEach((s,a)=>{s.close(),this.typingWatchers.delete(a)})}getCurrentProgram(){return this.program}removeExistingTypings(t){let n=EB(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!n.includes(i))}updateGraphWorker(){var t,n;let i=this.languageService.getCurrentProgram();M.assert(i===this.program),M.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let s=Tc(),{hasInvalidatedResolutions:a,hasInvalidatedLibResolutions:u}=this.resolutionCache.createHasInvalidatedResolutions(Ng,Ng);this.hasInvalidatedResolutions=a,this.hasInvalidatedLibResolutions=u,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=kn)==null||t.push(kn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(n=kn)==null||n.pop(),M.assert(i===void 0||this.program!==void 0);let m=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(m=!0,i){for(let E of i.getSourceFiles()){let x=this.program.getSourceFileByPath(E.resolvedPath);(!x||E.resolvedPath===E.path&&x.resolvedPath!==E.path)&&this.detachScriptInfoFromProject(E.fileName,!!this.program.getSourceFileByPath(E.path),!0)}i.forEachResolvedProjectReference(E=>{this.program.getResolvedProjectReferenceByPath(E.sourceFile.path)||this.detachScriptInfoFromProject(E.sourceFile.fileName,void 0,!0)})}if(this.rootFilesMap.forEach((E,x)=>{var D;let I=this.program.getSourceFileByPath(x),R=E.info;!I||((D=E.info)==null?void 0:D.path)===I.resolvedPath||(E.info=this.projectService.getScriptInfo(I.fileName),M.assert(E.info.isAttached(this)),R?.detachFromProject(this))}),eX(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(E,x)=>this.addMissingFileWatcher(E,x)),this.generatedFilesMap){let E=this.compilerOptions.outFile;sEe(this.generatedFilesMap)?(!E||!this.isValidGeneratedFileWatcher(lf(E)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():E?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((x,D)=>{let I=this.program.getSourceFileByPath(D);(!I||I.resolvedPath!==D||!this.isValidGeneratedFileWatcher(w9(I.fileName,this.compilerOptions,this.program),x))&&(Dd(x),this.generatedFilesMap.delete(D))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&m0(this.changedFilesForExportMapCache,E=>{let x=i.getSourceFileByPath(E),D=this.program.getSourceFileByPath(E);return!x||!D?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(x,D,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let d=this.externalFiles||ou;this.externalFiles=this.getExternalFiles(),_5(this.externalFiles,d,AP(!this.useCaseSensitiveFileNames()),E=>{let x=this.projectService.getOrCreateScriptInfoNotOpenedByClient(E,this.currentDirectory,this.directoryStructureHost,!1);x?.attachToProject(this)},E=>this.detachScriptInfoFromProject(E));let S=Tc()-s;return this.sendPerformanceEvent("UpdateGraph",S),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${m}${this.program?` structureIsReused:: ${aG[this.program.structureIsReused]}`:""} Elapsed: ${S}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),m}sendPerformanceEvent(t,n){this.projectService.sendPerformanceEvent(t,n)}detachScriptInfoFromProject(t,n,i){let s=this.projectService.getScriptInfo(t);s&&(s.detachFromProject(this),n||this.resolutionCache.removeResolutionsOfFile(s.path,i))}addMissingFileWatcher(t,n){var i;if(Gv(this)){let a=this.projectService.configFileExistenceInfoCache.get(t);if((i=a?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return a6}let s=this.projectService.watchFactory.watchFile(Cs(n,this.currentDirectory),(a,u)=>{Gv(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(a,t,u),u===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),s.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),Eu.MissingFile,this);return s}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,n){if(this.compilerOptions.outFile)this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(n);if(this.generatedFilesMap){if(sEe(this.generatedFilesMap)){M.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),Eu.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,n){return this.toPath(t)===n.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(sEe(this.generatedFilesMap)?Dd(this.generatedFilesMap):qf(this.generatedFilesMap,Dd),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&!n.isAttached(this)?O0.ThrowProjectDoesNotContainDocument(t,this):n}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,n,i){if(this.isInitialLoadPending())return`	Files (0) InitialLoadPending
`;if(!this.program)return`	Files (0) NoProgram
`;let s=this.program.getSourceFiles(),a=`	Files (${s.length})
`;if(t){for(let u of s)a+=`	${u.fileName}${i?` ${u.version} ${JSON.stringify(u.text)}`:""}
`;n&&(a+=`

`,RX(this.program,u=>a+=`	${u}
`))}return a}print(t,n,i){var s;this.writeLog(`Project '${this.projectName}' (${_L[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(s=this.noDtsResolutionProject)==null||s.print(!1,!1,!1)}setCompilerOptions(t){var n;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(n=this.noDtsResolutionProject)==null||n.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),H5(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,n){var i,s;let a=n?d=>Os(d.entries(),([S,E])=>({fileName:S,isSourceOfProjectReferenceRedirect:E})):d=>Os(d.keys());this.isInitialLoadPending()||Id(this);let u={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:_D(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},m=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!m)return{info:u,projectErrors:this.getGlobalProjectErrors()};let d=this.lastReportedFileNames,S=((i=this.externalFiles)==null?void 0:i.map(L=>({fileName:Nc(L),isSourceOfProjectReferenceRedirect:!1})))||ou,E=CP(this.getFileNamesWithRedirectInfo(!!n).concat(S),L=>L.fileName,L=>L.isSourceOfProjectReferenceRedirect),x=new Map,D=new Map,I=m?Os(m.keys()):[],R=[];return Iu(E,(L,F)=>{d.has(F)?n&&L!==d.get(F)&&R.push({fileName:F,isSourceOfProjectReferenceRedirect:L}):x.set(F,L)}),Iu(d,(L,F)=>{E.has(F)||D.set(F,L)}),this.lastReportedFileNames=E,this.lastReportedVersion=this.projectProgramVersion,{info:u,changes:{added:a(x),removed:a(D),updated:n?I.map(L=>({fileName:L,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(L)})):I,updatedRedirects:n?R:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let d=this.getFileNamesWithRedirectInfo(!!n),S=((s=this.externalFiles)==null?void 0:s.map(x=>({fileName:Nc(x),isSourceOfProjectReferenceRedirect:!1})))||ou,E=d.concat(S);return this.lastReportedFileNames=CP(E,x=>x.fileName,x=>x.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:u,files:n?E:E.map(x=>x.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,ii(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let s of this.projectService.globalPlugins)s&&(t.plugins&&t.plugins.some(a=>a.name===s)||(this.projectService.logger.info(`Loading global plugin ${s}`),this.enablePlugin({name:s,global:!0},i)))}enablePlugin(t,n){this.projectService.requestEnablePlugin(this,t,n)}enableProxy(t,n){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${n.name} because it did not expose a proper factory function`);return}let i={config:n,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},s=t({typescript:zqe}),a=s.create(i);for(let u of Object.keys(this.languageService))u in a||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${u} in created LS. Patching.`),a[u]=this.languageService[u]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=a,this.plugins.push({name:n.name,module:s})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,n){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(n)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,n){return this.projectService.serverMode!==0?ou:this.projectService.getPackageJsonsVisibleToFile(t,this,n)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(ii(this.currentDirectory,s6),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=dZ(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||D8(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,n;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(n=this.projectService.host.trace)==null?void 0:n.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,n,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Id(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let s=this.includePackageJsonAutoImports();if(s){(t=kn)==null||t.push(kn.Phase.Session,"getPackageJsonAutoImportProvider");let a=Tc();if(this.autoImportProviderHost=lEe.create(s,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Id(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Tc()-a),(n=kn)==null||n.pop(),this.autoImportProviderHost.getCurrentProgram();(i=kn)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!Iu(this.projectService.openFiles,(t,n)=>this.projectService.tryGetDefaultProjectForFile(this.projectService.getScriptInfoForPath(n))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return M.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new aEe(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}runWithTemporaryFileUpdate(t,n,i){var s,a,u,m;let d=this.program,S=M.checkDefined((s=this.program)==null?void 0:s.getSourceFile(t),"Expected file to be part of program"),E=M.checkDefined(S.getText());(a=this.getScriptInfo(t))==null||a.editContent(0,E.length,n),this.updateGraph();try{i(this.program,d,(u=this.program)==null?void 0:u.getSourceFile(t))}finally{(m=this.getScriptInfo(t))==null||m.editContent(0,this.program.getSourceFile(t).getText().length,E)}}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ve,lib:ve,noLib:!0}}};function pRt(e,t){var n,i;let s=e.getSourceFiles();(n=kn)==null||n.push(kn.Phase.Session,"getUnresolvedImports",{count:s.length});let a=e.getTypeChecker().getAmbientModules().map(m=>em(m.getName())),u=BC(To(s,m=>dRt(e,m,a,t)));return(i=kn)==null||i.pop(),u}function dRt(e,t,n,i){return mv(i,t.path,()=>{let s;return e.forEachResolvedModule(({resolvedModule:a},u)=>{(!a||!sO(a.extension))&&!Su(u)&&!n.some(m=>m===u)&&(s=Ut(s,PB(u).packageName))},t),s||ou})}var oEe=class extends Sk{constructor(e,t,n,i,s,a,u){super(e.newInferredProjectName(),0,e,t,void 0,void 0,n,!1,i,e.host,a),this._isJsInferredProject=!1,this.typeAcquisition=u,this.projectRootPath=s&&e.toCanonicalFileName(s),!s&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=NQ(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){M.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForScriptInfo(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&Oi(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Et(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForScriptInfo(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:rEe(this),include:ve,exclude:ve}}},aEe=class extends Sk{constructor(e,t,n,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,n,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},cEe=class Awe extends Sk{constructor(t,n,i,s){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,s,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=n,this.useSourceOfProjectReferenceRedirect=so(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=so(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,n,i,s){var a,u;if(!t)return ve;let m=n.getCurrentProgram();if(!m)return ve;let d=Tc(),S,E,x=ii(n.currentDirectory,s6),D=n.getPackageJsonsForAutoImport(ii(n.currentDirectory,x));for(let ee of D)(a=ee.dependencies)==null||a.forEach((W,pe)=>J(pe)),(u=ee.peerDependencies)==null||u.forEach((W,pe)=>J(pe));let I=0;if(S){let ee=n.getSymlinkCache();for(let W of Os(S.keys())){if(t===2&&I>this.maxDependencies)return n.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),ve;let pe=cK(W,n.currentDirectory,s,i,m.getModuleResolutionCache());if(pe){let re=$(pe,m,ee);if(re){I+=F(re);continue}}if(!Et([n.currentDirectory,n.getGlobalTypingsCacheLocation()],re=>{if(re){let ue=cK(`@types/${W}`,re,s,i,m.getModuleResolutionCache());if(ue){let ce=$(ue,m,ee);return I+=F(ce),!0}}})&&pe&&s.allowJs&&s.maxNodeModuleJsDepth){let re=$(pe,m,ee,!0);I+=F(re)}}}let R=m.getResolvedProjectReferences(),L=0;return R?.length&&n.projectService.getHostPreferences().includeCompletionsForModuleExports&&R.forEach(ee=>{if(ee?.commandLine.options.outFile)L+=F(q([Y1(ee.commandLine.options.outFile,".d.ts")]));else if(ee){let W=nf(()=>rk(ee.commandLine,!n.useCaseSensitiveFileNames()));L+=F(q(Yi(ee.commandLine.fileNames,pe=>!ju(pe)&&!wc(pe,".json")&&!m.getSourceFile(pe)?BN(pe,ee.commandLine,!n.useCaseSensitiveFileNames(),W):void 0)))}}),E?.size&&n.log(`AutoImportProviderProject: found ${E.size} root files in ${I} dependencies ${L} referenced projects in ${Tc()-d} ms`),E?Os(E.values()):ve;function F(ee){return ee?.length?(E??(E=new Set),ee.forEach(W=>E.add(W)),1):0}function J(ee){fs(ee,"@types/")||(S||(S=new Set)).add(ee)}function $(ee,W,pe,K){var re;let ue=mK(ee,s,i,W.getModuleResolutionCache(),K);if(ue){let ce=(re=i.realpath)==null?void 0:re.call(i,ee.packageDirectory),ne=ce?n.toPath(ce):void 0,le=ne&&ne!==n.toPath(ee.packageDirectory);return le&&pe.setSymlinkedDirectory(ee.packageDirectory,{real:vu(ce),realPath:vu(ne)}),q(ue,le?me=>me.replace(ee.packageDirectory,ce):void 0)}}function q(ee,W){return Yi(ee,pe=>{let K=W?W(pe):pe;if(!m.getSourceFile(K)&&!(W&&m.getSourceFile(pe)))return K})}}static create(t,n,i,s){if(t===0)return;let a={...n.getCompilerOptions(),...this.compilerOptionsOverrides},u=this.getRootFileNames(t,n,i,a);if(u.length)return new Awe(n,u,s,a)}isEmpty(){return!Dt(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Awe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let n=this.getCurrentProgram(),i=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||ve}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}};cEe.maxDependencies=10,cEe.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:ve,lib:ve,noLib:!0};var lEe=cEe,uEe=class extends Sk{constructor(e,t,n,i,s,a){super(e,1,n,i,!1,void 0,{},!1,void 0,s,yi(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.isInitialLoadPending=YS,this.sendLoadingProjectFinish=!1,this.pendingUpdateLevel=2,this.pendingUpdateReason=a}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=eo(e),n=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(n);return i||this.projectService.configFileExistenceInfoCache.set(n,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(eo(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){if(this.deferredClose)return!1;let e=this.dirty;this.isInitialLoadPending=Ng;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let n;switch(t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=M.checkDefined(this.pendingUpdateReason);this.projectService.reloadConfiguredProject(this,i),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),t===2||n&&(!e||!this.triggerFileForConfigFileDiag||this.getCurrentProgram().structureIsReused===2)?this.triggerFileForConfigFileDiag=void 0:this.triggerFileForConfigFileDiag||this.projectService.sendConfigFileDiagEvent(this,void 0,!1),n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){M.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let s=yi(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${s} to search paths`),i.unshift(s)}if(e.plugins)for(let s of e.plugins)this.enablePlugin(s,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return ti(this.projectErrors,e=>!e.file)||ou}getAllProjectErrors(){return this.projectErrors||ou}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}markAsDirty(){this.deferredClose||super.markAsDirty()}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}isOrphan(){return!!this.deferredClose}getEffectiveTypeRoots(){return JO(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){vB(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},gte=class extends Sk{constructor(e,t,n,i,s,a,u,m){super(e,2,t,n,!0,s,i,a,m,t.host,yi(u||Wu(e))),this.externalProjectName=e,this.compileOnSaveEnabled=a,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}};function _D(e){return e.projectKind===0}function Gv(e){return e.projectKind===1}function pL(e){return e.projectKind===2}function dL(e){return e.projectKind===3||e.projectKind===4}function lJ(e){return Gv(e)&&!!e.deferredClose}var hte=20*1024*1024,yte=4*1024*1024,uJ="projectsUpdatedInBackground",vte="projectLoadingStart",Ste="projectLoadingFinish",Tte="largeFileReferenced",bte="configFileDiag",Ete="projectLanguageServiceState",xte="projectInfo",_Ee="openFileInfo",Cte="createFileWatcher",Ate="createDirectoryWatcher",kte="closeFileWatcher",_ze="*ensureProjectForOpenFiles*";function fze(e){let t=new Map;for(let n of e)if(typeof n.type=="object"){let i=n.type;i.forEach(s=>{M.assert(typeof s=="number")}),t.set(n.name,i)}return t}var mRt=fze(og),gRt=fze(KA),hRt=new Map(Object.entries({none:0,block:1,smart:2})),fEe={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}};function fD(e){return bs(e.indentStyle)&&(e.indentStyle=hRt.get(e.indentStyle.toLowerCase()),M.assert(e.indentStyle!==void 0)),e}function _J(e){return mRt.forEach((t,n)=>{let i=e[n];bs(i)&&(e[n]=t.get(i.toLowerCase()))}),e}function mL(e,t){let n,i;return KA.forEach(s=>{let a=e[s.name];if(a===void 0)return;let u=gRt.get(s.name);(n||(n={}))[s.name]=u?bs(a)?u.get(a.toLowerCase()):a:g2(s,a,t||"",i||(i=[]))}),n&&{watchOptions:n,errors:i}}function pEe(e){let t;return lB.forEach(n=>{let i=e[n.name];i!==void 0&&((t||(t={}))[n.name]=i)}),t}function Pte(e){return bs(e)?Nte(e):e}function Nte(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function dEe(e){let{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var Dte={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){let i=NP(e);i&&Dt(t,s=>s.extension===i?(n=s.scriptKind,!0):!1)}return n},hasMixedContent:(e,t)=>Dt(t,n=>n.isMixedContent&&wc(e,n.extension))},Ite={getFileName:e=>e.fileName,getScriptKind:e=>Pte(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function pze(e,t){for(let n of t)if(n.getProjectName()===e)return n}var mEe={close:aa};function dze(e,t){if(!(!t||wte(e)))return t.get(e.path)}function yRt(e){return!!e.containingProjects}function wte(e){return!!e.configFileInfo}var gEe=(e=>(e[e.Find=0]="Find",e[e.Create=1]="Create",e[e.Reload=2]="Reload",e))(gEe||{});function vRt(e,t,n,i,s,a,u,m){for(;;){if(!t.isInitialLoadPending()&&(!t.getCompilerOptions().composite||t.getCompilerOptions().disableSolutionSearching))return;let d=t.projectService.getConfigFileNameForFile({fileName:t.getConfigFilePath(),path:e.path,configFileInfo:!0},i===0);if(!d)return;let S=t.projectService.findCreateOrReloadConfiguredProject(d,i,s,a,void 0,u,!0,m);if(!S)return;S.project.isInitialLoadPending()&&t.getCompilerOptions().composite&&S.project.setPotentialProjectReference(t.canonicalConfigFilePath);let E=n(S.project);if(E)return E;t=S.project}}function Ote(e,t,n,i,s,a,u,m){var d;let S=(d=e.getCurrentProgram())==null?void 0:d.getResolvedProjectReferences();if(!S)return;let E=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(E){let I=Nc(E.sourceFile.fileName),R=e.projectService.findConfiguredProjectByProjectName(I,a);if(R){let L=D(R);if(L)return L}else if(i!==0){let L=hEe(S,e.getCompilerOptions(),(F,J)=>E===F?x(F,J):void 0,i,e.projectService);if(L)return L}}return hEe(S,e.getCompilerOptions(),(I,R)=>E!==I?x(I,R):void 0,i,e.projectService);function x(I,R){let L=e.projectService.findCreateOrReloadConfiguredProject(Nc(I.sourceFile.fileName),R,s,a,u,m);return L&&(R===i?n(L.project,L.sentConfigFileDiag):D(L.project))}function D(I){let R=!1;switch(i){case 1:R=vze(I,u);break;case 2:R=I.projectService.reloadConfiguredProjectClearingSemanticCache(I,s,m);break;case 0:break;default:M.assertNever(i)}let L=n(I,R);if(L)return L}}function hEe(e,t,n,i,s,a){let u=t.disableReferencedProjectLoad?0:i;return Et(e,m=>{if(!m)return;let d=Nc(m.sourceFile.fileName),S=s.toCanonicalFileName(d),E=a?.get(S);if(E!==void 0&&E>=u)return;let x=n(m,u);return x||((a||(a=new Map)).set(S,u),m.references&&hEe(m.references,m.commandLine.options,n,u,s,a))})}function mze(e,t){return e.potentialProjectReferences&&m0(e.potentialProjectReferences,t)}function SRt(e,t,n,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?mze(e,i):Et(e.getProjectReferences(),n)}function yEe(e,t,n){let i=n&&e.projectService.configuredProjects.get(n);return i&&t(i)}function gze(e,t){return SRt(e,n=>yEe(e,t,n.sourceFile.path),n=>yEe(e,t,e.toPath(JN(n))),n=>yEe(e,t,n))}function TRt(e,t){return`${bs(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function hze(e){return!e.isScriptOpen()&&e.mTime!==void 0}function Id(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function yze(e,t,n){if(!n&&(e.invalidateResolutionsOfFailedLookupLocations(),!e.dirty))return!1;e.triggerFileForConfigFileDiag=t;let i=e.pendingUpdateLevel;if(e.updateGraph(),!e.triggerFileForConfigFileDiag&&!n)return i===2;let s=e.projectService.sendConfigFileDiagEvent(e,t,n);return e.triggerFileForConfigFileDiag=void 0,s}function vze(e,t){if(t){if(yze(e,t,!1))return!0}else Id(e);return!1}function Sze(e){return`Creating possible configured project for ${e.fileName} to open`}function Rte(e){return`User requested reload projects: ${e}`}function vEe(e){Gv(e)&&(e.projectOptions=!0)}function SEe(e){let t=1;return()=>e(t++)}function TEe(){return{idToCallbacks:new Map,pathToId:new Map}}function bRt(e,t){if(!t||!e.eventHandler||!e.session)return;let n=TEe(),i=TEe(),s=TEe(),a=1;return e.session.addProtocolHandler("watchChange",I=>(S(I.arguments),{responseRequired:!1})),{watchFile:u,watchDirectory:m,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function u(I,R){return d(n,I,R,L=>({eventName:Cte,data:{id:L,path:I}}))}function m(I,R,L){return d(L?s:i,I,R,F=>({eventName:Ate,data:{id:F,path:I,recursive:!!L,ignoreUpdate:I.endsWith("/node_modules")?void 0:!0}}))}function d({pathToId:I,idToCallbacks:R},L,F,J){let $=e.toPath(L),q=I.get($);q||I.set($,q=a++);let ee=R.get(q);return ee||(R.set(q,ee=new Set),e.eventHandler(J(q))),ee.add(F),{close(){let W=R.get(q);W?.delete(F)&&(W.size||(R.delete(q),I.delete($),e.eventHandler({eventName:kte,data:{id:q}})))}}}function S(I){Ms(I)?I.forEach(E):E(I)}function E({id:I,created:R,deleted:L,updated:F}){x(I,R,0),x(I,L,2),x(I,F,1)}function x(I,R,L){R?.length&&(D(n,I,R,(F,J)=>F(J,L)),D(i,I,R,(F,J)=>F(J)),D(s,I,R,(F,J)=>F(J)))}function D(I,R,L,F){var J;(J=I.idToCallbacks.get(R))==null||J.forEach($=>{L.forEach(q=>F($,Wu(q)))})}}var Tze=class kwe{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=SEe(Wbe),this.newAutoImportProviderProjectName=SEe(Gbe),this.newAuxiliaryProjectName=SEe(Hbe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.rootOfInferredProjects=new Set,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=fEe,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=aa,this.verifyDocumentRegistry=aa,this.verifyProgram=aa,this.onProjectCreation=aa;var n;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||mte,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||ou,this.pluginProbeLocations=t.pluginProbeLocations||ou,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?ii(yi(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=vd()),this.currentDirectory=Nc(this.host.getCurrentDirectory()),this.toCanonicalFileName=__(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?vu(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Ybe(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new tEe(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:AU(this.host.newLine),preferences:am,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=SZ(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,s=i!==0?a=>this.logger.info(a):aa;this.packageJsonCache=AEe(this),this.watchFactory=this.serverMode!==0?{watchFile:c6,watchDirectory:c6}:tX(bRt(this,t.canUseWatchEvents)||this.host,i,s,TRt),(n=t.incrementalVerifier)==null||n.call(t,this)}toPath(t){return rc(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return Cs(t,this.host.getCurrentDirectory())}setDocument(t,n,i){let s=M.checkDefined(this.getScriptInfoForPath(n));s.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,n){let i=this.getScriptInfoForPath(n);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,n){if(!this.eventHandler)return;let i={eventName:Ete,data:{project:t,languageServiceEnabled:n}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let n=JSON.parse(t);for(let i of Object.keys(n.typesMap))n.typesMap[i].match=new RegExp(n.typesMap[i].match,"i");this.safelist=n.typesMap;for(let i in n.simpleMap)Ha(n.simpleMap,i)&&this.legacySafelist.set(i,n.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=fEe,this.legacySafelist.clear()}}updateTypingsForProject(t){let n=this.findProject(t.projectName);if(n)switch(t.kind){case bU:n.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case EU:this.typingsCache.enqueueInstallTypingsForProject(n,n.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var n;(n=this.findProject(t.projectName))==null||n.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(_ze,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(lJ(t)||(t.markAsDirty(),dL(t)))return;let n=t.getProjectName();this.pendingProjectUpdates.set(n,t),this.throttledOperations.schedule(n,250,()=>{this.pendingProjectUpdates.delete(n)&&Id(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:uJ,data:{openFiles:Os(this.openFiles.keys(),n=>this.getScriptInfoForPath(n).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,n){if(!this.eventHandler)return;let i={eventName:Tte,data:{file:t,fileSize:n,maxFileSize:yte}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,n){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:vte,data:{project:t,reason:n}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let n={eventName:Ste,data:{project:t}};this.eventHandler(n)}sendPerformanceEvent(t,n){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:n})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,n){if(t.length){for(let i of t)n&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,n){M.assert(n===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=_J(t),s=mL(t,n),a=pEe(t);i.allowNonTsExtensions=!0;let u=n&&this.toCanonicalFileName(n);u?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(u,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(u,s||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(u,a)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=s,this.typeAcquisitionForInferredProjects=a);for(let m of this.inferredProjects)(u?m.projectRootPath===u:!m.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(m.projectRootPath))&&(m.setCompilerOptions(i),m.setTypeAcquisition(a),m.setWatchOptions(s?.watchOptions),m.setProjectErrors(s?.errors),m.compileOnSaveEnabled=i.compileOnSave,m.markAsDirty(),this.delayUpdateProjectGraph(m));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return zbe(t)?pze(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(Nc(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(n=>{!n.isOrphan()&&n.languageServiceEnabled&&t(n)})}getDefaultProjectForFile(t,n){return n?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let n=bs(t)?this.getScriptInfoForNormalizedPath(t):t;return n&&!n.isOrphan()?n.getDefaultProject():void 0}tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t){var n;let i=bs(t)?this.getScriptInfoForNormalizedPath(t):t;if(i)return(n=this.pendingOpenFileProjectUpdates)!=null&&n.delete(i.path)&&(this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(i,1),i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,this.openFiles.get(i.path))),this.tryGetDefaultProjectForFile(i)}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForEnsuringConfiguredProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let n=bs(t)?this.getScriptInfoForNormalizedPath(t):t;return n?n.getDefaultProject():(this.logErrorForScriptInfoNotFound(bs(t)?t:t.fileName),O0.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let n=i=>{t=Id(i)||t};this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let n=this.getScriptInfoForNormalizedPath(t);return n&&n.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let n=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...n&&n.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,n){M.assert(!t.isScriptOpen()),n===2?this.handleDeletedFile(t,!0):(t.deferredDelete&&(t.deferredDelete=void 0),t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(bs(t.sourceMapFilePath)){let n=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(n?.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((n,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let n=this.getScriptInfoForPath(t);n&&this.delayUpdateProjectGraphs(n.containingProjects,!0)}handleDeletedFile(t,n){M.assert(!t.isScriptOpen()),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t),t.detachAllProjects(),n?(t.delayReloadNonMixedContentFile(),t.deferredDelete=!0):this.deleteScriptInfo(t)}watchWildcardDirectory(t,n,i,s){let a=this.watchFactory.watchDirectory(t,m=>{let d=this.toPath(m),S=s.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(m,d);if(Ul(d)==="package.json"&&!D8(d)&&(S&&S.fileExists||!S&&this.host.fileExists(m))){let x=this.getNormalizedAbsolutePath(m);this.logger.info(`Config: ${i} Detected new package.json: ${x}`),this.packageJsonCache.addOrUpdate(x,d),this.watchPackageJsonFile(x,d,u)}let E=this.findConfiguredProjectByProjectName(i);XM({watchedDirPath:this.toPath(t),fileOrDirectory:m,fileOrDirectoryPath:d,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:s.parsedCommandLine.options,program:E?.getCurrentProgram()||s.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:x=>this.logger.info(x),toPath:x=>this.toPath(x),getScriptKind:E?x=>E.getScriptKind(x):void 0})||(s.updateLevel!==2&&(s.updateLevel=1),s.projects.forEach((x,D)=>{var I;if(!x)return;let R=this.getConfiguredProjectByCanonicalConfigFilePath(D);if(!R)return;if(E!==R&&this.getHostPreferences().includeCompletionsForModuleExports){let F=this.toPath(i);jn((I=R.getCurrentProgram())==null?void 0:I.getResolvedProjectReferences(),J=>J?.sourceFile.path===F)&&R.markAutoImportProviderAsDirty()}let L=E===R?1:0;if(!(R.pendingUpdateLevel>L))if(this.openFiles.has(d))if(M.checkDefined(this.getScriptInfoForPath(d)).isAttached(R)){let J=Math.max(L,R.openFileWatchTriggered.get(d)||0);R.openFileWatchTriggered.set(d,J)}else R.pendingUpdateLevel=L,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(R);else R.pendingUpdateLevel=L,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(R)}))},n,this.getWatchOptionsFromProjectWatchOptions(s.parsedCommandLine.watchOptions,yi(i)),Eu.WildcardDirectory,i),u={packageJsonWatches:void 0,close(){var m;a&&(a.close(),a=void 0,(m=u.packageJsonWatches)==null||m.forEach(d=>{d.projects.delete(u),d.close()}),u.packageJsonWatches=void 0)}};return u}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,n){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let s=!1;return i.config.updateLevel=2,i.config.projects.forEach((a,u)=>{var m;let d=this.getConfiguredProjectByCanonicalConfigFilePath(u);if(d)if(s=!0,u===t){if(d.isInitialLoadPending())return;d.pendingUpdateLevel=2,d.pendingUpdateReason=n,this.delayUpdateProjectGraph(d),d.markAutoImportProviderAsDirty()}else{let S=this.toPath(t);d.resolutionCache.removeResolutionsFromProjectReferenceRedirects(S),this.delayUpdateProjectGraph(d),this.getHostPreferences().includeCompletionsForModuleExports&&jn((m=d.getCurrentProgram())==null?void 0:m.getResolvedProjectReferences(),E=>E?.sourceFile.path===S)&&d.markAutoImportProviderAsDirty()}}),s}onConfigFileChanged(t,n,i){let s=this.configFileExistenceInfoCache.get(n),a=this.getConfiguredProjectByCanonicalConfigFilePath(n),u=a?.deferredClose;i===2?(s.exists=!1,a&&(a.deferredClose=!0)):(s.exists=!0,u&&(a.deferredClose=void 0,a.markAsDirty())),this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(n,"Change in config file detected");let m=new Set(a?[a]:void 0);this.openFiles.forEach((d,S)=>{var E,x;let D=this.configFileForOpenFiles.get(S);if(!((E=s.openFilesImpactedByConfigFile)!=null&&E.has(S)))return;this.configFileForOpenFiles.delete(S);let I=this.getScriptInfoForPath(S),R=this.getConfigFileNameForFile(I,!1);if(!R)return;let L=this.findConfiguredProjectByProjectName(R)??this.createConfiguredProject(R,`Change in config file ${t} detected, ${Sze(I)}`);(x=this.pendingOpenFileProjectUpdates)!=null&&x.has(S)||(this.pendingOpenFileProjectUpdates??(this.pendingOpenFileProjectUpdates=new Map)).set(S,D),kg(m,L)&&L.isInitialLoadPending()&&this.delayUpdateProjectGraph(L)}),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),M.shouldAssert(1)&&this.filenameToScriptInfo.forEach(n=>M.assert(!n.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(Os(Vp(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(s=>s.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:qC(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:qC(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,n){M.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?n||this.currentDirectory:yi(op(t.fileName)?t.fileName:Cs(t.fileName,n?this.getNormalizedAbsolutePath(n):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(GI(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let s of this.inferredProjects){if(s===i||s.isOrphan())continue;let a=s.getRootScriptInfos();M.assert(a.length===1||!!s.projectRootPath),a.length===1&&Et(a[0].containingProjects,u=>u!==a[0].containingProjects[0]&&!u.isOrphan())&&s.removeFile(a[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,n)=>{let i=this.getScriptInfoForPath(n);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,n){var i;let s=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(s),this.stopWatchingConfigFilesForScriptInfo(t);let a=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(a)===t&&this.openFilesWithNonRootedDiskPath.delete(a);let u=!1;for(let m of t.containingProjects){if(Gv(m)){t.hasMixedContent&&t.registerFileUpdate();let d=m.openFileWatchTriggered.get(t.path);d!==void 0&&(m.openFileWatchTriggered.delete(t.path),m.pendingUpdateLevelthis.onConfigFileChanged(t,n,S),2e3,this.getWatchOptionsFromProjectWatchOptions((a=(s=u?.config)==null?void 0:s.parsedCommandLine)==null?void 0:a.watchOptions,yi(t)),Eu.ConfigFile,i));let m=u.config.projects;m.set(i.canonicalConfigFilePath,m.get(i.canonicalConfigFilePath)||!1)}releaseParsedConfig(t,n){var i,s,a;let u=this.configFileExistenceInfoCache.get(t);(i=u.config)!=null&&i.projects.delete(n.canonicalConfigFilePath)&&((s=u.config)!=null&&s.projects.size||(u.config=void 0,ZK(t,this.sharedExtendedConfigFileWatchers),M.checkDefined(u.watcher),(a=u.openFilesImpactedByConfigFile)!=null&&a.size?u.inferredProjectRoots?aU(yu(yi(t)))||(u.watcher.close(),u.watcher=mEe):(u.watcher.close(),u.watcher=void 0):(u.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}stopWatchingConfigFilesForScriptInfo(t){if(this.serverMode!==0)return;let n=this.rootOfInferredProjects.delete(t),i=t.isScriptOpen();i&&!n||this.forEachConfigFileLocation(t,s=>{var a,u,m;let d=this.configFileExistenceInfoCache.get(s);if(d){if(i){if(!((a=d?.openFilesImpactedByConfigFile)!=null&&a.has(t.path)))return}else if(!((u=d.openFilesImpactedByConfigFile)!=null&&u.delete(t.path)))return;n&&(d.inferredProjectRoots--,d.watcher&&!d.config&&!d.inferredProjectRoots&&(d.watcher.close(),d.watcher=void 0)),!((m=d.openFilesImpactedByConfigFile)!=null&&m.size)&&!d.config&&(M.assert(!d.watcher),this.configFileExistenceInfoCache.delete(s))}})}startWatchingConfigFilesForInferredProjectRoot(t){this.serverMode===0&&(M.assert(t.isScriptOpen()),this.rootOfInferredProjects.add(t),this.forEachConfigFileLocation(t,(n,i)=>{let s=this.configFileExistenceInfoCache.get(n);s?s.inferredProjectRoots=(s.inferredProjectRoots??0)+1:(s={exists:this.host.fileExists(i),inferredProjectRoots:1},this.configFileExistenceInfoCache.set(n,s)),(s.openFilesImpactedByConfigFile??(s.openFilesImpactedByConfigFile=new Set)).add(t.path),s.watcher||(s.watcher=aU(yu(yi(n)))?this.watchFactory.watchFile(i,(a,u)=>this.onConfigFileChanged(i,n,u),2e3,this.hostConfiguration.watchOptions,Eu.ConfigFileForInferredRoot):mEe)}))}forEachConfigFileLocation(t,n){if(this.serverMode!==0)return;M.assert(!yRt(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(M.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let a=yi(t.fileName),u=()=>Cm(i,a,this.currentDirectory,!this.host.useCaseSensitiveFileNames),m=!i||!u(),d=!wte(t);do{if(d){let E=lL(a,this.currentDirectory,this.toCanonicalFileName),x=ii(a,"tsconfig.json"),D=n(ii(E,"tsconfig.json"),x);if(D)return x;let I=ii(a,"jsconfig.json");if(D=n(ii(E,"jsconfig.json"),I),D)return I;if(T5(E))break}let S=yi(a);if(S===a)break;a=S,d=!0}while(m||u())}findDefaultConfiguredProject(t){var n;return t.isScriptOpen()?(n=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,0))==null?void 0:n.defaultProject:void 0}getConfigFileNameForFileFromCache(t,n){if(n){let i=dze(t,this.pendingOpenFileProjectUpdates);if(i!==void 0)return i}return dze(t,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(t,n){this.openFiles.has(t.path)&&(wte(t)||this.configFileForOpenFiles.set(t.path,n||!1))}getConfigFileNameForFile(t,n){let i=this.getConfigFileNameForFileFromCache(t,n);if(i!==void 0)return i||void 0;if(n)return;let s=this.forEachConfigFileLocation(t,(a,u)=>this.configFileExists(u,a,t));return this.logger.info(`getConfigFileNameForFile:: File: ${t.fileName} ProjectRootPath: ${this.openFiles.get(t.path)}:: Result: ${s}`),this.setConfigFileNameForFileInCache(t,s),s}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(xEe),this.configuredProjects.forEach(xEe),this.inferredProjects.forEach(xEe),this.logger.info("Open files: "),this.openFiles.forEach((t,n)=>{let i=this.getScriptInfoForPath(n);this.logger.info(`	FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(`		Projects: ${i.containingProjects.map(s=>s.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t,n){let i=this.toCanonicalFileName(t),s=this.getConfiguredProjectByCanonicalConfigFilePath(i);return n?s:s?.deferredClose?void 0:s}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return pze(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,n,i,s){if(n&&n.disableSizeLimit||!this.host.getFileSize)return;let a=hte;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(m=>a-=m||0);let u=0;for(let m of i){let d=s.getFileName(m);if(!EA(d)&&(u+=this.host.getFileSize(d),u>hte||u>a)){let S=i.map(E=>s.getFileName(E)).filter(E=>!EA(E)).map(E=>({name:E,size:this.host.getFileSize(E)})).sort((E,x)=>x.size-E.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${u}). Largest files: ${S.map(E=>`${E.name}:${E.size}`).join(", ")}`),d}}this.projectToSizeMap.set(t,u)}createExternalProject(t,n,i,s,a){let u=_J(i),m=mL(i,yi(Wu(t))),d=new gte(t,this,this.documentRegistry,u,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,u,n,Ite),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,m?.watchOptions);return d.setProjectErrors(m?.errors),d.excludedFiles=a,this.addFilesToNonInferredProject(d,n,Ite,s),this.externalProjects.push(d),d}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){vEe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){vEe(t);return}let n=Gv(t)?t.projectOptions:void 0;vEe(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:fL(t.getScriptInfos(),!0),compilerOptions:nge(t.getCompilationSettings()),typeAcquisition:a(t.getTypeAcquisition()),extends:n&&n.configHasExtendsProperty,files:n&&n.configHasFilesProperty,include:n&&n.configHasIncludeProperty,exclude:n&&n.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:s(),projectType:t instanceof gte?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:se};this.eventHandler({eventName:xte,data:i});function s(){return Gv(t)&&dte(t.getConfigFilePath())||"other"}function a({enable:u,include:m,exclude:d}){return{enable:u,include:m!==void 0&&m.length!==0,exclude:d!==void 0&&d.length!==0}}}addFilesToNonInferredProject(t,n,i,s){this.updateNonInferredProjectFiles(t,n,i),t.setTypeAcquisition(s),t.markAsDirty()}createConfiguredProject(t,n){var i;(i=kn)==null||i.instant(kn.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);let s=this.toCanonicalFileName(t),a=this.configFileExistenceInfoCache.get(s);a?a.exists=!0:this.configFileExistenceInfoCache.set(s,a={exists:!0}),a.config||(a.config={cachedDirectoryStructureHost:YB(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let u=new uEe(t,s,this,this.documentRegistry,a.config.cachedDirectoryStructureHost,n);return M.assert(!this.configuredProjects.has(s)),this.configuredProjects.set(s,u),this.createConfigFileWatcherForParsedConfig(t,s,u),u}loadConfiguredProject(t,n){var i,s;(i=kn)==null||i.push(kn.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,n);let a=eo(t.getConfigFilePath()),u=this.ensureParsedConfigUptoDate(a,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),m=u.config.parsedCommandLine;M.assert(!!m.fileNames);let d=m.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:m.raw.extends!==void 0,configHasFilesProperty:m.raw.files!==void 0,configHasIncludeProperty:m.raw.include!==void 0,configHasExcludeProperty:m.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=BO(m.raw),t.setProjectErrors(m.options.configFile.parseDiagnostics),t.updateReferences(m.projectReferences);let S=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,d,m.fileNames,Dte);S?(t.disableLanguageService(S),this.configFileExistenceInfoCache.forEach((x,D)=>this.stopWatchingWildCards(D,t))):(t.setCompilerOptions(d),t.setWatchOptions(m.watchOptions),t.enableLanguageService(),this.watchWildcards(a,u,t)),t.enablePluginsWithOptions(d);let E=m.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,E,Dte,d,m.typeAcquisition,m.compileOnSave,m.watchOptions),(s=kn)==null||s.pop()}ensureParsedConfigUptoDate(t,n,i,s){var a,u,m;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}let d=((a=i.config)==null?void 0:a.cachedDirectoryStructureHost)||YB(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),S=jO(t,L=>this.host.readFile(L)),E=NM(t,bs(S)?S:""),x=E.parseDiagnostics;bs(S)||x.push(S);let D=yi(t),I=MM(E,d,D,void 0,t,void 0,this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);I.errors.length&&x.push(...I.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:I.fileNames,options:I.options,watchOptions:I.watchOptions,projectReferences:I.projectReferences},void 0," ")}`);let R=(u=i.config)==null?void 0:u.parsedCommandLine;return i.config?(i.config.parsedCommandLine=I,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:I,cachedDirectoryStructureHost:d,projects:new Map},!R&&!hj(this.getWatchOptionsFromProjectWatchOptions(void 0,D),this.getWatchOptionsFromProjectWatchOptions(I.watchOptions,D))&&((m=i.watcher)==null||m.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,n,s),KB(n,I.options,this.sharedExtendedConfigFileWatchers,(L,F)=>this.watchFactory.watchFile(L,()=>{var J;XB(this.extendedConfigCache,F,q=>this.toPath(q));let $=!1;(J=this.sharedExtendedConfigFileWatchers.get(F))==null||J.projects.forEach(q=>{$=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(q,`Change in extended config file ${L} detected`)||$}),$&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,Eu.ExtendedConfigFile,t),L=>this.toPath(L)),i}watchWildcards(t,{exists:n,config:i},s){if(i.projects.set(s.canonicalConfigFilePath,!0),n){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,KM(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(a,u)=>this.watchWildcardDirectory(a,u,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;qf(i.watchedDirectories,Dd),i.watchedDirectories=void 0}}stopWatchingWildCards(t,n){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(n.canonicalConfigFilePath)||(i.config.projects.set(n.canonicalConfigFilePath,!1),!Iu(i.config.projects,ec)&&(i.config.watchedDirectories&&(qf(i.config.watchedDirectories,Dd),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,n,i){var s;let a=t.getRootFilesMap(),u=new Map;for(let m of n){let d=i.getFileName(m),S=Nc(d),E=uL(S),x;if(!E&&!t.fileExists(d)){x=lL(S,this.currentDirectory,this.toCanonicalFileName);let D=a.get(x);D?(((s=D.info)==null?void 0:s.path)===x&&(t.removeFile(D.info,!1,!0),D.info=void 0),D.fileName=S):a.set(x,{fileName:S})}else{let D=i.getScriptKind(m,this.hostConfiguration.extraFileExtensions),I=i.hasMixedContent(m,this.hostConfiguration.extraFileExtensions),R=M.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(S,t.currentDirectory,D,I,t.directoryStructureHost,!1));x=R.path;let L=a.get(x);!L||L.info!==R?(t.addRoot(R,S),R.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(R)):L.fileName=S}u.set(x,!0)}a.size>u.size&&a.forEach((m,d)=>{u.has(d)||(m.info?t.removeFile(m.info,t.fileExists(m.info.fileName),!0):a.delete(d))})}updateRootAndOptionsOfNonInferredProject(t,n,i,s,a,u,m){t.setCompilerOptions(s),t.setWatchOptions(m),u!==void 0&&(t.compileOnSaveEnabled=u),this.addFilesToNonInferredProject(t,n,i,a)}reloadFileNamesOfConfiguredProject(t){let n=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(n),this.updateNonInferredProjectFiles(t,n.concat(t.getExternalFiles(1)),Dte),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,n){if(n.updateLevel===void 0)return n.parsedCommandLine.fileNames;M.assert(n.updateLevel===1);let i=n.parsedCommandLine.options.configFile.configFileSpecs,s=UO(i,yi(t),n.parsedCommandLine.options,n.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return n.parsedCommandLine={...n.parsedCommandLine,fileNames:s},s}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,n){this.updateNonInferredProjectFiles(t,n,Dte)}reloadConfiguredProjectClearingSemanticCache(t,n,i){return kg(i,t)?(this.clearSemanticCache(t),this.reloadConfiguredProject(t,Rte(n)),!0):!1}reloadConfiguredProject(t,n){t.isInitialLoadPending=Ng,t.pendingUpdateReason=void 0,t.pendingUpdateLevel=0,t.getCachedDirectoryStructureHost().clearCache(),this.loadConfiguredProject(t,n),yze(t,t.triggerFileForConfigFileDiag??t.getConfigFilePath(),!0)}clearSemanticCache(t){t.originalConfiguredProjects=void 0,t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,n,i){if(!this.eventHandler||this.suppressDiagnosticEvents)return!1;let s=t.getLanguageService().getCompilerOptionsDiagnostics();return s.push(...t.getAllProjectErrors()),!i&&s.length===(t.configDiagDiagnosticsReported??0)?!1:(t.configDiagDiagnosticsReported=s.length,this.eventHandler({eventName:bte,data:{configFileName:t.getConfigFilePath(),diagnostics:s,triggerFile:n??t.getConfigFilePath()}}),!0)}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&n===void 0)return;if(n){let s=this.toCanonicalFileName(n);for(let a of this.inferredProjects)if(a.projectRootPath===s)return a;return this.createInferredProject(n,!1,n)}let i;for(let s of this.inferredProjects)s.projectRootPath&&Cm(s.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>s.projectRootPath.length||(i=s));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){M.assert(!this.useSingleInferredProject);let n=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===n)return i;return this.createInferredProject(t)}createInferredProject(t,n,i){let s=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,a,u;i&&(a=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),u=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),a===void 0&&(a=this.watchOptionsForInferredProjects),u===void 0&&(u=this.typeAcquisitionForInferredProjects),a=a||void 0;let m=new oEe(this,this.documentRegistry,s,a?.watchOptions,i,t,u);return m.setProjectErrors(a?.errors),n?this.inferredProjects.unshift(m):this.inferredProjects.push(m),m}getOrCreateScriptInfoNotOpenedByClient(t,n,i,s){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Nc(t),n,void 0,void 0,i,s)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(Nc(t))}getScriptInfoOrConfig(t){let n=Nc(t),i=this.getScriptInfoForNormalizedPath(n);if(i)return i;let s=this.configuredProjects.get(this.toPath(t));return s&&s.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let n=Os(Vp(this.filenameToScriptInfo.entries(),i=>i[1].deferredDelete?void 0:i),([i,s])=>({path:i,fileName:s.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}.
All files are: ${JSON.stringify(n)}`,"Err")}getSymlinkedProjects(t){let n;if(this.realpathToScriptInfos){let s=t.getRealpathIfDifferent();s&&Et(this.realpathToScriptInfos.get(s),i),Et(this.realpathToScriptInfos.get(t.path),i)}return n;function i(s){if(s!==t)for(let a of s.containingProjects)a.languageServiceEnabled&&!a.isOrphan()&&!a.getCompilerOptions().preserveSymlinks&&!t.isAttached(a)&&(n?Iu(n,(u,m)=>m===s.path?!1:xs(u,a))||n.add(s.path,a):(n=vd(),n.add(s.path,a)))}}watchClosedScriptInfo(t){if(M.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!fs(t.path,this.globalCacheLocationDirectoryPath))){let n=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||n===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,s)=>this.onSourceFileChanged(t,s),500,this.hostConfiguration.watchOptions,Eu.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,n)))}}createNodeModulesWatcher(t,n){let i=this.watchFactory.watchDirectory(t,a=>{var u;let m=oU(this.toPath(a));if(!m)return;let d=Ul(m);if((u=s.affectedModuleSpecifierCacheProjects)!=null&&u.size&&(d==="package.json"||d==="node_modules")&&s.affectedModuleSpecifierCacheProjects.forEach(S=>{var E;(E=S.getModuleSpecifierCache())==null||E.clear()}),s.refreshScriptInfoRefCount)if(n===m)this.refreshScriptInfosInDirectory(n);else{let S=this.filenameToScriptInfo.get(m);S?hze(S)&&this.refreshScriptInfo(S):PP(m)||this.refreshScriptInfosInDirectory(m)}},1,this.hostConfiguration.watchOptions,Eu.NodeModules),s={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var a;i&&!s.refreshScriptInfoRefCount&&!((a=s.affectedModuleSpecifierCacheProjects)!=null&&a.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(n))}};return this.nodeModulesWatchers.set(n,s),s}watchPackageJsonsInNodeModules(t,n){var i;let s=this.toPath(t),a=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(t,s);return M.assert(!((i=a.affectedModuleSpecifierCacheProjects)!=null&&i.has(n))),(a.affectedModuleSpecifierCacheProjects||(a.affectedModuleSpecifierCacheProjects=new Set)).add(n),{close:()=>{var u;(u=a.affectedModuleSpecifierCacheProjects)==null||u.delete(n),a.close()}}}watchClosedScriptInfoInNodeModules(t){let n=t+"/node_modules",i=this.toPath(n),s=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(n,i);return s.refreshScriptInfoRefCount++,{close:()=>{s.refreshScriptInfoRefCount--,s.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||sp).getTime()}refreshScriptInfo(t){let n=this.getModifiedTime(t);if(n!==t.mTime){let i=SG(t.mTime,n);t.mTime=n,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+bc,this.filenameToScriptInfo.forEach(n=>{hze(n)&&fs(n.path,t)&&this.refreshScriptInfo(n)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,n,i,s,a,u){if(op(t)||uL(t))return this.getOrCreateScriptInfoWorker(t,n,!1,void 0,i,!!s,a,u);let m=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(m)return m}getOrCreateScriptInfoForNormalizedPath(t,n,i,s,a,u){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,n,i,s,!!a,u,!1)}getOrCreateScriptInfoWorker(t,n,i,s,a,u,m,d){M.assert(s===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let S=lL(t,n,this.toCanonicalFileName),E=this.filenameToScriptInfo.get(S);if(E){if(E.deferredDelete){if(M.assert(!E.isDynamic),!i&&!(m||this.host).fileExists(t))return d?E:void 0;E.deferredDelete=void 0}}else{let x=uL(t);if(M.assert(op(t)||x||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:Os(this.openFilesWithNonRootedDiskPath.keys())})}
Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),M.assert(!op(t)||this.currentDirectory===n||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:Os(this.openFilesWithNonRootedDiskPath.keys())})}
Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),M.assert(!x||this.currentDirectory===n||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:Os(this.openFilesWithNonRootedDiskPath.keys())})}
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!x&&!(m||this.host).fileExists(t))return;E=new eEe(this.host,t,a,u,S,this.filenameToScriptInfoVersion.get(S)),this.filenameToScriptInfo.set(E.path,E),this.filenameToScriptInfoVersion.delete(E.path),i?!op(t)&&(!x||this.currentDirectory!==n)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),E):this.watchClosedScriptInfo(E)}return i&&(this.stopWatchingScriptInfo(E),E.open(s),u&&E.registerFileUpdate()),E}getScriptInfoForNormalizedPath(t){return!op(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(lL(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){let n=this.filenameToScriptInfo.get(t);return!n||!n.deferredDelete?n:void 0}getDocumentPositionMapper(t,n,i){let s=this.getOrCreateScriptInfoNotOpenedByClient(n,t.currentDirectory,this.host,!1);if(!s){i&&t.addGeneratedFileWatch(n,i);return}if(s.getSnapshot(),bs(s.sourceMapFilePath)){let S=this.getScriptInfoForPath(s.sourceMapFilePath);if(S&&(S.getSnapshot(),S.documentPositionMapper!==void 0))return S.sourceInfos=this.addSourceInfoToSourceMap(i,t,S.sourceInfos),S.documentPositionMapper?S.documentPositionMapper:void 0;s.sourceMapFilePath=void 0}else if(s.sourceMapFilePath){s.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceMapFilePath.sourceInfos);return}else if(s.sourceMapFilePath!==void 0)return;let a,u=(S,E)=>{let x=this.getOrCreateScriptInfoNotOpenedByClient(S,t.currentDirectory,this.host,!0);if(a=x||E,!x||x.deferredDelete)return;let D=x.getSnapshot();return x.documentPositionMapper!==void 0?x.documentPositionMapper:ok(D)},m=t.projectName,d=CZ({getCanonicalFileName:this.toCanonicalFileName,log:S=>this.logger.info(S),getSourceFileLike:S=>this.getSourceFileLike(S,m,s)},s.fileName,s.textStorage.getLineInfo(),u);return u=void 0,a?bs(a)?s.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?a:Cs(a,t.currentDirectory),s.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:(s.sourceMapFilePath=a.path,a.declarationInfoPath=s.path,a.deferredDelete||(a.documentPositionMapper=d||!1),a.sourceInfos=this.addSourceInfoToSourceMap(i,t,a.sourceInfos)):s.sourceMapFilePath=!1,d}addSourceInfoToSourceMap(t,n,i){if(t){let s=this.getOrCreateScriptInfoNotOpenedByClient(t,n.currentDirectory,n.directoryStructureHost,!1);(i||(i=new Set)).add(s.path)}return i}addMissingSourceMapFile(t,n){return this.watchFactory.watchFile(t,()=>{let s=this.getScriptInfoForPath(n);s&&s.sourceMapFilePath&&!bs(s.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(s.containingProjects,!0),this.delayUpdateSourceInfoProjects(s.sourceMapFilePath.sourceInfos),s.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,Eu.MissingSourceMapFile)}getSourceFileLike(t,n,i){let s=n.projectName?n:this.findProject(n);if(s){let u=s.toPath(t),m=s.getSourceFile(u);if(m&&m.resolvedPath===u)return m}let a=this.getOrCreateScriptInfoNotOpenedByClient(t,(s||this).currentDirectory,s?s.directoryStructureHost:this.host,!1);if(a){if(i&&bs(i.sourceMapFilePath)&&a!==i){let u=this.getScriptInfoForPath(i.sourceMapFilePath);u&&(u.sourceInfos??(u.sourceInfos=new Set)).add(a.path)}return a.cacheSourceFile?a.cacheSourceFile.sourceFile:(a.sourceFileLike||(a.sourceFileLike={get text(){return M.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:u=>{let m=a.positionToLineOffset(u);return{line:m.line-1,character:m.offset-1}},getPositionOfLineAndCharacter:(u,m,d)=>a.lineOffsetToPosition(u+1,m+1,d)}),a.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var n;if(t.file){let i=this.getScriptInfoForNormalizedPath(Nc(t.file));i&&(i.setOptions(fD(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...fD(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:s,includeCompletionsForModuleExports:a}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(u=>u.forEach(m=>{!m.deferredClose&&!m.isClosed()&&m.pendingUpdateLevel===2&&!this.hasPendingProjectUpdate(m)&&m.updateGraph()})),(s!==t.preferences.includePackageJsonAutoImports||!!a!=!!t.preferences.includeCompletionsForModuleExports)&&this.forEachProject(u=>{u.onAutoImportProviderSettingsChanged()})}if(t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions){let i=(n=mL(t.watchOptions))==null?void 0:n.watchOptions,s=hB(i,this.currentDirectory);this.hostConfiguration.watchOptions=s,this.hostConfiguration.beforeSubstitution=s===i?void 0:i,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`)}}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions(),t.getCurrentDirectory())}getWatchOptionsFromProjectWatchOptions(t,n){let i=this.hostConfiguration.beforeSubstitution?hB(this.hostConfiguration.beforeSubstitution,n):this.hostConfiguration.watchOptions;return t&&i?{...i,...t}:t||i}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(i=>{this.openFiles.has(i.path)||i.fileWatcher&&this.onSourceFileChanged(i,this.host.fileExists(i.fileName)?i.deferredDelete?0:1:2)}),this.pendingProjectUpdates.forEach((i,s)=>{this.throttledOperations.cancel(s),this.pendingProjectUpdates.delete(s)}),this.throttledOperations.cancel(_ze),this.pendingOpenFileProjectUpdates=void 0,this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(i=>{i.config&&(i.config.updateLevel=2)}),this.configFileForOpenFiles.clear(),this.externalProjects.forEach(i=>{this.clearSemanticCache(i),i.updateGraph()});let t=new Set,n=new Set;this.externalProjectToConfiguredProjectMap.forEach((i,s)=>{let a=`Reloading configured project in external project: ${s}`;i.forEach(u=>{this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?(u.isInitialLoadPending()||(this.clearSemanticCache(u),u.pendingUpdateLevel=2,u.pendingUpdateReason=Rte(a)),n.add(u)):this.reloadConfiguredProjectClearingSemanticCache(u,a,t)})}),this.openFiles.forEach((i,s)=>{let a=this.getScriptInfoForPath(s);jn(a.containingProjects,pL)||this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(a,2,t,n)}),n.forEach(i=>t.add(i)),this.inferredProjects.forEach(i=>this.clearSemanticCache(i)),this.ensureProjectForOpenFiles(),this.cleanupProjectsAndScriptInfos(t,new Set(this.openFiles.keys()),new Set(this.externalProjectToConfiguredProjectMap.keys())),this.logger.info("After reloading projects.."),this.printProjects()}removeRootOfInferredProjectIfNowPartOfOtherProject(t){M.assert(t.containingProjects.length>0);let n=t.containingProjects[0];!n.isOrphan()&&_D(n)&&n.isRoot(t)&&Et(t.containingProjects,i=>i!==n&&!i.isOrphan())&&n.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects();let t=this.pendingOpenFileProjectUpdates;this.pendingOpenFileProjectUpdates=void 0,t?.forEach((n,i)=>this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(this.getScriptInfoForPath(i),1)),this.openFiles.forEach((n,i)=>{let s=this.getScriptInfoForPath(i);s.isOrphan()?this.assignOrphanScriptInfoToInferredProject(s,n):this.removeRootOfInferredProjectIfNowPartOfOtherProject(s)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Id),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,n,i,s){return this.openClientFileWithNormalizedPath(Nc(t),n,i,!1,s?Nc(s):void 0)}getOriginalLocationEnsuringConfiguredProject(t,n){let i=t.isSourceOfProjectReferenceRedirect(n.fileName),s=i?n:t.getSourceMapper().tryGetSourcePosition(n);if(!s)return;let{fileName:a}=s,u=this.getScriptInfo(a);if(!u&&!this.host.fileExists(a))return;let m={fileName:Nc(a),path:this.toPath(a)},d=this.getConfigFileNameForFile(m,!1);if(!d)return;let S=this.findConfiguredProjectByProjectName(d);if(!S){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?n:u?.containingProjects.length?s:n;S=this.createConfiguredProject(d,`Creating project for original file: ${m.fileName}${n!==s?" for location: "+n.fileName:""}`)}Id(S);let E=I=>{let R=this.getScriptInfo(a);return R&&I.containsScriptInfo(R)&&!I.isSourceOfProjectReferenceRedirect(R.path)};if(S.isSolution()||!E(S)){if(S=Ote(S,a,I=>E(I)?I:void 0,1,`Creating project referenced in solution ${S.projectName} to find possible configured project for original file: ${m.fileName}${n!==s?" for location: "+n.fileName:""}`),!S)return;if(S===t)return s}D(S);let x=this.getScriptInfo(a);if(!x||!x.containingProjects.length)return;return x.containingProjects.forEach(I=>{Gv(I)&&D(I)}),s;function D(I){(t.originalConfiguredProjects??(t.originalConfiguredProjects=new Set)).add(I.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return jn(this.externalProjects,n=>(Id(n),n.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,n,i,s,a){let u=this.getOrCreateScriptInfoWorker(t,a?this.getNormalizedAbsolutePath(a):this.currentDirectory,!0,n,i,!!s,void 0,!0);return this.openFiles.set(u.path,a),u}assignProjectToOpenedScriptInfo(t){let n,i,s=this.findExternalProjectContainingOpenScriptInfo(t),a,u;if(!s&&this.serverMode===0){let m=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,1);m&&(a=m.seenProjects,u=m.sentConfigDiag,m.defaultProject&&(n=m.defaultProject.getConfigFilePath(),i=m.defaultProject.getAllProjectErrors()))}return t.containingProjects.forEach(Id),t.isOrphan()&&(a?.forEach(m=>{u.has(m)||this.sendConfigFileDiagEvent(m,t.fileName,!0)}),M.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),M.assert(!t.isOrphan()),{configFileName:n,configFileErrors:i,retainProjects:a}}findCreateOrReloadConfiguredProject(t,n,i,s,a,u,m,d){let S=this.findConfiguredProjectByProjectName(t,s),E=!1;switch(n){case 0:if(!S)return;break;case 1:S??(S=this.createConfiguredProject(t,i)),E=!m&&vze(S,a);break;case 2:S??(S=this.createConfiguredProject(t,Rte(i))),E=!d&&this.reloadConfiguredProjectClearingSemanticCache(S,i,u),d&&!d.has(S)&&!u.has(S)&&(S.pendingUpdateLevel=2,S.pendingUpdateReason=Rte(i),d.add(S));break;default:M.assertNever(n)}return{project:S,sentConfigFileDiag:E}}tryFindDefaultConfiguredProjectForOpenScriptInfo(t,n,i,s){let a=this.getConfigFileNameForFile(t,n===0);if(!a)return;let u=this.findCreateOrReloadConfiguredProject(a,n,Sze(t),i,t.fileName,s);if(!u)return;let m=new Set,d=new Set(u.sentConfigFileDiag?[u.project]:void 0),S,E;return x(u.project),{defaultProject:S??E,sentConfigDiag:d,seenProjects:m};function x(R){return D(R)?S:I(R)}function D(R){if(!kg(m,R))return;let L=R.containsScriptInfo(t);if(L&&!R.isSourceOfProjectReferenceRedirect(t.path))return S=R;E??(E=L?R:void 0)}function I(R){return Ote(R,t.path,(L,F)=>(F&&d.add(L),D(L)),n,`Creating project referenced in solution ${R.projectName} to find possible configured project for ${t.fileName} to open`,i,t.fileName,s)}}tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(t,n,i,s){let a=n===0,u=this.tryFindDefaultConfiguredProjectForOpenScriptInfo(t,n,a,i);if(!u)return;let{defaultProject:m,seenProjects:d}=u;return m&&vRt(t,m,S=>{d.add(S)},n,`Creating project possibly referencing default composite project ${m.getProjectName()} of open file ${t.fileName}`,a,i,s),u}loadAncestorProjectTree(t){t=t||d3(this.configuredProjects,(i,s)=>s.isInitialLoadPending()?void 0:[i,!0]);let n=new Set;for(let i of Os(this.configuredProjects.values()))mze(i,s=>t.has(s))&&Id(i),this.ensureProjectChildren(i,t,n)}ensureProjectChildren(t,n,i){var s;if(!kg(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let a=(s=t.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(a)for(let u of a){if(!u)continue;let m=dX(u.references,E=>n.has(E.sourceFile.path)?E:void 0);if(!m)continue;let d=Nc(u.sourceFile.fileName),S=this.findConfiguredProjectByProjectName(d)??this.createConfiguredProject(d,`Creating project referenced by : ${t.projectName} as it references project ${m.sourceFile.fileName}`);Id(S),this.ensureProjectChildren(S,n,i)}}cleanupConfiguredProjects(t,n,i){this.getOrphanConfiguredProjects(t,i,n).forEach(s=>this.removeProject(s))}cleanupProjectsAndScriptInfos(t,n,i){this.cleanupConfiguredProjects(t,i,n);for(let s of this.inferredProjects.slice())s.isOrphan()&&this.removeProject(s);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,n,i,s,a){let u=this.getOrCreateOpenScriptInfo(t,n,i,s,a),{retainProjects:m,...d}=this.assignProjectToOpenedScriptInfo(u);return this.cleanupProjectsAndScriptInfos(m,new Set([u.path]),void 0),this.telemetryOnOpenFile(u),this.printProjects(),d}getOrphanConfiguredProjects(t,n,i){let s=new Set(this.configuredProjects.values()),a=S=>{S.originalConfiguredProjects&&(Gv(S)||!S.isOrphan())&&S.originalConfiguredProjects.forEach((E,x)=>{let D=this.getConfiguredProjectByCanonicalConfigFilePath(x);return D&&d(D)})};return t?.forEach(d),this.inferredProjects.forEach(a),this.externalProjects.forEach(a),this.externalProjectToConfiguredProjectMap.forEach((S,E)=>{i?.has(E)||S.forEach(d)}),this.openFiles.forEach((S,E)=>{if(n?.has(E))return;let x=this.getScriptInfoForPath(E);if(jn(x.containingProjects,pL))return;let D=this.tryFindDefaultConfiguredProjectAndLoadAncestorsForOpenScriptInfo(x,0);D?.defaultProject&&D?.seenProjects.forEach(d)}),this.configuredProjects.forEach(S=>{s.has(S)&&(m(S)||gze(S,u))&&d(S)}),s;function u(S){return!s.has(S)||m(S)}function m(S){var E,x;return(S.deferredClose||S.projectService.hasPendingProjectUpdate(S))&&!!((x=(E=S.projectService.configFileExistenceInfoCache.get(S.canonicalConfigFilePath))==null?void 0:E.openFilesImpactedByConfigFile)!=null&&x.size)}function d(S){s.delete(S)&&(a(S),gze(S,d))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(n=>{if(!n.deferredDelete){if(!n.isScriptOpen()&&n.isOrphan()&&!n.isContainedByBackgroundProject()){if(!n.sourceMapFilePath)return;let i;if(bs(n.sourceMapFilePath)){let s=this.filenameToScriptInfo.get(n.sourceMapFilePath);i=s?.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;if(!i||!m0(i,s=>{let a=this.getScriptInfoForPath(s);return!!a&&(a.isScriptOpen()||!a.isOrphan())}))return}if(t.delete(n.path),n.sourceMapFilePath){let i;if(bs(n.sourceMapFilePath)){let s=this.filenameToScriptInfo.get(n.sourceMapFilePath);s?.deferredDelete?n.sourceMapFilePath={watcher:this.addMissingSourceMapFile(s.fileName,n.path),sourceInfos:s.sourceInfos}:t.delete(n.sourceMapFilePath),i=s?.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;i&&i.forEach((s,a)=>t.delete(a))}}}),t.forEach(n=>this.deleteScriptInfo(n))}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!tm(this.allJsFilesForOpenFileTelemetry,t.path))return;let n=this.ensureDefaultProjectForFile(t);if(!n.languageServiceEnabled)return;let i=n.getSourceFile(t.path),s=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:_Ee,data:{info:{checkJs:s}}})}closeClientFile(t,n){let i=this.getScriptInfoForNormalizedPath(Nc(t)),s=i?this.closeOpenFile(i,n):!1;return n||this.printProjects(),s}collectChanges(t,n,i,s){for(let a of n){let u=jn(t,m=>m.projectName===a.getProjectName());s.push(a.getChangesSinceVersion(u&&u.version,i))}}synchronizeProjectList(t,n){let i=[];return this.collectChanges(t,this.externalProjects,n,i),this.collectChanges(t,Vp(this.configuredProjects.values(),s=>s.deferredClose?void 0:s),n,i),this.collectChanges(t,this.inferredProjects,n,i),i}applyChangesInOpenFiles(t,n,i){let s,a=!1;if(t)for(let m of t){let d=this.getOrCreateOpenScriptInfo(Nc(m.fileName),m.content,Pte(m.scriptKind),m.hasMixedContent,m.projectRootPath?Nc(m.projectRootPath):void 0);(s||(s=[])).push(d)}if(n)for(let m of n){let d=this.getScriptInfo(m.fileName);M.assert(!!d),this.applyChangesToFile(d,m.changes)}if(i)for(let m of i)a=this.closeClientFile(m,!0)||a;let u;s?.forEach(m=>{var d;return(d=this.assignProjectToOpenedScriptInfo(m).retainProjects)==null?void 0:d.forEach(S=>(u??(u=new Set)).add(S))}),a&&this.assignOrphanScriptInfosToInferredProject(),s?(this.cleanupProjectsAndScriptInfos(u,new Set(s.map(m=>m.path)),void 0),s.forEach(m=>this.telemetryOnOpenFile(m)),this.printProjects()):kt(i)&&this.printProjects()}applyChangesToFile(t,n){for(let i of n)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeExternalProject(t,n){let i=Nc(t);if(this.externalProjectToConfiguredProjectMap.get(i))this.externalProjectToConfiguredProjectMap.delete(i);else{let a=this.findExternalProjectByProjectName(t);a&&this.removeProject(a)}n&&(this.cleanupConfiguredProjects(),this.printProjects())}openExternalProjects(t){let n=new Set(this.externalProjects.map(i=>i.getProjectName()));this.externalProjectToConfiguredProjectMap.forEach((i,s)=>n.add(s));for(let i of t)this.openExternalProject(i,!1),n.delete(i.projectFileName);n.forEach(i=>this.closeExternalProject(i,!1)),this.cleanupConfiguredProjects(),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=fEe}applySafeList(t){let n=t.typeAcquisition;M.assert(!!n,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,n);return i?.excludedFiles??[]}applySafeListWorker(t,n,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let s=i.include||(i.include=[]),a=[],u=n.map(x=>Wu(x.fileName));for(let x of Object.keys(this.safelist)){let D=this.safelist[x];for(let I of u)if(D.match.test(I)){if(this.logger.info(`Excluding files based on rule ${x} matching file '${I}'`),D.types)for(let R of D.types)s.includes(R)||s.push(R);if(D.exclude)for(let R of D.exclude){let L=I.replace(D.match,(...F)=>R.map(J=>typeof J=="number"?bs(F[J])?kwe.escapeFilenameForRegex(F[J]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${x} - not enough groups`),"\\*"):J).join(""));a.includes(L)||a.push(L)}else{let R=kwe.escapeFilenameForRegex(I);a.includes(R)||a.push(R)}}}let m=a.map(x=>new RegExp(x,"i")),d,S;for(let x=0;xD.test(u[x])))E(x);else{if(i.enable){let D=Ul(R1(u[x]));if(wc(D,"js")){let I=lf(D),R=GW(I),L=this.legacySafelist.get(R);if(L!==void 0){this.logger.info(`Excluded '${u[x]}' because it matched ${R} from the legacy safelist`),E(x),s.includes(L)||s.push(L);continue}}}/^.+[.-]min\.js$/.test(u[x])?E(x):d?.push(n[x])}return S?{rootFiles:d,excludedFiles:S}:void 0;function E(x){S||(M.assert(!d),d=n.slice(0,x),S=[]),S.push(u[x])}}openExternalProject(t,n){let i=this.findExternalProjectByProjectName(t.projectFileName),s,a=[];for(let u of t.rootFiles){let m=Nc(u.fileName);if(dte(m)){if(this.serverMode===0&&this.host.fileExists(m)){let d=this.findConfiguredProjectByProjectName(m);d||(d=this.createConfiguredProject(m,`Creating configured project in external project: ${t.projectFileName}`),this.getHostPreferences().lazyConfiguredProjectsFromExternalProject||d.updateGraph()),(s??(s=new Set)).add(d),M.assert(!d.isClosed())}}else a.push(u)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let u=t.typeAcquisition||{};u.include=u.include||[],u.exclude=u.exclude||[],u.enable===void 0&&(u.enable=iEe(a.map(S=>S.fileName)));let m=this.applySafeListWorker(t,a,u),d=m?.excludedFiles??[];if(a=m?.rootFiles??a,i){i.excludedFiles=d;let S=_J(t.options),E=mL(t.options,i.getCurrentDirectory()),x=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,S,a,Ite);x?i.disableLanguageService(x):i.enableLanguageService(),i.setProjectErrors(E?.errors),this.updateRootAndOptionsOfNonInferredProject(i,a,Ite,S,u,t.options.compileOnSave,E?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,a,t.options,u,d).updateGraph()}n&&(this.cleanupConfiguredProjects(s,new Set(t.projectFileName)),this.printProjects())}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,n,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${n.name} from candidate paths: ${i.join(",")}`),!n.name||Su(n.name)||/[\\/]\.\.?($|[\\/])/.test(n.name)){this.logger.info(`Skipped loading plugin ${n.name||JSON.stringify(n)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let s=Sk.importServicePluginAsync(n,i,this.host,u=>this.logger.info(u));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let a=this.pendingPluginEnablements.get(t);a||this.pendingPluginEnablements.set(t,a=[]),a.push(s);return}this.endEnablePlugin(t,Sk.importServicePluginSync(n,i,this.host,s=>this.logger.info(s)))}endEnablePlugin(t,{pluginConfigEntry:n,resolvedModule:i,errorLogs:s}){var a;if(i){let u=(a=this.currentPluginConfigOverrides)==null?void 0:a.get(n.name);if(u){let m=n.name;n=u,n.name=m}t.enableProxy(i,n)}else Et(s,u=>this.logger.info(u)),this.logger.info(`Couldn't find ${n.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=Os(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){M.assert(this.currentPluginEnablementPromise===void 0);let n=!1;await Promise.all(kr(t,async([i,s])=>{let a=await Promise.all(s);if(i.isClosed()||lJ(i)){this.logger.info(`Cancelling plugin enabling for ${i.getProjectName()} as it is ${i.isClosed()?"closed":"deferred close"}`);return}n=!0;for(let u of a)this.endEnablePlugin(i,u);this.delayUpdateProjectGraph(i)})),this.currentPluginEnablementPromise=void 0,n&&this.sendProjectsUpdatedInBackgroundEvent()}configurePlugin(t){this.forEachEnabledProject(n=>n.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,n,i){let s=this.packageJsonCache,a=i&&this.toPath(i),u=[],m=d=>{switch(s.directoryHasPackageJson(d)){case 3:return s.searchDirectoryAndAncestors(d),m(d);case-1:let S=ii(d,"package.json");this.watchPackageJsonFile(S,this.toPath(S),n);let E=s.getInDirectory(d);E&&u.push(E)}if(a&&a===d)return!0};return Am(yi(t),m),u}getNearestAncestorDirectoryWithPackageJson(t){return Am(t,n=>{switch(this.packageJsonCache.directoryHasPackageJson(n)){case-1:return n;case 0:return;case 3:return this.host.fileExists(ii(n,"package.json"))?n:void 0}})}watchPackageJsonFile(t,n,i){M.assert(i!==void 0);let s=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(n);if(!s){let a=this.watchFactory.watchFile(t,(u,m)=>{switch(m){case 0:case 1:this.packageJsonCache.addOrUpdate(u,n),this.onPackageJsonChange(s);break;case 2:this.packageJsonCache.delete(n),this.onPackageJsonChange(s),s.projects.clear(),s.close()}},250,this.hostConfiguration.watchOptions,Eu.PackageJson);s={projects:new Set,close:()=>{var u;s.projects.size||!a||(a.close(),a=void 0,(u=this.packageJsonFilesMap)==null||u.delete(n),this.packageJsonCache.invalidate(n))}},this.packageJsonFilesMap.set(n,s)}s.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(s)}onPackageJsonChange(t){t.projects.forEach(n=>{var i;return(i=n.onPackageJsonChange)==null?void 0:i.call(n)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=ERt())}};Tze.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var bEe=Tze;function ERt(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function EEe(e){return e.kind!==void 0}function xEe(e){e.print(!1,!1,!1)}function CEe(e){let t,n,i,s={get(d,S,E,x){if(!(!n||i!==u(d,E,x)))return n.get(S)},set(d,S,E,x,D,I,R){if(a(d,E,x).set(S,m(D,I,R,!1)),R){for(let L of I)if(L.isInNodeModules){let F=L.path.substring(0,L.path.indexOf(Fy)+Fy.length-1),J=e.toPath(F);t?.has(J)||(t||(t=new Map)).set(J,e.watchNodeModulesForPackageJsonChanges(F))}}},setModulePaths(d,S,E,x,D){let I=a(d,E,x),R=I.get(S);R?R.modulePaths=D:I.set(S,m(void 0,D,void 0,void 0))},setBlockedByPackageJsonDependencies(d,S,E,x,D){let I=a(d,E,x),R=I.get(S);R?R.isBlockedByPackageJsonDependencies=D:I.set(S,m(void 0,void 0,void 0,D))},clear(){t?.forEach(Dm),n?.clear(),t?.clear(),i=void 0},count(){return n?n.size:0}};return M.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>n}),s;function a(d,S,E){let x=u(d,S,E);return n&&i!==x&&s.clear(),i=x,n||(n=new Map)}function u(d,S,E){return`${d},${S.importModuleSpecifierEnding},${S.importModuleSpecifierPreference},${E.overrideImportMode}`}function m(d,S,E,x){return{kind:d,modulePaths:S,moduleSpecifiers:E,isBlockedByPackageJsonDependencies:x}}}function AEe(e){let t=new Map,n=new Map;return{addOrUpdate:i,invalidate:s,delete:u=>{t.delete(u),n.set(yi(u),!0)},getInDirectory:u=>t.get(e.toPath(ii(u,"package.json")))||void 0,directoryHasPackageJson:u=>a(e.toPath(u)),searchDirectoryAndAncestors:u=>{Am(u,m=>{let d=e.toPath(m);if(a(d)!==3)return!0;let S=ii(m,"package.json");N8(e,S)?i(S,ii(d,"package.json")):n.set(d,!0)})}};function i(u,m){let d=M.checkDefined(oZ(u,e.host));t.set(m,d),n.delete(yi(m))}function s(u){t.delete(u),n.delete(yi(u))}function a(u){return t.has(ii(u,"package.json"))?-1:n.has(u)?0:3}}var bze={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function xRt(e){let t=e[0],n=e[1];return(1e9*t+n)/1e6}function Eze(e,t){if((_D(e)||pL(e))&&e.isJsOnlyProject()){let n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function CRt(e){return Hp(e)||!!e.emitDecoratorMetadata}function xze(e,t,n){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(n.start),end:i.positionToLineOffset(n.start+n.length),text:Qg(n.messageText,`
`),code:n.code,category:Bx(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:kr(n.relatedInformation,Mte)}}function Mte(e){return e.file?{span:{start:pD(Eo(e.file,e.start)),end:pD(Eo(e.file,e.start+e.length)),file:e.file.fileName},message:Qg(e.messageText,`
`),category:Bx(e),code:e.code}:{message:Qg(e.messageText,`
`),category:Bx(e),code:e.code}}function pD(e){return{line:e.line+1,offset:e.character+1}}function gL(e,t){let n=e.file&&pD(Eo(e.file,e.start)),i=e.file&&pD(Eo(e.file,e.start+e.length)),s=Qg(e.messageText,`
`),{code:a,source:u}=e,m=Bx(e),d={start:n,end:i,text:s,code:a,category:m,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:u,relatedInformation:kr(e.relatedInformation,Mte)};return t?{...d,fileName:e.file&&e.file.fileName}:d}function ARt(e,t){return e.every(n=>bl(n.span){this.immediateId=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(t))},e))}delay(e,t,n){let i=this.requestId;M.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(n))},t,e))}executeAction(e){var t,n,i,s,a,u;let m=!1;try{this.operationHost.isCancellationRequested()?(m=!0,(t=kn)==null||t.instant(kn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((n=kn)==null||n.push(kn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=kn)==null||i.pop())}catch(d){(s=kn)==null||s.popAll(),m=!0,d instanceof ZI?(a=kn)==null||a.instant(kn.Phase.Session,"stepCanceled",{seq:this.requestId}):((u=kn)==null||u.instant(kn.Phase.Session,"stepError",{seq:this.requestId,message:d.message}),this.operationHost.logError(d,`delayed processing of request ${this.requestId}`))}(m||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}};function PEe(e,t){return{seq:0,type:"event",event:e,body:t}}function PRt(e,t,n,i){let s=L_(Ms(n)?n:n.projects,a=>i(a,e));return!Ms(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((a,u)=>{let m=t(u);s.push(...To(a,d=>i(d,m)))}),w1(s,hv)}function Lte(e){return qW(({textSpan:t})=>t.start+100003*t.length,zQ(e))}function NRt(e,t,n,i,s,a,u){let m=Aze(e,t,n,!0,(E,x)=>E.getLanguageService().findRenameLocations(x.fileName,x.pos,i,s,a),(E,x)=>x(j6(E)));if(Ms(m))return m;let d=[],S=Lte(u);return m.forEach((E,x)=>{for(let D of E)!S.has(D)&&!Fte(j6(D),x)&&(d.push(D),S.add(D))}),d}function DRt(e,t,n){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),s=i&&Aa(i);return s&&!s.isLocal?{fileName:s.fileName,pos:s.textSpan.start}:void 0}function IRt(e,t,n,i,s){var a,u;let m=Aze(e,t,n,!1,(x,D)=>(s.info(`Finding references to ${D.fileName} position ${D.pos} in project ${x.getProjectName()}`),x.getLanguageService().findReferences(D.fileName,D.pos)),(x,D)=>{D(j6(x.definition));for(let I of x.references)D(j6(I))});if(Ms(m))return m;let d=m.get(t);if(((u=(a=d?.[0])==null?void 0:a.references[0])==null?void 0:u.isDefinition)===void 0)m.forEach(x=>{for(let D of x)for(let I of D.references)delete I.isDefinition});else{let x=Lte(i);for(let I of d)for(let R of I.references)if(R.isDefinition){x.add(R);break}let D=new Set;for(;;){let I=!1;if(m.forEach((R,L)=>{if(D.has(L))return;L.getLanguageService().updateIsDefinitionOfReferencedSymbols(R,x)&&(D.add(L),I=!0)}),!I)break}m.forEach((I,R)=>{if(!D.has(R))for(let L of I)for(let F of L.references)F.isDefinition=!1})}let S=[],E=Lte(i);return m.forEach((x,D)=>{for(let I of x){let R=Fte(j6(I.definition),D),L=R===void 0?I.definition:{...I.definition,textSpan:Gu(R.pos,I.definition.textSpan.length),fileName:R.fileName,contextSpan:RRt(I.definition,D)},F=jn(S,J=>qQ(J.definition,L,i));F||(F={definition:L,references:[]},S.push(F));for(let J of I.references)!E.has(J)&&!Fte(j6(J),D)&&(E.add(J),F.references.push(J))}}),S.filter(x=>x.references.length!==0)}function NEe(e,t,n){for(let i of Ms(e)?e:e.projects)n(i,t);!Ms(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,s)=>{for(let a of i)n(a,s)})}function Aze(e,t,n,i,s,a){let u=new Map,m=y3();m.enqueue({project:t,location:n}),NEe(e,n.fileName,(L,F)=>{let J={fileName:F,pos:n.pos};m.enqueue({project:L,location:J})});let d=t.projectService,S=t.getCancellationToken(),E=DRt(t,n,i),x=nf(()=>t.isSourceOfProjectReferenceRedirect(E.fileName)?E:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(E)),D=nf(()=>t.isSourceOfProjectReferenceRedirect(E.fileName)?E:t.getLanguageService().getSourceMapper().tryGetSourcePosition(E)),I=new Set;e:for(;!m.isEmpty();){for(;!m.isEmpty();){if(S.isCancellationRequested())break e;let{project:L,location:F}=m.dequeue();if(u.has(L)||kze(L,F)||(Id(L),!L.containsFile(Nc(F.fileName))))continue;let J=R(L,F);u.set(L,J??ou),I.add(ORt(L))}E&&(d.loadAncestorProjectTree(I),d.forEachEnabledProject(L=>{if(S.isCancellationRequested()||u.has(L))return;let F=wRt(E,L,x,D);F&&m.enqueue({project:L,location:F})}))}if(u.size===1)return g3(u.values());return u;function R(L,F){let J=s(L,F);if(J){for(let $ of J)a($,q=>{let ee=d.getOriginalLocationEnsuringConfiguredProject(L,q);if(!ee)return;let W=d.getScriptInfo(ee.fileName);for(let K of W.containingProjects)!K.isOrphan()&&!u.has(K)&&m.enqueue({project:K,location:ee});let pe=d.getSymlinkedProjects(W);pe&&pe.forEach((K,re)=>{for(let ue of K)!ue.isOrphan()&&!u.has(ue)&&m.enqueue({project:ue,location:{fileName:re,pos:ee.pos}})})});return J}}}function wRt(e,t,n,i){if(t.containsFile(Nc(e.fileName))&&!kze(t,e))return e;let s=n();if(s&&t.containsFile(Nc(s.fileName)))return s;let a=i();return a&&t.containsFile(Nc(a.fileName))?a:void 0}function kze(e,t){if(!t)return!1;let n=e.getLanguageService().getProgram();if(!n)return!1;let i=n.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function ORt(e){return Gv(e)?e.canonicalConfigFilePath:e.getProjectName()}function j6({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function Fte(e,t){return g6(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function Pze(e,t){return KU(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function RRt(e,t){return GQ(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}var Nze=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","getPasteEdits"],MRt=[...Nze,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],Dze=class Rae{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{let a={version:se};return this.requiredResponse(a)},openExternalProject:a=>(this.projectService.openExternalProject(a.arguments,!0),this.requiredResponse(!0)),openExternalProjects:a=>(this.projectService.openExternalProjects(a.arguments.projects),this.requiredResponse(!0)),closeExternalProject:a=>(this.projectService.closeExternalProject(a.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:a=>{let u=this.projectService.synchronizeProjectList(a.arguments.knownProjects,a.arguments.includeProjectReferenceRedirectInfo);if(!u.some(d=>d.projectErrors&&d.projectErrors.length!==0))return this.requiredResponse(u);let m=kr(u,d=>!d.projectErrors||d.projectErrors.length===0?d:{info:d.info,changes:d.changes,files:d.files,projectErrors:this.convertToDiagnosticsWithLinePosition(d.projectErrors,void 0)});return this.requiredResponse(m)},updateOpen:a=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(a.arguments.openFiles&&wx(a.arguments.openFiles,u=>({fileName:u.file,content:u.fileContent,scriptKind:u.scriptKindName,projectRootPath:u.projectRootPath})),a.arguments.changedFiles&&wx(a.arguments.changedFiles,u=>({fileName:u.fileName,changes:Vp(Lo(u.textChanges),m=>{let d=M.checkDefined(this.projectService.getScriptInfo(u.fileName)),S=d.lineOffsetToPosition(m.start.line,m.start.offset),E=d.lineOffsetToPosition(m.end.line,m.end.offset);return S>=0?{span:{start:S,length:E-S},newText:m.newText}:void 0})})),a.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:a=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(a.arguments.openFiles,a.arguments.changedFiles&&wx(a.arguments.changedFiles,u=>({fileName:u.fileName,changes:Lo(u.changes)})),a.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:a=>this.requiredResponse(this.getDefinition(a.arguments,!0)),"definition-full":a=>this.requiredResponse(this.getDefinition(a.arguments,!1)),definitionAndBoundSpan:a=>this.requiredResponse(this.getDefinitionAndBoundSpan(a.arguments,!0)),"definitionAndBoundSpan-full":a=>this.requiredResponse(this.getDefinitionAndBoundSpan(a.arguments,!1)),findSourceDefinition:a=>this.requiredResponse(this.findSourceDefinition(a.arguments)),"emit-output":a=>this.requiredResponse(this.getEmitOutput(a.arguments)),typeDefinition:a=>this.requiredResponse(this.getTypeDefinition(a.arguments)),implementation:a=>this.requiredResponse(this.getImplementation(a.arguments,!0)),"implementation-full":a=>this.requiredResponse(this.getImplementation(a.arguments,!1)),references:a=>this.requiredResponse(this.getReferences(a.arguments,!0)),"references-full":a=>this.requiredResponse(this.getReferences(a.arguments,!1)),rename:a=>this.requiredResponse(this.getRenameLocations(a.arguments,!0)),"renameLocations-full":a=>this.requiredResponse(this.getRenameLocations(a.arguments,!1)),"rename-full":a=>this.requiredResponse(this.getRenameInfo(a.arguments)),open:a=>(this.openClientFile(Nc(a.arguments.file),a.arguments.fileContent,Nte(a.arguments.scriptKindName),a.arguments.projectRootPath?Nc(a.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:a=>this.requiredResponse(this.getQuickInfoWorker(a.arguments,!0)),"quickinfo-full":a=>this.requiredResponse(this.getQuickInfoWorker(a.arguments,!1)),getOutliningSpans:a=>this.requiredResponse(this.getOutliningSpans(a.arguments,!0)),outliningSpans:a=>this.requiredResponse(this.getOutliningSpans(a.arguments,!1)),todoComments:a=>this.requiredResponse(this.getTodoComments(a.arguments)),indentation:a=>this.requiredResponse(this.getIndentation(a.arguments)),nameOrDottedNameSpan:a=>this.requiredResponse(this.getNameOrDottedNameSpan(a.arguments)),breakpointStatement:a=>this.requiredResponse(this.getBreakpointStatement(a.arguments)),braceCompletion:a=>this.requiredResponse(this.isValidBraceCompletion(a.arguments)),docCommentTemplate:a=>this.requiredResponse(this.getDocCommentTemplate(a.arguments)),getSpanOfEnclosingComment:a=>this.requiredResponse(this.getSpanOfEnclosingComment(a.arguments)),fileReferences:a=>this.requiredResponse(this.getFileReferences(a.arguments,!0)),"fileReferences-full":a=>this.requiredResponse(this.getFileReferences(a.arguments,!1)),format:a=>this.requiredResponse(this.getFormattingEditsForRange(a.arguments)),formatonkey:a=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(a.arguments)),"format-full":a=>this.requiredResponse(this.getFormattingEditsForDocumentFull(a.arguments)),"formatonkey-full":a=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(a.arguments)),"formatRange-full":a=>this.requiredResponse(this.getFormattingEditsForRangeFull(a.arguments)),completionInfo:a=>this.requiredResponse(this.getCompletions(a.arguments,"completionInfo")),completions:a=>this.requiredResponse(this.getCompletions(a.arguments,"completions")),"completions-full":a=>this.requiredResponse(this.getCompletions(a.arguments,"completions-full")),completionEntryDetails:a=>this.requiredResponse(this.getCompletionEntryDetails(a.arguments,!1)),"completionEntryDetails-full":a=>this.requiredResponse(this.getCompletionEntryDetails(a.arguments,!0)),compileOnSaveAffectedFileList:a=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(a.arguments)),compileOnSaveEmitFile:a=>this.requiredResponse(this.emitFile(a.arguments)),signatureHelp:a=>this.requiredResponse(this.getSignatureHelpItems(a.arguments,!0)),"signatureHelp-full":a=>this.requiredResponse(this.getSignatureHelpItems(a.arguments,!1)),"compilerOptionsDiagnostics-full":a=>this.requiredResponse(this.getCompilerOptionsDiagnostics(a.arguments)),"encodedSyntacticClassifications-full":a=>this.requiredResponse(this.getEncodedSyntacticClassifications(a.arguments)),"encodedSemanticClassifications-full":a=>this.requiredResponse(this.getEncodedSemanticClassifications(a.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:a=>this.requiredResponse(this.getSemanticDiagnosticsSync(a.arguments)),syntacticDiagnosticsSync:a=>this.requiredResponse(this.getSyntacticDiagnosticsSync(a.arguments)),suggestionDiagnosticsSync:a=>this.requiredResponse(this.getSuggestionDiagnosticsSync(a.arguments)),geterr:a=>(this.errorCheck.startNew(u=>this.getDiagnostics(u,a.arguments.delay,a.arguments.files)),this.notRequired()),geterrForProject:a=>(this.errorCheck.startNew(u=>this.getDiagnosticsForProject(u,a.arguments.delay,a.arguments.file)),this.notRequired()),change:a=>(this.change(a.arguments),this.notRequired()),configure:a=>(this.projectService.setHostConfiguration(a.arguments),this.doOutput(void 0,"configure",a.seq,!0),this.notRequired()),reload:a=>(this.reload(a.arguments,a.seq),this.requiredResponse({reloadFinished:!0})),saveto:a=>{let u=a.arguments;return this.saveToTmp(u.file,u.tmpfile),this.notRequired()},close:a=>{let u=a.arguments;return this.closeClientFile(u.file),this.notRequired()},navto:a=>this.requiredResponse(this.getNavigateToItems(a.arguments,!0)),"navto-full":a=>this.requiredResponse(this.getNavigateToItems(a.arguments,!1)),brace:a=>this.requiredResponse(this.getBraceMatching(a.arguments,!0)),"brace-full":a=>this.requiredResponse(this.getBraceMatching(a.arguments,!1)),navbar:a=>this.requiredResponse(this.getNavigationBarItems(a.arguments,!0)),"navbar-full":a=>this.requiredResponse(this.getNavigationBarItems(a.arguments,!1)),navtree:a=>this.requiredResponse(this.getNavigationTree(a.arguments,!0)),"navtree-full":a=>this.requiredResponse(this.getNavigationTree(a.arguments,!1)),documentHighlights:a=>this.requiredResponse(this.getDocumentHighlights(a.arguments,!0)),"documentHighlights-full":a=>this.requiredResponse(this.getDocumentHighlights(a.arguments,!1)),compilerOptionsForInferredProjects:a=>(this.setCompilerOptionsForInferredProjects(a.arguments),this.requiredResponse(!0)),projectInfo:a=>this.requiredResponse(this.getProjectInfo(a.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:a=>this.requiredResponse(this.getJsxClosingTag(a.arguments)),linkedEditingRange:a=>this.requiredResponse(this.getLinkedEditingRange(a.arguments)),getCodeFixes:a=>this.requiredResponse(this.getCodeFixes(a.arguments,!0)),"getCodeFixes-full":a=>this.requiredResponse(this.getCodeFixes(a.arguments,!1)),getCombinedCodeFix:a=>this.requiredResponse(this.getCombinedCodeFix(a.arguments,!0)),"getCombinedCodeFix-full":a=>this.requiredResponse(this.getCombinedCodeFix(a.arguments,!1)),applyCodeActionCommand:a=>this.requiredResponse(this.applyCodeActionCommand(a.arguments)),getSupportedCodeFixes:a=>this.requiredResponse(this.getSupportedCodeFixes(a.arguments)),getApplicableRefactors:a=>this.requiredResponse(this.getApplicableRefactors(a.arguments)),getEditsForRefactor:a=>this.requiredResponse(this.getEditsForRefactor(a.arguments,!0)),getMoveToRefactoringFileSuggestions:a=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(a.arguments)),getPasteEdits:a=>this.requiredResponse(this.getPasteEdits(a.arguments)),"getEditsForRefactor-full":a=>this.requiredResponse(this.getEditsForRefactor(a.arguments,!1)),organizeImports:a=>this.requiredResponse(this.organizeImports(a.arguments,!0)),"organizeImports-full":a=>this.requiredResponse(this.organizeImports(a.arguments,!1)),getEditsForFileRename:a=>this.requiredResponse(this.getEditsForFileRename(a.arguments,!0)),"getEditsForFileRename-full":a=>this.requiredResponse(this.getEditsForFileRename(a.arguments,!1)),configurePlugin:a=>(this.configurePlugin(a.arguments),this.doOutput(void 0,"configurePlugin",a.seq,!0),this.notRequired()),selectionRange:a=>this.requiredResponse(this.getSmartSelectionRange(a.arguments,!0)),"selectionRange-full":a=>this.requiredResponse(this.getSmartSelectionRange(a.arguments,!1)),prepareCallHierarchy:a=>this.requiredResponse(this.prepareCallHierarchy(a.arguments)),provideCallHierarchyIncomingCalls:a=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(a.arguments)),provideCallHierarchyOutgoingCalls:a=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(a.arguments)),toggleLineComment:a=>this.requiredResponse(this.toggleLineComment(a.arguments,!0)),"toggleLineComment-full":a=>this.requiredResponse(this.toggleLineComment(a.arguments,!1)),toggleMultilineComment:a=>this.requiredResponse(this.toggleMultilineComment(a.arguments,!0)),"toggleMultilineComment-full":a=>this.requiredResponse(this.toggleMultilineComment(a.arguments,!1)),commentSelection:a=>this.requiredResponse(this.commentSelection(a.arguments,!0)),"commentSelection-full":a=>this.requiredResponse(this.commentSelection(a.arguments,!1)),uncommentSelection:a=>this.requiredResponse(this.uncommentSelection(a.arguments,!0)),"uncommentSelection-full":a=>this.requiredResponse(this.uncommentSelection(a.arguments,!1)),provideInlayHints:a=>this.requiredResponse(this.provideInlayHints(a.arguments)),mapCode:a=>this.requiredResponse(this.mapCode(a.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||mte,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:n}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(a=>this.defaultEventHandler(a)):void 0;let i={executeWithRequestId:(a,u)=>this.executeWithRequestId(a,u),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(a,u)=>this.logError(a,u),sendRequestCompletedEvent:a=>this.sendRequestCompletedEvent(a),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new kRt(i);let s={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:n,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new bEe(s),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Kbe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Nze.forEach(a=>this.handlers.set(a,u=>{throw new Error(`Request: ${u.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:MRt.forEach(a=>this.handlers.set(a,u=>{throw new Error(`Request: ${u.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:M.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,n){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+n}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case uJ:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case vte:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case Ste:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case Tte:case Cte:case Ate:case kte:this.event(t.data,t.eventName);break;case bte:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:kr(t.data.diagnostics,n=>gL(n,!0))},t.eventName);break;case Ete:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case xte:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(n=>this.updateErrorCheck(n,t,100,!0))),this.event({openFiles:t},uJ))}logError(t,n){this.logErrorWorker(t,n)}logErrorWorker(t,n,i){let s="Exception on executing command "+n;if(t.message&&(s+=`:
`+u6(t.message),t.stack&&(s+=`
`+u6(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:a,project:u}=this.getFileAndProject(i),m=u.getScriptInfoForNormalizedPath(a);if(m){let d=ok(m.getSnapshot());s+=`

File text of ${i.file}:${u6(d)}
`}}catch{}if(t.ProgramFiles){s+=`

Program files: ${JSON.stringify(t.ProgramFiles)}
`,s+=`

Projects::
`;let a=0,u=m=>{s+=`
Project '${m.projectName}' (${_L[m.projectKind]}) ${a}
`,s+=m.filesToString(!0),s+=`
-----------------------------------------------
`,a++};this.projectService.externalProjects.forEach(u),this.projectService.configuredProjects.forEach(u),this.projectService.inferredProjects.forEach(u)}}this.logger.msg(s,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${OT(t)}`);return}this.writeMessage(t)}writeMessage(t){var n;let i=kEe(t,this.logger,this.byteLength,this.host.newLine);(n=sf)==null||n.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,n){this.send(PEe(n,t))}doOutput(t,n,i,s,a){let u={seq:0,type:"response",command:n,request_seq:i,success:s,performanceData:this.performanceData};if(s){let m;if(Ms(t))u.body=t,m=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:d,...S}=t;u.body=S,m=d}else u.body=t;else u.body=t;m&&(u.metadata=m)}else M.assert(t===void 0);a&&(u.message=a),this.send(u)}semanticCheck(t,n){var i,s;(i=kn)==null||i.push(kn.Phase.Session,"semanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});let a=Eze(n,t)?ou:n.getLanguageService().getSemanticDiagnostics(t).filter(u=>!!u.file);this.sendDiagnosticsEvent(t,n,a,"semanticDiag"),(s=kn)==null||s.pop()}syntacticCheck(t,n){var i,s;(i=kn)==null||i.push(kn.Phase.Session,"syntacticCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(s=kn)==null||s.pop()}suggestionCheck(t,n){var i,s;(i=kn)==null||i.push(kn.Phase.Session,"suggestionCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(s=kn)==null||s.pop()}sendDiagnosticsEvent(t,n,i,s){try{this.event({file:t,diagnostics:i.map(a=>xze(t,n,a))},s)}catch(a){this.logError(a,s)}}updateErrorCheck(t,n,i,s=!0){M.assert(!this.suppressDiagnosticEvents);let a=this.changeSeq,u=Math.min(i,200),m=0,d=()=>{m++,n.length>m&&t.delay("checkOne",u,S)},S=()=>{if(this.changeSeq!==a)return;let E=n[m];if(bs(E)&&(E=this.toPendingErrorCheck(E),!E)){d();return}let{fileName:x,project:D}=E;if(Id(D),!!D.containsFile(x,s)&&(this.syntacticCheck(x,D),this.changeSeq===a)){if(D.projectService.serverMode!==0){d();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(x,D),this.changeSeq===a){if(this.getPreferences(x).disableSuggestions){d();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(x,D),d()})}})}};n.length>m&&this.changeSeq===a&&t.delay("checkOne",i,S)}cleanProjects(t,n){if(n){this.logger.info(`cleaning ${t}`);for(let i of n)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Os(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(n,t)}getEncodedSemanticClassifications(t){let{file:n,project:i}=this.getFileAndProject(t),s=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(n,t,s)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let n=this.getProject(t.projectFileName),i=Nc(t.file);return{configFile:n&&n.hasConfigFile(i)?i:void 0,project:n}}getConfigFileDiagnostics(t,n,i){let s=n.getAllProjectErrors(),a=n.getLanguageService().getCompilerOptionsDiagnostics(),u=ti(ds(s,a),m=>!!m.file&&m.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(u):kr(u,m=>gL(m,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(n=>({message:Qg(n.messageText,this.host.newLine),start:n.start,length:n.length,category:Bx(n),code:n.code,source:n.source,startLocation:n.file&&pD(Eo(n.file,n.start)),endLocation:n.file&&pD(Eo(n.file,n.start+n.length)),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,relatedInformation:kr(n.relatedInformation,Mte)}))}getCompilerOptionsDiagnostics(t){let n=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(ti(n.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,n){return t.map(i=>({message:Qg(i.messageText,this.host.newLine),start:i.start,length:i.length,category:Bx(i),code:i.code,source:i.source,startLocation:n&&n.positionToLineOffset(i.start),endLocation:n&&n.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:kr(i.relatedInformation,Mte)}))}getDiagnosticsWorker(t,n,i,s){let{project:a,file:u}=this.getFileAndProject(t);if(n&&Eze(a,u))return ou;let m=a.getScriptInfoForNormalizedPath(u),d=i(a,u);return s?this.convertToDiagnosticsWithLinePosition(d,m):d.map(S=>xze(u,a,S))}getDefinition(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=this.getPositionInFile(t,i),u=this.mapDefinitionInfoLocations(s.getLanguageService().getDefinitionAtPosition(i,a)||ou,s);return n?this.mapDefinitionInfo(u,s):u.map(Rae.mapToOriginalLocation)}mapDefinitionInfoLocations(t,n){return t.map(i=>{let s=Pze(i,n);return s?{...s,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=this.getPositionInFile(t,i),u=M.checkDefined(s.getScriptInfo(i)),m=s.getLanguageService().getDefinitionAndBoundSpan(i,a);if(!m||!m.definitions)return{definitions:ou,textSpan:void 0};let d=this.mapDefinitionInfoLocations(m.definitions,s),{textSpan:S}=m;return n?{definitions:this.mapDefinitionInfo(d,s),textSpan:Gh(S,u)}:{definitions:d.map(Rae.mapToOriginalLocation),textSpan:S}}findSourceDefinition(t){var n;let{file:i,project:s}=this.getFileAndProject(t),a=this.getPositionInFile(t,i),u=s.getLanguageService().getDefinitionAtPosition(i,a),m=this.mapDefinitionInfoLocations(u||ou,s).slice();if(this.projectService.serverMode===0&&(!Dt(m,I=>Nc(I.fileName)!==i&&!I.isAmbient)||Dt(m,I=>!!I.failedAliasResolution))){let I=qW(J=>J.textSpan.start,zQ(this.host.useCaseSensitiveFileNames));m?.forEach(J=>I.add(J));let R=s.getNoDtsResolutionProject(i),L=R.getLanguageService(),F=(n=L.getDefinitionAtPosition(i,a,!0,!1))==null?void 0:n.filter(J=>Nc(J.fileName)!==i);if(Dt(F))for(let J of F){if(J.unverified){let $=x(J,s.getLanguageService().getProgram(),L.getProgram());if(Dt($)){for(let q of $)I.add(q);continue}}I.add(J)}else{let J=m.filter($=>Nc($.fileName)!==i&&$.isAmbient);for(let $ of Dt(J)?J:E()){let q=S($.fileName,i,R);if(!q)continue;let ee=this.projectService.getOrCreateScriptInfoNotOpenedByClient(q,R.currentDirectory,R.directoryStructureHost,!1);if(!ee)continue;R.containsScriptInfo(ee)||(R.addRoot(ee),R.updateGraph());let W=L.getProgram(),pe=M.checkDefined(W.getSourceFile(q));for(let K of D($.name,pe,W))I.add(K)}}m=Os(I.values())}return m=m.filter(I=>!I.isAmbient&&!I.failedAliasResolution),this.mapDefinitionInfo(m,s);function S(I,R,L){var F,J,$;let q=Tj(I);if(q&&I.lastIndexOf(Fy)===q.topLevelNodeModulesIndex){let ee=I.substring(0,q.packageRootIndex),W=(F=s.getModuleResolutionCache())==null?void 0:F.getPackageJsonInfoCache(),pe=s.getCompilationSettings(),K=WO(Cs(ee+"/package.json",s.getCurrentDirectory()),zO(W,s,pe));if(!K)return;let re=mK(K,{moduleResolution:2},s,s.getModuleResolutionCache()),ue=I.substring(q.topLevelPackageNameIndex+1,q.packageRootIndex),ce=GO(UM(ue)),ne=s.toPath(I);if(re&&Dt(re,le=>s.toPath(le)===ne))return(J=L.resolutionCache.resolveSingleModuleNameWithoutWatching(ce,R).resolvedModule)==null?void 0:J.resolvedFileName;{let le=I.substring(q.packageRootIndex+1),me=`${ce}/${lf(le)}`;return($=L.resolutionCache.resolveSingleModuleNameWithoutWatching(me,R).resolvedModule)==null?void 0:$.resolvedFileName}}}function E(){let I=s.getLanguageService(),R=I.getProgram(),L=Of(R.getSourceFile(i),a);return(Ia(L)||$e(L))&&ac(L.parent)&&npe(L,F=>{var J;if(F===L)return;let $=(J=I.getDefinitionAtPosition(i,F.getStart(),!0,!1))==null?void 0:J.filter(q=>Nc(q.fileName)!==i&&q.isAmbient).map(q=>({fileName:q.fileName,name:Zd(L)}));if(Dt($))return $})||ou}function x(I,R,L){var F;let J=L.getSourceFile(I.fileName);if(!J)return;let $=Of(R.getSourceFile(i),a),q=R.getTypeChecker().getSymbolAtLocation($),ee=q&&kc(q,276);if(!ee)return;let W=((F=ee.propertyName)==null?void 0:F.text)||ee.name.text;return D(W,J,L)}function D(I,R,L){let F=lc.Core.getTopMostDeclarationNamesInFile(I,R);return Yi(F,J=>{let $=L.getTypeChecker().getSymbolAtLocation(J),q=Lw(J);if($&&q)return cD.createDefinitionInfo(q,L.getTypeChecker(),$,q,!0)})}}getEmitOutput(t){let{file:n,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(n)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let s=i.getLanguageService().getEmitOutput(n);return t.richResponse?{...s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(s.diagnostics):s.diagnostics.map(a=>gL(a,!0))}:s}mapJSDocTagInfo(t,n,i){return t?t.map(s=>{var a;return{...s,text:i?this.mapDisplayParts(s.text,n):(a=s.text)==null?void 0:a.map(u=>u.text).join("")}}):[]}mapDisplayParts(t,n){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,n)}):[]}mapSignatureHelpItems(t,n,i){return t.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,n),parameters:s.parameters.map(a=>({...a,documentation:this.mapDisplayParts(a.documentation,n)})),tags:this.mapJSDocTagInfo(s.tags,n,i)}))}mapDefinitionInfo(t,n){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,n),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(M.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,n,i){let s=i.getLanguageService(),a=s.toLineColumnOffset(t,n.start),u=s.toLineColumnOffset(t,bl(n));return{file:t,start:{line:a.line+1,offset:a.character+1},end:{line:u.line+1,offset:u.character+1}}}toFileSpanWithContext(t,n,i,s){let a=this.toFileSpan(t,n,s),u=i&&this.toFileSpan(t,i,s);return u?{...a,contextStart:u.start,contextEnd:u.end}:a}getTypeDefinition(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),a=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(n,s)||ou,i);return this.mapDefinitionInfo(a,i)}mapImplementationLocations(t,n){return t.map(i=>{let s=Pze(i,n);return s?{...s,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=this.getPositionInFile(t,i),u=this.mapImplementationLocations(s.getLanguageService().getImplementationAtPosition(i,a)||ou,s);return n?u.map(({fileName:m,textSpan:d,contextSpan:S})=>this.toFileSpanWithContext(m,d,S,s)):u.map(Rae.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:n}=this.getConfigFileAndProject(t);return n?ou:this.getDiagnosticsWorker(t,!1,(i,s)=>i.getLanguageService().getSyntacticDiagnostics(s),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:n,project:i}=this.getConfigFileAndProject(t);return n?this.getConfigFileDiagnostics(n,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(s,a)=>s.getLanguageService().getSemanticDiagnostics(a).filter(u=>!!u.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:n}=this.getConfigFileAndProject(t);return n?ou:this.getDiagnosticsWorker(t,!0,(i,s)=>i.getLanguageService().getSuggestionDiagnostics(s),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),a=i.getJsxClosingTagAtPosition(n,s);return a===void 0?void 0:{newText:a.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),a=i.getLinkedEditingRangeAtPosition(n,s),u=this.projectService.getScriptInfoForNormalizedPath(n);if(!(u===void 0||a===void 0))return FRt(a,u)}getDocumentHighlights(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=this.getPositionInFile(t,i),u=s.getLanguageService().getDocumentHighlights(i,a,t.filesToSearch);return u?n?u.map(({fileName:m,highlightSpans:d})=>{let S=s.getScriptInfo(m);return{file:m,highlightSpans:d.map(({textSpan:E,kind:x,contextSpan:D})=>({...DEe(E,D,S),kind:x}))}}):u:ou}provideInlayHints(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);return i.getLanguageService().provideInlayHints(n,t,this.getPreferences(n)).map(u=>{let{position:m,displayParts:d}=u;return{...u,position:s.positionToLineOffset(m),displayParts:d?.map(({text:S,span:E,file:x})=>{if(E){M.assertIsDefined(x,"Target file should be defined together with its span.");let D=this.projectService.getScriptInfo(x);return{text:S,span:{start:D.positionToLineOffset(E.start),end:D.positionToLineOffset(E.start+E.length),file:x}}}else return{text:S}})}})}mapCode(t){var n;let i=this.getHostFormatOptions(),s=this.getHostPreferences(),{file:a,languageService:u}=this.getFileAndLanguageServiceForSyntacticOperation(t),m=this.projectService.getScriptInfoForNormalizedPath(a),d=(n=t.mapping.focusLocations)==null?void 0:n.map(E=>E.map(x=>{let D=m.lineOffsetToPosition(x.start.line,x.start.offset),I=m.lineOffsetToPosition(x.end.line,x.end.offset);return{start:D,length:I-D}})),S=u.mapCode(a,t.mapping.contents,d,i,s);return this.mapTextChangesToCodeEdits(S)}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,n,i,s){let{project:a}=this.getFileAndProjectWorker(t,n);return Id(a),{configFileName:a.getProjectName(),languageServiceDisabled:!a.languageServiceEnabled,fileNames:i?a.getFileNames(!1,s):void 0}}getRenameInfo(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),a=this.getPreferences(n);return i.getLanguageService().getRenameInfo(n,s,a)}getProjects(t,n,i){let s,a;if(t.projectFileName){let u=this.getProject(t.projectFileName);u&&(s=[u])}else{let u=n?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(u)n||this.projectService.ensureDefaultProjectForFile(u);else return i?ou:(this.projectService.logErrorForScriptInfoNotFound(t.file),O0.ThrowNoProject());s=u.containingProjects,a=this.projectService.getSymlinkedProjects(u)}return s=ti(s,u=>u.languageServiceEnabled&&!u.isOrphan()),!i&&(!s||!s.length)&&!a?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),O0.ThrowNoProject()):a?{projects:s,symLinkedProjects:a}:s}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return O0.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,n){let i=Nc(t.file),s=this.getPositionInFile(t,i),a=this.getProjects(t),u=this.getDefaultProject(t),m=this.getPreferences(i),d=this.mapRenameInfo(u.getLanguageService().getRenameInfo(i,s,m),M.checkDefined(this.projectService.getScriptInfo(i)));if(!d.canRename)return n?{info:d,locs:[]}:[];let S=NRt(a,u,{fileName:t.file,pos:s},!!t.findInStrings,!!t.findInComments,m,this.host.useCaseSensitiveFileNames);return n?{info:d,locs:this.toSpanGroups(S)}:S}mapRenameInfo(t,n){if(t.canRename){let{canRename:i,fileToRename:s,displayName:a,fullDisplayName:u,kind:m,kindModifiers:d,triggerSpan:S}=t;return{canRename:i,fileToRename:s,displayName:a,fullDisplayName:u,kind:m,kindModifiers:d,triggerSpan:Gh(S,n)}}else return t}toSpanGroups(t){let n=new Map;for(let{fileName:i,textSpan:s,contextSpan:a,originalContextSpan:u,originalTextSpan:m,originalFileName:d,...S}of t){let E=n.get(i);E||n.set(i,E={file:i,locs:[]});let x=M.checkDefined(this.projectService.getScriptInfo(i));E.locs.push({...DEe(s,a,x),...S})}return Os(n.values())}getReferences(t,n){let i=Nc(t.file),s=this.getProjects(t),a=this.getPositionInFile(t,i),u=IRt(s,this.getDefaultProject(t),{fileName:t.file,pos:a},this.host.useCaseSensitiveFileNames,this.logger);if(!n)return u;let m=this.getPreferences(i),d=this.getDefaultProject(t),S=d.getScriptInfoForNormalizedPath(i),E=d.getLanguageService().getQuickInfoAtPosition(i,a),x=E?U8(E.displayParts):"",D=E&&E.textSpan,I=D?S.positionToLineOffset(D.start).offset:0,R=D?S.getSnapshot().getText(D.start,bl(D)):"";return{refs:To(u,F=>F.references.map(J=>wze(this.projectService,J,m))),symbolName:R,symbolStartOffset:I,symbolDisplayString:x}}getFileReferences(t,n){let i=this.getProjects(t),s=t.file,a=this.getPreferences(Nc(s)),u=[],m=Lte(this.host.useCaseSensitiveFileNames);return NEe(i,void 0,S=>{if(S.getCancellationToken().isCancellationRequested())return;let E=S.getLanguageService().getFileReferences(s);if(E)for(let x of E)m.has(x)||(u.push(x),m.add(x))}),n?{refs:u.map(S=>wze(this.projectService,S,a)),symbolName:`"${t.file}"`}:u}openClientFile(t,n,i,s){this.projectService.openClientFileWithNormalizedPath(t,n,i,!1,s)}getPosition(t,n){return t.position!==void 0?t.position:n.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,n){let i=this.projectService.getScriptInfoForNormalizedPath(n);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:n,project:i}=this.getFileAndProject(t);return{file:n,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,n){let i=Nc(t),s=this.getProject(n)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:s}}getOutliningSpans(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),a=s.getOutliningSpans(i);if(n){let u=this.projectService.getScriptInfoForNormalizedPath(i);return a.map(m=>({textSpan:Gh(m.textSpan,u),hintSpan:Gh(m.hintSpan,u),bannerText:m.bannerText,autoCollapse:m.autoCollapse,kind:m.kind}))}else return a}getTodoComments(t){let{file:n,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(n,t.descriptors)}getDocCommentTemplate(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getDocCommentTemplateAtPosition(n,s,this.getPreferences(n),this.getFormatOptions(n))}getSpanOfEnclosingComment(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.onlyMultiLine,a=this.getPositionInFile(t,n);return i.getSpanOfEnclosingComment(n,a,s)}getIndentation(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),a=t.options?fD(t.options):this.getFormatOptions(n),u=i.getIndentationAtPosition(n,s,a);return{position:s,indentation:u}}getBreakpointStatement(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getBreakpointStatementAtPosition(n,s)}getNameOrDottedNameSpan(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getNameOrDottedNameSpan(n,s,s)}isValidBraceCompletion(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.isValidBraceCompletionAtPosition(n,s,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=this.projectService.getScriptInfoForNormalizedPath(i),u=s.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,a));if(!u)return;let m=!!this.getPreferences(i).displayPartsForJSDoc;if(n){let d=U8(u.displayParts);return{kind:u.kind,kindModifiers:u.kindModifiers,start:a.positionToLineOffset(u.textSpan.start),end:a.positionToLineOffset(bl(u.textSpan)),displayString:d,documentation:m?this.mapDisplayParts(u.documentation,s):U8(u.documentation),tags:this.mapJSDocTagInfo(u.tags,s,m)}}else return m?u:{...u,tags:this.mapJSDocTagInfo(u.tags,s,!1)}}getFormattingEditsForRange(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),a=s.lineOffsetToPosition(t.line,t.offset),u=s.lineOffsetToPosition(t.endLine,t.endOffset),m=i.getFormattingEditsForRange(n,a,u,this.getFormatOptions(n));if(m)return m.map(d=>this.convertTextChangeToCodeEdit(d,s))}getFormattingEditsForRangeFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?fD(t.options):this.getFormatOptions(n);return i.getFormattingEditsForRange(n,t.position,t.endPosition,s)}getFormattingEditsForDocumentFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?fD(t.options):this.getFormatOptions(n);return i.getFormattingEditsForDocument(n,s)}getFormattingEditsAfterKeystrokeFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?fD(t.options):this.getFormatOptions(n);return i.getFormattingEditsAfterKeystroke(n,t.position,t.key,s)}getFormattingEditsAfterKeystroke(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),a=s.lineOffsetToPosition(t.line,t.offset),u=this.getFormatOptions(n),m=i.getFormattingEditsAfterKeystroke(n,a,t.key,u);if(t.key===`
`&&(!m||m.length===0||ARt(m,a))){let{lineText:d,absolutePosition:S}=s.textStorage.getAbsolutePositionAndLineText(t.line);if(d&&d.search("\\S")<0){let E=i.getIndentationAtPosition(n,a,u),x=0,D,I;for(D=0,I=d.length;D({start:s.positionToLineOffset(d.span.start),end:s.positionToLineOffset(bl(d.span)),newText:d.newText?d.newText:""}))}getCompletions(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=this.projectService.getScriptInfoForNormalizedPath(i),u=this.getPosition(t,a),m=s.getLanguageService().getCompletionsAtPosition(i,u,{...dEe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},s.projectService.getFormatCodeOptions(i));if(m===void 0)return;if(n==="completions-full")return m;let d=t.prefix||"",S=Yi(m.entries,x=>{if(m.isMemberCompletion||fs(x.name.toLowerCase(),d.toLowerCase())){let{name:D,kind:I,kindModifiers:R,sortText:L,insertText:F,filterText:J,replacementSpan:$,hasAction:q,source:ee,sourceDisplay:W,labelDetails:pe,isSnippet:K,isRecommended:re,isPackageJsonImport:ue,isImportStatementCompletion:ce,data:ne}=x,le=$?Gh($,a):void 0;return{name:D,kind:I,kindModifiers:R,sortText:L,insertText:F,filterText:J,replacementSpan:le,isSnippet:K,hasAction:q||void 0,source:ee,sourceDisplay:W,labelDetails:pe,isRecommended:re,isPackageJsonImport:ue,isImportStatementCompletion:ce,data:ne}}});return n==="completions"?(m.metadata&&(S.metadata=m.metadata),S):{...m,optionalReplacementSpan:m.optionalReplacementSpan&&Gh(m.optionalReplacementSpan,a),entries:S}}getCompletionEntryDetails(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=this.projectService.getScriptInfoForNormalizedPath(i),u=this.getPosition(t,a),m=s.projectService.getFormatCodeOptions(i),d=!!this.getPreferences(i).displayPartsForJSDoc,S=Yi(t.entryNames,E=>{let{name:x,source:D,data:I}=typeof E=="string"?{name:E,source:void 0,data:void 0}:E;return s.getLanguageService().getCompletionEntryDetails(i,u,x,m,D,this.getPreferences(i),I?ao(I,JRt):void 0)});return n?d?S:S.map(E=>({...E,tags:this.mapJSDocTagInfo(E.tags,s,!1)})):S.map(E=>({...E,codeActions:kr(E.codeActions,x=>this.mapCodeAction(x)),documentation:this.mapDisplayParts(E.documentation,s),tags:this.mapJSDocTagInfo(E.tags,s,d)}))}getCompileOnSaveAffectedFileList(t){let n=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?PRt(i,s=>this.projectService.getScriptInfoForPath(s),n,(s,a)=>{if(!s.compileOnSaveEnabled||!s.languageServiceEnabled||s.isOrphan())return;let u=s.getCompilationSettings();if(!(u.noEmit||ju(a.fileName)&&!CRt(u)))return{projectFileName:s.getProjectName(),fileNames:s.getCompileOnSaveAffectedFileList(a),projectUsesOutFile:!!u.outFile}}):ou}emitFile(t){let{file:n,project:i}=this.getFileAndProject(t);if(i||O0.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let s=i.getScriptInfo(n),{emitSkipped:a,diagnostics:u}=i.emitFile(s,(m,d,S)=>this.host.writeFile(m,d,S));return t.richResponse?{emitSkipped:a,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(u):u.map(m=>gL(m,!0))}:!a}getSignatureHelpItems(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=this.projectService.getScriptInfoForNormalizedPath(i),u=this.getPosition(t,a),m=s.getLanguageService().getSignatureHelpItems(i,u,t),d=!!this.getPreferences(i).displayPartsForJSDoc;if(m&&n){let S=m.applicableSpan;return{...m,applicableSpan:{start:a.positionToLineOffset(S.start),end:a.positionToLineOffset(S.start+S.length)},items:this.mapSignatureHelpItems(m.items,s,d)}}else return d||!m?m:{...m,items:m.items.map(S=>({...S,tags:this.mapJSDocTagInfo(S.tags,s,!1)}))}}toPendingErrorCheck(t){let n=Nc(t),i=this.projectService.tryGetDefaultProjectForFile(n);return i&&{fileName:n,project:i}}getDiagnostics(t,n,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,n)}change(t){let n=this.projectService.getScriptInfo(t.file);M.assert(!!n),n.textStorage.switchToScriptVersionCache();let i=n.lineOffsetToPosition(t.line,t.offset),s=n.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(n,i5({span:{start:i,length:s-i},newText:t.insertString})))}reload(t,n){let i=Nc(t.file),s=t.tmpfile===void 0?void 0:Nc(t.tmpfile),a=this.projectService.getScriptInfoForNormalizedPath(i);a&&(this.changeSeq++,a.reloadFromFile(s)&&this.doOutput(void 0,"reload",n,!0))}saveToTmp(t,n){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(n)}closeClientFile(t){if(!t)return;let n=eo(t);this.projectService.closeClientFile(n)}mapLocationNavigationBarItems(t,n){return kr(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(s=>Gh(s,n)),childItems:this.mapLocationNavigationBarItems(i.childItems,n),indent:i.indent}))}getNavigationBarItems(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),a=s.getNavigationBarItems(i);return a?n?this.mapLocationNavigationBarItems(a,this.projectService.getScriptInfoForNormalizedPath(i)):a:void 0}toLocationNavigationTree(t,n){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Gh(i,n)),nameSpan:t.nameSpan&&Gh(t.nameSpan,n),childItems:kr(t.childItems,i=>this.toLocationNavigationTree(i,n))}}getNavigationTree(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),a=s.getNavigationTree(i);return a?n?this.toLocationNavigationTree(a,this.projectService.getScriptInfoForNormalizedPath(i)):a:void 0}getNavigateToItems(t,n){let i=this.getFullNavigateToItems(t);return n?To(i,({project:s,navigateToItems:a})=>a.map(u=>{let m=s.getScriptInfo(u.fileName),d={name:u.name,kind:u.kind,kindModifiers:u.kindModifiers,isCaseSensitive:u.isCaseSensitive,matchKind:u.matchKind,file:u.fileName,start:m.positionToLineOffset(u.textSpan.start),end:m.positionToLineOffset(bl(u.textSpan))};return u.kindModifiers&&u.kindModifiers!==""&&(d.kindModifiers=u.kindModifiers),u.containerName&&u.containerName.length>0&&(d.containerName=u.containerName),u.containerKind&&u.containerKind.length>0&&(d.containerKind=u.containerKind),d})):To(i,({navigateToItems:s})=>s)}getFullNavigateToItems(t){let{currentFileOnly:n,searchValue:i,maxResultCount:s,projectFileName:a}=t;if(n){M.assertIsDefined(t.file);let{file:D,project:I}=this.getFileAndProject(t);return[{project:I,navigateToItems:I.getLanguageService().getNavigateToItems(i,s,D)}]}let u=this.getHostPreferences(),m=[],d=new Map;if(!t.file&&!a)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(D=>S(D));else{let D=this.getProjects(t);NEe(D,void 0,I=>S(I))}return m;function S(D){let I=D.getLanguageService().getNavigateToItems(i,s,void 0,D.isNonTsProject(),u.excludeLibrarySymbolsInNavTo),R=ti(I,L=>E(L)&&!Fte(j6(L),D));R.length&&m.push({project:D,navigateToItems:R})}function E(D){let I=D.name;if(!d.has(I))return d.set(I,[D]),!0;let R=d.get(I);for(let L of R)if(x(L,D))return!1;return R.push(D),!0}function x(D,I){return D===I?!0:!D||!I?!1:D.containerKind===I.containerKind&&D.containerName===I.containerName&&D.fileName===I.fileName&&D.isCaseSensitive===I.isCaseSensitive&&D.kind===I.kind&&D.kindModifiers===I.kindModifiers&&D.matchKind===I.matchKind&&D.name===I.name&&D.textSpan.start===I.textSpan.start&&D.textSpan.length===I.textSpan.length}}getSupportedCodeFixes(t){if(!t)return ZZ();if(t.file){let{file:i,project:s}=this.getFileAndProject(t);return s.getLanguageService().getSupportedCodeFixes(i)}let n=this.getProject(t.projectFileName);return n||O0.ThrowNoProject(),n.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,n){let i,s;return this.isLocation(t)?i=a(t):s=this.getRange(t,n),M.checkDefined(i===void 0?s:i);function a(u){return u.position!==void 0?u.position:n.lineOffsetToPosition(u.line,u.offset)}}getRange(t,n){let{startPosition:i,endPosition:s}=this.getStartAndEndPosition(t,n);return{pos:i,end:s}}getApplicableRefactors(t){let{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getApplicableRefactors(n,this.extractPositionOrRange(t,s),this.getPreferences(n),t.triggerReason,t.kind,t.includeInteractiveActions).map(u=>({...u,actions:u.actions.map(m=>({...m,range:m.range?{start:pD({line:m.range.start.line,character:m.range.start.offset}),end:pD({line:m.range.end.line,character:m.range.end.offset})}:void 0}))}))}getEditsForRefactor(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=s.getScriptInfoForNormalizedPath(i),u=s.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,a),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(u===void 0)return{edits:[]};if(n){let{renameFilename:m,renameLocation:d,edits:S}=u,E;if(m!==void 0&&d!==void 0){let x=s.getScriptInfoForNormalizedPath(Nc(m));E=IEe(ok(x.getSnapshot()),m,d,S)}return{renameLocation:E,renameFilename:m,edits:this.mapTextChangesToCodeEdits(S),notApplicableReason:u.notApplicableReason}}return u}getMoveToRefactoringFileSuggestions(t){let{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getMoveToRefactoringFileSuggestions(n,this.extractPositionOrRange(t,s),this.getPreferences(n))}getPasteEdits(t){let{file:n,project:i}=this.getFileAndProject(t),s=t.copiedFrom?{file:t.copiedFrom.file,range:t.copiedFrom.spans.map(u=>this.getRange({file:t.copiedFrom.file,startLine:u.start.line,startOffset:u.start.offset,endLine:u.end.line,endOffset:u.end.offset},i.getScriptInfoForNormalizedPath(Nc(t.copiedFrom.file))))}:void 0,a=i.getLanguageService().getPasteEdits({targetFile:n,pastedText:t.pastedText,pasteLocations:t.pasteLocations.map(u=>this.getRange({file:n,startLine:u.start.line,startOffset:u.start.offset,endLine:u.end.line,endOffset:u.end.offset},i.getScriptInfoForNormalizedPath(n))),copiedFrom:s,preferences:this.getPreferences(n)},this.getFormatOptions(n));return a&&this.mapPasteEditsAction(a)}organizeImports(t,n){M.assert(t.scope.type==="file");let{file:i,project:s}=this.getFileAndProject(t.scope.args),a=s.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return n?this.mapTextChangesToCodeEdits(a):a}getEditsForFileRename(t,n){let i=Nc(t.oldFilePath),s=Nc(t.newFilePath),a=this.getHostFormatOptions(),u=this.getHostPreferences(),m=new Set,d=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(S=>{let E=S.getLanguageService().getEditsForFileRename(i,s,a,u),x=[];for(let D of E)m.has(D.fileName)||(d.push(D),x.push(D.fileName));for(let D of x)m.add(D)}),n?d.map(S=>this.mapTextChangeToCodeEdit(S)):d}getCodeFixes(t,n){let{file:i,project:s}=this.getFileAndProject(t),a=s.getScriptInfoForNormalizedPath(i),{startPosition:u,endPosition:m}=this.getStartAndEndPosition(t,a),d;try{d=s.getLanguageService().getCodeFixesAtPosition(i,u,m,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(S){let E=s.getLanguageService(),x=[...E.getSyntacticDiagnostics(i),...E.getSemanticDiagnostics(i),...E.getSuggestionDiagnostics(i)].map(I=>R3(u,m-u,I.start,I.length)&&I.code),D=t.errorCodes.find(I=>!x.includes(I));throw D!==void 0&&(S.message=`BADCLIENT: Bad error code, ${D} not found in range ${u}..${m} (found: ${x.join(", ")}); could have caused this error:
${S.message}`),S}return n?d.map(S=>this.mapCodeFixAction(S)):d}getCombinedCodeFix({scope:t,fixId:n},i){M.assert(t.type==="file");let{file:s,project:a}=this.getFileAndProject(t.args),u=a.getLanguageService().getCombinedCodeFix({type:"file",fileName:s},n,this.getFormatOptions(s),this.getPreferences(s));return i?{changes:this.mapTextChangesToCodeEdits(u.changes),commands:u.commands}:u}applyCodeActionCommand(t){let n=t.command;for(let i of JC(n)){let{file:s,project:a}=this.getFileAndProject(i);a.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(s)).then(u=>{},u=>{})}return{}}getStartAndEndPosition(t,n){let i,s;return t.startPosition!==void 0?i=t.startPosition:(i=n.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?s=t.endPosition:(s=n.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=s),{startPosition:i,endPosition:s}}mapCodeAction({description:t,changes:n,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(n),commands:i}}mapCodeFixAction({fixName:t,description:n,changes:i,commands:s,fixId:a,fixAllDescription:u}){return{fixName:t,description:n,changes:this.mapTextChangesToCodeEdits(i),commands:s,fixId:a,fixAllDescription:u}}mapPasteEditsAction({edits:t,fixId:n}){return{edits:this.mapTextChangesToCodeEdits(t),fixId:n}}mapTextChangesToCodeEdits(t){return t.map(n=>this.mapTextChangeToCodeEdit(n))}mapTextChangeToCodeEdit(t){let n=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!n&&(n||this.projectService.logErrorForScriptInfoNotFound(t.fileName),M.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!n}))),n?{fileName:t.fileName,textChanges:t.textChanges.map(i=>LRt(i,n))}:BRt(t)}convertTextChangeToCodeEdit(t,n){return{start:n.positionToLineOffset(t.span.start),end:n.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),a=this.projectService.getScriptInfoForNormalizedPath(i),u=this.getPosition(t,a),m=s.getBraceMatchingAtPosition(i,u);return m?n?m.map(d=>Gh(d,a)):m:void 0}getDiagnosticsForProject(t,n,i){if(this.suppressDiagnosticEvents)return;let{fileNames:s,languageServiceDisabled:a}=this.getProjectInfoWorker(i,void 0,!0,!0);if(a)return;let u=s.filter(L=>!L.includes("lib.d.ts"));if(u.length===0)return;let m=[],d=[],S=[],E=[],x=Nc(i),D=this.projectService.ensureDefaultProjectForFile(x);for(let L of u)this.getCanonicalFileName(L)===this.getCanonicalFileName(i)?m.push(L):this.projectService.getScriptInfo(L).isScriptOpen()?d.push(L):ju(L)?E.push(L):S.push(L);let R=[...m,...d,...S,...E].map(L=>({fileName:L,project:D}));this.updateErrorCheck(t,R,n,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,n){let{locations:i}=t,{file:s,languageService:a}=this.getFileAndLanguageServiceForSyntacticOperation(t),u=M.checkDefined(this.projectService.getScriptInfo(s));return kr(i,m=>{let d=this.getPosition(m,u),S=a.getSmartSelectionRange(s,d);return n?this.mapSelectionRange(S,u):S})}toggleLineComment(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),a=this.projectService.getScriptInfo(i),u=this.getRange(t,a),m=s.toggleLineComment(i,u);if(n){let d=this.projectService.getScriptInfoForNormalizedPath(i);return m.map(S=>this.convertTextChangeToCodeEdit(S,d))}return m}toggleMultilineComment(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),a=this.projectService.getScriptInfoForNormalizedPath(i),u=this.getRange(t,a),m=s.toggleMultilineComment(i,u);if(n){let d=this.projectService.getScriptInfoForNormalizedPath(i);return m.map(S=>this.convertTextChangeToCodeEdit(S,d))}return m}commentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),a=this.projectService.getScriptInfoForNormalizedPath(i),u=this.getRange(t,a),m=s.commentSelection(i,u);if(n){let d=this.projectService.getScriptInfoForNormalizedPath(i);return m.map(S=>this.convertTextChangeToCodeEdit(S,d))}return m}uncommentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),a=this.projectService.getScriptInfoForNormalizedPath(i),u=this.getRange(t,a),m=s.uncommentSelection(i,u);if(n){let d=this.projectService.getScriptInfoForNormalizedPath(i);return m.map(S=>this.convertTextChangeToCodeEdit(S,d))}return m}mapSelectionRange(t,n){let i={textSpan:Gh(t.textSpan,n)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,n)),i}getScriptInfoFromProjectService(t){let n=Nc(t),i=this.projectService.getScriptInfoForNormalizedPath(n);return i||(this.projectService.logErrorForScriptInfoNotFound(n),O0.ThrowNoProject())}toProtocolCallHierarchyItem(t){let n=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Gh(t.span,n),selectionSpan:Gh(t.selectionSpan,n)}}toProtocolCallHierarchyIncomingCall(t){let n=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Gh(i,n))}}toProtocolCallHierarchyOutgoingCall(t,n){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Gh(i,n))}}prepareCallHierarchy(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);if(s){let a=this.getPosition(t,s),u=i.getLanguageService().prepareCallHierarchy(n,a);return u&&lZ(u,m=>this.toProtocolCallHierarchyItem(m))}}provideCallHierarchyIncomingCalls(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyIncomingCalls(n,this.getPosition(t,s)).map(u=>this.toProtocolCallHierarchyIncomingCall(u))}provideCallHierarchyOutgoingCalls(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyOutgoingCalls(n,this.getPosition(t,s)).map(u=>this.toProtocolCallHierarchyOutgoingCall(u,s))}getCanonicalFileName(t){let n=this.host.useCaseSensitiveFileNames?t:R1(t);return eo(n)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,n){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,n)}setCurrentRequest(t){M.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){M.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,n){try{return this.setCurrentRequest(t),n()}finally{this.resetCurrentRequest(t)}}executeCommand(t){let n=this.handlers.get(t.command);if(n){let i=this.executeWithRequestId(t.seq,()=>n(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${OT(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var n,i,s,a,u,m,d,S,E,x,D;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let I;this.logger.hasLevel(2)&&(I=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${u6(this.toStringMessage(t))}`));let R,L;try{R=this.parseMessage(t),L=R.arguments&&R.arguments.file?R.arguments:void 0,(n=kn)==null||n.instant(kn.Phase.Session,"request",{seq:R.seq,command:R.command}),(i=sf)==null||i.logStartCommand(""+R.command,this.toStringMessage(t).substring(0,100)),(s=kn)==null||s.push(kn.Phase.Session,"executeCommand",{seq:R.seq,command:R.command},!0);let{response:F,responseRequired:J}=this.executeCommand(R);if((a=kn)==null||a.pop(),this.logger.hasLevel(2)){let $=xRt(this.hrtime(I)).toFixed(4);J?this.logger.perftrc(`${R.seq}::${R.command}: elapsed time (in milliseconds) ${$}`):this.logger.perftrc(`${R.seq}::${R.command}: async elapsed time (in milliseconds) ${$}`)}(u=sf)==null||u.logStopCommand(""+R.command,"Success"),(m=kn)==null||m.instant(kn.Phase.Session,"response",{seq:R.seq,command:R.command,success:!!F}),F?this.doOutput(F,R.command,R.seq,!0):J&&this.doOutput(void 0,R.command,R.seq,!1,"No content available.")}catch(F){if((d=kn)==null||d.popAll(),F instanceof ZI){(S=sf)==null||S.logStopCommand(""+(R&&R.command),"Canceled: "+F),(E=kn)==null||E.instant(kn.Phase.Session,"commandCanceled",{seq:R?.seq,command:R?.command}),this.doOutput({canceled:!0},R.command,R.seq,!0);return}this.logErrorWorker(F,this.toStringMessage(t),L),(x=sf)==null||x.logStopCommand(""+(R&&R.command),"Error: "+F),(D=kn)==null||D.instant(kn.Phase.Session,"commandError",{seq:R?.seq,command:R?.command,message:F.message}),this.doOutput(void 0,R?R.command:"unknown",R?R.seq:0,!1,"Error processing request. "+F.message+`
`+F.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function Gh(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(bl(e))}}function DEe(e,t,n){let i=Gh(e,n),s=t&&Gh(t,n);return s?{...i,contextStart:s.start,contextEnd:s.end}:i}function LRt(e,t){return{start:Ize(t,e.span.start),end:Ize(t,bl(e.span)),newText:e.newText}}function Ize(e,t){return EEe(e)?jRt(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function FRt(e,t){let n=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}function jRt(e){return{line:e.line+1,offset:e.character+1}}function BRt(e){M.assert(e.textChanges.length===1);let t=Fo(e.textChanges);return M.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function IEe(e,t,n,i){let s=URt(e,t,i),{line:a,character:u}=DP(HC(s),n);return{line:a+1,offset:u+1}}function URt(e,t,n){for(let{fileName:i,textChanges:s}of n)if(i===t)for(let a=s.length-1;a>=0;a--){let{newText:u,span:{start:m,length:d}}=s[a];e=e.slice(0,m)+u+e.slice(m+d)}return e}function wze(e,{fileName:t,textSpan:n,contextSpan:i,isWriteAccess:s,isDefinition:a},{disableLineTextInReferences:u}){let m=M.checkDefined(e.getScriptInfo(t)),d=DEe(n,i,m),S=u?void 0:VRt(m,d);return{file:t,...d,lineText:S,isWriteAccess:s,isDefinition:a}}function VRt(e,t){let n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,bl(n)).replace(/\r|\n/g,"")}function JRt(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var dD=4,wEe=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(wEe||{}),qRt=class{constructor(){this.goSubtree=!0,this.lineIndex=new hL,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new mD,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=hL.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let s,a;for(let m=this.endBranch.length-1;m>=0;m--)this.endBranch[m].updateCounts(),this.endBranch[m].charCount()===0&&(a=this.endBranch[m],m>0?s=this.endBranch[m-1]:s=this.branchNode);a&&s.remove(a);let u=this.startPath[this.startPath.length-1];if(i.length>0)if(u.text=i[0],i.length>1){let m=new Array(i.length-1),d=u;for(let x=1;x=0;){let x=this.startPath[S];m=x.insertAt(d,m),S--,d=x}let E=m.length;for(;E>0;){let x=new mD;x.add(this.lineIndex.root),m=x.insertAt(this.lineIndex.root,m),E=m.length,this.lineIndex.root=x}this.lineIndex.root.updateCounts()}else for(let m=this.startPath.length-2;m>=0;m--)this.startPath[m].updateCounts();else{this.startPath[this.startPath.length-2].remove(u);for(let d=this.startPath.length-2;d>=0;d--)this.startPath[d].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,i,s){let a=this.stack[this.stack.length-1];this.state===2&&s===1&&(this.state=1,this.branchNode=a,this.lineCollectionAtBranch=n);let u;function m(d){return d.isLeaf()?new fJ(""):new mD}switch(s){case 0:this.goSubtree=!1,this.state!==4&&a.add(n);break;case 1:this.state===4?this.goSubtree=!1:(u=m(n),a.add(u),this.startPath.push(u));break;case 2:this.state!==4?(u=m(n),a.add(u),this.startPath.push(u)):n.isLeaf()||(u=m(n),a.add(u),this.endBranch.push(u));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:n.isLeaf()||(u=m(n),a.add(u),this.endBranch.push(u));break;case 5:this.goSubtree=!1,this.state!==1&&a.add(n);break}this.goSubtree&&this.stack.push(u)}leaf(e,t,n){this.state===1?this.initialText=n.text.substring(0,e):this.state===2?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},zRt=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return M3(Gu(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},jte=class IC{constructor(){this.changes=[],this.versions=new Array(IC.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%IC.maxVersions}currentVersionToIndex(){return this.currentVersion%IC.maxVersions}edit(t,n,i){this.changes.push(new zRt(t,n,i)),(this.changes.length>IC.changeNumberThreshold||n>IC.changeLengthThreshold||i&&i.length>IC.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(let i of this.changes)n=n.edit(i.pos,i.deleteLen,i.insertedText);t=new Oze(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=IC.maxVersions&&(this.minVersion=this.currentVersion-IC.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,n){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(n-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let n=this._getSnapshot().index,{lineText:i,absolutePosition:s}=n.lineNumberToInfo(t+1),a=i!==void 0?i.length:n.absolutePositionOfStartOfLine(t+2)-s;return Gu(s,a)}getTextChangesBetweenVersions(t,n){if(t=this.minVersion){let i=[];for(let s=t+1;s<=n;s++){let a=this.versions[this.versionToIndex(s)];for(let u of a.changesSincePreviousVersion)i.push(u.getTextChangeRange())}return Rue(i)}else return;else return P5}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let n=new IC,i=new Oze(0,n,new hL);n.versions[n.currentVersion]=i;let s=hL.linesFromText(t);return i.index.load(s.lines),n}};jte.changeNumberThreshold=8,jte.changeLengthThreshold=256,jte.maxVersions=8;var Bte=jte,Oze=class rht{constructor(t,n,i,s=ou){this.version=t,this.cache=n,this.index=i,this.changesSincePreviousVersion=s}getText(t,n){return this.index.getText(t,n-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof rht&&this.cache===t.cache)return this.version<=t.version?P5:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},hL=class Pwe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:n,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:n,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let n=this.getLineCount();if(t<=n){let{position:i,leaf:s}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:s&&s.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let n=[];for(let i=0;i0&&t{i=i.concat(u.text.substring(s,s+a))}}),i}getLength(){return this.root.charCount()}every(t,n,i){i||(i=this.root.charCount());let s={goSubtree:!0,done:!1,leaf(a,u,m){t(m,a,u)||(this.done=!0)}};return this.walk(n,i-n,s),!s.done}edit(t,n,i){if(this.root.charCount()===0)return M.assert(n===0),i!==void 0?(this.load(Pwe.linesFromText(i).lines),this):void 0;{let s;if(this.checkEdits){let m=this.getText(0,this.root.charCount());s=m.slice(0,t)+i+m.slice(t+n)}let a=new qRt,u=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let m=this.getText(t,1);i?i=m+i:i=m,n=0,u=!0}else if(n>0){let m=t+n,{zeroBasedColumn:d,lineText:S}=this.positionToColumnAndLineText(m);d===0&&(n+=S.length,i=i?i+S:S)}if(this.root.walk(t,n,a),a.insertLines(i,u),this.checkEdits){let m=a.lineIndex.getText(0,a.lineIndex.getLength());M.assert(s===m,"buffer edit mismatch")}return a.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[s]=a:i.pop(),{lines:i,lineMap:n}}},mD=class Nwe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,n,i,s,a){return i.pre&&i.pre(t,n,this.children[s],this,a),i.goSubtree?(this.children[s].walk(t,n,i),i.post&&i.post(t,n,this.children[s],this,a)):i.goSubtree=!0,i.done}skipChild(t,n,i,s,a){s.pre&&!s.done&&(s.pre(t,n,this.children[i],this,a),s.goSubtree=!0)}walk(t,n,i){let s=0,a=this.children[s].charCount(),u=t;for(;u>=a;)this.skipChild(u,n,s,i,0),u-=a,s++,a=this.children[s].charCount();if(u+n<=a){if(this.execWalk(u,n,i,s,2))return}else{if(this.execWalk(u,a-u,i,s,1))return;let m=n-(a-u);for(s++,a=this.children[s].charCount();m>a;){if(this.execWalk(0,a,i,s,3))return;m-=a,s++,a=this.children[s].charCount()}if(m>0&&this.execWalk(0,m,i,s,4))return}if(i.pre){let m=this.children.length;if(sn)return a.isLeaf()?{oneBasedLine:t,zeroBasedColumn:n,lineText:a.text}:a.charOffsetToLineInfo(t,n);n-=a.charCount(),t+=a.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let s=M.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:s.charCount(),lineText:void 0}}lineNumberToInfo(t,n){for(let i of this.children){let s=i.lineCount();if(s>=t)return i.isLeaf()?{position:n,leaf:i}:i.lineNumberToInfo(t,n);t-=s,n+=i.charCount()}return{position:n,leaf:void 0}}splitAfter(t){let n,i=this.children.length;t++;let s=t;if(t=0;D--)d[D].children.length===0&&d.pop()}u&&d.push(u),this.updateCounts();for(let E=0;E{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:s,reject:a})});return this.installer.send(n),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,n,i){let s=qbe(t,n,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${OT(s)}`),this.activeRequestCount0?this.activeRequestCount--:M.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let s=this.requestQueue.dequeue();if(this.requestMap.get(s.projectName)===s){this.requestMap.delete(s.projectName),this.scheduleRequest(s);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${s.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case l8:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${OT(t)}`),this.installer.send(t)},nht.requestDelayMillis,`${t.projectName}::${t.kind}`)}};Rze.requestDelayMillis=100;var Mze=Rze,Lze={};k(Lze,{ActionInvalidate:()=>EU,ActionPackageInstalled:()=>xU,ActionSet:()=>bU,ActionWatchTypingLocations:()=>l8,Arguments:()=>oQ,AutoImportProviderProject:()=>lEe,AuxiliaryProject:()=>aEe,CharRangeSection:()=>wEe,CloseFileWatcherEvent:()=>kte,CommandNames:()=>Cze,ConfigFileDiagEvent:()=>bte,ConfiguredProject:()=>uEe,ConfiguredProjectLoadKind:()=>gEe,CreateDirectoryWatcherEvent:()=>Ate,CreateFileWatcherEvent:()=>Cte,Errors:()=>O0,EventBeginInstallTypes:()=>iQ,EventEndInstallTypes:()=>sQ,EventInitializationFailed:()=>Yye,EventTypesRegistry:()=>nQ,ExternalProject:()=>gte,GcTimer:()=>Kbe,InferredProject:()=>oEe,LargeFileReferencedEvent:()=>Tte,LineIndex:()=>hL,LineLeaf:()=>fJ,LineNode:()=>mD,LogLevel:()=>Vbe,Msg:()=>Jbe,OpenFileInfoTelemetryEvent:()=>_Ee,Project:()=>Sk,ProjectInfoTelemetryEvent:()=>xte,ProjectKind:()=>_L,ProjectLanguageServiceStateEvent:()=>Ete,ProjectLoadingFinishEvent:()=>Ste,ProjectLoadingStartEvent:()=>vte,ProjectService:()=>bEe,ProjectsUpdatedInBackgroundEvent:()=>uJ,ScriptInfo:()=>eEe,ScriptVersionCache:()=>Bte,Session:()=>Dze,TextStorage:()=>Zbe,ThrottledOperations:()=>Ybe,TypingsCache:()=>tEe,TypingsInstallerAdapter:()=>Mze,allFilesAreJsOrDts:()=>nEe,allRootFilesAreJsOrDts:()=>rEe,asNormalizedPath:()=>Qqe,convertCompilerOptions:()=>_J,convertFormatOptions:()=>fD,convertScriptKindName:()=>Nte,convertTypeAcquisition:()=>pEe,convertUserPreferences:()=>dEe,convertWatchOptions:()=>mL,countEachFileTypes:()=>fL,createInstallTypingsRequest:()=>qbe,createModuleSpecifierCache:()=>CEe,createNormalizedPathMap:()=>Zqe,createPackageJsonCache:()=>AEe,createSortedArray:()=>$be,emptyArray:()=>ou,findArgument:()=>Y8e,forEachResolvedProjectReferenceProject:()=>Ote,formatDiagnosticToProtocol:()=>gL,formatMessage:()=>kEe,getBaseConfigFileName:()=>dte,getLocationInNewDocument:()=>IEe,hasArgument:()=>$8e,hasNoTypeScriptSource:()=>iEe,indent:()=>u6,isBackgroundProject:()=>dL,isConfigFile:()=>EEe,isConfiguredProject:()=>Gv,isDynamicFileName:()=>uL,isExternalProject:()=>pL,isInferredProject:()=>_D,isInferredProjectName:()=>zbe,isProjectDeferredClose:()=>lJ,makeAutoImportProviderProjectName:()=>Gbe,makeAuxiliaryProjectName:()=>Hbe,makeInferredProjectName:()=>Wbe,maxFileSize:()=>yte,maxProgramSizeForNonTsFiles:()=>hte,normalizedPathToPath:()=>lL,nowString:()=>K8e,nullCancellationToken:()=>bze,nullTypingsInstaller:()=>mte,protocol:()=>Xbe,removeSorted:()=>eze,stringifyIndented:()=>OT,toEvent:()=>PEe,toNormalizedPath:()=>Nc,tryConvertScriptKindName:()=>Pte,typingsInstaller:()=>Ube,updateProjectIfDirty:()=>Id}),typeof console<"u"&&(M.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:return console.log(t);case 4:return console.log(t)}}})})({get exports(){return Kgt},set exports(l){Kgt=l,typeof Mae<"u"&&Mae.exports&&(Mae.exports=l)}})});var DW=xt((YEr,Uht)=>{var Mlr="2.0.0",Llr=Number.MAX_SAFE_INTEGER||9007199254740991,Flr=16,jlr=250,Blr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Uht.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Flr,MAX_SAFE_BUILD_LENGTH:jlr,MAX_SAFE_INTEGER:Llr,RELEASE_TYPES:Blr,SEMVER_SPEC_VERSION:Mlr,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var IW=xt((KEr,Vht)=>{var Ulr=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...l)=>console.error("SEMVER",...l):()=>{};Vht.exports=Ulr});var YF=xt((bP,Jht)=>{var{MAX_SAFE_COMPONENT_LENGTH:jwe,MAX_SAFE_BUILD_LENGTH:Vlr,MAX_LENGTH:Jlr}=DW(),qlr=IW();bP=Jht.exports={};var zlr=bP.re=[],Wlr=bP.safeRe=[],Vo=bP.src=[],Jo=bP.t={},Glr=0,Bwe="[a-zA-Z0-9-]",Hlr=[["\\s",1],["\\d",Jlr],[Bwe,Vlr]],$lr=l=>{for(let[c,f]of Hlr)l=l.split(`${c}*`).join(`${c}{0,${f}}`).split(`${c}+`).join(`${c}{1,${f}}`);return l},al=(l,c,f)=>{let y=$lr(c),b=Glr++;qlr(l,b,c),Jo[l]=b,Vo[b]=c,zlr[b]=new RegExp(c,f?"g":void 0),Wlr[b]=new RegExp(y,f?"g":void 0)};al("NUMERICIDENTIFIER","0|[1-9]\\d*");al("NUMERICIDENTIFIERLOOSE","\\d+");al("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Bwe}*`);al("MAINVERSION",`(${Vo[Jo.NUMERICIDENTIFIER]})\\.(${Vo[Jo.NUMERICIDENTIFIER]})\\.(${Vo[Jo.NUMERICIDENTIFIER]})`);al("MAINVERSIONLOOSE",`(${Vo[Jo.NUMERICIDENTIFIERLOOSE]})\\.(${Vo[Jo.NUMERICIDENTIFIERLOOSE]})\\.(${Vo[Jo.NUMERICIDENTIFIERLOOSE]})`);al("PRERELEASEIDENTIFIER",`(?:${Vo[Jo.NUMERICIDENTIFIER]}|${Vo[Jo.NONNUMERICIDENTIFIER]})`);al("PRERELEASEIDENTIFIERLOOSE",`(?:${Vo[Jo.NUMERICIDENTIFIERLOOSE]}|${Vo[Jo.NONNUMERICIDENTIFIER]})`);al("PRERELEASE",`(?:-(${Vo[Jo.PRERELEASEIDENTIFIER]}(?:\\.${Vo[Jo.PRERELEASEIDENTIFIER]})*))`);al("PRERELEASELOOSE",`(?:-?(${Vo[Jo.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Vo[Jo.PRERELEASEIDENTIFIERLOOSE]})*))`);al("BUILDIDENTIFIER",`${Bwe}+`);al("BUILD",`(?:\\+(${Vo[Jo.BUILDIDENTIFIER]}(?:\\.${Vo[Jo.BUILDIDENTIFIER]})*))`);al("FULLPLAIN",`v?${Vo[Jo.MAINVERSION]}${Vo[Jo.PRERELEASE]}?${Vo[Jo.BUILD]}?`);al("FULL",`^${Vo[Jo.FULLPLAIN]}$`);al("LOOSEPLAIN",`[v=\\s]*${Vo[Jo.MAINVERSIONLOOSE]}${Vo[Jo.PRERELEASELOOSE]}?${Vo[Jo.BUILD]}?`);al("LOOSE",`^${Vo[Jo.LOOSEPLAIN]}$`);al("GTLT","((?:<|>)?=?)");al("XRANGEIDENTIFIERLOOSE",`${Vo[Jo.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);al("XRANGEIDENTIFIER",`${Vo[Jo.NUMERICIDENTIFIER]}|x|X|\\*`);al("XRANGEPLAIN",`[v=\\s]*(${Vo[Jo.XRANGEIDENTIFIER]})(?:\\.(${Vo[Jo.XRANGEIDENTIFIER]})(?:\\.(${Vo[Jo.XRANGEIDENTIFIER]})(?:${Vo[Jo.PRERELEASE]})?${Vo[Jo.BUILD]}?)?)?`);al("XRANGEPLAINLOOSE",`[v=\\s]*(${Vo[Jo.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Vo[Jo.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Vo[Jo.XRANGEIDENTIFIERLOOSE]})(?:${Vo[Jo.PRERELEASELOOSE]})?${Vo[Jo.BUILD]}?)?)?`);al("XRANGE",`^${Vo[Jo.GTLT]}\\s*${Vo[Jo.XRANGEPLAIN]}$`);al("XRANGELOOSE",`^${Vo[Jo.GTLT]}\\s*${Vo[Jo.XRANGEPLAINLOOSE]}$`);al("COERCEPLAIN",`(^|[^\\d])(\\d{1,${jwe}})(?:\\.(\\d{1,${jwe}}))?(?:\\.(\\d{1,${jwe}}))?`);al("COERCE",`${Vo[Jo.COERCEPLAIN]}(?:$|[^\\d])`);al("COERCEFULL",Vo[Jo.COERCEPLAIN]+`(?:${Vo[Jo.PRERELEASE]})?(?:${Vo[Jo.BUILD]})?(?:$|[^\\d])`);al("COERCERTL",Vo[Jo.COERCE],!0);al("COERCERTLFULL",Vo[Jo.COERCEFULL],!0);al("LONETILDE","(?:~>?)");al("TILDETRIM",`(\\s*)${Vo[Jo.LONETILDE]}\\s+`,!0);bP.tildeTrimReplace="$1~";al("TILDE",`^${Vo[Jo.LONETILDE]}${Vo[Jo.XRANGEPLAIN]}$`);al("TILDELOOSE",`^${Vo[Jo.LONETILDE]}${Vo[Jo.XRANGEPLAINLOOSE]}$`);al("LONECARET","(?:\\^)");al("CARETTRIM",`(\\s*)${Vo[Jo.LONECARET]}\\s+`,!0);bP.caretTrimReplace="$1^";al("CARET",`^${Vo[Jo.LONECARET]}${Vo[Jo.XRANGEPLAIN]}$`);al("CARETLOOSE",`^${Vo[Jo.LONECARET]}${Vo[Jo.XRANGEPLAINLOOSE]}$`);al("COMPARATORLOOSE",`^${Vo[Jo.GTLT]}\\s*(${Vo[Jo.LOOSEPLAIN]})$|^$`);al("COMPARATOR",`^${Vo[Jo.GTLT]}\\s*(${Vo[Jo.FULLPLAIN]})$|^$`);al("COMPARATORTRIM",`(\\s*)${Vo[Jo.GTLT]}\\s*(${Vo[Jo.LOOSEPLAIN]}|${Vo[Jo.XRANGEPLAIN]})`,!0);bP.comparatorTrimReplace="$1$2$3";al("HYPHENRANGE",`^\\s*(${Vo[Jo.XRANGEPLAIN]})\\s+-\\s+(${Vo[Jo.XRANGEPLAIN]})\\s*$`);al("HYPHENRANGELOOSE",`^\\s*(${Vo[Jo.XRANGEPLAINLOOSE]})\\s+-\\s+(${Vo[Jo.XRANGEPLAINLOOSE]})\\s*$`);al("STAR","(<|>)?=?\\s*\\*");al("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");al("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var dce=xt((XEr,qht)=>{var Ylr=Object.freeze({loose:!0}),Klr=Object.freeze({}),Xlr=l=>l?typeof l!="object"?Ylr:l:Klr;qht.exports=Xlr});var Uwe=xt((QEr,Ght)=>{var zht=/^[0-9]+$/,Wht=(l,c)=>{let f=zht.test(l),y=zht.test(c);return f&&y&&(l=+l,c=+c),l===c?0:f&&!y?-1:y&&!f?1:lWht(c,l);Ght.exports={compareIdentifiers:Wht,rcompareIdentifiers:Qlr}});var l0=xt((ZEr,Kht)=>{var mce=IW(),{MAX_LENGTH:Hht,MAX_SAFE_INTEGER:gce}=DW(),{safeRe:$ht,t:Yht}=YF(),Zlr=dce(),{compareIdentifiers:KF}=Uwe(),Vwe=class l{constructor(c,f){if(f=Zlr(f),c instanceof l){if(c.loose===!!f.loose&&c.includePrerelease===!!f.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>Hht)throw new TypeError(`version is longer than ${Hht} characters`);mce("SemVer",c,f),this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease;let y=c.trim().match(f.loose?$ht[Yht.LOOSE]:$ht[Yht.FULL]);if(!y)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+y[1],this.minor=+y[2],this.patch=+y[3],this.major>gce||this.major<0)throw new TypeError("Invalid major version");if(this.minor>gce||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>gce||this.patch<0)throw new TypeError("Invalid patch version");y[4]?this.prerelease=y[4].split(".").map(b=>{if(/^[0-9]+$/.test(b)){let k=+b;if(k>=0&&k=0;)typeof this.prerelease[k]=="number"&&(this.prerelease[k]++,k=-2);if(k===-1){if(f===this.prerelease.join(".")&&y===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(b)}}if(f){let k=[f,b];y===!1&&(k=[f]),KF(this.prerelease[0],f)===0?isNaN(this.prerelease[1])&&(this.prerelease=k):this.prerelease=k}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Kht.exports=Vwe});var c3=xt((exr,Qht)=>{var Xht=l0(),eur=(l,c,f=!1)=>{if(l instanceof Xht)return l;try{return new Xht(l,c)}catch(y){if(!f)return null;throw y}};Qht.exports=eur});var eyt=xt((txr,Zht)=>{var tur=c3(),rur=(l,c)=>{let f=tur(l,c);return f?f.version:null};Zht.exports=rur});var ryt=xt((rxr,tyt)=>{var nur=c3(),iur=(l,c)=>{let f=nur(l.trim().replace(/^[=v]+/,""),c);return f?f.version:null};tyt.exports=iur});var syt=xt((nxr,iyt)=>{var nyt=l0(),sur=(l,c,f,y,b)=>{typeof f=="string"&&(b=y,y=f,f=void 0);try{return new nyt(l instanceof nyt?l.version:l,f).inc(c,y,b).version}catch{return null}};iyt.exports=sur});var cyt=xt((ixr,ayt)=>{var oyt=c3(),our=(l,c)=>{let f=oyt(l,null,!0),y=oyt(c,null,!0),b=f.compare(y);if(b===0)return null;let k=b>0,g=k?f:y,p=k?y:f,A=!!g.prerelease.length;if(!!p.prerelease.length&&!A)return!p.patch&&!p.minor?"major":g.patch?"patch":g.minor?"minor":"major";let se=A?"pre":"";return f.major!==y.major?se+"major":f.minor!==y.minor?se+"minor":f.patch!==y.patch?se+"patch":"prerelease"};ayt.exports=our});var uyt=xt((sxr,lyt)=>{var aur=l0(),cur=(l,c)=>new aur(l,c).major;lyt.exports=cur});var fyt=xt((oxr,_yt)=>{var lur=l0(),uur=(l,c)=>new lur(l,c).minor;_yt.exports=uur});var dyt=xt((axr,pyt)=>{var _ur=l0(),fur=(l,c)=>new _ur(l,c).patch;pyt.exports=fur});var gyt=xt((cxr,myt)=>{var pur=c3(),dur=(l,c)=>{let f=pur(l,c);return f&&f.prerelease.length?f.prerelease:null};myt.exports=dur});var jb=xt((lxr,yyt)=>{var hyt=l0(),mur=(l,c,f)=>new hyt(l,f).compare(new hyt(c,f));yyt.exports=mur});var Syt=xt((uxr,vyt)=>{var gur=jb(),hur=(l,c,f)=>gur(c,l,f);vyt.exports=hur});var byt=xt((_xr,Tyt)=>{var yur=jb(),vur=(l,c)=>yur(l,c,!0);Tyt.exports=vur});var hce=xt((fxr,xyt)=>{var Eyt=l0(),Sur=(l,c,f)=>{let y=new Eyt(l,f),b=new Eyt(c,f);return y.compare(b)||y.compareBuild(b)};xyt.exports=Sur});var Ayt=xt((pxr,Cyt)=>{var Tur=hce(),bur=(l,c)=>l.sort((f,y)=>Tur(f,y,c));Cyt.exports=bur});var Pyt=xt((dxr,kyt)=>{var Eur=hce(),xur=(l,c)=>l.sort((f,y)=>Eur(y,f,c));kyt.exports=xur});var wW=xt((mxr,Nyt)=>{var Cur=jb(),Aur=(l,c,f)=>Cur(l,c,f)>0;Nyt.exports=Aur});var yce=xt((gxr,Dyt)=>{var kur=jb(),Pur=(l,c,f)=>kur(l,c,f)<0;Dyt.exports=Pur});var Jwe=xt((hxr,Iyt)=>{var Nur=jb(),Dur=(l,c,f)=>Nur(l,c,f)===0;Iyt.exports=Dur});var qwe=xt((yxr,wyt)=>{var Iur=jb(),wur=(l,c,f)=>Iur(l,c,f)!==0;wyt.exports=wur});var vce=xt((vxr,Oyt)=>{var Our=jb(),Rur=(l,c,f)=>Our(l,c,f)>=0;Oyt.exports=Rur});var Sce=xt((Sxr,Ryt)=>{var Mur=jb(),Lur=(l,c,f)=>Mur(l,c,f)<=0;Ryt.exports=Lur});var zwe=xt((Txr,Myt)=>{var Fur=Jwe(),jur=qwe(),Bur=wW(),Uur=vce(),Vur=yce(),Jur=Sce(),qur=(l,c,f,y)=>{switch(c){case"===":return typeof l=="object"&&(l=l.version),typeof f=="object"&&(f=f.version),l===f;case"!==":return typeof l=="object"&&(l=l.version),typeof f=="object"&&(f=f.version),l!==f;case"":case"=":case"==":return Fur(l,f,y);case"!=":return jur(l,f,y);case">":return Bur(l,f,y);case">=":return Uur(l,f,y);case"<":return Vur(l,f,y);case"<=":return Jur(l,f,y);default:throw new TypeError(`Invalid operator: ${c}`)}};Myt.exports=qur});var Fyt=xt((bxr,Lyt)=>{var zur=l0(),Wur=c3(),{safeRe:Tce,t:bce}=YF(),Gur=(l,c)=>{if(l instanceof zur)return l;if(typeof l=="number"&&(l=String(l)),typeof l!="string")return null;c=c||{};let f=null;if(!c.rtl)f=l.match(c.includePrerelease?Tce[bce.COERCEFULL]:Tce[bce.COERCE]);else{let A=c.includePrerelease?Tce[bce.COERCERTLFULL]:Tce[bce.COERCERTL],j;for(;(j=A.exec(l))&&(!f||f.index+f[0].length!==l.length);)(!f||j.index+j[0].length!==f.index+f[0].length)&&(f=j),A.lastIndex=j.index+j[1].length+j[2].length;A.lastIndex=-1}if(f===null)return null;let y=f[2],b=f[3]||"0",k=f[4]||"0",g=c.includePrerelease&&f[5]?`-${f[5]}`:"",p=c.includePrerelease&&f[6]?`+${f[6]}`:"";return Wur(`${y}.${b}.${k}${g}${p}`,c)};Lyt.exports=Gur});var Byt=xt((Exr,jyt)=>{var Wwe=class{constructor(){this.max=1e3,this.map=new Map}get(c){let f=this.map.get(c);if(f!==void 0)return this.map.delete(c),this.map.set(c,f),f}delete(c){return this.map.delete(c)}set(c,f){if(!this.delete(c)&&f!==void 0){if(this.map.size>=this.max){let b=this.map.keys().next().value;this.delete(b)}this.map.set(c,f)}return this}};jyt.exports=Wwe});var Bb=xt((xxr,qyt)=>{var Hur=/\s+/g,Gwe=class l{constructor(c,f){if(f=Yur(f),c instanceof l)return c.loose===!!f.loose&&c.includePrerelease===!!f.includePrerelease?c:new l(c.raw,f);if(c instanceof Hwe)return this.raw=c.value,this.set=[[c]],this.formatted=void 0,this;if(this.options=f,this.loose=!!f.loose,this.includePrerelease=!!f.includePrerelease,this.raw=c.trim().replace(Hur," "),this.set=this.raw.split("||").map(y=>this.parseRange(y.trim())).filter(y=>y.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let y=this.set[0];if(this.set=this.set.filter(b=>!Vyt(b[0])),this.set.length===0)this.set=[y];else if(this.set.length>1){for(let b of this.set)if(b.length===1&&r_r(b[0])){this.set=[b];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let c=0;c0&&(this.formatted+="||");let f=this.set[c];for(let y=0;y0&&(this.formatted+=" "),this.formatted+=f[y].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(c){let y=((this.options.includePrerelease&&e_r)|(this.options.loose&&t_r))+":"+c,b=Uyt.get(y);if(b)return b;let k=this.options.loose,g=k?I1[fv.HYPHENRANGELOOSE]:I1[fv.HYPHENRANGE];c=c.replace(g,f_r(this.options.includePrerelease)),Pp("hyphen replace",c),c=c.replace(I1[fv.COMPARATORTRIM],Xur),Pp("comparator trim",c),c=c.replace(I1[fv.TILDETRIM],Qur),Pp("tilde trim",c),c=c.replace(I1[fv.CARETTRIM],Zur),Pp("caret trim",c);let p=c.split(" ").map(We=>n_r(We,this.options)).join(" ").split(/\s+/).map(We=>__r(We,this.options));k&&(p=p.filter(We=>(Pp("loose invalid filter",We,this.options),!!We.match(I1[fv.COMPARATORLOOSE])))),Pp("range list",p);let A=new Map,j=p.map(We=>new Hwe(We,this.options));for(let We of j){if(Vyt(We))return[We];A.set(We.value,We)}A.size>1&&A.has("")&&A.delete("");let se=[...A.values()];return Uyt.set(y,se),se}intersects(c,f){if(!(c instanceof l))throw new TypeError("a Range is required");return this.set.some(y=>Jyt(y,f)&&c.set.some(b=>Jyt(b,f)&&y.every(k=>b.every(g=>k.intersects(g,f)))))}test(c){if(!c)return!1;if(typeof c=="string")try{c=new Kur(c,this.options)}catch{return!1}for(let f=0;fl.value==="<0.0.0-0",r_r=l=>l.value==="",Jyt=(l,c)=>{let f=!0,y=l.slice(),b=y.pop();for(;f&&y.length;)f=y.every(k=>b.intersects(k,c)),b=y.pop();return f},n_r=(l,c)=>(Pp("comp",l,c),l=o_r(l,c),Pp("caret",l),l=i_r(l,c),Pp("tildes",l),l=c_r(l,c),Pp("xrange",l),l=u_r(l,c),Pp("stars",l),l),pv=l=>!l||l.toLowerCase()==="x"||l==="*",i_r=(l,c)=>l.trim().split(/\s+/).map(f=>s_r(f,c)).join(" "),s_r=(l,c)=>{let f=c.loose?I1[fv.TILDELOOSE]:I1[fv.TILDE];return l.replace(f,(y,b,k,g,p)=>{Pp("tilde",l,y,b,k,g,p);let A;return pv(b)?A="":pv(k)?A=`>=${b}.0.0 <${+b+1}.0.0-0`:pv(g)?A=`>=${b}.${k}.0 <${b}.${+k+1}.0-0`:p?(Pp("replaceTilde pr",p),A=`>=${b}.${k}.${g}-${p} <${b}.${+k+1}.0-0`):A=`>=${b}.${k}.${g} <${b}.${+k+1}.0-0`,Pp("tilde return",A),A})},o_r=(l,c)=>l.trim().split(/\s+/).map(f=>a_r(f,c)).join(" "),a_r=(l,c)=>{Pp("caret",l,c);let f=c.loose?I1[fv.CARETLOOSE]:I1[fv.CARET],y=c.includePrerelease?"-0":"";return l.replace(f,(b,k,g,p,A)=>{Pp("caret",l,b,k,g,p,A);let j;return pv(k)?j="":pv(g)?j=`>=${k}.0.0${y} <${+k+1}.0.0-0`:pv(p)?k==="0"?j=`>=${k}.${g}.0${y} <${k}.${+g+1}.0-0`:j=`>=${k}.${g}.0${y} <${+k+1}.0.0-0`:A?(Pp("replaceCaret pr",A),k==="0"?g==="0"?j=`>=${k}.${g}.${p}-${A} <${k}.${g}.${+p+1}-0`:j=`>=${k}.${g}.${p}-${A} <${k}.${+g+1}.0-0`:j=`>=${k}.${g}.${p}-${A} <${+k+1}.0.0-0`):(Pp("no pr"),k==="0"?g==="0"?j=`>=${k}.${g}.${p}${y} <${k}.${g}.${+p+1}-0`:j=`>=${k}.${g}.${p}${y} <${k}.${+g+1}.0-0`:j=`>=${k}.${g}.${p} <${+k+1}.0.0-0`),Pp("caret return",j),j})},c_r=(l,c)=>(Pp("replaceXRanges",l,c),l.split(/\s+/).map(f=>l_r(f,c)).join(" ")),l_r=(l,c)=>{l=l.trim();let f=c.loose?I1[fv.XRANGELOOSE]:I1[fv.XRANGE];return l.replace(f,(y,b,k,g,p,A)=>{Pp("xRange",l,y,b,k,g,p,A);let j=pv(k),se=j||pv(g),We=se||pv(p),ve=We;return b==="="&&ve&&(b=""),A=c.includePrerelease?"-0":"",j?b===">"||b==="<"?y="<0.0.0-0":y="*":b&&ve?(se&&(g=0),p=0,b===">"?(b=">=",se?(k=+k+1,g=0,p=0):(g=+g+1,p=0)):b==="<="&&(b="<",se?k=+k+1:g=+g+1),b==="<"&&(A="-0"),y=`${b+k}.${g}.${p}${A}`):se?y=`>=${k}.0.0${A} <${+k+1}.0.0-0`:We&&(y=`>=${k}.${g}.0${A} <${k}.${+g+1}.0-0`),Pp("xRange return",y),y})},u_r=(l,c)=>(Pp("replaceStars",l,c),l.trim().replace(I1[fv.STAR],"")),__r=(l,c)=>(Pp("replaceGTE0",l,c),l.trim().replace(I1[c.includePrerelease?fv.GTE0PRE:fv.GTE0],"")),f_r=l=>(c,f,y,b,k,g,p,A,j,se,We,ve)=>(pv(y)?f="":pv(b)?f=`>=${y}.0.0${l?"-0":""}`:pv(k)?f=`>=${y}.${b}.0${l?"-0":""}`:g?f=`>=${f}`:f=`>=${f}${l?"-0":""}`,pv(j)?A="":pv(se)?A=`<${+j+1}.0.0-0`:pv(We)?A=`<${j}.${+se+1}.0-0`:ve?A=`<=${j}.${se}.${We}-${ve}`:l?A=`<${j}.${se}.${+We+1}-0`:A=`<=${A}`,`${f} ${A}`.trim()),p_r=(l,c,f)=>{for(let y=0;y0){let b=l[y].semver;if(b.major===c.major&&b.minor===c.minor&&b.patch===c.patch)return!0}return!1}return!0}});var OW=xt((Cxr,Yyt)=>{var RW=Symbol("SemVer ANY"),Kwe=class l{static get ANY(){return RW}constructor(c,f){if(f=zyt(f),c instanceof l){if(c.loose===!!f.loose)return c;c=c.value}c=c.trim().split(/\s+/).join(" "),Ywe("comparator",c,f),this.options=f,this.loose=!!f.loose,this.parse(c),this.semver===RW?this.value="":this.value=this.operator+this.semver.version,Ywe("comp",this)}parse(c){let f=this.options.loose?Wyt[Gyt.COMPARATORLOOSE]:Wyt[Gyt.COMPARATOR],y=c.match(f);if(!y)throw new TypeError(`Invalid comparator: ${c}`);this.operator=y[1]!==void 0?y[1]:"",this.operator==="="&&(this.operator=""),y[2]?this.semver=new Hyt(y[2],this.options.loose):this.semver=RW}toString(){return this.value}test(c){if(Ywe("Comparator.test",c,this.options.loose),this.semver===RW||c===RW)return!0;if(typeof c=="string")try{c=new Hyt(c,this.options)}catch{return!1}return $we(c,this.operator,this.semver,this.options)}intersects(c,f){if(!(c instanceof l))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new $yt(c.value,f).test(this.value):c.operator===""?c.value===""?!0:new $yt(this.value,f).test(c.semver):(f=zyt(f),f.includePrerelease&&(this.value==="<0.0.0-0"||c.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||c.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&c.operator.startsWith(">")||this.operator.startsWith("<")&&c.operator.startsWith("<")||this.semver.version===c.semver.version&&this.operator.includes("=")&&c.operator.includes("=")||$we(this.semver,"<",c.semver,f)&&this.operator.startsWith(">")&&c.operator.startsWith("<")||$we(this.semver,">",c.semver,f)&&this.operator.startsWith("<")&&c.operator.startsWith(">")))}};Yyt.exports=Kwe;var zyt=dce(),{safeRe:Wyt,t:Gyt}=YF(),$we=zwe(),Ywe=IW(),Hyt=l0(),$yt=Bb()});var MW=xt((Axr,Kyt)=>{var d_r=Bb(),m_r=(l,c,f)=>{try{c=new d_r(c,f)}catch{return!1}return c.test(l)};Kyt.exports=m_r});var Qyt=xt((kxr,Xyt)=>{var g_r=Bb(),h_r=(l,c)=>new g_r(l,c).set.map(f=>f.map(y=>y.value).join(" ").trim().split(" "));Xyt.exports=h_r});var e0t=xt((Pxr,Zyt)=>{var y_r=l0(),v_r=Bb(),S_r=(l,c,f)=>{let y=null,b=null,k=null;try{k=new v_r(c,f)}catch{return null}return l.forEach(g=>{k.test(g)&&(!y||b.compare(g)===-1)&&(y=g,b=new y_r(y,f))}),y};Zyt.exports=S_r});var r0t=xt((Nxr,t0t)=>{var T_r=l0(),b_r=Bb(),E_r=(l,c,f)=>{let y=null,b=null,k=null;try{k=new b_r(c,f)}catch{return null}return l.forEach(g=>{k.test(g)&&(!y||b.compare(g)===1)&&(y=g,b=new T_r(y,f))}),y};t0t.exports=E_r});var s0t=xt((Dxr,i0t)=>{var Xwe=l0(),x_r=Bb(),n0t=wW(),C_r=(l,c)=>{l=new x_r(l,c);let f=new Xwe("0.0.0");if(l.test(f)||(f=new Xwe("0.0.0-0"),l.test(f)))return f;f=null;for(let y=0;y{let p=new Xwe(g.semver.version);switch(g.operator){case">":p.prerelease.length===0?p.patch++:p.prerelease.push(0),p.raw=p.format();case"":case">=":(!k||n0t(p,k))&&(k=p);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${g.operator}`)}}),k&&(!f||n0t(f,k))&&(f=k)}return f&&l.test(f)?f:null};i0t.exports=C_r});var a0t=xt((Ixr,o0t)=>{var A_r=Bb(),k_r=(l,c)=>{try{return new A_r(l,c).range||"*"}catch{return null}};o0t.exports=k_r});var Ece=xt((wxr,_0t)=>{var P_r=l0(),u0t=OW(),{ANY:N_r}=u0t,D_r=Bb(),I_r=MW(),c0t=wW(),l0t=yce(),w_r=Sce(),O_r=vce(),R_r=(l,c,f,y)=>{l=new P_r(l,y),c=new D_r(c,y);let b,k,g,p,A;switch(f){case">":b=c0t,k=w_r,g=l0t,p=">",A=">=";break;case"<":b=l0t,k=O_r,g=c0t,p="<",A="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I_r(l,c,y))return!1;for(let j=0;j{lr.semver===N_r&&(lr=new u0t(">=0.0.0")),We=We||lr,ve=ve||lr,b(lr.semver,We.semver,y)?We=lr:g(lr.semver,ve.semver,y)&&(ve=lr)}),We.operator===p||We.operator===A||(!ve.operator||ve.operator===p)&&k(l,ve.semver))return!1;if(ve.operator===A&&g(l,ve.semver))return!1}return!0};_0t.exports=R_r});var p0t=xt((Oxr,f0t)=>{var M_r=Ece(),L_r=(l,c,f)=>M_r(l,c,">",f);f0t.exports=L_r});var m0t=xt((Rxr,d0t)=>{var F_r=Ece(),j_r=(l,c,f)=>F_r(l,c,"<",f);d0t.exports=j_r});var y0t=xt((Mxr,h0t)=>{var g0t=Bb(),B_r=(l,c,f)=>(l=new g0t(l,f),c=new g0t(c,f),l.intersects(c,f));h0t.exports=B_r});var S0t=xt((Lxr,v0t)=>{var U_r=MW(),V_r=jb();v0t.exports=(l,c,f)=>{let y=[],b=null,k=null,g=l.sort((se,We)=>V_r(se,We,f));for(let se of g)U_r(se,c,f)?(k=se,b||(b=se)):(k&&y.push([b,k]),k=null,b=null);b&&y.push([b,null]);let p=[];for(let[se,We]of y)se===We?p.push(se):!We&&se===g[0]?p.push("*"):We?se===g[0]?p.push(`<=${We}`):p.push(`${se} - ${We}`):p.push(`>=${se}`);let A=p.join(" || "),j=typeof c.raw=="string"?c.raw:String(c);return A.length{var T0t=Bb(),Zwe=OW(),{ANY:Qwe}=Zwe,LW=MW(),eOe=jb(),J_r=(l,c,f={})=>{if(l===c)return!0;l=new T0t(l,f),c=new T0t(c,f);let y=!1;e:for(let b of l.set){for(let k of c.set){let g=z_r(b,k,f);if(y=y||g!==null,g)continue e}if(y)return!1}return!0},q_r=[new Zwe(">=0.0.0-0")],b0t=[new Zwe(">=0.0.0")],z_r=(l,c,f)=>{if(l===c)return!0;if(l.length===1&&l[0].semver===Qwe){if(c.length===1&&c[0].semver===Qwe)return!0;f.includePrerelease?l=q_r:l=b0t}if(c.length===1&&c[0].semver===Qwe){if(f.includePrerelease)return!0;c=b0t}let y=new Set,b,k;for(let lr of l)lr.operator===">"||lr.operator===">="?b=E0t(b,lr,f):lr.operator==="<"||lr.operator==="<="?k=x0t(k,lr,f):y.add(lr.semver);if(y.size>1)return null;let g;if(b&&k){if(g=eOe(b.semver,k.semver,f),g>0)return null;if(g===0&&(b.operator!==">="||k.operator!=="<="))return null}for(let lr of y){if(b&&!LW(lr,String(b),f)||k&&!LW(lr,String(k),f))return null;for(let Rr of c)if(!LW(lr,String(Rr),f))return!1;return!0}let p,A,j,se,We=k&&!f.includePrerelease&&k.semver.prerelease.length?k.semver:!1,ve=b&&!f.includePrerelease&&b.semver.prerelease.length?b.semver:!1;We&&We.prerelease.length===1&&k.operator==="<"&&We.prerelease[0]===0&&(We=!1);for(let lr of c){if(se=se||lr.operator===">"||lr.operator===">=",j=j||lr.operator==="<"||lr.operator==="<=",b){if(ve&&lr.semver.prerelease&&lr.semver.prerelease.length&&lr.semver.major===ve.major&&lr.semver.minor===ve.minor&&lr.semver.patch===ve.patch&&(ve=!1),lr.operator===">"||lr.operator===">="){if(p=E0t(b,lr,f),p===lr&&p!==b)return!1}else if(b.operator===">="&&!LW(b.semver,String(lr),f))return!1}if(k){if(We&&lr.semver.prerelease&&lr.semver.prerelease.length&&lr.semver.major===We.major&&lr.semver.minor===We.minor&&lr.semver.patch===We.patch&&(We=!1),lr.operator==="<"||lr.operator==="<="){if(A=x0t(k,lr,f),A===lr&&A!==k)return!1}else if(k.operator==="<="&&!LW(k.semver,String(lr),f))return!1}if(!lr.operator&&(k||b)&&g!==0)return!1}return!(b&&j&&!k&&g!==0||k&&se&&!b&&g!==0||ve||We)},E0t=(l,c,f)=>{if(!l)return c;let y=eOe(l.semver,c.semver,f);return y>0?l:y<0||c.operator===">"&&l.operator===">="?c:l},x0t=(l,c,f)=>{if(!l)return c;let y=eOe(l.semver,c.semver,f);return y<0?l:y>0||c.operator==="<"&&l.operator==="<="?c:l};C0t.exports=J_r});var D0t=xt((jxr,N0t)=>{var tOe=YF(),k0t=DW(),W_r=l0(),P0t=Uwe(),G_r=c3(),H_r=eyt(),$_r=ryt(),Y_r=syt(),K_r=cyt(),X_r=uyt(),Q_r=fyt(),Z_r=dyt(),efr=gyt(),tfr=jb(),rfr=Syt(),nfr=byt(),ifr=hce(),sfr=Ayt(),ofr=Pyt(),afr=wW(),cfr=yce(),lfr=Jwe(),ufr=qwe(),_fr=vce(),ffr=Sce(),pfr=zwe(),dfr=Fyt(),mfr=OW(),gfr=Bb(),hfr=MW(),yfr=Qyt(),vfr=e0t(),Sfr=r0t(),Tfr=s0t(),bfr=a0t(),Efr=Ece(),xfr=p0t(),Cfr=m0t(),Afr=y0t(),kfr=S0t(),Pfr=A0t();N0t.exports={parse:G_r,valid:H_r,clean:$_r,inc:Y_r,diff:K_r,major:X_r,minor:Q_r,patch:Z_r,prerelease:efr,compare:tfr,rcompare:rfr,compareLoose:nfr,compareBuild:ifr,sort:sfr,rsort:ofr,gt:afr,lt:cfr,eq:lfr,neq:ufr,gte:_fr,lte:ffr,cmp:pfr,coerce:dfr,Comparator:mfr,Range:gfr,satisfies:hfr,toComparators:yfr,maxSatisfying:vfr,minSatisfying:Sfr,minVersion:Tfr,validRange:bfr,outside:Efr,gtr:xfr,ltr:Cfr,intersects:Afr,simplifyRange:kfr,subset:Pfr,SemVer:W_r,re:tOe.re,src:tOe.src,tokens:tOe.t,SEMVER_SPEC_VERSION:k0t.SEMVER_SPEC_VERSION,RELEASE_TYPES:k0t.RELEASE_TYPES,compareIdentifiers:P0t.compareIdentifiers,rcompareIdentifiers:P0t.rcompareIdentifiers}});var G0t=xt((YCr,Dfr)=>{Dfr.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var Y0t=xt(HS=>{"use strict";var $0t=G0t(),Ag=process.env;Object.defineProperty(HS,"_vendors",{value:$0t.map(function(l){return l.constant})});HS.name=null;HS.isPR=null;$0t.forEach(function(l){let f=(Array.isArray(l.env)?l.env:[l.env]).every(function(y){return H0t(y)});if(HS[l.constant]=f,!!f)switch(HS.name=l.name,typeof l.pr){case"string":HS.isPR=!!Ag[l.pr];break;case"object":"env"in l.pr?HS.isPR=l.pr.env in Ag&&Ag[l.pr.env]!==l.pr.ne:"any"in l.pr?HS.isPR=l.pr.any.some(function(y){return!!Ag[y]}):HS.isPR=H0t(l.pr);break;default:HS.isPR=null}});HS.isCI=!!(Ag.CI!=="false"&&(Ag.BUILD_ID||Ag.BUILD_NUMBER||Ag.CI||Ag.CI_APP_ID||Ag.CI_BUILD_ID||Ag.CI_BUILD_NUMBER||Ag.CI_NAME||Ag.CONTINUOUS_INTEGRATION||Ag.RUN_ID||HS.name));function H0t(l){return typeof l=="string"?!!Ag[l]:"env"in l?Ag[l.env]&&Ag[l.env].includes(l.includes):"any"in l?l.any.some(function(c){return!!Ag[c]}):Object.keys(l).every(function(c){return Ag[c]===l[c]})}});import*as Q0t from"os";import*as Lce from"path";var PAe={};aXe(PAe,{Argument:()=>Gqt,Command:()=>Wqt,CommanderError:()=>Jqt,Help:()=>$qt,InvalidArgumentError:()=>qqt,InvalidOptionArgumentError:()=>zqt,Option:()=>Hqt,createArgument:()=>Uqt,createCommand:()=>Bqt,createOption:()=>Vqt,program:()=>jqt});var TXe=tf(SXe(),1),{program:jqt,createCommand:Bqt,createArgument:Uqt,createOption:Vqt,CommanderError:Jqt,InvalidArgumentError:qqt,InvalidOptionArgumentError:zqt,Command:Wqt,Argument:Gqt,Option:Hqt,Help:$qt}=TXe.default;import*as jC from"net";var bXe={$ref:"#/definitions/ConfigSchema",$schema:"http://json-schema.org/draft-07/schema#",definitions:{ConfigSchema:{$id:"https://unpkg.com/@ibm/telemetry-config-schema/dist/config.schema.json",additionalProperties:!1,description:"Configuration outline for metrics collection using IBM telemetry.",properties:{collect:{additionalProperties:!1,description:"The keys under `collect` represent the various types of data that Telemetry is capable of collecting (i.e. `scopes`).",minProperties:1,properties:{js:{additionalProperties:!1,description:"Configuration for collecting telemetry data from JS files.",minProperties:1,properties:{functions:{anyOf:[{type:"null"},{additionalProperties:!1,properties:{allowedArgumentStringValues:{description:"Enable telemetry data collection for specific string function argument values. These are collected for all included functions. Boolean and numeric values are collected by default.",items:{type:"string"},minItems:1,type:"array"}},type:"object"}],description:"Enable telemetry data collection for JS functions. The set of included functions is determined by looking at import/require statements across analyzed source files."},tokens:{description:"Enable telemetry data collection for JS tokens. The set of included tokens is determined by looking at import/require statements across analyzed source files.",type:"null"}},type:"object"},jsx:{additionalProperties:!1,description:"Configuration for collecting telemetry data from JSX files.",minProperties:1,properties:{elements:{anyOf:[{type:"null"},{additionalProperties:!1,properties:{allowedAttributeNames:{description:"Enable telemetry data collection for specific JSX attributes. These are collected for all included JSX elements. Specifying an `attributeName` here will turn on data collection for boolean and numeric attribute values. String value data collection is handled separately via the `allowedAttributeStringValues` key.",items:{type:"string"},minItems:1,type:"array"},allowedAttributeStringValues:{description:"Enable telemetry data collection for specific string attribute values. These are collected for all defined attributes in the `allowedAttributeNames` key.",items:{type:"string"},minItems:1,type:"array"}},type:"object"}],description:"Enable telemetry data collection for JSX elements. The set of included elements is determined by looking at import/require statements across analyzed source files."}},type:"object"},npm:{additionalProperties:!1,description:"Configuration for collecting telemetry data from an npm environment.",minProperties:1,properties:{dependencies:{description:"Enable telemetry data collection for `dependencies`, `devDependencies`, and `peerDependencies` that are siblings of the instrumented package.",type:"null"}},type:"object"}},type:"object"},endpoint:{description:"URL of the telemetry data collection endpoint.",type:"string"},projectId:{description:"Unique identifier assigned on a per-project basis.",type:"string"},version:{const:1,description:"Current schema version.",type:"number"}},required:["version","projectId","endpoint","collect"],title:"Telemetry Config Schema",type:"object"}}};var Eh=Object.freeze({PROJECT_ID:"project.id",DATE:"date",TELEMETRY_EMITTER_NAME:"telemetry.emitter.name",TELEMETRY_EMITTER_VERSION:"telemetry.emitter.version",ANALYZED_PATH:"analyzed.path",ANALYZED_HOST:"analyzed.host",ANALYZED_OWNER:"analyzed.owner",ANALYZED_REPOSITORY:"analyzed.repository",ANALYZED_COMMIT:"analyzed.commit",ANALYZED_REFS:"analyzed.refs"});var gx=Object.freeze({SCOPE_NAME:"js",JS_TOKEN_METRIC:"js.token",JS_FUNCTION_METRIC:"js.function",TOKEN_NAME:"js.token.name",TOKEN_ACCESS_PATH:"js.token.accessPath",TOKEN_MODULE_SPECIFIER:"js.token.module.specifier",FUNCTION_NAME:"js.function.name",FUNCTION_ACCESS_PATH:"js.function.accessPath",FUNCTION_ARGUMENT_VALUES:"js.function.arguments.values",FUNCTION_MODULE_SPECIFIER:"js.function.module.specifier"});var cI=Object.freeze({SCOPE_NAME:"jsx",JSX_ELEMENT_METRIC:"jsx.element",NAME:"jsx.element.name",MODULE_SPECIFIER:"jsx.element.module.specifier",ATTRIBUTE_NAMES:"jsx.element.attributes.names",ATTRIBUTE_VALUES:"jsx.element.attributes.values",ATTRIBUTE_MAP:"jsx.element.attributes.map"});var Ao=Object.freeze({SCOPE_NAME:"npm",NPM_DEPENDENCY_METRIC:"npm.dependency",RAW:"npm.dependency.raw",OWNER:"npm.dependency.owner",NAME:"npm.dependency.name",IS_INSTRUMENTED:"npm.dependency.isInstrumented",INSTRUMENTED_RAW:"npm.dependency.instrumented.raw",INSTRUMENTED_OWNER:"npm.dependency.instrumented.owner",INSTRUMENTED_NAME:"npm.dependency.instrumented.name",INSTRUMENTED_VERSION_RAW:"npm.dependency.instrumented.version.raw",INSTRUMENTED_VERSION_MAJOR:"npm.dependency.instrumented.version.major",INSTRUMENTED_VERSION_MINOR:"npm.dependency.instrumented.version.minor",INSTRUMENTED_VERSION_PATCH:"npm.dependency.instrumented.version.patch",INSTRUMENTED_VERSION_PRE_RELEASE:"npm.dependency.instrumented.version.preRelease",VERSION_RAW:"npm.dependency.version.raw",VERSION_MAJOR:"npm.dependency.version.major",VERSION_MINOR:"npm.dependency.version.minor",VERSION_PATCH:"npm.dependency.version.patch",VERSION_PRE_RELEASE:"npm.dependency.version.preRelease"});var npr=[gx.SCOPE_NAME,cI.SCOPE_NAME,Ao.SCOPE_NAME];var q0t=tf(Tut(),1),z0t=tf(xNe(),1),W0t=tf(eF(),1);import{createHash as but}from"crypto";function EC(l,c){let f=Object.entries(l).map(([y,b])=>{if(!c.includes(y))return[y,b];if(Array.isArray(b)){let g=b.map(p=>{if(typeof p!="string")return p;let A=but("sha256");return A.update(p),A.digest("hex")});return[y,g]}if(typeof b!="string")return[y,b];let k=but("sha256");return k.update(b),[y,k.digest("hex")]});return Object.fromEntries(f)}var spt=tf(tpt(),1);var nae=class extends Error{constructor(c){super(JSON.stringify(c,void 0,2)),this.errors=c}};var dnr=function(l,c,f,y){if(f==="a"&&!y)throw new TypeError("Private accessor was defined without a getter");if(typeof c=="function"?l!==c||!y:!c.has(l))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?y:f==="a"?y.call(l):y?y.value:c.get(l)},mnr=function(l,c,f,y,b){if(y==="m")throw new TypeError("Private method is not writable");if(y==="a"&&!b)throw new TypeError("Private accessor was defined without a setter");if(typeof c=="function"?l!==c||!b:!c.has(l))throw new TypeError("Cannot write private member to an object whose class did not declare it");return y==="a"?b.call(l,f):b?b.value=f:c.set(l,f),f},iae,Gd=class{get logger(){return dnr(this,iae,"f")}constructor(c){iae.set(this,void 0),mnr(this,iae,c,"f")}};iae=new WeakMap;var ovr=tf(npt(),1);var sae=class extends Error{constructor(){super("Attempt to trace method without a defined Logger instance")}};import{appendFile as gnr}from"fs/promises";import*as ipt from"util";function Ah(l){return typeof l=="string"?l:ipt.inspect(l,{compact:!0,breakLength:1/0,depth:10,showHidden:!1,maxArrayLength:1e4,maxStringLength:1e4})}var wIe=function(l,c,f,y,b){if(y==="m")throw new TypeError("Private method is not writable");if(y==="a"&&!b)throw new TypeError("Private accessor was defined without a setter");if(typeof c=="function"?l!==c||!b:!c.has(l))throw new TypeError("Cannot write private member to an object whose class did not declare it");return y==="a"?b.call(l,f):b?b.value=f:c.set(l,f),f},iW=function(l,c,f,y){if(f==="a"&&!y)throw new TypeError("Private accessor was defined without a getter");if(typeof c=="function"?l!==c||!y:!c.has(l))throw new TypeError("Cannot read private member from an object whose class did not declare it");return f==="m"?y:f==="a"?y.call(l):y?y.value:c.get(l)},oae,CF,aae,hnr=250,ynr=1,AF=class{constructor(c){oae.set(this,void 0),CF.set(this,void 0),aae.set(this,void 0),wIe(this,oae,c,"f"),wIe(this,CF,[],"f"),wIe(this,aae,setInterval(()=>{this.flush()},hnr),"f"),console.log("Log file:",c)}async flush(){let c=iW(this,CF,"f").join("");await gnr(iW(this,oae,"f"),c),iW(this,CF,"f").splice(0)}async close(){clearInterval(iW(this,aae,"f")),await this.flush()}debug(c,...f){this.log("debug",[c,...f])}error(c){let f;c instanceof Error?f=c.constructor.name+" "+c.stack:f=c,this.log("error",[f])}traceEnter(c,f,y){let b=y.map(Ah).join(", ");this.debug(`--> ${c}::${f}(${b})`)}traceExit(c,f,y){if(y instanceof Promise){let b=ynr++;this.debug(`-?- ${c}::${f}(...): awaiting [Promise${b}]`),y.then(k=>{this.debug(`<-- ${c}::${f}(...): resolved [Promise${b}]: ${Ah(k)}`)},k=>{this.error(`-x- ${c}::${f}(...): ${Ah(k)}`),k instanceof Error&&this.error(k)})}else y instanceof Error?(this.error(`-x- ${c}::${f}(...): ${Ah(y)}`),this.error(y)):this.debug(`<-- ${c}::${f}(...): ${Ah(y)}`)}log(c,f){let y=new Date().toISOString();iW(this,CF,"f").push(c+" "+process.pid+" "+y+" "+f.join(" ")+`
`)}};oae=new WeakMap,CF=new WeakMap,aae=new WeakMap;function Du(l){return function(f,y,b){if(b.value===null||b.value===void 0||!(b.value instanceof Function))return;let k=f.constructor.name,g=b,p=b.value;b.value=function(...A){let j=this.logger;if(!(j instanceof AF))throw new sae;j.traceEnter(k,String(y),l?.argFormatter!==void 0?A.map(l.argFormatter):A);let se;try{se=p.apply(this,A)}catch(We){throw j.traceExit(k,String(y),We),We}return j.traceExit(k,String(y),se),se},Object.defineProperty(b.value,"name",{value:p.name}),Reflect.getMetadataKeys(p).forEach(A=>{Reflect.defineMetadata(A,Reflect.getMetadata(A,p),g.value)})}}var vnr=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},OIe=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},Snr=spt.default.default,sW=class extends Gd{constructor(c,f){super(f),this.ajvValidate=new Snr({allErrors:!0,verbose:!0}).compile(c)}validate(c){if(!this.ajvValidate(c))throw new nae(this.ajvValidate.errors?.map(f=>{let{instancePath:y,keyword:b,message:k,params:g}=f;return{instancePath:y,keyword:b,message:k,params:g}})??[])}};vnr([Du(),OIe("design:type",Function),OIe("design:paramtypes",[Object]),OIe("design:returntype",void 0)],sW.prototype,"validate",null);import*as apt from"child_process";var oW=class extends Error{constructor(c){super(JSON.stringify(c,void 0,2))}};var cae=class extends Error{};function opt(l){if(/[\\$;`]/.exec(l)!=null)throw new cae("Command contained forbidden characters: "+l)}var Tnr=5,aW=new Set;async function uv(l,c,f={},y=!0){for(c.traceEnter("","runCommand",[l,f,y]),opt(l);aW.size>=Tnr;)await Promise.any(aW);let b,k,g="",p="",A=!1,j={env:process.env,shell:!0,...f},se=new Promise((ve,lr)=>{b=ve,k=lr});aW.add(se);let We=apt.spawn(l,j);return We.stdout?.on("data",ve=>{g+=ve.toString()}),We.stderr?.on("data",ve=>{p+=ve.toString()}),We.on("error",ve=>{if(A)return;let lr;aW.delete(se),y?(lr=new oW({exitCode:"errno"in ve&&typeof ve.errno=="number"?ve.errno:-1,stderr:p.trim(),stdout:g.trim(),exception:ve,spawnOptions:j}),k(lr)):(lr={exitCode:"errno"in ve&&typeof ve.errno=="number"?ve.errno:-1,stderr:p,stdout:g},b(lr)),A=!0,c.traceExit("","runCommand",lr)}),We.on("close",ve=>{if(A)return;aW.delete(se);let lr;ve!==0&&y?(lr=new oW({exitCode:ve??999,stderr:p.trim(),stdout:g.trim(),spawnOptions:j}),k(lr)):(lr={exitCode:ve??999,stderr:p.trim(),stdout:g.trim()},b(lr)),A=!0,c.traceExit("","runCommand",lr)}),await se}var lae=new Map;async function uae(l,c){return lae.has(l)?(c.debug("getRepositoryRoot cache hit for "+l),lae.get(l)):(lae.set(l,(await uv("git rev-parse --show-toplevel",c,{cwd:l},!0)).stdout),lae.get(l))}function cpt(l){let c={host:void 0,owner:void 0,repository:void 0};return l.startsWith("http")?c=bnr(l):l.startsWith("git@")&&(c=Enr(l)),c.repository?.endsWith(".git")===!0&&(c.repository=c.repository.slice(0,-4)),c}function bnr(l){let c=/^https?:\/\/([^/]+)\/([^/]+)\/([^/]+)/.exec(l)??[],[f,y,b,k]=c;return{host:y,owner:b,repository:k}}function Enr(l){let c=/^([^@]+)@([^:]+):([^/]+)\/([^/]+)/.exec(l)??[],[f,y,b,k,g]=c;return{host:b,owner:k,repository:g}}var xnr=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},RIe=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},cW=class{constructor(c,f){this.cwd=c,this.logger=f}async getGitInfo(){let c=(await uv("git remote get-url origin",this.logger)).stdout,f=(await uv("git rev-parse HEAD",this.logger)).stdout,y=await this.getCommitBranches(f,this.cwd,this.logger),b=await this.getCommitTags(f,this.cwd,this.logger),k=cpt(c);return{gitOrigin:c,commitHash:f,commitBranches:y,commitTags:b,repository:k}}async getCommitBranches(c,f,y){return(await uv(`git branch --points-at=${c} --format='%(refname:short)'`,y,{cwd:f},!0)).stdout.split(/\r?\n/g).filter(k=>k!=="")}async getCommitTags(c,f,y){return(await uv(`git tag --points-at=${c} --format='%(refname:short)'`,y,{cwd:f},!0)).stdout.split(/\r?\n/g).filter(k=>k!=="")}};xnr([Du(),RIe("design:type",Function),RIe("design:paramtypes",[]),RIe("design:returntype",Promise)],cW.prototype,"getGitInfo",null);var MIe=tf(APe(),1),upt=tf(eF(),1),_pt=tf(hC(),1);var lpt=tf(eF(),1),_ae=class extends lpt.MetricReader{async collect(c){return await super.collect(c)}async onShutdown(){throw new Error("Method not implemented.")}async onForceFlush(){throw new Error("Method not implemented.")}};var kF=class l{static getInstance(c=!1){return(c||l.instance===void 0)&&(l.instance=new l),l.instance}constructor(){this.isInitialized=!1}initialize(){if(this.isInitialized)return;let c=MIe.Resource.default().merge(new MIe.Resource({[_pt.SEMRESATTRS_SERVICE_NAME]:"IBM Telemetry",...this.attributes}));this.metricReader=new _ae,this.meterProvider=new upt.MeterProvider({resource:c,readers:[this.metricReader]}),this.isInitialized=!0}setAttributes(c){this.attributes=c}getMetricReader(){return this.initialize(),this.metricReader}getMeterProvider(){return this.initialize(),this.meterProvider}};import{readFile as Wsr}from"fs/promises";function kpt(l){return typeof l>"u"||l===null}function Cnr(l){return typeof l=="object"&&l!==null}function Anr(l){return Array.isArray(l)?l:kpt(l)?[]:[l]}function knr(l,c){var f,y,b,k;if(c)for(k=Object.keys(c),f=0,y=k.length;fp&&(k=" ... ",c=y-p+k.length),f-y>p&&(g=" ...",f=y+p-g.length),{str:k+l.slice(c,f).replace(/\t/g,"\u2192")+g,pos:y-c+k.length}}function FIe(l,c){return Cg.repeat(" ",c-l.length)+l}function Lnr(l,c){if(c=Object.create(c||null),!l.buffer)return null;c.maxLength||(c.maxLength=79),typeof c.indent!="number"&&(c.indent=1),typeof c.linesBefore!="number"&&(c.linesBefore=3),typeof c.linesAfter!="number"&&(c.linesAfter=2);for(var f=/\r?\n|\r|\0/g,y=[0],b=[],k,g=-1;k=f.exec(l.buffer);)b.push(k.index),y.push(k.index+k[0].length),l.position<=k.index&&g<0&&(g=y.length-2);g<0&&(g=y.length-1);var p="",A,j,se=Math.min(l.line+c.linesAfter,b.length).toString().length,We=c.maxLength-(c.indent+se+3);for(A=1;A<=c.linesBefore&&!(g-A<0);A++)j=LIe(l.buffer,y[g-A],b[g-A],l.position-(y[g]-y[g-A]),We),p=Cg.repeat(" ",c.indent)+FIe((l.line-A+1).toString(),se)+" | "+j.str+`
`+p;for(j=LIe(l.buffer,y[g],b[g],l.position,We),p+=Cg.repeat(" ",c.indent)+FIe((l.line+1).toString(),se)+" | "+j.str+`
`,p+=Cg.repeat("-",c.indent+se+3+j.pos)+`^
`,A=1;A<=c.linesAfter&&!(g+A>=b.length);A++)j=LIe(l.buffer,y[g+A],b[g+A],l.position-(y[g]-y[g+A]),We),p+=Cg.repeat(" ",c.indent)+FIe((l.line+A+1).toString(),se)+" | "+j.str+`
`;return p.replace(/\n$/,"")}var Fnr=Lnr,jnr=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Bnr=["scalar","sequence","mapping"];function Unr(l){var c={};return l!==null&&Object.keys(l).forEach(function(f){l[f].forEach(function(y){c[String(y)]=f})}),c}function Vnr(l,c){if(c=c||{},Object.keys(c).forEach(function(f){if(jnr.indexOf(f)===-1)throw new _v('Unknown option "'+f+'" is met in definition of "'+l+'" YAML type.')}),this.options=c,this.tag=l,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(f){return f},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=Unr(c.styleAliases||null),Bnr.indexOf(this.kind)===-1)throw new _v('Unknown kind "'+this.kind+'" is specified for "'+l+'" YAML type.')}var gy=Vnr;function fpt(l,c){var f=[];return l[c].forEach(function(y){var b=f.length;f.forEach(function(k,g){k.tag===y.tag&&k.kind===y.kind&&k.multi===y.multi&&(b=g)}),f[b]=y}),f}function Jnr(){var l={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},c,f;function y(b){b.multi?(l.multi[b.kind].push(b),l.multi.fallback.push(b)):l[b.kind][b.tag]=l.fallback[b.tag]=b}for(c=0,f=arguments.length;c=0?"0b"+l.toString(2):"-0b"+l.toString(2).slice(1)},octal:function(l){return l>=0?"0o"+l.toString(8):"-0o"+l.toString(8).slice(1)},decimal:function(l){return l.toString(10)},hexadecimal:function(l){return l>=0?"0x"+l.toString(16).toUpperCase():"-0x"+l.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),tir=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function rir(l){return!(l===null||!tir.test(l)||l[l.length-1]==="_")}function nir(l){var c,f;return c=l.replace(/_/g,"").toLowerCase(),f=c[0]==="-"?-1:1,"+-".indexOf(c[0])>=0&&(c=c.slice(1)),c===".inf"?f===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:c===".nan"?NaN:f*parseFloat(c,10)}var iir=/^[-+]?[0-9]+e/;function sir(l,c){var f;if(isNaN(l))switch(c){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===l)switch(c){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===l)switch(c){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Cg.isNegativeZero(l))return"-0.0";return f=l.toString(10),iir.test(f)?f.replace("e",".e"):f}function oir(l){return Object.prototype.toString.call(l)==="[object Number]"&&(l%1!==0||Cg.isNegativeZero(l))}var Fpt=new gy("tag:yaml.org,2002:float",{kind:"scalar",resolve:rir,construct:nir,predicate:oir,represent:sir,defaultStyle:"lowercase"}),jpt=Opt.extend({implicit:[Rpt,Mpt,Lpt,Fpt]}),Bpt=jpt,Upt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Vpt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function air(l){return l===null?!1:Upt.exec(l)!==null||Vpt.exec(l)!==null}function cir(l){var c,f,y,b,k,g,p,A=0,j=null,se,We,ve;if(c=Upt.exec(l),c===null&&(c=Vpt.exec(l)),c===null)throw new Error("Date resolve error");if(f=+c[1],y=+c[2]-1,b=+c[3],!c[4])return new Date(Date.UTC(f,y,b));if(k=+c[4],g=+c[5],p=+c[6],c[7]){for(A=c[7].slice(0,3);A.length<3;)A+="0";A=+A}return c[9]&&(se=+c[10],We=+(c[11]||0),j=(se*60+We)*6e4,c[9]==="-"&&(j=-j)),ve=new Date(Date.UTC(f,y,b,k,g,p,A)),j&&ve.setTime(ve.getTime()-j),ve}function lir(l){return l.toISOString()}var Jpt=new gy("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:air,construct:cir,instanceOf:Date,represent:lir});function uir(l){return l==="<<"||l===null}var qpt=new gy("tag:yaml.org,2002:merge",{kind:"scalar",resolve:uir}),zIe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function _ir(l){if(l===null)return!1;var c,f,y=0,b=l.length,k=zIe;for(f=0;f64)){if(c<0)return!1;y+=6}return y%8===0}function fir(l){var c,f,y=l.replace(/[\r\n=]/g,""),b=y.length,k=zIe,g=0,p=[];for(c=0;c>16&255),p.push(g>>8&255),p.push(g&255)),g=g<<6|k.indexOf(y.charAt(c));return f=b%4*6,f===0?(p.push(g>>16&255),p.push(g>>8&255),p.push(g&255)):f===18?(p.push(g>>10&255),p.push(g>>2&255)):f===12&&p.push(g>>4&255),new Uint8Array(p)}function pir(l){var c="",f=0,y,b,k=l.length,g=zIe;for(y=0;y>18&63],c+=g[f>>12&63],c+=g[f>>6&63],c+=g[f&63]),f=(f<<8)+l[y];return b=k%3,b===0?(c+=g[f>>18&63],c+=g[f>>12&63],c+=g[f>>6&63],c+=g[f&63]):b===2?(c+=g[f>>10&63],c+=g[f>>4&63],c+=g[f<<2&63],c+=g[64]):b===1&&(c+=g[f>>2&63],c+=g[f<<4&63],c+=g[64],c+=g[64]),c}function dir(l){return Object.prototype.toString.call(l)==="[object Uint8Array]"}var zpt=new gy("tag:yaml.org,2002:binary",{kind:"scalar",resolve:_ir,construct:fir,predicate:dir,represent:pir}),mir=Object.prototype.hasOwnProperty,gir=Object.prototype.toString;function hir(l){if(l===null)return!0;var c=[],f,y,b,k,g,p=l;for(f=0,y=p.length;f>10)+55296,(l-65536&1023)+56320)}var Qpt=new Array(256),Zpt=new Array(256);for(e3=0;e3<256;e3++)Qpt[e3]=mpt(e3)?1:0,Zpt[e3]=mpt(e3);var e3;function Oir(l,c){this.input=l,this.filename=c.filename||null,this.schema=c.schema||WIe,this.onWarning=c.onWarning||null,this.legacy=c.legacy||!1,this.json=c.json||!1,this.listener=c.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=l.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function edt(l,c){var f={name:l.filename,buffer:l.input.slice(0,-1),position:l.position,line:l.line,column:l.position-l.lineStart};return f.snippet=Fnr(f),new _v(c,f)}function Ua(l,c){throw edt(l,c)}function dae(l,c){l.onWarning&&l.onWarning.call(null,edt(l,c))}var gpt={YAML:function(c,f,y){var b,k,g;c.version!==null&&Ua(c,"duplication of %YAML directive"),y.length!==1&&Ua(c,"YAML directive accepts exactly one argument"),b=/^([0-9]+)\.([0-9]+)$/.exec(y[0]),b===null&&Ua(c,"ill-formed argument of the YAML directive"),k=parseInt(b[1],10),g=parseInt(b[2],10),k!==1&&Ua(c,"unacceptable YAML version of the document"),c.version=y[0],c.checkLineBreaks=g<2,g!==1&&g!==2&&dae(c,"unsupported YAML version of the document")},TAG:function(c,f,y){var b,k;y.length!==2&&Ua(c,"TAG directive accepts exactly two arguments"),b=y[0],k=y[1],Kpt.test(b)||Ua(c,"ill-formed tag handle (first argument) of the TAG directive"),RI.call(c.tagMap,b)&&Ua(c,'there is a previously declared suffix for "'+b+'" tag handle'),Xpt.test(k)||Ua(c,"ill-formed tag prefix (second argument) of the TAG directive");try{k=decodeURIComponent(k)}catch{Ua(c,"tag prefix is malformed: "+k)}c.tagMap[b]=k}};function OI(l,c,f,y){var b,k,g,p;if(c1&&(l.result+=Cg.repeat(`
`,c-1))}function Rir(l,c,f){var y,b,k,g,p,A,j,se,We=l.kind,ve=l.result,lr;if(lr=l.input.charCodeAt(l.position),N1(lr)||NF(lr)||lr===35||lr===38||lr===42||lr===33||lr===124||lr===62||lr===39||lr===34||lr===37||lr===64||lr===96||(lr===63||lr===45)&&(b=l.input.charCodeAt(l.position+1),N1(b)||f&&NF(b)))return!1;for(l.kind="scalar",l.result="",k=g=l.position,p=!1;lr!==0;){if(lr===58){if(b=l.input.charCodeAt(l.position+1),N1(b)||f&&NF(b))break}else if(lr===35){if(y=l.input.charCodeAt(l.position-1),N1(y))break}else{if(l.position===l.lineStart&&hae(l)||f&&NF(lr))break;if(PC(lr))if(A=l.line,j=l.lineStart,se=l.lineIndent,Gm(l,!1,-1),l.lineIndent>=c){p=!0,lr=l.input.charCodeAt(l.position);continue}else{l.position=g,l.line=A,l.lineStart=j,l.lineIndent=se;break}}p&&(OI(l,k,g,!1),HIe(l,l.line-A),k=g=l.position,p=!1),t3(lr)||(g=l.position+1),lr=l.input.charCodeAt(++l.position)}return OI(l,k,g,!1),l.result?!0:(l.kind=We,l.result=ve,!1)}function Mir(l,c){var f,y,b;if(f=l.input.charCodeAt(l.position),f!==39)return!1;for(l.kind="scalar",l.result="",l.position++,y=b=l.position;(f=l.input.charCodeAt(l.position))!==0;)if(f===39)if(OI(l,y,l.position,!0),f=l.input.charCodeAt(++l.position),f===39)y=l.position,l.position++,b=l.position;else return!0;else PC(f)?(OI(l,y,b,!0),HIe(l,Gm(l,!1,c)),y=b=l.position):l.position===l.lineStart&&hae(l)?Ua(l,"unexpected end of the document within a single quoted scalar"):(l.position++,b=l.position);Ua(l,"unexpected end of the stream within a single quoted scalar")}function Lir(l,c){var f,y,b,k,g,p;if(p=l.input.charCodeAt(l.position),p!==34)return!1;for(l.kind="scalar",l.result="",l.position++,f=y=l.position;(p=l.input.charCodeAt(l.position))!==0;){if(p===34)return OI(l,f,l.position,!0),l.position++,!0;if(p===92){if(OI(l,f,l.position,!0),p=l.input.charCodeAt(++l.position),PC(p))Gm(l,!1,c);else if(p<256&&Qpt[p])l.result+=Zpt[p],l.position++;else if((g=Dir(p))>0){for(b=g,k=0;b>0;b--)p=l.input.charCodeAt(++l.position),(g=Nir(p))>=0?k=(k<<4)+g:Ua(l,"expected hexadecimal character");l.result+=wir(k),l.position++}else Ua(l,"unknown escape sequence");f=y=l.position}else PC(p)?(OI(l,f,y,!0),HIe(l,Gm(l,!1,c)),f=y=l.position):l.position===l.lineStart&&hae(l)?Ua(l,"unexpected end of the document within a double quoted scalar"):(l.position++,y=l.position)}Ua(l,"unexpected end of the stream within a double quoted scalar")}function Fir(l,c){var f=!0,y,b,k,g=l.tag,p,A=l.anchor,j,se,We,ve,lr,Rr=Object.create(null),kt,Et,pi,di;if(di=l.input.charCodeAt(l.position),di===91)se=93,lr=!1,p=[];else if(di===123)se=125,lr=!0,p={};else return!1;for(l.anchor!==null&&(l.anchorMap[l.anchor]=p),di=l.input.charCodeAt(++l.position);di!==0;){if(Gm(l,!0,c),di=l.input.charCodeAt(l.position),di===se)return l.position++,l.tag=g,l.anchor=A,l.kind=lr?"mapping":"sequence",l.result=p,!0;f?di===44&&Ua(l,"expected the node content, but found ','"):Ua(l,"missed comma between flow collection entries"),Et=kt=pi=null,We=ve=!1,di===63&&(j=l.input.charCodeAt(l.position+1),N1(j)&&(We=ve=!0,l.position++,Gm(l,!0,c))),y=l.line,b=l.lineStart,k=l.position,IF(l,c,fae,!1,!0),Et=l.tag,kt=l.result,Gm(l,!0,c),di=l.input.charCodeAt(l.position),(ve||l.line===y)&&di===58&&(We=!0,di=l.input.charCodeAt(++l.position),Gm(l,!0,c),IF(l,c,fae,!1,!0),pi=l.result),lr?DF(l,p,Rr,Et,kt,pi,y,b,k):We?p.push(DF(l,null,Rr,Et,kt,pi,y,b,k)):p.push(kt),Gm(l,!0,c),di=l.input.charCodeAt(l.position),di===44?(f=!0,di=l.input.charCodeAt(++l.position)):f=!1}Ua(l,"unexpected end of the stream within a flow collection")}function jir(l,c){var f,y,b=jIe,k=!1,g=!1,p=c,A=0,j=!1,se,We;if(We=l.input.charCodeAt(l.position),We===124)y=!1;else if(We===62)y=!0;else return!1;for(l.kind="scalar",l.result="";We!==0;)if(We=l.input.charCodeAt(++l.position),We===43||We===45)jIe===b?b=We===43?ppt:Cir:Ua(l,"repeat of a chomping mode identifier");else if((se=Iir(We))>=0)se===0?Ua(l,"bad explicit indentation width of a block scalar; it cannot be less than one"):g?Ua(l,"repeat of an indentation width identifier"):(p=c+se-1,g=!0);else break;if(t3(We)){do We=l.input.charCodeAt(++l.position);while(t3(We));if(We===35)do We=l.input.charCodeAt(++l.position);while(!PC(We)&&We!==0)}for(;We!==0;){for(GIe(l),l.lineIndent=0,We=l.input.charCodeAt(l.position);(!g||l.lineIndentp&&(p=l.lineIndent),PC(We)){A++;continue}if(l.lineIndentc)&&A!==0)Ua(l,"bad indentation of a sequence entry");else if(l.lineIndentc)&&(Et&&(g=l.line,p=l.lineStart,A=l.position),IF(l,c,pae,!0,b)&&(Et?Rr=l.result:kt=l.result),Et||(DF(l,We,ve,lr,Rr,kt,g,p,A),lr=Rr=kt=null),Gm(l,!0,-1),di=l.input.charCodeAt(l.position)),(l.line===k||l.lineIndent>c)&&di!==0)Ua(l,"bad indentation of a mapping entry");else if(l.lineIndentc?A=1:l.lineIndent===c?A=0:l.lineIndentc?A=1:l.lineIndent===c?A=0:l.lineIndent tag; it should be "scalar", not "'+l.kind+'"'),We=0,ve=l.implicitTypes.length;We"),l.result!==null&&Rr.kind!==l.kind&&Ua(l,"unacceptable node kind for !<"+l.tag+'> tag; it should be "'+Rr.kind+'", not "'+l.kind+'"'),Rr.resolve(l.result,l.tag)?(l.result=Rr.construct(l.result,l.tag),l.anchor!==null&&(l.anchorMap[l.anchor]=l.result)):Ua(l,"cannot resolve a node with !<"+l.tag+"> explicit tag")}return l.listener!==null&&l.listener("close",l),l.tag!==null||l.anchor!==null||se}function qir(l){var c=l.position,f,y,b,k=!1,g;for(l.version=null,l.checkLineBreaks=l.legacy,l.tagMap=Object.create(null),l.anchorMap=Object.create(null);(g=l.input.charCodeAt(l.position))!==0&&(Gm(l,!0,-1),g=l.input.charCodeAt(l.position),!(l.lineIndent>0||g!==37));){for(k=!0,g=l.input.charCodeAt(++l.position),f=l.position;g!==0&&!N1(g);)g=l.input.charCodeAt(++l.position);for(y=l.input.slice(f,l.position),b=[],y.length<1&&Ua(l,"directive name must not be less than one character in length");g!==0;){for(;t3(g);)g=l.input.charCodeAt(++l.position);if(g===35){do g=l.input.charCodeAt(++l.position);while(g!==0&&!PC(g));break}if(PC(g))break;for(f=l.position;g!==0&&!N1(g);)g=l.input.charCodeAt(++l.position);b.push(l.input.slice(f,l.position))}g!==0&&GIe(l),RI.call(gpt,y)?gpt[y](l,y,b):dae(l,'unknown document directive "'+y+'"')}if(Gm(l,!0,-1),l.lineIndent===0&&l.input.charCodeAt(l.position)===45&&l.input.charCodeAt(l.position+1)===45&&l.input.charCodeAt(l.position+2)===45?(l.position+=3,Gm(l,!0,-1)):k&&Ua(l,"directives end mark is expected"),IF(l,l.lineIndent-1,pae,!1,!0),Gm(l,!0,-1),l.checkLineBreaks&&kir.test(l.input.slice(c,l.position))&&dae(l,"non-ASCII line breaks are interpreted as content"),l.documents.push(l.result),l.position===l.lineStart&&hae(l)){l.input.charCodeAt(l.position)===46&&(l.position+=3,Gm(l,!0,-1));return}if(l.position"u"&&(f=c,c=null);var y=tdt(l,f);if(typeof c!="function")return y;for(var b=0,k=y.length;b=55296&&f<=56319&&c+1=56320&&y<=57343)?(f-55296)*1024+y-56320+65536:f}function udt(l){var c=/^\n* /;return c.test(l)}var _dt=1,JIe=2,fdt=3,pdt=4,PF=5;function vsr(l,c,f,y,b,k,g,p){var A,j=0,se=null,We=!1,ve=!1,lr=y!==-1,Rr=-1,kt=hsr(lW(l,0))&&ysr(lW(l,l.length-1));if(c||g)for(A=0;A=65536?A+=2:A++){if(j=lW(l,A),!pW(j))return PF;kt=kt&&Tpt(j,se,p),se=j}else{for(A=0;A=65536?A+=2:A++){if(j=lW(l,A),j===_W)We=!0,lr&&(ve=ve||A-Rr-1>y&&l[Rr+1]!==" ",Rr=A);else if(!pW(j))return PF;kt=kt&&Tpt(j,se,p),se=j}ve=ve||lr&&A-Rr-1>y&&l[Rr+1]!==" "}return!We&&!ve?kt&&!g&&!b(l)?_dt:k===fW?PF:JIe:f>9&&udt(l)?PF:g?k===fW?PF:JIe:ve?pdt:fdt}function Ssr(l,c,f,y,b){l.dump=function(){if(c.length===0)return l.quotingType===fW?'""':"''";if(!l.noCompatMode&&(usr.indexOf(c)!==-1||_sr.test(c)))return l.quotingType===fW?'"'+c+'"':"'"+c+"'";var k=l.indent*Math.max(1,f),g=l.lineWidth===-1?-1:Math.max(Math.min(l.lineWidth,40),l.lineWidth-k),p=y||l.flowLevel>-1&&f>=l.flowLevel;function A(j){return gsr(l,j)}switch(vsr(c,p,l.indent,g,A,l.quotingType,l.forceQuotes&&!y,b)){case _dt:return c;case JIe:return"'"+c.replace(/'/g,"''")+"'";case fdt:return"|"+bpt(c,l.indent)+Ept(vpt(c,k));case pdt:return">"+bpt(c,l.indent)+Ept(vpt(Tsr(c,g),k));case PF:return'"'+bsr(c)+'"';default:throw new _v("impossible error: invalid scalar style")}}()}function bpt(l,c){var f=udt(l)?String(c):"",y=l[l.length-1]===`
`,b=y&&(l[l.length-2]===`
`||l===`
`),k=b?"+":y?"":"-";return f+k+`
`}function Ept(l){return l[l.length-1]===`
`?l.slice(0,-1):l}function Tsr(l,c){for(var f=/(\n+)([^\n]*)/g,y=function(){var j=l.indexOf(`
`);return j=j!==-1?j:l.length,f.lastIndex=j,xpt(l.slice(0,j),c)}(),b=l[0]===`
`||l[0]===" ",k,g;g=f.exec(l);){var p=g[1],A=g[2];k=A[0]===" ",y+=p+(!b&&!k&&A!==""?`
`:"")+xpt(A,c),b=k}return y}function xpt(l,c){if(l===""||l[0]===" ")return l;for(var f=/ [^ ]/g,y,b=0,k,g=0,p=0,A="";y=f.exec(l);)p=y.index,p-b>c&&(k=g>b?g:p,A+=`
`+l.slice(b,k),b=k+1),g=p;return A+=`
`,l.length-b>c&&g>b?A+=l.slice(b,g)+`
`+l.slice(g+1):A+=l.slice(b),A.slice(1)}function bsr(l){for(var c="",f=0,y,b=0;b=65536?b+=2:b++)f=lW(l,b),y=a0[f],!y&&pW(f)?(c+=l[b],f>=65536&&(c+=l[b+1])):c+=y||psr(f);return c}function Esr(l,c,f){var y="",b=l.tag,k,g,p;for(k=0,g=f.length;k"u"&&hP(l,c,null,!1,!1))&&(y!==""&&(y+=","+(l.condenseFlow?"":" ")),y+=l.dump);l.tag=b,l.dump="["+y+"]"}function Cpt(l,c,f,y){var b="",k=l.tag,g,p,A;for(g=0,p=f.length;g"u"&&hP(l,c+1,null,!0,!0,!1,!0))&&((!y||b!=="")&&(b+=VIe(l,c)),l.dump&&_W===l.dump.charCodeAt(0)?b+="-":b+="- ",b+=l.dump);l.tag=k,l.dump=b||"[]"}function xsr(l,c,f){var y="",b=l.tag,k=Object.keys(f),g,p,A,j,se;for(g=0,p=k.length;g1024&&(se+="? "),se+=l.dump+(l.condenseFlow?'"':"")+":"+(l.condenseFlow?"":" "),hP(l,c,j,!1,!1)&&(se+=l.dump,y+=se));l.tag=b,l.dump="{"+y+"}"}function Csr(l,c,f,y){var b="",k=l.tag,g=Object.keys(f),p,A,j,se,We,ve;if(l.sortKeys===!0)g.sort();else if(typeof l.sortKeys=="function")g.sort(l.sortKeys);else if(l.sortKeys)throw new _v("sortKeys must be a boolean or a function");for(p=0,A=g.length;p1024,We&&(l.dump&&_W===l.dump.charCodeAt(0)?ve+="?":ve+="? "),ve+=l.dump,We&&(ve+=VIe(l,c)),hP(l,c+1,se,!0,We)&&(l.dump&&_W===l.dump.charCodeAt(0)?ve+=":":ve+=": ",ve+=l.dump,b+=ve));l.tag=k,l.dump=b||"{}"}function Apt(l,c,f){var y,b,k,g,p,A;for(b=f?l.explicitTypes:l.implicitTypes,k=0,g=b.length;k tag resolver accepts not "'+A+'" style');l.dump=y}return!0}return!1}function hP(l,c,f,y,b,k,g){l.tag=null,l.dump=f,Apt(l,f,!1)||Apt(l,f,!0);var p=ndt.call(l.dump),A=y,j;y&&(y=l.flowLevel<0||l.flowLevel>c);var se=p==="[object Object]"||p==="[object Array]",We,ve;if(se&&(We=l.duplicates.indexOf(f),ve=We!==-1),(l.tag!==null&&l.tag!=="?"||ve||l.indent!==2&&c>0)&&(b=!1),ve&&l.usedDuplicates[We])l.dump="*ref_"+We;else{if(se&&ve&&!l.usedDuplicates[We]&&(l.usedDuplicates[We]=!0),p==="[object Object]")y&&Object.keys(l.dump).length!==0?(Csr(l,c,l.dump,b),ve&&(l.dump="&ref_"+We+l.dump)):(xsr(l,c,l.dump),ve&&(l.dump="&ref_"+We+" "+l.dump));else if(p==="[object Array]")y&&l.dump.length!==0?(l.noArrayIndent&&!g&&c>0?Cpt(l,c-1,l.dump,b):Cpt(l,c,l.dump,b),ve&&(l.dump="&ref_"+We+l.dump)):(Esr(l,c,l.dump),ve&&(l.dump="&ref_"+We+" "+l.dump));else if(p==="[object String]")l.tag!=="?"&&Ssr(l,l.dump,c,k,A);else{if(p==="[object Undefined]")return!1;if(l.skipInvalid)return!1;throw new _v("unacceptable kind of an object to dump "+p)}l.tag!==null&&l.tag!=="?"&&(j=encodeURI(l.tag[0]==="!"?l.tag.slice(1):l.tag).replace(/!/g,"%21"),l.tag[0]==="!"?j="!"+j:j.slice(0,18)==="tag:yaml.org,2002:"?j="!!"+j.slice(18):j="!<"+j+">",l.dump=j+" "+l.dump)}return!0}function Asr(l,c){var f=[],y=[],b,k;for(qIe(l,f,y),b=0,k=y.length;b=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},KIe=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},r3=class extends Gd{async find(c,f,y){if(Sae.relative(f,c).startsWith(".."))throw new vae(c,f);let b=[];for(let g=c;g!==f;g=Sae.resolve(g,".."))b.push(g);b.push(f);let k=await Promise.all(b.map(y));return b.filter((g,p)=>k[p]===!0)}};Gsr([Du(),KIe("design:type",Function),KIe("design:paramtypes",[String,String,Function]),KIe("design:returntype",Promise)],r3.prototype,"find",null);var Tae=class extends Error{constructor(c){super(`No package data available for directory ${c}`)}};var bae=new Map;async function NC(l,c,f){f.traceEnter("","getPackageData",[l]);let y=await new r3(f).find(l,c,()=>!0),b;for(let k of y){try{b=await Hsr(k,f)}catch(g){f.debug(String(g))}if(b?.name!==void 0&&b?.version!==void 0)break}if(b===void 0)throw new Tae(l);return f.traceExit("","getPackageData",b),b}async function Hsr(l,c){if(bae.has(l))return c.debug("getImmediatePackageData cache hit for "+l),await bae.get(l);let f=uv("npm pkg get name version",c,{cwd:l}),y=async()=>{let b=await f,[k]=/{[^{]*?}/.exec(b.stdout)??[];if(k===void 0)throw new SyntaxError("Invalid JSON response from package get: "+b.stdout);return JSON.parse(k)};return bae.set(l,y()),await bae.get(l)}async function ydt(l){let c=gdt.dirname(hdt.fileURLToPath(import.meta.url));return l.debug("getTelemetryPackageData: Current file directory discovered as: "+c),await NC(c,c,l)}zc();function Eae(l){return Object.entries(l).reduce((c,[f,y])=>y==null?c:{...c,[f]:y},{})}var $sr=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},XIe=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},yP=class extends Gd{constructor(c,f,y,b){super(b),this.cwd=c,this.root=f,this.config=y,this.metrics={}}capture(c){this.scopeMeter===void 0&&(this.scopeMeter=kF.getInstance().getMeterProvider().getMeter(this.name)),this.metrics[c.name]===void 0&&(this.metrics[c.name]=this.scopeMeter.createCounter(c.name,{valueType:b7.INT})),this.metrics[c.name]?.add(1,{...Eae(c.attributes)})}};$sr([Du(),XIe("design:type",Function),XIe("design:paramtypes",[Function]),XIe("design:returntype",void 0)],yP.prototype,"capture",null);var MI=class extends Error{constructor(c){super(`No configuration defined for ${c} scope`)}};var Iht=tf(yW(),1);import*as Dht from"path";var Lae=tf(D1(),1);import{readFile as blr}from"fs/promises";import*as Iwe from"path";import*as iht from"path";var Tlr=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},Dwe=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},xW=class extends Gd{async find(c,f,y){let b=(await uv(`git ls-tree --full-tree --name-only -r HEAD ${f}`,this.logger,{cwd:c})).stdout.split(/\r?\n/g).filter(g=>g!==""),k=await Promise.all(b.map(y));return await Promise.all(b.filter((g,p)=>k[p]===!0).map(async g=>iht.join(await uae(c,this.logger),g)))}};Tlr([Du(),Dwe("design:type",Function),Dwe("design:paramtypes",[String,String,Function]),Dwe("design:returntype",Promise)],xW.prototype,"find",null);async function sht(l,c,f,y){f.traceEnter("","getTrackedSourceFiles",[c,y]);let b=new xW(f),k=[];y.includes(Iwe.extname(c))?k.push(c):k.push(...await b.find(l,c,A=>y.includes(Iwe.extname(A))));let g=k.map(async A=>({fileName:A,async createSourceFile(){return Lae.createSourceFile(A,(await blr(A)).toString(),Lae.ScriptTarget.ES2021,!0)}})),p=await Promise.all(g);return f.traceExit("","getTrackedSourceFiles",p.map(A=>A.fileName)),p}var Fae=class extends Error{constructor(c){super(`No package installation found for ${c}`)}};var jae=class extends Error{constructor(c,f){super(`No node_modules folders found between ${f} and ${c}`)}};import{access as Elr}from"fs/promises";import*as oht from"path";async function aht(l){let c;try{await Elr(oht.join(l,"node_modules"))}catch(f){c=f}return c===void 0}var Bae=new Map;async function Uae(l,c,f){let y=`${l} ${c}`;if(Bae.has(y)){f.debug("getDependencyTree cache hit for "+y);let g=await Bae.get(y);return f.traceExit("","getDependencyTree",g),g}let b=async()=>{let p=(await new r3(f).find(l,c,aht)).pop();if(p===void 0)throw new jae(l,c);let A=await uv("npm ls --all --json",f,{cwd:p},!1),j=JSON.parse(A.stdout);return f.traceExit("","getDependencyTree inner promise",j),j};return Bae.set(y,b()),await Bae.get(y)}var Vae=new Map;async function cht(l,c){if(c.traceEnter("","getDirectoryPrefix",[l]),Vae.has(l)){c.debug("getDirectoryPrefix cache hit for "+l);let b=await Vae.get(l);return c.traceExit("","getDirectoryPrefix",b),b}let f=async()=>(await uv("npm prefix --no-workspaces",c,{cwd:l})).stdout;Vae.set(l,f());let y=await Vae.get(l);return c.traceExit("","getDirectoryPrefix",y),y}var Px=(l,c="Internal Logic Error")=>{if(!l)throw new Error(typeof c=="function"?c():c)};var SP=class{constructor(c,f){this.value=c,this.excluded=f,this.isSimpleStarRec=c==="**",this.isRegexStarRec=c.startsWith("**(")&&c.endsWith(")"),this.isStarRec=this.isSimpleStarRec||this.isRegexStarRec}};var a3=class l{constructor(c,f=null){this.left=f===null,this.link=f===null?new l(c,this):f,this.type=c,this.isStarRec=this.type==="**",this.node=null,this.pointer=null}setPointer(c){this.pointer=c,this.link.pointer=c}setNode(c){this.node=c,this.link.node=c}};var TP=(l,c,f={})=>{throw new Error(Object.entries(f).reduce((y,[b,k])=>`${y}, ${b} ${k}`,`${l}: ${c}`))},lht=l=>l.length===1?l[0]:l,xlr=/^[?*+\d]+$/,uht=l=>{let c=[];c.or=!0;let f=!1,y=!1,b=0,k=[],g=A=>{c.excluded===!0&&(Px(y===!1),y=!0),k.push(c),c=[],c.or=A},p=()=>{let A=k.pop(),j=lht(c);A.or===!0&&j.or===!0?A.push(...j):A.push(j),c=A};return g(!1),{setInArray:(A,j)=>{f===A&&TP(f?"Bad Array Start":"Bad Array Terminator",l,{char:j}),f=A},finishElement:(A,j,se,{finReq:We=!1,group:ve=!1}={})=>{if(b===A)se.includes(l[A-1]||null)||TP(j,l,{char:A}),b+=1;else{We&&TP(j,l,{char:A});let Rr=l.slice(b,A);ve&&!["**","++"].includes(Rr)&&TP("Bad Group Start",l,{char:A}),f&&!(xlr.test(Rr)||Rr.startsWith("(")&&Rr.endsWith(")"))&&TP("Bad Array Selector",l,{selector:Rr}),ve?c.push(new a3(Rr)):(c.push(new SP(f?`[${Rr}]`:Rr,y)),y=!1),b=A+1}},startExclusion:A=>{y!==!1&&TP("Redundant Exclusion",l,{char:A}),y=!0},startGroup:()=>{g(!0),y&&(c.excluded=!0,y=!1),g(!1)},newGroupElement:()=>{p(),g(!1)},finishGroup:A=>{k.length<2&&TP("Unexpected Group Terminator",l,{char:A}),p(),p(),Px(Array.isArray(c));let j=c[c.length-2];j instanceof a3&&j.left===!0&&c.push(j.link)},finalizeResult:()=>(p(),Px(y===!1),k.length!==0&&TP("Non Terminated Group",l),f&&TP("Non Terminated Array",l),lht(c))}};var CW=(l,c,f={})=>{throw new Error(Object.entries(f).reduce((y,[b,k])=>`${y}, ${b} ${k}`,`${l}: ${c}`))},Clr=(l,c)=>{if(l==="")return new SP("",!1);if(Array.isArray(l))return l.length===0?new SP("",!1):l.map((g,p)=>typeof g=="number"?(c.useArraySelector||CW("Forbidden Array Selector",JSON.stringify(l),{idx:p}),new SP(`[${g}]`,!1)):new SP(g.replaceAll("\\","\\\\"),!1));let f=uht(l),y=l.length,b=!1,k=0;for(let g=0;g{let f=[l],y=[null],b=[],k=[],g=0,p=!0;for(;g!==-1;){let A=f[g];Array.isArray(A)?A.or!==!0?(f.splice(g,1,...A),y.splice(g,1,...new Array(A.length).fill(y[g])),y[g]!==null&&(k[y[g]]+=A.length-1)):(b[g]===void 0?(b[g]=0,k[g]=0):k[g]!==0&&(f.splice(g+1,k[g]),y.splice(g+1,k[g]),k[g]=0),b[g]{let k=[[[l,null]]],g=!1;fht(f,(p,A)=>{if(p==="RM")A.excluded===!0&&(g=!1),k.length-=2;else if(p==="ADD"){if(A.excluded===!0){if(g)throw new Error(`Redundant Exclusion: "${c}"`);g=!0}let j=[],se=k[k.length-2];k[k.length-1].forEach(([We,ve])=>y(We,ve,A,se,lr=>j.push([lr,We]))),k.push(A,j)}else k[k.length-1].filter(([j])=>j!==l).forEach(([j,se])=>b(j,se,A,g))})};var Alr=/[?!,.*+[\](){}\\]/g,klr=l=>l.replace(Alr,"\\$&"),Plr=/^\^?[^-/\\^$*+?.()|[\]{}]*\$?$/g,Jae=l=>{if(Plr.test(l)){let c=l.startsWith("^"),f=l.endsWith("$");if(c&&f){let y=l.slice(1,-1);return{test:b=>String(b)===y}}if(c){let y=l.slice(1);return{test:b=>String(b).startsWith(y)}}if(f){let y=l.slice(0,-1);return{test:b=>String(b).endsWith(y)}}return{test:y=>String(y).includes(l)}}try{return new RegExp(l)}catch{throw new Error(`Invalid Regex: "${l}"`)}},wwe=l=>l.reduce((c,f)=>`${c}${typeof f=="number"?`[${f}]`:`${c?".":""}${klr(f)}`}`,""),Owe=l=>Array.isArray(l)?wwe(l):l;var Nlr=["-","/","\\","^","$","*","+","?",".","(",")","|","[","]","{","}"],dht=l=>{let c="",f=!1,y=!0;for(let b=0;bString(b)===c}:c===".+"?{test:b=>b!==""}:new RegExp(`^${c}$`)},mht=l=>(l.startsWith("**(")||l.startsWith("++("))&&l.endsWith(")")?Jae(l.slice(3,-1)):l.startsWith("[(")&&l.endsWith(")]")?Jae(l.slice(2,-2)):l.startsWith("(")&&l.endsWith(")")?Jae(l.slice(1,-1)):l.startsWith("[")&&l.endsWith("]")?dht(l.slice(1,-1)):dht(l);var VF=class{constructor(c,f){if(f.nodes.push(this),this.value=c,this.ctx=f,this.order=f.counter,this.children=[],this.match=!1,this.matches=!1,this.needles=[],this.leafNeedles=[],this.leafNeedlesExclude=[],this.leafNeedlesMatch=[],this.isArrayTarget=c.startsWith("[")&&c.endsWith("]"),this.isSimpleStarRec=c==="**",this.isSimplePlusRec=c==="++",this.isSimpleRec=this.isSimpleStarRec||this.isSimplePlusRec,this.isRegexStarRec=c.startsWith("**(")&&c.endsWith(")"),this.isRegexPlusRec=c.startsWith("++(")&&c.endsWith(")"),this.isStarRec=this.isSimpleStarRec||this.isRegexStarRec,this.isPlusRec=this.isSimplePlusRec||this.isRegexPlusRec,this.isRec=this.isStarRec||this.isPlusRec,this.isAnyArrayTarget=c==="[*]",this.isAnyObjTarget=c==="*",this.isSimpleRec||this.isAnyObjTarget||this.isAnyArrayTarget)this.regex=null;else{let{regex:y}=f;c in y||(y[c]=mht(c)),this.regex=y[c]}}recMatch(c){return this.isRec?this.isSimpleRec?!0:this.regex.test(c):!1}typeMatch(c,f){return this.isSimpleRec?!0:this.isAnyArrayTarget?f:this.isAnyObjTarget?!f:f!==this.isArrayTarget&&!this.isRec?!1:this.regex.test(c)}add(c){this.children.push(c)}get(c){return this.children.find(({value:f})=>f===c)}markMatches(){this.matches=!0}addNeedle(c){this.needles.includes(c)||this.needles.push(c)}setRoots(c){this.roots=c}finish(c,f,y){this.addNeedle(c),this.leafNeedles.includes(c)||this.leafNeedles.push(c);let b=f?this.leafNeedlesExclude:this.leafNeedlesMatch;b.includes(c)||b.push(c),this.match=!f,this.matches=this.match,this.index=y}};var Dlr=(l,c,f,y)=>{pht(l,c,f,{onAdd:(b,k,g,p,A)=>{if(b.addNeedle(c),g instanceof a3){g.left===!0?(g.isStarRec&&g.setPointer(b),g.setNode(new VF("*",y)),y.links.push(b,g.node),A(g.node)):(g.target="target"in p?p.target:k.get(p.value),y.links.push(g.target,g.node),g.pointer!==null&&(A(g.pointer),g.setPointer(null)),A(b));return}let j=g.isStarRec&&g.value===p?.value;if(j&&y.strict)throw new Error(`Redundant Recursion: "${c}"`);if(j)g.target=b;else{let se=b.get(g.value);se===void 0&&(se=new VF(g.value,y),b.add(se)),A(se)}g.isStarRec&&A(b)},onFin:(b,k,g,p)=>{if(y.strict&&g.isSimpleStarRec){let A=k.children.filter(({value:j})=>!["","**"].includes(j));if(A.length!==0)throw new Error(`Needle Target Invalidated: "${A[0].needles[0]}" by "${c}"`)}if(y.strict&&b.leafNeedles.length!==0){let A=Owe(b.leafNeedles[0]),j=Owe(c);throw new Error(`Redundant Needle Target: "${A}" vs "${j}"`)}b.finish(c,p,y.counter),y.counter+=1}})},Ilr=(l,c)=>{let{links:f}=c;for(;f.length!==0;){let b=f.pop(),k=f.pop(),{children:g}=k;k.children=[...b.children.filter(p=>!g.includes(p)),...g]}c.useArraySelector===!1&&l.setRoots(l.children.filter(({isStarRec:b,value:k})=>b||k===""));let{nodes:y}=c;for(;y.length!==0;){let b=y.pop(),{children:k}=b;k.reverse(),k.some(({matches:g})=>g)&&b.markMatches()}},ght=(l,c)=>{c.counter=0,c.links=[],c.nodes=[],c.regex=Object.create(null);let f=new VF("*",c);for(let y=0;y{let f=[];for(let y=0,b=l.length;yRwe(l,"leafNeedlesMatch"),yht=l=>Rwe(l,"leafNeedlesExclude"),vht=l=>Rwe(l,"needles"),Sht=l=>{let c=-1,f=!1,y=l.length;for(;y--;){let{index:b,match:k}=l[y];b>c&&(c=b,f=k)}return f},Mwe=(l,c)=>c?wwe(l):[...l];var Tht=(l,c)=>{if(c.rtn==="context")return{onMatch:()=>{},get:()=>l.context};if(c.rtn==="bool"){let y=!1;return{onMatch:()=>{y=!0},get:()=>y}}if(c.rtn==="count"){let y=0;return{onMatch:()=>{y+=1},get:()=>y}}if(c.rtn==="sum"){let y=0;return{onMatch:({value:b})=>{y+=b},get:()=>y}}let f=[];return{onMatch:typeof c.rtn=="function"?()=>f.push(c.rtn(l)):Array.isArray(c.rtn)?()=>f.push(c.rtn.map(y=>l[y])):()=>f.push(l[c.rtn]),get:()=>c.abort?f[0]:f}};var bht=(l,c,f)=>{let y={haystack:l,context:f.context};if(f.beforeFn!==void 0){let Rr=f.beforeFn(y);Rr!==void 0&&(y.haystack=Rr)}let b=[!1,[c],null,0],k=[],g=[],p,A,j,se,We=y.haystack,ve={getKey:(Rr=f.joined)=>Mwe(k,Rr),get key(){return ve.getKey()},getValue:()=>We,get value(){return ve.getValue()},getEntry:(Rr=f.joined)=>[Mwe(k,Rr),We],get entry(){return ve.getEntry()},getIsMatch:()=>se,get isMatch(){return ve.getIsMatch()},getMatchedBy:()=>hht(j),get matchedBy(){return ve.getMatchedBy()},getExcludedBy:()=>yht(j),get excludedBy(){return ve.getExcludedBy()},getTraversedBy:()=>vht(j),get traversedBy(){return ve.getTraversedBy()},getGproperty:()=>k[k.length-2],get gproperty(){return ve.getGproperty()},getProperty:()=>k[k.length-1],get property(){return ve.getProperty()},getGparent:()=>g[g.length-2],get gparent(){return ve.getGparent()},getParent:()=>g[g.length-1],get parent(){return ve.getParent()},getParents:()=>[...g].reverse(),get parents(){return ve.getParents()},getIsCircular:()=>g.includes(We),get isCircular(){return ve.getIsCircular()},getIsLeaf:()=>!(We instanceof Object),get isLeaf(){return ve.getIsLeaf()},getDepth:()=>k.length,get depth(){return ve.getDepth()},get result(){return ve.getResult()},context:y.context},lr=Tht(ve,f);if(ve.getResult=()=>lr.get(),f.useArraySelector||!Array.isArray(y.haystack)){let Rr=c.get("");Rr!==void 0&&b[1].push(Rr)}do{p=b.pop(),A=b.pop(),j=b.pop(),se=b.pop();let Rr=k.length-p;for(let Et=0;EtEt))continue;let kt=f.useArraySelector===!1&&Array.isArray(We);if(!kt&&Sht(j)&&(b.push(!0,j,A,p),se=!0),(f.breakFn===void 0||f.breakFn(ve)!==!0)&&We instanceof Object){let Et=Array.isArray(We),pi=Et?We.map((di,ra)=>ra).filter(()=>!0):Object.keys(We);!Et&&f.compareFn&&pi.sort(f.compareFn(ve)),f.reverse||pi.reverse();for(let di=0,ra=pi.length;dijn).sort());let Ef=b.length-3,Oi=Ef-di*4;for(;Ef!==Oi&&Buffer.compare(va.index,b[Ef].index)===1;)Ef-=4;b.splice(Ef+3,0,!1,va,Ql,p+1)}else b.push(!1,va,Ql,p+1)}}}while(b.length!==0);if(y.result=lr.get(),f.afterFn!==void 0){let Rr=f.afterFn(y);Rr!==void 0&&(y.result=Rr)}return y.result};var Nx=(l,c,f)=>{Px(f.includes(typeof l[c]),()=>`Option "${c}" not one of [${f.join(", ")}]`)},Eht=l=>{let c={filterFn:void 0,breakFn:void 0,beforeFn:void 0,afterFn:void 0,compareFn:void 0,reverse:!0,orderByNeedles:!1,abort:!1,rtn:void 0,joined:!1,useArraySelector:!0,strict:!0,...l};return Px(Object.keys(c).length===12,"Unexpected Option provided"),Nx(c,"filterFn",["function","undefined"]),Nx(c,"breakFn",["function","undefined"]),Nx(c,"beforeFn",["function","undefined"]),Nx(c,"afterFn",["function","undefined"]),Nx(c,"compareFn",["function","undefined"]),Nx(c,"reverse",["boolean"]),Nx(c,"orderByNeedles",["boolean"]),Nx(c,"abort",["boolean"]),Px(typeof c.rtn=="function"&&c.rtn.length===1||[void 0,"context","key","value","entry","property","gproperty","parent","gparent","parents","isMatch","matchedBy","excludedBy","traversedBy","isCircular","isLeaf","depth","bool","count","sum"].includes(c.rtn)||Array.isArray(c.rtn)&&c.rtn.every(f=>["key","value","entry","property","gproperty","parent","gparent","parents","isMatch","matchedBy","excludedBy","traversedBy","isCircular","isLeaf","depth"].includes(f)),'Option "rtn" is malformed'),Nx(c,"joined",["boolean"]),Nx(c,"useArraySelector",["boolean"]),Nx(c,"strict",["boolean"]),c};var xht=(l,c={})=>{if(Px(Array.isArray(l),'Argument "needles" expected to be Array'),Px(c instanceof Object&&!Array.isArray(c),'Argument "opts" expected to be Object'),l.length===0)return(b,k)=>k===void 0?[]:k;let f=Eht(c),y=ght(l,f);return(b,k)=>bht(b,y,{context:k,...f,rtn:f.rtn||(k===void 0?"key":"context")})};function JF(l,c,f){return xht([`**.dependencies.${c}`],{filterFn:f})(l)}function Cht(l,c){let f=JF(l,c,()=>!0).sort((y,b)=>y.length-b.length);return f.length>0?f.filter(y=>y.length===f[0]?.length):[]}var Aht=tf(yW(),1);function kht(l,c){if(l.name===c.name&&l.version===c.version)return l.path=[],[l];let f=JF(l,c.name,({value:y})=>y.version===c.version);return f.length>0?f.map(y=>({path:y,...(0,Aht.default)(l,y)})):[]}var Pht=tf(yW(),1);function Nht(l,c){if(c.length!==0)return c.length===2?{path:[],...l}:{path:c.slice(0,-2),...(0,Pht.default)(l,c.slice(0,-2))}}async function qae(l,c,f,y,b){b.traceEnter("","findRelevantSourceFiles",[l,c,f,y]);let k=await sht(c,f,b,y),g=await Uae(c,f,b),p=k.map(async se=>{let We=await cht(Dht.dirname(se.fileName),b),ve=await NC(We,f,b),lr=kht(g,ve),Rr,kt;do{for(let Et of lr){let pi=Cht(Et,l.name);if(pi.length>0){let di=pi[0]?.length??0;(kt===void 0||di(0,Iht.default)(Et,ra).version),kt=di)}}lr=lr.map(Et=>Nht(g,Et.path)).filter(Et=>Et!==void 0)}while(kt===void 0&&lr.length>0);return Rr===void 0?(b.error(new Fae(l.name)),!1):Rr.some(Et=>Et===l.version)}),A=await Promise.all(p),j=k.filter((se,We)=>A[We]);return b.traceExit("","findRelevantSourceFiles",j),j}var wht=tf(D1(),1);var zae=class extends Gd{constructor(c,f,y){super(y),this.accumulator=c,this.nodeHandlerMap=f}handle(c,f){let y=this.nodeHandlerMap[c.kind];y!==void 0&&new y(f,this.logger).handle(c,this.accumulator),wht.forEachChild(c,b=>{this.handle(b,f)})}};function Wae(l,c,f,y){y.traceEnter("","processFile",[c.fileName]),new zae(l,f,y).handle(c,c),y.traceExit("","processFile",void 0)}function Gae(l,c){l.imports=l.imports.filter(f=>f.path===c||f.path.startsWith(`${c}/`))}var Hae=class{findMatch(c,f){return c.accessPath.length>=2?f.find(y=>y.isAll&&y.name===c.accessPath[0]):void 0}};var $ae=class{findMatch(c,f){return f.find(y=>!y.isDefault&&!y.isAll&&y.rename===void 0&&y.name===c.accessPath[0])}};var Yae=class{findMatch(c,f){return f.find(y=>y.rename!==void 0&&y.rename===c.accessPath[0])}};var qF=class{constructor(){this.imports=[]}};var Kae=class extends qF{constructor(){super(),this.tokens=[],this.functions=[],this.functionImports=new Map,this.tokenImports=new Map}};var $F=tf(D1(),1);var Oht=tf(D1(),1);var wC=class{};var Xae=class extends wC{parse(c,f){let y=[];return c.namedBindings?.kind===Oht.SyntaxKind.NamespaceImport&&y.push({name:c.namedBindings.name.escapedText.toString(),path:f,isDefault:!1,isAll:!0}),y}};var Mht=tf(D1(),1);var Lwe="[Default]",Rht="default";var Qae=class extends wC{parse(c,f){let y=[];return c.namedBindings?.kind===Mht.SyntaxKind.NamedImports&&c.namedBindings.elements.forEach(b=>{b.propertyName?.escapedText===Rht&&y.push({name:Lwe,path:f,rename:b.name.escapedText.toString(),isDefault:!0,isAll:!1})}),c.name&&y.push({name:Lwe,path:f,rename:c.name.escapedText.toString(),isDefault:!0,isAll:!1}),y}};var Lht=tf(D1(),1);var Zae=class extends wC{parse(c,f){let y=[];return c.namedBindings?.kind===Lht.SyntaxKind.NamedImports&&c.namedBindings.elements.forEach(b=>{b.propertyName||y.push({name:b.name.escapedText.toString(),path:f,isDefault:!1,isAll:!1})}),y}};var Fht=tf(D1(),1);var ece=class extends wC{parse(c,f){let y=[];return c.namedBindings?.kind===Fht.SyntaxKind.NamedImports&&c.namedBindings.elements.forEach(b=>{b.propertyName&&b.propertyName.escapedText!=="default"&&y.push({name:b.propertyName.escapedText.toString(),path:f,rename:b.name.escapedText.toString(),isDefault:!1,isAll:!1})}),y}};var Lb=class extends Gd{constructor(c,f){super(f),this.sourceFile=c}};var zF=class extends Lb{handle(c,f){f.imports.push(...this.getData(c))}getData(c){let f=[new Xae,new Qae,new Zae,new ece],y=[],b=c.importClause,k=c.moduleSpecifier.getText(this.sourceFile).slice(1,-1);return b&&f.forEach(g=>y.push(...g.parse(b,k))),y}};var uce=tf(D1(),1);var lce=tf(D1(),1);var Fb=class{constructor(c){this.complexValue=c}};var RC=tf(D1(),1);var Hd=class extends Gd{constructor(c,f){super(f),this.sourceFile=c}};var WF=class extends Hd{getData(c){return new Fb(this.sourceFile.text.substring(c.pos,c.end).trim())}};var tce=class extends Hd{getData(c){return!1}};var rce=class extends Hd{getData(c){if(c.escapedText.toString()!=="undefined")return new WF(this.sourceFile,this.logger).getData(c)}};var GF=class extends Hd{getData(c){return!0}};var nce=class extends Hd{getData(c){return c.initializer===void 0?new GF(this.sourceFile,this.logger).getData(c):OC(c.initializer.kind,this.sourceFile,this.logger).getData(c.initializer)}};var HF=class extends Error{constructor(c){super("No expression found in attribute "+c)}};var ice=class extends Hd{getData(c){if(c.expression===void 0)throw new HF(c.getText(this.sourceFile));return OC(c.expression.kind,this.sourceFile,this.logger).getData(c.expression)}};var sce=class extends Hd{getData(c){return new Fb(c.getText(this.sourceFile))}};var oce=class extends Hd{getData(c){return null}};var ace=class extends Hd{getData(c){return Number(c.text)}};var cce=class extends Hd{getData(c){return c.text}};var wlr={[RC.SyntaxKind.StringLiteral]:cce,[RC.SyntaxKind.FalseKeyword]:tce,[RC.SyntaxKind.NullKeyword]:oce,[RC.SyntaxKind.NumericLiteral]:ace,[RC.SyntaxKind.TrueKeyword]:GF,[RC.SyntaxKind.JsxExpression]:ice,[RC.SyntaxKind.JsxAttribute]:nce,[RC.SyntaxKind.JsxSpreadAttribute]:sce,[RC.SyntaxKind.Identifier]:rce},OC=(l,c,f)=>{let y=wlr[l]??WF;return new y(c,f)};function AW(l,c,f){return jht(l,c,[],!0,f)}function jht(l,c,f,y,b){switch(l.kind){case lce.SyntaxKind.Identifier:return[...f,l.escapedText.toString()];case lce.SyntaxKind.PropertyAccessExpression:f.push(l.name.escapedText.toString());break;case lce.SyntaxKind.ElementAccessExpression:{let g=l.argumentExpression,p=OC(g.kind,c,b).getData(g);p!=null&&f.push(p instanceof Fb?p:p.toString());break}}let k=f;return"expression"in l&&(k=jht(l.expression,c,f,!1,b)),y?k.reverse():k}var kW=class extends Lb{handle(c,f){c.parent.kind===uce.SyntaxKind.ElementAccessExpression&&c.parent.argumentExpression!==c||[uce.SyntaxKind.PropertyAccessExpression,uce.SyntaxKind.CallExpression].includes(c.parent.kind)||f.tokens.push(this.getData(c))}getData(c){return{name:c.getText(this.sourceFile),accessPath:AW(c,this.sourceFile,this.logger),startPos:c.pos,endPos:c.end}}};var _ce=class extends Lb{handle(c,f){let y=this.getData(c);f.functions.push(y)}getData(c){let f=c.arguments.end-c.arguments.pos,y=c.getText(this.sourceFile),b=y.substring(0,y.length-f-1).replace(/\s/g,"");b=b.substring(0,b.length-1);let k={name:b,accessPath:[],arguments:[],startPos:c.pos,endPos:c.end};return k.arguments=c.arguments.map(g=>OC(g.kind,this.sourceFile,this.logger).getData(g)),k.accessPath=AW(c,this.sourceFile,this.logger),k}};var Dx=tf(D1(),1);var fce=class extends Lb{handle(c,f){c.parent.kind===Dx.SyntaxKind.ElementAccessExpression&&c.parent.argumentExpression!==c||[Dx.SyntaxKind.JsxOpeningElement,Dx.SyntaxKind.JsxSelfClosingElement,Dx.SyntaxKind.JsxClosingElement,Dx.SyntaxKind.PropertyAccessExpression,Dx.SyntaxKind.CallExpression,Dx.SyntaxKind.ImportClause,Dx.SyntaxKind.ImportDeclaration,Dx.SyntaxKind.ImportSpecifier].includes(c.parent.kind)||c.parent.kind===Dx.SyntaxKind.VariableDeclaration&&c.parent.name===c||f.tokens.push(this.getData(c))}getData(c){return{name:c.escapedText.toString(),accessPath:[c.escapedText.toString()],startPos:c.pos,endPos:c.end}}};var Bht={[$F.SyntaxKind.ImportDeclaration]:zF,[$F.SyntaxKind.CallExpression]:_ce,[$F.SyntaxKind.PropertyAccessExpression]:kW,[$F.SyntaxKind.ElementAccessExpression]:kW,[$F.SyntaxKind.Identifier]:fce};var pce=class extends Map{has(c){let f=new PW(typeof c,c);return super.has(Ah(f))}get(c){let f=new PW(typeof c,c);return super.get(Ah(f))}set(c,f){let y=new PW(typeof c,c);return super.set(Ah(y),f)}},PW=class{constructor(c,f){this.type=c,this.val=f}};var Fwe=new pce,Olr=1;function Rlr(){return`[redacted${Olr++}]`}var MC=class{put(c){if(Fwe.has(c))return Fwe.get(c);let f=Rlr();return Fwe.set(c,f),f}};function NW(l,c){let f=new MC;return l.map(y=>typeof y=="string"&&!c.includes(y)||typeof y=="object"&&y!==null&&!c.includes(y)?f.put(y):y)}var I0t=tf(D0t(),1);var Nfr=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},rOe=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},Ix=class extends Gd{getPackageDetails(c,f){let[,y,b]=/^(@[^/]+)\/(.+)/.exec(c)??[];if(f!==void 0){let{major:k,minor:g,patch:p,prerelease:A}=new I0t.SemVer(f);return{owner:y,name:b??c,major:k,minor:g,patch:p,preRelease:A.length===0?void 0:A}}return{owner:y,name:b??c}}};Nfr([Du(),rOe("design:type",Function),rOe("design:paramtypes",[String,String]),rOe("design:returntype",Object)],Ix.prototype,"getPackageDetails",null);var LC=class extends Gd{};var xce=class extends LC{constructor(c,f,y,b,k){super(k),this.name="js.function",this.jsFunction=c,this.matchingImport=f,this.instrumentedPackage=y,this.allowedArgumentStringValues=b.collect.js?.functions?.allowedArgumentStringValues??[]}get attributes(){let c=new Ix(this.logger),{owner:f,name:y,major:b,minor:k,patch:g,preRelease:p}=c.getPackageDetails(this.instrumentedPackage.name,this.instrumentedPackage.version),A=Ah(this.jsFunction.name),j=[...this.jsFunction.accessPath];this.matchingImport.rename!==void 0&&(A=A.replace(this.matchingImport.rename,this.matchingImport.name),j[0]=this.matchingImport.name);let se=new MC;j.forEach(ve=>{ve instanceof Fb&&(A=A.replace(Ah(ve.complexValue),se.put(ve)))}),this.matchingImport.isAll&&(j[0]=se.put(this.matchingImport.name),A=A.replace(this.matchingImport.name,se.put(this.matchingImport.name)));let We={[gx.FUNCTION_NAME]:A,[gx.FUNCTION_MODULE_SPECIFIER]:this.matchingImport.path,[gx.FUNCTION_ACCESS_PATH]:NW(j,j.filter(ve=>typeof ve=="string")).join(" "),[gx.FUNCTION_ARGUMENT_VALUES]:NW(this.jsFunction.arguments,this.allowedArgumentStringValues).map(ve=>String(ve)),[Ao.INSTRUMENTED_RAW]:this.instrumentedPackage.name,[Ao.INSTRUMENTED_OWNER]:f,[Ao.INSTRUMENTED_NAME]:y,[Ao.INSTRUMENTED_VERSION_RAW]:this.instrumentedPackage.version,[Ao.INSTRUMENTED_VERSION_MAJOR]:b?.toString(),[Ao.INSTRUMENTED_VERSION_MINOR]:k?.toString(),[Ao.INSTRUMENTED_VERSION_PATCH]:g?.toString(),[Ao.INSTRUMENTED_VERSION_PRE_RELEASE]:p?.join(".")};return We=EC(We,[Ao.INSTRUMENTED_RAW,Ao.INSTRUMENTED_OWNER,Ao.INSTRUMENTED_NAME,Ao.INSTRUMENTED_VERSION_RAW,Ao.INSTRUMENTED_VERSION_PRE_RELEASE]),We}};var Cce=class extends LC{constructor(c,f,y,b){super(b),this.name="js.token",this.jsToken=c,this.matchingImport=f,this.instrumentedPackage=y}get attributes(){let c=new Ix(this.logger),{owner:f,name:y,major:b,minor:k,patch:g,preRelease:p}=c.getPackageDetails(this.instrumentedPackage.name,this.instrumentedPackage.version),A=Ah(this.jsToken.name),j=[...this.jsToken.accessPath];this.matchingImport.rename!==void 0&&(A=A.replace(this.matchingImport.rename,this.matchingImport.name),j[0]=this.matchingImport.name);let se=new MC;j.forEach(ve=>{ve instanceof Fb&&(A=A.replace(Ah(ve.complexValue),se.put(ve)))}),this.matchingImport.isAll&&(j[0]=se.put(this.matchingImport.name),A=A.replace(this.matchingImport.name,se.put(this.matchingImport.name)));let We={[gx.TOKEN_NAME]:A,[gx.TOKEN_MODULE_SPECIFIER]:this.matchingImport.path,[gx.TOKEN_ACCESS_PATH]:NW(j,j.filter(ve=>typeof ve=="string")).join(" "),[Ao.INSTRUMENTED_RAW]:this.instrumentedPackage.name,[Ao.INSTRUMENTED_OWNER]:f,[Ao.INSTRUMENTED_NAME]:y,[Ao.INSTRUMENTED_VERSION_RAW]:this.instrumentedPackage.version,[Ao.INSTRUMENTED_VERSION_MAJOR]:b?.toString(),[Ao.INSTRUMENTED_VERSION_MINOR]:k?.toString(),[Ao.INSTRUMENTED_VERSION_PATCH]:g?.toString(),[Ao.INSTRUMENTED_VERSION_PRE_RELEASE]:p?.join(".")};return We=EC(We,[Ao.INSTRUMENTED_RAW,Ao.INSTRUMENTED_OWNER,Ao.INSTRUMENTED_NAME,Ao.INSTRUMENTED_VERSION_RAW,Ao.INSTRUMENTED_VERSION_PRE_RELEASE]),We}};var w0t=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},XF=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},l3=class l extends yP{constructor(){super(...arguments),this.name="js",this.runSync=!1}async run(){let c=this.config.collect[this.name];if(c===void 0||Object.keys(c).length===0)throw new MI(this.name);await this.captureAllMetrics(c)}async captureAllMetrics(c){let f=[new Hae,new $ae,new Yae],y=await NC(this.cwd,this.cwd,this.logger),b=await qae(y,this.cwd,this.root,l.fileExtensions,this.logger);this.logger.debug("Filtered source files: "+b.map(g=>g.fileName));let k=[];for(let g of b){let p=this.captureFileMetrics(await g.createSourceFile(),y,f,c);this.runSync?await p:k.push(p)}await Promise.allSettled(k)}async captureFileMetrics(c,f,y,b){let k=new Kae;Wae(k,c,Bht,this.logger),this.deduplicateFunctions(k),this.deduplicateTokens(k),Gae(k,f.name);let g=[];Object.keys(b).forEach(p=>{switch(p){case"tokens":g.push(this.captureTokenFileMetrics(k,f,y));break;case"functions":g.push(this.captureFunctionFileMetrics(k,f,y));break}}),await Promise.allSettled(g)}async captureTokenFileMetrics(c,f,y){this.resolveTokenImports(c,y),c.tokens.forEach(b=>{let k=c.tokenImports.get(b);k!==void 0&&this.capture(new Cce(b,k,f,this.logger))})}async captureFunctionFileMetrics(c,f,y){this.resolveFunctionImports(c,y),c.functions.forEach(b=>{let k=c.functionImports.get(b);k!==void 0&&this.capture(new xce(b,k,f,this.config,this.logger))})}resolveTokenImports(c,f){c.tokens.forEach(y=>{let b=f.map(k=>k.findMatch(y,c.imports)).find(k=>k!==void 0);b!==void 0&&c.tokenImports.set(y,b)})}resolveFunctionImports(c,f){c.functions.forEach(y=>{let b=f.map(k=>k.findMatch(y,c.imports)).find(k=>k!==void 0);b!==void 0&&c.functionImports.set(y,b)})}deduplicateFunctions(c){c.functions=c.functions.filter(f=>!c.functions.some(y=>y.startPos>=f.startPos&&y.endPos<=f.endPos&&y!==f))}deduplicateTokens(c){c.tokens=c.tokens.filter(f=>!c.functions.some(y=>y.startPos>=f.startPos&&y.endPos<=f.endPos))}setRunSync(c){this.runSync=c}};l3.fileExtensions=[".jsx",".mjs",".js",".cjs",".tsx",".mts",".ts",".cts",".mjsx",".cjsx",".mtsx",".ctsx"];w0t([Du(),XF("design:type",Function),XF("design:paramtypes",[]),XF("design:returntype",Promise)],l3.prototype,"run",null);w0t([Du(),XF("design:type",Function),XF("design:paramtypes",[Object]),XF("design:returntype",Promise)],l3.prototype,"captureAllMetrics",null);var Ace=class{findMatch(c,f){return c.prefix!==void 0?f.find(y=>y.isAll&&y.name===c.prefix):void 0}};var kce=class{findMatch(c,f){return c.prefix!==void 0?f.find(y=>!y.isDefault&&!y.isAll&&y.name===c.prefix):f.find(y=>!y.isDefault&&!y.isAll&&y.name===c.name)}};var Pce=class{findMatch(c,f){return c.prefix!==void 0?f.find(y=>y.rename===c.prefix):f.find(y=>y.rename===c.name)}};var Nce=class extends qF{constructor(){super(),this.elements=[],this.elementImports=new Map}};var wce=tf(D1(),1);var P2r=tf(D1(),1);var O0t=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},QF=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},BI=class extends Lb{getElementNameAndPrefix(c){let f=c.getText(this.sourceFile).split("."),[y,...b]=f.length===1?[void 0,f]:f;return{name:b.join("."),prefix:y}}getElementAttributes(c){let f=[];return c.properties.forEach(y=>{if(y.name&&"escapedText"in y.name)try{f.push({name:y.name.escapedText.toString(),value:OC(y.kind,this.sourceFile,this.logger).getData(y)})}catch(b){if(b instanceof HF)this.logger.error(b);else throw b}}),f}};O0t([Du({argFormatter:l=>l.getText()}),QF("design:type",Function),QF("design:paramtypes",[Object]),QF("design:returntype",void 0)],BI.prototype,"getElementNameAndPrefix",null);O0t([Du({argFormatter:l=>l.getText()}),QF("design:type",Function),QF("design:paramtypes",[Object]),QF("design:returntype",void 0)],BI.prototype,"getElementAttributes",null);var Dce=class extends BI{handle(c,f){f.elements.push(this.getData(c))}getData(c){let{name:f,prefix:y}=this.getElementNameAndPrefix(c.openingElement.tagName),b=this.getElementAttributes(c.openingElement.attributes);return{name:f,prefix:y,attributes:b}}};var Ice=class extends BI{handle(c,f){f.elements.push(this.getData(c))}getData(c){let{name:f,prefix:y}=this.getElementNameAndPrefix(c.tagName);return{name:f,prefix:y,attributes:this.getElementAttributes(c.attributes)}}};var R0t={[wce.SyntaxKind.ImportDeclaration]:zF,[wce.SyntaxKind.JsxElement]:Dce,[wce.SyntaxKind.JsxSelfClosingElement]:Ice};function M0t(l,c,f){let y=new MC,b=Object.entries(l).map(([k,g])=>{if(!c.includes(k)){let p=y.put(k),A=y.put(g);return[p,A]}return typeof g=="string"&&!f.includes(g)?[k,y.put(g)]:typeof g=="object"&&g!==null&&!f.includes(g)?[k,y.put(g)]:[k,g]});return Object.fromEntries(b)}var Oce=class extends LC{constructor(c,f,y,b,k){super(k),this.name="jsx.element",this.jsxElement=c,this.matchingImport=f,this.instrumentedPackage=y,this.allowedAttributeNames=b.collect.jsx?.elements?.allowedAttributeNames??[],this.allowedAttributeStringValues=b.collect.jsx?.elements?.allowedAttributeStringValues??[]}get attributes(){let c=Eae(this.jsxElement.attributes.reduce((We,ve)=>({...We,[ve.name]:ve.value}),{})),f=M0t(c,this.allowedAttributeNames,this.allowedAttributeStringValues),y=new Ix(this.logger),{owner:b,name:k,major:g,minor:p,patch:A,preRelease:j}=y.getPackageDetails(this.instrumentedPackage.name,this.instrumentedPackage.version),se={[cI.NAME]:this.jsxElement.name,[cI.MODULE_SPECIFIER]:this.matchingImport.path,[cI.ATTRIBUTE_NAMES]:Object.keys(f),[cI.ATTRIBUTE_VALUES]:Object.values(f).map(We=>String(We)),[Ao.INSTRUMENTED_RAW]:this.instrumentedPackage.name,[Ao.INSTRUMENTED_OWNER]:b,[Ao.INSTRUMENTED_NAME]:k,[Ao.INSTRUMENTED_VERSION_RAW]:this.instrumentedPackage.version,[Ao.INSTRUMENTED_VERSION_MAJOR]:g?.toString(),[Ao.INSTRUMENTED_VERSION_MINOR]:p?.toString(),[Ao.INSTRUMENTED_VERSION_PATCH]:A?.toString(),[Ao.INSTRUMENTED_VERSION_PRE_RELEASE]:j?.join(".")};return this.matchingImport.rename!==void 0&&(se[cI.NAME]=this.jsxElement.name.replace(this.matchingImport.rename,this.matchingImport.name)),se=EC(se,[Ao.INSTRUMENTED_RAW,Ao.INSTRUMENTED_OWNER,Ao.INSTRUMENTED_NAME,Ao.INSTRUMENTED_VERSION_RAW,Ao.INSTRUMENTED_VERSION_PRE_RELEASE]),se}};var L0t=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},ZF=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},u3=class l extends yP{constructor(){super(...arguments),this.name="jsx",this.runSync=!1}async run(){let c=this.config.collect[this.name];if(c===void 0||Object.keys(c).length===0)throw new MI(this.name);let f=[];Object.keys(c).forEach(y=>{switch(y){case"elements":f.push(this.captureAllMetrics());break}}),await Promise.allSettled(f)}async captureAllMetrics(){let c=[new Ace,new kce,new Pce],f=await NC(this.cwd,this.cwd,this.logger),y=await qae(f,this.cwd,this.root,l.fileExtensions,this.logger);this.logger.debug("Filtered source files: "+y.map(k=>k.fileName));let b=[];for(let k of y){let g=this.captureFileMetrics(await k.createSourceFile(),f,c);this.runSync?await g:b.push(g)}await Promise.allSettled(b)}async captureFileMetrics(c,f,y){let b=new Nce;Wae(b,c,R0t,this.logger),Gae(b,f.name),this.resolveElementImports(b,y),b.elements.forEach(k=>{let g=b.elementImports.get(k);g!==void 0&&this.capture(new Oce(k,g,f,this.config,this.logger))})}resolveElementImports(c,f){c.elements.forEach(y=>{let b=f.map(k=>k.findMatch(y,c.imports)).find(k=>k!==void 0);b!==void 0&&c.elementImports.set(y,b)})}setRunSync(c){this.runSync=c}};u3.fileExtensions=[".js",".mjs",".cjs",".jsx",".tsx",".mjsx",".cjsx",".mtsx",".ctsx"];L0t([Du(),ZF("design:type",Function),ZF("design:paramtypes",[]),ZF("design:returntype",Promise)],u3.prototype,"run",null);L0t([Du(),ZF("design:type",Function),ZF("design:paramtypes",[]),ZF("design:returntype",Promise)],u3.prototype,"captureAllMetrics",null);var F0t=tf(yW(),1);var Rce=class extends Error{};function j0t(l,c){let f=c.length===0?l:(0,F0t.default)(l,c);if(f===void 0)throw new Rce;return f.name===void 0&&(f.name=c[c.length-1]),{name:f.name,version:f.version,dependencies:Object.entries(f.dependencies).map(([y,b])=>({name:y,version:b.version}))}}function B0t(l,c,f,y){y.traceEnter("","findInstallersFromTree",[l,c,f]);let b=[],k=JF(l,c,f);return k.length>=1&&(b=k.map(g=>j0t(l,g.slice(0,-2)))),y.traceExit("","findInstallersFromTree",b),b}async function U0t(l,c,f,y,b){b.traceEnter("","findInstallingPackages",[f,y,l,c]);let k=await Uae(l,c,b),g=B0t(k,f,y,b);return b.traceExit("","findInstallingPackages",g),g}var Mce=class extends LC{constructor(c,f,y){super(y),this.name="npm.dependency",this.data=c,this.instrumentedPackage=f}get attributes(){let c=new Ix(this.logger),{owner:f,name:y,major:b,minor:k,patch:g,preRelease:p}=c.getPackageDetails(this.data.rawName,this.data.rawVersion),{owner:A,name:j,major:se,minor:We,patch:ve,preRelease:lr}=c.getPackageDetails(this.instrumentedPackage.name,this.instrumentedPackage.version),Rr={[Ao.RAW]:this.data.rawName,[Ao.OWNER]:f,[Ao.NAME]:y,[Ao.IS_INSTRUMENTED]:this.data.isInstrumented,[Ao.VERSION_RAW]:this.data.rawVersion,[Ao.VERSION_MAJOR]:b?.toString(),[Ao.VERSION_MINOR]:k?.toString(),[Ao.VERSION_PATCH]:g?.toString(),[Ao.VERSION_PRE_RELEASE]:p?.join("."),[Ao.INSTRUMENTED_RAW]:this.instrumentedPackage.name,[Ao.INSTRUMENTED_OWNER]:A,[Ao.INSTRUMENTED_NAME]:j,[Ao.INSTRUMENTED_VERSION_RAW]:this.instrumentedPackage.version,[Ao.INSTRUMENTED_VERSION_MAJOR]:se?.toString(),[Ao.INSTRUMENTED_VERSION_MINOR]:We?.toString(),[Ao.INSTRUMENTED_VERSION_PATCH]:ve?.toString(),[Ao.INSTRUMENTED_VERSION_PRE_RELEASE]:lr?.join(".")};return EC(Rr,[Ao.RAW,Ao.OWNER,Ao.NAME,Ao.VERSION_RAW,Ao.VERSION_PRE_RELEASE,Ao.INSTRUMENTED_RAW,Ao.INSTRUMENTED_OWNER,Ao.INSTRUMENTED_NAME,Ao.INSTRUMENTED_VERSION_RAW,Ao.INSTRUMENTED_VERSION_PRE_RELEASE])}};var V0t=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},e5=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},t5=class extends yP{constructor(){super(...arguments),this.name="npm"}async collectDependencies(){let c=await NC(this.cwd,this.cwd,this.logger);(await U0t(this.cwd,this.root,c.name,({value:y})=>y.version===c.version,this.logger)).forEach(y=>{y.dependencies.forEach(b=>{this.capture(new Mce({rawName:b.name,rawVersion:b.version,isInstrumented:b.name===c.name&&b.version===c.version?"true":"false"},c,this.logger))})})}async run(){let c=this.config.collect[this.name];if(c===void 0||Object.keys(c).length===0)throw new MI(this.name);let f=[];Object.keys(c).forEach(y=>{switch(y){case"dependencies":f.push(this.collectDependencies());break}}),await Promise.allSettled(f)}};V0t([Du(),e5("design:type",Function),e5("design:paramtypes",[]),e5("design:returntype",Promise)],t5.prototype,"collectDependencies",null);V0t([Du(),e5("design:type",Function),e5("design:paramtypes",[]),e5("design:returntype",Promise)],t5.prototype,"run",null);var J0t={js:l3,jsx:u3,npm:t5};var nOe=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},EP=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},_3=class{constructor(c,f,y,b){this.configPath=c,this.configSchemaJson=f,this.environment=y,this.logger=b}async run(){if(this.logger.debug("Environment: "+JSON.stringify(this.environment)),!this.environment.isTelemetryEnabled){this.logger.debug("Telemetry disabled via environment variable");return}if(!this.environment.isCI){this.logger.debug("Telemetry disabled because not running in CI");return}let c=new Date().toISOString();this.logger.debug("Date: "+c),this.logger.debug("Schema: "+JSON.stringify(this.configSchemaJson));let f=new sW(this.configSchemaJson,this.logger),y=await mdt(this.configPath);this.logger.debug("Config: "+JSON.stringify(y,void 0,2));let b=this.environment.cwd;this.logger.debug("cwd: "+b);let k=await uae(b,this.logger);this.logger.debug("projectRoot: "+k),f.validate(y);let{repository:g,commitHash:p,commitTags:A,commitBranches:j}=await new cW(b,this.logger).getGitInfo(),se=await ydt(this.logger),We=kF.getInstance(!0);We.setAttributes(EC({[Eh.TELEMETRY_EMITTER_NAME]:se.name,[Eh.TELEMETRY_EMITTER_VERSION]:se.version,[Eh.PROJECT_ID]:y.projectId,[Eh.ANALYZED_COMMIT]:p,[Eh.ANALYZED_HOST]:g.host,[Eh.ANALYZED_OWNER]:g.owner,[Eh.ANALYZED_PATH]:`${g.host??""}/${g.owner??""}/${g.repository??""}`,[Eh.ANALYZED_REPOSITORY]:g.repository,[Eh.ANALYZED_REFS]:[...A,...j],[Eh.DATE]:c},[Eh.ANALYZED_COMMIT,Eh.ANALYZED_HOST,Eh.ANALYZED_OWNER,Eh.ANALYZED_PATH,Eh.ANALYZED_REPOSITORY,Eh.ANALYZED_REFS]));let ve=this.runScopes(b,k,y);await Promise.allSettled(ve);let lr=await We.getMetricReader().collect();this.logger.debug("Collection results:"),this.logger.debug(JSON.stringify(lr,void 0,2)),this.environment.isExportEnabled&&await this.emitMetrics(lr.resourceMetrics,y)}runScopes(c,f,y){let b=[];for(let k of Object.keys(y.collect)){let g=J0t[k];if(g===void 0)throw new yae(k);let p=Reflect.construct(g,[c,f,y,this.logger]);b.push(p.run().then(()=>{this.logger.debug("Scope succeeded: "+k)}).catch(A=>{this.logger.error("Scope failed: "+k),A instanceof Error?this.logger.error(A):this.logger.error(String(A))}))}return b}async emitMetrics(c,f){if(c.scopeMetrics.length<=0)return;let y=new q0t.OTLPMetricExporter({url:f.endpoint,temporalityPreference:W0t.AggregationTemporality.DELTA,compression:z0t.CompressionAlgorithm.GZIP});return await new Promise(b=>{y.export(c,k=>{this.logger.debug("Metrics exporter finished"),this.logger.debug(Ah(k)),b(void 0)})})}};nOe([Du(),EP("design:type",Function),EP("design:paramtypes",[]),EP("design:returntype",Promise)],_3.prototype,"run",null);nOe([Du(),EP("design:type",Function),EP("design:paramtypes",[String,String,Object]),EP("design:returntype",void 0)],_3.prototype,"runScopes",null);nOe([Du(),EP("design:type",Function),EP("design:paramtypes",[Object,Object]),EP("design:returntype",Promise)],_3.prototype,"emitMetrics",null);var K0t=tf(Y0t(),1),f3=class{constructor(c){this.isCI=K0t.isCI,this.isExportEnabled=process.env.IBM_TELEMETRY_EXPORT_DISABLED!=="true",this.isTelemetryEnabled=process.env.IBM_TELEMETRY_DISABLED!=="true",this.cwd=process.cwd(),c?.isCI!==void 0&&(this.isCI=c.isCI),c?.isExportEnabled!==void 0&&(this.isExportEnabled=c.isExportEnabled),c?.isTelemetryEnabled!==void 0&&(this.isTelemetryEnabled=c.isTelemetryEnabled),c?.cwd!==void 0&&(this.cwd=c.cwd)}};var r5=function(l,c,f,y){var b=arguments.length,k=b<3?c:y===null?y=Object.getOwnPropertyDescriptor(c,f):y,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(l,c,f,y);else for(var p=l.length-1;p>=0;p--)(g=l[p])&&(k=(b<3?g(k):b>3?g(c,f,k):g(c,f))||k);return b>3&&k&&Object.defineProperty(c,f,k),k},kh=function(l,c){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(l,c)},Ifr=3,wfr=64,FC=class extends Gd{constructor(c,f,y,b){super(b),this.workQueue=[],this.ipcAddr=c,this.workQueue.push({cwd:f.cwd,configFilePath:y})}async run(){let c;for(let f=0;f{let b=jC.createServer({});b.on("connection",c),b.on("listening",()=>{f(b)}),b.on("error",y),process.on("SIGINT",b.close),process.on("SIGTERM",b.close),b.listen(this.ipcAddr,wfr)})}createClientSocket(){return new Promise((c,f)=>{let y=jC.connect(this.ipcAddr);y.on("connect",()=>c(y)),y.on("error",f)})}handleServerConnection(c){let f="";c.on("data",y=>{f+=y.toString()}),c.on("close",()=>{let y=JSON.parse(f);this.workQueue.push(y)})}sendWorkToConductor(c){return new Promise((f,y)=>{let b=this.workQueue.shift();this.logger.debug("Sending work through IPC: ",JSON.stringify(b)),c.on("close",f),c.on("error",y),c.on("timeout",y),c.write(Buffer.from(JSON.stringify(b))),c.end()})}async doWork(c){for(this.logger.debug("We are the conductor of the choo-choo train. Running all available work in queue");this.workQueue.length>0;){this.logger.debug("Queue length",this.workQueue.length);let f=this.workQueue.shift();if(!f)return;await this.collect(new f3({cwd:f.cwd}),f.configFilePath)}c.close()}async collect(c,f){let y=new _3(f,bXe,c,this.logger);try{await y.run()}catch(b){b instanceof Error?this.logger.error(b):this.logger.error(String(b))}}};r5([Du({argFormatter:()=>"[onConnect]"}),kh("design:type",Function),kh("design:paramtypes",[Function]),kh("design:returntype",Promise)],FC.prototype,"createServerSocket",null);r5([Du(),kh("design:type",Function),kh("design:paramtypes",[]),kh("design:returntype",Promise)],FC.prototype,"createClientSocket",null);r5([Du({argFormatter:()=>"[socket]"}),kh("design:type",Function),kh("design:paramtypes",[jC.Socket]),kh("design:returntype",void 0)],FC.prototype,"handleServerConnection",null);r5([Du({argFormatter:()=>"[socket]"}),kh("design:type",Function),kh("design:paramtypes",[jC.Socket]),kh("design:returntype",void 0)],FC.prototype,"sendWorkToConductor",null);r5([Du({argFormatter:()=>"[server]"}),kh("design:type",Function),kh("design:paramtypes",[jC.Server]),kh("design:returntype",Promise)],FC.prototype,"doWork",null);r5([Du(),kh("design:type",Function),kh("design:paramtypes",[f3,String]),kh("design:returntype",Promise)],FC.prototype,"collect",null);import{tmpdir as Ofr}from"os";import{join as Rfr}from"path";function X0t(l){let c=Math.round(Math.random()*999999).toString().padStart(6,"0");return Rfr(Ofr(),`ibmtelemetry-${l.replace(/[:.-]/g,"")}-${c}.log`)}var Mfr=Lce.join(Q0t.tmpdir(),"ibmtelemetry-ipc"),{Command:Lfr}=PAe;function Ffr(){try{new Lfr().description("Collect telemetry data for a package.").requiredOption("--config ","Path to a telemetry configuration file").option("--log ","Path to temp log file").action(jfr).parseAsync().catch(c=>{console.error(c)})}catch(l){console.error(l)}}async function jfr(l){let c=new Date().toISOString(),f=l.log??X0t(c),y=new AF(f),b=Lce.resolve(l.config);y.traceEnter("","runBackgroundProcess",[l]);let k=new FC(Mfr,new f3,b,y);try{await k.run()}catch(g){g instanceof Error?y.error(g):y.error(String(g))}y.traceExit("","runBackgroundProcess",void 0),await y.close()}Ffr();
/*! Bundled license information:

reflect-metadata/Reflect.js:
  (*! *****************************************************************************
  Copyright (C) Microsoft. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
  
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
  
  See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** *)

typescript/lib/typescript.js:
  (*! *****************************************************************************
  Copyright (c) Microsoft Corporation. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
  
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
  
  See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** *)

js-yaml/dist/js-yaml.mjs:
  (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/




© 2015 - 2024 Weber Informatics LLC | Privacy Policy